@CHIP-RTOS C Library - TCP/IP API
Crypt_DES_Encrypt
Encrypt one cipher block of data using DES
encryption method. int far Crypt_DES_Encrypt (
const Crypt_DesKeyScheduleS far *schedule,
const void far *in,
void far *out ) ; Parameters
schedule
- Pointer to
DES
subkey schedule
generated by
Crypt_DES_MakeKey().
in
- Pointer to 8 byte clear text to
be encrypted
out
- Pointer to 8 byte buffer where the resulting
decrypted clear text will be written by this API.
Return Value
- 0 constant (provisional error code)
Comments
- This API encrypts one 8 byte cipher block of data using the DES encryption
method. It can be called repeatedly until your entire message has
been encrypted. When your message is not an integral number of 8 byte
blocks in length, then you must pad the final block with some pattern
agreed upon with your decryption side.
The DES cipher treats data as little endian long words. Any required
data endian handling is done inside this API, so the caller must not perform
any such handling on their side. (Since the @CHIP-RTOS-x86
CPU is itself little
endian, this note applies only for code which is to be ported to big
endian Beck platforms.)
The in and out parameters may reference the same location.
Go here for a summary of
cipher method execution times.
See Also
RTOS API
- On the first call, this library function invokes a software
interrupt
which modifies the code at the calling site inside your application
program. A direct FAR JMP into the @CHIP-RTOS-x86
implementation for this function is installed so that on
return and on any subsequent calls to this API this
dynamic link reaches the function's
implementation directly.
Supported since or modified in @CHIP-RTOS version-
| SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
| n/a | n/a | n/a | V1.35 | V1.35 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|