lib/3rdParty/composer/web-token/jwt-library/Encryption/Algorithm/KeyEncryption/KeyAgreement.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Jose\Component\Encryption\Algorithm\KeyEncryption; |
| 6 | |
| 7 | use Jose\Component\Core\JWK; |
| 8 | use Jose\Component\Encryption\Algorithm\KeyEncryptionAlgorithm; |
| 9 | |
| 10 | interface KeyAgreement extends KeyEncryptionAlgorithm |
| 11 | { |
| 12 | /** |
| 13 | * Computes the agreement key. |
| 14 | * |
| 15 | * @param array<string, mixed> $completeHeader |
| 16 | * @param array<string, mixed> $additionalHeaderValues |
| 17 | */ |
| 18 | public function getAgreementKey( |
| 19 | int $encryptionKeyLength, |
| 20 | string $algorithm, |
| 21 | JWK $recipientKey, |
| 22 | ?JWK $senderKey, |
| 23 | array $completeHeader = [], |
| 24 | array &$additionalHeaderValues = [] |
| 25 | ): string; |
| 26 | } |