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

1 2 3 4 5 6 7 8 91011>>

  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DerGeneralizedTimeEDTest.java 55 byte[] encoded =
56 new DerOutputStream(gTime, myDate).encoded;
57 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
62 encoded =
63 new DerOutputStream(gTime, myDate).encoded;
64 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
69 encoded =
70 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 58 byte[] encoded =
59 new DerOutputStream(uTime, myDate).encoded;
60 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
68 encoded =
69 new DerOutputStream(uTime, myDate).encoded;
70 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8");
103 byte[] encoded =
104 new DerOutputStream(uTime, myDate).encoded;
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
LazyEncodedSequence.java 7 * Note: this class is for processing DER/DL encoded sequences only.
12 private byte[] encoded; field in class:LazyEncodedSequence
15 byte[] encoded)
18 this.encoded = encoded;
23 Enumeration en = new LazyConstructionEnumeration(encoded);
30 encoded = null;
35 if (encoded != null)
45 if (encoded == null)
50 return new LazyConstructionEnumeration(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;
71 * Returns encoded form
76 return encoded;
PublicKeyStub.java 38 byte[] encoded = null; field in class:PublicKeyStub
43 public PublicKeyStub(String algorithm, String format, byte[] encoded) {
46 this.encoded = encoded;
66 * returns encoded
71 return encoded;
MyKeyPairGenerator1.java 97 private byte[] encoded; field in class:MyKeyPairGenerator1.PubKey
102 this.encoded = new byte[10];
114 return encoded;
123 private byte[] encoded; field in class:MyKeyPairGenerator1.PrivKey
128 this.encoded = new byte[10];
140 return encoded;
KeyStoreTestSupport.java 65 private byte[] encoded; field in class:KeyStoreTestSupport.SKey
67 public SKey(String type, byte[] encoded) {
69 this.encoded = encoded;
77 return encoded;
93 private byte[] encoded; field in class:KeyStoreTestSupport.MyPrivateKey
95 public MyPrivateKey(String algorithm, String format, byte[] encoded) {
98 this.encoded = encoded;
110 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;
  /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/webrtc/src/modules/audio_coding/codecs/isac/main/source/
crc.h 29 * - encoded : payload bit stream
40 const WebRtc_Word16* encoded,
  /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/conscrypt/src/main/java/org/conscrypt/
X509PublicKey.java 31 private final byte[] encoded; field in class:X509PublicKey
33 public X509PublicKey(String algorithm, byte[] encoded) {
35 this.encoded = encoded;
50 return encoded;
55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded)
64 result = prime * result + Arrays.hashCode(encoded);
82 if (!Arrays.equals(encoded, other.encoded))
    [all...]
OpenSSLSecretKey.java 33 private final byte[] encoded; field in class:OpenSSLSecretKey
37 public OpenSSLSecretKey(String algorithm, byte[] encoded) {
39 this.encoded = encoded;
42 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded));
50 encoded = null;
82 return encoded;
116 return Arrays.equals(encoded, other.getEncoded());
127 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded));
  /libcore/luni/src/main/java/libcore/util/
HexEncoding.java 58 public static byte[] decode(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException {
59 int resultLengthBytes = (encoded.length + 1) / 2;
65 if ((encoded.length % 2) != 0) {
67 result[resultOffset++] = (byte) toDigit(encoded, i);
71 if ((encoded.length % 2) != 0) {
72 throw new IllegalArgumentException("Invalid input length: " + encoded.length);
76 for (int len = encoded.length; i < len; i += 2) {
77 result[resultOffset++] = (byte) ((toDigit(encoded, i) << 4) | toDigit(encoded, i + 1));
  /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...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
HexEncoding.java 63 public static byte[] decode(String encoded) {
65 int resultLengthBytes = (encoded.length() + 1) / 2;
69 if ((encoded.length() % 2) != 0) {
71 result[resultOffset++] = (byte) getHexadecimalDigitValue(encoded.charAt(encodedCharOffset));
74 for (int len = encoded.length(); encodedCharOffset < len; encodedCharOffset += 2) {
76 ((getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)) << 4)
77 | getHexadecimalDigitValue(encoded.charAt(encodedCharOffset + 1)));
  /external/boringssl/src/crypto/base64/
base64_test.cc 25 const char *encoded; member in struct:TestVector
47 if (len != strlen(t->encoded) ||
48 memcmp(out, t->encoded, len) != 0) {
50 t->decoded, (int)len, (const char*)out, t->encoded);
66 (const uint8_t*)t->encoded, strlen(t->encoded))) {
67 fprintf(stderr, "decode(\"%s\") failed\n", t->encoded);
73 t->encoded, (int)len, (const char*)out, t->decoded);
78 int ret = EVP_DecodeBlock(out, (const uint8_t*)t->encoded,
79 strlen(t->encoded));
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Credentials.java 31 String encoded = ByteString.of(bytes).base64(); local
32 return "Basic " + encoded;
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
ClientHelloTest.java 50 byte[] encoded = out.getData(1000);
51 assertEquals("incorrect out data length", message.length(), encoded.length);
54 in.append(encoded);
62 in.append(encoded);
69 in.append(encoded);
76 in.append(encoded);
ClientKeyExchangeTest.java 51 byte[] encoded = out.getData(1000);
53 encoded.length);
56 in.append(encoded);
65 in.append(encoded);
78 in.append(encoded);
110 byte[] encoded = out.getData(1000);
112 encoded.length);
115 in.append(encoded);
124 in.append(encoded);
132 in.append(encoded);
    [all...]
  /external/guava/guava/src/com/google/thirdparty/publicsuffix/
TrieParser.java 38 static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence encoded) {
40 int encodedLen = encoded.length();
45 encoded.subSequence(idx, encodedLen),
56 * @param encoded The serialized trie.
58 * @return The number of characters consumed from {@code encoded}.
62 CharSequence encoded,
65 int encodedLen = encoded.length();
71 c = encoded.charAt(idx);
77 stack.add(0, reverse(encoded.subSequence(0, idx)));
94 idx += doParseTrieToBuilder(stack, encoded.subSequence(idx, encodedLen), builder)
    [all...]

Completed in 3952 milliseconds

1 2 3 4 5 6 7 8 91011>>