fixed to compile with Intel compiler
parent
4cbd2ef39e
commit
39fd2045e9
4
dh.h
4
dh.h
|
|
@ -33,7 +33,7 @@ public:
|
||||||
{m_groupParameters.Initialize(v1, v2);}
|
{m_groupParameters.Initialize(v1, v2);}
|
||||||
|
|
||||||
template <class T2, class T3>
|
template <class T2, class T3>
|
||||||
DH_Domain(RandomNumberGenerator &v1, const T2 &v2, const T2 &v3)
|
DH_Domain(RandomNumberGenerator &v1, const T2 &v2, const T3 &v3)
|
||||||
{m_groupParameters.Initialize(v1, v2, v3);}
|
{m_groupParameters.Initialize(v1, v2, v3);}
|
||||||
|
|
||||||
template <class T2, class T3, class T4>
|
template <class T2, class T3, class T4>
|
||||||
|
|
@ -45,7 +45,7 @@ public:
|
||||||
{m_groupParameters.Initialize(v1, v2);}
|
{m_groupParameters.Initialize(v1, v2);}
|
||||||
|
|
||||||
template <class T1, class T2, class T3>
|
template <class T1, class T2, class T3>
|
||||||
DH_Domain(const T1 &v1, const T2 &v2, const T2 &v3)
|
DH_Domain(const T1 &v1, const T2 &v2, const T3 &v3)
|
||||||
{m_groupParameters.Initialize(v1, v2, v3);}
|
{m_groupParameters.Initialize(v1, v2, v3);}
|
||||||
|
|
||||||
template <class T1, class T2, class T3, class T4>
|
template <class T1, class T2, class T3, class T4>
|
||||||
|
|
|
||||||
2
mqv.h
2
mqv.h
|
|
@ -30,7 +30,7 @@ public:
|
||||||
{m_groupParameters.Initialize(v1, v2);}
|
{m_groupParameters.Initialize(v1, v2);}
|
||||||
|
|
||||||
template <class T1, class T2, class T3>
|
template <class T1, class T2, class T3>
|
||||||
MQV_Domain(T1 v1, T2 v2, T2 v3)
|
MQV_Domain(T1 v1, T2 v2, T3 v3)
|
||||||
{m_groupParameters.Initialize(v1, v2, v3);}
|
{m_groupParameters.Initialize(v1, v2, v3);}
|
||||||
|
|
||||||
template <class T1, class T2, class T3, class T4>
|
template <class T1, class T2, class T3, class T4>
|
||||||
|
|
|
||||||
8
seckey.h
8
seckey.h
|
|
@ -101,7 +101,7 @@ public:
|
||||||
if (n < (unsigned int)MIN_KEYLENGTH)
|
if (n < (unsigned int)MIN_KEYLENGTH)
|
||||||
return MIN_KEYLENGTH;
|
return MIN_KEYLENGTH;
|
||||||
else if (n > (unsigned int)MAX_KEYLENGTH)
|
else if (n > (unsigned int)MAX_KEYLENGTH)
|
||||||
return MAX_KEYLENGTH;
|
return (unsigned int)MAX_KEYLENGTH;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
n += KEYLENGTH_MULTIPLE-1;
|
n += KEYLENGTH_MULTIPLE-1;
|
||||||
|
|
@ -143,7 +143,7 @@ class SimpleKeyingInterfaceImpl : public BASE
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
unsigned int MinKeyLength() const {return INFO::MIN_KEYLENGTH;}
|
unsigned int MinKeyLength() const {return INFO::MIN_KEYLENGTH;}
|
||||||
unsigned int MaxKeyLength() const {return INFO::MAX_KEYLENGTH;}
|
unsigned int MaxKeyLength() const {return (unsigned int)INFO::MAX_KEYLENGTH;}
|
||||||
unsigned int DefaultKeyLength() const {return INFO::DEFAULT_KEYLENGTH;}
|
unsigned int DefaultKeyLength() const {return INFO::DEFAULT_KEYLENGTH;}
|
||||||
unsigned int GetValidKeyLength(unsigned int n) const {return INFO::StaticGetValidKeyLength(n);}
|
unsigned int GetValidKeyLength(unsigned int n) const {return INFO::StaticGetValidKeyLength(n);}
|
||||||
typename BASE::IV_Requirement IVRequirement() const {return (typename BASE::IV_Requirement)INFO::IV_REQUIREMENT;}
|
typename BASE::IV_Requirement IVRequirement() const {return (typename BASE::IV_Requirement)INFO::IV_REQUIREMENT;}
|
||||||
|
|
@ -179,7 +179,7 @@ public:
|
||||||
CheckedSetKey(this, DIR, key, length, param);
|
CheckedSetKey(this, DIR, key, length, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
Clonable * Clone() {return new BlockCipherTemplate<DIR, BASE>(*this);}
|
Clonable * Clone() const {return new BlockCipherTemplate<DIR, BASE>(*this);}
|
||||||
};
|
};
|
||||||
|
|
||||||
//! .
|
//! .
|
||||||
|
|
@ -205,7 +205,7 @@ public:
|
||||||
CheckedSetKey(this, Empty(), key, length, param);
|
CheckedSetKey(this, Empty(), key, length, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
Clonable * Clone() {return new MessageAuthenticationCodeTemplate<BASE>(*this);}
|
Clonable * Clone() const {return new MessageAuthenticationCodeTemplate<BASE>(*this);}
|
||||||
};
|
};
|
||||||
|
|
||||||
// ************** documentation ***************
|
// ************** documentation ***************
|
||||||
|
|
|
||||||
8
simple.h
8
simple.h
|
|
@ -134,14 +134,14 @@ public:
|
||||||
{ChannelInitialize(NULL_CHANNEL, parameters, propagation);}
|
{ChannelInitialize(NULL_CHANNEL, parameters, propagation);}
|
||||||
bool Flush(bool hardFlush, int propagation=-1, bool blocking=true)
|
bool Flush(bool hardFlush, int propagation=-1, bool blocking=true)
|
||||||
{return ChannelFlush(NULL_CHANNEL, hardFlush, propagation, blocking);}
|
{return ChannelFlush(NULL_CHANNEL, hardFlush, propagation, blocking);}
|
||||||
void MessageSeriesEnd(int propagation)
|
bool MessageSeriesEnd(int propagation=-1, bool blocking=true)
|
||||||
{ChannelMessageSeriesEnd(NULL_CHANNEL, propagation);}
|
{return ChannelMessageSeriesEnd(NULL_CHANNEL, propagation, blocking);}
|
||||||
byte * CreatePutSpace(unsigned int &size)
|
byte * CreatePutSpace(unsigned int &size)
|
||||||
{return ChannelCreatePutSpace(NULL_CHANNEL, size);}
|
{return ChannelCreatePutSpace(NULL_CHANNEL, size);}
|
||||||
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking)
|
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking)
|
||||||
{return ChannelPut2(NULL_CHANNEL, begin, length, messageEnd, blocking);}
|
{return ChannelPut2(NULL_CHANNEL, begin, length, messageEnd, blocking);}
|
||||||
unsigned int PutModifiable2(byte *begin, byte *end, int messageEnd, bool blocking)
|
unsigned int PutModifiable2(byte *inString, unsigned int length, int messageEnd, bool blocking)
|
||||||
{return ChannelPutModifiable2(NULL_CHANNEL, begin, end, messageEnd, blocking);}
|
{return ChannelPutModifiable2(NULL_CHANNEL, inString, length, messageEnd, blocking);}
|
||||||
|
|
||||||
// void ChannelMessageSeriesEnd(const std::string &channel, int propagation=-1)
|
// void ChannelMessageSeriesEnd(const std::string &channel, int propagation=-1)
|
||||||
// {PropagateMessageSeriesEnd(propagation, channel);}
|
// {PropagateMessageSeriesEnd(propagation, channel);}
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,10 @@ NAMESPACE_BEGIN(CryptoPP)
|
||||||
template <class POLICY_INTERFACE, class BASE = Empty>
|
template <class POLICY_INTERFACE, class BASE = Empty>
|
||||||
class AbstractPolicyHolder : public BASE
|
class AbstractPolicyHolder : public BASE
|
||||||
{
|
{
|
||||||
protected:
|
public:
|
||||||
typedef POLICY_INTERFACE PolicyInterface;
|
typedef POLICY_INTERFACE PolicyInterface;
|
||||||
|
|
||||||
|
protected:
|
||||||
virtual const POLICY_INTERFACE & GetPolicy() const =0;
|
virtual const POLICY_INTERFACE & GetPolicy() const =0;
|
||||||
virtual POLICY_INTERFACE & AccessPolicy() =0;
|
virtual POLICY_INTERFACE & AccessPolicy() =0;
|
||||||
};
|
};
|
||||||
|
|
@ -130,9 +131,9 @@ public:
|
||||||
bool IsRandomAccess() const {return GetPolicy().IsRandomAccess();}
|
bool IsRandomAccess() const {return GetPolicy().IsRandomAccess();}
|
||||||
void Seek(dword position);
|
void Seek(dword position);
|
||||||
|
|
||||||
protected:
|
|
||||||
typedef typename BASE::PolicyInterface PolicyInterface;
|
typedef typename BASE::PolicyInterface PolicyInterface;
|
||||||
|
|
||||||
|
protected:
|
||||||
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length);
|
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length);
|
||||||
|
|
||||||
unsigned int GetBufferByteSize(const PolicyInterface &policy) const {return policy.GetBytesPerIteration() * policy.GetIterationsToBuffer();}
|
unsigned int GetBufferByteSize(const PolicyInterface &policy) const {return policy.GetBytesPerIteration() * policy.GetIterationsToBuffer();}
|
||||||
|
|
@ -220,9 +221,9 @@ public:
|
||||||
bool IsRandomAccess() const {return false;}
|
bool IsRandomAccess() const {return false;}
|
||||||
bool IsSelfInverting() const {return false;}
|
bool IsSelfInverting() const {return false;}
|
||||||
|
|
||||||
protected:
|
|
||||||
typedef typename BASE::PolicyInterface PolicyInterface;
|
typedef typename BASE::PolicyInterface PolicyInterface;
|
||||||
|
|
||||||
|
protected:
|
||||||
virtual void CombineMessageAndShiftRegister(byte *output, byte *reg, const byte *message, unsigned int length) =0;
|
virtual void CombineMessageAndShiftRegister(byte *output, byte *reg, const byte *message, unsigned int length) =0;
|
||||||
|
|
||||||
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length);
|
void UncheckedSetKey(const NameValuePairs ¶ms, const byte *key, unsigned int length);
|
||||||
|
|
@ -262,7 +263,7 @@ public:
|
||||||
UncheckedSetKey(params, key, length);
|
UncheckedSetKey(params, key, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
Clonable * Clone() {return new SymmetricCipherFinalTemplate<BASE, INFO>(*this);}
|
Clonable * Clone() const {return static_cast<SymmetricCipher *>(new SymmetricCipherFinalTemplate<BASE, INFO>(*this));}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class S>
|
template <class S>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue