Coverage Report

Created: 2021-01-13 07:05

/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
void BLAKE2bMAC::clear()
17
0
   {
18
0
   m_blake.clear();
19
0
   }
20
21
/*
22
* Return a clone of this object
23
*/
24
MessageAuthenticationCode* BLAKE2bMAC::clone() const
25
0
   {
26
0
   return new BLAKE2bMAC(m_blake.output_length() * 8);
27
0
   }
28
29
/*
30
* BLAKE2bMAC Constructor
31
*/
32
BLAKE2bMAC::BLAKE2bMAC(size_t output_bits) :
33
       m_blake(output_bits)
34
0
   {
35
0
   }
36
37
}