nn::crypto::Aes

nn::crypto::Aes Class

Syntax

template <size_t KeySize>
class Aes : public nn::crypto::BlockCipher

Template Arguments

Name Description
KeySize Key size in bytes.

Description

Class for implementing AES ciphers.

Derived class from the BlockCipher class. Implements the AES (Rijndael) cipher.

You should not use the Encrypt or Decrypt functions in this class unless you know enough about encryption and have a firm understanding of what you are doing.

This class is a template class that has the key size as a template parameter. Use the Aes128, Aes192, or Aes256 types when actually using.

Member Constants

S BLOCK_SIZE const size_t Constant representing the block size.
S KEY_SIZE const size_t Constant representing the key size.

Member Functions

V GetBlockSize Gets the block size.
V GetKeySize Gets the key size in bytes.
V SetKey Sets the key.
V Encrypt Encrypts using the AES algorithm.
V Decrypt Decrypts using the AES algorithm.

Class Hierarchy

nn::crypto::BlockCipher
  nn::crypto::Aes

Revision History

2011/10/27
Initial version.

CONFIDENTIAL