cfca

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package cfca handles cfca issued key and certificate

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalSM2

func MarshalSM2(password []byte, key *sm2.PrivateKey, cert *smx509.Certificate) ([]byte, error)

MarshalSM2 encodes sm2 private key and related certificate to cfca defined format

func ParseSM2

func ParseSM2(password, data []byte) (*sm2.PrivateKey, *smx509.Certificate, error)

ParseSM2 parses the der data, returns private key and related certificate, it's CFCA private structure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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