summaryrefslogtreecommitdiff
path: root/blowfish.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2001-06-15 18:32:35 +0200
committerNiels Möller <nisse@lysator.liu.se>2001-06-15 18:32:35 +0200
commitabd17ec3bc86206e17cab71578fe9e03b1edc6ef (patch)
tree06e9587a4a45efd723e2f67d12a990896a7e5595 /blowfish.h
parent3ac3edad216895815753091ba317fd4d1a6d14a9 (diff)
downloadnettle-abd17ec3bc86206e17cab71578fe9e03b1edc6ef.tar.gz
Minor fixes.
Rev: src/nettle/blowfish.c:1.2 Rev: src/nettle/blowfish.h:1.2 Rev: src/nettle/des.h:1.2 Rev: src/nettle/serpent.c:1.2
Diffstat (limited to 'blowfish.h')
-rw-r--r--blowfish.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/blowfish.h b/blowfish.h
index dab0de15..591f3ab6 100644
--- a/blowfish.h
+++ b/blowfish.h
@@ -51,7 +51,9 @@ struct blowfish_ctx
enum blowfish_error status;
};
-void
+/* On success, returns 1 and sets ctx->status to BLOWFISH_OK (zero).
+ * On error, returns 0 and sets ctx->status to BLOWFISH_WEAK_KEY. */
+int
blowfish_set_key(struct blowfish_ctx *ctx,
unsigned length, const uint8_t *key);