Home
last modified time | relevance | path

Searched refs:HashAlgorithm (Results 1 – 25 of 65) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/its/asn1/
DHashAlgorithm.java13 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/its/asn1/
DHashAlgorithm.java15 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/
DHashAlgorithm.java15 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/python/cryptography/src/cryptography/hazmat/primitives/
Dhashes.py19 class HashAlgorithm(object): class
76 if not isinstance(algorithm, 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)
152 @utils.register_interface(HashAlgorithm)
159 @utils.register_interface(HashAlgorithm)
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/ct/
DDigitallySigned.java28 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;
67 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned()
79 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned()
85 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/
DDigitallySigned.java33 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;
75 public DigitallySigned(HashAlgorithm hashAlgorithm, in DigitallySigned()
87 HashAlgorithm.valueOf(hashAlgorithm), in DigitallySigned()
93 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DPKWareExtraHeader.java259 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
304 public static HashAlgorithm getAlgorithmByCode(final int code) { in getAlgorithmByCode()
DX0016_CertificateIdForCentralDirectory.java52 private HashAlgorithm hashAlg;
66 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm()
73 this.hashAlg = HashAlgorithm.getAlgorithmByCode(ZipShort.getValue(data, offset + 2)); in parseFromCentralDirectoryData()
DX0015_CertificateIdForFile.java51 private HashAlgorithm hashAlg;
65 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm()
73 this.hashAlg = HashAlgorithm.getAlgorithmByCode(ZipShort.getValue(data, offset + 2)); in parseFromCentralDirectoryData()
DX0017_StrongEncryptionHeader.java256 private HashAlgorithm hashAlg;
283 public HashAlgorithm getHashAlgorithm() { in getHashAlgorithm()
310 this.hashAlg = HashAlgorithm.getAlgorithmByCode(ZipShort.getValue(data, offset + 12)); in parseCentralDirectoryFormat()
353 …this.hashAlg = HashAlgorithm.getAlgorithmByCode(ZipShort.getValue(data, offset + ivSize + 20 + erd… in parseFileFormat()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DPkWareExtraHeaderTest.java25 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/
Dsignature_creator.h29 enum HashAlgorithm { enum
40 HashAlgorithm hash_alg);
45 HashAlgorithm hash_alg,
Dhmac.h29 enum HashAlgorithm { enum
34 explicit HMAC(HashAlgorithm hash_alg);
88 HashAlgorithm hash_alg_;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DCodeViewYAMLTypeHashing.cpp31 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/
DCodeViewYAMLTypeHashing.cpp31 io.mapRequired("HashAlgorithm", DebugH.HashAlgorithm); in mapping()
56 cantFail(Reader.readInteger(DHS.HashAlgorithm)); in fromDebugH()
76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH()
/external/avb/proto/crypto/sigpb/
Dsigpb.proto23 // HashAlgorithm defines the approved methods for object hashing.
28 enum HashAlgorithm { enum
52 HashAlgorithm hash_algorithm = 1;
/external/python/cryptography/src/cryptography/hazmat/primitives/asymmetric/
Dpadding.py54 if not isinstance(algorithm, hashes.HashAlgorithm):
66 if not isinstance(algorithm, hashes.HashAlgorithm):
/external/openscreen/cast/common/channel/proto/
Dcast_channel.proto83 enum HashAlgorithm { enum
93 optional HashAlgorithm hash_algorithm = 3 [default = SHA1];
103 optional HashAlgorithm hash_algorithm = 6 [default = SHA1];
/external/conscrypt/common/src/test/java/org/conscrypt/ct/
DSerializationTest.java52 assertEquals(DigitallySigned.HashAlgorithm.SHA256, in test_decode_SignedCertificateTimestamp()
103 assertEquals(DigitallySigned.HashAlgorithm.SHA256, dst.getHashAlgorithm()); in test_decode_DigitallySigned()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/ct/
DSerializationTest.java56 assertEquals(DigitallySigned.HashAlgorithm.SHA256, in test_decode_SignedCertificateTimestamp()
107 assertEquals(DigitallySigned.HashAlgorithm.SHA256, dst.getHashAlgorithm()); in test_decode_DigitallySigned()
/external/python/cryptography/docs/hazmat/primitives/mac/
Dhmac.rst21 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` instance.
42 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` instance
60 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dchunk.h21 extern Checksum HashAlgorithm;
34 if (HashAlgorithm == Checksum::HardwareCRC32) { in computeChecksum()
/external/scudo/standalone/
Dchunk.h21 extern Checksum HashAlgorithm;
34 if (HashAlgorithm == Checksum::HardwareCRC32) { in computeChecksum()
/external/openscreen/cast/receiver/channel/
Ddevice_auth_namespace_handler.cc25 using ::cast::channel::HashAlgorithm;
87 HashAlgorithm hash_alg = challenge.hash_algorithm(); in OnMessage()
/external/python/cryptography/docs/hazmat/backends/
Dinterfaces.rst92 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
105 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
125 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
140 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
187 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
195 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
329 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`.
550 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
570 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
589 :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`

123