X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=ecdsa%2Fecdsa_sign.h;h=d569820172a9c0c3b6aa5e1c1b5821ea07fd486c;hp=6edb836b92a74bb0450cadf54b51ed59033a903a;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=56e75f661dfea7104d76421be6059f098d3236d4 diff --git a/ecdsa/ecdsa_sign.h b/ecdsa/ecdsa_sign.h index 6edb836..d569820 100644 --- a/ecdsa/ecdsa_sign.h +++ b/ecdsa/ecdsa_sign.h @@ -1,7 +1,7 @@ /* ecdsa_sign.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 @@ -25,15 +25,19 @@ #include "ecdsa.h" #include "hfal-basic.h" -uint8_t ecdsa_signature_alloc(ecdsa_signature_t* s, size_t length_B); +uint8_t ecdsa_signature_alloc(ecdsa_signature_t *s, size_t length_B); -void ecdsa_signature_free(ecdsa_signature_t* s); +void ecdsa_signature_free(ecdsa_signature_t *s); -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_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_hash(ecdsa_signature_t *s, const void *hash, + size_t hash_len_B, const ecdsa_ctx_t *ctx, + const void *rand_in); + +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); #endif /* ECDSA_SIGN_H_ */