capi

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ALG_RSA_SHA1RSA     = "1.2.840.113549.1.1.5"
	ALG_RSA_SHA256RSA   = "1.2.840.113549.1.1.11"
	ALG_RSA_SHA384RSA   = "1.2.840.113549.1.1.12"
	ALG_RSA_SHA512RSA   = "1.2.840.113549.1.1.13"
	ALG_ECDSA_SHA1      = "1.2.840.10045.4.1"
	ALG_ECDSA_SPECIFIED = "1.2.840.10045.4.3"
	ALG_ECDSA_SHA256    = "1.2.840.10045.4.3.2"
	ALG_ECDSA_SHA384    = "1.2.840.10045.4.3.3"
	ALG_ECDSA_SHA512    = "1.2.840.10045.4.3.4"
)

Variables

This section is empty.

Functions

func Sign

func Sign(alg string, cert *Certificate, data []byte) (*pkcs7.PKCS7, error)

Types

type Certificate

type Certificate struct {
	*x509.Certificate
	// contains filtered or unexported fields
}

func LoadUserCerts

func LoadUserCerts() ([]*Certificate, error)

func (*Certificate) Copy

func (s *Certificate) Copy() (*Certificate, error)

func (*Certificate) Free

func (s *Certificate) Free() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL