Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 113) sorted by relevance

12345

/libcore/support/src/test/java/tests/resources/x509/
Dcreate.sh25 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/
DIssuingDistributionPointExtension.java238 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 …]
DX509CertInfo.java183 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 …]
DPolicyConstraintsExtension.java89 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()
DPrivateKeyUsageExtension.java93 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()
DCertificatePolicyMap.java100 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()
DGeneralSubtree.java198 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
DX509CRLImpl.java287 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 …]
DBasicConstraintsExtension.java74 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()
DPolicyMappingsExtension.java76 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()
DCertificatePoliciesExtension.java93 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()
DAuthorityKeyIdentifierExtension.java89 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/
Dcreate_test_jar.sh6 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/
DComparableTimSort.java94 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 …]
DTimSort.java119 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 …]
DDoubleSummaryStatistics.java113 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/
DParameter.java202 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/
DFileChannelTest.java52 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/
DSupport_ClassLoaderDalvik.java32 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/
DPolicyQualifierInfo.java108 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/
DX509CertificatePair.java195 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
DOCSPResponse.java165 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/
DDerInputStream.java625 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 …]
DObjectIdentifier.java148 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/
DScopedByteBufferArray.h45 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()

12345