diff options
author | marius eriksen <marius@cvs.openbsd.org> | 2005-05-28 01:58:13 +0000 |
---|---|---|
committer | marius eriksen <marius@cvs.openbsd.org> | 2005-05-28 01:58:13 +0000 |
commit | 2aaee4efb4b0f3627c1815010311e344880f11b9 (patch) | |
tree | af85e6f93833af5f149063504420745ea1f0e0ec /regress/usr.bin | |
parent | 010931b7acab26046e0adaef4808f43f0a87050f (diff) |
import regression tests for gzsig.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/gzsig/Makefile | 7 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/file1 | 4 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/file2 | 10 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/file3 | 6 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/gzsig.sh | 50 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-dsa | 12 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-dsa-pass | 15 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-dsa-pass.pub | 1 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-dsa.pub | 1 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-rsa | 15 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-rsa-pass | 18 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-rsa-pass.pub | 1 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/ssh2-rsa.pub | 1 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-dsa | 12 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-dsa-pass | 15 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-dsa-pass.pub | 17 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-dsa.pub | 19 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-rsa | 15 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-rsa-pass | 30 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-rsa-pass.pub | 19 | ||||
-rw-r--r-- | regress/usr.bin/gzsig/x509-rsa.pub | 14 |
21 files changed, 282 insertions, 0 deletions
diff --git a/regress/usr.bin/gzsig/Makefile b/regress/usr.bin/gzsig/Makefile new file mode 100644 index 00000000000..176397ece8f --- /dev/null +++ b/regress/usr.bin/gzsig/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2005/05/28 01:58:12 marius Exp $ +# $Id: Makefile,v 1.1 2005/05/28 01:58:12 marius Exp $ + +regress: + @sh ${.CURDIR}/gzsig.sh + +.include <bsd.regress.mk>
\ No newline at end of file diff --git a/regress/usr.bin/gzsig/file1 b/regress/usr.bin/gzsig/file1 new file mode 100644 index 00000000000..398e0224541 --- /dev/null +++ b/regress/usr.bin/gzsig/file1 @@ -0,0 +1,4 @@ +Oh, I am a C programmer and I'm okay + I muck with indices and structs all day +And when it works, I shout hoo-ray + Oh, I am a C programmer and I'm okay diff --git a/regress/usr.bin/gzsig/file2 b/regress/usr.bin/gzsig/file2 new file mode 100644 index 00000000000..9b39bb72dbe --- /dev/null +++ b/regress/usr.bin/gzsig/file2 @@ -0,0 +1,10 @@ + THE WOMBAT + +The wombat lives across the seas, +Among the far Antipodes. +He may exist on nuts and berries, +Or then again, on missionaries; +His distant habitat precludes +Conclusive knowledge of his moods. +But I would not engage the wombat +In any form of mortal combat. diff --git a/regress/usr.bin/gzsig/file3 b/regress/usr.bin/gzsig/file3 new file mode 100644 index 00000000000..5c201ace4c9 --- /dev/null +++ b/regress/usr.bin/gzsig/file3 @@ -0,0 +1,6 @@ +#define BITCOUNT(x) (((BX_(x)+(BX_(x)>>4)) & 0x0F0F0F0F) % 255) +#define BX_(x) ((x) - (((x)>>1)&0x77777777) \ + - (((x)>>2)&0x33333333) \ + - (((x)>>3)&0x11111111)) + + -- really weird C code to count the number of bits in a word diff --git a/regress/usr.bin/gzsig/gzsig.sh b/regress/usr.bin/gzsig/gzsig.sh new file mode 100644 index 00000000000..a5f3b1c064d --- /dev/null +++ b/regress/usr.bin/gzsig/gzsig.sh @@ -0,0 +1,50 @@ +#!/bin/sh +# +# $OpenBSD: gzsig.sh,v 1.1 2005/05/28 01:58:12 marius Exp $ + +set -e + +# TODO: add ssh2 + +KEYS="ssh2-rsa ssh2-dsa x509-dsa x509-rsa" +KEYS_ENC="ssh2-rsa-pass ssh2-dsa-pass x509-dsa-pass x509-rsa-pass" + +# Clean up from last time. +gunzip *.gz >/dev/null 2>&1 || true + +for key in ${KEYS}; do + echo "===> $key" >&2 + gzip -f file* + gzsig sign -v $key *.gz + gzsig verify -v $key.pub *.gz + gunzip *.gz +done + +for key in ${KEYS_ENC}; do + echo "===> $key" >&2 + gzip -f file* + # SSH2 keys require longer passwords + if [ "$key" != "${key#ssh2}" ]; then + pass=asdfg + else + pass=asdf + fi + gzsig sign -v -p $pass $key *.gz + gzsig verify -v $key.pub *.gz + gunzip *.gz +done + +echo -n "Generating random data..." +dd if=/dev/urandom of=rand bs=1024k count=2 > /dev/null 2>&1 +echo "done." + +for key in ${KEYS}; do + echo "===> $key" >&2 + gzip -f rand + gzsig sign -v $key < rand.gz > rand2.gz + gzsig verify -v $key.pub < rand2.gz + rm -f rand2.gz + gunzip *.gz +done + +rm -f rand diff --git a/regress/usr.bin/gzsig/ssh2-dsa b/regress/usr.bin/gzsig/ssh2-dsa new file mode 100644 index 00000000000..d31ef5fb716 --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-dsa @@ -0,0 +1,12 @@ +-----BEGIN DSA PRIVATE KEY----- +MIIBugIBAAKBgQCciBbiWW+MH1sOqD9XjdXH2/6K681SrWSSUN57ATAjlD48pnfl +EyJS6+3kG+JcjlWB1VXkwQX9E7Um1808DMtQjUXVV02xVvb0gRGsHH47JW5UQYVp +TAb2Mua3L03FHHSPilCkQ0QpCZewoYunFdwbgKxWQyFonzYjOqagHPc5rQIVAMjo +bBODFDdpJd6Zpw4ZS2mkbSsJAoGAPn4WJRtpuH+zVP+V905KYbAdzDsLNoBso/Ym +RtPRpI0vVmw1ocw+aQQa4eaZi8YPab5nHA6XvaTrghwjOAe3ShSsGRRtO3UQ7+Do +8ZSVT7bETVR05OJnqr/+sqi+uHwuUroWNkSQoU6RsBSGfCF0hZsz7dUml7rocl0K +BNuC8LICgYApnQEQrtjTrGo3i3C09JAIkMTJqD39k90G94mFruwQXiNxriV90r8+ ++sm/HB6X4/OzeIQva54af/qZZrhhO5fMjJk96esfUuYnOyiMUb0rUwfCR8A7CyZj +XESPAKSJ7NTfm+p5vLA60/RAh8ZdsWfbz/5rU91ve8Z/rQ1qxHueZQIUTC6VYBZq +1KyrbdpGnsAEI138eIc= +-----END DSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/ssh2-dsa-pass b/regress/usr.bin/gzsig/ssh2-dsa-pass new file mode 100644 index 00000000000..ebe3e310f46 --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-dsa-pass @@ -0,0 +1,15 @@ +-----BEGIN DSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,44626137B4E044E4 + +sS4Iv6hMSa7vDWoFKQrI2uPf9gGX4X7PW60RHNo2nLNCHVEezICB7I2oSf/cOiC3 +hNkqj7OYI04NFmvi4hJzZjx0OuCJ+fwLu00YEUvi2GMHytfzd2s0p/Qz4lQj+eEc +SMPDr80rpl5X5ki+BB00r+z2zlwpcswS1tqh6T1eGOaTw+xiR9Ocx9EQmTCrC6v0 +4szZ0vFij/nZkDZNSDMuThMH954okv/fR7J0tbSkbY1xkN1YnVdZ3ZESO51B/hxm +JJ0qKQGYtrB6CWaklNtfzQsXqSd0hxSA6caWQP8X2Bvi0/ZSm/1UzyIcnWhmWO8V +c0xgk+ONkPXwxGch+z7Ghnd8JUgC0sItQVIgx2Ig/YWe8z8VT9frrpQUHfB/IoZc +UjDLqJY46IZHehljGN19keiYoWjJ2SMULXdhk3jYch546A3dJiXbMCp1PZps8QSV +v0BjpHfWll1IFtzWE4RRmiRh8AhzaYthBsiBXg6ovMBiQAqIRnRv11YoOk0SFHw9 +UwnBDwr+LkAgJ0zUIVlHktul2xKGkv+AgThVFC+ofR7QTRR4SYg6e4M5/0YrZVim +6KCeWSdkzAyY7+af/frMkQ== +-----END DSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/ssh2-dsa-pass.pub b/regress/usr.bin/gzsig/ssh2-dsa-pass.pub new file mode 100644 index 00000000000..541bf195684 --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-dsa-pass.pub @@ -0,0 +1 @@ +ssh-dss AAAAB3NzaC1kc3MAAACBALglIA7oDKJQ4R1qQsQqbsfv8DHOwZI5fsMMMc2WWPTopnIeAyUfyeK5/3FjbOUiJcPtK+gsPh/48bJhGTmY45xVjf55WWh2bMPfJujlCQg2SzWdeDVWckBasPJSvVkOU1+ImRh0vBi3TccE117kGEyiGL/Xy3Q7mFFiD6VIGVZXAAAAFQCYdaaMrldTqrKQnzqqmpPrNbk0sQAAAIEAmtM52S4JrrtM78nQaVA2uftZxBiQ2tcCQR0IXEvtwj0AX722psrzsrQiLVS6At44oHOWMX8tIN3dhgw1D8NGx+W0i5ikyq3Zi/f48DiLEXlbUmJA3YfFyVSKDs1md2sjlLlq5Zn3Kd+sN1wsz0DKoJI4QMH8Zwo9zEQ+8V7UfsAAAACAAdyJgFXuwjxL0FUve7hqiJDs7gu54bKPOn2aolnHViCQk5uBaRdn64wCCwgck8T2WYyF6ukRFPCgX9hZwnoaSkeVxlJP8h+RQUQnpUYSKj9Vd8k+DIFZ3Zjc/3zeIWihjvnccf+gFig7xnt4NNAzmRq8/dydvaCcYhyYtht8J48= marius@echo.crockster.org diff --git a/regress/usr.bin/gzsig/ssh2-dsa.pub b/regress/usr.bin/gzsig/ssh2-dsa.pub new file mode 100644 index 00000000000..427e7bbdf3e --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-dsa.pub @@ -0,0 +1 @@ +ssh-dss AAAAB3NzaC1kc3MAAACBAJyIFuJZb4wfWw6oP1eN1cfb/orrzVKtZJJQ3nsBMCOUPjymd+UTIlLr7eQb4lyOVYHVVeTBBf0TtSbXzTwMy1CNRdVXTbFW9vSBEawcfjslblRBhWlMBvYy5rcvTcUcdI+KUKRDRCkJl7Chi6cV3BuArFZDIWifNiM6pqAc9zmtAAAAFQDI6GwTgxQ3aSXemacOGUtppG0rCQAAAIA+fhYlG2m4f7NU/5X3TkphsB3MOws2gGyj9iZG09GkjS9WbDWhzD5pBBrh5pmLxg9pvmccDpe9pOuCHCM4B7dKFKwZFG07dRDv4OjxlJVPtsRNVHTk4meqv/6yqL64fC5SuhY2RJChTpGwFIZ8IXSFmzPt1SaXuuhyXQoE24LwsgAAAIApnQEQrtjTrGo3i3C09JAIkMTJqD39k90G94mFruwQXiNxriV90r8++sm/HB6X4/OzeIQva54af/qZZrhhO5fMjJk96esfUuYnOyiMUb0rUwfCR8A7CyZjXESPAKSJ7NTfm+p5vLA60/RAh8ZdsWfbz/5rU91ve8Z/rQ1qxHueZQ== marius@echo.crockster.org diff --git a/regress/usr.bin/gzsig/ssh2-rsa b/regress/usr.bin/gzsig/ssh2-rsa new file mode 100644 index 00000000000..87d56ad56d0 --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-rsa @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICWgIBAAKBgQDEI4gjO9Ormd3RedJeFbUWqnvIANWXGHs5GJa0gL6BNmf5A+C0 +qEwjNkQChKQfvlquBMaphIFbVEFp/tgRYq1BNOrS6ihRL4ZUbnRFY4zR3/+hrSRR ++Njdaz8iN1uKUTRTfeXIE9akRsjPcnshWij0e9J0Qu40V5nzlWM0Hi+7twIBIwKB +gGTfEtBKp1+Q9bwwBcn8iQRXrV+LZog4eeLZchOv7PH+uSD6rhPERGnhZM4YVGgY +wOvH8SP7ALKgXCfiJfpQAVPT9WYrwct8x/cRpF/4Bc0eo/wrQ43H0gfrwTX5D9YL +0ntD+9PYEP+kdQ1Db9WQGvSnbVhPiE14cxKnk9d9dvpLAkEA/OV3Y5wG7t+hZjI/ +IQfFn18TJMKVObga4+Lf4Yg2sydo0okTGkUMQdFwp3088b2FeMXIpDj8pyHYnlEj +hyqoMQJBAMaLv4bMWwbo/UmCaBkkby+3B8J607qWlq6555w0iL/zpacr7mOpbgxM +qI75xSWMWmgp1TzzS7gKIVvkX1vzEGcCQF3u1JK2S7fPZ9WAYJc9ZqjozJigC4p3 +lPWOyC8yl/lmaMM6OkuV/T0Epi+U6sAwc2dfZ8f36NBdB1C/DTI0alsCQBaw4rBR +3oRyZhcHlt5NTokcO2au86BLuXMN7pWCWMV67lw/iPVycvoXY7iRkt+4RNi0UuJk +8rXyh3g3W1r3NRMCQQCMW+tjporzkndBUlMnFbnsl7j4cGk3Q7L3oK6MovQvpSMI +i2paM3tWug1ZkMkDUxaEKiAUGva8cb503/9i4gIN +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/ssh2-rsa-pass b/regress/usr.bin/gzsig/ssh2-rsa-pass new file mode 100644 index 00000000000..be944eb35df --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-rsa-pass @@ -0,0 +1,18 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,50B5F719BDFC6994 + +zqFlCxorA3kFcOkb7SaTuHC8UvkkPSDSSlhFcfdFDbDPnEHcgJGrPukUftEdVUQX +UzPit5JKRtcRdzMAvkzNYMvP05VpVSjMyvfArIOGF23FuiYuuD4tFwNxJPK2aWHx +FY7iSdLtyBd2M6LMPP6KkSESxZz0Hz/2N4mvo/i9rRXYP3E8yKWrbsuQrKe05bav +998Eh+4/FKOBITgaZcsKuSA0JHgiPVRx72no4K5SuQ1cyBfWH69f+py7QmYW9AXQ +f02L+qMhXUJNL+NyfTCBYYpJGX2aATCe3K2wMsx9cLQsnx7RfEuZ8BvqZCl6gRpr +p4c+WteNJWPh30ErpDkHJ7lMUA1k8jBVw1SszNWUUCBuu7dALmaFp1/YgB86UVG5 +8s0KTxcJiTfLHMMazEFhL+WyTQITQ3z5UxqDRj+LP5CPcgcMZliJnH8kXg6D/m6+ +bSRUAhT77nA7gb63buTksGCNgrbeBAEj69nv+y/elfkMilVducQLbP6EeT4dC5M7 +xb/00ckpDYhtl6r9FKA8casrGzQr62Qsvcesag9DehZvlzUk8jMd6/wOsOw21Hy8 +BR0oDhfZLiCBt6eHKdJCTWMuRJohZVfghxTJ+ol2QQDxZHGIN9r/TEJLUiI8C5ai +Wk95k9+9hiafUetaLb+qHRPmVtIDXSqNgSxhmM80h1r4iQQ93ruuexTt/YJDB+0u +jY9yyudnI4lJoAE6WMfUnIazlqkhD4idAEkfn/v6QTjRs6PkyO41x2byMK4DPZW5 +6HhgaCd/yyBRRFvO7FPJEj0X505BK+KetNyqIQI8v1o= +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/ssh2-rsa-pass.pub b/regress/usr.bin/gzsig/ssh2-rsa-pass.pub new file mode 100644 index 00000000000..a1fc5a17baf --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-rsa-pass.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAu8X11x6Db5pDS7T7tgPnh4/lc1/pa7Dh8Mgxo7IEV7QzgEf2TjTlAmpvWHD4J1RLDYNELhzyE/cF78llNTUxgQwiTmK/dN216i+zJbb8RjBEB3AipiAnJVF4MDcMBFUsGSgFkeUArR2TUSH+e0lJ3GuzsgDfNUJBacYBGt/ecac= marius@echo.crockster.org diff --git a/regress/usr.bin/gzsig/ssh2-rsa.pub b/regress/usr.bin/gzsig/ssh2-rsa.pub new file mode 100644 index 00000000000..ddbf367e9ae --- /dev/null +++ b/regress/usr.bin/gzsig/ssh2-rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAxCOIIzvTq5nd0XnSXhW1Fqp7yADVlxh7ORiWtIC+gTZn+QPgtKhMIzZEAoSkH75argTGqYSBW1RBaf7YEWKtQTTq0uooUS+GVG50RWOM0d//oa0kUfjY3Ws/IjdbilE0U33lyBPWpEbIz3J7IVoo9HvSdELuNFeZ85VjNB4vu7c= marius@echo.crockster.org diff --git a/regress/usr.bin/gzsig/x509-dsa b/regress/usr.bin/gzsig/x509-dsa new file mode 100644 index 00000000000..55cb05aa28c --- /dev/null +++ b/regress/usr.bin/gzsig/x509-dsa @@ -0,0 +1,12 @@ +-----BEGIN DSA PRIVATE KEY----- +MIIBuwIBAAKBgQDzr1+m+lDe1ZDznY8GJRcImVl0cfhk0G91K6l1r+3ftksv8YaT +dnKuz8ObSiqlsCNMfIybW3uIYx71IugxbjLonHE49PJRiKhdcJUvlrksLQzncwuV +I4kiElw4cq0AslpcPEJt8UDFM5SpfW9bX1TA95KRwBCPTNc8xoLD+JYBswIVAOIq +U0aSdFw4PYIeQhXZgk/hKEinAoGAfAdU59EBrer7YL348cLEZhSshWxL2RXA+6v7 +ac7rp0/Wb41uqfQMyNIyW5PJiRgT1pMhOsPb5jmcuBbty/05iSk5G8dW8wNCHk87 +4giD5o5u9pmnCxv07UOV+hmg9s9ycrFW0AHOVjDVnBkhfKvHH1Fw0xB6vIH8cxy9 +dCCPWGwCgYAyA+Vk5i2LXSMPb/k9NjM7TSCfxlcGKlAqlj1oHWV2BnsRFEq5BoZD +0c2uplWvrGNroRgNOQsYMPxp6h3+cbv1XwA064GrxwgwU6J/zVm2uYig+qoyYhSt +PUecFmwWpFIhCfwuuaAGopL2SpVAIE4geJcE0m2HCAAa74yIh16hZwIVANMEYw+o +mU9yKW0GZQZ/ow9fzo9i +-----END DSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/x509-dsa-pass b/regress/usr.bin/gzsig/x509-dsa-pass new file mode 100644 index 00000000000..9de1b26fc70 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-dsa-pass @@ -0,0 +1,15 @@ +-----BEGIN DSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,C0D4DFFF67A910A2 + +aPwJ2JdDm5ToSCgDgub+RCDXKJWIlc8f3Rpaf0mHdoqR7WokV1fnRtcWYNTuSodx +YnQSbMv9eOKJFf1JOqKrMG6xrNI/fU/GvcwE391PGuET+P7+7Ua+zjcnoSDU3x6P +PK0q11cCu3hZvpL3YcJy6vgfWUsWfO08/VDjOcbTUiGs4G7mO3R4yQptI3Y+fwOf +0OPH02DWxOxS9353OiuPvBXyJE0+bHKVFBxf/mV5WVNtOccvqKL4qq9cGJ3mB8so +wIdP58u4bzHrnVh7Z1pwgp/CS6O1LLIfYcw64HA7x1i9TA4KXQN2Z+06aWz844n9 +ERmFoQpBobD85hbp5lfTvKhg0fN1bec411LagiHOJJl6QYsycWPF2ar0ynlWBP43 +ni/0F9I96uQGT/xo944Qk9N6nvvscBl8yBdt0A4LNll7z25ctCCltgtM+0ksY/HG +h/Vmc+u7zUHda/umZkMqLgf7boPmrcpHyubekIB+Tj/TFr5XXzcdG+ne/uwHN72Q +lSl9+b1r8ZTwhDiCszWe37XfLE39LZlYcowFO8eTGXjJmJk5n9JH8B15pxW7v9h7 +BlWdImU/TkxzRPM1gvox4g== +-----END DSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/x509-dsa-pass.pub b/regress/usr.bin/gzsig/x509-dsa-pass.pub new file mode 100644 index 00000000000..172351a2034 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-dsa-pass.pub @@ -0,0 +1,17 @@ +-----BEGIN CERTIFICATE----- +MIICujCCAnigAwIBAgIBADALBgcqhkjOOAQDBQAwQjELMAkGA1UEBhMCVVMxCzAJ +BgNVBAgTAk1JMQswCQYDVQQHEwJBMjELMAkGA1UEChMCeW8xDDAKBgNVBAMTA2J5 +ZTAeFw0wMTA3MTAwNjMwNDBaFw0wMTA4MDkwNjMwNDBaMEIxCzAJBgNVBAYTAlVT +MQswCQYDVQQIEwJNSTELMAkGA1UEBxMCQTIxCzAJBgNVBAoTAnlvMQwwCgYDVQQD +EwNieWUwggG3MIIBKwYHKoZIzjgEATCCAR4CgYEAp9UP87glkj3vh4KVCGgySs+A +KSpHYN8EQH7aWKePutKQlVTTSB02lmYj92Vb1XFLpo1M3QdKjbCpJgU9v+WWPvf5 +U5kfQ9rpqyqoUtCdk88azyKQYZJK2A2gRAa6BMDGUWH0YcSF6q5/MboZ/B2Pzn/j +H9ykyv3rR0gpRh6v2McCFQCTj4NTYqeUWLsnK4XOrsZyEiFjrQKBgDTu/x8CRhVo +7V9ZhS11SU/PTzzTmJBFsXf33k45gb5To3L9hVqt7qfhSiEImsWxVUtXu1ckAUQW +svzahsSnGd4zo8tmKStRbNYqEXFCkDivB/CDdBweYclIs3rhB4zeezFu/x//xY6T +JyERnxVh17ZY9PGE0nE0mEbJmvtvKivjA4GFAAKBgQCGjriTb+54KiD8FXypZ09+ +PRDDm1eqNnC5mLAOweKQAmgeP8ZDlvBlhfH4WPwKnZZVqZv9eW5/GfUKCxM9oIdK +0qSl3yl4DCchl3yDzCAJtXTiSRUmI7wJZVdw/2+6Tcu+hXFx8lxFfxsOOKL2r6FE +wKoPfoMhHRBh1MZ6K/A2ODALBgcqhkjOOAQDBQADLwAwLAIUJdS9UrFn80FF5BIg +pdftVEKOleQCFDCMhVcHzhDNr1U5IPxJhw1rszih +-----END CERTIFICATE----- diff --git a/regress/usr.bin/gzsig/x509-dsa.pub b/regress/usr.bin/gzsig/x509-dsa.pub new file mode 100644 index 00000000000..98f50585f31 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-dsa.pub @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDBDCCAsGgAwIBAgIBADALBgcqhkjOOAQDBQAwZzELMAkGA1UEBhMCVVMxCzAJ +BgNVBAgTAk1JMRIwEAYDVQQHEwlBbm4gQXJib3IxKTAnBgNVBAoTIHNtYXNoIHlv +dXIgaGVhZCBvbiB0aGUgcHVuayByb2NrMQwwCgYDVQQDEwNmb28wHhcNMDEwNzEw +MDYxMTQ3WhcNMDEwODA5MDYxMTQ3WjBnMQswCQYDVQQGEwJVUzELMAkGA1UECBMC +TUkxEjAQBgNVBAcTCUFubiBBcmJvcjEpMCcGA1UEChMgc21hc2ggeW91ciBoZWFk +IG9uIHRoZSBwdW5rIHJvY2sxDDAKBgNVBAMTA2ZvbzCCAbYwggErBgcqhkjOOAQB +MIIBHgKBgQDzr1+m+lDe1ZDznY8GJRcImVl0cfhk0G91K6l1r+3ftksv8YaTdnKu +z8ObSiqlsCNMfIybW3uIYx71IugxbjLonHE49PJRiKhdcJUvlrksLQzncwuVI4ki +Elw4cq0AslpcPEJt8UDFM5SpfW9bX1TA95KRwBCPTNc8xoLD+JYBswIVAOIqU0aS +dFw4PYIeQhXZgk/hKEinAoGAfAdU59EBrer7YL348cLEZhSshWxL2RXA+6v7ac7r +p0/Wb41uqfQMyNIyW5PJiRgT1pMhOsPb5jmcuBbty/05iSk5G8dW8wNCHk874giD +5o5u9pmnCxv07UOV+hmg9s9ycrFW0AHOVjDVnBkhfKvHH1Fw0xB6vIH8cxy9dCCP +WGwDgYQAAoGAMgPlZOYti10jD2/5PTYzO00gn8ZXBipQKpY9aB1ldgZ7ERRKuQaG +Q9HNrqZVr6xja6EYDTkLGDD8aeod/nG79V8ANOuBq8cIMFOif81ZtrmIoPqqMmIU +rT1HnBZsFqRSIQn8LrmgBqKS9kqVQCBOIHiXBNJthwgAGu+MiIdeoWcwCwYHKoZI +zjgEAwUAAzAAMC0CFQDRnU8UsC1rZ39Au/q0ZfpFeRq55QIUYDXpNw4n1bMuJnMk +qJUYEBD6IRw= +-----END CERTIFICATE----- diff --git a/regress/usr.bin/gzsig/x509-rsa b/regress/usr.bin/gzsig/x509-rsa new file mode 100644 index 00000000000..5c9b0686527 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-rsa @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXAIBAAKBgQCukvRHa6ILs2vVy7PeL6L96A0ejwvEQEAWb7tAor1vNqiNfkaw +hoSnsgmSU97/K5mA0h0HmqUsWi1lRrWWXOvNy3rdfzdB0UllU+Y9zzTe0YqoUmUe +rHM6cbkpUFm5Wb36o3me87h+FD8NA4phw513CF+gyRYnuXjZGx07ZwXztwIDAQAB +AoGACwvrfzV1XI4u7allKVMUWkK7yco9cV6rb4AEdlOV7xqjUcjCylrIvB/M8UBz +ZOwqW3dwNNH5T7QpGTZ/OROKLDGuOFVpN+yolhrqK3LL6YrvHo6W9Afk+7ee6DEJ +Z+V0mYftp4shKpkHCCteaNzgd3V3sRJ/SLaj8puV4JZpd7kCQQDnSbeXWxXSGI/5 +PEKVc0soo7jTY3SqdPrHmUM46N1quZWiOcW4UH9sfD4MmFGFea9Rq90Y23Jza/ZX +9Aw4MKNlAkEAwTn5iyrMAxwrAaFg1mh6PGYx/69WfqC/57GofLSFVUaCetlIm9k6 +FzV+Qco7f62bBjPyeBfwucF/GFH6Yn++6wJATkMDfJO1roHhNdTOMwPwSrAbumvM +7mDm+uNBe+BQC+0AVQR3gwa6F1tzI4/nBeNHD7u39NFMyQGfOeO6vsi2gQJATAF1 +AmQEOdjzpcGH6O7R3j5Ivo2G1Wp/8jB02RDdPaztmEst/3fUHNsC3fghrVhpmWgH +oWuxWjAdwUBF4EblnwJBAKA5V30pM15cHt70UbNMXrOy1PF9eza++xbpA8Ddvs97 +C4dJH1qZe4MlHC+E0Iy9lJoyEsUSg9Nmn9658NTjg0A= +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/x509-rsa-pass b/regress/usr.bin/gzsig/x509-rsa-pass new file mode 100644 index 00000000000..472360206e5 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-rsa-pass @@ -0,0 +1,30 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: DES-EDE3-CBC,7AB82F33F528299F + +G3aWCID7RQCY7nlqk9XQlm9F7Re7ZMTcXOoPiG9sr5zhc3Ke8Npdz/at+4yn89Nl +8aD3T+mWysa9LrxG85EYUoupNx6faYq8ekwabhL/q5YDcWTDTrfhMG1sJfOLz/oD +6fmG7GO2Rj9Qpyl4TeYRGKWq+i1GAbXcfky2uAYznZUmXbaSPGFzlLqdn7fh9wku +9hwELKH1khBcmvPU8TWf+xQVgDcKwhVlg8pwMz3t60TLdSgOUtB/2KqQqRLehg7j +LfisF/0sByDeZBd8PTfHygHaz8un12MhObwLp+JLCytHznsV7GQku0PHw4Kp9Vb8 +75YF8oBNXb/E24uywv87k0XrtZtdNjJlLmcAOVPQroCZycd4gfBo4k8Hp/YXz+vf +ng3WbmFHPwNHUvmdzc5UbHl+N5iYLy0wYgFhdrOTyzodL0TcKp2kDwpnkaKRtiQv +Q0GPfg20YjQjgWkgyH5I4E6nCuCH8/HAxx0NziHwJmA+xQxMdrssYJAb8AMt9Ix5 +by1QMnRWNN6g6xdHp/zqm0l3H7IF3+MN7iW94czrSnsg/l72mkiq8O9W1sQkaBp7 +kqTcm9MHE8OZxOBV4ipEkyLW7IHi/3rguB9llBcGHc6WEhB6dZFTfqckGDyDQpQ3 +QxbaHQRCTV+LgN4nkCI5QUstJtF0Pgyym9DmXuk7XOwwnYouhijVSuOdwqPCgXOg +P08Swcn/gWIl8Ksa9Nb8i4KUkd3xL827fuYqzg8gs6f43fBRPPNarf1toK4fRV8T +cxk55r6aVwFgIDA6eys7pI0YyGW2TfFTDyPc7FtvCxtJfQPonPTN6pGSzqkmgbKe +QNJmAxmhqPiytTasUtzIAjiLXFhy/n43AItzqt8ffFOOouU3zS86fylG5EPeZCHo +zN4LpbzhlyMsWvDEBAgRTQsZm/LBY1lhYaxGqjboImFuR4NSflhRwUFY9TEMkiUd +c1qQmda/uzu1R/5prrEVr015xo2N97HfFNnqSvnR8Hp6keJLdmIJMPa7q3uN9A4F +LGh4P53KzAWXZ3LzDigRJ53nnbJrCfD80MIgAW+jonaygsd3wQdgr/v8iBn4TWNc +BKXJKggH5VrgWFDjhqeWwSUk0B4ZLCFiHnKxuzvsyVb1xdBp+alHTRhZDqU+Oyj1 +MKYWzF/eTlJ66DT66WBqQIgX4azhg91Afi+kjTtvtfF9EN0n12tV7kypQ9YRhE4U +WSddygaq/Vko4/ULwwHH/PeGsyaDtaOqwORGwqNw0zWeElJdkizI41YK6uWwvAja +Xtr7456+YgXYnovbG19360a/nTjwJ/IVly7MQOVuWumJoJ/WUC4XDXdIbCsQZdk6 +wLIUA6GXDAHrQJ/v0Ig6f/N4HYrX4QLSOkjgQvE0n/H12A2v56BQk0to6zCvN2Ey +b8gXEW507Zz8v24nk1P090oGwJWI90n5lmZI14xbUzInX89kopyT19fCgCg0g+o5 +TujY8fIMgDOoS5EETwjxMFtMVRyA3S7rPE0AQK9ESMl8xi1XWIODZ88wIonw91QR +/UaSBDyf+muG7QXQCQNpUxE1Ge1QBhz6K1sVVSILlKqe6Dwrw/g79g== +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.bin/gzsig/x509-rsa-pass.pub b/regress/usr.bin/gzsig/x509-rsa-pass.pub new file mode 100644 index 00000000000..18884894d09 --- /dev/null +++ b/regress/usr.bin/gzsig/x509-rsa-pass.pub @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIC/jCCAeYCAQAwDQYJKoZIhvcNAQEEBQAwRTELMAkGA1UEBhMCVVMxCzAJBgNV +BAgTAk1JMQswCQYDVQQHEwJBMjENMAsGA1UEChMEYXNkZjENMAsGA1UEAxMEYXNk +ZjAeFw0wMTA3MTAwNjMyNDFaFw0zMTA4MTMxNzQwMjVaMEUxCzAJBgNVBAYTAlVT +MQswCQYDVQQIEwJNSTELMAkGA1UEBxMCQTIxDTALBgNVBAoTBGFzZGYxDTALBgNV +BAMTBGFzZGYwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFMXY/jafo +R2DhsLmmU+/bi6qHaXjL/VUZpYBkyWnoW7wys1LR7oT/ovAdoaPojpolbq5Zo3F2 +NkxWd2NGPsnKl2oxuNdnAoAmjwLzEmSzZ4ZAsn5FBZ8QDMuwFkur8ogr3JOBIo8k +h8y5bgCDNByQDKNNF6Oaf0/fveAzC2DAEH6NeOYQA3qof4AsFg+nvCduVlEKmErJ +zQk2ncCJ7gKi8R8Q4dgliL7D/BXxNqrhzBK5/dtxEBYVkT9MNZVj9cZNV8x7G+TQ +wdvtw57iTk1bK1PwdCcLIICy8GT2HfEW2CKZ/scvdsP9NGP0P5pgVsIenZcj2TfE +uEDDiXEdUrKVAgMBAAEwDQYJKoZIhvcNAQEEBQADggEBAG4AFAiCXFcI4iZF/TnY +xuoJyds7FojFMpu5vNAwgru5+kKUoEroZ1xVp8CSrC63EZEDypkj8fekKXvrb4nF +bnNZcaSFV0fWDfpNjk3rc7JcqM2mfhvrfH/ew+MtCTO9kpKOaZMiOurzLEuqza12 +PbllWzd79WRE8mac4nBcjCFHGF5dDjz3qtLWeG+QS/jJ/LXBcxUa3b0bnFToBuIr +FZywl7lPgMc5zTm9TEpa8unM5S98F3EXoJvrAL+pnktp/TO0gWhinD347/7Zj8Xc +9PB8PfHPKzdvnYWIWKNAsrurmNrCfiCnRFLyYuAGiZN9KW2gSD2SginDWIWRqs7y ++IM= +-----END CERTIFICATE----- diff --git a/regress/usr.bin/gzsig/x509-rsa.pub b/regress/usr.bin/gzsig/x509-rsa.pub new file mode 100644 index 00000000000..a10fd213e5e --- /dev/null +++ b/regress/usr.bin/gzsig/x509-rsa.pub @@ -0,0 +1,14 @@ +-----BEGIN CERTIFICATE----- +MIICFzCCAYACAQAwDQYJKoZIhvcNAQEEBQAwVDELMAkGA1UEBhMCVVMxCzAJBgNV +BAgTAk1JMRIwEAYDVQQHEwlBaG0gTmFicm8xEzARBgNVBAoTCnlvdXIgbW9tbWEx +DzANBgNVBAMTBmRvbmtleTAeFw0wMTA3MTAwNjEzMjRaFw02MDA2MTgxMDQ4MzZa +MFQxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJNSTESMBAGA1UEBxMJQWhtIE5hYnJv +MRMwEQYDVQQKEwp5b3VyIG1vbW1hMQ8wDQYDVQQDEwZkb25rZXkwgZ8wDQYJKoZI +hvcNAQEBBQADgY0AMIGJAoGBAK6S9Edroguza9XLs94vov3oDR6PC8RAQBZvu0Ci +vW82qI1+RrCGhKeyCZJT3v8rmYDSHQeapSxaLWVGtZZc683Let1/N0HRSWVT5j3P +NN7RiqhSZR6sczpxuSlQWblZvfqjeZ7zuH4UPw0DimHDnXcIX6DJFie5eNkbHTtn +BfO3AgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAJ4SUU8qYRZRpLtuFW1k583gsKakl +tJxqTPHYr/QQzbsSGcDBGnEqlUaBV7jV4pSW/b85etQfBpujtR4z8GHI/TF282LX +nEvZ94WB1wEKnZoLr1BXSZ5gOd6UtgnT526j+ss+cf9IvU0czWBLsgihxzGWrwKx +nEQelOMIMoqEz10= +-----END CERTIFICATE----- |