Versions in this module Expand all Collapse all v0 v0.0.0 Mar 3, 2022 Changes in this version + var AttributeTypeNames = map[string]string + var ECIES_AES128_SHA256 = ECIESParams + var ECIES_AES256_SHA256 = ECIESParams + var ECIES_AES256_SHA384 = ECIESParams + var ECIES_AES256_SHA512 = ECIESParams + func CheckHMAC(h func() hash.Hash, message, messageMAC, key []byte) bool + func GetDN(name pkix.Name) string + func HashSha256(data []byte) []byte + func HashSha512(data []byte) []byte + func NewHMAC(h func() hash.Hash, message, key []byte) []byte + func ParseCertPem(pemBytes []byte) *x509.Certificate + type ECDSASignature struct + R *big.Int + S *big.Int + func (ECDSASignature) Unmarshal(signature []byte) (ecdsaSignature ECDSASignature) + func (t ECDSASignature) Marshal() []byte + type ECIESParams struct + BlockSize int + Cipher func([]byte) (cipher.Block, error) + Hash func() hash.Hash + KeyLen int + func ParamsFromCurve(curve elliptic.Curve) (params ECIESParams) + func (params ECIESParams) SymDecrypt(key, cipherText []byte) (m []byte) + func (params ECIESParams) SymEncrypt(rand io.Reader, key, m []byte) (cipherText []byte) + type ECPriv struct + func (ECPriv) LoadPem(pemBytes []byte) ECPriv + func (ECPriv) New(curve elliptic.Curve) ECPriv + func (prv ECPriv) Decrypt(c []byte) []byte + func (prv ECPriv) GenerateShared(pub ECPub, skLen, macLen int) (sk []byte) + func (t ECPriv) Sign(digest []byte) []byte + func (t ECPriv) ToPem() []byte + type ECPub struct + func (ECPub) LoadCert(pemBytes []byte) ECPub + func (pub ECPub) Encrypt(rand io.Reader, m []byte) (ct []byte) + func (t ECPub) Verify(digest []byte, signature []byte) bool + type PKCS8 struct + Key interface{} + func (PKCS8) LoadPem(pemBytes []byte) PKCS8 + func (t PKCS8) FormatECDSA() *ecdsa.PrivateKey + func (t PKCS8) ToPem() []byte Other modules containing this package github.com/davidkhala/goutils