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 |
return | string | The encrypted CEK |