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§
- Error
Code - 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 toout
. - abcrypt_
encrypt ⚠ - Encrypts
plaintext
and write toout
. - abcrypt_
encrypt_ ⚠with_ context - Encrypts
plaintext
with the specified Argon2 type, Argon2 version and Argon2 parameters and write toout
. - abcrypt_
encrypt_ ⚠with_ params - Encrypts
plaintext
with the specified Argon2 parameters and write toout
. - 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.