getCipher

Factory method for general symmetric cipher filters.

Parameters

algo_spec string

the name of the desired cipher

key SymmetricKey

the key to be used for encryption/decryption performed by the filter

direction CipherDir

determines whether the filter will be an encrypting or decrypting filter

Return Value

pointer to the encryption or decryption filter

Meta