MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_rfc7914_vectors

Method test_rfc7914_vectors

tests/test_scram.py:54–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.scram = SCRAMAuthentication(b"SCRAM-SHA-256")
53
54 def test_rfc7914_vectors(self):
55 for password, salt, iterations, expected in RFC7914_VECTORS:
56 derived = self.scram._generate_salted_password(
57 password.decode(), base64.b64encode(salt), iterations)
58 self.assertEqual(derived.hex(), expected)
59
60 def test_rfc7677_salted_password(self):
61 derived = self.scram._generate_salted_password(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected