/external/python/cryptography/src/cryptography/hazmat/primitives/ |
D | hashes.py | 19 class HashAlgorithm(object): class 38 A HashAlgorithm that will be used by this context. 76 if not isinstance(algorithm, HashAlgorithm): 77 raise TypeError("Expected instance of hashes.HashAlgorithm.") 110 @utils.register_interface(HashAlgorithm) 117 @utils.register_interface(HashAlgorithm) 124 @utils.register_interface(HashAlgorithm) 131 @utils.register_interface(HashAlgorithm) 138 @utils.register_interface(HashAlgorithm) 145 @utils.register_interface(HashAlgorithm) [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ct/ |
D | DigitallySigned.java | 28 public enum HashAlgorithm { enum in DigitallySigned 37 private static HashAlgorithm[] values = values(); 38 public static HashAlgorithm valueOf(int ord) { in valueOf() 63 private final HashAlgorithm hashAlgorithm; field in DigitallySigned 67 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned() argument 70 this.hashAlgorithm = hashAlgorithm; in DigitallySigned() 75 public DigitallySigned(int hashAlgorithm, in DigitallySigned() argument 79 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned() 85 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm() 86 return hashAlgorithm; in getHashAlgorithm() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/its/asn1/ |
D | HashAlgorithm.java | 13 public class HashAlgorithm class 16 public static final HashAlgorithm sha256 = new HashAlgorithm(0); 17 public static final HashAlgorithm sha384 = new HashAlgorithm(1); 20 protected HashAlgorithm(int ordinal) in HashAlgorithm() method in HashAlgorithm 25 private HashAlgorithm(ASN1Enumerated enumerated) in HashAlgorithm() method in HashAlgorithm 30 public HashAlgorithm getInstance(Object src) in getInstance() 36 else if (src instanceof HashAlgorithm) in getInstance() 38 return (HashAlgorithm)src; in getInstance() 42 return new HashAlgorithm(ASN1Enumerated.getInstance(src)); in getInstance()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/ |
D | DigitallySigned.java | 33 public enum HashAlgorithm { enum in DigitallySigned 42 private static HashAlgorithm[] values = values(); 43 public static HashAlgorithm valueOf(int ord) { in valueOf() 71 private final HashAlgorithm hashAlgorithm; field in DigitallySigned 75 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned() argument 78 this.hashAlgorithm = hashAlgorithm; in DigitallySigned() 83 public DigitallySigned(int hashAlgorithm, in DigitallySigned() argument 87 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned() 93 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm() 94 return hashAlgorithm; in getHashAlgorithm() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/its/asn1/ |
D | HashAlgorithm.java | 15 public class HashAlgorithm class 18 public static final HashAlgorithm sha256 = new HashAlgorithm(0); 19 public static final HashAlgorithm sha384 = new HashAlgorithm(1); 22 protected HashAlgorithm(int ordinal) in HashAlgorithm() method in HashAlgorithm 27 private HashAlgorithm(ASN1Enumerated enumerated) in HashAlgorithm() method in HashAlgorithm 32 public HashAlgorithm getInstance(Object src) in getInstance() 38 else if (src instanceof HashAlgorithm) in getInstance() 40 return (HashAlgorithm)src; in getInstance() 44 return new HashAlgorithm(ASN1Enumerated.getInstance(src)); in getInstance()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/its/asn1/ |
D | HashAlgorithm.java | 15 public class HashAlgorithm class 18 public static final HashAlgorithm sha256 = new HashAlgorithm(0); 19 public static final HashAlgorithm sha384 = new HashAlgorithm(1); 22 protected HashAlgorithm(int ordinal) in HashAlgorithm() method in HashAlgorithm 27 private HashAlgorithm(ASN1Enumerated enumerated) in HashAlgorithm() method in HashAlgorithm 32 public HashAlgorithm getInstance(Object src) in getInstance() 38 else if (src instanceof HashAlgorithm) in getInstance() 40 return (HashAlgorithm)src; in getInstance() 44 return new HashAlgorithm(ASN1Enumerated.getInstance(src)); in getInstance()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | RSAESOAEPparams.java | 18 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 46 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 52 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 56 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 68 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 79 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 95 return hashAlgorithm; in getHashAlgorithm() 111 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 138 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 140 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
D | RSASSAPSSparams.java | 20 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 57 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 62 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 71 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 102 return hashAlgorithm; in getHashAlgorithm() 123 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 150 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 152 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/ |
D | RSAESOAEPparams.java | 22 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 56 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 60 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 72 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 99 return hashAlgorithm; in getHashAlgorithm() 115 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 142 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 144 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
D | RSASSAPSSparams.java | 24 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 54 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 61 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 66 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 75 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 87 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 106 return hashAlgorithm; in getHashAlgorithm() 127 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 154 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 156 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/pkcs/ |
D | RSAESOAEPparams.java | 22 private AlgorithmIdentifier hashAlgorithm; field in RSAESOAEPparams 50 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 56 AlgorithmIdentifier hashAlgorithm, in RSAESOAEPparams() argument 60 this.hashAlgorithm = hashAlgorithm; in RSAESOAEPparams() 72 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSAESOAEPparams() 83 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSAESOAEPparams() 99 return hashAlgorithm; in getHashAlgorithm() 115 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 142 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 144 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
D | RSASSAPSSparams.java | 24 private AlgorithmIdentifier hashAlgorithm; field in RSASSAPSSparams 54 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 61 AlgorithmIdentifier hashAlgorithm, in RSASSAPSSparams() argument 66 this.hashAlgorithm = hashAlgorithm; in RSASSAPSSparams() 75 hashAlgorithm = DEFAULT_HASH_ALGORITHM; in RSASSAPSSparams() 87 hashAlgorithm = AlgorithmIdentifier.getInstance(o, true); in RSASSAPSSparams() 106 return hashAlgorithm; in getHashAlgorithm() 127 * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, 154 if (!hashAlgorithm.equals(DEFAULT_HASH_ALGORITHM)) in toASN1Primitive() 156 v.add(new DERTaggedObject(true, 0, hashAlgorithm)); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/ |
D | CertID.java | 16 AlgorithmIdentifier hashAlgorithm; field in CertID 22 AlgorithmIdentifier hashAlgorithm, in CertID() argument 27 this.hashAlgorithm = hashAlgorithm; in CertID() 36 hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); in CertID() 66 return hashAlgorithm; in getHashAlgorithm() 88 * hashAlgorithm AlgorithmIdentifier, 98 v.add(hashAlgorithm); in toASN1Primitive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ocsp/ |
D | CertID.java | 20 AlgorithmIdentifier hashAlgorithm; field in CertID 26 AlgorithmIdentifier hashAlgorithm, in CertID() argument 31 this.hashAlgorithm = hashAlgorithm; in CertID() 40 hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); in CertID() 70 return hashAlgorithm; in getHashAlgorithm() 92 * hashAlgorithm AlgorithmIdentifier, 102 v.add(hashAlgorithm); in toASN1Primitive()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | PKWareExtraHeader.java | 259 public enum HashAlgorithm { enum in PKWareExtraHeader 271 private static final Map<Integer, HashAlgorithm> codeToEnum; 274 final Map<Integer, HashAlgorithm> cte = new HashMap<>(); 275 for (final HashAlgorithm method : values()) { 284 HashAlgorithm(final int code) { in HashAlgorithm() method in PKWareExtraHeader.HashAlgorithm 298 * Returns the HashAlgorithm for the given code or null if the method is 301 * @return the HashAlgorithm for the given code or null 304 public static HashAlgorithm getAlgorithmByCode(final int code) { in getAlgorithmByCode()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | PkWareExtraHeaderTest.java | 25 import org.apache.commons.compress.archivers.zip.PKWareExtraHeader.HashAlgorithm; 40 int code = HashAlgorithm.SHA256.getCode(); in testHashAlgorithm() 41 HashAlgorithm e = HashAlgorithm.valueOf(name); in testHashAlgorithm()
|
/external/libchrome/crypto/ |
D | signature_creator.h | 29 enum HashAlgorithm { enum 37 // instance outlives the created SignatureCreator. Uses the HashAlgorithm 40 HashAlgorithm hash_alg); 45 HashAlgorithm hash_alg,
|
/external/tpm2-tss/src/tss2-fapi/ |
D | fapi_crypto.c | 232 * @param[in] hashAlgorithm The TSS hash algorithm identifier 235 * hashAlgorithm could be found 239 get_hash_md(TPM2_ALG_ID hashAlgorithm) in get_hash_md() argument 241 switch (hashAlgorithm) { in get_hash_md() 620 * @param[in] hashAlgorithm The TSS identifier of the hash algorithm to use 633 TPMI_ALG_HASH hashAlgorithm, in ifapi_ecc_der_sig_to_tpm() argument 662 tpmSignature->signature.ecdsa.hash = hashAlgorithm; in ifapi_ecc_der_sig_to_tpm() 684 * @param[in] hashAlgorithm The TSS identifier for the hash algorithm used 700 TPMI_ALG_HASH hashAlgorithm, in ifapi_der_sig_to_tpm() argument 712 tpmSignature->signature.rsapss.hash = hashAlgorithm; in ifapi_der_sig_to_tpm() [all …]
|
D | fapi_crypto.h | 22 TPMI_ALG_HASH hashAlgorithm, 60 TPM2_ALG_ID hashAlgorithm); 88 TPM2_ALG_ID hashAlgorithm); 98 TPMI_ALG_HASH *hashAlgorithm);
|
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/ |
D | padding.py | 54 if not isinstance(algorithm, hashes.HashAlgorithm): 55 raise TypeError("Expected instance of hashes.HashAlgorithm.") 66 if not isinstance(algorithm, hashes.HashAlgorithm): 67 raise TypeError("Expected instance of hashes.HashAlgorithm.")
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLTypeHashing.cpp | 31 io.mapRequired("HashAlgorithm", DebugH.HashAlgorithm); in mapping() 56 cantFail(Reader.readInteger(DHS.HashAlgorithm)); in fromDebugH() 76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH()
|
/external/llvm-project/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLTypeHashing.cpp | 31 io.mapRequired("HashAlgorithm", DebugH.HashAlgorithm); in mapping() 56 cantFail(Reader.readInteger(DHS.HashAlgorithm)); in fromDebugH() 76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH()
|
/external/python/pyasn1-modules/pyasn1_modules/ |
D | rfc4055.py | 116 class HashAlgorithm(rfc5280.AlgorithmIdentifier): class 187 namedtype.OptionalNamedType('hashAlgorithm', rfc5280.AlgorithmIdentifier().subtype( 204 rSASSA_PSS_SHA224_Params['hashAlgorithm'] = sha224Identifier.subtype( 214 rSASSA_PSS_SHA256_Params['hashAlgorithm'] = sha256Identifier.subtype( 224 rSASSA_PSS_SHA384_Params['hashAlgorithm'] = sha384Identifier.subtype( 234 rSASSA_PSS_SHA512_Params['hashAlgorithm'] = sha512Identifier.subtype(
|
/external/avb/proto/crypto/sigpb/ |
D | sigpb.proto | 23 // HashAlgorithm defines the approved methods for object hashing. 28 enum HashAlgorithm { enum 52 HashAlgorithm hash_algorithm = 1;
|
/external/python/pyasn1-modules/tools/ |
D | ocspclient.py | 81 hashAlgorithm = reqCert.setComponentByName('hashAlgorithm').getComponentByName('hashAlgorithm') 82 hashAlgorithm.setComponentByName('algorithm', sha1oid)
|