RSA BSAFE Crypto-C

Cryptographic Components for C

Search

A_PKCS_OAEP_PARAMS Struct Reference

This structure holds the information for PKCS V2 OAEP algorithm.

#include <bsafe.h>

typedef struct {

/* hashFunc may contain a NULL_PTR or a pointer to the
  null-terminated ASCII string, "sha1".
  In both cases SHA1 will become the digest function.
*/
char*     hashFunc;
ITEM      hashFuncParams;

/*  maskGenFunc may contain a NULL_PTR or a pointer to the
    null-terminated ASCII string, "mgf1".  In both cases MGF1
  will become the Mask Generator Function.
*/
unsigned char*  maskGenFunc;
ITEM      maskGenFuncParams;

/* maskGenFuncUnderlyingAlg may contain a NULL_PTR or a pointer
   to the null-terminated ASCII string, "sha1".  In both cases
   SHA1 will become the underlying algorithm.
*/
char*       maskGenFuncUnderlyingAlg;
ITEM      maskGenFuncUnderlyingAlgParams;

/* pSourceFunc is the method for determining the parameters, P.
   pSourceFunc may contain a NULL_PTR or a pointer to the
   null-terminated ASCII string, "specified parameters".
   In  both cases "specified parameters" will become the
   pSource method.

If pSourceFunc is "specified parameters" then pSourceParams
may be specified in two ways:

1. As a NULL_PTR.     P is then assumed to be empty.
2. As an ITEM       ITEM contains the specified value for P.
*/

char*     pSourceFunc;
ITEM      pSourceParams;

} A_PKCS_OAEP_PARAMS;

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