Lines Matching refs:pbkdf2
897 def _test_pbkdf2_hmac(self, pbkdf2): argument
904 out = pbkdf2(digest_name, password, salt, rounds, dklen)
907 out = pbkdf2(digest_name, memoryview(password),
909 out = pbkdf2(digest_name, bytearray(password),
913 out = pbkdf2(digest_name, password, salt, rounds)
917 self.assertRaises(TypeError, pbkdf2, b'sha1', b'pass', b'salt', 1)
918 self.assertRaises(TypeError, pbkdf2, 'sha1', 'pass', 'salt', 1)
919 self.assertRaises(ValueError, pbkdf2, 'sha1', b'pass', b'salt', 0)
920 self.assertRaises(ValueError, pbkdf2, 'sha1', b'pass', b'salt', -1)
921 self.assertRaises(ValueError, pbkdf2, 'sha1', b'pass', b'salt', 1, 0)
922 self.assertRaises(ValueError, pbkdf2, 'sha1', b'pass', b'salt', 1, -1)
924 pbkdf2('unknown', b'pass', b'salt', 1)
925 out = pbkdf2(hash_name='sha1', password=b'password', salt=b'salt',