- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TAG_CLASS_UNIVERSAL (0.23 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 16L, ) { derWriter.write( name = "test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 21L, ) { derWriter.writeOctetString("Smith".encodeUtf8()) } derWriter.write( name = "test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 1L, ) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 31.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
import okio.ByteString /** * Built-in adapters for reading standard ASN.1 types. */ internal object Adapters { val BOOLEAN = BasicDerAdapter( name = "BOOLEAN", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 1L, codec = object : BasicDerAdapter.Codec<Boolean> { override fun decode(reader: DerReader): Boolean = reader.readBoolean() override fun encode(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt
*/ var constructed: Boolean, /** Length of the message in bytes, or -1L if its length is unknown at the time of encoding. */ var length: Long, ) { val isEndOfData: Boolean get() = tagClass == TAG_CLASS_UNIVERSAL && tag == TAG_END_OF_CONTENTS // Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int { var result = 0 result = 31 * result + tagClass
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt
codec = codec, ) } /** Returns an adapter that returns a list of values of this type. */ fun asSequenceOf( name: String = "SEQUENCE OF", tagClass: Int = DerHeader.TAG_CLASS_UNIVERSAL, tag: Long = 16L, ): BasicDerAdapter<List<T>> { val codec = object : BasicDerAdapter.Codec<List<T>> { override fun encode( writer: DerWriter, value: List<T>,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
* show up in ASN.1 streams to also indicate the end of SEQUENCE, SET or other constructed * value. */ private val END_OF_DATA = DerHeader( tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = DerHeader.TAG_END_OF_CONTENTS, constructed = false, length = -1L, ) } /** A source that keeps track of how many bytes it's consumed. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0)