aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/stream_cipher.cpp
blob: 9ae548a9e71a9122bcf5db79578a26a6581beac1 (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
/*
* Stream Cipher
* (C) 1999-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#include <botan/stream_cipher.h>

namespace Botan {

void StreamCipher::set_iv(const byte[], u32bit iv_len)
   {
   if(iv_len)
      throw Invalid_Argument("The stream cipher " + name() +
                             " does not support resyncronization");
   }

bool StreamCipher::valid_iv_length(u32bit iv_len) const
   {
   return (iv_len == 0);
   }

}