PHP Интерфейс Jose\Algorithm\KeyEncryption\KeyWrappingInterface

Наследование: extends Jose\Algorithm\KeyEncryptionAlgorithmInterface
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
unwrapKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $complete_headers ) : string Decrypt de CEK.
wrapKey ( Jose\Object\JWKInterface $key, string $cek, array $complete_headers, array &$additional_headers ) : string Encrypt the CEK.

Описание методов

unwrapKey() публичный Метод

Decrypt de CEK.
public unwrapKey ( Jose\Object\JWKInterface $key, string $encrypted_cek, array $complete_headers ) : string
$key Jose\Object\JWKInterface The key used to wrap the CEK
$encrypted_cek string The CEK to decrypt
$complete_headers array The complete header of the JWT
Результат string The decrypted CEK

wrapKey() публичный Метод

Encrypt the CEK.
public wrapKey ( 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 The complete header of the JWT
Результат string The encrypted CEK