- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for BitString (0.08 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt
* limitations under the License. */ package okhttp3.tls.internal.der import okio.ByteString /** * Like a [ByteString], but whose bits are not necessarily a strict multiple of 8. */ internal data class BitString( val byteString: ByteString, /** 0-7 unused bits in the last byte. */ val unusedBitsCount: Int, ) { // Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
val issuer: List<List<AttributeTypeAndValue>>, val validity: Validity, val subject: List<List<AttributeTypeAndValue>>, val subjectPublicKeyInfo: SubjectPublicKeyInfo, val issuerUniqueID: BitString?, val subjectUniqueID: BitString?, val extensions: List<Extension>, ) { /** * Returns the standard name of this certificate's signature algorithm as specified by
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
for (shift in (lengthByteCount - 1) * 8 downTo 0 step 8) { sink.writeByte((v shr shift).toInt()) } } fun writeBitString(bitString: BitString) { val sink = sink() sink.writeByte(bitString.unusedBitsCount) sink.write(bitString.byteString) } fun writeOctetString(byteString: ByteString) { sink().write(byteString) } fun writeUtf8(value: String) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 3L, codec = object : BasicDerAdapter.Codec<BitString> { override fun decode(reader: DerReader): BitString = reader.readBitString() override fun encode( writer: DerWriter, value: BitString, ) = writer.writeBitString(value) }, ) val OCTET_STRING = BasicDerAdapter(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 15K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
AlgorithmIdentifier( algorithm = RSA_ENCRYPTION, parameters = null, ), subjectPublicKey = BitString( byteString = publicKeyBytes, unusedBitsCount = 0, ), ), issuerUniqueID = null, subjectUniqueID = null,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
subject = (it[5] as Pair<*, *>).second as List<List<AttributeTypeAndValue>>, subjectPublicKeyInfo = it[6] as SubjectPublicKeyInfo, issuerUniqueID = it[7] as BitString?, subjectUniqueID = it[8] as BitString?, extensions = it[9] as List<Extension>, ) }, ) /** * ``` * Certificate ::= SEQUENCE { * tbsCertificate TBSCertificate,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
.isEqualTo(bytes) } @Test fun `bit string`() { val bytes = "0304066e5dc0".decodeHex() val bitString = BitString("6e5dc0".decodeHex(), 6) assertThat(Adapters.BIT_STRING.fromDer(bytes)).isEqualTo(bitString) assertThat(Adapters.BIT_STRING.toDer(bitString)).isEqualTo(bytes) } @Test fun `cannot decode empty bit string`() { val bytes = "0300".decodeHex()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
while (byteCount < limit) { result = result shl 8 result += source.readByte().toInt() and 0xff } return result } fun readBitString(): BitString { if (bytesLeft == -1L || constructed) { throw ProtocolException("constructed bit strings not supported for DER") } if (bytesLeft < 1) { throw ProtocolException("malformed bit string") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
import okhttp3.internal.canParseAsIpAddress import okhttp3.tls.internal.der.AlgorithmIdentifier import okhttp3.tls.internal.der.AttributeTypeAndValue import okhttp3.tls.internal.der.BasicConstraints import okhttp3.tls.internal.der.BitString import okhttp3.tls.internal.der.Certificate import okhttp3.tls.internal.der.CertificateAdapters import okhttp3.tls.internal.der.CertificateAdapters.generalNameDnsName
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
internal/s3select/sql/parser.go
// Translate doubled quotes *ls = LiteralList(strings.Split(r, ",")) return nil } // ObjectKey is a type for parsed strings occurring in key paths type ObjectKey struct { Lit *LiteralString `parser:" \"[\" @LitString \"]\""` ID *Identifier `parser:"| \".\" @@"` } // QuotedIdentifier is a type for parsed strings that are double // quoted. type QuotedIdentifier string // Capture interface used by participle
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 12.9K bytes - Viewed (0)