unused stuff
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "algebra.cpp"
|
#include "algebra.cpp"
|
||||||
#include "eprecomp.cpp"
|
|
||||||
|
|
||||||
NAMESPACE_BEGIN(CryptoPP)
|
NAMESPACE_BEGIN(CryptoPP)
|
||||||
|
|
||||||
@@ -31,8 +30,6 @@ bool FunctionAssignIntToInteger(const std::type_info &valueType, void *pInteger,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int DummyAssignIntToInteger = (AssignIntToInteger = FunctionAssignIntToInteger, 0);
|
|
||||||
|
|
||||||
#ifdef SSE2_INTRINSICS_AVAILABLE
|
#ifdef SSE2_INTRINSICS_AVAILABLE
|
||||||
template <class T>
|
template <class T>
|
||||||
AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)
|
AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)
|
||||||
@@ -2878,33 +2875,6 @@ void Integer::BERDecodeAsOctetString(BufferedTransformation &bt, unsigned int le
|
|||||||
dec.MessageEnd();
|
dec.MessageEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int Integer::OpenPGPEncode(byte *output, unsigned int len) const
|
|
||||||
{
|
|
||||||
ArraySink sink(output, len);
|
|
||||||
return OpenPGPEncode(sink);
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int Integer::OpenPGPEncode(BufferedTransformation &bt) const
|
|
||||||
{
|
|
||||||
word16 bitCount = BitCount();
|
|
||||||
bt.PutWord16(bitCount);
|
|
||||||
return 2 + Encode(bt, BitsToBytes(bitCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Integer::OpenPGPDecode(const byte *input, unsigned int len)
|
|
||||||
{
|
|
||||||
StringStore store(input, len);
|
|
||||||
OpenPGPDecode(store);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Integer::OpenPGPDecode(BufferedTransformation &bt)
|
|
||||||
{
|
|
||||||
word16 bitCount;
|
|
||||||
if (bt.GetWord16(bitCount) != 2 || bt.MaxRetrievable() < BitsToBytes(bitCount))
|
|
||||||
throw OpenPGPDecodeErr();
|
|
||||||
Decode(bt, BitsToBytes(bitCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
void Integer::Randomize(RandomNumberGenerator &rng, unsigned int nbits)
|
void Integer::Randomize(RandomNumberGenerator &rng, unsigned int nbits)
|
||||||
{
|
{
|
||||||
const unsigned int nbytes = nbits/8 + 1;
|
const unsigned int nbytes = nbits/8 + 1;
|
||||||
|
|||||||
@@ -162,11 +162,6 @@ public:
|
|||||||
//! encode absolute value as big-endian octet string
|
//! encode absolute value as big-endian octet string
|
||||||
void DEREncodeAsOctetString(BufferedTransformation &bt, unsigned int length) const;
|
void DEREncodeAsOctetString(BufferedTransformation &bt, unsigned int length) const;
|
||||||
|
|
||||||
//! encode absolute value in OpenPGP format, return length of output
|
|
||||||
unsigned int OpenPGPEncode(byte *output, unsigned int bufferSize) const;
|
|
||||||
//! encode absolute value in OpenPGP format, put result into a BufferedTransformation object
|
|
||||||
unsigned int OpenPGPEncode(BufferedTransformation &bt) const;
|
|
||||||
|
|
||||||
//!
|
//!
|
||||||
void Decode(const byte *input, unsigned int inputLen, Signedness=UNSIGNED);
|
void Decode(const byte *input, unsigned int inputLen, Signedness=UNSIGNED);
|
||||||
//!
|
//!
|
||||||
@@ -181,16 +176,6 @@ public:
|
|||||||
//! decode nonnegative value as big-endian octet string
|
//! decode nonnegative value as big-endian octet string
|
||||||
void BERDecodeAsOctetString(BufferedTransformation &bt, unsigned int length);
|
void BERDecodeAsOctetString(BufferedTransformation &bt, unsigned int length);
|
||||||
|
|
||||||
class OpenPGPDecodeErr : public Exception
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
OpenPGPDecodeErr() : Exception(INVALID_DATA_FORMAT, "OpenPGP decode error") {}
|
|
||||||
};
|
|
||||||
|
|
||||||
//!
|
|
||||||
void OpenPGPDecode(const byte *input, unsigned int inputLen);
|
|
||||||
//!
|
|
||||||
void OpenPGPDecode(BufferedTransformation &bt);
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
//! \name ACCESSORS
|
//! \name ACCESSORS
|
||||||
|
|||||||
Reference in New Issue
Block a user