Versions in this module Expand all Collapse all v1 v1.4.5 Dec 28, 2022 v1.4.4 Dec 28, 2022 Changes in this version + var ErrInvalidContentType = errors.New("invalid content type") + var ErrInvalidHeader = errors.New("invalid X-Content-Security header") + var ErrInvalidKey = errors.New("invalid key") + var ErrInvalidPublicKey = errors.New("invalid public key") + var ErrInvalidSecret = errors.New("invalid secret") + func VerifySignature(r *http.Request, securityHeader *ContentSecurityHeader, ...) int + type ContentSecurityHeader struct + ContentType int + Key []byte + Signature string + Timestamp string + func ParseContentSecurity(decrypters map[string]codec.RsaDecrypter, r *http.Request) (*ContentSecurityHeader, error) + func (h *ContentSecurityHeader) Encrypted() bool