ESP output when using NULL encryption and NON authentication

2008-11-27 Thread Dean Jenkins
Hi, I am writing a kernel driver for hardware crypto offloading for IPsec. I have configured IPsec to use NULL encryption and NON authentication. The ESP packets contain just the encapsulated packet as expected. However, ESP's call to crypto_aead_decrypt() puts the start of the encapsulated pa

[PATCH] crypto: Validate output length in (de)compression tests

2008-11-27 Thread Geert Uytterhoeven
When self-testing (de)compression algorithms, make sure the actual size of the (de)compressed output data matches the expected output size. Otherwise, in case the actual output size would be smaller than the expected output size, the subsequent buffer compare test would still succeed, and no error