diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-03-16 02:42:41 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-03-16 02:42:41 +0000 |
commit | 52815cfd648244505cd4af2a0106842ebbedc379 (patch) | |
tree | 9aaab6ea64af385450f4a99cb504cdaa83f47708 /lib/des.c | |
parent | 5c0e97ee7c28eb259183605bd7675babd067ee5c (diff) | |
download | gnulib-52815cfd648244505cd4af2a0106842ebbedc379.tar.gz |
Use new namespace.
Diffstat (limited to 'lib/des.c')
-rw-r--r-- | lib/des.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -60,7 +60,7 @@ * .... * * // Set up the DES encryption context - * des_setkey(&context, key); + * gl_des_setkey(&context, key); * * // Encrypt the plaintext * des_ecb_encrypt(&context, plaintext, ciphertext); @@ -541,9 +541,9 @@ gl_des_makekey (gl_des_ctx *ctx, const char * key, size_t keylen) if (keylen != 8) return false; - des_setkey (ctx, key); + gl_des_setkey (ctx, key); - return !des_is_weak_key (key); + return !gl_des_is_weak_key (key); } void @@ -667,7 +667,7 @@ gl_3des_makekey (gl_3des_ctx *ctx, const char * key, size_t keylen) gl_3des_set3keys (ctx, key, key + 8, key + 16); - return !(des_is_weak_key (key) - || des_is_weak_key (key + 8) - || des_is_weak_key (key + 16)); + return !(gl_des_is_weak_key (key) + || gl_des_is_weak_key (key + 8) + || gl_des_is_weak_key (key + 16)); } |