THotPDF.AddPubKeyAgreementRecipient Method
Construit une enveloppe CMS KeyAgreeRecipientInfo à partir d’un matériel d’accord fourni par l’appelant ou dérivé d’un HSM
Déclaration
procedure AddPubKeyAgreementRecipient(const CertificateDER: array of byte; Permissions: THPDFProtectOptions; Scheme: THPDFPubKeyAgreementScheme; const OriginatorPublicKey, SharedSecret: array of byte);
Notes d'utilisation
- Les schémas pris en charge sont P-256, P-384, P-521, X25519 et X448
- The certificate algorithm and key size must match
Scheme - The matching X9.63 KDF derives an AES-256 key-encryption key
- Les secrets partagés entièrement nuls sont rejetés et les copies temporaires des secrets sont effacées