Documentation ¶
Overview ¶
Package sighandler implements digital signature handlers for PDF signature validation and signing.
Index ¶
- func NewAdobeECCDetached(privateKey *ecdsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
- func NewAdobePKCS7Detached(privateKey *rsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
- func NewAdobeX509RSASHA1(privateKey *rsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
- func NewAdobeX509RSASHA1Custom(certificate *x509.Certificate, signFunc SignFunc) (model.SignatureHandler, error)
- func NewEmptyAdobeECCDetached(signatureLen int) (model.SignatureHandler, error)
- func NewEmptyAdobePKCS7Detached(signatureLen int) (model.SignatureHandler, error)
- type SignFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdobeECCDetached ¶
func NewAdobeECCDetached(privateKey *ecdsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
NewAdobeECCDetached creates a new Adobe.PPKMS/Adobe.PPKLite adbe.ECC.detached signature handler. Both parameters may be nil for the signature validation.
func NewAdobePKCS7Detached ¶
func NewAdobePKCS7Detached(privateKey *rsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
NewAdobePKCS7Detached creates a new Adobe.PPKMS/Adobe.PPKLite adbe.pkcs7.detached signature handler. Both parameters may be nil for the signature validation.
func NewAdobeX509RSASHA1 ¶
func NewAdobeX509RSASHA1(privateKey *rsa.PrivateKey, certificate *x509.Certificate) (model.SignatureHandler, error)
NewAdobeX509RSASHA1 creates a new Adobe.PPKMS/Adobe.PPKLite adbe.x509.rsa_sha1 signature handler. Both parameters may be nil for the signature validation.
func NewAdobeX509RSASHA1Custom ¶
func NewAdobeX509RSASHA1Custom(certificate *x509.Certificate, signFunc SignFunc) (model.SignatureHandler, error)
NewAdobeX509RSASHA1Custom creates a new Adobe.PPKMS/Adobe.PPKLite adbe.x509.rsa_sha1 signature handler with a custom signing function. Both parameters may be nil for the signature validation.
func NewEmptyAdobeECCDetached ¶
func NewEmptyAdobeECCDetached(signatureLen int) (model.SignatureHandler, error)
NewEmptyAdobePKCS7Detached creates a new Adobe.PPKMS/Adobe.PPKLite adbe.pkcs7.detached signature handler. The generated signature is empty and of size signatureLen. The signatureLen parameter can be 0 for the signature validation.
func NewEmptyAdobePKCS7Detached ¶
func NewEmptyAdobePKCS7Detached(signatureLen int) (model.SignatureHandler, error)
NewEmptyAdobePKCS7Detached creates a new Adobe.PPKMS/Adobe.PPKLite adbe.pkcs7.detached signature handler. The generated signature is empty and of size signatureLen. The signatureLen parameter can be 0 for the signature validation.