Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePKCS8PrivateKey ¶
func ParsePKCS8PrivateKey(derBytes []byte) (key *gost3410.PrivateKey, err error)
Types ¶
type GostR3410KeyParameters ¶
type GostR3410KeyParameters struct { KeyParamSet asn1.ObjectIdentifier DigestParamSet asn1.ObjectIdentifier `asn1:"optional"` }
type SignedData ¶
type SignedData struct {
// contains filtered or unexported fields
}
func NewSignedData ¶
func NewSignedData() (*SignedData, error)
func (*SignedData) AddSigner ¶
func (sd *SignedData) AddSigner(cert *x509.Certificate, pkey *gost3410.PrivateKey, signature []byte) error
func (*SignedData) Finish ¶
func (sd *SignedData) Finish() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.