/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | MessageDigest1Test.java | 40 MyMessageDigest1 md = new MyMessageDigest1("ABC"); in test_reset() local 41 md.reset(); in test_reset() 42 assertTrue(md.runEngineReset); in test_reset() 49 MyMessageDigest1 md = new MyMessageDigest1("ABC"); in test_updateLB() local 50 md.update((byte) 1); in test_updateLB() 51 assertTrue(md.runEngineUpdate1); in test_updateLB() 58 MyMessageDigest1 md = new MyMessageDigest1("ABC"); in test_updateLB$LILI() local 60 md.update(bytes, 1, 2); in test_updateLB$LILI() 61 assertTrue(md.runEngineUpdate2); in test_updateLB$LILI() 66 md.update(null, 0, 1); in test_updateLB$LILI() [all …]
|
D | MessageDigestSpiTest.java | 71 MyMessageDigest md = new MyMessageDigest() { in test_engineDigestLB$LILI() local 85 md.engineDigest(null, 1, DIGEST_LENGTH); in test_engineDigestLB$LILI() 91 md.engineDigest(b, 1, DIGEST_LENGTH - 1); in test_engineDigestLB$LILI() 98 md.engineDigest(b, b.length + 1, b.length); in test_engineDigestLB$LILI() 105 md.engineDigest(b, -1, b.length); in test_engineDigestLB$LILI() 113 assertEquals("incorrect result", DIGEST_LENGTH, md in test_engineDigestLB$LILI() 117 md = new MyMessageDigest(); in test_engineDigestLB$LILI() 119 md.engineDigest(b, 0, 1); in test_engineDigestLB$LILI() 130 MyMessageDigest md = new MyMessageDigest(); in test_engineGetDigestLength() local 131 assertEquals(0, md.engineGetDigestLength()); in test_engineGetDigestLength() [all …]
|
D | DigestInputStreamTest.java | 83 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); in testDigestInputStream01() local 85 InputStream dis = new DigestInputStream(is, md); in testDigestInputStream01() 116 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead01() local 118 DigestInputStream dis = new DigestInputStream(is, md); in testRead01() 149 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead02() local 151 DigestInputStream dis = new DigestInputStream(is, md); in testRead02() 184 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead03() local 186 DigestInputStream dis = new DigestInputStream(is, md); in testRead03() 216 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); in testRead04() local 217 DigestInputStream dis = new DigestInputStream(null, md); in testRead04() [all …]
|
D | DigestOutputStreamTest.java | 79 MessageDigest md = new MyMessageDigest1(); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() local 82 MyDigestOutputStream dos = new MyDigestOutputStream(out, md); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 84 assertSame(md, dos.myMessageDigest()); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 91 dos = new MyDigestOutputStream(null, md); in test_CtorLjava_io_OutputStreamLjava_security_MessageDigest() 147 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint01() local 149 DigestOutputStream dos = new DigestOutputStream(bos, md); in testWriteint01() 179 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint02() local 181 DigestOutputStream dos = new DigestOutputStream(bos, md); in testWriteint02() 213 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); in testWriteint03() local 214 DigestOutputStream dos = new DigestOutputStream(null, md); in testWriteint03() [all …]
|
D | MessageDigest2Test.java | 81 MessageDigestStub md = new MessageDigestStub(algorithm); in test_constructor() local 82 assertEquals(algorithm, md.getAlgorithm()); in test_constructor() 83 assertEquals(0, md.getDigestLength()); in test_constructor() 84 assertNull(md.getProvider()); in test_constructor() 302 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getAlgorithm() local 303 assertEquals(algorithm, md.getAlgorithm()); in test_getAlgorithm() 314 MessageDigest md = MessageDigest.getInstance(algorithm, e.getKey().getName()); in test_getDigestLength() local 315 assertTrue("length not ok", md.getDigestLength() > 0); in test_getDigestLength() 326 MessageDigest md = MessageDigest.getInstance(algorithm); in test_getInstanceLjava_lang_String() local 327 assertNotNull(md); in test_getInstanceLjava_lang_String() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | MessageDigest.java | 196 MessageDigest md; in getInstance() local 200 md = (MessageDigest)objs[0]; in getInstance() 202 md = new Delegate((MessageDigestSpi)objs[0], algorithm); in getInstance() 204 md.provider = (Provider)objs[1]; in getInstance() 214 return md; in getInstance() 264 MessageDigest md = (MessageDigest)objs[0]; in getInstance() local 265 md.provider = (Provider)objs[1]; in getInstance() 266 return md; in getInstance() 314 MessageDigest md = (MessageDigest)objs[0]; in getInstance() local 315 md.provider = (Provider)objs[1]; in getInstance() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/ |
D | DestroyableTest.java | 37 myDestroyable md = new myDestroyable(); in test_destroy() local 39 assertFalse(md.isDestroyed()); in test_destroy() 40 md.destroy(); in test_destroy() 41 assertTrue(md.isDestroyed()); in test_destroy()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MessageDigestTest.java | 40 final MessageDigest md = MessageDigest.getInstance("SHA-256"); in testMessageDigest_MultipleThreads_Misuse() local 52 md.update(message); in testMessageDigest_MultipleThreads_Misuse() 53 md.digest(); in testMessageDigest_MultipleThreads_Misuse() 71 MessageDigest md = MessageDigest.getInstance("SHA-256"); in testMessageDigestDelegateOverridesAllMethods() local 76 Class<?> mdClass = md.getClass(); in testMessageDigestDelegateOverridesAllMethods()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | KeyIdentifier.java | 93 MessageDigest md = null; in KeyIdentifier() local 95 md = MessageDigest.getInstance("SHA1"); in KeyIdentifier() 99 md.update(key); in KeyIdentifier() 100 this.octetString = md.digest(); in KeyIdentifier()
|
D | X509CertImpl.java | 1991 MessageDigest md = MessageDigest.getInstance(algorithm); in getFingerprint() local 1992 byte[] digest = md.digest(encCertInfo); in getFingerprint()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/util/ |
D | ManifestDigester.java | 52 public byte[] manifestDigest(java.security.MessageDigest md) { in manifestDigest() argument 70 public byte[] digest(java.security.MessageDigest md) { in digest() argument 75 java.security.MessageDigest md, byte[] bytes, int offset, int length) { in doOldStyle() argument 80 public byte[] digestWorkaround(java.security.MessageDigest md) { in digestWorkaround() argument
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | SignatureFileVerifier.java | 89 private ManifestDigester md; field in SignatureFileVerifier 108 ManifestDigester md, in SignatureFileVerifier() argument 126 this.md = md; in SignatureFileVerifier() 310 boolean manifestSigned = verifyManifestHash(sf, md, manifestDigests); in processImpl() 313 if (!manifestSigned && !verifyManifestMainAttrs(sf, md)) { in processImpl() 325 (verifySection(e.getValue(), name, md))) { in processImpl() 352 ManifestDigester md, in verifyManifestHash() argument 372 byte[] computedHash = md.manifestDigest(digest); in verifyManifestHash() 397 ManifestDigester md) in verifyManifestMainAttrs() argument 415 md.get(ManifestDigester.MF_MAIN_ATTRS, false); in verifyManifestMainAttrs() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | UUID.java | 163 MessageDigest md; in nameUUIDFromBytes() local 165 md = MessageDigest.getInstance("MD5"); in nameUUIDFromBytes() 169 byte[] md5Bytes = md.digest(name); in nameUUIDFromBytes()
|
/libcore/ojluni/src/main/java/javax/sql/ |
D | RowSetInternal.java | 74 void setMetaData(RowSetMetaData md) throws SQLException; in setMetaData() argument
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SignerInfo.java | 388 MessageDigest md = MessageDigest.getInstance(digestAlgname); in verify() local 394 md.update(buffer, 0 , read); in verify() 396 byte[] computedMessageDigest = md.digest(); in verify() 637 MessageDigest md = in verifyTimestamp() local 641 md.digest(encryptedDigest))) { in verifyTimestamp()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | GroupByOpTest.java | 133 for (MapperData<Integer, ?> md : getMapperData(data)) { in testOps() 134 Collector<Integer, ?, Map<Object, List<Integer>>> tab = Collectors.groupingBy(md.m); in testOps() 147 assertEquals(result.keySet().size(), md.expectedSize); in testOps()
|
/libcore/ojluni/src/main/native/ |
D | FileDispatcherImpl.c | 136 jobject fdo, jboolean md) in FileDispatcherImpl_force0() argument 141 if (md == JNI_FALSE) { in FileDispatcherImpl_force0()
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | default.cnf | 113 default_md = sha1 # which md to use.
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1879 MessageDigest md = MessageDigest.getInstance("SHA"); in computeDefaultSUID() local 1880 byte[] hashBytes = md.digest(bout.toByteArray()); in computeDefaultSUID()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | FormatterTest.java | 708 MockDestination md = new MockDestination(); in test_ioException() local 709 f = new Formatter(md); in test_ioException()
|