Lines Matching refs:digest
87 let digest = digester.digest(MESSAGE1)?; in ecdsa_p256_signing_and_verification_succeed() localVariable
88 assert_eq!(digest, sha256(MESSAGE1)?); in ecdsa_p256_signing_and_verification_succeed()
90 let signature = ec_key.ecdsa_sign_der(&digest)?; in ecdsa_p256_signing_and_verification_succeed()
91 ec_key.ecdsa_verify_der(&signature, &digest)?; in ecdsa_p256_signing_and_verification_succeed()
103 let digest = digester.digest(MESSAGE1)?; in ecdsa_p384_signing_and_verification_succeed() localVariable
105 let signature = ec_key.ecdsa_sign_der(&digest)?; in ecdsa_p384_signing_and_verification_succeed()
106 ec_key.ecdsa_verify_der(&signature, &digest)?; in ecdsa_p384_signing_and_verification_succeed()
115 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_p256_signed_with_a_different_key_fails() localVariable
116 let signature = ec_key1.ecdsa_sign_der(&digest)?; in verifying_ecdsa_p256_signed_with_a_different_key_fails()
120 let err = ec_key2.ecdsa_verify_der(&signature, &digest).unwrap_err(); in verifying_ecdsa_p256_signed_with_a_different_key_fails()
148 let digest = sha256(MESSAGE1)?; in ecdsa_cose_signing_and_verification_succeed() localVariable
152 let signature = ec_key.ecdsa_sign_cose(&digest)?; in ecdsa_cose_signing_and_verification_succeed()
153 ec_key.ecdsa_verify_cose(&signature, &digest)?; in ecdsa_cose_signing_and_verification_succeed()
160 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_cose_signed_with_a_different_message_fails() localVariable
164 let signature = ec_key.ecdsa_sign_cose(&digest)?; in verifying_ecdsa_cose_signed_with_a_different_message_fails()
174 let digest = sha256(MESSAGE1)?; in verifying_ecdsa_cose_signed_as_der_fails() localVariable
178 let signature = ec_key.ecdsa_sign_cose(&digest)?; in verifying_ecdsa_cose_signed_as_der_fails()
179 let err = ec_key.ecdsa_verify_der(&signature, &digest).unwrap_err(); in verifying_ecdsa_cose_signed_as_der_fails()