Documentation ¶
Index ¶
Constants ¶
View Source
const DigestMethodSha1 = "http://www.w3.org/2000/09/xmldsig#sha1"
View Source
const DigestMethodSha256 = "http://www.w3.org/2000/09/xmldsig#sha256"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigestMethod ¶
type DigestMethod string
type RsaSuite ¶
type RsaSuite struct { PrivateKey *rsa.PrivateKey Cert *x509.Certificate }
func (RsaSuite) Certificate ¶
func (t RsaSuite) Certificate() *x509.Certificate
func (RsaSuite) DecryptRsaOaep ¶
func (t RsaSuite) DecryptRsaOaep(cipherText []byte, dm DigestMethod) ([]byte, error)
func (RsaSuite) SigningKey ¶
type TestSuite ¶
type TestSuite struct {
PrivateKey *rsa.PrivateKey
}
func NewTestSuite ¶
func NewTestSuite() *TestSuite
func (TestSuite) Certificate ¶
func (t TestSuite) Certificate() *x509.Certificate
func (TestSuite) DecryptRsaOaep ¶
func (t TestSuite) DecryptRsaOaep(cipherText []byte, dm DigestMethod) ([]byte, error)
func (TestSuite) EncryptRsaOaep ¶
func (TestSuite) SigningKey ¶
Click to show internal directories.
Click to hide internal directories.