Crate abcrypt_capi

Source
Expand description

The abcrypt-capi crate is the C API for the abcrypt crate.

Structs§

Params
The Argon2 parameters used for the encrypted data.

Enums§

ErrorCode
The error code for the abcrypt encrypted data format.

Constants§

HEADER_SIZE
The number of bytes of the header.
TAG_SIZE
The number of bytes of the MAC (authentication tag) of the ciphertext.

Functions§

abcrypt_decrypt
Decrypts ciphertext and write to out.
abcrypt_encrypt
Encrypts plaintext and write to out.
abcrypt_encrypt_with_context
Encrypts plaintext with the specified Argon2 type, Argon2 version and Argon2 parameters and write to out.
abcrypt_encrypt_with_params
Encrypts plaintext with the specified Argon2 parameters and write to out.
abcrypt_error_message
Gets a detailed error message.
abcrypt_error_message_out_len
Returns the number of output bytes of the error message.
abcrypt_params_free
Frees a Argon2 parameters.
abcrypt_params_memory_cost
Gets memory size in KiB.
abcrypt_params_new
Creates a new Argon2 parameters.
abcrypt_params_parallelism
Gets degree of parallelism.
abcrypt_params_read
Reads the Argon2 parameters from ciphertext.
abcrypt_params_time_cost
Gets number of iterations.