Searched refs:plaintextLength (Results 1 - 5 of 5) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A Dgfpcrypt.h424 size_t GetSymmetricKeyLength(size_t plaintextLength) const
425 {return plaintextLength + MAC::DEFAULT_KEYLENGTH;}
426 size_t GetSymmetricCiphertextLength(size_t plaintextLength) const
427 {return plaintextLength + MAC::DIGESTSIZE;}
430 void SymmetricEncrypt(RandomNumberGenerator &rng, const byte *key, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &parameters) const argument
441 macKey = key + plaintextLength;
447 xorbuf(ciphertext, plaintext, cipherKey, plaintextLength);
449 mac.Update(ciphertext, plaintextLength);
457 mac.Final(ciphertext + plaintextLength);
461 size_t plaintextLength local
[all...]
H A Dpubkey.cpp145 void TF_EncryptorBase::Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &parameters) const argument
147 if (plaintextLength > FixedMaxPlaintextLength())
152 throw InvalidArgument(AlgorithmName() + ": message length of " + IntToString(plaintextLength) + " exceeds the maximum of " + IntToString(FixedMaxPlaintextLength()) + " for this public key");
156 GetMessageEncodingInterface().Pad(rng, plaintext, plaintextLength, paddedBlock, PaddedBlockBitLength(), parameters);
H A Dcryptlib.cpp673 size_t plaintextLength; local
674 if (!SafeConvert(m_plaintextQueue.CurrentSize(), plaintextLength))
676 size_t ciphertextLength = m_encryptor.CiphertextLength(plaintextLength);
678 SecByteBlock plaintext(plaintextLength);
679 m_plaintextQueue.Get(plaintext, plaintextLength);
681 m_encryptor.Encrypt(m_rng, plaintext, plaintextLength, m_ciphertext, m_parameters);
H A Dpubkey.h144 size_t CiphertextLength(size_t plaintextLength) const
145 {return plaintextLength <= FixedMaxPlaintextLength() ? FixedCiphertextLength() : 0;}
176 void Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &parameters = g_nullNameValuePairs) const;
938 virtual size_t GetSymmetricKeyLength(size_t plaintextLength) const =0;
939 virtual size_t GetSymmetricCiphertextLength(size_t plaintextLength) const =0;
941 virtual void SymmetricEncrypt(RandomNumberGenerator &rng, const byte *key, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &parameters) const =0;
1162 size_t CiphertextLength(size_t plaintextLength) const
1164 size_t len = GetSymmetricEncryptionAlgorithm().GetSymmetricCiphertextLength(plaintextLength);
1220 void Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs &parameters = g_nullNameValuePairs) const argument
1236 SecByteBlock derivedKey(encAlg.GetSymmetricKeyLength(plaintextLength));
[all...]
H A Dcryptlib.h1215 /*! \note This function returns 0 if plaintextLength is not valid (too long). */
1216 virtual size_t CiphertextLength(size_t plaintextLength) const =0;
1248 /*! \pre CiphertextLength(plaintextLength) != 0 (i.e., plaintext isn't too long)
1249 \pre size of ciphertext == CiphertextLength(plaintextLength)
1252 const byte *plaintext, size_t plaintextLength,

Completed in 90 milliseconds