Home
last modified time | relevance | path

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

123

/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_platform/bcprov/src/main/java/com/android/internal/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/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/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/util/encoders/
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()
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()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/encoders/
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()
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()
/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_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DASN1Object.java35 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
36 encodeTo(bOut); in getEncoded()
37 return bOut.toByteArray(); in getEncoded()
49 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
50 encodeTo(bOut, encoding); in getEncoded()
51 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()
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()
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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1Object.java33 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
34 encodeTo(bOut); in getEncoded()
35 return bOut.toByteArray(); in getEncoded()
47 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
48 encodeTo(bOut, encoding); in getEncoded()
49 return bOut.toByteArray(); in getEncoded()
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()
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()
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()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1Object.java38 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
39 encodeTo(bOut); in getEncoded()
40 return bOut.toByteArray(); in getEncoded()
52 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in getEncoded() local
53 encodeTo(bOut, encoding); in getEncoded()
54 return bOut.toByteArray(); in getEncoded()
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()
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()
/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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()

123