Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParsePKCS1PrivateKey (0.24 sec)

  1. docs/debugging/inspect/utils.go

    	// Try PEM
    	if block, _ := pem.Decode(priv); block != nil {
    		return x509.ParsePKCS1PrivateKey(block.Bytes)
    	}
    	// Try base 64
    	dst := make([]byte, base64.StdEncoding.DecodedLen(len(priv)))
    	if n, err := base64.StdEncoding.Decode(dst, priv); err == nil {
    		return x509.ParsePKCS1PrivateKey(dst[:n])
    	}
    	// Try Raw, return error
    	return x509.ParsePKCS1PrivateKey(priv)
    }
    
    func fatalErr(err error) {
    	if err == nil {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 02 20:36:38 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  2. api/go1.txt

    pkg crypto/x509, func ParseCertificates([]uint8) ([]*Certificate, error)
    pkg crypto/x509, func ParseDERCRL([]uint8) (*pkix.CertificateList, error)
    pkg crypto/x509, func ParsePKCS1PrivateKey([]uint8) (*rsa.PrivateKey, error)
    pkg crypto/x509, func ParsePKCS8PrivateKey([]uint8) (interface{}, error)
    pkg crypto/x509, func ParsePKIXPublicKey([]uint8) (interface{}, error)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top