getCipher

Factory method for general symmetric cipher filters. No key will be set in the filter.

Parameters

algo_spec string

the name of the desired cipher

direction CipherDir

determines whether the filter will be an encrypting or decrypting filter

Return Value

pointer to the encryption or decryption filter

Meta