hdac SDK
SDK for hdac blockchain development
메인 페이지
관련된 페이지
네임스페이스
클래스
파일들
파일 목록
파일 멤버
crypto
include
crypto
sha256.h
1
// Copyright (c) 2014 The Bitcoin developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_CRYPTO_SHA256_H
6
#define BITCOIN_CRYPTO_SHA256_H
7
8
#include <stdint.h>
9
#include <stdlib.h>
10
11
#include "crypto_global.h"
12
14
class
CSHA256
15
{
16
private
:
17
uint32_t s[8];
18
unsigned
char
buf[64];
19
size_t
bytes;
20
21
public
:
22
static
const
size_t
OUTPUT_SIZE = 32;
23
24
CSHA256
();
25
CSHA256
& Write(
const
unsigned
char
* data,
size_t
len);
26
void
Finalize(
unsigned
char
hash[OUTPUT_SIZE]);
27
CSHA256
& Reset();
28
};
29
30
#endif // BITCOIN_CRYPTO_SHA256_H
CSHA256
Definition:
sha256.h:14
다음에 의해 생성됨 :
1.8.11