Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrUnsupportedRSAOptions = Error("hsm unsupported RSA option value") ErrHsmDecrypt = Error("hsm decrypt error") )
See https://github.com/ThalesIgnite/crypto11/blob/d334790e12893aa2f8a2c454b16003dfd9f7d2de/rsa.go
Variables ¶
This section is empty.
Functions ¶
func DecryptOAEP ¶
func DecryptOAEP(session *Pkcs11Session, key *Pkcs11PrivateKeyRSA, ciphertext []byte, hashFunction crypto.Hash, label []byte) ([]byte, error)
Types ¶
type Pkcs11PrivateKeyRSA ¶
type Pkcs11PrivateKeyRSA struct {
// contains filtered or unexported fields
}
func NewPrivateKeyRSA ¶
func NewPrivateKeyRSA(handle pkcs11.ObjectHandle) Pkcs11PrivateKeyRSA
type Pkcs11Session ¶
type Pkcs11Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(ctx *pkcs11.Ctx, handle pkcs11.SessionHandle) Pkcs11Session
Click to show internal directories.
Click to hide internal directories.