mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/confidential: Add From and Into for confidential byes arrays/vectors
Implement `TryFrom<Confidential<Vec<u8>> for Confidential<[u8; N]>` and `From<Confidential<[u8; N]> for Confidential<Vec<u8>>`. Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
e480c4738d
commit
7608cf2de4
@@ -74,6 +74,9 @@ pub enum Error {
|
||||
|
||||
#[error("Cannot decode hex string")]
|
||||
InvHexStringChar { source: std::num::ParseIntError },
|
||||
|
||||
#[error("Expected size {0}, found {1}")]
|
||||
LengthMismatch(usize, usize),
|
||||
}
|
||||
|
||||
/// Error cases for I/O operations
|
||||
|
||||
Reference in New Issue
Block a user