• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 5230455705

10 Jun 2023 02:30PM UTC coverage: 91.715% (-0.03%) from 91.746%
5230455705

push

github

randombit
Merge GH #3584 Change clang-format AllowShortFunctionsOnASingleLine config from All to Inline

77182 of 84154 relevant lines covered (91.72%)

11975295.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/lib/base/sym_algo.cpp
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

9
#include <botan/exceptn.h>
10

11
namespace Botan {
12

13
void SymmetricAlgorithm::throw_key_not_set_error() const {
86,940✔
14
   throw Key_Not_Set(name());
173,880✔
15
}
16

17
void SymmetricAlgorithm::set_key(const uint8_t key[], size_t length) {
984,052✔
18
   if(!valid_keylength(length)) {
984,052✔
19
      throw Invalid_Key_Length(name(), length);
×
20
   }
21
   key_schedule(key, length);
984,052✔
22
}
984,052✔
23

24
}  // namespace Botan
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc