]> git.ipfire.org Git - thirdparty/strongswan.git/commit
dh-speed: Don't reuse DH object
authorTobias Brunner <tobias@strongswan.org>
Fri, 6 Jan 2023 10:28:37 +0000 (11:28 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 6 Jan 2023 11:13:12 +0000 (12:13 +0100)
commita59a6d4783af11e01af160221420cffdb78d0be3
treeed954fa0e437a4945bb8e22be840e487c7b007d7
parent0c7bfec7af5ac0ebbec03ece027c143156a5821e
dh-speed: Don't reuse DH object

Since the changes to the DH implementations that were merged with
30faf04e92dc ("Merge branch 'multi-ke-backport'"), most implementations
don't support deriving different shared secrets for the same private key
by calling set_public_key() with another public key anymore (some prevent
it explicitly, but reusing DH private keys is not something we want to
support anyway).  So we can't reuse the DH object on one side for every
round.
scripts/dh_speed.c