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

randombit / botan / 27737522519

18 Jun 2026 02:59AM UTC coverage: 89.397% (-2.3%) from 91.708%
27737522519

push

github

randombit
Remove unused member variable from Encrypted_PSK_Database

111425 of 124641 relevant lines covered (89.4%)

11108238.09 hits per line

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

91.67
/src/lib/mac/blake2mac/blake2bmac.cpp
1
/*
2
* BLAKE2b MAC
3
* (C) 1999-2007,2014 Jack Lloyd
4
* (C) 2020           Tom Crowley
5
*
6
* Botan is released under the Simplified BSD License (see license.txt)
7
*/
8

9
#include <botan/internal/blake2bmac.h>
10

11
#include <botan/exceptn.h>
12

13
namespace Botan {
14

15
void BLAKE2bMAC::start_msg(std::span<const uint8_t> nonce) {
3,527✔
16
   if(!nonce.empty()) {
3,527✔
17
      throw Invalid_IV_Length(name(), nonce.size());
×
18
   }
19
   assert_key_material_set();
3,527✔
20
   m_blake.state_init();
3,527✔
21
}
3,527✔
22

23
/*
24
* Clear memory of sensitive data
25
*/
26
void BLAKE2bMAC::clear() {
546✔
27
   m_blake.clear();
546✔
28
}
546✔
29

30
/*
31
* Return a new_object of this object
32
*/
33
std::unique_ptr<MessageAuthenticationCode> BLAKE2bMAC::new_object() const {
273✔
34
   return std::make_unique<BLAKE2bMAC>(m_blake.output_length() * 8);
273✔
35
}
36

37
/*
38
* BLAKE2bMAC Constructor
39
*/
40
BLAKE2bMAC::BLAKE2bMAC(size_t output_bits) : m_blake(output_bits) {}
819✔
41

42
}  // 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