Message415903
test_socket has examples for HMAC, AES-CBC, and AES-GCM.
with self.create_alg('hash', 'hmac(sha1)') as algo:
algo.setsockopt(socket.SOL_ALG, socket.ALG_SET_KEY, b"Jefe")
op, _ = algo.accept()
with op:
op.sendall(b"what do ya want for nothing?")
self.assertEqual(op.recv(512), expected) |
|
Date |
User |
Action |
Args |
2022-03-23 19:54:20 | christian.heimes | set | recipients:
+ christian.heimes, gregory.p.smith |
2022-03-23 19:54:20 | christian.heimes | set | messageid: <1648065260.92.0.461872971305.issue47102@roundup.psfhosted.org> |
2022-03-23 19:54:20 | christian.heimes | link | issue47102 messages |
2022-03-23 19:54:20 | christian.heimes | create | |
|