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
14namespace Botan {
15
16/**
17EMSA1_BSI is a variant of EMSA1 specified by the BSI. It accepts only
18hash values which are less or equal than the maximum key length. The
19implementation comes from InSiTo
20*/
21class 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,
31 };
32
33}
34
35#endif
EMSA1_BSI(HashFunction *hash)
Definition emsa1_bsi.h:27
EMSA1(HashFunction *h)
Definition emsa1.h:26