- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for fromHex (0.1 sec)
-
src/crypto/tls/handshake_test.go
} } else { err = fmt.Errorf("server: %v", err) s.Close() } err = errors.Join(err, <-errChan) return } func fromHex(s string) []byte { b, _ := hex.DecodeString(s) return b }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 24.5K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa_test.go
} case strings.HasPrefix(line, "Qx = "): pub.X = fromHex(line[5:]) case strings.HasPrefix(line, "Qy = "): pub.Y = fromHex(line[5:]) case strings.HasPrefix(line, "R = "): r = fromHex(line[4:]) case strings.HasPrefix(line, "S = "): s = fromHex(line[4:]) case strings.HasPrefix(line, "Result = "): expected := line[9] == 'P' h.Reset()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:58 UTC 2024 - 13.5K bytes - Viewed (0) -
src/crypto/tls/conn_test.go
func TestCertificateSelection(t *testing.T) { config := Config{ Certificates: []Certificate{ { Certificate: [][]byte{fromHex(certExampleCom)}, }, { Certificate: [][]byte{fromHex(certWildcardExampleCom)}, }, { Certificate: [][]byte{fromHex(certFooExampleCom)}, }, }, } config.BuildNameToCertificate() pointerToIndex := func(c *Certificate) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:35:01 UTC 2023 - 10.5K bytes - Viewed (0) -
src/mime/encodedword.go
func readHexByte(a, b byte) (byte, error) { var hb, lb byte var err error if hb, err = fromHex(a); err != nil { return 0, err } if lb, err = fromHex(b); err != nil { return 0, err } return hb<<4 | lb, nil } func fromHex(b byte) (byte, error) { switch { case b >= '0' && b <= '9': return b - '0', nil case b >= 'A' && b <= 'F':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 16:12:35 UTC 2024 - 10K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val adapter = Adapters.INTEGER_AS_LONG.asSequenceOf() assertThat(adapter.fromDer(bytes)).isEqualTo(sequenceOf) assertThat(adapter.toDer(sequenceOf)).isEqualTo(bytes) } @Test fun `point with only x set`() { val bytes = "3003800109".decodeHex() val point = Point(9L, null) assertThat(Point.ADAPTER.fromDer(bytes)).isEqualTo(point) assertThat(Point.ADAPTER.toDer(point)).isEqualTo(bytes) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 31.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
} public ImmutableSortedMap<K, V> subMap(K fromKey, K toKey) { checkNotNull(fromKey); checkNotNull(toKey); checkArgument(comparator.compare(fromKey, toKey) <= 0); return newView(sortedDelegate.subMap(fromKey, toKey)); } ImmutableSortedMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { checkNotNull(fromKey); checkNotNull(toKey);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 27 19:19:19 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
CertificateAdapters.certificate .fromDer(certificateByteString) assertThat(okHttpCertificate.tbsCertificate.subjectPublicKeyInfo.subjectPublicKey) .isEqualTo(BitString(publicKeyBytes, 0)) } @Test fun `time before 2050 uses UTC_TIME`() { val utcTimeDer = "170d3439313233313233353935395a".decodeHex() val decoded = CertificateAdapters.time.fromDer(utcTimeDer)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
@Override public NavigableMap<K, V> subMap( K fromKey, boolean fromInclusive, K toKey, boolean toInclusive) { assertTrue(Thread.holdsLock(mutex)); return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); } @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { return delegate().subMap(fromKey, true, toKey, false); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 12.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingNavigableMap.java
@ParametricNullness K fromKey, @ParametricNullness K toKey) { return subMap(fromKey, true, toKey, false); } @Override public NavigableMap<K, V> subMap( @ParametricNullness K fromKey, boolean fromInclusive, @ParametricNullness K toKey, boolean toInclusive) { return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 15 18:11:44 UTC 2023 - 14.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingNavigableMap.java
@ParametricNullness K fromKey, @ParametricNullness K toKey) { return subMap(fromKey, true, toKey, false); } @Override public NavigableMap<K, V> subMap( @ParametricNullness K fromKey, boolean fromInclusive, @ParametricNullness K toKey, boolean toInclusive) { return delegate().subMap(fromKey, fromInclusive, toKey, toInclusive); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 15 18:11:44 UTC 2023 - 14.5K bytes - Viewed (0)