LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
sha.hpp
Go to the documentation of this file.
1
7#ifndef SHA_HPP
8#define SHA_HPP
9
10#include <vector>
11#include <cstdint>
12#include <iostream>
14#include "logicalaccess/plugins/crypto/lla_crypto_api.hpp"
15
16namespace logicalaccess
17{
18namespace openssl
19{
25LLA_CRYPTO_API ByteVector SHA256Hash(const ByteVector &buffer);
26
32LLA_CRYPTO_API ByteVector SHA256Hash(const std::string &str);
33
37LLA_CRYPTO_API ByteVector SHA1Hash(const ByteVector &in);
38}
39}
40
41#endif /* SHA_HPP */
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
ByteVector SHA256Hash(const ByteVector &buffer)
Get a SHA-256 hash.
Definition: sha.cpp:16
ByteVector SHA1Hash(const ByteVector &in)
Definition: sha.cpp:76
Definition: asn1.hpp:9