diff options
author | Vitaly Buka <vitalybuka@chromium.org> | 2014-12-04 09:15:20 -0800 |
---|---|---|
committer | Vitaly Buka <vitalybuka@chromium.org> | 2014-12-04 17:17:35 +0000 |
commit | fb2ccf63152e415e5bb1243b1284ef496cf45c03 (patch) | |
tree | c28b73f14c039f883cfdcc5bba3db71e6be68998 /crypto/p224_spake.h | |
parent | 82badefaf779ac2baaf67217213a576c06ff0062 (diff) | |
download | chromium_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.h | 6 |
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 |