HP 3000 Manuals

encrypt [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

encrypt 

Encrypts a block of data.

Syntax 

     void encrypt (char *block, int edflag);

Parameters 

block         A pointer to the character array that is encrypted.

edflag        An integer that is ignored by the function.

Return Values 

None.

Description 

The encrypt function scrambles the data in block using the same hashing
algorithm used by crypt().  The encrypt function performs a one-way
encryption on the supplied data in block using an encryption key
previously defined to the encryption algorithm using setkey.

The argument to encrypt is an 8-byte character array.  The array is
treated as a binary number.  The argument array is modified in place to a
similar array representing the bits of the argument after having been
subjected to the hashing algorithm using the key set by setkey.

See Also 

crypt(), setkey()



MPE/iX 5.0 Documentation