Documentation
¶
Index ¶
- func APIKeyAuthorization(next http.HandlerFunc) http.HandlerFunc
- func CalculateVerificationCode(w http.ResponseWriter, r *http.Request)
- 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 JwtGenerateHandler(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)
- type HashSignatureRequest
- type SingleHashRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyAuthorization ¶
func APIKeyAuthorization(next http.HandlerFunc) http.HandlerFunc
func CalculateVerificationCode ¶
func CalculateVerificationCode(w http.ResponseWriter, r *http.Request)
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 JwtGenerateHandler ¶
func JwtGenerateHandler(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 ¶
type HashSignatureRequest ¶
Array request with sessionId
type SingleHashRequest ¶
type SingleHashRequest struct { SessionId string `json:"sessionId,omitempty"` Hash string `json:"hash"` }
Single request without sessionId
Click to show internal directories.
Click to hide internal directories.