ox_des.h | Developers

ox_des.h

Back to the files list

Data Encryption Standard syscalls. More...

Data Structures

struct  cx_des_key_s
 DES key container. More...

Macros

#define CX_DES_BLOCK_SIZE   8
 Block size of the DES in bytes. More...

Typedefs

typedef struct cx_des_key_s cx_des_key_t
 Convenience type. More...

Functions

SYSCALL cx_err_t cx_des_set_key_hw (const cx_des_key_t *keys, uint32_t mode)
 Sets a DES key in hardware. More...
SYSCALL void cx_des_reset_hw (void)
 Resets the DES context. More...
SYSCALL void cx_des_block_hw (const unsigned char *inblock, unsigned char *outblock)
 Encrypts or decrypts a block with DES. More...

Detailed Description

Data Encryption Standard syscalls.

This file contains DES definitions and functions:

  • Set the DES key in memory
  • Encrypt a 64-bit block
  • Reset the DES context

Macro Definition Documentation

CX_DES_BLOCK_SIZE

#define CX_DES_BLOCK_SIZE   8

Block size of the DES in bytes.

Typedef Documentation

cx_des_key_t

typedef struct cx_des_key_s cx_des_key_t

Convenience type.

See cx_des_key_s.

Function Documentation

cx_des_block_hw()

SYSCALL void cx_des_block_hw ( const unsigned char *  inblock,
unsigned char *  outblock 
)

Encrypts or decrypts a block with DES.

Parameters
[in]inblockPointer to the block.
[out]outblockBuffer for the output.

cx_des_reset_hw()

SYSCALL void cx_des_reset_hw ( void  )

Resets the DES context.

cx_des_set_key_hw()

SYSCALL cx_err_t cx_des_set_key_hw ( const cx_des_key_t keys,
uint32_t  mode 
)

Sets a DES key in hardware.

Parameters
[in]keysDES key.
[in]modeOperation for which the key will be used.
Returns
Error code:
  • CX_OK on success
  • INVALID_PARAMETER

Back to the files list


Did you find this page helpful?


How would you improve this page for developers?



Getting Started
Theme Features
Customization

Embedded Apps