Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
setkey()
Set the key used in encryption
Synopsis:
#include <stdlib.h> void setkey( const char *__key );
Arguments:
- __key
- A 64-character array of binary values (numeric 0 or 1).
Library:
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). |
Description:
The setkey() function allows limited access to the NBS Data Encryption Standard (DES) algorithm itself. It derives a 56-bit key from the given __key by dividing the array into groups of 8 and ignoring the last bit in each group.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
