Browse Source

fix some warns from gcc

master
Mike Hamburg 8 years ago
parent
commit
1e796b2e0e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/per_curve/eddsa.tmpl.c
  2. +1
    -1
      src/per_curve/eddsa.tmpl.hxx
  3. +1
    -1
      src/shake.c

+ 1
- 1
src/per_curve/eddsa.tmpl.c View File

@@ -3,10 +3,10 @@
* @brief EdDSA routines.
*/

#include "word.h"
#include <decaf/eddsa_$(gf_bits).h>
#include <decaf/shake.h>
#include <decaf/sha512.h>
#include "word.h"
#include <string.h>

#define API_NAME "$(c_ns)"


+ 1
- 1
src/per_curve/eddsa.tmpl.hxx View File

@@ -70,7 +70,7 @@ private:
}
if (SUPPORTS_CONTEXTS) {
uint8_t dom[2] = {2, context_.size() };
uint8_t dom[2] = {2, (uint8_t)context_.size() };
update(dom,2);
update(context_);
}


+ 1
- 1
src/shake.c View File

@@ -270,7 +270,7 @@ size_t decaf_sponge_max_output_bytes (
) {
return (s->params->max_out == 0xFF)
? SIZE_MAX
: ((200-s->params->rate)/2);
: (size_t)((200-s->params->rate)/2);
}

DEFSHAKE(128)


Loading…
Cancel
Save