mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-12 07:40:30 -08:00
fix(proverif): Incorrect parameter ordering in encaps_/decaps_and_mix
This commit is contained in:
@@ -143,10 +143,10 @@ letfun ENCRYPT_AND_MIX(ct, pt) \
|
|||||||
// TODO: Migrate kems to use binary ciphertexts directly
|
// TODO: Migrate kems to use binary ciphertexts directly
|
||||||
#define ENCAPS_AND_MIX(ct, pk, shk) \
|
#define ENCAPS_AND_MIX(ct, pk, shk) \
|
||||||
ct <- kem_enc(pk, shk); \
|
ct <- kem_enc(pk, shk); \
|
||||||
MIX3(kem_pk2b(pk), ct, k2b(shk))
|
MIX3(kem_pk2b(pk), k2b(shk), ct)
|
||||||
#define DECAPS_AND_MIX(sk, pk, ct) \
|
#define DECAPS_AND_MIX(sk, pk, ct) \
|
||||||
DUMMY(shk) <- kem_dec(sk, ct); \
|
DUMMY(shk) <- kem_dec(sk, ct); \
|
||||||
MIX3(kem_pk2b(pk), ct, k2b(DUMMY(shk)))
|
MIX3(kem_pk2b(pk), k2b(DUMMY(shk)), ct)
|
||||||
|
|
||||||
|
|
||||||
// biscuits
|
// biscuits
|
||||||
|
|||||||
Reference in New Issue
Block a user