# Packages
No description provided by the author
# Functions
Compress transform publickey point struct to 33 bytes publickey.
CreateCertificate creates a new certificate based on a template.
CreateCertificateRequest creates a new certificate request based on a template.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Decompress transform 33 bytes publickey to publickey point struct.
No description provided by the author
* sm2密文结构如下:
* x
* y
* hash
* CipherText
*/.
No description provided by the author
MarshalPKCS1PrivateKey converts a private key to ASN.1 DER encoded form.
MarshalPKIXPublicKey serialises a public key to DER-encoded PKIX format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewCertPool returns a new, empty CertPool.
No description provided by the author
ParseCertificate parses a single certificate from the given ASN.1 DER data.
ParseCertificateRequest parses a single certificate request from the given ASN.1 DER data.
ParseCertificates parses one or more certificates from the given ASN.1 DER data.
ParseCRL parses a CRL from the given bytes.
ParseDERCRL parses a DER encoded CRL from the given bytes.
ParsePKCS1PrivateKey returns an RSA private key from its ASN.1 PKCS#1 DER encoded form.
No description provided by the author
No description provided by the author
No description provided by the author
ParsePKIXPublicKey parses a DER encoded public key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RegisterHash registers a function that returns a new instance of the given hash function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sm2VerifyBytes verify sigature is valid.
SystemCertPool returns a copy of the system cert pool.
No description provided by the author
VerifyBytes verify sigature is valid.
VerifyCompressedPubkey verify sigature is valid.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ZA = H256(ENTLA || IDA || a || b || xG || yG || xA || yA).
# Constants
CANotAuthorizedForThisName results when an intermediate or root certificate has a name constraint which doesn't include the name being checked.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Expired results when a certificate has expired, based on the time given in the VerifyOptions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IncompatibleUsage results when the certificate's key usage indicates that it may only be used for a different purpose.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
import golang.org/x/crypto/md4.
import crypto/md5.
no implementation; MD5+SHA1 used for TLS RSA.
No description provided by the author
NameMismatch results when the subject name of a parent certificate does not match the issuer name in the child.
NotAuthorizedToSign results when a certificate is signed by another which isn't marked as a CA certificate.
PrivateKeySize is the size, in bytes, of private keys as used in this package.
PublicKeySize is the size, in bytes, of public keys as used in this package.
import golang.org/x/crypto/ripemd160.
No description provided by the author
import crypto/sha1.
SM3WithRSA reserve.
import crypto/sha256.
import crypto/sha256.
No description provided by the author
No description provided by the author
import golang.org/x/crypto/sha3.
import golang.org/x/crypto/sha3.
import golang.org/x/crypto/sha3.
import golang.org/x/crypto/sha3.
import crypto/sha512.
No description provided by the author
No description provided by the author
import crypto/sha512.
import crypto/sha512.
import crypto/sha512.
No description provided by the author
No description provided by the author
SignatureSize is the size, in bytes, of signatures generated and verified by this package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TooManyIntermediates results when a path length constraint is violated.
No description provided by the author
No description provided by the author
# Variables
ErrUnsupportedAlgorithm results from attempting to perform an operation that involves algorithms that are not currently implemented.
# Structs
A Certificate represents an X.509 certificate.
CertificateInvalidError results when an odd error occurs.
CertificateRequest represents a PKCS #10, certificate signature request.
CertPool is a set of certificates.
ConstraintViolationError results when a requested usage is not permitted by a certificate.
reference to https://www.rfc-editor.org/rfc/rfc5958.txt.
HostnameError results when the set of authorized names doesn't match the requested name.
reference to https://www.ietf.org/rfc/rfc2898.txt.
No description provided by the author
reference to https://www.ietf.org/rfc/rfc2898.txt.
reference to https://www.ietf.org/rfc/rfc2898.txt.
reference to https://www.ietf.org/rfc/rfc2898.txt.
No description provided by the author
reference to https://www.rfc-editor.org/rfc/rfc5958.txt.
No description provided by the author
SystemRootsError results when we fail to load the system root certificates.
No description provided by the author
UnknownAuthorityError results when the certificate issuer is unknown.
VerifyOptions contains parameters for Certificate.Verify.
# Type aliases
ExtKeyUsage represents an extended set of actions that are valid for a given key.
No description provided by the author
An InsecureAlgorithmError.
No description provided by the author
KeyUsage represents the set of actions that are valid for a given key.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author