HomeSort by relevance Sort by last modified time
    Searched refs:encoded (Results 1 - 25 of 100) sorted by null

1 2 3 4

  /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...]
Certificate.java 82 // check that encoded forms match
102 byte[] encoded = getEncoded();
104 for (int i=0; i<encoded.length; i++) {
105 hash += i*encoded[i];
114 * Returns the encoded representation for this certificate.
116 * @return the encoded representation for this certificate.
224 * certificate type and encoded data.
229 * the encoded data.
  /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);
LazyDERConstructionEnumeration.java 12 public LazyDERConstructionEnumeration(byte[] encoded)
14 aIn = new ASN1InputStream(encoded, true);
  /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);
  /libcore/luni/src/main/java/org/apache/harmony/security/x509/
X509PublicKey.java 26 private final byte[] encoded; field in class:X509PublicKey
30 public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes) {
32 this.encoded = encoded;
45 return encoded;
  /external/dbus/dbus/
dbus-uuidgen.c 50 DBusString encoded; local
51 _dbus_string_init (&encoded);
52 if (!_dbus_uuid_encode (uuid, &encoded) ||
53 !_dbus_string_steal_data (&encoded, uuid_p))
56 _dbus_string_free (&encoded);
59 _dbus_string_free (&encoded);
  /external/chromium/base/i18n/
icu_string_conversions.h 48 std::string* encoded);
49 bool CodepageToUTF16(const std::string& encoded,
60 std::string* encoded);
61 bool CodepageToWide(const std::string& encoded,
icu_string_conversions_unittest.cc 103 const char* encoded; member in struct:base::__anon2337
240 bool success = CodepageToWide(kConvertCodepageCases[i].encoded,
254 std::string encoded; local
256 kConvertCodepageCases[i].on_error, &encoded);
258 EXPECT_EQ(kConvertCodepageCases[i].encoded, encoded);
264 std::string encoded("Temp data"); // Make sure the string gets cleared.
268 OnStringConversionError::FAIL, &encoded));
269 EXPECT_TRUE(encoded.empty());
271 OnStringConversionError::SKIP, &encoded));
319 std::string encoded; local
    [all...]
icu_string_conversions.cc 89 std::string* encoded) {
92 encoded->resize(encoded_max_length);
112 int actual_size = ucnv_fromUChars(converter, &(*encoded)[0],
114 encoded->resize(actual_size);
118 encoded->clear(); // Make sure the output is empty on error.
163 std::string* encoded) {
164 encoded->clear();
172 static_cast<int>(utf16.length()), on_error, encoded);
175 bool CodepageToUTF16(const std::string& encoded,
194 size_t uchar_max_length = encoded.length() + 1
    [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 35 * Encoded byte array
37 public byte[] encoded; field in class:BerOutputStream
45 * Current encoded length
50 * Current encoded content
59 encoded[offset++] = (byte) tag; //FIXME long form?
68 encoded[offset] = (byte) (numOctets | 0x80);
74 encoded[numOffset - i] = (byte) eLen; //FIXME long value?
78 encoded[offset++] = (byte) length;
83 System.arraycopy(content, 0, encoded, offset, length);
90 encoded[offset] = (byte) bStr.unusedBits
    [all...]
ASN1Type.java 93 public final Object decode(byte[] encoded) throws IOException {
94 return decode(new DerInputStream(encoded));
97 public final Object decode(byte[] encoded, int offset, int encodingLen)
99 return decode(new DerInputStream(encoded, offset, encodingLen));
106 public final void verify(byte[] encoded) throws IOException {
107 DerInputStream decoder = new DerInputStream(encoded);
121 return out.encoded;
DerInputStream.java 29 * Decodes ASN.1 types encoded with DER (X.690)
36 public DerInputStream(byte[] encoded) throws IOException {
37 super(encoded, 0, encoded.length);
40 public DerInputStream(byte[] encoded, int offset, int encodingLen)
42 super(encoded, offset, encodingLen);
96 // check encoded content
156 // It is a string type and it can be encoded as primitive or constructed.
174 // It is a string type and it can be encoded as primitive or constructed.
184 // "ASN.1 GeneralizedTime wrongly encoded at [
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/x501/
AttributeValue.java 44 public byte[] encoded; field in class:AttributeValue
46 public byte[] bytes; //FIXME remove??? bytes to be encoded
60 public AttributeValue(String hexString, byte[] encoded) {
65 this.encoded = encoded;
68 DerInputStream in = new DerInputStream(encoded);
89 public AttributeValue(String rawString, byte[] encoded, int tag) {
93 this.encoded = encoded;
122 encoded = ASN1StringType.PRINTABLESTRING.encode(rawString)
    [all...]
  /external/chromium/net/tools/dump_cache/
url_to_filename_encoder.h 73 char encoded[3]; local
74 encoded[0] = 'x';
75 encoded[1] = ch / 16;
76 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0';
77 encoded[2] = ch % 16;
78 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0';
79 output.append(encoded, 3);
  /external/chromium/net/tools/flip_server/
url_to_filename_encoder.h 78 char encoded[3]; local
79 encoded[0] = 'x';
80 encoded[1] = ch / 16;
81 encoded[1] += (encoded[1] >= 10) ? 'A' - 10 : '0';
82 encoded[2] = ch % 16;
83 encoded[2] += (encoded[2] >= 10) ? 'A' - 10 : '0';
84 output.append(encoded, 3);
  /external/qemu/distrib/sdl-1.2.12/src/audio/
SDL_wave.c 120 Uint8 *freeable, *encoded, *decoded; local
128 encoded = *audio_buf;
146 state[0]->hPredictor = *encoded++;
148 state[1]->hPredictor = *encoded++;
150 state[0]->iDelta = ((encoded[1]<<8)|encoded[0]);
151 encoded += sizeof(Sint16);
153 state[1]->iDelta = ((encoded[1]<<8)|encoded[0]);
154 encoded += sizeof(Sint16)
330 Uint8 *freeable, *encoded, *decoded; local
    [all...]
  /libcore/luni/src/main/java/javax/crypto/
EncryptedPrivateKeyInfo.java 68 private volatile byte[] encoded; field in class:EncryptedPrivateKeyInfo
71 * Creates an {@code EncryptedPrivateKeyInfo} instance from its encoded
74 * @param encoded
75 * the encoded representation of this object
77 * if parsing the encoded representation fails.
79 * if {@code encoded} is {@code null}.
81 public EncryptedPrivateKeyInfo(byte[] encoded) throws IOException {
82 if (encoded == null) {
83 throw new NullPointerException("encoded == null");
85 this.encoded = new byte[encoded.length]
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
WrapCipherSpi.java 292 byte[] encoded = key.getEncoded();
293 if (encoded == null)
302 return engineDoFinal(encoded, 0, encoded.length);
306 return wrapEngine.wrap(encoded, 0, encoded.length);
326 byte[] encoded;
331 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length);
335 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length);
353 return new SecretKeySpec(encoded, wrappedKeyAlgorithm)
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
IndexedPKIXParameters.java 56 Bytes encoded = new Bytes(cert.getEncoded()); local
57 encodings.put(encoded, anchor);
105 Bytes encoded = new Bytes(cert.getEncoded()); local
106 anchor = encodings.get(encoded);
131 Bytes encoded = new Bytes(cert.getEncoded()); local
132 return encodings.containsKey(encoded);

Completed in 205 milliseconds

1 2 3 4