D
D
EVICE
RIVERS
cryptoRead()
cryptoRead()
82
M
X
800 S
P
ERIES
ROGRAMMERS
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
File handle
handle
Pointer to the buffer holding the input data
buffer
Maximum number of byes to write
count
Return Values
0
Successful execution
1
File Error, errno is set accordingly.
< 1
System Error
G
UIDE