Re: optimizing af_alg

2018-05-08 Thread Matteo Croce
On Tue, May 8, 2018 at 2:59 AM, Bruno Haible wrote: > Matteo Croce wrote: >> Obviously it works only if you always use the same algo and with a >> single thread > > Why only in a single thread? Can't you do > > socket(AF_ALG, SOCK_SEQPACKET, 0) = 3 > bind(3, {sa_family=AF_ALG, sa_data="h

Re: optimizing af_alg

2018-05-07 Thread Bruno Haible
Matteo Croce wrote: > Obviously it works only if you always use the same algo and with a > single thread Why only in a single thread? Can't you do socket(AF_ALG, SOCK_SEQPACKET, 0) = 3 bind(3, {sa_family=AF_ALG, sa_data="hash\0... sha1\0..."}, 88) = 0 accept(3, NULL, NULL) = 4