summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/jpake/jpake.c
diff options
context:
space:
mode:
authordjm <>2010-10-01 22:54:19 +0000
committerdjm <>2010-10-01 22:54:19 +0000
commit5bf424abe3e333358a0476841d2085fb5870dde9 (patch)
tree03b202b49e2c6367ae5dec12d939ea99c9ca36b3 /src/lib/libcrypto/jpake/jpake.c
parent31f27c0675424c286ead39df16455abf64c6fb22 (diff)
parent2dd8058114e20f1cd7c897166a4ce75ed390ee54 (diff)
downloadopenbsd-5bf424abe3e333358a0476841d2085fb5870dde9.tar.gz
openbsd-5bf424abe3e333358a0476841d2085fb5870dde9.tar.bz2
openbsd-5bf424abe3e333358a0476841d2085fb5870dde9.zip
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/jpake/jpake.c')
-rw-r--r--src/lib/libcrypto/jpake/jpake.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/jpake/jpake.c b/src/lib/libcrypto/jpake/jpake.c
index 577b7ef375..086d9f47e0 100644
--- a/src/lib/libcrypto/jpake/jpake.c
+++ b/src/lib/libcrypto/jpake/jpake.c
@@ -4,7 +4,6 @@
4#include <openssl/sha.h> 4#include <openssl/sha.h>
5#include <openssl/err.h> 5#include <openssl/err.h>
6#include <memory.h> 6#include <memory.h>
7#include <assert.h>
8 7
9/* 8/*
10 * In the definition, (xa, xb, xc, xd) are Alice's (x1, x2, x3, x4) or 9 * In the definition, (xa, xb, xc, xd) are Alice's (x1, x2, x3, x4) or
@@ -134,7 +133,7 @@ static void hashlength(SHA_CTX *sha, size_t l)
134 { 133 {
135 unsigned char b[2]; 134 unsigned char b[2];
136 135
137 assert(l <= 0xffff); 136 OPENSSL_assert(l <= 0xffff);
138 b[0] = l >> 8; 137 b[0] = l >> 8;
139 b[1] = l&0xff; 138 b[1] = l&0xff;
140 SHA1_Update(sha, b, 2); 139 SHA1_Update(sha, b, 2);
@@ -172,7 +171,7 @@ static void zkp_hash(BIGNUM *h, const BIGNUM *zkpg, const JPAKE_STEP_PART *p,
172 */ 171 */
173 SHA1_Init(&sha); 172 SHA1_Init(&sha);
174 hashbn(&sha, zkpg); 173 hashbn(&sha, zkpg);
175 assert(!BN_is_zero(p->zkpx.gr)); 174 OPENSSL_assert(!BN_is_zero(p->zkpx.gr));
176 hashbn(&sha, p->zkpx.gr); 175 hashbn(&sha, p->zkpx.gr);
177 hashbn(&sha, p->gx); 176 hashbn(&sha, p->gx);
178 hashstring(&sha, proof_name); 177 hashstring(&sha, proof_name);