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
mgf1
mgf1.h
Go to the documentation of this file.
1
/*
2
* MGF1
3
* (C) 1999-2007,2014 Jack Lloyd
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_MGF1_H_
9
#define BOTAN_MGF1_H_
10
11
#include <botan/types.h>
12
#include <span>
13
14
namespace
Botan
{
15
16
class
HashFunction;
17
18
/**
19
* MGF1 from PKCS #1 v2.0
20
* @param hash hash function to use
21
* @param in input buffer
22
* @param in_len size of the input buffer in bytes
23
* @param out output buffer. The buffer is XORed with the output of MGF1.
24
* @param out_len size of the output buffer in bytes
25
*/
26
void
mgf1_mask
(HashFunction& hash,
const
uint8_t in[],
size_t
in_len, uint8_t out[],
size_t
out_len);
27
28
inline
void
mgf1_mask
(
HashFunction
& hash, std::span<const uint8_t> input, std::span<uint8_t> output) {
29
mgf1_mask
(hash, input.data(), input.size(), output.data(), output.size());
30
}
28
inline
void
mgf1_mask
(
HashFunction
& hash, std::span<const uint8_t> input, std::span<uint8_t> output) {
…
}
31
32
}
// namespace Botan
33
34
#endif
Botan::HashFunction
Definition
hash.h:21
Botan
Definition
alg_id.cpp:13
Botan::mgf1_mask
void mgf1_mask(HashFunction &hash, const uint8_t in[], size_t in_len, uint8_t out[], size_t out_len)
Definition
mgf1.cpp:15
Generated by
1.12.0