RSA BSAFE Crypto-C

Cryptographic Components for C

Search

KI_PKCS_RSAPrivateBER

Parses and creates an ASN.1 KI that is encoded with the PKCS #8 standard. Call B_SetKeyInfo() to initialize a key object from the encoded KI that includes the modulus, exponents, two primes and CRT information. Call B_GetKeyInfo() with this KI to create an encoded KI from a key object created using KI_PKCS_RSAPrivate, KI_PKCS_RSAPrivateBER or KI_RSA_CRT.

This KI is similar to KI_PKCS_RSAPrivate except that it uses the ASN.1 BER format.

It may have been set by one of the following:

The OID for RSA PKCS #1 encryption, excluding the tag and length Bytes, in decimal, is 42, 134, 72, 134, 247, 13, 1, 1, 1.

info Format

B_SetKeyInfo() A pointer to ITEM that gives the address and length of the BER encoding. The encoding is converted to DER before it is copied to the key object.
Returns BE_WRONG_KEY_INFO if the PrivateKeyInfo specifies a private key for an algorithm other than the RSA algorithm.
B_GetKeyInfo() A pointer to ITEM that provides the address and length of the DER-encoding.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 068-001001-6210-001-000 - 6.2.1