Files
s390-tools/rust/pv
Steffen Eiden ff04f76257 rust/pv*: Allow the use of non-hashes secret IDs
Secret IDs identify a secret in the store. Tooling (pvsecret) calculates
them by hashing a user-defined string. With this patch it is now
possible to skip the hash step and directly use the input string as the
ID. Up to the first 31 bytes of the input ASCII-string are used. The last byte
is the NUL char. During list pvsecret tries to interpret the secret
as ASCII string and if possible displays the ASCII characters alongside
the hex number.

Also, use the Upper/Lower Hex formatters for the hexstring formatting of
SecretId. Display will, additionally show the ASCII representation if
applicable.

While at it, use Self wherever possible.

Acked-by: Marc Hartmayer <marc@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2024-12-20 13:01:15 +01:00
..
2024-05-27 16:53:03 +02:00

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