fm.liveswitch.AesCounterContext Class Reference

Context for an AES counter. More...

Public Member Functions

 AesCounterContext (DataBuffer key)
 Initializes a new instance of the AesCounterContext class with default parameters (block size of cryptographic operation = 128 bits, mode of operation = ECB, no padding) More...
 
void clear ()
 
boolean generateKeystream (DataBuffer output, int length, byte[] counter)
 

Detailed Description

Context for an AES counter.

Constructor & Destructor Documentation

◆ AesCounterContext()

fm.liveswitch.AesCounterContext.AesCounterContext ( DataBuffer  key)

Initializes a new instance of the AesCounterContext class with default parameters (block size of cryptographic operation = 128 bits, mode of operation = ECB, no padding)

Parameters
keyThe secret key for the symmetric algorithm.

Member Function Documentation

◆ clear()

void fm.liveswitch.AesCounterContext.clear ( )

◆ generateKeystream()

boolean fm.liveswitch.AesCounterContext.generateKeystream ( DataBuffer  output,
int  length,
byte[]  counter 
)