• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/

Lines Matching refs:string

131 	explicit Exception(ErrorType errorType, const std::string &s) : m_errorType(errorType), m_what(s) {}
134 const std::string &GetWhat() const {return m_what;}
135 void SetWhat(const std::string &s) {m_what = s;}
141 std::string m_what;
148 explicit InvalidArgument(const std::string &s) : Exception(INVALID_ARGUMENT, s) {}
155 explicit InvalidDataFormat(const std::string &s) : Exception(INVALID_DATA_FORMAT, s) {}
162 explicit InvalidCiphertext(const std::string &s) : InvalidDataFormat(s) {}
169 explicit NotImplemented(const std::string &s) : Exception(NOT_IMPLEMENTED, s) {}
176 explicit CannotFlush(const std::string &s) : Exception(CANNOT_FLUSH, s) {}
183 OS_Error(ErrorType errorType, const std::string &s, const std::string& operation, int errorCode)
188 const std::string & GetOperation() const {return m_operation;}
193 std::string m_operation;
234 ValueTypeMismatch(const std::string &name, const std::type_info &stored, const std::type_info &retrieving)
250 return GetValue((std::string("ThisObject:")+typeid(T).name()).c_str(), object);
257 return GetValue((std::string("ThisPointer:")+typeid(T).name()).c_str(), p);
276 CRYPTOPP_DLL std::string GetValueNames() const
277 {std::string result; GetValue("ValueNames", result); return result;}
297 throw InvalidArgument(std::string(className) + ": missing required parameter '" + name + "'");
303 throw InvalidArgument(std::string(className) + ": missing required parameter '" + name + "'");
350 virtual std::string AlgorithmName() const {return "unknown";}
645 explicit BadState(const std::string &name, const char *message) : Exception(OTHER_ERROR, name + ": " + message) {}
646 explicit BadState(const std::string &name, const char *function, const char *state) : Exception(OTHER_ERROR, name + ": " + function + " was called before " + state) {}
666 virtual std::string AlgorithmName() const =0;
706 virtual void GenerateIntoBufferedTransformation(BufferedTransformation &target, const std::string &channel, lword length);
750 //! the default channel for BufferedTransformation, equal to the empty string
751 extern CRYPTOPP_DLL const std::string DEFAULT_CHANNEL;
754 extern CRYPTOPP_DLL const std::string AAD_CHANNEL;
786 static const std::string &NULL_CHANNEL; // same as DEFAULT_CHANNEL, for backwards compatibility
835 {BlockingInputOnly(const std::string &s) : NotImplemented(s + ": Nonblocking input is not implemented by this object.") {}};
913 lword TransferTo(BufferedTransformation &target, lword transferMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL)
920 lword CopyTo(BufferedTransformation &target, lword copyMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL) const
924 lword CopyRangeTo(BufferedTransformation &target, lword position, lword copyMax=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL) const
949 unsigned int TransferMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=DEFAULT_CHANNEL)
952 unsigned int CopyMessagesTo(BufferedTransformation &target, unsigned int count=UINT_MAX, const std::string &channel=DEFAULT_CHANNEL) const;
957 void TransferAllTo(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL)
960 void CopyAllTo(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL) const;
970 virtual size_t TransferTo2(BufferedTransformation &target, lword &byteCount, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) =0;
972 virtual size_t CopyRangeTo2(BufferedTransformation &target, lword &begin, lword end=LWORD_MAX, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true) const =0;
974 size_t TransferMessagesTo2(BufferedTransformation &target, unsigned int &messageCount, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true);
976 size_t TransferAllTo2(BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL, bool blocking=true);
982 {NoChannelSupport(const std::string &name) : NotImplemented(name + ": this object doesn't support multiple channels") {}};
984 {InvalidChannelName(const std::string &name, const std::string &channel) : InvalidArgument(name + ": unexpected channel name \"" + channel + "\"") {}};
986 size_t ChannelPut(const std::string &channel, byte inByte, bool blocking=true)
988 size_t ChannelPut(const std::string &channel, const byte *inString, size_t length, bool blocking=true)
991 size_t ChannelPutModifiable(const std::string &channel, byte *inString, size_t length, bool blocking=true)
994 size_t ChannelPutWord16(const std::string &channel, word16 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true);
995 size_t ChannelPutWord32(const std::string &channel, word32 value, ByteOrder order=BIG_ENDIAN_ORDER, bool blocking=true);
997 bool ChannelMessageEnd(const std::string &channel, int propagation=-1, bool blocking=true)
999 size_t ChannelPutMessageEnd(const std::string &channel, const byte *inString, size_t length, int propagation=-1, bool blocking=true)
1002 virtual byte * ChannelCreatePutSpace(const std::string &channel, size_t &size);
1004 virtual size_t ChannelPut2(const std::string &channel, const byte *begin, size_t length, int messageEnd, bool blocking);
1005 virtual size_t ChannelPutModifiable2(const std::string &channel, byte *begin, size_t length, int messageEnd, bool blocking);
1007 virtual bool ChannelFlush(const std::string &channel, bool hardFlush, int propagation=-1, bool blocking=true);
1008 virtual bool ChannelMessageSeriesEnd(const std::string &channel, int propagation=-1, bool blocking=true);
1010 virtual void SetRetrievalChannel(const std::string &channel);
1055 explicit InvalidMaterial(const std::string &s) : InvalidDataFormat(s) {}
1075 // virtual std::vector<std::string> GetSupportedFormats(bool includeSaveOnly=false, bool includeLoadOnly=false);
1247 //! encrypt a byte string
1268 //! decrypt a byte string, and return the length of plaintext
1305 InvalidKeyLength(const std::string &message) : Exception(OTHER_ERROR, message) {}
1566 ProtocolError(ErrorType errorType, const std::string &s) : Exception(errorType, s) {}
1574 UnexpectedMethodCall(const std::string &s) : Exception(OTHER_ERROR, s) {}
1595 void HandleProtocolError(Exception::ErrorType errorType, const std::string &s) const;
1643 BERDecodeErr(const std::string &s) : InvalidArgument(s) {}