Package group-crypt: Group cryptography

Information

namegroup-crypt
version1.8
descriptionGroup cryptography
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
requiresbool
group-mult
group-thm
group-witness
natural
pair
showAlgebra.Group
Data.Bool
Data.Pair
Number.Natural

Files

Defined Constants

Theorems

x a b. ElGamal.decrypt x (a, b) = ~(a * x) + b

g h m k. ElGamal.encrypt g h m k = (g * k, h * k + m)

g h m k x. h = g * x ElGamal.decrypt x (ElGamal.encrypt g h m k) = m

External Type Operators

External Constants

Assumptions

() = λp. p = λx.

() = λp q. p q p

a b. fst (a, b) = a

a b. snd (a, b) = b

m n. m * n = n * m

x y. ~x + (x + y) = y

() = λp q. (λf. f p q) = λf. f

x m n. x * (m * n) = x * m * n