Documentation ¶
Index ¶
- func APIKeyAuthorization(next http.HandlerFunc) http.HandlerFunc
- func CheckCertificates() error
- func CheckVolumeMounted(volumePath string) bool
- func EncryptWithPublicKey(data []byte, publicKey *rsa.PublicKey) ([]byte, error)
- func EncryptWithPublicKeyHandler(w http.ResponseWriter, r *http.Request)
- func GetECPrivateKey(filename string) (*ecdsa.PrivateKey, error)
- func GetPrivateKey(filename string) (*rsa.PrivateKey, error)
- func GetPublicKey(pemStr string) (*rsa.PublicKey, error)
- func HandleAddFileToAsiceRequest(w http.ResponseWriter, r *http.Request)
- func HandleCertificatesRequest(w http.ResponseWriter, r *http.Request)
- func HandleDigest(w http.ResponseWriter, r *http.Request)
- func SigningHandler(privateKey *rsa.PrivateKey) http.HandlerFunc
- func SigningHandlerEC(privateKey *ecdsa.PrivateKey) http.HandlerFunc
- func VerifySignature(w http.ResponseWriter, r *http.Request)
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 EncryptWithPublicKey ¶
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 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.
Click to show internal directories.
Click to hide internal directories.