Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 104) 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()
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()
DPrivateKeyUsageExtension.java92 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local
93 tmp.putGeneralizedTime(notBefore); in encodeThis()
95 false, TAG_BEFORE), tmp); in encodeThis() local
98 DerOutputStream tmp = new DerOutputStream(); in encodeThis() local
99 tmp.putGeneralizedTime(notAfter); in encodeThis()
101 false, TAG_AFTER), tmp); in encodeThis() local
231 DerOutputStream tmp = new DerOutputStream(); in encode() local
237 super.encode(tmp); in encode()
238 out.write(tmp.toByteArray()); 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
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()
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 …]
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()
DAccessDescription.java76 DerOutputStream tmp = new DerOutputStream(); in encode() local
77 tmp.putOID(accessMethod); in encode()
78 accessLocation.encode(tmp); in encode()
79 out.write(DerValue.tag_Sequence, tmp); in encode()
/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.java112 double tmp = value - sumCompensation; in sumWithCompensation() local
113 double velvel = sum + tmp; // Little wolf of rounding error in sumWithCompensation()
114 sumCompensation = (velvel - sum) - tmp; in sumWithCompensation()
152 double tmp = sum + sumCompensation; in getSum() local
153 if (Double.isNaN(tmp) && Double.isInfinite(simpleSum)) in getSum()
160 return tmp; in getSum()
/libcore/ojluni/src/main/java/java/lang/reflect/
DParameter.java199 Type tmp = parameterTypeCache; in getParameterizedType() local
200 if (null == tmp) { in getParameterizedType()
201 tmp = executable.getAllGenericParameterTypes()[index]; in getParameterizedType()
202 parameterTypeCache = tmp; in getParameterizedType()
205 return tmp; in getParameterizedType()
219 Class<?> tmp = parameterClassCache; in getType() local
220 if (null == tmp) { in getType()
221 tmp = executable.getParameterTypes()[index]; in getType()
222 parameterClassCache = tmp; in getType()
224 return tmp; in getType()
/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/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/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 …]
DCertId.java159 DerOutputStream tmp = new DerOutputStream(); in encode() local
160 hashAlgId.encode(tmp); in encode()
161 tmp.putOctetString(issuerNameHash); in encode()
162 tmp.putOctetString(issuerKeyHash); in encode()
163 certSerialNumber.encode(tmp); in encode()
164 out.write(DerValue.tag_Sequence, tmp); in encode()
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputStream.java618 int value, tmp; in getLength() local
624 tmp = lenByte; in getLength()
625 if ((tmp & 0x080) == 0x00) { // short form, 1 byte datum in getLength()
626 value = tmp; in getLength()
628 tmp &= 0x07f; in getLength()
634 if (tmp == 0) in getLength()
636 if (tmp < 0 || tmp > 4) in getLength()
637 throw new IOException(mdName + "lengthTag=" + tmp + ", " in getLength()
638 + ((tmp < 0) ? "incorrect DER encoding." : "too big.")); in getLength()
641 tmp--; in getLength()
[all …]
DObjectIdentifier.java149 byte[] tmp = new byte[oid.length()]; in ObjectIdentifier()
178 pos += pack7Oid(bignum, tmp, pos); in ObjectIdentifier()
192 pos += pack7Oid(num, tmp, pos); in ObjectIdentifier()
201 System.arraycopy(tmp, 0, encoding, 0, pos); in ObjectIdentifier()
278 byte[] tmp = new byte[length*5+1]; // +1 for empty input in init()
281 pos += pack7Oid(components[0]*40+components[1], tmp, pos); in init()
285 pos += pack7Oid(big, tmp, pos); in init()
289 pos += pack7Oid(components[i], tmp, pos); in init()
292 System.arraycopy(tmp, 0, encoding, 0, pos); in init()
386 byte tmp = encoding[j]; in toIntArray()
[all …]

12345