[][src]Module sparx::sparx128

SPARX-128/128 block cipher.

Constants

BLOCK_SIZE
KEY_SIZE
NONCE_SIZE

Functions

decrypt_block

Decrypt a single block block using the key schedule ks

decrypt_ctr

Decrypt an arbitrary-long message buf using SPARX in counter mode with the nonce nonce and the master key key.

encrypt_block

Encrypt a single block block using the key schedule ks

encrypt_ctr

Encrypt an arbitrary-long message buf using SPARX in counter mode with the nonce nonce and the master key key.

key_schedule_decrypt

Compute the key schedule from the master key key, for decryption

key_schedule_encrypt

Compute the key schedule from the master key key

Type Definitions

KeySchedule