[BACK]Return to schnorr.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/schnorr.h between version 1.1 and 1.2

version 1.1, 2009/03/05 07:18:19 version 1.2, 2014/01/09 23:20:00
Line 27 
Line 27 
 };  };
   
 BIGNUM *bn_rand_range_gt_one(const BIGNUM *high);  BIGNUM *bn_rand_range_gt_one(const BIGNUM *high);
 int hash_buffer(const u_char *, u_int, const EVP_MD *, u_char **, u_int *);  int hash_buffer(const u_char *, u_int, int, u_char **, u_int *);
 void debug3_bn(const BIGNUM *, const char *, ...)  void debug3_bn(const BIGNUM *, const char *, ...)
     __attribute__((__nonnull__ (2)))      __attribute__((__nonnull__ (2)))
     __attribute__((format(printf, 2, 3)));      __attribute__((format(printf, 2, 3)));
Line 40 
Line 40 
 /* Signature and verification functions */  /* Signature and verification functions */
 int  int
 schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,  schnorr_sign(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
     const EVP_MD *evp_md, const BIGNUM *x, const BIGNUM *g_x,      int hash_alg, const BIGNUM *x, const BIGNUM *g_x,
     const u_char *id, u_int idlen, BIGNUM **r_p, BIGNUM **e_p);      const u_char *id, u_int idlen, BIGNUM **r_p, BIGNUM **e_p);
 int  int
 schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,  schnorr_sign_buf(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
Line 48 
Line 48 
     u_char **sig, u_int *siglen);      u_char **sig, u_int *siglen);
 int  int
 schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,  schnorr_verify(const BIGNUM *grp_p, const BIGNUM *grp_q, const BIGNUM *grp_g,
     const EVP_MD *evp_md, const BIGNUM *g_x, const u_char *id, u_int idlen,      int hash_alg, const BIGNUM *g_x, const u_char *id, u_int idlen,
     const BIGNUM *r, const BIGNUM *e);      const BIGNUM *r, const BIGNUM *e);
 int  int
 schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q,  schnorr_verify_buf(const BIGNUM *grp_p, const BIGNUM *grp_q,

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2