summaryrefslogtreecommitdiff
path: root/sys/miscfs/tcfs/tcfs_cipher.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2000-06-18 16:23:11 +0000
committerNiels Provos <provos@cvs.openbsd.org>2000-06-18 16:23:11 +0000
commitc03b36cbcdf70018b03c8c925fc4e9792f92fd8b (patch)
treeed2aa5d2828c838facc6aff27ef633f33d2d4ee6 /sys/miscfs/tcfs/tcfs_cipher.h
parent555ca9661a390b91aeacaf535c9b178ba0167ce5 (diff)
change keysize from 8 bytes to 24 for Triple-DES and to 32 for Blowfish.
This probably breaks group sharing. copyin on userland pointers is required, inline key into the argument structure.
Diffstat (limited to 'sys/miscfs/tcfs/tcfs_cipher.h')
-rw-r--r--sys/miscfs/tcfs/tcfs_cipher.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/tcfs/tcfs_cipher.h b/sys/miscfs/tcfs/tcfs_cipher.h
index 62a14ecab1f..fa2105d36cc 100644
--- a/sys/miscfs/tcfs/tcfs_cipher.h
+++ b/sys/miscfs/tcfs/tcfs_cipher.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfs_cipher.h,v 1.3 2000/06/17 20:25:54 provos Exp $ */
+/* $OpenBSD: tcfs_cipher.h,v 1.4 2000/06/18 16:23:08 provos Exp $ */
/*
* Copyright 2000 The TCFS Project at http://tcfs.dia.unisa.it/
* All rights reserved.
@@ -97,12 +97,12 @@ void *TDES_init_key(char *);
void TDES_cleanup_key(void*);
void TDES_encrypt(char *, int , void*);
void TDES_decrypt(char *, int , void*);
-#define TDES_KEYSIZE 8
+#define TDES_KEYSIZE 24
void *BLOWFISH_init_key(char *);
void BLOWFISH_cleanup_key(void*);
void BLOWFISH_encrypt(char *, int , void*);
void BLOWFISH_decrypt(char *, int , void*);
-#define BLOWFISH_KEYSIZE 8
+#define BLOWFISH_KEYSIZE 32
#endif /* _TCFS_CIPHER_H_ */