Stephan Mueller started a new discussion on lib/accelerated/afalg.c:
92 | 95 |
return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
|
93 | 96 |
|
94 | 97 |
memcpy(ctx->iv, iv, iv_size);
|
98 |
+ if(!ctx->encdec){
|
Sorry for the nit (and I guess you have tested it), but the afalg_cipher_init parameter is called enc - I would interpret that it contains 1 for encryption and 0 for decryption. If my interpretation would be correct, isn't this here a reversion of the logic?