Skip to content
Snippets Groups Projects
Commit 249cfc9e authored by Niels Möller's avatar Niels Möller
Browse files

(des_key_sched, des_is_weak_key): Use the name

nettle_des_set_key for referring to Nettle's function.

Rev: src/nettle/des-compat.c:1.8
parent f89eac73
Branches
Tags
No related merge requests found
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "des-compat.h" #include "des-compat.h"
#undef des_set_key
#include "cbc.h" #include "cbc.h"
#include "macros.h" #include "macros.h"
#include "memxor.h" #include "memxor.h"
...@@ -193,7 +191,7 @@ des_key_sched(des_cblock *key, des_key_schedule ctx) ...@@ -193,7 +191,7 @@ des_key_sched(des_cblock *key, des_key_schedule ctx)
/* Fix the parity */ /* Fix the parity */
des_set_odd_parity(key); des_set_odd_parity(key);
if (des_set_key(ctx, *key)) if (nettle_des_set_key(ctx, *key))
return 0; return 0;
else switch(ctx->status) else switch(ctx->status)
{ {
...@@ -221,5 +219,5 @@ des_is_weak_key(des_cblock *key) ...@@ -221,5 +219,5 @@ des_is_weak_key(des_cblock *key)
{ {
struct des_ctx ctx; struct des_ctx ctx;
return !des_set_key(&ctx, *key); return !nettle_des_set_key(&ctx, *key);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment