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:
Marc Hartmayer
2024-10-14 19:18:22 +00:00
committed by Steffen Eiden
parent e480c4738d
commit 7608cf2de4
2 changed files with 50 additions and 0 deletions
+3
View File
@@ -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