Documentation ¶
Index ¶
- Constants
- func DefaultEmbedRevocationStatusFunction(cert, issuer *x509.Certificate, i *revocation.InfoArchival) error
- func EncodePNGSUBBytes(columns int, data []byte) ([]byte, error)
- func EncodePNGUPBytes(columns int, data []byte) ([]byte, error)
- func Sign(input io.ReadSeeker, output io.Writer, rdr *pdf.Reader, size int64, ...) error
- func SignFile(input string, output string, sign_data SignData) error
- type CatalogData
- type InfoData
- type RevocationFunction
- type SignContext
- type SignData
- type SignDataSignature
- type SignDataSignatureInfo
- type TSA
- type VisualSignData
Constants ¶
View Source
const ( CertificationSignature = iota + 1 ApprovalSignature UsageRightsSignature )
View Source
const ( DoNotAllowAnyChangesPerms = iota + 1 AllowFillingExistingFormFieldsAndSignaturesPerms AllowFillingExistingFormFieldsAndSignaturesAndCRUDAnnotationsPerms )
Variables ¶
This section is empty.
Functions ¶
func DefaultEmbedRevocationStatusFunction ¶
func DefaultEmbedRevocationStatusFunction(cert, issuer *x509.Certificate, i *revocation.InfoArchival) error
Types ¶
type CatalogData ¶
type RevocationFunction ¶
type RevocationFunction func(cert, issuer *x509.Certificate, i *revocation.InfoArchival) error
type SignContext ¶
type SignContext struct { Filesize int64 InputFile io.ReadSeeker OutputFile io.Writer OutputBuffer *filebuffer.Buffer SignData SignData CatalogData CatalogData VisualSignData VisualSignData InfoData InfoData PDFReader *pdf.Reader NewXrefStart int64 ByteRangeStartByte int64 SignatureContentsStartByte int64 ByteRangeValues []int64 SignatureMaxLength uint32 SignatureMaxLengthBase uint32 }
func (*SignContext) GetTSA ¶
func (context *SignContext) GetTSA(sign_content []byte) (timestamp_response []byte, err error)
func (*SignContext) SignPDF ¶
func (context *SignContext) SignPDF() error
type SignData ¶
type SignData struct { ObjectId uint32 Signature SignDataSignature Signer crypto.Signer DigestAlgorithm crypto.Hash Certificate *x509.Certificate CertificateChains [][]*x509.Certificate TSA TSA RevocationData revocation.InfoArchival RevocationFunction RevocationFunction }
type SignDataSignature ¶
type SignDataSignature struct { CertType uint DocMDPPerm uint Info SignDataSignatureInfo }
type SignDataSignatureInfo ¶
type VisualSignData ¶
Click to show internal directories.
Click to hide internal directories.