crypto-openssl: use no padding for encrypt/decrypt 15/37215/5
authorVladimir Ratnikov <[email protected]>
Thu, 22 Sep 2022 08:19:18 +0000 (08:19 +0000)
committerDamjan Marion <[email protected]>
Tue, 27 Sep 2022 15:11:07 +0000 (15:11 +0000)
commit05554c6e98f5bd088543f7b33aabc9b215d55cd0
treef25b77c25e434f31a0fdd4f717eded48e87389ba
parent1834b04d20552e92da11719afddd5497f522273a
crypto-openssl: use no padding for encrypt/decrypt

 Internaly, vpp uses it's own padding, so all the data
is padded using blocksize in /src/vnet/ipsec/ipsec.c

 Openssl should add it's own padding, but the data
is already padded. So on decrypt stage when padding
should be removed, it can't be done. And it produces
error `bad decrypt`
 Previous versions of openSSL decrypted data almost
at the beginning of EVP_DecryptUpdate/EVP_DecryptFinal_ex
and produced the same error, but data was already decrypted.
Now it's not, so some algorithms could have some problems
 with it

PS. openSSL 3.x.x

Type: fix

Signed-off-by: Vladimir Ratnikov <[email protected]>
Change-Id: If715a80228548b4e588cee222968d9da9024c438
src/plugins/crypto_openssl/main.c