ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt

SummerySummery

Authenticated Encryption with Associated Data: Decryption

Syntax

ParagonIE_Sodium_Compat::crypto_aead_aes256gcm_decrypt( string $ciphertext = '', string $assocData = '', string $nonce = '', string $key = '' )

DescriptionDescription

Algorithm: AES-256-GCM

This mode uses a 64-bit random nonce with a 64-bit counter. IETF mode uses a 96-bit random nonce with a 32-bit counter.

ParametersParameters

$ciphertext

(string) (Optional) Encrypted message (with Poly1305 MAC appended)

Default value: ''

$assocData

(string) (Optional) Authenticated Associated Data (unencrypted)

Default value: ''

$nonce

(string) (Optional) Number to be used only Once; must be 8 bytes

Default value: ''

$key

(string) (Optional) Encryption key

Default value: ''

ReturnReturn

(string|bool) The original plaintext message

SourceSource

File: wp-includes/sodium_compat/src/Compat.php


			
Scroll to Top