X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fecdh.h;h=eb66ec0d17713bcd706ce747b60aef1b5a8ceeb4;hp=ac6bf0297cecab55ac364981a642d2fdad842155;hb=963c5055505f2fc117cd5efa06eaa02c9b2bf85d;hpb=9415f4b08fb2ca9ae933edd0bf8b096db195ebae diff --git a/src/ecdh.h b/src/ecdh.h index ac6bf029..eb66ec0d 100644 --- a/src/ecdh.h +++ b/src/ecdh.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_ECDH_H +#define MESHLINK_ECDH_H + /* ecdh.h -- header file for ecdh.c - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014, 2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,9 +20,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __MESHLINK_ECDH_H__ -#define __MESHLINK_ECDH_H__ - #define ECDH_SIZE 32 #define ECDH_SHARED_SIZE 32 @@ -27,8 +27,8 @@ typedef struct ecdh ecdh_t; #endif -extern ecdh_t *ecdh_generate_public(void *pubkey) __attribute__ ((__malloc__)); -extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__ ((__warn_unused_result__)); +extern ecdh_t *ecdh_generate_public(void *pubkey) __attribute__((__malloc__)); +extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__((__warn_unused_result__)); extern void ecdh_free(ecdh_t *ecdh); #endif