- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 211 for pkix (0.04 sec)
-
src/crypto/x509/pkix/pkix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package pkix contains shared, low level structures used for ASN.1 parsing // and serialization of X.509 certificates, CRL and OCSP. package pkix import ( "encoding/asn1" "encoding/hex" "fmt" "math/big" "time" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 9.1K bytes - Viewed (0) -
src/crypto/x509/x509.go
func parseRawAttributes(rawAttributes []asn1.RawValue) []pkix.AttributeTypeAndValueSET { var attributes []pkix.AttributeTypeAndValueSET for _, rawAttr := range rawAttributes { var attr pkix.AttributeTypeAndValueSET rest, err := asn1.Unmarshal(rawAttr.FullBytes, &attr) // Ignore attributes that don't parse into pkix.AttributeTypeAndValueSET // (i.e.: challengePassword or unstructuredName).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:20:15 UTC 2024 - 82K bytes - Viewed (0) -
security/pkg/pki/util/san_test.go
} } func TestExtractIDsFromSANWithError(t *testing.T) { testCases := map[string]struct { ext *pkix.Extension }{ "Wrong OID": { ext: &pkix.Extension{ Id: asn1.ObjectIdentifier{1, 2, 3}, }, }, "Wrong encoding": { ext: &pkix.Extension{ Id: oidSubjectAlternativeName, Value: []byte("bad value"), }, }, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
src/crypto/x509/pkcs8.go
import ( "crypto/ecdh" "crypto/ecdsa" "crypto/ed25519" "crypto/rsa" "crypto/x509/pkix" "encoding/asn1" "errors" "fmt" ) // pkcs8 reflects an ASN.1, PKCS #8 PrivateKey. See // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-8/pkcs-8v1_2.asn // and RFC 5208. type pkcs8 struct { Version int Algo pkix.AlgorithmIdentifier PrivateKey []byte // optional attributes omitted. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 5.8K bytes - Viewed (0) -
security/pkg/pki/util/san.go
} return ids, nil } // ExtractSANExtension extracts the "Subject Alternative Name" externsion from // the given PKIX extension set. func ExtractSANExtension(exts []pkix.Extension) *pkix.Extension { for _, ext := range exts { if ext.Id.Equal(oidSubjectAlternativeName) { // We don't need to examine other extensions anymore since a certificate
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 14 06:50:22 UTC 2022 - 6K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
pkix.RelativeDistinguishedNameSET{ pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"}, }, pkix.RelativeDistinguishedNameSET{ pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."}, }, pkix.RelativeDistinguishedNameSET{ pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"}, pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"}, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
security/pkg/pki/util/generate_csr.go
// https://golang.org/src/crypto/tls/generate_cert.go. package util import ( "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/rsa" "crypto/x509" "crypto/x509/pkix" "errors" "fmt" "os" "strings" "istio.io/istio/pkg/log" ) // minimumRsaKeySize is the minimum RSA key size to generate certificates // to ensure proper security const minimumRsaKeySize = 2048
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 06 12:48:53 UTC 2023 - 4.1K bytes - Viewed (0) -
tests/fuzz/security_fuzzer.go
import ( "context" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "net" fuzz "github.com/AdaLogics/go-fuzz-headers" "google.golang.org/grpc/credentials" "google.golang.org/grpc/peer" pb "istio.io/api/security/v1alpha1" "istio.io/istio/pkg/security" mockca "istio.io/istio/security/pkg/pki/ca/mock" "istio.io/istio/security/pkg/pki/util" "istio.io/istio/security/pkg/server/ca"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.2K bytes - Viewed (0) -
src/crypto/x509/x509_test_import.go
"crypto/rand" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "math/big" "strings" "time" ) func main() { block, _ := pem.Decode([]byte(pemPrivateKey)) rsaPriv, err := x509.ParsePKCS1PrivateKey(block.Bytes) if err != nil { panic("Failed to parse private key: " + err.Error()) } template := x509.Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: "test",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.7K bytes - Viewed (0) -
tests/fuzz/pki_fuzzer.go
noOfExts, err := f.GetInt() if err != nil { return 0 } noOfExtensions := noOfExts % 30 if noOfExtensions == 0 { return 0 } extensions := make([]pkix.Extension, 0) for i := 0; i < noOfExtensions; i++ { newExtension := pkix.Extension{} err = f.GenerateStruct(&newExtension) if err != nil { return 0 } extensions = append(extensions, newExtension) } _, _ = util.ExtractIDs(extensions)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 05 14:00:25 UTC 2023 - 5.2K bytes - Viewed (0)