template class xf::security::aesEnc

#include "aes.hpp"

Overview

AES encryption.

Parameters:

W Bit width of AES key, which is 128, 192 or 256
template <int W>
class aesEnc

Methods

updateKey

void updateKey (ap_uint <W> cipherkey)

Update key before using it to encrypt.

Parameters:

cipherkey Key to be used in encryption.

process

void process (
    ap_uint <128> plaintext,
    ap_uint <W> cipherkey,
    ap_uint <128>& ciphertext
    )

Encrypt message using AES algorithm.

Parameters:

plaintext Message to be encrypted.
cipherkey Key to be used in encryption.
ciphertext Encryption result.