/third_party/rust/crates/rust-openssl/openssl/src/ |
D | hash.rs | 55 pub struct MessageDigest(*const ffi::EVP_MD); struct 57 impl MessageDigest { implementation 64 MessageDigest(x) in from_ptr() 72 pub fn from_nid(type_: Nid) -> Option<MessageDigest> { in from_nid() argument 78 Some(MessageDigest(ptr)) in from_nid() 88 pub fn from_name(name: &str) -> Option<MessageDigest> { in from_name() argument 96 Some(MessageDigest(ptr)) in from_name() 102 pub fn null() -> MessageDigest { in null() 103 unsafe { MessageDigest(ffi::EVP_md_null()) } in null() 106 pub fn md5() -> MessageDigest { in md5() [all …]
|
D | pkcs5.rs | 9 use crate::hash::MessageDigest; 35 digest: MessageDigest, in bytes_to_key() argument 95 hash: MessageDigest, in pbkdf2_hmac() argument 149 use crate::hash::MessageDigest; 159 super::pbkdf2_hmac(b"passwd", b"salt", 1, MessageDigest::sha256(), &mut buf).unwrap(); in pbkdf2_hmac_sha256() 172 MessageDigest::sha256(), in pbkdf2_hmac_sha256() 191 super::pbkdf2_hmac(b"password", b"NaCL", 1, MessageDigest::sha512(), &mut buf).unwrap(); in pbkdf2_hmac_sha512() 210 MessageDigest::sha512(), in pbkdf2_hmac_sha512() 232 MessageDigest::sha512(), in pbkdf2_hmac_sha512() 275 MessageDigest::sha1(), in bytes_to_key()
|
D | sign.rs | 78 use crate::hash::MessageDigest; 142 pub fn new<'a, T>(type_: MessageDigest, pkey: &PKeyRef<T>) -> Result<Signer<'a>, ErrorStack> in new() argument 165 type_: Option<MessageDigest>, in new_intern() argument 252 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() 436 pub fn new<T>(type_: MessageDigest, pkey: &'a PKeyRef<T>) -> Result<Verifier<'a>, ErrorStack> in new() argument 458 type_: Option<MessageDigest>, in new_intern() argument 545 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() 652 use crate::hash::MessageDigest; 679 let mut signer = Signer::new(MessageDigest::sha256(), &pkey).unwrap(); in rsa_sign() 694 let mut verifier = Verifier::new(MessageDigest::sha256(), &pkey).unwrap(); in rsa_verify_ok() [all …]
|
D | pkcs12.rs | 10 use crate::hash::MessageDigest; 136 mac_md: Option<MessageDigest>, 198 pub fn mac_md(&mut self, md: MessageDigest) -> &mut Self { in mac_md() 288 use crate::hash::MessageDigest; 307 hex::encode(parsed.cert.unwrap().digest(MessageDigest::sha1()).unwrap()), in parse() 314 hex::encode(chain[0].digest(MessageDigest::sha1()).unwrap()), in parse() 357 builder.sign(&pkey, MessageDigest::sha256()).unwrap(); in create() 372 &*parsed.cert.unwrap().digest(MessageDigest::sha1()).unwrap(), in create() 373 &*cert.digest(MessageDigest::sha1()).unwrap() in create()
|
D | encrypt.rs | 47 use crate::hash::MessageDigest; 134 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() 152 pub fn set_rsa_oaep_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_oaep_md() 338 pub fn set_rsa_mgf1_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_mgf1_md() 356 pub fn set_rsa_oaep_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> { in set_rsa_oaep_md() 482 use crate::hash::MessageDigest; 522 let md = MessageDigest::sha256(); in rsa_encrypt_decrypt_with_sha256()
|
D | dsa.rs | 537 use crate::hash::MessageDigest; 641 let mut signer = Signer::new(MessageDigest::sha256(), &priv_key).unwrap(); in test_signature() 645 let mut verifier = Verifier::new(MessageDigest::sha256(), &pub_key).unwrap(); in test_signature() 661 let mut signer = Signer::new(MessageDigest::sha256(), &priv_key).unwrap(); in test_signature_der() 674 let mut verifier = Verifier::new(MessageDigest::sha256(), &pub_key).unwrap(); in test_signature_der()
|
D | pkcs7.rs | 286 use crate::hash::MessageDigest; 408 let cert_digest = cert.digest(MessageDigest::sha256()).unwrap(); in signers() 435 let signer_digest = signer_certs[0].digest(MessageDigest::sha256()).unwrap(); in signers()
|
D | pkey_ctx.rs | 725 use crate::hash::{hash, MessageDigest}; 795 let digest = hash(MessageDigest::sha384(), msg).unwrap(); in rsa_sign() 799 let mut verifier = Verifier::new(MessageDigest::sha384(), &pkey).unwrap(); in rsa_sign() 817 let digest = hash(MessageDigest::sha384(), msg).unwrap(); in rsa_sign_pss() 821 let mut verifier = Verifier::new(MessageDigest::sha384(), &pkey).unwrap(); in rsa_sign_pss()
|
D | ocsp.rs | 9 use crate::hash::MessageDigest; 224 digest: MessageDigest, in from_cert() argument
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/common/ |
D | SetRfcDictionaryTest.java | 18 import java.security.MessageDigest; 33 MessageDigest md5 = MessageDigest.getInstance("MD5"); in testRfcDictionaryChecksums() 37 MessageDigest sha1 = MessageDigest.getInstance("SHA-1"); in testRfcDictionaryChecksums() 41 MessageDigest sha256 = MessageDigest.getInstance("SHA-256"); in testRfcDictionaryChecksums()
|
/third_party/rust/crates/rust-openssl/openssl/examples/ |
D | mk_certs.rs | 9 use openssl::hash::MessageDigest; 59 cert_builder.sign(&key_pair, MessageDigest::sha256())?; in mk_ca_cert() 78 req_builder.sign(key_pair, MessageDigest::sha256())?; in mk_request() 136 cert_builder.sign(ca_key_pair, MessageDigest::sha256())?; in mk_ca_signed_cert()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/ |
D | FontFactory.java | 30 import java.security.MessageDigest; 171 MessageDigest digest = null; in loadSingleOTFForBuilding() 174 digest = MessageDigest.getInstance("SHA-1"); in loadSingleOTFForBuilding() 260 MessageDigest digest = null; in loadSingleOTFForBuilding()
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMap.java | 48 import java.security.MessageDigest; 229 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in hash()
|
D | RubyMessage.java | 44 import java.security.MessageDigest; 178 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in hash()
|
/third_party/rust/crates/rust-openssl/openssl/src/x509/ |
D | tests.rs | 5 use crate::hash::MessageDigest; 48 let fingerprint = cert.digest(MessageDigest::sha1()).unwrap(); in test_cert_loading() 343 builder.sign(&pkey, MessageDigest::sha256()).unwrap(); in x509_builder() 457 builder.sign(&pkey, MessageDigest::sha256()).unwrap(); in x509_req_builder() 472 hex::encode(certs[0].digest(MessageDigest::sha1()).unwrap()), in test_stack_from_pem() 476 hex::encode(certs[1].digest(MessageDigest::sha1()).unwrap()), in test_stack_from_pem()
|
D | mod.rs | 34 use crate::hash::{DigestBytes, MessageDigest}; 363 pub fn sign<T>(&mut self, key: &PKeyRef<T>, hash: MessageDigest) -> Result<(), ErrorStack> in sign() 544 pub fn digest(&self, hash_type: MessageDigest) -> Result<DigestBytes, ErrorStack> { in digest() 564 pub fn fingerprint(&self, hash_type: MessageDigest) -> Result<Vec<u8>, ErrorStack> { in fingerprint() 1457 pub fn sign<T>(&mut self, key: &PKeyRef<T>, hash: MessageDigest) -> Result<(), ErrorStack> in sign()
|
/third_party/rust/crates/rust-openssl/openssl/ |
D | CHANGELOG.md | 187 * Added `MessageDigest::block_size` and `MdRef::block_size`. 277 * Added `MessageDigest::sm3`. 292 * Added `MessageDigest::from_name`. 373 * Added `MessageDigest::null`. 456 * Implemented `PartialEq` and `Eq` for `MessageDigest`. 457 * Added `MessageDigest::type_` and `EcGroupRef::curve_name`. 493 * Added SHA3 and SHAKE to `MessageDigest`. 574 * Added `MessageDigest::from_nid`.
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/ |
D | mod.rs | 19 use crate::hash::MessageDigest; 222 let digest = cert.digest(MessageDigest::sha1()).unwrap(); in verify_callback() 244 let digest = cert.digest(MessageDigest::sha1()).unwrap(); in ssl_verify_callback() 290 let fingerprint = cert.digest(MessageDigest::sha1()).unwrap(); in peer_certificate()
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
D | mod.rs | 67 use crate::hash::MessageDigest; 2037 pub fn handshake_digest(&self) -> Option<MessageDigest> { in handshake_digest() argument 2043 Some(MessageDigest::from_ptr(ptr)) in handshake_digest()
|