containers / ocicrypt

Encryption libraries for Encrypted OCI Container images
Apache License 2.0
133 stars 31 forks source link

decryption: Accumulate error messages in case no key can decrypt #28

Closed stefanberger closed 3 years ago

stefanberger commented 3 years ago

When decrypting we may try a lot of keys to find one that does the decryption. Sometimes no key works and in this case it is important to know what went wrong. So, let's accumulate the error messages in those loops where we would otherwise just 'continue' in case an error occurred.

Signed-off-by: Stefan Berger stefanb@linux.ibm.com