summaryrefslogtreecommitdiff
path: root/appl/cmd/ssh/cipherdes.b
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-01-17 11:10:35 +0000
committerforsyth <forsyth@vitanuova.com>2011-01-17 11:10:35 +0000
commitd6b4eae8eb0a5ca3119414005e483fedd63a62d6 (patch)
tree4959b04b1ae02ce5ccb4b3c0a8c459ff46587eb7 /appl/cmd/ssh/cipherdes.b
parent9e6910dc0c747c8f30b87f6482f4eadb48ad6654 (diff)
20110117-1110
Diffstat (limited to 'appl/cmd/ssh/cipherdes.b')
-rw-r--r--appl/cmd/ssh/cipherdes.b43
1 files changed, 0 insertions, 43 deletions
diff --git a/appl/cmd/ssh/cipherdes.b b/appl/cmd/ssh/cipherdes.b
deleted file mode 100644
index 7de0a7ca..00000000
--- a/appl/cmd/ssh/cipherdes.b
+++ /dev/null
@@ -1,43 +0,0 @@
-implement Cipher;
-
-include "sys.m";
-
-include "ipints.m";
- ipints: IPints;
- IPint: import ipints;
-
-include "crypt.m";
- crypt: Crypt;
- DESstate: import crypt;
-
-include "sshio.m";
-
-Cipherstate: adt
-{
- enc: ref DESstate;
- dec: ref DESstate;
-};
-
-cs: ref Cipherstate;
-
-id(): int
-{
- return SSH_CIPHER_DES;
-}
-
-init(key: array of byte, nil: int)
-{
- ipints = load IPints IPints->PATH;
- crypt = load Crypt Crypt->PATH;
- cs = ref Cipherstate(crypt->dessetup(key, nil), crypt->dessetup(key, nil));
-}
-
-encrypt(buf: array of byte, nbuf: int)
-{
- crypt->descbc(cs.enc, buf, nbuf, Crypt->Encrypt);
-}
-
-decrypt(buf: array of byte, nbuf: int)
-{
- crypt->descbc(cs.dec, buf, nbuf, Crypt->Decrypt);
-}