PHP Interface Jose\Algorithm\ContentEncryptionAlgorithmInterface

Inheritance: extends Jose\Algorithm\JWAInterface
显示文件 Open project: spomky-labs/jose Interface Usage Examples

Public Methods

Method Description
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

Method Details

decryptContent() public method

Decrypt data.
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
return string

encryptContent() public method

Encrypt data.
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

getCEKSize() public method

public getCEKSize ( ) : integer
return integer

getIVSize() public method

public getIVSize ( ) : integer | null
return integer | null