/** @file * @author Edouard DUPIN * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ #pragma once #include namespace algue { namespace sha1 { std::vector encode(const uint8_t* _data, int32_t _len); inline std::vector encode(const std::vector& _data) { return algue::sha1::encode(&_data[0], _data.size()); } inline std::vector encode(const std::string& _data) { return algue::sha1::encode(reinterpret_cast(&_data[0]), _data.size()); } } }