Associate a private key with a key‐agreement (KARI) CMS RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_set0_pkey(
    CMS_RecipientInfo* ri,
    EVP_PKEY* pk);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ri

Recipient info that must be of type CMS_RECIPINFO_AGREE.

pk

Private key used for key agreement; ownership transfers to ri (may be NULL to clear).

Created with MrDocs