Home
last modified time | relevance | path

Searched refs:bOut (Results 1 – 25 of 45) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1Object.java23 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
24 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in getEncoded()
28 return bOut.toByteArray(); in getEncoded()
44 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
45 DEROutputStream dOut = new DEROutputStream(bOut); in getEncoded()
49 return bOut.toByteArray(); in getEncoded()
53 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
54 DLOutputStream dOut = new DLOutputStream(bOut); in getEncoded()
58 return bOut.toByteArray(); in getEncoded()
DDLApplicationSpecific.java95 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
101 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.DL)); in getEncodedVector()
108 return bOut.toByteArray(); in getEncodedVector()
DDERApplicationSpecific.java95 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
101 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.DER)); in getEncodedVector()
108 return bOut.toByteArray(); in getEncodedVector()
DBERApplicationSpecific.java81 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
87 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.BER)); in getEncodedVector()
94 return bOut.toByteArray(); in getEncodedVector()
DDERUniversalString.java89 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getString() local
90 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in getString()
101 byte[] string = bOut.toByteArray(); in getString()
DBERConstructedOctetString.java22 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in toBytes() local
30 bOut.write(o.getOctets()); in toBytes()
42 return bOut.toByteArray(); in toBytes()
DBEROctetString.java36 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in toBytes() local
44 bOut.write(o.getOctets()); in toBytes()
56 return bOut.toByteArray(); in toBytes()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1Object.java31 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
32 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in getEncoded()
36 return bOut.toByteArray(); in getEncoded()
53 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
54 DEROutputStream dOut = new DEROutputStream(bOut); in getEncoded()
58 return bOut.toByteArray(); in getEncoded()
62 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
63 DLOutputStream dOut = new DLOutputStream(bOut); in getEncoded()
67 return bOut.toByteArray(); in getEncoded()
DDERApplicationSpecific.java97 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
103 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.DER)); in getEncodedVector()
110 return bOut.toByteArray(); in getEncodedVector()
DBERApplicationSpecific.java83 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
89 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.BER)); in getEncodedVector()
96 return bOut.toByteArray(); in getEncodedVector()
DDLApplicationSpecific.java97 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncodedVector() local
103 bOut.write(((ASN1Object)vec.get(i)).getEncoded(ASN1Encoding.DL)); in getEncodedVector()
110 return bOut.toByteArray(); in getEncodedVector()
DDERUniversalString.java91 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getString() local
92 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in getString()
103 byte[] string = bOut.toByteArray(); in getString()
DBERConstructedOctetString.java24 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in toBytes() local
32 bOut.write(o.getOctets()); in toBytes()
44 return bOut.toByteArray(); in toBytes()
DBEROctetString.java38 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in toBytes() local
46 bOut.write(o.getOctets()); in toBytes()
58 return bOut.toByteArray(); in toBytes()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DHex.java52 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in encode() local
56 encoder.encode(data, off, length, bOut); in encode()
63 return bOut.toByteArray(); in encode()
102 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode() local
106 encoder.decode(data, 0, data.length, bOut); in decode()
113 return bOut.toByteArray(); in decode()
124 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode() local
128 encoder.decode(data, bOut); in decode()
135 return bOut.toByteArray(); in decode()
DBase64.java53 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in encode() local
57 encoder.encode(data, off, length, bOut); in encode()
64 return bOut.toByteArray(); in encode()
104 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() local
108 encoder.decode(data, 0, data.length, bOut); in decode()
115 return bOut.toByteArray(); in decode()
127 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() local
131 encoder.decode(data, bOut); in decode()
138 return bOut.toByteArray(); in decode()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/
DHex.java54 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in encode() local
58 encoder.encode(data, off, length, bOut); in encode()
65 return bOut.toByteArray(); in encode()
104 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode() local
108 encoder.decode(data, 0, data.length, bOut); in decode()
115 return bOut.toByteArray(); in decode()
126 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode() local
130 encoder.decode(data, bOut); in decode()
137 return bOut.toByteArray(); in decode()
DBase64.java55 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in encode() local
59 encoder.encode(data, off, length, bOut); in encode()
66 return bOut.toByteArray(); in encode()
106 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() local
110 encoder.decode(data, 0, data.length, bOut); in decode()
117 return bOut.toByteArray(); in decode()
129 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() local
133 encoder.decode(data, bOut); in decode()
140 return bOut.toByteArray(); in decode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
DNullDigest.java12 private OpenByteArrayOutputStream bOut = new OpenByteArrayOutputStream(); field in NullDigest
21 return bOut.size(); in getDigestSize()
26 bOut.write(in); in update()
31 bOut.write(in, inOff, len); in update()
36 int size = bOut.size(); in doFinal()
38 bOut.copy(out, outOff); in doFinal()
47 bOut.reset(); in reset()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/digests/
DNullDigest.java16 private OpenByteArrayOutputStream bOut = new OpenByteArrayOutputStream(); field in NullDigest
25 return bOut.size(); in getDigestSize()
30 bOut.write(in); in update()
35 bOut.write(in, inOff, len); in update()
40 int size = bOut.size(); in doFinal()
42 bOut.copy(out, outOff); in doFinal()
51 bOut.reset(); in reset()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DCipherSpi.java57 private ErasableOutputStream bOut = new ErasableOutputStream(); field in CipherSpi
357 bOut.reset(); in engineInit()
421 bOut.write(input, inputOffset, inputLen); in engineUpdate()
425 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineUpdate()
432 if (bOut.size() > cipher.getInputBlockSize()) in engineUpdate()
448 bOut.write(input, inputOffset, inputLen); in engineUpdate()
452 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineUpdate()
459 if (bOut.size() > cipher.getInputBlockSize()) in engineUpdate()
476 bOut.write(input, inputOffset, inputLen); in engineDoFinal()
481 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineDoFinal()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DCipherSpi.java61 private ErasableOutputStream bOut = new ErasableOutputStream(); field in CipherSpi
361 bOut.reset(); in engineInit()
425 bOut.write(input, inputOffset, inputLen); in engineUpdate()
429 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineUpdate()
436 if (bOut.size() > cipher.getInputBlockSize()) in engineUpdate()
452 bOut.write(input, inputOffset, inputLen); in engineUpdate()
456 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineUpdate()
463 if (bOut.size() > cipher.getInputBlockSize()) in engineUpdate()
480 bOut.write(input, inputOffset, inputLen); in engineDoFinal()
485 if (bOut.size() > cipher.getInputBlockSize() + 1) in engineDoFinal()
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DCMSSignedDataGenerator.java145 ByteArrayOutputStream bOut = null; in generate() local
149 bOut = new ByteArrayOutputStream(); in generate()
152 OutputStream cOut = CMSUtils.attachSignersToOutputStream(signerGens, bOut); in generate()
170 octs = new BEROctetString(bOut.toByteArray()); in generate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DPKCS12BagAttributeCarrierImpl.java85 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in writeObject() local
86 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in writeObject()
98 out.writeObject(bOut.toByteArray()); in writeObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DPKCS12BagAttributeCarrierImpl.java89 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in writeObject() local
90 ASN1OutputStream aOut = new ASN1OutputStream(bOut); in writeObject()
102 out.writeObject(bOut.toByteArray()); in writeObject()

12