/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/ |
DerGeneralizedTimeEDTest.java | 54 byte[] encoded = 55 new DerOutputStream(gTime, myDate).encoded; 56 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 61 encoded = 62 new DerOutputStream(gTime, myDate).encoded; 63 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 68 encoded = 69 new DerOutputStream(gTime, myDate).encoded; [all...] |
AnyTest.java | 42 private static byte[] encoded = new byte[] { 0x01, 0x03, 0x11, 0x13, 0x15 }; field in class:AnyTest 45 DerInputStream in = new DerInputStream(encoded); 46 assertTrue(Arrays.equals(encoded, (byte[]) ASN1Any.getInstance() 52 encoded); 53 assertTrue("False", Arrays.equals(encoded, out.encoded));
|
DerUTCTimeEDTest.java | 56 byte[] encoded = 57 new DerOutputStream(uTime, myDate).encoded; 58 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 66 encoded = 67 new DerOutputStream(uTime, myDate).encoded; 68 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); 99 byte[] encoded = 100 new DerOutputStream(uTime, myDate).encoded; [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 36 byte [] encoded = null; field in class:PrivateKeyStub 44 * @param encoded 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 49 this.encoded = encoded; 69 * Returns encoded form 73 return encoded;
|
PublicKeyStub.java | 39 byte [] encoded = null; field in class:PublicKeyStub 44 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 47 this.encoded = encoded; 66 * returns encoded 70 return encoded;
|
MyKeyPairGenerator1.java | 98 private byte[] encoded; field in class:MyKeyPairGenerator1.PubKey 103 this.encoded = new byte[10]; 115 return encoded; 124 private byte[] encoded; field in class:MyKeyPairGenerator1.PrivKey 129 this.encoded = new byte[10]; 141 return encoded;
|
KeyStoreTestSupport.java | 66 private byte[] encoded; field in class:KeyStoreTestSupport.SKey 68 public SKey(String type, byte[] encoded) { 70 this.encoded = encoded; 78 return encoded; 94 private byte[] encoded; field in class:KeyStoreTestSupport.MyPrivateKey 96 public MyPrivateKey(String algorithm, String format, byte[] encoded) { 99 this.encoded = encoded; 111 return encoded; [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 37 byte [] encoded = null; field in class:PrivateKeyStub 45 * @param encoded 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 50 this.encoded = encoded; 70 * Returns encoded form 74 return encoded;
|
PublicKeyStub.java | 40 byte [] encoded = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 48 this.encoded = encoded; 67 * returns encoded 71 return encoded;
|
MyKeyPairGenerator1.java | 99 private byte[] encoded; field in class:MyKeyPairGenerator1.PubKey 104 this.encoded = new byte[10]; 116 return encoded; 125 private byte[] encoded; field in class:MyKeyPairGenerator1.PrivKey 130 this.encoded = new byte[10]; 142 return encoded;
|
KeyStoreTestSupport.java | 66 private byte[] encoded; field in class:KeyStoreTestSupport.SKey 68 public SKey(String type, byte[] encoded) { 70 this.encoded = encoded; 78 return encoded; 94 private byte[] encoded; field in class:KeyStoreTestSupport.MyPrivateKey 96 public MyPrivateKey(String algorithm, String format, byte[] encoded) { 99 this.encoded = encoded; 111 return encoded; [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
PolicyQualifierInfo.java | 31 private final byte[] encoded; field in class:PolicyQualifierInfo 36 // DER encoding of the policy qualifier - part of encoded 40 * Creates a new {@code PolicyQualifierInfo} from the specified encoded 43 * @param encoded 44 * the DER encoded policy qualifier. 48 public PolicyQualifierInfo(byte[] encoded) throws IOException { 49 if (encoded == null) { 50 throw new NullPointerException("encoded == null"); 52 if (encoded.length == 0) { 53 throw new IOException("encoded.length == 0") [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/ |
LazyDERSequence.java | 9 private byte[] encoded; field in class:LazyDERSequence 14 byte[] encoded) 17 this.encoded = encoded; 22 Enumeration en = new LazyDERConstructionEnumeration(encoded); 49 return new LazyDERConstructionEnumeration(encoded); 56 Enumeration en = new LazyDERConstructionEnumeration(encoded); 73 out.writeEncoded(SEQUENCE | CONSTRUCTED, encoded);
|
/external/chromium/base/ |
base64_unittest.cc | 19 std::string encoded, decoded; local 22 ok = base::Base64Encode(kText, &encoded); 24 EXPECT_EQ(kBase64Text, encoded); 26 ok = base::Base64Decode(encoded, &decoded);
|
/external/chromium/net/base/ |
escape_icu.cc | 17 // behavior is wrong when the character can't be encoded properly. 18 std::string encoded; local 20 base::OnStringConversionError::SKIP, &encoded)) 23 escaped->assign(UTF8ToUTF16(EscapeQueryParamValue(encoded, use_plus)));
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
X509PublicKey.java | 24 private final byte[] encoded; field in class:X509PublicKey 27 public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes) { 29 this.encoded = encoded; 42 return encoded;
|
/external/dbus/dbus/ |
dbus-uuidgen.c | 51 DBusString encoded; local 53 if (!_dbus_string_init (&encoded)) 59 if (!_dbus_uuid_encode (uuid, &encoded) || 60 !_dbus_string_steal_data (&encoded, uuid_p)) 63 _dbus_string_free (&encoded); 66 _dbus_string_free (&encoded);
|
/external/chromium/chrome/browser/metrics/ |
metrics_log_unittest.cc | 56 std::string encoded; local 58 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); 59 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); 60 NormalizeBuildtime(&encoded); 63 ASSERT_EQ(expected_output, encoded); 80 std::string encoded; local 82 ASSERT_TRUE(log.GetEncodedLog(WriteInto(&encoded, size + 1), size)); 83 TrimWhitespaceASCII(encoded, TRIM_ALL, &encoded); 131 std::string encoded; local 160 std::string encoded; local 190 std::string encoded; local 226 std::string encoded; local [all...] |
/libcore/luni/src/main/java/java/security/ |
KeyRep.java | 44 private byte[] encoded; field in class:KeyRep 57 * @param encoded 58 * the encoded {@code byte[]} (obtained by 61 * if {@code type, algorithm, format or encoded} is {@code null} 64 public KeyRep(Type type, String algorithm, String format, byte[] encoded) { 68 this.encoded = encoded; 78 if(this.encoded == null) { 79 throw new NullPointerException("encoded == null"); 89 * is initialized with a {@link PKCS8EncodedKeySpec} using the encoded ke [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
BerOutputStream.java | 33 /** Encoded byte array */ 34 public byte[] encoded; field in class:BerOutputStream 39 /** Current encoded length */ 42 /** Current encoded content */ 46 encoded[offset++] = (byte) tag; //FIXME long form? 55 encoded[offset] = (byte) (numOctets | 0x80); 61 encoded[numOffset - i] = (byte) eLen; //FIXME long value? 65 encoded[offset++] = (byte) length; 70 System.arraycopy(content, 0, encoded, offset, length); 77 encoded[offset] = (byte) bStr.unusedBits [all...] |
ASN1Type.java | 81 public final Object decode(byte[] encoded) throws IOException { 82 return decode(new DerInputStream(encoded)); 85 public final Object decode(byte[] encoded, int offset, int encodingLen) 87 return decode(new DerInputStream(encoded, offset, encodingLen)); 94 public final void verify(byte[] encoded) throws IOException { 95 DerInputStream decoder = new DerInputStream(encoded); 108 return out.encoded;
|
/external/chromium/base/i18n/ |
icu_string_conversions_unittest.cc | 109 const char* encoded; member in struct:base::__anon2188 246 "Test[%" PRIuS "]: <encoded: %s> <codepage: %s>", i, 247 kConvertCodepageCases[i].encoded, 251 bool success = CodepageToWide(kConvertCodepageCases[i].encoded, 265 std::string encoded; local 267 kConvertCodepageCases[i].on_error, &encoded); 269 EXPECT_EQ(kConvertCodepageCases[i].encoded, encoded); 275 std::string encoded("Temp data"); // Make sure the string gets cleared. 279 OnStringConversionError::FAIL, &encoded)); 335 std::string encoded; local 345 const char* encoded; member in struct:base::__anon2189 [all...] |
icu_string_conversions.h | 49 std::string* encoded); 50 bool CodepageToUTF16(const std::string& encoded, 61 std::string* encoded); 62 bool CodepageToWide(const std::string& encoded,
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
ClientHelloTest.java | 51 byte[] encoded = out.getData(1000); 52 assertEquals("incorrect out data length", message.length(), encoded.length); 55 in.append(encoded); 63 in.append(encoded); 70 in.append(encoded); 77 in.append(encoded);
|
ClientKeyExchangeTest.java | 52 byte[] encoded = out.getData(1000); 54 encoded.length); 57 in.append(encoded); 66 in.append(encoded); 79 in.append(encoded); 111 byte[] encoded = out.getData(1000); 113 encoded.length); 116 in.append(encoded); 125 in.append(encoded); 133 in.append(encoded); [all...] |