Documentation ¶
Index ¶
- Constants
- func GetDefault() core.CryptoSuite
- func GetECDSAKeyGenOpts(ephemeral bool) core.KeyGenOpts
- func GetECDSAP256KeyGenOpts(ephemeral bool) core.KeyGenOpts
- func GetECDSAP384KeyGenOpts(ephemeral bool) core.KeyGenOpts
- func GetECDSAPrivateKeyImportOpts(ephemeral bool) core.KeyImportOpts
- func GetHashOpt(hashFunction string) (core.HashOpts, error)
- func GetSHA256Opts() core.HashOpts
- func GetSHA3256Opts() core.HashOpts
- func GetSHAOpts() core.HashOpts
- func GetX509PublicKeyImportOpts(ephemeral bool) core.KeyImportOpts
- func NewCspSigner(csp core.CryptoSuite, key core.Key) (crypto.Signer, error)
- func SignatureToLowS(k *ecdsa.PublicKey, signature []byte) ([]byte, error)
Constants ¶
const ( ECDSA = bccsp.ECDSA ECDSAP256 = bccsp.ECDSAP256 ECDSAP384 = bccsp.ECDSAP384 ECDSAReRand = bccsp.ECDSAReRand AES = bccsp.AES AES128 = bccsp.AES128 AES192 = bccsp.AES192 AES256 = bccsp.AES256 HMAC = bccsp.HMAC HMACTruncated256 = bccsp.HMACTruncated256 SHA = bccsp.SHA SHA2 = bccsp.SHA2 SHA3 = bccsp.SHA3 SHA256 = bccsp.SHA256 SHA384 = bccsp.SHA384 SHA3_256 = bccsp.SHA3_256 SHA3_384 = bccsp.SHA3_384 X509Certificate = bccsp.X509Certificate GMSM3 = bccsp.GMSM3 )
Variables ¶
This section is empty.
Functions ¶
func GetDefault ¶
func GetDefault() core.CryptoSuite
GetDefault creates new cryptosuite from bccsp factory default
func GetECDSAKeyGenOpts ¶
func GetECDSAKeyGenOpts(ephemeral bool) core.KeyGenOpts
GetECDSAKeyGenOpts returns options for ECDSA key generation.
func GetECDSAP256KeyGenOpts ¶
func GetECDSAP256KeyGenOpts(ephemeral bool) core.KeyGenOpts
GetECDSAP256KeyGenOpts returns options for ECDSA key generation with curve P-256.
func GetECDSAP384KeyGenOpts ¶
func GetECDSAP384KeyGenOpts(ephemeral bool) core.KeyGenOpts
GetECDSAP384KeyGenOpts options for ECDSA key generation with curve P-384.
func GetECDSAPrivateKeyImportOpts ¶
func GetECDSAPrivateKeyImportOpts(ephemeral bool) core.KeyImportOpts
GetECDSAPrivateKeyImportOpts options for ECDSA secret key importation in DER format or PKCS#8 format.
func GetHashOpt ¶
GetHashOpt is a bridge for bccsp util GetHashOpt
func GetSHA256Opts ¶
GetSHA256Opts returns options relating to SHA-256.
func GetSHA3256Opts ¶
GetSHA3256Opts returns options relating to SHA-256.
func GetX509PublicKeyImportOpts ¶
func GetX509PublicKeyImportOpts(ephemeral bool) core.KeyImportOpts
GetX509PublicKeyImportOpts options for importing public keys from an x509 certificate
func NewCspSigner ¶
NewCspSigner is a bridge for bccsp signer.New call
Types ¶
This section is empty.