+ if(cipher->padding) {
+ if((err = gcry_cipher_encrypt(cipher->handle, outdata + inlen, cipher->blklen, pad, cipher->blklen))) {
+ logger(LOG_ERR, "Error while encrypting: %s", gcry_strerror(err));
+ return false;
+ }
+
+ inlen += cipher->blklen;
+ }