]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - ecdsa/ecdsa_sign.h
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / ecdsa / ecdsa_sign.h
index 6edb836b92a74bb0450cadf54b51ed59033a903a..d569820172a9c0c3b6aa5e1c1b5821ea07fd486c 100644 (file)
@@ -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
 #include "ecdsa.h"
 #include "hfal-basic.h"
 
-uint8_t ecdsa_signature_alloc(ecdsa_signature_ts, size_t length_B);
+uint8_t ecdsa_signature_alloc(ecdsa_signature_t *s, size_t length_B);
 
-void ecdsa_signature_free(ecdsa_signature_ts);
+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_ */