Synss / python-mbedtls

Cryptographic library with an mbed TLS back end
MIT License
79 stars 28 forks source link

Changes to PK ECDH API #23

Closed Synss closed 5 years ago

Synss commented 5 years ago

The PR fulfills these requirements

More details in CONTRIBUTING.

I am submitting a …

Description

Other information

Synss commented 5 years ago

@stepheny : I have been thinking about the EC API and this is what I have done. Since I know that you are using that part of the library, would you like to comment before I merge these changes? Finally, I have refactored your tests in 09c965004d07c8fcc72e18ab4e11b41e571b5cf0 and you may want to see whether I understood your code correctly.

stepheny commented 5 years ago

Thank you for informing the API change. Since you decided to use all public properties, I think you could just change them and remove the private ones. I think it's good to do the transition as early as possiple. Having both versions of the same functions at the same time might be confusing. About the tests, I think they are okay. Originally, I've just written some simple accesses to different stages of secret exchange in order to cover the getters and setters. I doubt these simple codes match the ideas of authenticate or attack... Never mind, no matter what it's named it should do the work.

Synss commented 5 years ago

@stepheny

stepheny commented 5 years ago
Synss commented 5 years ago

Thank you for your feedback.