Home
last modified time | relevance | path

Searched refs:encoded (Results 1 – 25 of 622) sorted by relevance

12345678910>>...25

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DDerGeneralizedTimeEDTest.java55 byte[] encoded = in testGeneralizedEncoder()
56 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder()
57 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder()
62 encoded = in testGeneralizedEncoder()
63 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder()
64 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder()
69 encoded = in testGeneralizedEncoder()
70 new DerOutputStream(gTime, myDate).encoded; in testGeneralizedEncoder()
71 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testGeneralizedEncoder()
76 encoded = in testGeneralizedEncoder()
[all …]
DDerUTCTimeEDTest.java58 byte[] encoded = in testUTCEncoder()
59 new DerOutputStream(uTime, myDate).encoded; in testUTCEncoder()
60 String rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testUTCEncoder()
68 encoded = in testUTCEncoder()
69 new DerOutputStream(uTime, myDate).encoded; in testUTCEncoder()
70 rep = new String(encoded, 2, encoded[1] & 0xff, "UTF-8"); in testUTCEncoder()
103 byte[] encoded = in runTest()
104 new DerOutputStream(uTime, myDate).encoded; in runTest()
106 ? new DerInputStream(new ByteArrayInputStream(encoded)) in runTest()
107 : new DerInputStream(encoded); in runTest()
[all …]
/external/c-ares/
Dares_expand_name.c38 static int name_length(const unsigned char *encoded, const unsigned char *abuf,
65 int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, in ares_expand_name() argument
76 nlen.sig = name_length(encoded, abuf, alen); in ares_expand_name()
93 if ((*encoded & INDIR_MASK) == INDIR_MASK) in ares_expand_name()
102 p = encoded; in ares_expand_name()
109 *enclen = p + 2 - encoded; in ares_expand_name()
129 *enclen = p + 1 - encoded; in ares_expand_name()
143 static int name_length(const unsigned char *encoded, const unsigned char *abuf, in name_length() argument
149 if (encoded == abuf + alen) in name_length()
152 while (*encoded) in name_length()
[all …]
Dares_expand_string.c41 int ares_expand_string(const unsigned char *encoded, in ares_expand_string() argument
53 if (encoded == abuf+alen) in ares_expand_string()
56 elen.uns = *encoded; in ares_expand_string()
57 if (encoded+elen.sig+1 > abuf+alen) in ares_expand_string()
60 encoded++; in ares_expand_string()
66 strncpy((char *)q, (char *)encoded, elen.uns); in ares_expand_string()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DLazyEncodedSequence.java12 private byte[] encoded; field in LazyEncodedSequence
15 byte[] encoded) in LazyEncodedSequence() argument
18 this.encoded = encoded; in LazyEncodedSequence()
23 Enumeration en = new LazyConstructionEnumeration(encoded); in parse()
30 encoded = null; in parse()
35 if (encoded != null) in getObjectAt()
45 if (encoded == null) in getObjects()
50 return new LazyConstructionEnumeration(encoded); in getObjects()
55 if (encoded != null) in size()
65 if (encoded != null) in toDERObject()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Daudio_decoder_opus.cc28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument
48 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal()
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
56 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal()
68 int AudioDecoderOpus::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration()
73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument
75 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant()
[all …]
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/
DBlob.java59 StringBuilder encoded = new StringBuilder(length * 4 / 3 + 2);
63 encoded.append(base64code.charAt((j >> 18) & 0x3f));
64 encoded.append(base64code.charAt((j >> 12) & 0x3f));
65 encoded.append(base64code.charAt((j >> 6) & 0x3f));
66 encoded.append(base64code.charAt(j & 0x3f));
69 encoded.append(base64code.charAt((j >> 18) & 0x3f));
70 encoded.append(base64code.charAt((j >> 12) & 0x3f));
71 encoded.append(base64code.charAt((j >> 6) & 0x3f));
72 encoded.append("=");
75 encoded.append(base64code.charAt((j >> 18) & 0x3f));
[all …]
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLECKeyFactory.java88 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
89 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
92 ECPublicKey ecKey = (ECPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
99 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
100 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
104 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
108 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
112 } else if (encoded == null) { in engineGetKeySpec()
115 return (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec()
117 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
[all …]
DOpenSSLRSAKeyFactory.java90 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
91 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
95 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec()
114 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
115 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
119 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
130 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
131 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
135 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
139 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
[all …]
DX509PublicKey.java31 private final byte[] encoded; field in X509PublicKey
33 public X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument
35 this.encoded = encoded; in X509PublicKey()
50 return encoded; in getEncoded()
55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString()
64 result = prime * result + Arrays.hashCode(encoded); in hashCode()
82 if (!Arrays.equals(encoded, other.encoded)) in equals()
/external/boringssl/src/crypto/base64/
Dbase64_test.cc25 const char *encoded; member
47 if (len != strlen(t->encoded) || in TestEncode()
48 memcmp(out, t->encoded, len) != 0) { in TestEncode()
50 t->decoded, (int)len, (const char*)out, t->encoded); in TestEncode()
66 (const uint8_t*)t->encoded, strlen(t->encoded))) { in TestDecode()
67 fprintf(stderr, "decode(\"%s\") failed\n", t->encoded); in TestDecode()
73 t->encoded, (int)len, (const char*)out, t->decoded); in TestDecode()
78 int ret = EVP_DecodeBlock(out, (const uint8_t*)t->encoded, in TestDecode()
79 strlen(t->encoded)); in TestDecode()
81 fprintf(stderr, "decode(\"%s\") failed\n", t->encoded); in TestDecode()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/
Daudio_decoder.cc20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, in Decode() argument
24 int duration = PacketDuration(encoded, encoded_len); in Decode()
29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in Decode()
33 int AudioDecoder::DecodeRedundant(const uint8_t* encoded, size_t encoded_len, in DecodeRedundant() argument
37 int duration = PacketDurationRedundant(encoded, encoded_len); in DecodeRedundant()
42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundant()
46 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument
50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal()
70 int AudioDecoder::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument
[all …]
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DClientKeyExchangeTest.java51 byte[] encoded = out.getData(1000); in testClientKeyExchangebyteArrayboolean()
53 encoded.length); in testClientKeyExchangebyteArrayboolean()
56 in.append(encoded); in testClientKeyExchangebyteArrayboolean()
65 in.append(encoded); in testClientKeyExchangebyteArrayboolean()
78 in.append(encoded); in testClientKeyExchangebyteArrayboolean()
110 byte[] encoded = out.getData(1000); in testClientKeyExchangeBigInteger()
112 encoded.length); in testClientKeyExchangeBigInteger()
115 in.append(encoded); in testClientKeyExchangeBigInteger()
124 in.append(encoded); in testClientKeyExchangeBigInteger()
132 in.append(encoded); in testClientKeyExchangeBigInteger()
[all …]
DServerKeyExchangeTest.java51 byte[] encoded = out.getData(1000); in testServerKeyExchange_RSA_EXPORT()
53 encoded.length); in testServerKeyExchange_RSA_EXPORT()
56 in.append(encoded); in testServerKeyExchange_RSA_EXPORT()
68 in.append(encoded); in testServerKeyExchange_RSA_EXPORT()
76 in.append(encoded); in testServerKeyExchange_RSA_EXPORT()
105 byte[] encoded = out.getData(1000); in testServerKeyExchange_DHE_DSS()
107 encoded.length); in testServerKeyExchange_DHE_DSS()
110 in.append(encoded); in testServerKeyExchange_DHE_DSS()
120 in.append(encoded); in testServerKeyExchange_DHE_DSS()
128 in.append(encoded); in testServerKeyExchange_DHE_DSS()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DBaseEncodingTest.java310 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument
311 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing()
312 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing()
313 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing()
317 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument
318 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators()
324 Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded))); in testEncodingWithSeparators()
329 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument
330 testEncodes(encoding, decoded, encoded); in testEncoding()
331 testDecodes(encoding, encoded, decoded); in testEncoding()
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/
DUrlEncoded.java206 boolean encoded=false; in decodeTo()
215 … (encoded?decodeString(content,mark+1,l,charset):content.substring(mark+1,i)); in decodeTo()
217 encoded=false; in decodeTo()
234 … key = encoded?decodeString(content,mark+1,i-mark-1,charset):content.substring(mark+1,i); in decodeTo()
236 encoded=false; in decodeTo()
239 encoded=true; in decodeTo()
242 encoded=true; in decodeTo()
250 … value = l==0?"":(encoded?decodeString(content,mark+1,l,charset):content.substring(mark+1)); in decodeTo()
255 key = encoded in decodeTo()
725 public static String decodeString(String encoded,int offset,int length,String charset) in decodeString() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java114 byte[] encoded = key.getEncoded(); in engineWrap()
115 if (encoded == null) in engineWrap()
124 return engineDoFinal(encoded, 0, encoded.length); in engineWrap()
128 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap()
143 byte[] encoded; in engineUnwrap()
148 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
152 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap()
170 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap()
180 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); in engineUnwrap()
206 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap()
[all …]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DKeyStoreTestSupport.java65 private byte[] encoded; field in KeyStoreTestSupport.SKey
67 public SKey(String type, byte[] encoded) { in SKey() argument
69 this.encoded = encoded; in SKey()
77 return encoded; in getEncoded()
93 private byte[] encoded; field in KeyStoreTestSupport.MyPrivateKey
95 public MyPrivateKey(String algorithm, String format, byte[] encoded) { in MyPrivateKey() argument
98 this.encoded = encoded; in MyPrivateKey()
110 return encoded; in getEncoded()
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/
Dg711_interface.c17 uint8_t* encoded) { in WebRtcG711_EncodeA() argument
20 encoded[n] = linear_to_alaw(speechIn[n]); in WebRtcG711_EncodeA()
26 uint8_t* encoded) { in WebRtcG711_EncodeU() argument
29 encoded[n] = linear_to_ulaw(speechIn[n]); in WebRtcG711_EncodeU()
33 size_t WebRtcG711_DecodeA(const uint8_t* encoded, in WebRtcG711_DecodeA() argument
39 decoded[n] = alaw_to_linear(encoded[n]); in WebRtcG711_DecodeA()
44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, in WebRtcG711_DecodeU() argument
50 decoded[n] = ulaw_to_linear(encoded[n]); in WebRtcG711_DecodeU()
/external/guava/guava/src/com/google/thirdparty/publicsuffix/
DTrieParser.java38 static ImmutableMap<String, PublicSuffixType> parseTrie(CharSequence encoded) { in parseTrie() argument
40 int encodedLen = encoded.length(); in parseTrie()
45 encoded.subSequence(idx, encodedLen), in parseTrie()
62 CharSequence encoded, in doParseTrieToBuilder() argument
65 int encodedLen = encoded.length(); in doParseTrieToBuilder()
71 c = encoded.charAt(idx); in doParseTrieToBuilder()
77 stack.add(0, reverse(encoded.subSequence(0, idx))); in doParseTrieToBuilder()
94 idx += doParseTrieToBuilder(stack, encoded.subSequence(idx, encodedLen), builder); in doParseTrieToBuilder()
95 if (encoded.charAt(idx) == '?' || encoded.charAt(idx) == ',') { in doParseTrieToBuilder()
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Daudio_decoder_g722.cc33 int AudioDecoderG722::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
41 WebRtcG722_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal()
50 int AudioDecoderG722::PacketDuration(const uint8_t* encoded, in PacketDuration() argument
72 int AudioDecoderG722Stereo::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument
81 SplitStereoPacket(encoded, encoded_len, encoded_deinterleaved); in DecodeInternal()
114 void AudioDecoderG722Stereo::SplitStereoPacket(const uint8_t* encoded, in SplitStereoPacket() argument
121 uint8_t right_byte = ((encoded[i] & 0x0F) << 4) + (encoded[i + 1] & 0x0F); in SplitStereoPacket()
122 encoded_deinterleaved[i] = (encoded[i] & 0xF0) + (encoded[i + 1] >> 4); in SplitStereoPacket()
/external/xmlrpcpp/src/
DXmlRpcUtil.cpp190 XmlRpcUtil::xmlDecode(const std::string& encoded) in xmlDecode() argument
192 std::string::size_type iAmp = encoded.find(AMP); in xmlDecode()
194 return encoded; in xmlDecode()
196 std::string decoded(encoded, 0, iAmp); in xmlDecode()
197 std::string::size_type iSize = encoded.size(); in xmlDecode()
200 const char* ens = encoded.c_str(); in xmlDecode()
202 if (encoded[iAmp] == AMP && iAmp+1 < iSize) { in xmlDecode()
213 decoded += encoded[iAmp++]; in xmlDecode()
216 decoded += encoded[iAmp++]; in xmlDecode()
233 std::string encoded(raw, 0, iRep); in xmlEncode() local
[all …]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/
DEDIPartyNameTest.java62 byte[] encoded = ediPN.getEncoded(); in _testEDIPartyName1()
74 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1()
76 printAsHex(16, "", " ", encoded); in _testEDIPartyName1()
84 encoded = gName.getEncoded(); in _testEDIPartyName1()
96 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1()
98 printAsHex(16, "", " ", encoded); in _testEDIPartyName1()
107 encoded = gNames.getEncoded(); in _testEDIPartyName1()
120 if (!Arrays.equals(encoded, _encoded)) { in _testEDIPartyName1()
122 printAsHex(16, "", " ", encoded); in _testEDIPartyName1()
/external/webrtc/webrtc/modules/audio_coding/codecs/pcm16b/
Dpcm16b.c17 uint8_t* encoded) { in WebRtcPcm16b_Encode() argument
21 encoded[2 * i] = s >> 8; in WebRtcPcm16b_Encode()
22 encoded[2 * i + 1] = s; in WebRtcPcm16b_Encode()
27 size_t WebRtcPcm16b_Decode(const uint8_t* encoded, in WebRtcPcm16b_Decode() argument
32 speech[i] = encoded[2 * i] << 8 | encoded[2 * i + 1]; in WebRtcPcm16b_Decode()
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/include/
Disacfix.h133 uint8_t* encoded);
165 int16_t *encoded);
199 const uint8_t* encoded,
224 const uint8_t* encoded,
250 const uint8_t* encoded,
279 const uint16_t *encoded,
353 int16_t WebRtcIsacfix_ReadFrameLen(const uint8_t* encoded,
554 uint8_t* encoded);
605 int16_t WebRtcIsacfix_ReadBwIndex(const uint8_t* encoded,

12345678910>>...25