models

package
v0.0.0-...-1719f48 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AES256CBC

type AES256CBC struct {
	Key        string `json:"key"`
	IV         string `json:"iv"`
	PlainText  string `json:"plaintext"`
	CypherText string `json:"cyphertext"`
}

type AES256CTR

type AES256CTR struct {
	Name string `json:"name"`
	Key  []byte `json:"key"`
	IV   []byte `json:"iv"`
	In   []byte `json:"in"`
	Out  []byte `json:"out"`
}

type ElGamal

type ElGamal struct {
	Bob_p        int64 `json:"bob_p"`
	Bob_a        int64 `json:"bob_a"`
	Bob_PriK     int64 `json:"bob_PriK"`
	Bob_PubK     int64 `json:"bob_PubK"`
	SecretNumber int64 `json:"secret_number"`
	Alice_v      int64 `json:"alice_v"`
	Alice_N1     int64 `json:"alice_N1"`
	Alice_N2     int64 `json:"alice_N2"`
	Bob_N3       int64 `json:"bob_N3"`
	N_decrypted  int64 `json:"N_decrypted"`
}

type EllipticCurvePointAddition

type EllipticCurvePointAddition struct {
	A        int64 `json:"a"`
	B        int64 `json:"b"`
	P        int64 `json:"p"`
	X_1      int64 `json:"x_1"`
	Y_1      int64 `json:"y_1"`
	X_2      int64 `json:"x_2"`
	Y_2      int64 `json:"y_2"`
	Op_x     int64 `json:"op_x"`
	Op_y     int64 `json:"op_y"`
	Inv_op_x int64 `json:"inv_op_x"`
	Lambda   int64 `json:"lambda"`
	X        int64 `json:"x"`
	Y        int64 `json:"y"`
}

type EllipticCurvePointMultiplication

type EllipticCurvePointMultiplication struct {
	A         int64 `json:"a"`
	B         int64 `json:"b"`
	P         int64 `json:"p"`
	X_1       int64 `json:"x_1"`
	Y_1       int64 `json:"y_1"`
	Op_x_1    int64 `json:"op_x_1"`
	Inv_2y_1  int64 `json:"inv_2y_1"`
	Lambda    int64 `json:"lambda"`
	X         int64 `json:"x"`
	Op_lambda int64 `json:"op_lambda"`
	Y         int64 `json:"y"`
}

type Hash

type Hash struct {
	Function string `json:"function"`
	Msg      string `json:"msg"`
	Sum      string `json:"sum"`
}

type RSA

type RSA struct {
	PlainText  int   `json:"plaintext"`
	CypherText int64 `json:"cyphertext"`
	DecryptedC int64 `json:"decryptedc"`
}

Jump to

Keyboard shortcuts

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