]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - dsa/dsa_verify.c
new and more compact aes
[avr-crypto-lib.git] / dsa / dsa_verify.c
index d0eb4d7f3a12b5a9a4eccdb36e9b72ad2c08614f..f7a588a383e38fdef75bc7e33c3af3ef755b61ca 100644 (file)
@@ -1,7 +1,7 @@
 /* dsa_verify.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
@@ -22,8 +22,8 @@
 #include "dsa.h"
 #include "hfal-basic.h"
 
-uint8_t dsa_verify_bigint(const dsa_signature_t* s, const bigint_t* m,
-                                 const dsa_ctx_tctx){
+uint8_t dsa_verify_bigint(const dsa_signature_t *s, const bigint_t *m,
+                                 const dsa_ctx_t *ctx){
        if(s->r.length_W==0 || s->s.length_W==0){
                return DSA_SIGNATURE_FAIL;
        }
@@ -54,8 +54,8 @@ uint8_t dsa_verify_bigint(const dsa_signature_t* s, const bigint_t* m,
        return DSA_SIGNATURE_FAIL;
 }
 
-uint8_t dsa_verify_message(const 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_verify_message(const dsa_signature_t *s, const void *m, uint16_t m_len_b,
+                                                 const hfdesc_t *hash_desc, const dsa_ctx_t *ctx){
        bigint_t z;
        uint8_t n_B = ctx->domain.q.length_W;
        uint8_t hash_value[(hfal_hash_getHashsize(hash_desc)+7)/8];