crypto_evp_encrypt_auth()#
Syntax
crypto_evp_encrypt_auth( ciphername, key, iv, aad, plaintext, encrypted var, tag var )
Returns#
Returns 1 on success, 0 on failure
Parameters#
Parameter | Description |
---|---|
ciphername |
Name of cipher to use. An example is “aes-256-gcm” |
key |
Key value |
iv |
Initial vector |
aad |
Additional authenticated data |
plaintext |
Plaintext to encrypt |
encrypted |
Resulting encrypted value |
tag |
tag value |