Chapter 4 Details of Crypto-C Functions 337
B_VerifyFinal
B_VerifyFinal
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
B_VerifyInit, so that another verifying process may be performed. See
B_VerifyInit.
Return value
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 */
);
Value Description
0 Operation was successful.
non-zero see Appendix A, ”Crypto-C Error Types”