Commit c84c986
committed
Hoist domain separation logic into helper function
This commit introduces a helper function
```
mld_prepare_domain_separation_prefix
```
for the preparation of the domain separation prefix.
This is used both for Pure ML-DSA and HashML-DSA and was previously
done in an ad-hoc manner for Pure ML-DSA.
The helper is part of the external API in order to facilitate
incremental APIs being built atop the APIs exposed by mldsa-native.
A CBMC proof is added.
Signed-off-by: Hanno Becker <[email protected]>1 parent 592d20c commit c84c986
File tree
22 files changed
+350
-286
lines changed- examples
- bring_your_own_fips202_static/mldsa_native/src
- bring_your_own_fips202/mldsa_native/src
- monolithic_build_multilevel/mldsa/src
- monolithic_build/mldsa/src
- integration/liboqs
- mldsa
- src
- proofs/cbmc
- crypto_sign_signature_pre_hash_internal
- crypto_sign_verify_pre_hash_internal
- prepare_domain_separation_prefix
22 files changed
+350
-286
lines changedThis file was deleted.
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
0 commit comments