[Python-Dev] Patch reviews (original) (raw)
Christian Heimes christian at python.org
Sun Sep 4 06:57:41 EDT 2016
- Previous message (by thread): [Python-Dev] Patch reviews
- Next message (by thread): [Python-Dev] Patch reviews
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2016-09-01 23:15, Victor Stinner wrote:
2016-08-31 22:31 GMT+02:00 Christian Heimes <christian at python.org>:
https://bugs.python.org/issue27744 Add AFALG (Linux Kernel crypto) to socket module This patch adds a new socket.sendmsgafalg() method on Linux. "afalg" comes from AFALG which means "Address Family Algorithm". It's documented as "afalg: User-space algorithm interface" in crypto/afalg.c. IHMO the method should be just "sendmsgalg()", beacuse "afalg" is redundant. The AF prefix is only used to workaround a C limitation: there is no namespace in the language, all symbols are in one single giant namespace. I don't expect that a platform will add a new sendmsgalg() C function. If it's the case, we will see how to handle the name conflict ;-)
Hi,
afalg is pretty much the standard name for Linux Kernel crypto. For example OpenSSL 1.1.0 introduced a crypto engine to offload AES. The engine is called 'afalg' [1]. Other documentations refer to the interface as either afalg or AF_ALG, too. I prefer to use an established name for the method.
Christian
[1] https://github.com/openssl/openssl/blob/master/engines/afalg/e_afalg.c#L88
- Previous message (by thread): [Python-Dev] Patch reviews
- Next message (by thread): [Python-Dev] Patch reviews
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]