Botan 3.6.1
Crypto and TLS for C&
blake2bmac.cpp
Go to the documentation of this file.
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
11namespace Botan {
12
13/*
14* Clear memory of sensitive data
15*/
17 m_blake.clear();
18}
19
20/*
21* Return a new_object of this object
22*/
23std::unique_ptr<MessageAuthenticationCode> BLAKE2bMAC::new_object() const {
24 return std::make_unique<BLAKE2bMAC>(m_blake.output_length() * 8);
25}
26
27/*
28* BLAKE2bMAC Constructor
29*/
30BLAKE2bMAC::BLAKE2bMAC(size_t output_bits) : m_blake(output_bits) {}
31
32} // namespace Botan
void clear() override
std::unique_ptr< MessageAuthenticationCode > new_object() const override
BLAKE2bMAC(size_t output_bits=512)
size_t output_length() const override
Definition blake2b.h:36
void clear() override
Definition blake2b.cpp:203