Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

des_key.c File Reference


Detailed Description

This file implements the function fsl_shw_permute1_bytes().

The code was lifted from crypto++ v5.5.2, which is public domain code. The code to handle words instead of bytes was extensively modified from the byte version and then converted to handle one to three keys at once.

Definition in file des_key.c.

#include "shw_driver.h"
#include <asm/types.h>
#include <linux/byteorder/little_endian.h>

Go to the source code of this file.

Defines

#define DUMP_BYTES(label, data, len)
#define DUMP_WORDS(label, data, len)

Functions

void fsl_shw_permute1_bytes (const uint8_t *key, uint8_t *permuted_key, int key_count)

Variables

static const int bytebit []
static const uint8_t pc1 []


Generated by  Doxygen 1.6.0   Back to index