plusaes
|
Functions | |
Error | plusaes::encrypt_gcm (unsigned char *data, const std::size_t data_size, const unsigned char *aadata, const std::size_t aadata_size, const unsigned char *key, const std::size_t key_size, const unsigned char *iv, const std::size_t iv_size, unsigned char *tag, const std::size_t tag_size) |
Error | plusaes::encrypt_gcm (unsigned char *data, const std::size_t data_size, const unsigned char *aadata, const std::size_t aadata_size, const unsigned char *key, const std::size_t key_size, const unsigned char(*iv)[12], unsigned char(*tag)[16]) |
Error | plusaes::decrypt_gcm (unsigned char *data, const std::size_t data_size, const unsigned char *aadata, const std::size_t aadata_size, const unsigned char *key, const std::size_t key_size, const unsigned char *iv, const std::size_t iv_size, const unsigned char *tag, const std::size_t tag_size) |
Error | plusaes::decrypt_gcm (unsigned char *data, const std::size_t data_size, const unsigned char *aadata, const std::size_t aadata_size, const unsigned char *key, const std::size_t key_size, const unsigned char(*iv)[12], const unsigned char(*tag)[16]) |
GCM mode functions
|
inline |
Decrypts data with GCM mode and checks an authentication tag.
You can specify iv size and tag size. But usually you should use the other overloaded function whose iv and tag size is fixed.
|
inline |
Decrypts data with GCM mode and checks an authentication tag.
[in,out] | data | Input data and output buffer. This buffer is replaced with decrypted data. |
[in] | data_size | data size |
[in] | aadata | Additional Authenticated data |
[in] | aadata_size | aadata size |
[in] | key | Cipher key |
[in] | key_size | Cipher key size. This value must be 16 (128-bit), 24 (192-bit), or 32 (256-bit). |
[in] | iv | Initialization vector |
[in] | tag | Authentication tag data |
|
inline |
Encrypts data with GCM mode and gets an authentication tag.
You can specify iv size and tag size. But usually you should use the other overloaded function whose iv and tag size is fixed.
|
inline |
Encrypts data with GCM mode and gets an authentication tag.
[in,out] | data | Input data and output buffer. This buffer is replaced with encrypted data. |
[in] | data_size | data size |
[in] | aadata | Additional Authenticated data |
[in] | aadata_size | aadata size |
[in] | key | Cipher key |
[in] | key_size | Cipher key size. This value must be 16 (128-bit), 24 (192-bit), or 32 (256-bit). |
[in] | iv | Initialization vector |
[out] | tag | Calculated authentication tag data |