Lines Matching refs:sha256
15 use bssl_avf::{sha256, ApiName, Digester, EcKey, EcdsaError, Error, PKey, Result};
86 let digester = Digester::sha256(); in ecdsa_p256_signing_and_verification_succeed()
88 assert_eq!(digest, sha256(MESSAGE1)?); in ecdsa_p256_signing_and_verification_succeed()
115 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_p256_signed_with_a_different_key_fails()
125 let err = pkey.verify(&signature, MESSAGE1, Some(Digester::sha256())).unwrap_err(); in verifying_ecdsa_p256_signed_with_a_different_key_fails()
136 let digest1 = sha256(MESSAGE1)?; in verifying_ecdsa_p256_signed_with_a_different_message_fails()
138 let digest2 = sha256(MESSAGE2)?; in verifying_ecdsa_p256_signed_with_a_different_message_fails()
148 let digest = sha256(MESSAGE1)?; in ecdsa_cose_signing_and_verification_succeed()
160 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_cose_signed_with_a_different_message_fails()
166 let err = ec_key.ecdsa_verify_cose(&signature, &sha256(MESSAGE2)?).unwrap_err(); in verifying_ecdsa_cose_signed_with_a_different_message_fails()
174 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_cose_signed_as_der_fails()