![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
void
DESCRIPTION
Sensitive data (such as cryptographic keys or secret plaintexts) should be erased from memory as early as possible to minimise the window in which it can be leaked. Standard functions like memset and bzero are not safe to use as the compiler may decide they have no effect and optimise them out. The arguments are:
Monocypher will wipe its context structs when finalizing an operation such as signing or decrypting. When using direct interfaces like crypto_aead_lock(3monocypher), these context structs are invisible to you. However, they are exposed in incremental interfaces like crypto_blake2b_init(3monocypher). The original key buffer does not get automatically wiped. When using incremental interfaces, you may want to wipe the original key buffers immediately after calling the respective init function. Using
RETURN VALUESThis function returns nothing. SEE ALSOHISTORYThe CAVEATSMonocypher does not perform any input validation. Any deviation from the specified input and output length ranges results in undefined behaviour. Make sure your inputs are correct.
|