Appendix D. Triple-DES Source Listings

DES_HW.C

 ////////////////////////////////////////////////////////////////// // 3DES encryption example. // // Copyright(c) 2003-2004 Impulse Accelerated Technologies, Inc. // // This implementation is based on public domain C source code by // P. Karn and is similar to the algorithm described in Part V of // Applied Cryptography by Bruce Schneier. // #ifdef WIN32 #include <windows.h> #endif #include <stdio.h> #include "co.h" #include "co_math.h" #include "cosim_log.h" #include "des.h" #define BUFSIZE 16 /* buffer size for FIFO in hardware */ extern void des_producer(co_stream config_out_encrypt, co_stream config_out_decrypt, co_stream blocks_out, co_signal encrypt_c, co_parameter blocks_param); extern void ...

Get Practical FPGA Programming in C now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.