Engine

Base class for all engines. All non-pure abstract functions simply return NULL, indicating the algorithm in question is not supported. Subclasses can reimplement whichever function(s) they want to hook in a particular type.

Members

Functions

findBlockCipher
BlockCipher findBlockCipher(SCANToken algo_spec, AlgorithmFactory af)
findHash
HashFunction findHash(SCANToken algo_spec, AlgorithmFactory af)
findMac
MessageAuthenticationCode findMac(SCANToken algo_spec, AlgorithmFactory af)
findPbkdf
PBKDF findPbkdf(SCANToken algo_spec, AlgorithmFactory af)
findStreamCipher
StreamCipher findStreamCipher(SCANToken algo_spec, AlgorithmFactory af)
getCipher
KeyedFilter getCipher(string algo_spec, CipherDir dir, AlgorithmFactory af)

Return a new cipher object

getDecryptionOp
Decryption getDecryptionOp(PrivateKey key, RandomNumberGenerator rng)

Return a new operator object for this key, if possible

getEncryptionOp
Encryption getEncryptionOp(PublicKey key, RandomNumberGenerator rng)

Return a new operator object for this key, if possible

getKeyAgreementOp
KeyAgreement getKeyAgreementOp(PrivateKey key, RandomNumberGenerator rng)

Return a new operator object for this key, if possible

getSignatureOp
Signature getSignatureOp(PrivateKey key, RandomNumberGenerator rng)

Return a new operator object for this key, if possible

getVerifyOp
Verification getVerifyOp(PublicKey key, RandomNumberGenerator rng)

Return a new operator object for this key, if possible

modExp
ModularExponentiator modExp(BigInt n, PowerMod.UsageHints hints)
providerName
string providerName()

Meta