CCMMode

Base class for CCM encryption and decryption @see RFC 3610

Constructors

this
this(BlockCipher cipher, size_t tag_size, size_t L)
Undocumented in source.

Members

Functions

L
size_t L()
Undocumented in source. Be warned that the author may not have intended to support it.
adBuf
const(SecureVector!ubyte) adBuf()
Undocumented in source. Be warned that the author may not have intended to support it.
cipher
BlockCipher cipher()
Undocumented in source. Be warned that the author may not have intended to support it.
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.
encodeLength
void encodeLength(size_t len, ubyte* output)
Undocumented in source. Be warned that the author may not have intended to support it.
formatB0
SecureVector!ubyte formatB0(size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
formatC0
SecureVector!ubyte formatC0()
Undocumented in source. Be warned that the author may not have intended to support it.
inc
void inc(SecureVector!ubyte C)
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.
msgBuf
const(SecureVector!ubyte) msgBuf()
Undocumented in source. Be warned that the author may not have intended to support it.
setAssociatedData
void setAssociatedData(const(ubyte)* ad, size_t length)
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.
update
void update(SecureVector!ubyte buffer, size_t offset)
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 n)
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.

Static variables

BS
size_t BS;
Undocumented in source.

Variables

m_L
size_t m_L;
m_ad_buf
SecureVector!ubyte m_ad_buf;
Undocumented in source.
m_cipher
Unique!BlockCipher m_cipher;
m_msg_buf
SecureVector!ubyte m_msg_buf;
Undocumented in source.
m_nonce
SecureVector!ubyte m_nonce;
Undocumented in source.
m_tag_size
size_t m_tag_size;
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