Botan
3.7.1
Crypto and TLS for C&
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
c
d
f
i
m
n
r
s
t
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
h
i
m
n
o
p
r
s
t
u
v
w
Enumerations
b
c
d
e
k
m
n
o
p
s
t
x
Enumerator
_
a
b
c
d
e
f
h
k
l
m
n
p
q
r
s
t
u
w
x
Related Symbols
b
c
d
e
f
k
o
p
s
t
x
Files
File List
File Members
All
_
a
b
c
d
e
f
i
k
m
n
o
p
q
s
t
u
w
x
y
z
Functions
b
c
Variables
Typedefs
b
c
e
p
t
Enumerations
Enumerator
b
c
d
e
k
n
Macros
_
a
b
c
f
m
n
q
s
t
w
src
lib
pk_pad
hash_id
hash_id.h
Go to the documentation of this file.
1
/*
2
* Hash Function Identification
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_HASHID_H_
9
#define BOTAN_HASHID_H_
10
11
#include <botan/secmem.h>
12
#include <string_view>
13
14
namespace
Botan
{
15
16
/**
17
* Return the PKCS #1 hash identifier
18
* @see RFC 3447 section 9.2
19
* @param hash_name the name of the hash function
20
* @return uint8_t sequence identifying the hash
21
* @throw Invalid_Argument if the hash has no known PKCS #1 hash id
22
*/
23
std::vector<uint8_t>
BOTAN_TEST_API
pkcs_hash_id
(std::string_view hash_name);
24
25
/**
26
* Return the IEEE 1363 hash identifier
27
* @param hash_name the name of the hash function
28
* @return uint8_t code identifying the hash, or 0 if not known
29
*/
30
uint8_t
ieee1363_hash_id
(std::string_view hash_name);
31
32
}
// namespace Botan
33
34
#endif
BOTAN_TEST_API
#define BOTAN_TEST_API
Definition
api.h:39
Botan
Definition
alg_id.cpp:13
Botan::ieee1363_hash_id
uint8_t ieee1363_hash_id(std::string_view name)
Definition
hash_id.cpp:144
Botan::pkcs_hash_id
std::vector< uint8_t > pkcs_hash_id(std::string_view name)
Definition
hash_id.cpp:78
Generated by
1.12.0