abcrypt_decrypt(3)
NAME
abcrypt_decrypt - API function
SYNOPSIS
#include <abcrypt.h>
enum abcrypt_error_code abcrypt_decrypt(uint8_t *ciphertext,
uintptr_t ciphertext_len,
uint8_t *passphrase,
uintptr_t passphrase_len,
uint8_t *out,
uintptr_t out_len);
DESCRIPTION
This function decrypts ciphertext and write to out.
Arguments
- ciphertext
A pointer to the ciphertext to decrypt.
- ciphertext_len
Length of ciphertext.
- passphrase
A pointer to the passphrase used for decryption.
- passphrase_len
Length of passphrase.
- out
A pointer to where to write the plaintext.
- out_len
Length of out.
Behavior is undefined if any of the following are true:
|
RETURN VALUE
Returns ABCRYPT_ERROR_CODE_OK
if successful, otherwise returns an error value
defined in abcrypt_error_code(3).