diff options
Diffstat (limited to '3544/CH4/EX4.9.2/Ex4_9_2.sce')
-rw-r--r-- | 3544/CH4/EX4.9.2/Ex4_9_2.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3544/CH4/EX4.9.2/Ex4_9_2.sce b/3544/CH4/EX4.9.2/Ex4_9_2.sce new file mode 100644 index 000000000..3f794948c --- /dev/null +++ b/3544/CH4/EX4.9.2/Ex4_9_2.sce @@ -0,0 +1,21 @@ +
+//ElGamal Signature verification
+
+e1 = 10
+e2 = 4
+m = 14
+p = 19
+s1 = 3
+s2 = 4
+
+v1 = modulo(e1^m,p)
+disp("V1")
+disp(v1)
+
+v2 = modulo(e2^s1 * s1^s2,p)
+disp("V2")
+disp(v2)
+
+disp("Since V1=V2, signature is valid")
+
+
|