X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=ecdsa%2Fecdsa_sign.h;h=578461b6a67c690459c62f36c056563f8fa01589;hb=33d65e8032f77c1cbec1bc99e898affc96966c3c;hp=6edb836b92a74bb0450cadf54b51ed59033a903a;hpb=56e75f661dfea7104d76421be6059f098d3236d4;p=avr-crypto-lib.git diff --git a/ecdsa/ecdsa_sign.h b/ecdsa/ecdsa_sign.h index 6edb836..578461b 100644 --- a/ecdsa/ecdsa_sign.h +++ b/ecdsa/ecdsa_sign.h @@ -32,6 +32,10 @@ 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_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);