Lines Matching refs:passphraseLength
59 static void GenerateKeyIV(const byte *passphrase, size_t passphraseLength, const byte *salt, size_t saltLength, byte *key, byte *IV)
61 SecByteBlock temp(passphraseLength+saltLength);
62 memcpy(temp, passphrase, passphraseLength);
63 memcpy(temp+passphraseLength, salt, saltLength);
65 Mash(temp, passphraseLength + saltLength, keyIV, KEYLENGTH+BLOCKSIZE, MASH_ITERATIONS);
77 DefaultEncryptor::DefaultEncryptor(const byte *passphrase, size_t passphraseLength, BufferedTransformation *attachment)
78 : ProxyFilter(NULL, 0, 0, attachment), m_passphrase(passphrase, passphraseLength)
133 DefaultDecryptor::DefaultDecryptor(const byte *passphrase, size_t passphraseLength, BufferedTransformation *attachment, bool throwException)
136 , m_passphrase(passphrase, passphraseLength)
195 static DefaultMAC * NewDefaultEncryptorMAC(const byte *passphrase, size_t passphraseLength)
200 Mash(passphrase, passphraseLength, macKey, macKeyLength, 1);
211 DefaultEncryptorWithMAC::DefaultEncryptorWithMAC(const byte *passphrase, size_t passphraseLength, BufferedTransformation *attachment)
213 , m_mac(NewDefaultEncryptorMAC(passphrase, passphraseLength))
215 SetFilter(new HashFilter(*m_mac, new DefaultEncryptor(passphrase, passphraseLength), true));
233 DefaultDecryptorWithMAC::DefaultDecryptorWithMAC(const byte *passphrase, size_t passphraseLength, BufferedTransformation *attachment, bool throwException)
235 , m_mac(NewDefaultEncryptorMAC(passphrase, passphraseLength))
238 SetFilter(new DefaultDecryptor(passphrase, passphraseLength, m_hashVerifier=new HashVerifier(*m_mac, NULL, HashVerifier::PUT_MESSAGE), throwException));