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

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

공개 메소드들

메소드 설명
unwrapAgreementKey ( Jose\Object\JWKInterface $receiver_key, string $encrypted_cek, integer $encryption_key_length, array $complete_header ) : string Unwrap the agreement key.
wrapAgreementKey ( Jose\Object\JWKInterface $receiver_key, string $cek, integer $encryption_key_length, array $complete_header, array &$additional_header_values ) : string Wrap the agreement key.

메소드 상세

unwrapAgreementKey() 공개 메소드

Unwrap the agreement key.
public unwrapAgreementKey ( Jose\Object\JWKInterface $receiver_key, string $encrypted_cek, integer $encryption_key_length, array $complete_header ) : string
$receiver_key Jose\Object\JWKInterface The receiver's key
$encrypted_cek string The encrypted CEK
$encryption_key_length integer Size of the key expected for the algorithm used for data encryption
$complete_header array The complete header of the JWT
리턴 string The decrypted CEK

wrapAgreementKey() 공개 메소드

Wrap the agreement key.
public wrapAgreementKey ( Jose\Object\JWKInterface $receiver_key, string $cek, integer $encryption_key_length, array $complete_header, array &$additional_header_values ) : string
$receiver_key Jose\Object\JWKInterface The receiver's key
$cek string The CEK to wrap
$encryption_key_length integer Size of the key expected for the algorithm used for data encryption
$complete_header array The complete header of the JWT
$additional_header_values array Set additional header values if needed
리턴 string The encrypted CEK