Coverage Report

Created: 2021-04-07 06:07

/src/botan/src/lib/base/sym_algo.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* (C) 2018 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#include <botan/sym_algo.h>
8
#include <botan/exceptn.h>
9
10
namespace Botan {
11
12
void SymmetricAlgorithm::throw_key_not_set_error() const
13
0
   {
14
0
   throw Key_Not_Set(name());
15
0
   }
16
17
void SymmetricAlgorithm::set_key(const uint8_t key[], size_t length)
18
33.1k
   {
19
33.1k
   if(!valid_keylength(length))
20
0
      throw Invalid_Key_Length(name(), length);
21
33.1k
   key_schedule(key, length);
22
33.1k
   }
23
24
}