blob: 04bb544847580d81ae3df54dcf3731382db19545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
* Stream Cipher Default Implementation for IV and Seek
* (C) 1999-2007 Jack Lloyd
*/
#include <botan/stream_cipher.h>
namespace Botan {
/*************************************************
* Default StreamCipher Resync Operation *
*************************************************/
void StreamCipher::resync(const byte[], u32bit length)
{
if(length)
throw Exception("The stream cipher " + name() +
" does not support resyncronization");
}
/*************************************************
* Default StreamCipher Seek Operation *
*************************************************/
void StreamCipher::seek(u32bit)
{
throw Exception("The stream cipher " + name() + " does not support seek()");
}
}
|