forked from openssh/openssh-portable
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mpint representation for shared_secret when deriving keys in pure…
…-PQ key exchange, and some other bug fixes; fixes #119 (#120) * Use mpint representation for shared_secret when deriving keys in pure-PQ key exchange, as required by spec; fixes #119 * Increase MAX_PROP to 160 MAX_PROP limits the number of kex algorithm proposals considered from the server by the client. With the liboqs options exceeding this number, an unfortunate ordering in the server's proposal can cause OpenSSH to pick the wrong kex in violation of the RFC. This change increases MAX_PROP to 160, which will allow for a longer list including all liboqs options. * ssh-keygen: When generating a key pair for an OQS hybrid signature algorithm, always use the curve specified by the key type If ssh-keygen is called with the -t parameter using the short name for one of the OQS hybrid algorithms, P-256 incorrectly always ends up being used for the ECDSA part of the key. * Set the error return code in kex_kem_generic_{enc,dec} if the call to OQS_KEM_{en,de}caps fails r is uninitialized otherwise. * Enclose one-line if bodies in braces in kex_kem_generic_{keypair,dec,enc} * Correct inconsistent indendation in newly-added blocks
- Loading branch information
1 parent
0c5eac6
commit e9b0f6f
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters