X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=ecdsa%2Fecdsa.h;h=8715a3dd7b8b7e3e8db05aaaf010fb2119f8deaa;hp=9559417107389c3ef2227f7ee8a13cf6adadcbec;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=39983bbdb6dbbe196ccc7075d7664fca3168f695 diff --git a/ecdsa/ecdsa.h b/ecdsa/ecdsa.h index 9559417..8715a3d 100644 --- a/ecdsa/ecdsa.h +++ b/ecdsa/ecdsa.h @@ -1,7 +1,7 @@ /* ecdsa.h */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2012 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) 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 @@ -43,15 +43,15 @@ typedef uint8_t(*rand_func_ptr_t)(void); #define ECDSA_SIGNATURE_OK 1 #define ECDSA_SIGNATURE_FAIL 0 -uint8_t ecdsa_sign_bigint(ecdsa_signature_t* s, const bigint_t* m, - const ecdsa_ctx_t* ctx, const bigint_t* k); -uint8_t ecdsa_sign_message(ecdsa_signature_t* s, const void* m, uint16_t m_len_b, - const hfdesc_t* hash_desc, const ecdsa_ctx_t* ctx, +uint8_t ecdsa_sign_bigint(ecdsa_signature_t *s, const bigint_t *m, + const ecdsa_ctx_t *ctx, const bigint_t *k); +uint8_t ecdsa_sign_message(ecdsa_signature_t *s, const void *m, uint16_t m_len_b, + const hfdesc_t *hash_desc, const ecdsa_ctx_t *ctx, const void *rand_in); -uint8_t ecdsa_verify_bigint(const ecdsa_signature_t* s, const bigint_t* m, - const ecdsa_ctx_t* ctx); -uint8_t ecdsa_verify_message(const ecdsa_signature_t* s, const void* m, uint16_t m_len_b, - const hfdesc_t* hash_desc, const ecdsa_ctx_t* ctx); +uint8_t ecdsa_verify_bigint(const ecdsa_signature_t *s, const bigint_t *m, + const ecdsa_ctx_t *ctx); +uint8_t ecdsa_verify_message(const ecdsa_signature_t *s, const void *m, uint16_t m_len_b, + const hfdesc_t *hash_desc, const ecdsa_ctx_t *ctx); #endif /* ECDSA_H_ */