Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (e - f) encrypt(3)
NAME
encrypt - Encrypts or decrypts an array
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZOSSCSRL
G-series native OSS processes: /G/system/sysnn/zosscsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZOSSCDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zosscdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yosscdll |
SYNOPSIS
#include <unistd.h>
void encrypt(
char block[64],
int edflag);
PARAMETERS
block Specifies a string containing only bytes with a numerical value of 0 (zero) or 1.
edflag Specifies whether to encrypt or decrypt the block array, as follows:
0 Encrypt the array in place.
1 Decrypt the array in place.
DESCRIPTION
The encrypt( ) function encrypts or decrypts data in conformance with domestic encryption stan-
dards. Programs compiled with this version of the function cannot be exported from the United
States of America.
The character array block is modified in place to become a similar array. The basis of the
modification is a key previously specified by a call to the setkey( ) function.
NOTES
The encrypt( ) function can be called only by native processes.
RETURN VALUES
The encrypt( ) function does not return a value. If the call fails, the encrypt( ) function returns a
null pointer.
ERRORS
The HP implementation of encrypt( ) does not set errno.
RELATED INFORMATION
Functions: crypt(3), setkey(3).
STANDARDS CONFORMANCE
The HP implementation of this function does not return errno values.
527187-017 Hewlett-Packard Company 27