Skip to content

Commit

Permalink
add android specific errors
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <sliedrecht@berend.io>
  • Loading branch information
berendsliedrecht committed May 6, 2024
1 parent 4c5bc48 commit b7192cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions askar-crypto/src/alg/p256_hardware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ impl From<SecureEnvError> for Error {
SecureEnvError::UnableToCreateSignature(_) => ErrorKind::Invalid,
SecureEnvError::UnableToGetPublicKey(_) => ErrorKind::Invalid,
SecureEnvError::HardwareBackedKeysAreNotSupported(_) => ErrorKind::Custom,

#[cfg(target_os = "android")]
SecureEnvError::UnableToCreateJavaValue(_) => ErrorKind::Custom,
#[cfg(target_os = "android")]
SecureEnvError::UnableToAttachHJVMToThread(_) => ErrorKind::Custom,
};

Self {
Expand Down

0 comments on commit b7192cb

Please sign in to comment.