Documentation ¶
Index ¶
- Variables
- func Decrypt(msg, authKey, checkData []byte) ([]byte, error)
- func DecryptAES(data []byte, key string) ([]byte, error)
- func DecryptMessageWithTempKeys(msg []byte, nonceSecond, nonceServer *big.Int) ([]byte, error)
- func Encrypt(msg, authKey []byte) (out, msgKey []byte, _ error)
- func EncryptAES(data []byte, key string) ([]byte, error)
- func EncryptMessageWithTempKeys(msg []byte, nonceSecond, nonceServer *big.Int) ([]byte, error)
- func MessageKey(authKey, msgPadded []byte, decode bool) []byte
- type AesBlock
- type AesIgeBlock
- type AesKV
- type Cipher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDataTooSmall = errors.New("AES256IGE: data too small") ErrDataNotDivisible = errors.New("AES256IGE: data not divisible by block size") )
Functions ¶
func Decrypt ¶
checkData это msgkey в понятиях мтпрото, нужно что бы проверить, успешно ли прошла расшифровка
func DecryptMessageWithTempKeys ¶
DecryptMessageWithTempKeys дешифрует сообщение паролем, которые получены в процессе обмена ключами диффи хеллмана
func EncryptMessageWithTempKeys ¶
EncryptMessageWithTempKeys шифрует сообщение паролем, которые получены в процессе обмена ключами диффи хеллмана
func MessageKey ¶
Types ¶
type AesIgeBlock ¶
type AesIgeBlock [48]byte
Click to show internal directories.
Click to hide internal directories.