summaryrefslogtreecommitdiffstats
path: root/crypto/p224_spake.h
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@chromium.org>2014-12-04 09:15:20 -0800
committerVitaly Buka <vitalybuka@chromium.org>2014-12-04 17:17:35 +0000
commitfb2ccf63152e415e5bb1243b1284ef496cf45c03 (patch)
treec28b73f14c039f883cfdcc5bba3db71e6be68998 /crypto/p224_spake.h
parent82badefaf779ac2baaf67217213a576c06ff0062 (diff)
downloadchromium_src-fb2ccf63152e415e5bb1243b1284ef496cf45c03.zip
chromium_src-fb2ccf63152e415e5bb1243b1284ef496cf45c03.tar.gz
chromium_src-fb2ccf63152e415e5bb1243b1284ef496cf45c03.tar.bz2
Allow to get key from SPAKE2 after the first round trip.
The second round trip is optional and is not the part of SPAKE2 algorithm. Application may want to get key and do verification with usefull payload. BUG=438470 R=agl@chromium.org Review URL: https://codereview.chromium.org/761663004 Cr-Commit-Position: refs/heads/master@{#306844}
Diffstat (limited to 'crypto/p224_spake.h')
-rw-r--r--crypto/p224_spake.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/p224_spake.h b/crypto/p224_spake.h
index 6905ef2..61451a3 100644
--- a/crypto/p224_spake.h
+++ b/crypto/p224_spake.h
@@ -68,7 +68,11 @@ class CRYPTO_EXPORT P224EncryptedKeyExchange {
// The key established as result of the key exchange. Must be called
// at then end after ProcessMessage() returns kResultSuccess.
- const std::string& GetKey();
+ const std::string& GetKey() const;
+
+ // The key established as result of the key exchange. Can be called after
+ // the first ProcessMessage()
+ const std::string& GetUnverifiedKey() const;
private:
// The authentication state machine is very simple and each party proceeds