Метод | Описание | |
---|---|---|
decryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string $tag ) : string | Decrypt data. | |
encryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string &$tag ) : string | Encrypt data. | |
getCEKSize ( ) : integer | ||
getIVSize ( ) : integer | null |
public decryptContent ( string $data, string $cek, string $iv, string | null $aad, string $encoded_protected_header, string $tag ) : string | ||
$data | string | The data to decrypt |
$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 |
Результат | string |
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 |
Результат | string | The encrypted data |