X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=dsa%2Fdsa_sign.c;h=b013f46510b7051e48c009495c76414ad559414c;hp=7bd57e604e589baabed801445d8cd1712410ca96;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=fdbda6486df88be6ac2ba948f21e84c396499535 diff --git a/dsa/dsa_sign.c b/dsa/dsa_sign.c index 7bd57e6..b013f46 100644 --- a/dsa/dsa_sign.c +++ b/dsa/dsa_sign.c @@ -1,7 +1,7 @@ /* dsa_sign.c */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2010 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 @@ -24,8 +24,8 @@ #include "hashfunction_descriptor.h" #include "hfal-basic.h" -uint8_t dsa_sign_bigint(dsa_signature_t* s, const bigint_t* m, - const dsa_ctx_t* ctx, const bigint_t* k){ +uint8_t dsa_sign_bigint(dsa_signature_t *s, const bigint_t *m, + const dsa_ctx_t *ctx, const bigint_t *k){ bigint_t tmp, tmp2; uint8_t tmp_b[ctx->domain.p.length_W+5], tmp2_b[ctx->domain.q.length_W+5]; tmp.wordv= tmp_b; @@ -47,8 +47,8 @@ uint8_t dsa_sign_bigint(dsa_signature_t* s, const bigint_t* m, return 0; } -uint8_t dsa_sign_message(dsa_signature_t* s, const void* m, uint16_t m_len_b, - const hfdesc_t* hash_desc, const dsa_ctx_t* ctx, +uint8_t dsa_sign_message(dsa_signature_t *s, const void *m, uint16_t m_len_b, + const hfdesc_t *hash_desc, const dsa_ctx_t *ctx, const rand_func_ptr_t rand_in){ bigint_t z, k; uint8_t i, n_B = ctx->domain.q.length_W;