MACFilter

MessageAuthenticationCode Filter.

Constructors

this
this(MessageAuthenticationCode mac_obj, size_t out_len)

Construct a MAC filter. The MAC key will be left empty.

this
this(MessageAuthenticationCode mac_obj, SymmetricKey key, size_t out_len)

Construct a MAC filter.

this
this(string mac_name, size_t len)

Construct a MAC filter. The MAC key will be left empty.

this
this(string mac_name, SymmetricKey key, size_t len)

Construct a MAC filter.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

attachable
bool attachable()
Undocumented in source. Be warned that the author may not have intended to support it.
endMsg
void endMsg()
Undocumented in source. Be warned that the author may not have intended to support it.
keySpec
KeyLengthSpecification keySpec()
Undocumented in source. Be warned that the author may not have intended to support it.
setKey
void setKey(SymmetricKey key)

Set the key of this filter.

setNext
void setNext(Filter* filters, size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
startMsg
void startMsg()
Undocumented in source. Be warned that the author may not have intended to support it.
validIvLength
bool validIvLength(size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(const(ubyte)* input, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From KeyedFilter

setKey
void setKey(SymmetricKey key)

Set the key of this filter

setIv
void setIv(InitializationVector iv)

Set the initialization vector of this filter. Note: you should call setIv() only after you have called setKey()

validKeylength
bool validKeylength(size_t length)

Check whether a key length is valid for this filter

keySpec
KeyLengthSpecification keySpec()
validIvLength
bool validIvLength(size_t length)

Check whether an IV length is valid for this filter

Meta