Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2026 Changes in this version + var ErrKeyMustBePEMEncoded = errors.New("go-cryptobin/bign: invalid key: Key must be a PEM encoded PKCS1 or PKCS8 key") + var ErrNotECPublicKey = errors.New("go-cryptobin/bign: key is not a valid Bign public key") + var GetCipherFromName = pkcs8.GetCipherFromName + var GetHashFromName = pkcs8.GetHashFromName + type Bign struct + Errors []error + func AddNamedCurve(curve elliptic.Curve, oid asn1.ObjectIdentifier) Bign + func FromBase64String(data string) Bign + func FromBytes(data []byte) Bign + func FromHexString(data string) Bign + func FromPKCS1PrivateKey(key []byte) Bign + func FromPKCS1PrivateKeyWithPassword(key []byte, password string) Bign + func FromPKCS8PrivateKey(key []byte) Bign + func FromPKCS8PrivateKeyWithPassword(key []byte, password string) Bign + func FromPrivateKey(key []byte) Bign + func FromPrivateKeyWithPassword(key []byte, password string) Bign + func FromPublicKey(key []byte) Bign + func FromString(data string) Bign + func GenerateKey(curve string) Bign + func GenerateKeyWithSeed(reader io.Reader, curve string) Bign + func New() Bign + func NewBign() Bign + func (this Bign) AddNamedCurve(curve elliptic.Curve, oid asn1.ObjectIdentifier) Bign + func (this Bign) AppendError(err ...error) Bign + func (this Bign) CheckKeyPair() bool + func (this Bign) CreatePKCS1PrivateKey() Bign + func (this Bign) CreatePKCS1PrivateKeyWithPassword(password string, opts ...string) Bign + func (this Bign) CreatePKCS8PrivateKey() Bign + func (this Bign) CreatePKCS8PrivateKeyWithPassword(password string, opts ...any) Bign + func (this Bign) CreatePrivateKey() Bign + func (this Bign) CreatePrivateKeyWithPassword(password string, opts ...string) Bign + func (this Bign) CreatePublicKey() Bign + func (this Bign) Error() error + func (this Bign) FromBase64String(data string) Bign + func (this Bign) FromBytes(data []byte) Bign + func (this Bign) FromHexString(data string) Bign + func (this Bign) FromPKCS1PrivateKey(key []byte) Bign + func (this Bign) FromPKCS1PrivateKeyDer(der []byte) Bign + func (this Bign) FromPKCS1PrivateKeyWithPassword(key []byte, password string) Bign + func (this Bign) FromPKCS8PrivateKey(key []byte) Bign + func (this Bign) FromPKCS8PrivateKeyDer(der []byte) Bign + func (this Bign) FromPKCS8PrivateKeyWithPassword(key []byte, password string) Bign + func (this Bign) FromPrivateKey(key []byte) Bign + func (this Bign) FromPrivateKeyBytes(priByte []byte) Bign + func (this Bign) FromPrivateKeyString(keyString string) Bign + func (this Bign) FromPrivateKeyWithPassword(key []byte, password string) Bign + func (this Bign) FromPublicKey(key []byte) Bign + func (this Bign) FromPublicKeyBytes(pub []byte) Bign + func (this Bign) FromPublicKeyCompressString(key string) Bign + func (this Bign) FromPublicKeyDer(der []byte) Bign + func (this Bign) FromPublicKeyString(key string) Bign + func (this Bign) FromPublicKeyUncompressString(key string) Bign + func (this Bign) FromPublicKeyXYBytes(xBytes, yBytes []byte) Bign + func (this Bign) FromPublicKeyXYString(xString string, yString string) Bign + func (this Bign) FromString(data string) Bign + func (this Bign) GenerateKey() Bign + func (this Bign) GenerateKeyWithSeed(reader io.Reader) Bign + func (this Bign) GetAdata() []byte + func (this Bign) GetCurve() elliptic.Curve + func (this Bign) GetData() []byte + func (this Bign) GetEncoding() EncodingType + func (this Bign) GetErrors() []error + func (this Bign) GetKeyData() []byte + func (this Bign) GetParsedData() []byte + func (this Bign) GetPrivateKey() *bign.PrivateKey + func (this Bign) GetPrivateKeyCurve() elliptic.Curve + func (this Bign) GetPrivateKeyDString() string + func (this Bign) GetPrivateKeyString() string + func (this Bign) GetPublicKey() *bign.PublicKey + func (this Bign) GetPublicKeyCompressString() string + func (this Bign) GetPublicKeyCurve() elliptic.Curve + func (this Bign) GetPublicKeyUncompressString() string + func (this Bign) GetPublicKeyXString() string + func (this Bign) GetPublicKeyXYString() string + func (this Bign) GetPublicKeyYString() string + func (this Bign) GetSignHash() HashFunc + func (this Bign) GetVerify() bool + func (this Bign) MakeKeyDer() Bign + func (this Bign) MakePublicKey() Bign + func (this Bign) OnError(fn func([]error)) Bign + func (this Bign) ParsePKCS1PrivateKeyFromPEM(key []byte) (*bign.PrivateKey, error) + func (this Bign) ParsePKCS1PrivateKeyFromPEMWithPassword(key []byte, password string) (*bign.PrivateKey, error) + func (this Bign) ParsePKCS8PrivateKeyFromPEM(key []byte) (*bign.PrivateKey, error) + func (this Bign) ParsePKCS8PrivateKeyFromPEMWithPassword(key []byte, password string) (*bign.PrivateKey, error) + func (this Bign) ParsePublicKeyFromPEM(key []byte) (*bign.PublicKey, error) + func (this Bign) SetCurve(curve string) Bign + func (this Bign) SetSignHash(name string) Bign + func (this Bign) Sign() Bign + func (this Bign) SignASN1() Bign + func (this Bign) SignBytes() Bign + func (this Bign) ToBase64String() string + func (this Bign) ToBytes() []byte + func (this Bign) ToHexString() string + func (this Bign) ToKeyBytes() []byte + func (this Bign) ToKeyString() string + func (this Bign) ToString() string + func (this Bign) ToVerify() bool + func (this Bign) ToVerifyInt() int + func (this Bign) Verify(data []byte) Bign + func (this Bign) VerifyASN1(data []byte) Bign + func (this Bign) VerifyBytes(data []byte) Bign + func (this Bign) WithAdata(adata []byte) Bign + func (this Bign) WithCurve(curve elliptic.Curve) Bign + func (this Bign) WithData(data []byte) Bign + func (this Bign) WithEncoding(encoding EncodingType) Bign + func (this Bign) WithEncodingASN1() Bign + func (this Bign) WithEncodingBytes() Bign + func (this Bign) WithErrors(errs []error) Bign + func (this Bign) WithParsedData(data []byte) Bign + func (this Bign) WithPrivateKey(data *bign.PrivateKey) Bign + func (this Bign) WithPublicKey(data *bign.PublicKey) Bign + func (this Bign) WithSignHash(hash HashFunc) Bign + func (this Bign) WithVerify(data bool) Bign + type EncodingType uint + const EncodingASN1 + const EncodingBytes + type HashFunc = func() hash.Hash + type Opts = pkcs8.Opts + type PBKDF2Opts = pkcs8.PBKDF2Opts + type ScryptOpts = pkcs8.ScryptOpts