Searched refs:encoded (Results 1 – 21 of 21) sorted by relevance
61 public static byte[] decode(String encoded) { in decode() argument63 int resultLengthBytes = (encoded.length() + 1) / 2; in decode()67 if ((encoded.length() % 2) != 0) { in decode()70 (byte) getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)); in decode()73 for (int len = encoded.length(); encodedCharOffset < len; encodedCharOffset += 2) { in decode()75 ((getHexadecimalDigitValue(encoded.charAt(encodedCharOffset)) << 4) in decode()76 | getHexadecimalDigitValue(encoded.charAt(encodedCharOffset + 1))); in decode()
102 byte[] encoded = toByteArray(cls, resourceName); in toPrivateKey()121 return keyFactory.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in toPrivateKey()
43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode()44 assertArrayEquals(new byte[] { 0x66, 0x6f, 0x6f }, encoded); in asciiEncodeAndDecode()45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode()53 byte[] encoded = EncodeUtils.encode(kazakhCapital, flags); in utf8EncodeAndDecode()56 (byte) 0xd0, (byte) 0xb0 }, encoded); in utf8EncodeAndDecode()57 assertEquals(kazakhCapital, EncodeUtils.decode(encoded, flags)); in utf8EncodeAndDecode()
27 public Asn1OpaqueObject(ByteBuffer encoded) { in Asn1OpaqueObject() argument28 mEncoded = encoded.slice(); in Asn1OpaqueObject()31 public Asn1OpaqueObject(byte[] encoded) { in Asn1OpaqueObject() argument32 mEncoded = ByteBuffer.wrap(encoded); in Asn1OpaqueObject()
60 public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) in parse() argument64 containerDataValue = new ByteBufferBerDataValueReader(encoded).readDataValue(); in parse()96 public static <T> List<T> parseImplicitSetOf(ByteBuffer encoded, Class<T> elementClass) in parseImplicitSetOf() argument100 containerDataValue = new ByteBufferBerDataValueReader(encoded).readDataValue(); in parseImplicitSetOf()480 private static long decodeBase128UnsignedLong(ByteBuffer encoded) throws Asn1DecodingException { in decodeBase128UnsignedLong() argument481 if (!encoded.hasRemaining()) { in decodeBase128UnsignedLong()485 while (encoded.hasRemaining()) { in decodeBase128UnsignedLong()489 int b = encoded.get() & 0xff; in decodeBase128UnsignedLong()501 private static BigInteger integerToBigInteger(ByteBuffer encoded) { in integerToBigInteger() argument502 if (!encoded.hasRemaining()) { in integerToBigInteger()[all …]
414 byte[] encoded = JavaToDerConverter.toDer(fieldValue, mDataType, mElementDataType); in toDer()417 return encoded; in toDer()419 return createTag(mDerTagClass, true, mDerTagNumber, encoded); in toDer()421 int originalTagNumber = BerEncoding.getTagNumber(encoded[0]); in toDer()429 encoded[0] = BerEncoding.setTagNumber(encoded[0], mDerTagNumber); in toDer()430 encoded[0] = BerEncoding.setTagClass(encoded[0], mDerTagClass); in toDer()431 return encoded; in toDer()
79 ByteBuffer encoded = TEST_VALUE1.getEncoded(); in testGetEncodedReturnsSlice() local80 assertByteBufferEquals(HexEncoding.decode("aa"), encoded); in testGetEncodedReturnsSlice()81 encoded.position(encoded.limit()); in testGetEncodedReturnsSlice()95 ByteBuffer encoded = TEST_VALUE1.getEncodedContents(); in testGetEncodedContentsReturnsSlice() local96 assertByteBufferEquals(HexEncoding.decode("bb"), encoded); in testGetEncodedContentsReturnsSlice()97 encoded.position(encoded.limit()); in testGetEncodedContentsReturnsSlice()
672 private static String getLengthPrefixedUtf16EncodedString(ByteBuffer encoded) in getLengthPrefixedUtf16EncodedString() argument677 int lengthChars = getUnsignedInt16(encoded); in getLengthPrefixedUtf16EncodedString()679 lengthChars = ((lengthChars & 0x7fff) << 16) | getUnsignedInt16(encoded); in getLengthPrefixedUtf16EncodedString()688 if (encoded.hasArray()) { in getLengthPrefixedUtf16EncodedString()689 arr = encoded.array(); in getLengthPrefixedUtf16EncodedString()690 arrOffset = encoded.arrayOffset() + encoded.position(); in getLengthPrefixedUtf16EncodedString()691 encoded.position(encoded.position() + lengthBytes); in getLengthPrefixedUtf16EncodedString()695 encoded.get(arr); in getLengthPrefixedUtf16EncodedString()710 private static String getLengthPrefixedUtf8EncodedString(ByteBuffer encoded) in getLengthPrefixedUtf8EncodedString() argument717 int lengthBytes = getUnsignedInt8(encoded); in getLengthPrefixedUtf8EncodedString()[all …]
774 ByteBuffer encoded = createVerityDigestBuffer(true); in computeApkVerityDigest() local780 encoded.put(rootHash); in computeApkVerityDigest()781 encoded.putLong(beforeCentralDir.size() + centralDir.size() + eocd.size()); in computeApkVerityDigest()782 outputContentDigests.put(VERITY_CHUNKED_SHA256, encoded.array()); in computeApkVerityDigest()796 ByteBuffer encoded = ByteBuffer.allocate(backBufferSize); in createVerityDigestBuffer() local797 encoded.order(ByteOrder.LITTLE_ENDIAN); in createVerityDigestBuffer()798 return encoded; in createVerityDigestBuffer()817 ByteBuffer encoded = createVerityDigestBuffer(false); in computeChunkVerityTreeAndDigest() local823 encoded.put(rootHash); in computeChunkVerityTreeAndDigest()824 return new VerityTreeAndDigest(VERITY_CHUNKED_SHA256, encoded.array(), tree.array()); in computeChunkVerityTreeAndDigest()
75 ByteBuffer encoded = mBuf.slice(); in readDataValue() local80 encoded.position(contentsOffsetInTag); in readDataValue()81 encoded.limit(contentsOffsetInTag + contentsLength); in readDataValue()82 ByteBuffer encodedContents = encoded.slice(); in readDataValue()83 encoded.clear(); in readDataValue()86 encoded, in readDataValue()
88 byte[] encoded = in.getReadBytes(); in readDataValue()90 ByteBuffer.wrap(encoded, contentsOffsetInDataValue, contentsLength); in readDataValue()92 ByteBuffer.wrap(encoded), in readDataValue()224 ByteBuffer encoded = dataValue.getEncoded(); in skipConstructedIndefiniteLengthContents() local225 if ((encoded.remaining() == 2) && (encoded.get(0) == 0) && (encoded.get(1) == 0)) { in skipConstructedIndefiniteLengthContents()
127 String decodeRle(String encoded) throws IllegalArgumentException { in decodeRle() argument131 while (i < encoded.length()) { in decodeRle()132 Matcher m = RLE_SEGMENT.matcher(encoded.substring(i)); in decodeRle()151 encoded.substring(i, i+1), encoded)); in decodeRle()161 String decode(String encoded) throws IllegalArgumentException { in decode() argument162 String work = encoded.toUpperCase(); in decode()
281 byte[] encoded = new byte[pwdBytes.remaining()]; in encodePassword()282 pwdBytes.get(encoded); in encodePassword()283 return encoded; in encodePassword()
106 form encoded using the JVM default charset, and, on Java 8107 and older, the form encoded using the console's charset.
109 form encoded using the JVM default charset, and, on Java 8110 and older, the form encoded using the console's charset.
173 form encoded using the JVM default charset, and, on Java 8174 and older, the form encoded using the console's charset.
286 FatDirectoryEntry[] encoded = currentEntry.compactForm(); in updateLFN() local287 dest.addAll(Arrays.asList(encoded)); in updateLFN()
54 // An encoded CodeGeneratorRequest is written to the plugin's stdin.78 // The plugin writes an encoded CodeGeneratorResponse to stdout.
116 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if120 // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if438 // writing the tag and type for each element, the entire array is encoded as446 // inner message's contents will not be parsed but instead stored in encoded
451 enocded||encoded
META-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...