RSA BSAFE Crypto-C

Cryptographic Components for C

Search

RSAES-OAEP OID

This section demonstrates how the BER-encoding of RSA public keys can also be built with the RSAES-OAEP OID.

To build a BER-encoded RSA public key with RSAES_OAEP OID

  1. Start with an existing key object.

    Build an RSA public key using a KI such as KI_RSAPublic. Call B_SetKeyInfo() with the key object using KI_RSAPublicOAEPParams to add the OAEP parameters if using parameters other than the default values.

    The default values are:

    This provides the key object set with the RSA public key information and the OAEP information.

  2. Use KI_RSAPublicOAEP_BER to call B_GetKeyInfo() with the key object.

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