PHP 인터페이스 Jose\Algorithm\KeyEncryption\KeyWrappingInterface

상속: extends Jose\Algorithm\KeyEncryptionAlgorithmInterface
파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
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