X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=ecdsa%2Fecdsa.h;h=4f56711998ce85321a3424f98ae0819583b84ed4;hb=d72d6fbe7abbd26958657c877bc0a3dbef8148ce;hp=9559417107389c3ef2227f7ee8a13cf6adadcbec;hpb=39983bbdb6dbbe196ccc7075d7664fca3168f695;p=avr-crypto-lib.git 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_ */