#include "xf_security/ecb.hpp"
static void desEcbDecrypt ( hls::stream <ap_uint <64>>& ciphertextStrm, hls::stream <bool>& endCiphertextStrm, hls::stream <ap_uint <64>>& cipherkeyStrm, hls::stream <ap_uint <64>>& plaintextStrm, hls::stream <bool>& endPlaintextStrm )
desEcbDecrypt is ECB decryption mode with DES single block cipher.
The algorithm reference is : “Recommendation for Block Cipher Modes of Operation - Methods and Techniques” The implementation is modified for better performance.
Parameters:
ciphertextStrm | Input block stream to be decrypted, each block is 64 bits. |
endCiphertextStrm | End flag of block stream ciphertext, 1 bit. |
cipherkeyStrm | Input cipher key used in decryption, 64 bits for each key. |
plaintextStrm | Output decrypted block stream text, each block is 64 bits. |
endPlaintextStrm | End flag of block stream plaintext, 1 bit. |