summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-09-21 06:15:30 +0200
committerjonsykkel <jonrevold@gmail.com>2021-09-21 06:19:54 +0200
commit7a8b194ba51e444c5f4129ca812c9ed1007bc784 (patch)
treee9b313b2659a1507f5d0fa167421fd21afa2045b
parent6443416a5e2544cc605770657d986cd6c749a0e8 (diff)
downloadokeffa-7a8b194ba51e444c5f4129ca812c9ed1007bc784.tar.gz
ch6
-rw-r--r--makefile2
-rw-r--r--prog/ch626
2 files changed, 26 insertions, 2 deletions
diff --git a/makefile b/makefile
index e19a095..947bae5 100644
--- a/makefile
+++ b/makefile
@@ -66,7 +66,7 @@ out := $(bin_dir)/$(out)
ifneq ($(run),)
run_cmd := @echo "run $(out)" 1>&2
#run_cmd += && ./$(out) 256 16
- run_cmd += && cat prog/ch6 | $(out) 256 16
+ run_cmd += && time $(out) 2048 16 < prog/ch6
endif
ifneq ($(debug),)
diff --git a/prog/ch6 b/prog/ch6
index b88b94e..48defd3 100644
--- a/prog/ch6
+++ b/prog/ch6
@@ -1 +1,25 @@
-.4.5.7MQ
+(signature).
+5b6a8a0acf4f4db3f82eac2d20255e4df3e4b7c799603210766f26ef87c8980e
+737579ec08e6505a51d19654c26d806baf1b62f9c032e0b13d02af99f7313bfc
+fd68da46836eca529d7360948550f982c6476c054a97fd01635ab44bfbdbe2a9
+0be06f7984ac8534c38613747f340c18176e6d5f0c10246a2fce3a668eacb616
+5c2052497ca2ee483f4fd8d06a9911bd97e9b6720521d872bd08ff8da11a1b8d
+b147f252e4e69ae6201d3b374b171df445ef2bf509d468fd57ceb5840349b14c
+6e2aaa194d9531d238b85b8f0dd352d1e59671539b429849e5d965e438bf9eff
+c338df9aadf304c4130d5a05e006ed855f37a0624228097ef92f6e78cae0cb97
+
+(exponent).
+10001
+
+(modulus).
+cdd49a674baf76d3b73e25bc6df66ef3abeddca461d3ccb6416793e3437c7806
+56269473c2212d5fd5eed17aa067fec001d8e76ec901ededf960304f891bd3ca
+d7f9a335d1a2ec37eabeff3fbe6d3c726dc68e599ebfe5456ef19813398cd7d5
+48d746a30aa47d4293968bfbafcbf65a90dffc87816fee2a01e1dc699f4ddabb
+84965514c0d909d54fda7062a2037b50b771c153d5429ba4ba335eab840f9551
+e9cd9df8bb4a6dc3ed1318ff3969f7b99d9fb90cab968813f8ad4f9a069c9639
+a74d70a659c69c29692567ce863b88e191cc9535b91b417d0af14be09c78b53a
+f9c5f494bcf2c60349ffa93c81e817ac682f0055a607bb56d6a281c1a04cefe1
+
+(s^e mod m)
+XQ