DEVICE DRIVERS
cryptoRead()
82 M
X
800 SERIES PROGRAMMERS GUIDE
cryptoRead()
crypto_read reads a maximum of count bytes of encrypted data from the open
file associated with handle, decrypts the data and stores the result in buffer. It
returns the number of bytes actually read, which may be less than count if fewer
bytes are available.
Prototype
int cryptoRead (int handle, char *buffer, int count)
Parameters
Return Values
handle File handle
buffer Pointer to the buffer holding the input data
count Maximum number of byes to write
0 Successful execution
1 File Error, errno is set accordingly.
< 1 System Error