-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add Key Exchange Agreement Interface #1882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
retest this please |
I fixed the code in the docs, all looks good on that front now |
ec076a6
to
691fdc9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be separate from the regular exchange_algorithm_supported
function?
I added a ECDHnoKDF KeyDerivationFunction class, let me know what you think about it. |
1 similar comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone really needs the raw output they can always write a NullKDF very
easily.
On Sat, May 16, 2015 at 11:38 AM, Alex Stapleton notifications@github.com
wrote:
In src/cryptography/hazmat/primitives/asymmetric/ec.py
#1882 (comment):@@ -252,6 +264,28 @@ def init(self, algorithm):
algorithm = utils.read_only_property("_algorithm")+@utils.register_interface(KeyDerivationFunction)
+class ECDHnoKDF(object):Having spoken with @alex https://github.com/alex I think it might
actually be better to just leave this functionality out entirely until we
have a clear use-case for it. How do you feel about that @simo5
https://github.com/simo5 ? Are you aware of any cases where you really
need access to the raw ECDH output?—
Reply to this email directly or view it on GitHub
https://github.com/pyca/cryptography/pull/1882/files#r30462024.
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is needed mostly for tests, I am not sure anyone should really use this w/o KDF, so I am ok leaving it out of the official API and just adding one in tests.
Current coverage is
|
As requested by @reaperhulk splitting this PR in 2 parts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a .. versionadded:: 1.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type is this?
This should also describe what the return value is.
Signed-off-by: Simo Sorce <simo@redhat.com>
Add Key Exchange Agreement Interface
Adds Key Exchange interface
Implements ECDH KEy Exchange mechanism.
Tests ECDH w/o Key Derivation