PHP Interface Jose\Algorithm\ContentEncryptionAlgorithmInterface

Inheritance: extends Jose\Algorithm\JWAInterface
Afficher le fichier Open project: spomky-labs/jose Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat string

encryptContent() public méthode

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
Résultat string The encrypted data

getCEKSize() public méthode

public getCEKSize ( ) : integer
Résultat integer

getIVSize() public méthode

public getIVSize ( ) : integer | null
Résultat integer | null