Fix block cipher padding when using libgcrypt.