X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdes.h;h=2622ad16627c105364080bcd96d8a55bbf49a067;hb=4aff5d18a14cc6e42ba3ca035284a2e283308e37;hp=9ada75277d058d6310653aa5aa29420992fe0a60;hpb=eee009073c7e98c56ad5d8b8f9a7e583e7460012;p=gnulib.git diff --git a/lib/des.h b/lib/des.h index 9ada75277..2622ad166 100644 --- a/lib/des.h +++ b/lib/des.h @@ -1,5 +1,5 @@ /* des.h --- DES cipher implementation. - * Copyright (C) 2005, 2007 Free Software Foundation, Inc. + * Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published @@ -84,8 +84,8 @@ gl_des_ecb_crypt (gl_des_ctx *ctx, const char * from, char * to, int mode); * keys, but simply ignore them. Does not check for weak keys. */ extern void gl_3des_set2keys (gl_3des_ctx *ctx, - const char * key1, - const char * key2); + const char * key1, + const char * key2); /* * Fill a Triple-DES context CTX with subkeys calculated from three @@ -94,26 +94,26 @@ gl_3des_set2keys (gl_3des_ctx *ctx, * keys. */ extern void gl_3des_set3keys (gl_3des_ctx *ctx, - const char * key1, - const char * key2, - const char * key3); + const char * key1, + const char * key2, + const char * key3); /* Fill a Triple-DES context CTX with subkeys calculated from three * concatenated 64bit keys in KEY, with weak key checking. Does not * check the parity bits of the keys, but simply ignore them. */ extern bool gl_3des_makekey (gl_3des_ctx *ctx, - const char * key, - size_t keylen); + const char * key, + size_t keylen); /* Electronic Codebook Mode Triple-DES encryption/decryption of data * according to 'mode'. Sometimes this mode is named 'EDE' mode * (Encryption-Decryption-Encryption). */ extern void gl_3des_ecb_crypt (gl_3des_ctx *ctx, - const char * from, - char * to, - int mode); + const char * from, + char * to, + int mode); #define gl_3des_ecb_encrypt(ctx, from, to) gl_3des_ecb_crypt(ctx,from,to,0) #define gl_3des_ecb_decrypt(ctx, from, to) gl_3des_ecb_crypt(ctx,from,to,1)