Documentation ¶
Index ¶
- type Cypher
- func (this *Cypher) FromJSON(json map[string]string) (*Cypher, error)
- func (this *Cypher) GetBSON() (interface{}, error)
- func (this *Cypher) MarshalJSON() ([]byte, error)
- func (this *Cypher) Mul(cypher1, cypher2 *Cypher) *Cypher
- func (this *Cypher) ToJSON() map[string]string
- func (this *Cypher) UnmarshalJSON(bytes []byte) error
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
PrivateKey represents an ElGamal private key.
func (*PrivateKey) Decrypt ¶
func (priv *PrivateKey) Decrypt(cypher *Cypher) (msg []byte)
func (*PrivateKey) GetBSON ¶
func (this *PrivateKey) GetBSON() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.