Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifySignature ¶
func VerifySignature(data, sig []byte, detached bool, rootCerts, intermediates *x509.CertPool) (*x509.Certificate, error)
VerifySignature verifies for a given Git data + signature pair.
Data should be the Git data that was signed (i.e. everything in the commit besides the signature). Note: passing in the commit object itself will not work.
Signatures should be CMS/PKCS7 formatted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.