000025473 - Hardware Errors using the BHAPI interface in RSA BSAFE Crypto-C

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000025473
Applies ToRSA BSAFE Crypto-C 4.x
RSA BSAFE Crypto-C 5.x
IssueHardware Errors using the BHAPI interface in RSA BSAFE Crypto-C
Creating a library to access BHAPI
How to ensure that any hardware failure errors that are returned are also propagated up to the top level RSA BSAFE Crypto-C API's
A BE_HARDWARE error when the hardware fails from the BHAPI library; however, RSA BSAFE Crypto-C is reporting a BE_DATA error at the top level APIs
CauseAt the lower level, RSA BSAFE Crypto-C uses different error codes. When a BE_HARDWARE error is being propagated up this error is not recognized and so it turns into a generic BE_DATA error.
ResolutionWhen returning an error code you should return an AE_HARDWARE error. This will then be propagated up to a BE_HARDWARE error code.
Legacy Article IDa2277

Attachments

    Outcomes