Documentation ¶
Index ¶
- func GenerateKeyECDSA(curve string) (X, Y, D *big.Int, err error)
- func GenerateKeyRSA(bits int) (N, E, D, P, Q, Dp, Dq, Qinv *big.Int, err error)
- func NewPrivateKeyECDSA(curve string, X, Y, D *big.Int) (*openssl.PrivateKeyECDSA, error)
- func NewPrivateKeyRSA(N, E, D, P, Q, Dp, Dq, Qinv *big.Int) (*openssl.PrivateKeyRSA, error)
- func NewPublicKeyECDSA(curve string, X, Y *big.Int) (*openssl.PublicKeyECDSA, error)
- func NewPublicKeyRSA(N, E *big.Int) (*openssl.PublicKeyRSA, error)
- func SignECDSA(priv *openssl.PrivateKeyECDSA, hash []byte) (r, s *big.Int, err error)
- func VerifyECDSA(pub *openssl.PublicKeyECDSA, hash []byte, r, s *big.Int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyRSA ¶
func NewPrivateKeyECDSA ¶
func NewPrivateKeyRSA ¶
func NewPrivateKeyRSA(N, E, D, P, Q, Dp, Dq, Qinv *big.Int) (*openssl.PrivateKeyRSA, error)
func NewPublicKeyECDSA ¶
func NewPublicKeyRSA ¶
func NewPublicKeyRSA(N, E *big.Int) (*openssl.PublicKeyRSA, error)
func VerifyECDSA ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.