blob: 89441865000e27c6028830e548a8760185db228b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* Internal-use debugging functions for Botan
* (C) 2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/internal/debug.h>
#include <cstdio>
namespace Botan {
namespace Debug {
void print_vec(const std::string& name,
const byte array[],
size_t array_len)
{
std::printf("%s = ", name.c_str());
for(size_t i = 0; i != array_len; ++i)
std::printf("%02X", array[i]);
std::printf("\n");
}
void print_vec(const std::string& name,
const MemoryRegion<byte>& vec)
{
print_vec(name, &vec[0], vec.size());
}
}
}
|