package
0.0.0-20200601021147-e1aa8c7e24af
Repository: https://github.com/hello2mao/go-common.git
Documentation: pkg.go.dev
# Functions
GetHashOpt returns the HashOpts corresponding to the passed hash function.
# Constants
AES Advanced Encryption Standard at the default security level.
AES Advanced Encryption Standard at 128 bit security level.
AES Advanced Encryption Standard at 192 bit security level.
AES Advanced Encryption Standard at 256 bit security level.
ECDSA Elliptic Curve Digital Signature Algorithm (key gen, import, sign, verify), at default security level.
ECDSA Elliptic Curve Digital Signature Algorithm over P-256 curve.
ECDSA Elliptic Curve Digital Signature Algorithm over P-384 curve.
ECDSAReRand ECDSA key re-randomization.
HMAC keyed-hash message authentication code.
HMACTruncated256 HMAC truncated at 256 bits.
SHA Secure Hash Algorithm using default family.
SHA2 is an identifier for SHA2 hash family.
SHA256.
SHA3 is an identifier for SHA3 hash family.
SHA3_256.
SHA3_384.
SHA384.
X509Certificate Label for X509 certificate related operation.
# Structs
AES128KeyGenOpts contains options for AES key generation at 128 security level.
AES192KeyGenOpts contains options for AES key generation at 192 security level.
AES256ImportKeyOpts contains options for importing AES 256 keys.
AES256KeyGenOpts contains options for AES key generation at 256 security level.
AESCBCPKCS7ModeOpts contains options for AES encryption in CBC mode with PKCS7 padding.
AESKeyGenOpts contains options for AES key generation at default security level.
ECDSAGoPublicKeyImportOpts contains options for ECDSA key importation from ecdsa.PublicKey.
ECDSAKeyGenOpts contains options for ECDSA key generation.
ECDSAP256KeyGenOpts contains options for ECDSA key generation with curve P-256.
ECDSAP384KeyGenOpts contains options for ECDSA key generation with curve P-384.
ECDSAPKIXPublicKeyImportOpts contains options for ECDSA public key importation in PKIX format.
ECDSAPrivateKeyImportOpts contains options for ECDSA secret key importation in DER format or PKCS#8 format.
ECDSAReRandKeyOpts contains options for ECDSA key re-randomization.
HMACDeriveKeyOpts contains options for HMAC key derivation.
HMACImportKeyOpts contains options for importing HMAC keys.
HMACTruncated256AESDeriveKeyOpts contains options for HMAC truncated at 256 bits key derivation.
SHA256Opts contains options relating to SHA-256.
SHA3_256Opts contains options relating to SHA3-256.
SHA3_384Opts contains options relating to SHA3-384.
SHA384Opts contains options relating to SHA-384.
SHAOpts contains options for computing SHA.
X509PublicKeyImportOpts contains options for importing public keys from an x509 certificate.
# Interfaces
CSP is the cryptographic service provider that offers the implementation of cryptographic standards and algorithms.
DecrypterOpts contains options for decrypting with a CSP.
EncrypterOpts contains options for encrypting with a CSP.
HashOpts contains options for hashing with a CSP.
Key represents a cryptographic key.
KeyDerivOpts contains options for key-derivation with a CSP.
KeyGenOpts contains options for key-generation with a CSP.
KeyImportOpts contains options for importing the raw material of a key with a CSP.
KeyStore represents a storage system for cryptographic keys.
SignerOpts contains options for signing with a CSP.