Loading openssl/src/md_ctx.rs +7 −3 Original line number Diff line number Diff line Loading @@ -499,8 +499,12 @@ mod test { #[test] #[cfg(ossl111)] fn verify_md_ctx_reset() { let hello_expected = hex::decode("185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969").unwrap(); let world_expected = hex::decode("78ae647dc5544d227130a0682a51e30bc7777fbb6d8a8f17007463a3ecd1d524").unwrap(); let hello_expected = hex::decode("185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969") .unwrap(); let world_expected = hex::decode("78ae647dc5544d227130a0682a51e30bc7777fbb6d8a8f17007463a3ecd1d524") .unwrap(); // Calculate SHA-256 digest of "Hello" let mut ctx = MdCtx::new().unwrap(); ctx.digest_init(Md::sha256()).unwrap(); Loading Loading
openssl/src/md_ctx.rs +7 −3 Original line number Diff line number Diff line Loading @@ -499,8 +499,12 @@ mod test { #[test] #[cfg(ossl111)] fn verify_md_ctx_reset() { let hello_expected = hex::decode("185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969").unwrap(); let world_expected = hex::decode("78ae647dc5544d227130a0682a51e30bc7777fbb6d8a8f17007463a3ecd1d524").unwrap(); let hello_expected = hex::decode("185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969") .unwrap(); let world_expected = hex::decode("78ae647dc5544d227130a0682a51e30bc7777fbb6d8a8f17007463a3ecd1d524") .unwrap(); // Calculate SHA-256 digest of "Hello" let mut ctx = MdCtx::new().unwrap(); ctx.digest_init(Md::sha256()).unwrap(); Loading