summaryrefslogtreecommitdiff
path: root/cbc.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2004-02-25 23:00:38 +0100
committerNiels Möller <nisse@lysator.liu.se>2004-02-25 23:00:38 +0100
commitef8b4e8e7d5887836357c693a90ad411d8c0a979 (patch)
tree96d0623a9c6369d3cffcf8efa8a76901cffae870 /cbc.c
parent688f5b22598f3de53497b30b086e50a62f0d2788 (diff)
downloadnettle-ef8b4e8e7d5887836357c693a90ad411d8c0a979.tar.gz
(cbc_encrypt, cbc_decrypt): Use a _const_ void *ctx argument.
Rev: src/nettle/cbc.c:1.9 Rev: src/nettle/cbc.h:1.6
Diffstat (limited to 'cbc.c')
-rw-r--r--cbc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cbc.c b/cbc.c
index 72b71c71..3312c293 100644
--- a/cbc.c
+++ b/cbc.c
@@ -37,9 +37,9 @@
#include "nettle-internal.h"
void
-cbc_encrypt(void *ctx, void (*f)(void *ctx,
- unsigned length, uint8_t *dst,
- const uint8_t *src),
+cbc_encrypt(const void *ctx, void (*f)(const void *ctx,
+ unsigned length, uint8_t *dst,
+ const uint8_t *src),
unsigned block_size, uint8_t *iv,
unsigned length, uint8_t *dst,
const uint8_t *src)
@@ -56,9 +56,9 @@ cbc_encrypt(void *ctx, void (*f)(void *ctx,
/* Reqires that dst != src */
static void
-cbc_decrypt_internal(void *ctx, void (*f)(void *ctx,
- unsigned length, uint8_t *dst,
- const uint8_t *src),
+cbc_decrypt_internal(const void *ctx, void (*f)(const void *ctx,
+ unsigned length, uint8_t *dst,
+ const uint8_t *src),
unsigned block_size, uint8_t *iv,
unsigned length, uint8_t *dst,
const uint8_t *src)
@@ -80,9 +80,9 @@ cbc_decrypt_internal(void *ctx, void (*f)(void *ctx,
#define CBC_BUFFER_LIMIT 4096
void
-cbc_decrypt(void *ctx, void (*f)(void *ctx,
- unsigned length, uint8_t *dst,
- const uint8_t *src),
+cbc_decrypt(const void *ctx, void (*f)(const void *ctx,
+ unsigned length, uint8_t *dst,
+ const uint8_t *src),
unsigned block_size, uint8_t *iv,
unsigned length, uint8_t *dst,
const uint8_t *src)