4 ms·
Where is crypto/af_alg.c actually used? In what use cases does this vulnerability come in to play?
by pmoriarty 8y ago
Where is crypto/af_alg.c actually used? In what use cases does this vulnerability come in to play?
- amaccuish 8y agoIt's used for crpyto acceleration AFAIK. E.g. I've used it to expose a beagleboards AES acceleration to OpenVPN via OpenSSL to make a small VPN client go faster.
- sigmaris 8y agoNot totally certain, but I believe it'd be used if a userspace program used the Linux Kernel Crypto API, using a socket of type AF_ALG. https://www.kernel.org/doc/html/v4.11/crypto/userspace-if.html https://www.kernel.org/doc/html/v4.11/crypto/userspace-if.ht...
- nyc_pizzadev 8y agoIts a kernel based crypto API. Ciphers, hashes, and keyed hashes (HMAC). It uses sockets to move data back and forth. Because its kernel based, there is going to be the usual kernel switch penalty. Sure, its hardware accelerated, but there are user space alternatives with zero kernel overhead. However, it does let you stash your private keys into kernel space and wipe those keys completely from user space. You then simply reference the keys you need to use. So in this regard, it can provide a higher level of key protection.
- ungamed 8y agoLook up man keyctl, sometimes used in disk crypto, or sharing secrets between userspace and kernel.