From e66905aaf6cabbf9897aee23ce791ede0c063730 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 19 Dec 2024 14:25:12 -0700 Subject: [PATCH] fix for gencertbuf script and add dilithium public key --- .../bench_dilithium_level2_pubkey.der | Bin 0 -> 1312 bytes .../bench_dilithium_level3_pubkey.der | Bin 0 -> 1952 bytes .../bench_dilithium_level5_pubkey.der | Bin 0 -> 2592 bytes certs/dilithium/include.am | 5 +- gencertbuf.pl | 18 +- wolfssl/certs_test.h | 618 +++++++++++++++++- 6 files changed, 628 insertions(+), 13 deletions(-) create mode 100644 certs/dilithium/bench_dilithium_level2_pubkey.der create mode 100644 certs/dilithium/bench_dilithium_level3_pubkey.der create mode 100644 certs/dilithium/bench_dilithium_level5_pubkey.der diff --git a/certs/dilithium/bench_dilithium_level2_pubkey.der b/certs/dilithium/bench_dilithium_level2_pubkey.der new file mode 100644 index 0000000000000000000000000000000000000000..af50c28a2f318c4e6e31bbdd3efb35377b6290c2 GIT binary patch literal 1312 zcmV+*1>gGW1tblCawS#tTf!5Ihg~t5FCD2t2?chiw_c1y;$(TC>>nhy$OT)$7_hg` zj9_PLfkY>^4*i?M%Th7=$ux~39tWM4YGZ?3*Mlv8NMw1+w4b5^w}u@K$N6jrz%^<# zd3?AJ?U+#eQQ$U2OvW{$yH&7UIS2wEHC$G0F1ha^CWnWGiZZpQXmC3H4IxO8qbb2E zIOQfWA41*>CI203wBTJW&qURI#P*f)22X>CogV8P2}NROJ^xWh=)9W)AIEZK&ZvyS zpu)Xdd>0mra{95o-$~Y?0A;>{=V-_0yuzg0s?6#^Qh!#oXdjZ656;xkhfGRywQSUB zRTW3vlz-AxUb2wFN96V1i<`z>P?ccd@TX4T%|Qw8vptYpcU0`2U5e)kT*+7r&_XrR z6j?ZFt@*XTijFhbUV2r~Qx!l?#fI09UoTaH!cP|E>KwfPULQF|a8!CaCl(qjY|^)Y z)6tzJS?%UgvGT2cQFs(98Lnh<57-!aj%J9{q@%-jAUX^s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level5_pubkey.der new file mode 100644 index 0000000000000000000000000000000000000000..e3b1f10e645865bc60cca64cf2672e1ee396b2aa GIT binary patch literal 2592 zcmV+*3g7kbNqI*V#EPkOD)2UxT#+1I|15*@iv;{#WW7mq&CHolUn>?myO_YIX%3Z{ z3!-fPY}?4E2}W#?P^5J*_mHeHw%sAG#`*s4##^Y53NFw>tEfDUzxPDF4bSvw{1#{T zIY?ht(dQpYfKa|v(YMLcGRFvv-YhZp9mlM*dDlxDBZ&&!jzmEeD47$pCZ-O9V5*IL zBNMu8D3Df!p(BfdAeVe*KkZ%63Eq}Hye6Vw(AixJOK~NwR7$IINZ*U>jmlL_co{(qERf_EF z3LcQ$Kd?>F80t^UT@_5YHJdafFa}c>@V+NDvjl3rzo$9wsgDkr#r2;?C6meW_A8E( z1_3>R81n4#1x&3=%b29KVIbOpq5G0duZM4L(pT)wl(TuiS%?>b&WcygSFS#SfiHt$ z*!gH7=W<)tfK_N+XB7;K+)u-aHax7a7G50sXmo0;XxLenEi+=|y|cGXh&8zFvKEDx z2yt;aehgC<+BoGX37pwR>}cAJ(5(lQ^L^sh$fUrulAPn;Sr{S zJwrbqy!M#B{|1I(C)|-#)ck0J=rum>lvyY*-rWOWX2D5U-MrNbXEgDq3Rje60xVKP za67@8|JrZ4R7U~YC*(*>G+vJu$qRJZeIh^Bw_VnD0F6#~bB5O2 zDrKwRu<8-5-?~HFs0#Z8IDsppDg2dlnhb27&D_rl3>ZOg9i#RVOcU|~#!#7tbEo-! zgnvu`&MqN#ju(1|Z-M5(Ql+3gR6Ojkog6#tpY- zsJM3acUz5emOc}|cKUm_f?wyIR1O6ipQJ*iw38zSSwpDkT>Kc9+pU^_3i2ROticmL zmw6@7JZHjfZWpd@hHse3tP`JyWIau9 zptCu~Xd9>NJ`Zchq~ahabw3Ff{~FAv#BIX-!wWZK|CVA zm^FGQe*W=qStm7f&UC7@a)PMhfqHAoGo{+1W6Ca&12XJm+fsWL`~fX65+3=Zav?l* z3}Kvpa|CfgMO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