AlgorithmFactory

Algorithm Factory

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addBlockCipher
void addBlockCipher(BlockCipher block_cipher, string provider)

Add a new block cipher

addEngine
void addEngine(Engine engine)
addHashFunction
void addHashFunction(HashFunction hash, string provider)

Add a new hash

addMac
void addMac(MessageAuthenticationCode mac, string provider)
addPbkdf
void addPbkdf(PBKDF pbkdf, string provider)

Add a new Pbkdf

addStreamCipher
void addStreamCipher(StreamCipher stream_cipher, string provider)

Add a new stream cipher

clearCaches
void clearCaches()

Clear out any cached objects

makeBlockCipher
BlockCipher makeBlockCipher(string algo_spec, string provider)

Makes a ready-to-use block cipher according to its name

makeHashFunction
HashFunction makeHashFunction(string algo_spec, string provider)

Return a new object corresponding to this request

makeMac
MessageAuthenticationCode makeMac(string algo_spec, string provider)

Return a new object corresponding to this request

makePbkdf
PBKDF makePbkdf(string algo_spec, string provider)

Returns a new Pbkdf object corresponding to this request

makeStreamCipher
StreamCipher makeStreamCipher(string algo_spec, string provider)

Return a new stream cipher corresponding to this request

prototypeBlockCipher
const(BlockCipher) prototypeBlockCipher(string algo_spec, string provider)

Prototypical block cipher retrieval by name, it must be cloned to be used

prototypeHashFunction
const(HashFunction) prototypeHashFunction(string algo_spec, string provider)

Return the prototypical object corresponding to this request (if found)

prototypeMac
const(MessageAuthenticationCode) prototypeMac(string algo_spec, string provider)

Return the prototypical object corresponding to this request

prototypePbkdf
const(PBKDF) prototypePbkdf(string algo_spec, string provider)

Return the prototypical object corresponding to this request

prototypeStreamCipher
const(StreamCipher) prototypeStreamCipher(string algo_spec, string provider)

Return the prototypical stream cipher corresponding to this request

providersOf
Vector!string providersOf(string algo_spec)

Possible providers of a request assuming you don't have different types by the same name

setPreferredProvider
void setPreferredProvider(string algo_spec, string provider)

Set the preferred provider for an algorithm

Properties

engines
Vector!Engine engines [@property getter]

List of engines available

Meta