SharkSSL™ Embedded SSL/TLS Stack

DES. More...

Data Structures

struct  SharkSslDesCtx
 DES. More...
 

Typedefs

typedef struct SharkSslDesCtx SharkSslDesCtx
 DES.
 

Functions

SHARKSSL_API void SharkSslDesCtx_constructor (SharkSslDesCtx *ctx, SharkSslDesCtx_Type type, const U8 *key, U8 keyLen)
 Initialize. More...
 
SHARKSSL_API void SharkSslDesCtx_encrypt (SharkSslDesCtx *ctx, const U8 input[8], U8 output[8])
 Encrypt.
 
SHARKSSL_API void SharkSslDesCtx_decrypt (SharkSslDesCtx *ctx, U8 input[8], U8 output[8])
 Decrypt.
 
SHARKSSL_API void SharkSslDesCtx_cbc_encrypt (SharkSslDesCtx *ctx, U8 vect[8], const U8 *input, U8 *output, U16 len)
 Encrypt.
 
SHARKSSL_API void SharkSslDesCtx_cbc_decrypt (SharkSslDesCtx *ctx, U8 vect[8], const U8 *input, U8 *output, U16 len)
 Decrypt.
 

Detailed Description

DES.

Function Documentation

◆ SharkSslDesCtx_constructor()

SHARKSSL_API void SharkSslDesCtx_constructor ( SharkSslDesCtx ctx,
SharkSslDesCtx_Type  type,
const U8 *  key,
U8  keyLen 
)

Initialize.

Parameters
ctxUninitialized data of size sizeof(SharkSslDesCtx)
typeencrypt/decrypt
keythe encryption/decryption key
keyLen'key' length