www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


Crypt_Blowfish_Encrypt

Encrypt one cipher block of data using BLOWFISH encryption method.

int far Crypt_Blowfish_Encrypt (
             const Crypt_BlowfishKeyS far *subkeys,
             const void far *in,
                   void far *out ) ;

Parameters

subkeys

[in]   Pointer to BLOWFISH subkey schedule generated by Crypt_Blowfish_MakeKey().

in

[in]   Pointer to 8 byte clear text to be encrypted

out

[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 BLOWFISH 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.

This implementation of BLOWFISH uses 16 rounds.

Blowfish treats data as big endian ("network byte order") long words.   Any required data endian handling is done inside this API, so the caller must not perform any such endian swapping on their side.

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

    SC12SC13SC11SC1x3SC2x
    n/an/an/aV1.35V1.35

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.19

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document