diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-12 12:03:02 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-12 12:03:02 +0000 |
| commit | f94594b37a145b9b3e9ff31af2cd1dc3de8aa4d4 (patch) | |
| tree | 38501bd60c958b3b5474368fc0834fe6d09c307a /lib/libc/rpc/des_crypt.c | |
| parent | b779ff2b9c12b92001cff75c2047f6a32c0beb48 (diff) | |
| parent | d36c6176161e31d945d8adbb2aae1ccffb632bd7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/rpc/des_crypt.c')
| -rw-r--r-- | lib/libc/rpc/des_crypt.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/libc/rpc/des_crypt.c b/lib/libc/rpc/des_crypt.c index ace8ed6ce129a..b54af4f981e8a 100644 --- a/lib/libc/rpc/des_crypt.c +++ b/lib/libc/rpc/des_crypt.c @@ -70,12 +70,7 @@ extern int _des_crypt_call(char *, int, struct desparams *); * CBC mode encryption */ int -cbc_crypt(key, buf, len, mode, ivec) - char *key; - char *buf; - unsigned len; - unsigned mode; - char *ivec; +cbc_crypt(char *key, char *buf, unsigned len, unsigned mode, char *ivec) { int err; struct desparams dp; @@ -97,11 +92,7 @@ cbc_crypt(key, buf, len, mode, ivec) * ECB mode encryption */ int -ecb_crypt(key, buf, len, mode) - char *key; - char *buf; - unsigned len; - unsigned mode; +ecb_crypt(char *key, char *buf, unsigned len, unsigned mode) { struct desparams dp; @@ -120,12 +111,8 @@ ecb_crypt(key, buf, len, mode) * Common code to cbc_crypt() & ecb_crypt() */ static int -common_crypt(key, buf, len, mode, desp) - char *key; - char *buf; - unsigned len; - unsigned mode; - struct desparams *desp; +common_crypt(char *key, char *buf, unsigned len, unsigned mode, + struct desparams *desp) { int desdev; |
