Skip to main content

Module crypto

Module crypto 

Source
Expand description

Cryptographic operations for tdata (PBKDF2, AES-IGE, checksums) Cryptographic operations for tdata

Implements:

  • PBKDF2-SHA512 key derivation
  • AES-256-IGE encryption/decryption
  • SHA1/MD5 checksums

Structs§

AuthKey
Auth key for encryption/decryption

Constants§

AES_BLOCK_SIZE
AES block size
AES_KEY_SIZE
AES-256 key size
LOCAL_ENCRYPT_SALT_SIZE
Size of local encryption salt

Functions§

create_local_key
Create a local encryption key from salt and passcode using PBKDF2-SHA512
decrypt_local
Decrypt data using AES-256-IGE mode (local tdata format)