Inheritance: implements Jose\Algorithm\KeyEncryption\KeyAgreementInterface
Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function unwrapAgreementKey(JWKInterface $receiver_key, $encrypted_cek, $encryption_key_length, array $complete_header)
 {
     $ecdh_es = new ECDHES();
     $agreement_key = $ecdh_es->getAgreementKey($this->getKeyLength(), $this->getAlgorithmName(), $receiver_key, $complete_header);
     $wrapper = $this->getWrapper();
     return $wrapper->unwrap($agreement_key, $encrypted_cek);
 }