Home
last modified time | relevance | path

Searched refs:fromByteArray (Results 1 – 25 of 67) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DPrincipalUtil.java33 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getIssuerX509Principal()
53 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getSubjectX509Principal()
72 ASN1Primitive.fromByteArray(crl.getTBSCertList())); in getIssuerX509Principal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1GeneralizedTime.java44 return (ASN1GeneralizedTime)fromByteArray((byte[])obj); in getInstance()
150 return Strings.fromByteArray(time); in getTimeString()
168 String stime = Strings.fromByteArray(time); in getTime()
247 String stime = Strings.fromByteArray(time); in getDate()
DASN1UTCTime.java58 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance()
207 String stime = Strings.fromByteArray(time); in getTime()
312 return Strings.fromByteArray(time); in toString()
DDERT61String.java37 return (DERT61String)fromByteArray((byte[])obj); in getInstance()
102 return Strings.fromByteArray(string); in getString()
DDERVisibleString.java39 return (DERVisibleString)fromByteArray((byte[])obj); in getInstance()
96 return Strings.fromByteArray(string); in getString()
DDERGeneralString.java26 return (DERGeneralString)fromByteArray((byte[])obj); in getInstance()
66 return Strings.fromByteArray(string); in getString()
DDERIA5String.java36 return (DERIA5String)fromByteArray((byte[])obj); in getInstance()
119 return Strings.fromByteArray(string); in getString()
DDERNumericString.java36 return (DERNumericString)fromByteArray((byte[])obj); in getInstance()
113 return Strings.fromByteArray(string); in getString()
DDERPrintableString.java38 return (DERPrintableString)fromByteArray((byte[])obj); in getInstance()
115 return Strings.fromByteArray(string); in getString()
DASN1Primitive.java23 public static ASN1Primitive fromByteArray(byte[] data) in fromByteArray() method in ASN1Primitive
DASN1Null.java43 return ASN1Null.getInstance(ASN1Primitive.fromByteArray((byte[])o)); in getInstance()
DDERUTF8String.java36 return (DERUTF8String)fromByteArray((byte[])obj); in getInstance()
DASN1OctetString.java148 return ASN1OctetString.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance()
DASN1Integer.java35 return (ASN1Integer)fromByteArray((byte[])obj); in getInstance()
DDERBMPString.java35 return (DERBMPString)fromByteArray((byte[])obj); in getInstance()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DJcaJceUtils.java43 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
47 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DIvAlgorithmParameters.java76 ASN1OctetString oct = (ASN1OctetString)ASN1Primitive.fromByteArray(params); in engineInit()
93 ASN1OctetString oct = (ASN1OctetString)ASN1Primitive.fromByteArray(params); in engineInit()
/external/guava/guava-tests/test/com/google/common/primitives/
DCharsTest.java220 assertEquals('\u2345', Chars.fromByteArray( in testFromByteArray()
222 assertEquals('\uFEDC', Chars.fromByteArray( in testFromByteArray()
226 Chars.fromByteArray(new byte[Chars.BYTES - 1]); in testFromByteArray()
243 char result = Chars.fromByteArray(new byte[]{(byte) hi, (byte) lo}); in testByteArrayRoundTrips()
257 Chars.fromByteArray(new byte[] {0x11}); in testByteArrayRoundTrips()
DShortsTest.java240 Shorts.fromByteArray(new byte[] {0x23, 0x45})); in testFromByteArray()
241 assertEquals((short) 0xFEDC, Shorts.fromByteArray( in testFromByteArray()
245 Shorts.fromByteArray(new byte[] {0x01}); in testFromByteArray()
265 assertEquals(num, Shorts.fromByteArray(Shorts.toByteArray(num))); in testByteArrayRoundTrips()
269 Shorts.toByteArray(Shorts.fromByteArray(b)))); in testByteArrayRoundTrips()
DLongsTest.java211 assertEquals(0x1213141516171819L, Longs.fromByteArray( in testFromByteArray()
213 assertEquals(0xFFEEDDCCBBAA9988L, Longs.fromByteArray( in testFromByteArray()
219 Longs.fromByteArray(new byte[Longs.BYTES - 1]); in testFromByteArray()
241 assertEquals(num, Longs.fromByteArray(Longs.toByteArray(num))); in testByteArrayRoundTrips()
244 long value = Longs.fromByteArray(b); in testByteArrayRoundTrips()
DIntsTest.java232 Ints.fromByteArray(new byte[] {0x12, 0x13, 0x14, 0x15, 0x33})); in testFromByteArray()
233 assertEquals(0xFFEEDDCC, Ints.fromByteArray( in testFromByteArray()
237 Ints.fromByteArray(new byte[Ints.BYTES - 1]); in testFromByteArray()
259 assertEquals(num, Ints.fromByteArray(Ints.toByteArray(num))); in testByteArrayRoundTrips()
262 assertTrue(Arrays.equals(b, Ints.toByteArray(Ints.fromByteArray(b)))); in testByteArrayRoundTrips()
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DLongsTest.java199 assertEquals(0x1213141516171819L, Longs.fromByteArray( in testFromByteArray()
201 assertEquals(0xFFEEDDCCBBAA9988L, Longs.fromByteArray( in testFromByteArray()
207 Longs.fromByteArray(new byte[Longs.BYTES - 1]); in testFromByteArray()
229 assertEquals(num, Longs.fromByteArray(Longs.toByteArray(num))); in testByteArrayRoundTrips()
232 long value = Longs.fromByteArray(b); in testByteArrayRoundTrips()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/
DX509ExtensionUtil.java30 ASN1OctetString octs = (ASN1OctetString)ASN1Primitive.fromByteArray(encodedValue); in fromExtensionValue()
32 return ASN1Primitive.fromByteArray(octs.getOctets()); in fromExtensionValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DAlgorithmParametersSpi.java98 DSAParameter dsaP = DSAParameter.getInstance(ASN1Primitive.fromByteArray(params)); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DPBEPKCS12.java83 this.params = PKCS12PBEParams.getInstance(ASN1Primitive.fromByteArray(params)); in engineInit()

123