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 D | gfpcrypt.h | 424 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 ¶meters) 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 D | pubkey.cpp | 145 void TF_EncryptorBase::Encrypt(RandomNumberGenerator &rng, const byte *plaintext, size_t plaintextLength, byte *ciphertext, const NameValuePairs ¶meters) 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 D | cryptlib.cpp | 673 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 D | pubkey.h | 144 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 ¶meters = 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 ¶meters) 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 ¶meters = g_nullNameValuePairs) const argument 1236 SecByteBlock derivedKey(encAlg.GetSymmetricKeyLength(plaintextLength)); [all...] |
H A D | cryptlib.h | 1215 /*! \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 110 milliseconds