functions

package
v0.0.0-...-127eb28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyAuthorization

func APIKeyAuthorization(next http.HandlerFunc) http.HandlerFunc

func CheckCertificates

func CheckCertificates() error

func CheckVolumeMounted

func CheckVolumeMounted(volumePath string) bool

func EncryptWithPublicKey

func EncryptWithPublicKey(data []byte, publicKey *rsa.PublicKey) ([]byte, error)

func EncryptWithPublicKeyHandler

func EncryptWithPublicKeyHandler(w http.ResponseWriter, r *http.Request)

func GetECPrivateKey

func GetECPrivateKey(filename string) (*ecdsa.PrivateKey, error)

func GetPrivateKey

func GetPrivateKey(filename string) (*rsa.PrivateKey, error)

func GetPublicKey

func GetPublicKey(pemStr string) (*rsa.PublicKey, error)

func HandleAddFileToAsiceRequest

func HandleAddFileToAsiceRequest(w http.ResponseWriter, r *http.Request)

func HandleCertificatesRequest

func HandleCertificatesRequest(w http.ResponseWriter, r *http.Request)

func HandleDigest

func HandleDigest(w http.ResponseWriter, r *http.Request)

func SigningHandler

func SigningHandler(privateKey *rsa.PrivateKey) http.HandlerFunc

func SigningHandlerEC

func SigningHandlerEC(privateKey *ecdsa.PrivateKey) http.HandlerFunc

func VerifySignature

func VerifySignature(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL