Botan: src/pk_pad/emsa1_bsi/emsa1_bsi.h Source File

Botan 1.10.17

emsa1_bsi.h
Go to the documentation of this file.
1 /*
2 * EMSA1 BSI Variant
3 * (C) 1999-2008 Jack Lloyd
4 * 2007 FlexSecure GmbH
5 *
6 * Distributed under the terms of the Botan license
7 */
8
9 #ifndef BOTAN_EMSA1_BSI_H__
10 #define BOTAN_EMSA1_BSI_H__
11
12 #include <botan/emsa1.h>
13
14 namespace Botan {
15
16 /**
17 EMSA1_BSI is a variant of EMSA1 specified by the BSI. It accepts only
18 hash values which are less or equal than the maximum key length. The
19 implementation comes from InSiTo
20 */
21 class BOTAN_DLL EMSA1_BSI : public EMSA1
22 {
23 public:
24 /**
25 * @param hash the hash object to use
26 */
27 EMSA1_BSI(HashFunction* hash) : EMSA1(hash) {}
28 private:
29 SecureVector<byte> encoding_of(const MemoryRegion<byte>&, size_t,
30 RandomNumberGenerator& rng);
31 };
32
33 }
34
35 #endif
Botan::EMSA1_BSI::EMSA1_BSI
EMSA1_BSI(HashFunction *hash)
Definition: emsa1_bsi.h:27
Botan::RandomNumberGenerator
Definition: rng.h:20
Botan::MemoryRegion< byte >
Botan
Definition: algo_base.h:14
Botan::EMSA1_BSI
Definition: emsa1_bsi.h:21
Botan::HashFunction
Definition: hash.h:20
Botan::EMSA1
Definition: emsa1.h:20
Botan::SecureVector< byte >