diff options
author | Niels Möller <nisse@lysator.liu.se> | 2004-02-26 10:25:29 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2004-02-26 10:25:29 +0100 |
commit | 590c8954cbecadd7b2d2418e3b284a68f0ba5e48 (patch) | |
tree | 7c4b08b82955be9b067e40de8c9f1bee0b7404de /cbc.c | |
parent | 4af858dfe00fa3962b754d143a86c3c960bd514b (diff) | |
download | nettle-590c8954cbecadd7b2d2418e3b284a68f0ba5e48.tar.gz |
* cbc.h (nettle_crypt_func): Moved typedef here.
* cbc.c (cbc_encrypt, cbc_decrypt_internal, cbc_decrypt): Use it
for typing the f argument.
Rev: src/nettle/cbc.c:1.10
Rev: src/nettle/cbc.h:1.7
Diffstat (limited to 'cbc.c')
-rw-r--r-- | cbc.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -37,9 +37,7 @@ #include "nettle-internal.h" void -cbc_encrypt(const void *ctx, void (*f)(const void *ctx, - unsigned length, uint8_t *dst, - const uint8_t *src), +cbc_encrypt(void *ctx, nettle_crypt_func f, unsigned block_size, uint8_t *iv, unsigned length, uint8_t *dst, const uint8_t *src) @@ -56,9 +54,7 @@ cbc_encrypt(const void *ctx, void (*f)(const void *ctx, /* Reqires that dst != src */ static void -cbc_decrypt_internal(const void *ctx, void (*f)(const void *ctx, - unsigned length, uint8_t *dst, - const uint8_t *src), +cbc_decrypt_internal(void *ctx, nettle_crypt_func f, unsigned block_size, uint8_t *iv, unsigned length, uint8_t *dst, const uint8_t *src) @@ -80,9 +76,7 @@ cbc_decrypt_internal(const void *ctx, void (*f)(const void *ctx, #define CBC_BUFFER_LIMIT 4096 void -cbc_decrypt(const void *ctx, void (*f)(const void *ctx, - unsigned length, uint8_t *dst, - const uint8_t *src), +cbc_decrypt(void *ctx, nettle_crypt_func f, unsigned block_size, uint8_t *iv, unsigned length, uint8_t *dst, const uint8_t *src) |