THotPDF.AddPubKeyAgreementRecipient Method
Baut einen CMS-KeyAgreeRecipientInfo-Envelope auf, wobei Schlüsselvereinbarungsmaterial vom Aufrufer oder aus einem HSM verwendet wird
Deklaration
procedure AddPubKeyAgreementRecipient(const CertificateDER: array of byte; Permissions: THPDFProtectOptions; Scheme: THPDFPubKeyAgreementScheme; const OriginatorPublicKey, SharedSecret: array of byte);
Verwendungshinweise
- Unterstützte Verfahren sind P-256, P-384, P-521, X25519 und X448
- The certificate algorithm and key size must match
Scheme - The matching X9.63 KDF derives an AES-256 key-encryption key
- Shared Secrets, die nur aus Nullen bestehen, werden abgelehnt, und temporäre Kopien des Secrets werden gelöscht