unused stuff
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#endif
|
||||
|
||||
#include "algebra.cpp"
|
||||
#include "eprecomp.cpp"
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
@@ -31,8 +30,6 @@ bool FunctionAssignIntToInteger(const std::type_info &valueType, void *pInteger,
|
||||
return true;
|
||||
}
|
||||
|
||||
static int DummyAssignIntToInteger = (AssignIntToInteger = FunctionAssignIntToInteger, 0);
|
||||
|
||||
#ifdef SSE2_INTRINSICS_AVAILABLE
|
||||
template <class T>
|
||||
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();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
const unsigned int nbytes = nbits/8 + 1;
|
||||
|
||||
@@ -162,11 +162,6 @@ public:
|
||||
//! encode absolute value as big-endian octet string
|
||||
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);
|
||||
//!
|
||||
@@ -181,16 +176,6 @@ public:
|
||||
//! decode nonnegative value as big-endian octet string
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user