PHP Interface Jose\Algorithm\KeyEncryption\KeyEncryptionInterface

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

Méthodes publiques

Méthode Description
decryptKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $header ) : string Decrypt de CEK.
encryptKey ( Jose\Object\JWKInterface $key, string $cek, array $complete_headers, array &$additional_headers ) : string Encrypt the CEK.

Method Details

decryptKey() public méthode

Decrypt de CEK.
public decryptKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $header ) : string
$key Jose\Object\JWKInterface The key used to wrap the CEK
$encrypted_cek string The CEK to decrypt
$header array The complete header of the JWT
Résultat string The decrypted CEK

encryptKey() public méthode

Encrypt the CEK.
public encryptKey ( Jose\Object\JWKInterface $key, string $cek, array $complete_headers, array &$additional_headers ) : string
$key Jose\Object\JWKInterface The key used to wrap the CEK
$cek string The CEK to encrypt
$complete_headers array The complete header of the JWT
$additional_headers array Additional headers
Résultat string The encrypted CEK