Common Data Security Architecture (CDSA) White Paper

 

Certificate Library Services (CL) API

INTEL_X509V3_PASSTHROUGH_ENCODE_EXTENSIONS

Function

Encode an array of certificate extensions

Input

Pointer to an array. The first element points to another array containing

 

extensions in the format of X509_EXTENSION. The second element is the

 

total number of extensions.

Output

Pointer to the DER-encoded extensions in the format of CSSM_DATA

INTEL_X509V3_PASSTHROUGH_DECODE_EXTENSIONS

Function

Decode an array of certificate extension

Input

Pointer to an array. The first elements points to another array of

 

DER-encoded extensions in the format of CSSM_DATA as input parameter.

 

The second element points to DER-decoded extension in the format of

 

X509_EXTENSION as output parameter. The third elements contains the

 

number of extensions as output parameter.

Output

Pointer to CSSM_BOOL for success/failure

INTEL_X509V3_PASSTHROUGH_FREE_EXTENSIONS

Function

Free the array of extensions and the pointers inside

Input

Pointer to an array. The first element points to another array containing

 

extensions in the format of X509_EXTENSION. The second element is the

 

total number of extensions.

Output

Pointer to CSSM_BOOL for success/failure

INTEL_X509V3_PASSTHROUGH_ALGID_TO_ALGOID

Function

Convert an alogirithm identifier to the OID/value pair format

Input

Pointer to an integer representing an alogirithm identifier defined in

 

cdsa/cssmtype.h

Output

Pointer to the algorithm identifier in the format of CSSM_OID

INTEL_X509V3_PASSTHROUGH_ALGOID_TO_ALGID

Function

Convert an OID/value pair algorithm identifier to the value defined in

 

cdsa/cssmtype.h

Input

Pointer to the alogrithm identifier in the format of CSSM_OID

Output

Pointer to an integer representing an algorithm identifier defined in

 

cdsa/cssmtype.h

INTEL_X509V3_PASSTHROUGH_ENCODE_ALGID

Chapter 1

43