Lolly
1.4.28
Loading...
Searching...
No Matches
lolly
hash
sha.hpp
Go to the documentation of this file.
1
2
/******************************************************************************
3
* MODULE : sha.hpp
4
* DESCRIPTION: sha digest
5
* COPYRIGHT : (C) 2023 Darcy Shen
6
*******************************************************************************
7
* This software falls under the GNU general public license version 3 or later.
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
10
******************************************************************************/
11
12
#pragma once
13
14
#include "
string.hpp
"
15
#include "
url.hpp
"
16
17
namespace
lolly
{
18
namespace
hash
{
19
enum
sha_mode
:
long
{
SHA2_224
= 224,
SHA2_256
= 256 };
20
string
sha_hexdigest
(
url
u
,
sha_mode
mode
);
21
string
sha224_hexdigest
(
url
u
);
22
string
sha256_hexdigest
(
url
u
);
23
}
// namespace hash
24
}
// namespace lolly
hash
int hash(pointer ptr)
Computes a hash value for a pointer.
Definition
basic.cpp:17
list
The list class represents a linked list.
Definition
list.hpp:48
url
Definition
url.hpp:37
lolly::hash::sha224_hexdigest
string sha224_hexdigest(url u)
Definition
sha.cpp:86
lolly::hash::sha_hexdigest
string sha_hexdigest(url u, sha_mode mode)
Definition
sha.cpp:24
lolly::hash::sha256_hexdigest
string sha256_hexdigest(url u)
Definition
sha.cpp:91
lolly::hash::sha_mode
sha_mode
Definition
sha.hpp:19
lolly::hash::SHA2_224
@ SHA2_224
Definition
sha.hpp:19
lolly::hash::SHA2_256
@ SHA2_256
Definition
sha.hpp:19
lolly
Definition
lolly_tree_bench.cpp:13
string.hpp
url.hpp
Generated by
1.10.0