diff options
author | lloyd <[email protected]> | 2012-04-06 15:54:22 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-04-06 15:54:22 +0000 |
commit | 757bf5016ad880961ee3a42f99b7bf2e99ec692a (patch) | |
tree | c957d9dfb836e00e5c60bf479679fa9eea21eff9 /src/constructs/srp6/srp6.h | |
parent | cdde9a171e3fcb164e7946c198ba4d8f9ef486fb (diff) |
Use just 256 bits of secret exponent (recomended value in RFC 5054).
Much faster, especially when using 8192 bit groups as OpenSSL does by
default.
Use BOTAN_DLL symbol visibility macros.
Diffstat (limited to 'src/constructs/srp6/srp6.h')
-rw-r--r-- | src/constructs/srp6/srp6.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/constructs/srp6/srp6.h b/src/constructs/srp6/srp6.h index bf5cb4863..4fd127c70 100644 --- a/src/constructs/srp6/srp6.h +++ b/src/constructs/srp6/srp6.h @@ -1,6 +1,6 @@ /* * SRP-6a (RFC 5054 compatatible) -* (C) 2011 Jack Lloyd +* (C) 2011,2012 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -28,13 +28,14 @@ namespace Botan { * * @return (A,K) the client public key and the shared secret key */ -std::pair<BigInt,SymmetricKey> srp6_client_agree(const std::string& username, - const std::string& password, - const std::string& group_id, - const std::string& hash_id, - const MemoryRegion<byte>& salt, - const BigInt& B, - RandomNumberGenerator& rng); +std::pair<BigInt,SymmetricKey> +BOTAN_DLL srp6_client_agree(const std::string& username, + const std::string& password, + const std::string& group_id, + const std::string& hash_id, + const MemoryRegion<byte>& salt, + const BigInt& B, + RandomNumberGenerator& rng); /** * Generate a new SRP-6 verifier @@ -42,17 +43,17 @@ std::pair<BigInt,SymmetricKey> srp6_client_agree(const std::string& username, * @param password the secret used to authenticate user * @param salt a randomly chosen value, at least 128 bits long */ -BigInt generate_srp6_verifier(const std::string& identifier, - const std::string& password, - const MemoryRegion<byte>& salt, - const std::string& group_id, - const std::string& hash_id); +BigInt BOTAN_DLL generate_srp6_verifier(const std::string& identifier, + const std::string& password, + const MemoryRegion<byte>& salt, + const std::string& group_id, + const std::string& hash_id); /** * Return the group id for this SRP param set, or else thrown an * exception */ -std::string srp6_group_identifier(const BigInt& N, const BigInt& g); +std::string BOTAN_DLL srp6_group_identifier(const BigInt& N, const BigInt& g); /** * Represents a SRP-6a server session |