X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=ecdsa%2Fecdsa.h;fp=ecdsa%2Fecdsa.h;h=4f56711998ce85321a3424f98ae0819583b84ed4;hp=9559417107389c3ef2227f7ee8a13cf6adadcbec;hb=3a9f9d918fb95474996af535c225a7e187d88372;hpb=33d65e8032f77c1cbec1bc99e898affc96966c3c diff --git a/ecdsa/ecdsa.h b/ecdsa/ecdsa.h index 9559417..4f56711 100644 --- a/ecdsa/ecdsa.h +++ b/ecdsa/ecdsa.h @@ -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_ */