Documentation ¶
Overview ¶
It implements signature utils using rsa
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSignatureScheme = errors.New("invalid signature scheme")
)
errors
Functions ¶
Types ¶
type Rsa ¶
type Rsa struct {
// contains filtered or unexported fields
}
func (*Rsa) VerifySignature ¶
verify hashed data using public key
type RsaScheme ¶
type RsaScheme uint
const ( PKCS1 RsaScheme = 1 + iota // https://en.wikipedia.org/wiki/PKCS_1 PSS // https://en.wikipedia.org/wiki/Probabilistic_signature_scheme )
Rsa schemes
Click to show internal directories.
Click to hide internal directories.