diff options
author | Stefan Israelsson Tampe <stefan.itampe@gmail.com> | 2018-08-26 18:34:22 +0200 |
---|---|---|
committer | Stefan Israelsson Tampe <stefan.itampe@gmail.com> | 2018-08-26 18:34:22 +0200 |
commit | 5fe84a36b844c41193546b296f71c5cc067f231c (patch) | |
tree | 333d45f8d9159ecb318f0ef7b880e5ad1cb60892 | |
parent | 21eb9264bdb581c1978193f9cbcaeb416e8e972c (diff) |
added the rest of hash functions as templates
-rw-r--r-- | modules/language/python/module/_blake2b.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_blake2s.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_sha3_224.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_sha3_256.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_sha3_384.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_sha3_512.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_shake_128.scm | 10 | ||||
-rw-r--r-- | modules/language/python/module/_shake_256.scm | 10 |
8 files changed, 80 insertions, 0 deletions
diff --git a/modules/language/python/module/_blake2b.scm b/modules/language/python/module/_blake2b.scm new file mode 100644 index 0000000..dd24634 --- /dev/null +++ b/modules/language/python/module/_blake2b.scm @@ -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 index 0000000..659dae0 --- /dev/null +++ b/modules/language/python/module/_blake2s.scm @@ -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 index 0000000..e4e4604 --- /dev/null +++ b/modules/language/python/module/_sha3_224.scm @@ -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 index 0000000..60af915 --- /dev/null +++ b/modules/language/python/module/_sha3_256.scm @@ -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 index 0000000..2bf1aec --- /dev/null +++ b/modules/language/python/module/_sha3_384.scm @@ -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 index 0000000..57b1e8c --- /dev/null +++ b/modules/language/python/module/_sha3_512.scm @@ -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 index 0000000..810b686 --- /dev/null +++ b/modules/language/python/module/_shake_128.scm @@ -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 index 0000000..5107427 --- /dev/null +++ b/modules/language/python/module/_shake_256.scm @@ -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")) |