GCMMode

GCM Mode

Constructors

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

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 )
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_cipher_name
string m_cipher_name;
Undocumented in source.
m_ctr
Unique!StreamCipher m_ctr;
Undocumented in source.
m_ghash
Unique!GHASH m_ghash;
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