|
| B_VerifyFinal |
|
| |
B_VerifyFinal |
| |
|
| |
int B_VerifyFinal ( |
| |
B_ALGORITHM_OBJ algorithmObject, | /* algorithm object */ | |
unsigned char | *signature, | /* signature to verify */ |
unsigned int | signatureLen, | /* length of signature */ |
B_ALGORITHM_OBJ | randomAlgorithm, | /* random byte source */ |
A_SURRENDER_CTX *surrenderContext | /* surrender context */ | |
); |
|
|
|
|
|
Description
B_VerifyFinal finalizes the digesting process for algorithmObject and verifies the digital signature supplied by signature of signatureLen bytes. The algorithm object for supplying random numbers is randomAlgorithm; it may be (B_ALGORITHM_OBJ)NULL_PTR for signature algorithms that do not need random numbers. The surrender context for processing and canceling during lengthy operations is surrenderContext; if its value is (A_SURRENDER_CTX *)NULL_PTR, Crypto- C does not use it. algorithmObject is reset to the state it was in after the call to
, so that another verifying process may be performed. See
.
Return value
Value | Description |
0 | Operation was successful. |
see Appendix A, | |
|
|
C h a p t e r 4 D e t a i l s o f C r y p t o - C F u n c t i o n s | 337 |