Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/_socket/test/apptest_socket.py::test_sendmsg_afalg_aes_cbc

def test_sendmsg_afalg_aes_cbc():
        import _socket
        _alg_skip_if_unavailable()
        key = bytes.fromhex('06a9214036b8a15b512e03d534120006')
        iv = bytes.fromhex('3dafba429d9eb430b422da802c9fac41')
        msg = b"Single block msg"
        ciphertext = bytes.fromhex('e353779c1079aeb82708942dbe77181a')
        msglen = len(msg)
>       algo = _alg_create('skcipher', 'cbc(aes)')

module/_socket/test/apptest_socket.py:956: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typ = W_UnicodeObject('skcipher'), name = W_UnicodeObject('cbc(aes)')

    def _alg_create(typ, name):
        import _socket
>       sock = _socket.socket(_socket.AF_ALG, _socket.SOCK_SEQPACKET, 0)
E       (application-level) PermissionError: [Errno 1] Operation not permitted

module/_socket/test/apptest_socket.py:920: OSError
builder: own-linux-x86-64 build #10910+
test: pypy/module/_socket/test/apptest_socket.py::test_sendmsg_afalg_aes_cbc