// loadPrivateKey loads a private key from PEM encoded data
loadPrivateKey loads a private key from PEM encoded data
// loadPrivateKey loads a private key from PEM encoded data
func loadPrivateKey(data []byte) interface{} {
	input := data
	block, _ := pem.Decode(data)
	if block != nil {
		input = block.Bytes
	}
	var priv interface{}
	priv, err := x509.ParseECPrivateKey(input)
	if err != nil {
		log.Error("Failed to parse x509 Certificate ", err)
		return nil
	}
	return priv
}
func loadPrivateKey ( data [ ] byte ) interface { } { input := data block , _ := pem . Decode ( data ) if block != nil { input = block . Bytes } var priv interface { } priv , err := x509 . ParseECPrivateKey ( input ) if err != nil { log . Error ( " " , err ) return nil } return priv }
loadPrivateKey loads a private key from PEM encoded data
loadPrivateKey loads a private key from PEM encoded data