RSA BSAFE Crypto-C

Cryptographic Components for C

Search

Error Identifiers

This section outlines the error codes returned, enabling identification of specific errors.

Defines

#define BE_ALGORITHM_ALREADY_SET
 Indicates that the value of the algorithm object has already been set by a call to B_SetAlgorithmInfo() or by algorithm parameter generation.

#define BE_ALGORITHM_INFO
 Indicates that there is an invalid format for the AI in the algorithm object.

#define BE_ALGORITHM_NOT_INITIALIZED
 Indicates that the algorithm object has not been initialized by a call to the initialization procedure.

#define BE_ALGORITHM_NOT_SET
 Indicates that the algorithm object has not been set by a call to B_SetAlgorithmInfo().

#define BE_ALGORITHM_OBJ
 Indicates an invalid algorithm object.

#define BE_ALG_OPERATION_UNKNOWN
 Indicates an unknown operation for an algorithm or AI.

#define BE_ALLOC
 Indicates that there is insufficient memory for the operation.

#define BE_CANCEL
 Indicates that the operation was canceled by the surrender function.

#define BE_DATA
 Indicates a generic data error.

#define BE_EXPONENT_EVEN
 Indicates an invalid even value for the public exponent in key pair generation.

#define BE_EXPONENT_LEN
 Indicates an invalid exponent length for the public exponent in key pair generation.

#define BE_HARDWARE
 Indicates a cryptographic hardware error.

#define BE_INPUT_DATA
 Indicates an invalid encoding format for input data.

#define BE_INPUT_LEN
 Indicates an invalid total length for input data.

#define BE_KEY_ALREADY_SET
 Indicates that the value of the key object has already been set by a call to B_SetKeyInfo() or by key generation.

#define BE_KEY_INFO
 Indicates an invalid format for the KI in the key object.

#define BE_KEY_LEN
 Indicates an invalid key length.

#define BE_KEY_NOT_SET
 Indicates that the key object has not been set by a call to B_SetKeyInfo() or by key generation.

#define BE_KEY_OBJ
 Indicates an invalid key object.

#define BE_KEY_OPERATION_UNKNOWN
 Indicates an unknown operation for a KI.

#define BE_MEMORY_OBJ
 Indicates an invalid internal memory object.

#define BE_MODULUS_LEN
 Indicates an unsupported modulus length for a key or algorithm parameters.

#define BE_NOT_INITIALIZED
 Indicates that the algorithm is not properly initialized.

#define BE_NOT_SUPPORTED
 Indicates that the algorithm chooser does not support the KI in the key object for the specified algorithm.

#define BE_OUTPUT_LEN
 Indicates that the maximum size of the output buffer is too small to receive the output.

#define BE_OVER_32K
 Indicates that the data block exceeds 32,767 Bytes.

#define BE_RANDOM_NOT_INITIALIZED
 Indicates that the random algorithm has not been initialized by a call to B_RandomInit().

#define BE_RANDOM_OBJ
 Indicates an invalid algorithm object for the random algorithm.

#define BE_SIGNATURE
 Indicates that the signature does not verify.

#define BE_WRONG_ALGORITHM_INFO
 Indicates that the required AI is not in the algorithm object.

#define BE_WRONG_KEY_INFO
 Indicates that the required KI is not in the key object.

#define BE_INPUT_COUNT
 Indicates that update was called an invalid number of times for inputting data.

#define BE_OUTPUT_COUNT
 Indicates that update was called an invalid number of times for outputting data.

#define BE_METHOD_NOT_IN_CHOOSER
 Indicates that the algorithm chooser does not contain the AM for the algorithm specified by the previous call to B_SetAlgorithmInfo().

#define BE_KEY_WEAK
 Indicates that the key data supplied generates a known weak key.

#define BE_EXPONENT_ONE
 Indicates that the value of the public exponent cannot be 1.

#define BE_BAD_POINTER
 Indicates an invalid pointer.

#define BE_BAD_PASSPHRASE
 Indicates an invalid password.

#define BE_AM_DOMESTIC_ONLY
 Indicates that an attempt was made to call an unavailable function in the export version of Crypto-C.

#define BE_BAD_SEEDING
 Indicates that bad seeding was passed to AI_X931Random.

#define BE_BER_HAS_NO_OID
 Indicates that the given encoding contains no OID for B_DecodeAlgorithmBER().

#define BE_BER_OID_NOT_IN_LIST
 Indicates that the given encoding contains an OID unknown to Crypto-C for B_DecodeAlgorithmBER().

#define BE_BER_FIELDS_TOO_LONG
 Indicates that when decoding a BER-encoding the length of an element is described by more than 4 Bytes (4,294,967,295 Bytes) and is too long for Crypto-C to handle.

#define BE_HASH_DF_BAD_REQUEST
 Indicates too many bits requested from Hash_DF.

#define BE_EC_RAND_CURVE
 Indicates no curve available for requested strength.

#define BE_RAND_ENTROPY
 Indicates entropy failure for random generator.

#define BE_RAND_RESEED
 Reseed interval reached, DBRG can no longer be used. More...

#define BE_RAND_NOSELFTEST
 Indicates missing selftest vectors for the random generator selftests.

#define BE_RAND_SELFTEST_FAILED
 Indicates a selftest failure for the random generator.


Define Documentation

#define BE_RAND_RESEED
 

Reseed interval reached, DBRG can no longer be used. Please RESEED or Reinstatiate.


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