Jose\Algorithm\KeyEncryption\KeyAgreementWrappingInterface::unwrapAgreementKey PHP Method

unwrapAgreementKey() public method

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
return string The decrypted CEK
    public function unwrapAgreementKey(JWKInterface $receiver_key, $encrypted_cek, $encryption_key_length, array $complete_header);
KeyAgreementWrappingInterface