EasyManua.ls Logo

VeriFone MX800 Series - Sha1()

VeriFone MX800 Series
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DEVICE DRIVERS
SHA1()
84 M
X
800 SERIES PROGRAMMERS GUIDE
SHA1()
This function performs a SHA-1 computation as described in FIPS PUB 180-2. It
returns a 20-byte message digest. Due to the underlying messaging interface, it
can process a maximum of 1024 bytes per call.
Prototype
int SHA1 (unsigned char * int option, unsigned char * input_buffer,
unsigned long nb, unsigned char * sha20)
Parameters
Return Values
option
input_buffer Pointer to the input buffer holding the message to be processed.
nb Number of bytes in the buffer. Maximum value is 1024.
sha20 Pointer to the 20-byte buffer where the message digest will be
transferred.
0 Successful execution
< 0 Error
SHA1INIT First call. The SHA-1 engine is initialized before
processing the data. No digest is returned.
SHA1BUFF Intermediate call. It feeds the SHA-1 engine more
data. No digest is returned.
SHA1TERM Final call. The 20-byte digest is returned after the
data is processed.
SHA1ALL One-step operation combining all the options
above.

Table of Contents

Other manuals for VeriFone MX800 Series

Related product manuals