diff options
author | Jack Lloyd <[email protected]> | 2018-08-17 17:51:14 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-17 17:51:14 -0400 |
commit | d1dfc93595098f75d6dc0c461f833627252fbf4e (patch) | |
tree | bf921df789e7d0066308a75016f6aeb569865380 /src/lib/modes/xts/xts.h | |
parent | 2c1f5b5fb8288fd8d48fcb9d0a7586609169a96f (diff) |
Have cipher modes also verify that the nonce is set prior to use
Diffstat (limited to 'src/lib/modes/xts/xts.h')
-rw-r--r-- | src/lib/modes/xts/xts.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/modes/xts/xts.h b/src/lib/modes/xts/xts.h index 4b25a8294..1fd86b2f4 100644 --- a/src/lib/modes/xts/xts.h +++ b/src/lib/modes/xts/xts.h @@ -41,6 +41,8 @@ class BOTAN_PUBLIC_API(2,0) XTS_Mode : public Cipher_Mode const uint8_t* tweak() const { return m_tweak.data(); } + bool tweak_set() const { return m_tweak.empty() == false; } + const BlockCipher& cipher() const { return *m_cipher; } void update_tweak(size_t last_used); |