cocagne / pysrp

Python implementation of the Secure Remote Password protocol (SRP)
MIT License
113 stars 42 forks source link

public key of verifier not available before obtaining key of user #39

Closed Fatflo closed 1 year ago

Fatflo commented 5 years ago

In some SRP usages like Homekit protocol it is required to generate the verifier's public key before the user public key. Currently it is necessary to create a Verifier object in order to get the verifier public key and the Verifier object can be created only with the user public Key A as parameter. It would be more flexible (and HomeKit compatible) to require the User public key when calling the Verifier.verify_session() api instead of in the verifier constructor.