diff options
Diffstat (limited to 'lib/nettle/gcm-camellia.c')
-rw-r--r-- | lib/nettle/gcm-camellia.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/lib/nettle/gcm-camellia.c b/lib/nettle/gcm-camellia.c index 45d31fea6d..cebb476635 100644 --- a/lib/nettle/gcm-camellia.c +++ b/lib/nettle/gcm-camellia.c @@ -26,7 +26,7 @@ */ #if HAVE_CONFIG_H -# include "config.h" +#include "config.h" #endif #include <nettle/gcm.h> @@ -34,42 +34,45 @@ #include <gcm-camellia.h> void -_gcm_camellia_set_key(struct _gcm_camellia_ctx *ctx, unsigned length, const uint8_t *key) +_gcm_camellia_set_key(struct _gcm_camellia_ctx *ctx, unsigned length, + const uint8_t * key) { - GCM_SET_KEY(ctx, camellia_set_encrypt_key, camellia_crypt, length, key); + GCM_SET_KEY(ctx, camellia_set_encrypt_key, camellia_crypt, length, + key); } void _gcm_camellia_set_iv(struct _gcm_camellia_ctx *ctx, - unsigned length, const uint8_t *iv) + unsigned length, const uint8_t * iv) { - GCM_SET_IV(ctx, length, iv); + GCM_SET_IV(ctx, length, iv); } void -_gcm_camellia_update(struct _gcm_camellia_ctx *ctx, unsigned length, const uint8_t *data) +_gcm_camellia_update(struct _gcm_camellia_ctx *ctx, unsigned length, + const uint8_t * data) { - GCM_UPDATE(ctx, length, data); + GCM_UPDATE(ctx, length, data); } void _gcm_camellia_encrypt(struct _gcm_camellia_ctx *ctx, - unsigned length, uint8_t *dst, const uint8_t *src) + unsigned length, uint8_t * dst, const uint8_t * src) { - GCM_ENCRYPT(ctx, camellia_crypt, length, dst, src); + GCM_ENCRYPT(ctx, camellia_crypt, length, dst, src); } void _gcm_camellia_decrypt(struct _gcm_camellia_ctx *ctx, - unsigned length, uint8_t *dst, const uint8_t *src) + unsigned length, uint8_t * dst, const uint8_t * src) { - GCM_DECRYPT(ctx, camellia_crypt, length, dst, src); + GCM_DECRYPT(ctx, camellia_crypt, length, dst, src); } void _gcm_camellia_digest(struct _gcm_camellia_ctx *ctx, - unsigned length, uint8_t *digest) + unsigned length, uint8_t * digest) { - GCM_DIGEST(ctx, camellia_crypt, length, digest); - + GCM_DIGEST(ctx, camellia_crypt, length, digest); + } |