From d23a489940499bd6c634a1cb0a9875f094f8a850 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 01:24:12 +0000 Subject: various changes for 5.1 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- oaep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'oaep.h') diff --git a/oaep.h b/oaep.h index 96baaa1..c242698 100644 --- a/oaep.h +++ b/oaep.h @@ -8,12 +8,12 @@ NAMESPACE_BEGIN(CryptoPP) extern byte OAEP_P_DEFAULT[]; // defined in misc.cpp /// EME-OAEP, for use with RSAES -template , byte *P=OAEP_P_DEFAULT, unsigned int PLen=0> -class OAEP : public PK_PaddingAlgorithm, public EncryptionStandard +template +class OAEP : public PK_EncryptionMessageEncodingMethod, public EncryptionStandard { public: - static std::string StaticAlgorithmName() {return "OAEP-" + MGF::StaticAlgorithmName();} - typedef OAEP EncryptionPaddingAlgorithm; + static std::string StaticAlgorithmName() {return std::string("OAEP-") + MGF::StaticAlgorithmName() + "(" + H::StaticAlgorithmName() + ")";} + typedef OAEP EncryptionMessageEncodingMethod; unsigned int MaxUnpaddedLength(unsigned int paddedLength) const; void Pad(RandomNumberGenerator &rng, const byte *raw, unsigned int inputLength, byte *padded, unsigned int paddedLength) const; -- cgit v1.2.1