Low level ops?

Stef Bon stefbon at gmail.com
Sun Jun 10 11:25:27 CEST 2018


I've got a ssh client to access sftp via fuse.
Now I'm working on making parallel encryption and decryption work. I
hope I can achieve some performance improvements.

Now I'm asking whether "low level" function calls in gcrypt can make
things run faster. Let me explain what I mean. When I look at
cipher-cbc to the function to encrypt en decrypt. These functions
check first the blocksize and the buffer (and both). These checks are
done over and over again, for every message. Does it slow things a
bit? If so it may be worth the effort to create encrypt/decrypt calls
whithout these checks. In my application the length of the ouputbuffer
is always equal to the length of the inputbuffer. And the blocksize is
always the default blocksize for the cipher. And in ssh the input
buffer length is always is multiple of the blocksize (padding is

It's also possibe that these checks do not cost anything. I don't know.

Stef Bon
the Netherlands

More information about the Gcrypt-devel mailing list