diff options
Diffstat (limited to 'lib/nettle/gost/acpkm.h')
-rw-r--r-- | lib/nettle/gost/acpkm.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/lib/nettle/gost/acpkm.h b/lib/nettle/gost/acpkm.h index 6c76951b5c..bea0b51586 100644 --- a/lib/nettle/gost/acpkm.h +++ b/lib/nettle/gost/acpkm.h @@ -32,33 +32,34 @@ */ #ifndef NETTLE_ACPKM_H_INCLUDED -# define NETTLE_ACPKM_H_INCLUDED +#define NETTLE_ACPKM_H_INCLUDED -# include <nettle/nettle-types.h> +#include <nettle/nettle-types.h> -# ifdef __cplusplus +#ifdef __cplusplus extern "C" { -# endif +#endif -# define acpkm_crypt _gnutls_acpkm_crypt +#define acpkm_crypt _gnutls_acpkm_crypt - struct acpkm_ctx { - size_t N; - size_t pos; - }; +struct acpkm_ctx { + size_t N; + size_t pos; +}; -# define ACPKM_CTX(type) \ -{ struct acpkm_ctx ctx; type cipher; } +#define ACPKM_CTX(type) \ + { \ + struct acpkm_ctx ctx; \ + type cipher; \ + } -# define ACPKM_KEY_SIZE 32 +#define ACPKM_KEY_SIZE 32 - void acpkm_crypt(struct acpkm_ctx *ctx, - void *cipher, - nettle_cipher_func * encrypt, - nettle_set_key_func * set_key, - size_t length, uint8_t * dst, const uint8_t * src); +void acpkm_crypt(struct acpkm_ctx *ctx, void *cipher, + nettle_cipher_func *encrypt, nettle_set_key_func *set_key, + size_t length, uint8_t *dst, const uint8_t *src); -# ifdef __cplusplus +#ifdef __cplusplus } -# endif -#endif /* NETTLE_ACPKM_H_INCLUDED */ +#endif +#endif /* NETTLE_ACPKM_H_INCLUDED */ |