OCBMode

OCB Mode (base class for OCBEncryption and OCBDecryption). Note that OCB is patented, but is freely licensed in some circumstances.

@see "The OCB Authenticated-Encryption Algorithm" internet draft http://tools.ietf.org/html/draft-irtf-cfrg-ocb-03

@see Free Licenses http://www.cs.ucdavis.edu/~rogaway/ocb/license.htm @see OCB home page http://www.cs.ucdavis.edu/~rogaway/ocb

Constructors

this
this(BlockCipher cipher, size_t tag_size)

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
defaultNonceLength
size_t defaultNonceLength()
Undocumented in source. Be warned that the author may not have intended to support it.
keySchedule
void keySchedule(const(ubyte)* key, size_t length)
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.
setAssociatedData
void setAssociatedData(const(ubyte)* ad, size_t ad_len)
Undocumented in source. Be warned that the author may not have intended to support it.
startRaw
SecureVector!ubyte startRaw(const(ubyte)* nonce, size_t nonce_len)
Undocumented in source. Be warned that the author may not have intended to support it.
tagSize
size_t tagSize()
Undocumented in source. Be warned that the author may not have intended to support it.
updateGranularity
size_t updateGranularity()
Undocumented in source. Be warned that the author may not have intended to support it.
validNonceLength
bool validNonceLength(size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

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

Variables

m_BS
size_t m_BS;
Undocumented in source.
m_L
Unique!LComputer m_L;
Undocumented in source.
m_ad_hash
SecureVector!ubyte m_ad_hash;
Undocumented in source.
m_block_index
size_t m_block_index;
Undocumented in source.
m_checksum
SecureVector!ubyte m_checksum;
Undocumented in source.
m_cipher
Unique!BlockCipher m_cipher;
Undocumented in source.
m_offset
SecureVector!ubyte m_offset;
Undocumented in source.

Inherited Members

From AEADMode

authenticated
bool authenticated()
Undocumented in source. Be warned that the author may not have intended to support it.
setAssociatedData
void setAssociatedData(const(ubyte)* ad, size_t ad_len)

Set associated data that is not included in the ciphertext but that should be authenticated. Must be called after setKey and before finish.

setAssociatedDataVec
void setAssociatedDataVec(Vector!(ubyte, Alloc) ad)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultNonceLength
size_t defaultNonceLength()

Default AEAD nonce size (a commonly supported value among AEAD modes, and large enough that random collisions are unlikely).

tagSize
size_t tagSize()

Return the size of the authentication tag used (in bytes)

Meta