diff --git a/umbral-pre/src/bindings_python.rs b/umbral-pre/src/bindings_python.rs index 2b3e186..e9f2921 100644 --- a/umbral-pre/src/bindings_python.rs +++ b/umbral-pre/src/bindings_python.rs @@ -59,7 +59,7 @@ fn hash(data: impl AsRef<[u8]>) -> i64 { // we just need something fast that minimizes conflicts. let digest = Sha256::new().chain(data).finalize(); let (chunk, _): (GenericArray, _) = digest.split(); - let arr: [u8; 8] = chunk.try_into().unwrap(); + let arr: [u8; 8] = chunk.into(); i64::from_be_bytes(arr) }