![]() |
![]() |
![]() |
![]() |
Encrypt a string
#include <unistd.h>
void encrypt( char block[64],
int flag );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
![]() |
This function is in libc.a, but not in libc.so (in order to save space). |
The encrypt() function uses the NBS Data Encryption Standard (DES) algorithm and the key you specify by calling setkey() to encrypt the given block of data.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |