mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pv: Signing messages
Adds the ability to sign and verify messages using ECDH or RSA keys. Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
1450f85ada
commit
bfd0e12d22
@@ -32,6 +32,12 @@ pub enum Error {
|
||||
#[error("Internal (unexpected) error: {0}, caused by {1}")]
|
||||
InternalSsl(&'static str, #[source] openssl::error::ErrorStack),
|
||||
|
||||
#[error("Signing is only supported for EC and RSA keys")]
|
||||
UnsupportedSigningKey,
|
||||
|
||||
#[error("Verifying signatures is only supported for EC and RSA keys")]
|
||||
UnsupportedVerificationKey,
|
||||
|
||||
// errors from other crates
|
||||
#[error(transparent)]
|
||||
PvCore(#[from] pv_core::Error),
|
||||
|
||||
Reference in New Issue
Block a user