- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for encodePem (0.17 sec)
-
security/pkg/pki/util/generate_csr.go
} csrBytes, err := x509.CreateCertificateRequest(rand.Reader, template, crypto.PrivateKey(priv)) if err != nil { return nil, nil, fmt.Errorf("CSR creation failed (%v)", err) } csr, privKey, err := encodePem(true, csrBytes, priv, options.PKCS8Key) return csr, privKey, err } // GenCSRTemplate generates a certificateRequest template with the given options.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 4.1K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert.go
if err != nil { return nil, nil, fmt.Errorf("cert generation fails at X509 cert creation (%v)", err) } pemCert, pemKey, err := encodePem(false, certBytes, priv, options.PKCS8Key) return pemCert, pemKey, err } func publicKey(priv any) any { switch k := priv.(type) { case *rsa.PrivateKey: return &k.PublicKey case *ecdsa.PrivateKey:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 02 14:34:38 UTC 2023 - 14.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt
internal fun String.canonicalize( pos: Int = 0, limit: Int = length, encodeSet: String, alreadyEncoded: Boolean = false, strict: Boolean = false, plusIsSpace: Boolean = false, unicodeAllowed: Boolean = false, ): String { return canonicalizeWithCharset( pos = pos, limit = limit, encodeSet = encodeSet, alreadyEncoded = alreadyEncoded, strict = strict,
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 7.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
) = apply { names += name.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false, charset = charset, ) values += value.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus.
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
} fun username(username: String) = apply { this.encodedUsername = username.canonicalize(encodeSet = USERNAME_ENCODE_SET) } fun encodedUsername(encodedUsername: String) = apply { this.encodedUsername = encodedUsername.canonicalize( encodeSet = USERNAME_ENCODE_SET, alreadyEncoded = true, ) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 63.5K bytes - Viewed (0) -
src/math/rand/rand_test.go
r.Shuffle(n, func(i, j int) { t.Fatalf("swap called, n=%d i=%d j=%d", n, i, j) }) } } // encodePerm converts from a permuted slice of length n, such as Perm generates, to an int in [0, n!). // See https://en.wikipedia.org/wiki/Lehmer_code. // encodePerm modifies the input slice. func encodePerm(s []int) int { // Convert to Lehmer code. for i, x := range s { r := s[i+1:] for j, y := range r {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.9K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy
package org.gradle.util import com.google.common.base.Splitter class BinaryDiffUtils { public static List<String> toHexStrings(byte[] bytes, int bytesPerLine = 16) { def sw = new StringWriter() bytes.encodeHex().writeTo(sw) return Splitter.fixedLength(bytesPerLine * 2).split(sw.toString()).collect { line -> Splitter.fixedLength(2).split(line).join(" ") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Oct 14 11:47:34 UTC 2016 - 2.4K bytes - Viewed (0) -
src/math/rand/v2/rand_test.go
r.Shuffle(n, func(i, j int) { t.Fatalf("swap called, n=%d i=%d j=%d", n, i, j) }) } } // encodePerm converts from a permuted slice of length n, such as Perm generates, to an int in [0, n!). // See https://en.wikipedia.org/wiki/Lehmer_code. // encodePerm modifies the input slice. func encodePerm(s []int) int { // Convert to Lehmer code. for i, x := range s { r := s[i+1:] for j, y := range r {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 17.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
"mIE65swMM5/RNhS4aFjez/MwxFNOHaxc9VgCwYPXCLOtdf7AVovdyG0XWgbUXH+NyxKwboE" ).decodeBase64()!! val x509PublicKey = encodeKey( algorithm = RSA_ENCRYPTION, publicKeyBytes = publicKeyBytes, ) val keyFactory = KeyFactory.getInstance("RSA")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
maven-core/src/test/resources/remote-repo-1/maven-test/jars/maven-test-b-1.0.jar
org.apache.commons.codec.EncoderException; static void <clinit>(); } org/apache/commons/codec/binary/Hex.class package org.apache.commons.codec.binary; public synchronized class Hex { private static char[] digits; public void Hex(); public static char[] encodeHex(byte[]); public static byte[] decodeHex(char[]) throws Exception; static void <clinit>(); } org/apache/commons/codec/BinaryDecoder.class package org.apache.commons.codec; public abstract interface BinaryDecoder extends Decoder { public abstract byte[]...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Aug 09 19:02:31 UTC 2004 - 18.4K bytes - Viewed (0)