/libcore/support/src/test/java/tests/resources/x509/ |
D | create.sh | 25 openssl req -config "$DIR/default.cnf" -new -key "$DIR/privkey.pem" -nodes -batch > /tmp/cert-rsa-r… 26 openssl req -in /tmp/cert-rsa-req.pem -pubkey -noout | openssl rsa -pubin -pubout -outform der > "$… 27 …signkey "$DIR/privkey.pem" -outform d -set_serial -99999999999999999999 < /tmp/cert-rsa-req.pem > … 28 rm /tmp/cert-rsa-req.pem 71 openssl dsaparam -out /tmp/dsaparam.pem 1024 72 openssl gendsa -out "$DIR/dsapriv.pem" /tmp/dsaparam.pem 73 rm -f /tmp/dsaparam.pem 83 rm -rf /tmp/ca 84 mkdir -p /tmp/ca 85 touch /tmp/ca/index.txt [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | IssuingDistributionPointExtension.java | 238 DerOutputStream tmp = new DerOutputStream(); in encode() local 244 super.encode(tmp); in encode() 245 out.write(tmp.toByteArray()); in encode() 394 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 395 distributionPoint.encode(tmp); in encodeThis() 397 TAG_DISTRIBUTION_POINT), tmp); in encodeThis() local 401 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 402 tmp.putBoolean(hasOnlyUserCerts); in encodeThis() 404 TAG_ONLY_USER_CERTS), tmp); in encodeThis() local 408 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local [all …]
|
D | X509CertInfo.java | 183 DerOutputStream tmp = new DerOutputStream(); in encode() local 184 emit(tmp); in encode() 185 rawCertInfo = tmp.toByteArray(); in encode() 225 DerOutputStream tmp = new DerOutputStream(); in getEncodedInfo() local 226 emit(tmp); in getEncodedInfo() 227 rawCertInfo = tmp.toByteArray(); in getEncodedInfo() 626 DerValue tmp; in parse() local 636 tmp = in.getDerValue(); in parse() 637 if (tmp.isContextSpecific((byte)0)) { in parse() 638 version = new CertificateVersion(tmp); in parse() [all …]
|
D | PolicyConstraintsExtension.java | 89 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 90 tmp.putInteger(require); in encodeThis() 92 false, TAG_REQUIRE), tmp); in encodeThis() local 95 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 96 tmp.putInteger(inhibit); in encodeThis() 98 false, TAG_INHIBIT), tmp); in encodeThis() local 202 DerOutputStream tmp = new DerOutputStream(); in encode() local 208 super.encode(tmp); in encode() 209 out.write(tmp.toByteArray()); in encode()
|
D | PrivateKeyUsageExtension.java | 93 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 94 tmp.putGeneralizedTime(notBefore); in encodeThis() 96 false, TAG_BEFORE), tmp); in encodeThis() local 99 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 100 tmp.putGeneralizedTime(notAfter); in encodeThis() 102 false, TAG_AFTER), tmp); in encodeThis() local 233 DerOutputStream tmp = new DerOutputStream(); in encode() local 239 super.encode(tmp); in encode() 240 out.write(tmp.toByteArray()); in encode()
|
D | CertificatePolicyMap.java | 100 DerOutputStream tmp = new DerOutputStream(); in encode() local 102 issuerDomain.encode(tmp); in encode() 103 subjectDomain.encode(tmp); in encode() 104 out.write(DerValue.tag_Sequence,tmp); in encode()
|
D | GeneralSubtree.java | 198 DerOutputStream tmp = new DerOutputStream(); in encode() local 199 tmp.putInteger(minimum); in encode() 201 false, TAG_MIN), tmp); in encode() local 204 DerOutputStream tmp = new DerOutputStream(); in encode() local 205 tmp.putInteger(maximum); in encode() 207 false, TAG_MAX), tmp); in encode() local
|
D | X509CRLImpl.java | 287 DerOutputStream tmp = new DerOutputStream(); in encodeInfo() local 292 tmp.putInteger(version); in encodeInfo() 293 infoSigAlgId.encode(tmp); in encodeInfo() 296 issuer.encode(tmp); in encodeInfo() 299 tmp.putUTCTime(thisUpdate); in encodeInfo() 301 tmp.putGeneralizedTime(thisUpdate); in encodeInfo() 305 tmp.putUTCTime(nextUpdate); in encodeInfo() 307 tmp.putGeneralizedTime(nextUpdate); in encodeInfo() 314 tmp.write(DerValue.tag_Sequence, rCerts); in encodeInfo() 318 extensions.encode(tmp, isExplicit); in encodeInfo() [all …]
|
D | BasicConstraintsExtension.java | 74 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 77 tmp.putBoolean(ca); in encodeThis() 80 tmp.putInteger(pathLen); in encodeThis() 83 out.write(DerValue.tag_Sequence, tmp); in encodeThis() 191 DerOutputStream tmp = new DerOutputStream(); in encode() local 201 super.encode(tmp); in encode() 203 out.write(tmp.toByteArray()); in encode()
|
D | PolicyMappingsExtension.java | 76 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 79 map.encode(tmp); in encodeThis() 82 os.write(DerValue.tag_Sequence, tmp); in encodeThis() 153 DerOutputStream tmp = new DerOutputStream(); in encode() local 159 super.encode(tmp); in encode() 160 out.write(tmp.toByteArray()); in encode()
|
D | CertificatePoliciesExtension.java | 93 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 96 info.encode(tmp); in encodeThis() 99 os.write(DerValue.tag_Sequence, tmp); in encodeThis() 179 DerOutputStream tmp = new DerOutputStream(); in encode() local 185 super.encode(tmp); in encode() 186 out.write(tmp.toByteArray()); in encode()
|
D | AuthorityKeyIdentifierExtension.java | 89 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local 93 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis() 100 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis() 109 tmp.writeImplicit(DerValue.createTag(DerValue.TAG_CONTEXT, in encodeThis() 112 seq.write(DerValue.tag_Sequence, tmp); in encodeThis() 219 DerOutputStream tmp = new DerOutputStream(); in encode() local 225 super.encode(tmp); in encode() 226 out.write(tmp.toByteArray()); in encode()
|
/libcore/luni/src/test/java/dalvik/system/ |
D | create_test_jar.sh | 6 rm -rf /tmp/delegate_last_child 7 mkdir -p /tmp/delegate_last_child/libcore/test/delegatelast; 8 pushd /tmp/delegate_last_child 31 rm -rf /tmp/delegate_last_parent 32 mkdir -p /tmp/delegate_last_parent/libcore/test/delegatelast; 33 pushd /tmp/delegate_last_parent 57 rm -rf /tmp/delegate_last_bootoverride 58 mkdir -p /tmp/delegate_last_bootoverride/java/util; 59 pushd /tmp/delegate_last_bootoverride
|
/libcore/ojluni/src/main/java/java/util/ |
D | ComparableTimSort.java | 94 private Object[] tmp; field in ComparableTimSort 128 tmp = new Object[tlen]; in ComparableTimSort() 133 tmp = work; in ComparableTimSort() 537 int tmp = lastOfs; in gallopLeft() local 539 ofs = hint - tmp; in gallopLeft() 592 int tmp = lastOfs; in gallopRight() 594 ofs = hint - tmp; in gallopRight() 653 Object[] tmp = ensureCapacity(len1); 658 System.arraycopy(a, base1, tmp, cursor1, len1); 663 System.arraycopy(tmp, cursor1, a, dest, len1); [all …]
|
D | TimSort.java | 119 private T[] tmp; field in TimSort 158 tmp = newArray; in TimSort() 163 tmp = work; in TimSort() 570 int tmp = lastOfs; in gallopLeft() local 572 ofs = hint - tmp; in gallopLeft() 626 int tmp = lastOfs; in gallopRight() 628 ofs = hint - tmp; in gallopRight() 686 T[] tmp = ensureCapacity(len1); 690 System.arraycopy(a, base1, tmp, cursor1, len1); 695 System.arraycopy(tmp, cursor1, a, dest, len1); [all …]
|
D | DoubleSummaryStatistics.java | 113 double tmp = value - sumCompensation; in sumWithCompensation() local 114 double velvel = sum + tmp; // Little wolf of rounding error in sumWithCompensation() 115 sumCompensation = (velvel - sum) - tmp; in sumWithCompensation() 153 double tmp = sum + sumCompensation; in getSum() local 154 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum() 161 return tmp; in getSum()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Parameter.java | 202 Type tmp = parameterTypeCache; in getParameterizedType() local 203 if (null == tmp) { in getParameterizedType() 204 tmp = executable.getAllGenericParameterTypes()[index]; in getParameterizedType() 205 parameterTypeCache = tmp; in getParameterizedType() 208 return tmp; in getParameterizedType() 222 Class<?> tmp = parameterClassCache; in getType() local 223 if (null == tmp) { in getType() 224 tmp = executable.getParameterTypes()[index]; in getType() 225 parameterClassCache = tmp; in getType() 227 return tmp; in getType()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 52 File tmp = File.createTempFile("FileChannelTest", "tmp"); in testReadOnlyByteArrays() local 55 FileChannel fc = new FileInputStream(tmp).getChannel(); in testReadOnlyByteArrays() 80 fc = new FileOutputStream(tmp).getChannel(); in testReadOnlyByteArrays() 89 File tmp = File.createTempFile("FileChannelTest", "tmp"); in test_readv() local 90 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_readv() 94 fc = new FileInputStream(tmp).getChannel(); in test_readv() 109 File tmp = File.createTempFile("FileChannelTest", "tmp"); in test_writev() local 110 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_writev() 117 assertEquals(8, tmp.length()); in test_writev() 118 assertEquals("abcdABCD", new String(IoUtils.readFileAsString(tmp.getPath()))); in test_writev() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoaderDalvik.java | 32 private static File tmp; field in Support_ClassLoaderDalvik 35 tmp = new File(System.getProperty("java.io.tmpdir"), "dex-cache"); 36 tmp.mkdirs(); in tmp.mkdirs() 41 return new DexClassLoader(url.getPath(), tmp.getAbsolutePath(), in getClassLoader()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | PolicyQualifierInfo.java | 108 byte [] tmp = val.data.toByteArray(); in PolicyQualifierInfo() 109 if (tmp == null) { in PolicyQualifierInfo() 112 mData = new byte[tmp.length]; in PolicyQualifierInfo() 113 System.arraycopy(tmp, 0, mData, 0, tmp.length); in PolicyQualifierInfo()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 195 DerOutputStream tmp = new DerOutputStream(); in getEncoded() local 196 emit(tmp); in getEncoded() 197 encoded = tmp.toByteArray(); in getEncoded() 275 DerOutputStream tmp = new DerOutputStream(); in emit() local 276 tmp.putDerValue(new DerValue(forward.getEncoded())); in emit() 278 true, TAG_FORWARD), tmp); in emit() local 282 DerOutputStream tmp = new DerOutputStream(); in emit() local 283 tmp.putDerValue(new DerValue(reverse.getEncoded())); in emit() 285 true, TAG_REVERSE), tmp); in emit() local
|
D | OCSPResponse.java | 165 Integer tmp = java.security.AccessController.doPrivileged( in initializeClockSkew() local 167 if (tmp == null || tmp < 0) { in initializeClockSkew() 172 return tmp * 1000; in initializeClockSkew() 233 DerValue tmp = der.data.getDerValue(); in OCSPResponse() local 234 if (tmp.tag != DerValue.tag_Sequence) { in OCSPResponse() 240 derIn = tmp.data; in OCSPResponse() 695 DerInputStream tmp = der.data; in SingleResponse() local 697 certId = new CertId(tmp.getDerValue().data); in SingleResponse() 698 DerValue derVal = tmp.getDerValue(); in SingleResponse() 737 thisUpdate = tmp.getGeneralizedTime(); in SingleResponse() [all …]
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputStream.java | 625 int value, tmp; in getLength() local 631 tmp = lenByte; in getLength() 632 if ((tmp & 0x080) == 0x00) { // short form, 1 byte datum in getLength() 633 value = tmp; in getLength() 635 tmp &= 0x07f; in getLength() 641 if (tmp == 0) in getLength() 643 if (tmp < 0 || tmp > 4) in getLength() 644 throw new IOException(mdName + "lengthTag=" + tmp + ", " in getLength() 645 + ((tmp < 0) ? "incorrect DER encoding." : "too big.")); in getLength() 648 tmp--; in getLength() [all …]
|
D | ObjectIdentifier.java | 148 byte[] tmp = new byte[oid.length()]; in ObjectIdentifier() 177 pos += pack7Oid(bignum, tmp, pos); in ObjectIdentifier() 191 pos += pack7Oid(num, tmp, pos); in ObjectIdentifier() 200 System.arraycopy(tmp, 0, encoding, 0, pos); in ObjectIdentifier() 283 byte[] tmp = new byte[length*5+1]; // +1 for empty input in init() 286 pos += pack7Oid(components[0]*40+components[1], tmp, pos); in init() 290 pos += pack7Oid(big, tmp, pos); in init() 294 pos += pack7Oid(components[i], tmp, pos); in init() 297 System.arraycopy(tmp, 0, encoding, 0, pos); in init() 392 byte tmp = encoding[j]; in toIntArray() [all …]
|
/libcore/luni/src/main/native/ |
D | ScopedByteBufferArray.h | 45 jobject tmp = ((ScopedBytesRW*)mArrayPtr[i])->getObject(); in ~ScopedByteBufferArray() local 47 mEnv->DeleteLocalRef(tmp); in ~ScopedByteBufferArray() 49 jobject tmp = ((ScopedBytesRO*)mArrayPtr[i])->getObject(); in ~ScopedByteBufferArray() local 51 mEnv->DeleteLocalRef(tmp); in ~ScopedByteBufferArray()
|