mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-17 03:48:38 +00:00
Miscellaneos warning fixes (GH #739)
* Fix -pedantic warning in GCC. * Fix -Wunused-private-field warning. * Fix -Wkeyword-macro warning.
This commit is contained in:
parent
fc1e98e70d
commit
7f8d3e8882
6
des.cpp
6
des.cpp
@ -284,14 +284,16 @@ namespace {
|
||||
void RawDES::RawSetKey(CipherDir dir, const byte *key)
|
||||
{
|
||||
#if (_MSC_VER >= 1600) || (__cplusplus >= 201103L)
|
||||
# define register /* Define to nothing for C++11 and above */
|
||||
# define REGISTER /* Define to nothing for C++11 and above */
|
||||
#else
|
||||
# define REGISTER register
|
||||
#endif
|
||||
|
||||
SecByteBlock buffer(56+56+8);
|
||||
byte *const pc1m=buffer; /* place to modify pc1 into */
|
||||
byte *const pcr=pc1m+56; /* place to rotate pc1 into */
|
||||
byte *const ks=pcr+56;
|
||||
register int i,j,l;
|
||||
REGISTER int i,j,l;
|
||||
int m;
|
||||
|
||||
for (j=0; j<56; j++) { /* convert pc1 to bits of key */
|
||||
|
@ -1100,7 +1100,7 @@ CRYPTOPP_DLL_TEMPLATE_CLASS StringSinkTemplate<std::string>;
|
||||
|
||||
/// \brief Append input to a std::vector<byte> object
|
||||
/// \details VectorSink is a typedef for StringSinkTemplate<std::vector<byte> >.
|
||||
DOCUMENTED_TYPEDEF(StringSinkTemplate<std::vector<byte> >, VectorSink);
|
||||
DOCUMENTED_TYPEDEF(StringSinkTemplate<std::vector<byte> >, VectorSink)
|
||||
CRYPTOPP_DLL_TEMPLATE_CLASS StringSinkTemplate<std::vector<byte> >;
|
||||
|
||||
/// \brief Incorporates input into RNG as additional entropy
|
||||
|
4
gf2n.h
4
gf2n.h
@ -357,13 +357,13 @@ class CRYPTOPP_DLL GF2NPP : public GF2NP
|
||||
public:
|
||||
// polynomial modulus = x^t0 + x^t1 + x^t2 + x^t3 + x^t4, t0 > t1 > t2 > t3 > t4
|
||||
GF2NPP(unsigned int t0, unsigned int t1, unsigned int t2, unsigned int t3, unsigned int t4)
|
||||
: GF2NP(PolynomialMod2::Pentanomial(t0, t1, t2, t3, t4)), t0(t0), t1(t1), t2(t2), t3(t3) {}
|
||||
: GF2NP(PolynomialMod2::Pentanomial(t0, t1, t2, t3, t4)), t1(t1), t2(t2), t3(t3) {}
|
||||
|
||||
GF2NP * Clone() const {return new GF2NPP(*this);}
|
||||
void DEREncode(BufferedTransformation &bt) const;
|
||||
|
||||
private:
|
||||
unsigned int t0, t1, t2, t3;
|
||||
unsigned int t1, t2, t3;
|
||||
};
|
||||
|
||||
// construct new GF2NP from the ASN.1 sequence Characteristic-two
|
||||
|
Loading…
x
Reference in New Issue
Block a user