• 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 defs:passphrase

59 static void GenerateKeyIV(const byte *passphrase, size_t passphraseLength, const byte *salt, size_t saltLength, byte *key, byte *IV)
62 memcpy(temp, passphrase, passphraseLength);
72 DefaultEncryptor::DefaultEncryptor(const char *passphrase, BufferedTransformation *attachment)
73 : ProxyFilter(NULL, 0, 0, attachment), m_passphrase((const byte *)passphrase, strlen(passphrase))
77 DefaultEncryptor::DefaultEncryptor(const byte *passphrase, size_t passphraseLength, BufferedTransformation *attachment)
78 : ProxyFilter(NULL, 0, 0, attachment), m_passphrase(passphrase, passphraseLength)
92 // use hash(passphrase | time | clock) as salt
100 // use hash(passphrase | salt) as key check
107 // mash passphrase and salt together into key and IV
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)
199 // since the MAC is encrypted there is no reason to mash the passphrase for many iterations
200 Mash(passphrase, passphraseLength, macKey, macKeyLength, 1);
204 DefaultEncryptorWithMAC::DefaultEncryptorWithMAC(const char *passphrase, BufferedTransformation *attachment)
206 , m_mac(NewDefaultEncryptorMAC((const byte *)passphrase, strlen(passphrase)))
208 SetFilter(new HashFilter(*m_mac, new DefaultEncryptor(passphrase), true));
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));
225 DefaultDecryptorWithMAC::DefaultDecryptorWithMAC(const char *passphrase, BufferedTransformation *attachment, bool throwException)
227 , m_mac(NewDefaultEncryptorMAC((const byte *)passphrase, strlen(passphrase)))
230 SetFilter(new DefaultDecryptor(passphrase, m_hashVerifier=new HashVerifier(*m_mac, NULL, HashVerifier::PUT_MESSAGE), throwException));
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));