passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
This key derivation algorithm defines that SRP 2FA login must be used
type tg.PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow struct { /* ... */ }
Implements PasswordKdfAlgo.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Salt1 | []byte | yes | One of two salts used by the derivation function (see SRP 2FA login) |
Salt2 | []byte | yes | One of two salts used by the derivation function (see SRP 2FA login) |
G | int | yes | Base (see SRP 2FA login) |
P | []byte | yes | 2048-bit modulus (see SRP 2FA login) |
References
- Official documentation
- Generated Go reference
- TL definition:
passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a