Botan 3.10.0
Crypto and TLS for C&
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
14namespace Botan {
15
16class HashFunction;
17
18/**
19* MGF1 from PKCS #1 v2.0
20* @param hash hash function to use
21* @param input - the input buffer
22* @param output - the output buffer. The buffer is XORed with the output of MGF1.
23*/
24void mgf1_mask(HashFunction& hash, std::span<const uint8_t> input, std::span<uint8_t> output);
25
26} // namespace Botan
27
28#endif
void mgf1_mask(HashFunction &hash, std::span< const uint8_t > input, std::span< uint8_t > output)
Definition mgf1.cpp:15