functions

package
v0.0.0-...-31ec5d8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 27 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 CalculateVerificationCode

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

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 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

type HashSignatureRequest struct {
	SessionId string `json:"sessionId"`
	Hash      string `json:"hash"`
}

Array request with sessionId

type SingleHashRequest

type SingleHashRequest struct {
	SessionId string `json:"sessionId,omitempty"`
	Hash      string `json:"hash"`
}

Single request without sessionId

Jump to

Keyboard shortcuts

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