Documentation ¶
Index ¶
- Variables
- func AlgoKey(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte
- func BigExp(x, y, m *big.Int) *big.Int
- func BytesToBig(b []byte) *big.Int
- func BytesXor(a, b []byte) []byte
- 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
- func Pad256(b []byte) []byte
- func PasswordHash2(password, salt1, salt2 []byte) []byte
- func RandomBytes(size int) []byte
- type AesBlock
- type AesIgeBlock
- type AesKV
- type Cipher
- type ModPow
- type SrpAnswer
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 BytesToBig ¶
func DecryptMessageWithTempKeys ¶
DecryptMessageWithTempKeys decrypts a message using temporary keys obtained during the Diffie-Hellman key exchange.
func EncryptMessageWithTempKeys ¶
EncryptMessageWithTempKeys encrypts a message using temporary keys obtained during the Diffie-Hellman key exchange.
func MessageKey ¶
func PasswordHash2 ¶
func RandomBytes ¶
Types ¶
type AesIgeBlock ¶
type AesIgeBlock [48]byte
Click to show internal directories.
Click to hide internal directories.