Permalink
Browse files

Fix constTimeEq function name.

  • Loading branch information...
1 parent c26030e commit 796700ee78464643bb3ae58e8c0ef9f842b5c898 @TomMD committed Dec 13, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 cbits/misc.c
  2. +1 −1 cbits/misc.h
  3. +1 −0 crypto-api.cabal
View
@@ -1,5 +1,5 @@
/* Fast C implementation of a safe string equality test. */
-int c_safeEq(char *x, char *y, int length) {
+int c_constTimeEq(char *x, char *y, int length) {
int ret = 0, i;
for (i = 0; i < length; i++)
ret = ret | x[i] ^ y[i];
View
@@ -1,4 +1,4 @@
#ifndef CRYPTO_API_MISC_H
#define CRYPTO_API_MISC_H
-int c_safeEq(char *x, char *y, int length);
+int c_constTimeEq(char *x, char *y, int length);
#endif
View
@@ -44,6 +44,7 @@ Library
BangPatterns, FunctionalDependencies, FlexibleInstances,
TypeSynonymInstances
c-sources: cbits/misc.c
+ include-dirs: cbits
source-repository head
type: git

0 comments on commit 796700e

Please sign in to comment.