diff --git a/reference/openssl/functions/openssl-decrypt.xml b/reference/openssl/functions/openssl-decrypt.xml index c90f6ca986..6b0784b4b1 100644 --- a/reference/openssl/functions/openssl-decrypt.xml +++ b/reference/openssl/functions/openssl-decrypt.xml @@ -16,6 +16,8 @@ stringpassword intoptions0 stringiv"" + stringtag"" + stringaad"" Takes a raw or base64 encoded string and decrypts it using a given method and key. @@ -71,6 +73,22 @@ + + tag + + + The authentication tag in AEAD cipher mode. If it is incorrect, the authentication fails and the function returns &false;. + + + + + aad + + + Additional authentication data. + + + @@ -117,6 +135,10 @@ The raw_output was changed to options. + + 7.1.0 + The tag and aad parameters were added. + diff --git a/reference/openssl/functions/openssl-encrypt.xml b/reference/openssl/functions/openssl-encrypt.xml index ebaba71df6..61e303b9b1 100644 --- a/reference/openssl/functions/openssl-encrypt.xml +++ b/reference/openssl/functions/openssl-encrypt.xml @@ -16,6 +16,9 @@ stringpassword intoptions0 stringiv"" + stringtagNULL + stringaad"" + inttag_length16 Encrypts given data with given method and key, returns a raw @@ -69,6 +72,30 @@ + + tag + + + The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM). + + + + + aad + + + Additional authentication data. + + + + + tag_length + + + The length of the authentication tag. Its value can be between 4 and 16 for GCM mode. + + + @@ -115,6 +142,10 @@ The raw_output was changed to options. + + 7.1.0 + The tag, aad and tag_length parameters were added. +