Get the key‐encryption algorithm and optional UKM from a key‐agreement recipient info.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_get0_alg(
    CMS_RecipientInfo* ri,
    X509_ALGOR** palg,
    ASN1_OCTET_STRING** pukm);

Return Value

1 on success, or 0 if ri is not a key‐agreement recipient info.

Parameters

Name

Description

ri

Recipient info of type CMS_RECIPINFO_AGREE.

palg

Receives the keyEncryptionAlgorithm, or NULL if not requested.

pukm

Receives the user keying material (UKM), or NULL if not requested or absent.

Created with MrDocs