SIVMode

Base class for SIV encryption and decryption (@see RFC 5297)

Constructors

this
this(BlockCipher cipher)
Undocumented in source.

Members

Functions

S2V
SecureVector!ubyte S2V(const(ubyte)* text, size_t text_len)
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.
ctr
StreamCipher ctr()
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.
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 ad_len)
Undocumented in source. Be warned that the author may not have intended to support it.
setAssociatedDataN
void setAssociatedDataN(size_t n, const(ubyte)* ad, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
setCtrIv
void setCtrIv(SecureVector!ubyte V)
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 )
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 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