YPC
0.2.0
include
ypc
corecommon
crypto
gmssl
sm3_hash.h
1
#pragma once
2
#include <cstdint>
3
4
namespace
ypc {
5
namespace
crypto {
6
7
class
sm3_hash
{
8
public
:
9
static
uint32_t hash_256(
const
uint8_t *msg, uint32_t msg_size,
10
uint8_t *hash);
11
12
inline
static
uint32_t get_msg_hash_size() {
return
32; }
13
14
static
uint32_t msg_hash(
const
uint8_t *raw_msg, uint32_t msg_size,
15
uint8_t *hash, uint32_t hash_size);
16
};
17
18
}
// namespace crypto
19
}
// namespace ypc
ypc::crypto::sm3_hash
Definition:
sm3_hash.h:7
Generated by
1.8.17