added the rest of hash functions as templates
authorStefan Israelsson Tampe <stefan.itampe@gmail.com>
Sun, 26 Aug 2018 16:34:22 +0000 (18:34 +0200)
committerStefan Israelsson Tampe <stefan.itampe@gmail.com>
Sun, 26 Aug 2018 16:34:22 +0000 (18:34 +0200)
modules/language/python/module/_blake2b.scm [new file with mode: 0644]
modules/language/python/module/_blake2s.scm [new file with mode: 0644]
modules/language/python/module/_sha3_224.scm [new file with mode: 0644]
modules/language/python/module/_sha3_256.scm [new file with mode: 0644]
modules/language/python/module/_sha3_384.scm [new file with mode: 0644]
modules/language/python/module/_sha3_512.scm [new file with mode: 0644]
modules/language/python/module/_shake_128.scm [new file with mode: 0644]
modules/language/python/module/_shake_256.scm [new file with mode: 0644]

diff --git a/modules/language/python/module/_blake2b.scm b/modules/language/python/module/_blake2b.scm
new file mode 100644 (file)
index 0000000..dd24634
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _blake2b)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (blake2b))
+
+(define-python-class blake2b (Summer)
+  (define name     "blake2b")
+  (define digest_size 64)
+  
+  (define _command "/usr/bin/blake2bsum"))
diff --git a/modules/language/python/module/_blake2s.scm b/modules/language/python/module/_blake2s.scm
new file mode 100644 (file)
index 0000000..659dae0
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _blake2s)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (blake2s))
+
+(define-python-class blake2s (Summer)
+  (define name     "blake2s")
+  (define digest_size 32)
+  
+  (define _command "/usr/bin/blake2ssum"))
diff --git a/modules/language/python/module/_sha3_224.scm b/modules/language/python/module/_sha3_224.scm
new file mode 100644 (file)
index 0000000..e4e4604
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _sha3_224)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (sha3_224))
+
+(define-python-class sha3_224 (Summer)
+  (define name     "sha3_224")
+  (define digest_size 28)
+  
+  (define _command "/usr/bin/sha3_224sum"))
diff --git a/modules/language/python/module/_sha3_256.scm b/modules/language/python/module/_sha3_256.scm
new file mode 100644 (file)
index 0000000..60af915
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _sha3_256)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (sha3_256))
+
+(define-python-class sha3_256 (Summer)
+  (define name     "sha3_256")
+  (define digest_size 32)
+  
+  (define _command "/usr/bin/sha3_256sum"))
diff --git a/modules/language/python/module/_sha3_384.scm b/modules/language/python/module/_sha3_384.scm
new file mode 100644 (file)
index 0000000..2bf1aec
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _sha3_384)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (sha3_384))
+
+(define-python-class sha3_384 (Summer)
+  (define name     "sha3_384")
+  (define digest_size 48)
+  
+  (define _command "/usr/bin/sha3_384sum"))
diff --git a/modules/language/python/module/_sha3_512.scm b/modules/language/python/module/_sha3_512.scm
new file mode 100644 (file)
index 0000000..57b1e8c
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _sha3_512)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (sha3_512))
+
+(define-python-class sha3_512 (Summer)
+  (define name     "sha3_512")
+  (define digest_size 64)
+  
+  (define _command "/usr/bin/sha3_512sum"))
diff --git a/modules/language/python/module/_shake_128.scm b/modules/language/python/module/_shake_128.scm
new file mode 100644 (file)
index 0000000..810b686
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _shake_128)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (shake_128))
+
+(define-python-class shake_128 (Summer)
+  (define name     "shake_128")
+  (define digest_size 0)
+  
+  (define _command "/usr/bin/shake_128sum"))
diff --git a/modules/language/python/module/_shake_256.scm b/modules/language/python/module/_shake_256.scm
new file mode 100644 (file)
index 0000000..5107427
--- /dev/null
@@ -0,0 +1,10 @@
+(define-module (language python module _shake_256)
+  #:use-module (language python checksum)
+  #:use-module (oop pf-objects)
+  #:export (shake_256))
+
+(define-python-class shake_256 (Summer)
+  (define name     "shake_256")
+  (define digest_size 0)
+  
+  (define _command "/usr/bin/shake_256sum"))