Filters
Stream Cipher Filter
Write input data
| const(ubyte)* input | data |
| size_t length | length of input in bytes |
Set the initialization vector for this filter.
| InitializationVector iv | the initialization vector to set |
Set the key of this filter.
| SymmetricKey key | the key to set |
Construct a stream cipher filter.
| StreamCipher stream_cipher | a cipher object to use |
Construct a stream cipher filter.
| StreamCipher stream_cipher | a cipher object to use |
| SymmetricKey key | the key to use inside this filter |
Construct a stream cipher filter.
| string sc_name | the name of the desired cipher |
Construct a stream cipher filter.
| string sc_name | the name of the desired cipher |
| SymmetricKey key | the key to use inside this filter |
Hash Filter.
Construct a hash filter.
| HashFunction hash_fun | the hash function to use |
| size_t len | the output length of this filter. Leave the default value 0 if you want to use the full output of the hashfunction hash. Otherwise, specify a smaller value here so that the output of the hash algorithm will be cut off. |
Construct a hash filter.
| string algo_spec | the name of the hash algorithm to use |
| size_t len | the output length of this filter. Leave the default value 0 if you want to use the full output of the hashfunction hash. Otherwise, specify a smaller value here so that the output of the hash algorithm will be cut off. |
MessageAuthenticationCode Filter.
Set the key of this filter.
| SymmetricKey key | the key to set |
Construct a MAC filter. The MAC key will be left empty.
| MessageAuthenticationCode mac_obj | the MAC to use |
| size_t out_len | the output length of this filter. Leave the default value 0 if you want to use the full output of the MAC. Otherwise, specify a smaller value here so that the output of the MAC will be cut off. |
Construct a MAC filter.
| MessageAuthenticationCode mac_obj | the MAC to use |
| SymmetricKey key | the MAC key to use |
| size_t out_len | the output length of this filter. Leave the default value 0 if you want to use the full output of the MAC. Otherwise, specify a smaller value here so that the output of the MAC will be cut off. |
Construct a MAC filter. The MAC key will be left empty.
| string mac_name | the name of the MAC to use |
| size_t len | the output length of this filter. Leave the default value 0 if you want to use the full output of the MAC. Otherwise, specify a smaller value here so that the output of the MAC will be cut off. |
Construct a MAC filter.
| string mac_name | the name of the MAC to use |
| SymmetricKey key | the MAC key to use |
| size_t len | the output length of this filter. Leave the default value 0 if you want to use the full output of the MAC. Otherwise, specify a smaller value here so that the output of the MAC will be cut off. |