-
Notifications
You must be signed in to change notification settings - Fork 134
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
Command line binary #6
Comments
I propose we serialize to a JWK: Public Key{
"kty": "PAI",
"key_ops": ["encrypt"],
"n": "mI0ZcVCsErvAmcm5cFCyiKBdFUAxEs5VYsn9R0Jknlk",
"kid": "Paillier public key generated by pheutil on 2016-01-07",
"g": "mI0ZcVCsErvAmcm5cFCyiKBdFUAxEs5VYsn9R0Jknlo"
}
Private KeyThe private key needs to contain the public key. Another command for the tool could be to extract the public key (similar to {
"kty": "PAI",
"lambda": "mI0ZcVCsErvAmcm5cFCyhw3ZEETBTO1_0IxFFJIMKKQ",
"pub": {
"kty": "PAI",
"key_ops": ["encrypt"],
"n": "mI0ZcVCsErvAmcm5cFCyiKBdFUAxEs5VYsn9R0Jknlk",
"kid": "Paillier public key generated by pheutil on 2016-01-07",
"g": "mI0ZcVCsErvAmcm5cFCyiKBdFUAxEs5VYsn9R0Jknlo"
},
"key_ops": ["decrypt"],
"kid": "Paillier private key generated by pheutil on 2016-01-07",
"mu": "YPRTV75i7AloPJwZY0CQncg6e-o-H9Osbrb4RhLt0Gw"
}
|
|
|
I'm commenting to both issue #6 and #7 here because I'm not sure where to write what. About the command line library:In openssl, they use the command So for the generation of the private key, we could indeed be a bit more explicit but it would be nice not to have a too long command,
Answering the previous comments:
|
I'm happy with |
Current output:
Only the json is printed to stdout, logging is to stderr. A better way to format for github:
|
👍 for using @felixlawrence or @djvis care to weigh in? |
The docs say that
As noted above, the whitelist of acceptable names, as of last year, comprised Is "DAJ" considered 'collision-resistant'? Does this matter? Would it be a sin to be more verbose - although it looks like no-one else is doing that? I don't really have an opinion on this because I lack the knowledge and imagination to see how these choices could make life dramatically easier or more difficult for us or for others trying to follow the standard in the future! |
Actually the only useful thing I'd add here is that there should maybe be some sort of versioning in here so that we could potentially be forwards-compatible if anything ever needs to change? |
…est. Currently will fail due to result having more negative exponent after the multiplication is carried out.
Thanks all for the ideas and feedback. |
To aide testing integration between python-paillier and javallier, add a command line program to:
Initially use a standard encoding scheme.
The text was updated successfully, but these errors were encountered: