Coverage Report

Created: 2023-06-07 07:00

/src/botan/src/lib/mac/blake2mac/blake2bmac.cpp
Line
Count
Source (jump to first uncovered line)
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
namespace Botan {
12
13
/*
14
* Clear memory of sensitive data
15
*/
16
0
void BLAKE2bMAC::clear() { m_blake.clear(); }
17
18
/*
19
* Return a new_object of this object
20
*/
21
0
std::unique_ptr<MessageAuthenticationCode> BLAKE2bMAC::new_object() const {
22
0
   return std::make_unique<BLAKE2bMAC>(m_blake.output_length() * 8);
23
0
}
24
25
/*
26
* BLAKE2bMAC Constructor
27
*/
28
0
BLAKE2bMAC::BLAKE2bMAC(size_t output_bits) : m_blake(output_bits) {}
29
30
}  // namespace Botan