package
0.0.0-20240804114955-0ef0bc9ad37f
Repository: https://github.com/globekeeper/gomautrix.git
Documentation: pkg.go.dev

# Functions

DecodeBase58RecoveryKey recovers the secret storage from a recovery key.
DeriveKeysSHA256 derives an AES and a HMAC key from the given recovery key.
EncodeBase58RecoveryKey recovers the secret storage from a recovery key.
GenA256CTRIV generates a random IV for AES256-CTR with the last bit set to zero.
GenAttachmentA256CTR generates a new random AES256-CTR key and IV suitable for encrypting attachments.
HMACSHA256B64 calculates the base64 of the SHA256 hmac of the input with the given key.
PBKDF2SHA512 generates a key of the given bit-length using the given passphrase, salt and iteration count.
XorA256CTR encrypts the input with the keystream generated by the AES256-CTR algorithm with the given arguments.

# Constants

AESCTRIVLength is the length of the AES256-CTR IV used.
AESCTRKeyLength is the length of the AES256-CTR key used.
HMACKeyLength is the length of the HMAC key used.
SHAHashLength is the length of the SHA hash used.