/** * Internal-use debugging functions for Botan * (C) 2009 Jack Lloyd * * Distributed under the terms of the Botan license */ #ifndef BOTAN_DEBUG_H__ #define BOTAN_DEBUG_H__ #include #include namespace Botan { namespace Debug { template void print_vec(const std::string& name, const T array[], size_t array_len) { std::cout << name << " = "; for(size_t i = 0; i != array_len; ++i) std::cout << std::hex << array[i]; std::cout << std::endl; } template void print_vec(const std::string& name, const MemoryRegion& vec) { print_vec(name, &vec[0], vec.size()); } } } #endif