*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -80,3 +80,4 @@ void AuthCrypt::GenerateKey(uint8 *key, BigNumber *bn)
|
||||
hash.Finalize();
|
||||
memcpy(key, hash.GetDigest(), SHA_DIGEST_LENGTH);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,3 +51,4 @@ class AuthCrypt
|
||||
bool _initialized;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -207,3 +207,4 @@ const char *BigNumber::AsDecStr()
|
||||
{
|
||||
return BN_bn2dec(_bn);
|
||||
}
|
||||
|
||||
|
||||
@@ -94,3 +94,4 @@ class BigNumber
|
||||
uint8 *_array;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -56,3 +56,4 @@ void HmacHash::Finalize()
|
||||
HMAC_Final(&m_ctx, m_digest, &length);
|
||||
ASSERT(length == SHA_DIGEST_LENGTH)
|
||||
}
|
||||
|
||||
|
||||
@@ -46,3 +46,4 @@ class HmacHash
|
||||
uint8 m_digest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -65,3 +65,4 @@ void Sha1Hash::Finalize(void)
|
||||
{
|
||||
SHA1_Final(mDigest, &mC);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,3 +51,4 @@ class Sha1Hash
|
||||
uint8 mDigest[SHA_DIGEST_LENGTH];
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -89,3 +89,4 @@ extern "C"
|
||||
} /* end extern "C" */
|
||||
#endif
|
||||
#endif /* md5_INCLUDED */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user