public encryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string &$tag ) : string | ||
$data | string | The data to encrypt |
$cek | string | The content encryption key |
$iv | string | The Initialization Vector |
$aad | string | null | Additional Additional Authenticated Data |
$encoded_protected_header | string | The Protected Header encoded in Base64Url |
$tag | string | Tag |
return | string | The encrypted data |