mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Fix two edge cases for generating and interpreting plaintext secrets:
1. The maximum payload size was two bytes to long. The space for the
length header was forgotten to take into account.
2. One of the checks for if the plaintext secret has a size was too
strict.
Fixes: fd024387d7 ("rust/pv: Retrievable secrets support")
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
s390_pv - library for pv-tools
This library is intended to be used by tools and libraries that
are used for creating and managing IBM Secure Execution guests.
pv provides abstraction layers for encryption, secure memory management,
and accessing the uvdevice.
If your project is not targeted to provide tooling for and/or managing of IBM Secure execution guests, do not use this crate.
OpenSSL 1.1.0+ is required
If you do not need any OpenSSL features use s390_pv_core.
This crate reexports all symbols from s390_pv_core. If your project uses this crate do not include s390_pv_core as well.
Import crate
The recommended way of importing this crate is:
cargo add s390_pv --rename pv