Commit 171f697
committed
Merged PR 10593466: Clean up GHash assertions and SAL annotations based on feedback
Another follow up to !10578579, this PR removes unnecessary assertions and SAL annotations from `GHashAppendData*` to be more consistent with other SymCrypt functions. It turns out that passing in data that aren't a multiple of the block size can sometimes be convenient because it allows one to make calls to the function unconditional. I added a comment at the function definition to indicate that data beyond multiples of the block size are ignored.
Tested: local unit tests (AMD64 noasm), CI pipelines1 parent 60abd9e commit 171f697
3 files changed
+31
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
| |||
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
148 | | - | |
| 145 | + | |
149 | 146 | | |
150 | 147 | | |
151 | 148 | | |
| |||
244 | 241 | | |
245 | 242 | | |
246 | 243 | | |
247 | | - | |
| 244 | + | |
248 | 245 | | |
249 | 246 | | |
250 | 247 | | |
| |||
576 | 573 | | |
577 | 574 | | |
578 | 575 | | |
579 | | - | |
| 576 | + | |
580 | 577 | | |
581 | 578 | | |
582 | 579 | | |
| |||
710 | 707 | | |
711 | 708 | | |
712 | 709 | | |
713 | | - | |
| 710 | + | |
714 | 711 | | |
715 | 712 | | |
716 | 713 | | |
| |||
844 | 841 | | |
845 | 842 | | |
846 | 843 | | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
851 | 848 | | |
852 | 849 | | |
853 | 850 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
936 | 941 | | |
937 | 942 | | |
938 | 943 | | |
939 | 944 | | |
940 | 945 | | |
941 | 946 | | |
942 | | - | |
| 947 | + | |
943 | 948 | | |
944 | 949 | | |
945 | 950 | | |
946 | 951 | | |
947 | 952 | | |
948 | 953 | | |
949 | 954 | | |
950 | | - | |
| 955 | + | |
951 | 956 | | |
952 | 957 | | |
953 | 958 | | |
954 | 959 | | |
955 | 960 | | |
956 | 961 | | |
957 | 962 | | |
958 | | - | |
| 963 | + | |
959 | 964 | | |
960 | 965 | | |
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
964 | 969 | | |
965 | 970 | | |
966 | | - | |
| 971 | + | |
967 | 972 | | |
968 | 973 | | |
969 | 974 | | |
970 | 975 | | |
971 | 976 | | |
972 | 977 | | |
973 | 978 | | |
974 | | - | |
| 979 | + | |
975 | 980 | | |
976 | 981 | | |
977 | 982 | | |
| |||
0 commit comments