├── artwork ├── ascii-key ├── gnu1.jpg ├── gnu5.png ├── gnud.png ├── gnue.png ├── gnue2.png ├── gnurieg.png ├── gpglogo.jpg ├── tl-gnu1.jpg ├── gnu-head-sm.jpg ├── gnupg-lock.png ├── gpglogo.eps.gz ├── gnupg-logo-new.ai ├── icons │ ├── lock-12.png │ ├── lock-16.png │ ├── lock-24.png │ ├── lock-32.png │ ├── lock-48.png │ ├── lock-64.png │ ├── wing-12.png │ ├── wing-16.png │ ├── wing-24.png │ ├── wing-32.png │ ├── wing-48.png │ ├── wing-64.png │ ├── lock-128.png │ ├── lock-256.png │ ├── wing-128.png │ ├── wing-256.png │ ├── lock-wing-12.png │ ├── lock-wing-16.png │ ├── lock-wing-24.png │ ├── lock-wing-32.png │ ├── lock-wing-48.png │ ├── lock-wing-64.png │ ├── lock-wing-128.png │ ├── lock-wing-256.png │ ├── lock.svg │ ├── wing.svg │ └── index.css ├── gnupg-1.0-ist-da.png ├── gnupg-favicon-1.ico ├── gnupg-favicon-2.ico ├── gnupg-favicon-3.ico ├── gnupg-logo-black.jpg ├── gnupg-logo-cia.jpg ├── gnupg-logo-cia2.jpg ├── banner │ ├── banner-full.png │ ├── banner-half.png │ ├── Bungee-Regular.ttf │ ├── Raleway-SemiBold.ttf │ ├── banner-rectangle.png │ ├── Raleway-ExtraBold.ttf │ └── banner-skyscraper.png ├── gnupg-lock-20x25tr.png ├── gnupg-logo-80x25tr.png ├── gnupg-badge-128x128.png ├── gnupg-badge-openpgp.jpg ├── gnupg-lock-256x256tr.png ├── gnupg-lock-80x100tr.png ├── gnupg-logo-180x59tr.png ├── gnupg-logo-320x100tr.png ├── gnupg-logo-420x135tr.png ├── gnupg-1.0-available-now.png ├── gnupg-badge-openpgp.cdr.gz ├── gnupg-badge-openpgp.eps.gz ├── gnupg-lock-rb-256x256tr.png ├── gnupg-logo-1500x500-inv.png └── README ├── common ├── README ├── gnupg.ico ├── isascii.c └── pkscreening.h ├── doc ├── gnupg-logo.pdf ├── gnupg-logo.png ├── gnupg-logo-tr.png ├── gnupg-badge-openpgp.jpg ├── gnupg-badge-openpgp.pdf ├── mksamplekeys ├── FAQ ├── examples │ ├── README │ ├── Automatic.prf │ ├── gpgconf.rnames │ └── common.conf ├── howtos.texi ├── see-also-note.texi ├── texi.css ├── ldap │ └── gnupg-ldap-ad-init.ldif ├── opt-homedir.texi ├── trust-values.texi └── gnupg7.texi ├── g10 ├── distsigkey.gpg ├── t-keydb-keyring.kbx ├── t-stutter-data.asc ├── t-keydb-get-keyblock.gpg ├── exec.h ├── rmd160.h ├── gpg.w32-manifest.in ├── gpgv.w32-manifest.in └── key-check.h ├── kbx ├── Manifest ├── keyboxd.w32-manifest.in └── keybox-fwddecl.h ├── tests ├── pkits │ ├── runtest │ ├── PKITS.pdf │ ├── PKITS_data.tar.bz2 │ ├── key-usage │ ├── delta-crls │ ├── policy-mappings │ ├── name-constraints │ ├── inhibit-any-policy │ ├── certificate-policies │ ├── distribution-points │ ├── inhibit-policy-mapping │ ├── require-explicit-policy │ ├── verifying-name-chaining │ ├── verifying-basic-constraints │ ├── basic-certificate-revocation │ ├── private-certificate-extensions │ └── verifying-paths-self-issued ├── cms │ ├── cert_dfn_pca01.der │ ├── cert_dfn_pca15.der │ ├── cert_g10code_test1.der │ ├── runtest │ ├── samplekeys │ │ ├── ov-user.p12 │ │ ├── webdeca.der │ │ ├── ov-server.p12 │ │ ├── t5793-test.pfx │ │ ├── webderoot.der │ │ ├── cryptlib-key.p12 │ │ ├── opensc-test.p12 │ │ ├── t5793-openssl.pfx │ │ ├── t6752-ov-user-ff.p12 │ │ ├── edward.tester@demo.gnupg.com.p12 │ │ ├── nistp256-openssl-self-signed.p12 │ │ ├── credential_private_encrypted_3DES.p12 │ │ ├── credential_private_encrypted_AES256.p12 │ │ ├── 68A638998DFABAC510EA645CE34F9686B2EDF7EA.key │ │ ├── README │ │ ├── 8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key │ │ └── 32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key │ ├── text-2.txt │ ├── text-3.txt │ ├── samplemsgs │ │ ├── pwri-sample.cbc.p7m │ │ ├── pwri-sample.gcm.p7m │ │ ├── pwri-sample.cbc-2.p7m │ │ ├── pdf-signature-sample.pdf │ │ ├── webde-buenemann-signed.cms │ │ └── README │ ├── cert_cci_test_wzs.pem │ ├── plain-3.cms.asc │ ├── skey_g10code_test1.pem │ ├── key_g10code_pete1.pem │ ├── text-1.txt │ ├── 32100C27173EF6E9C4E9A25D3D69F86D37A4F939 │ ├── key_g10code_theo1.pem │ ├── cert_cci_test_zs.pem │ ├── 567064FE6D14A17B2D811ABB407728BC558AA455 │ ├── shell.scm │ ├── decrypt.scm │ ├── cert_cci_user07.pem │ ├── setup.scm │ ├── cert_cci_user02.pem │ ├── cert_cci_user03.pem │ └── cert_cci_user04.pem ├── openpgp │ ├── 4gb-packet.asc │ ├── forged-keyring.gpg │ ├── samplemsgs │ │ ├── enc-1-key-1.gpg │ │ ├── enc-1-key-2.gpg │ │ ├── sig-1-key-1.sig │ │ ├── sig-1-key-2.sig │ │ ├── enc-2-keys-1.gpg │ │ ├── enc-2-keys-2.gpg │ │ ├── sig-2-keys-1.sig │ │ ├── sig-2-keys-2.sig │ │ ├── signed-1-key-1.gpg │ │ ├── signed-1-key-2.gpg │ │ ├── encsig-2-keys-1.gpg │ │ ├── encsig-2-keys-2.gpg │ │ ├── encsig-2-keys-3.gpg │ │ ├── encsig-2-keys-4.gpg │ │ ├── signed-2-keys-1.gpg │ │ ├── signed-2-keys-2.gpg │ │ ├── signedz0-1-key-1.gpg │ │ ├── signedz0-1-key-2.gpg │ │ ├── encsig-2-2-keys-3.gpg │ │ ├── encsig-2-2-keys-4.gpg │ │ ├── signedz0-2-keys-1.gpg │ │ ├── signedz0-2-keys-2.gpg │ │ ├── issue2419.asc │ │ ├── sig-1-key-1.asc │ │ ├── revoke-2D727CC768697734.asc │ │ ├── enc-sym-cfb-1.asc │ │ ├── enc-sym-cfb-2.asc │ │ ├── enc-1-key-1.asc │ │ ├── enc-sym-ocb-2.asc │ │ ├── mail-test-1.eml │ │ ├── signed-data-1.txt │ │ ├── enc-sym-ocb-1.asc │ │ ├── encz0-1-key-1.asc │ │ ├── sig-1-key-2.asc │ │ ├── signed-1-key-2.asc │ │ ├── encz0-1-key-2.asc │ │ ├── clearsig-1-key-1.asc │ │ ├── signed-1-key-1.asc │ │ ├── sig-2-keys-1.asc │ │ ├── sig-2-keys-2.asc │ │ ├── enc-1-key-2.asc │ │ ├── enc-2-keys-2.asc │ │ ├── clearsig-2-keys-1.asc │ │ ├── signed-2-keys-1.asc │ │ ├── enc-2-keys-1.asc │ │ ├── clearsig-2-keys-2.asc │ │ ├── enc-2-keys-hh-1.asc │ │ ├── encsig-2-keys-1.asc │ │ ├── encsig-2-keys-2.asc │ │ ├── enc-2-keys-rh-1.asc │ │ └── mail-test-2.eml │ ├── tofu │ │ ├── conflicting │ │ │ ├── 1C005AF3.gpg │ │ │ ├── B662E42F.gpg │ │ │ ├── BE04EB2B.gpg │ │ │ ├── 1C005AF3-1.txt │ │ │ ├── 1C005AF3-2.txt │ │ │ ├── 1C005AF3-3.txt │ │ │ ├── 1C005AF3-4.txt │ │ │ ├── 1C005AF3-5.txt │ │ │ ├── B662E42F-1.txt │ │ │ ├── B662E42F-2.txt │ │ │ ├── B662E42F-3.txt │ │ │ ├── B662E42F-4.txt │ │ │ ├── B662E42F-5.txt │ │ │ ├── BE04EB2B-1.txt │ │ │ ├── BE04EB2B-2.txt │ │ │ ├── BE04EB2B-3.txt │ │ │ ├── BE04EB2B-4.txt │ │ │ ├── BE04EB2B-5.txt │ │ │ ├── 1C005AF3-secret.gpg │ │ │ ├── B662E42F-secret.gpg │ │ │ ├── BE04EB2B-secret.gpg │ │ │ └── README │ │ └── cross-sigs │ │ │ ├── 871C2247-1.gpg │ │ │ ├── 871C2247-1.txt │ │ │ ├── 871C2247-2.gpg │ │ │ ├── 871C2247-2.txt │ │ │ ├── 871C2247-3.gpg │ │ │ ├── 871C2247-3.txt │ │ │ ├── 871C2247-4.gpg │ │ │ ├── EC38277E-1.gpg │ │ │ ├── EC38277E-1.txt │ │ │ ├── EC38277E-2.gpg │ │ │ ├── EC38277E-2.txt │ │ │ ├── EC38277E-3.txt │ │ │ ├── 871C2247-secret.gpg │ │ │ └── EC38277E-secret.gpg │ ├── samplekeys │ │ ├── no-creation-time.gpg │ │ ├── ssh-ecdsa.key │ │ ├── ssh-ed25519.key │ │ ├── ssh-dsa.key │ │ ├── eddsa-sample-1-pub.asc │ │ ├── eddsa-sample-1-sec.asc │ │ ├── v5-sample-1-pub.asc │ │ ├── ed25519-cv25519-sample-1.asc │ │ ├── ecc-sample-1-pub.asc │ │ ├── ed25519-cv25519-sample-2.asc │ │ ├── v5-sample-1-sec.asc │ │ └── ecc-sample-2-sec.asc │ ├── privkeys │ │ ├── DC60E0AE48E0F14E8FD7C9C36E18C6651E99BA93.key │ │ ├── F27FC04CB01723A4CB6F5399F7B86CCD82C0169C.key │ │ ├── F5DB116462B7BD2FA83A4453C4DFA2AE8604FB59.key │ │ ├── 2F4CD0990D56D41A74456668469E3139A7960CD4.key │ │ ├── 891067FFFC6D67D37BD4BFC399191C5F3989D1B5.key │ │ ├── A87B85D88DB8B2B5A62A9958C8F2878F49605D09.key │ │ ├── D54E9B75C3541D95C45E430DAC9645E9FB62C668.key │ │ ├── 8F9ABF3E5BBFC50D168DD524EB8F7263E7B33859.key │ │ ├── 1E28F20E41B54C2D1234D896096495FF57E08D18.asc │ │ ├── EB33B687EB8581AB64D04852A54453E85F3DF62D.asc │ │ ├── 449E644892C951A37525654730DD32C202079926.asc │ │ ├── 9D7CD8F53F2F14C3E2177D1E9D1D11F39513A4A4.asc │ │ ├── 19C87B74004E9839F3D56992B0A9943BF90B56F7.key │ │ ├── 702F599E35E6E0BE68E6FDF25D887229D42780F7.key │ │ ├── 513906BEA5A40F25C9D6EBBCEF62D0784E7235A5.key │ │ ├── A1ABFD89944870D04039D40C218EE127254AEEE9.key │ │ ├── 0D6F6AD4C4C803B25470F9104E9F4E6A4CA64255.asc │ │ ├── C905D0AB6AE9655C5A35975939997BBF3325D6DD.asc │ │ ├── 8B5ABF3EF9EB8D96B91A0B8C2C4401C91C834C34.asc │ │ ├── FD692BD59D6640A84C8422573D469F84F3B98E53.asc │ │ ├── 343D8AF79796EE107D645A2787A9D9252F924E6F.asc │ │ ├── 00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc │ │ ├── A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc │ │ ├── ADE710D74409777B7729A7653373D820F67892E0.asc │ │ ├── CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc │ │ ├── 13FDB8809B17C5547779F9D205C45F47CE0217CE.asc │ │ ├── 7E201E28B6FEB2927B321F443205F4724EBE637E.asc │ │ ├── 0DD40284FF992CD24DC4AAC367037E066FCEE26A.asc │ │ └── A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD.asc │ ├── plain-3o.asc │ ├── signdemokey │ ├── trust-pgp │ │ ├── alice.sec.asc │ │ ├── bobby.sec.asc │ │ ├── carol.sec.asc │ │ ├── david.sec.asc │ │ ├── frank.sec.asc │ │ ├── grace.sec.asc │ │ └── heidi.sec.asc │ ├── pgp263-test.pub.asc │ ├── plain-3.asc │ ├── pgp263-test.sec.asc │ ├── version.scm │ ├── key-selection │ │ └── 4.asc │ ├── bug1223-good.asc │ ├── bug1223-bogus.asc │ ├── decrypt.scm │ └── enarmor.scm ├── extrasamples │ ├── dod-test9.p12 │ ├── siemens-ZZZZZ000.crt │ ├── siemens-ZZZZZ0EE.crt │ └── README ├── tpm2dtests │ ├── rsa.scm │ ├── ecc.scm │ ├── unimportable.scm │ └── start_sw_tpm.sh ├── fake-pinentries │ ├── fake-pinentry.pl │ ├── fake-pinentry.php │ ├── fake-pinentry.sh │ └── fake-pinentry.py ├── migrations │ ├── setup.scm │ └── run-tests.scm ├── gpgme │ └── run-tests.scm ├── gpgconf.ctl.in └── gpgscm │ ├── private.h │ └── ffi.h ├── tools ├── Manifest ├── der-to-pem ├── clean-sat.c ├── decrypt.bat ├── gpg-card.w32-manifest.in ├── gpgconf.w32-manifest.in ├── gpgtar.w32-manifest.in ├── gpg-connect-agent.w32-manifest.in ├── gpg-check-pattern.w32-manifest.in ├── gpg-wks-client.w32-manifest.in └── send-mail.h ├── po ├── quot.sed ├── .gitattributes ├── boldquot.sed ├── LINGUAS ├── remove-potcdate.sin └── insert-header.sin ├── README.maint ├── .git-blame-ignore-revs ├── dirmngr ├── dirmngr-err.h ├── http-common.h ├── dirmngr.w32-manifest.in ├── dirmngr_ldap.w32-manifest.in └── dirmngr-client.w32-manifest.in ├── m4 ├── Makefile.am └── codeset.m4 ├── g13 ├── ChangeLog-2011 ├── be-truecrypt.h └── suspend.h ├── ChangeLog ├── autogen.rc ├── scd ├── atr.h └── scdaemon.w32-manifest.in ├── sm ├── passphrase.h └── gpgsm.w32-manifest.in └── agent └── gpg-agent.w32-manifest.in /artwork/ascii-key: -------------------------------------------------------------------------------- 1 | 2 | .-. 3 | ( )====GnuPG 4 | `-' 5 | 6 | -------------------------------------------------------------------------------- /common/README: -------------------------------------------------------------------------------- 1 | Common functionality used by all modules of GnuPG. 2 | -------------------------------------------------------------------------------- /artwork/gnu1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnu1.jpg -------------------------------------------------------------------------------- /artwork/gnu5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnu5.png -------------------------------------------------------------------------------- /artwork/gnud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnud.png -------------------------------------------------------------------------------- /artwork/gnue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnue.png -------------------------------------------------------------------------------- /artwork/gnue2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnue2.png -------------------------------------------------------------------------------- /common/gnupg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/common/gnupg.ico -------------------------------------------------------------------------------- /doc/gnupg-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/doc/gnupg-logo.pdf -------------------------------------------------------------------------------- /doc/gnupg-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/doc/gnupg-logo.png -------------------------------------------------------------------------------- /g10/distsigkey.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/g10/distsigkey.gpg -------------------------------------------------------------------------------- /artwork/gnurieg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnurieg.png -------------------------------------------------------------------------------- /artwork/gpglogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gpglogo.jpg -------------------------------------------------------------------------------- /artwork/tl-gnu1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/tl-gnu1.jpg -------------------------------------------------------------------------------- /kbx/Manifest: -------------------------------------------------------------------------------- 1 | 2 | keybox-update.c 3 | keybox-file.c 4 | 5 | 6 | 7 | 8 | $names$ 9 | -------------------------------------------------------------------------------- /tests/pkits/runtest: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -x "$1" ] && exec $1 $2 3 | exec sh $1 $2 4 | 5 | -------------------------------------------------------------------------------- /artwork/gnu-head-sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnu-head-sm.jpg -------------------------------------------------------------------------------- /artwork/gnupg-lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-lock.png -------------------------------------------------------------------------------- /artwork/gpglogo.eps.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gpglogo.eps.gz -------------------------------------------------------------------------------- /doc/gnupg-logo-tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/doc/gnupg-logo-tr.png -------------------------------------------------------------------------------- /g10/t-keydb-keyring.kbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/g10/t-keydb-keyring.kbx -------------------------------------------------------------------------------- /g10/t-stutter-data.asc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/g10/t-stutter-data.asc -------------------------------------------------------------------------------- /tests/pkits/PKITS.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/pkits/PKITS.pdf -------------------------------------------------------------------------------- /artwork/gnupg-logo-new.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-new.ai -------------------------------------------------------------------------------- /artwork/icons/lock-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-12.png -------------------------------------------------------------------------------- /artwork/icons/lock-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-16.png -------------------------------------------------------------------------------- /artwork/icons/lock-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-24.png -------------------------------------------------------------------------------- /artwork/icons/lock-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-32.png -------------------------------------------------------------------------------- /artwork/icons/lock-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-48.png -------------------------------------------------------------------------------- /artwork/icons/lock-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-64.png -------------------------------------------------------------------------------- /artwork/icons/wing-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-12.png -------------------------------------------------------------------------------- /artwork/icons/wing-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-16.png -------------------------------------------------------------------------------- /artwork/icons/wing-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-24.png -------------------------------------------------------------------------------- /artwork/icons/wing-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-32.png -------------------------------------------------------------------------------- /artwork/icons/wing-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-48.png -------------------------------------------------------------------------------- /artwork/icons/wing-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-64.png -------------------------------------------------------------------------------- /artwork/gnupg-1.0-ist-da.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-1.0-ist-da.png -------------------------------------------------------------------------------- /artwork/gnupg-favicon-1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-favicon-1.ico -------------------------------------------------------------------------------- /artwork/gnupg-favicon-2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-favicon-2.ico -------------------------------------------------------------------------------- /artwork/gnupg-favicon-3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-favicon-3.ico -------------------------------------------------------------------------------- /artwork/gnupg-logo-black.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-black.jpg -------------------------------------------------------------------------------- /artwork/gnupg-logo-cia.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-cia.jpg -------------------------------------------------------------------------------- /artwork/gnupg-logo-cia2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-cia2.jpg -------------------------------------------------------------------------------- /artwork/icons/lock-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-128.png -------------------------------------------------------------------------------- /artwork/icons/lock-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-256.png -------------------------------------------------------------------------------- /artwork/icons/wing-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-128.png -------------------------------------------------------------------------------- /artwork/icons/wing-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/wing-256.png -------------------------------------------------------------------------------- /doc/gnupg-badge-openpgp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/doc/gnupg-badge-openpgp.jpg -------------------------------------------------------------------------------- /doc/gnupg-badge-openpgp.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/doc/gnupg-badge-openpgp.pdf -------------------------------------------------------------------------------- /g10/t-keydb-get-keyblock.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/g10/t-keydb-get-keyblock.gpg -------------------------------------------------------------------------------- /tests/cms/cert_dfn_pca01.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/cert_dfn_pca01.der -------------------------------------------------------------------------------- /tests/cms/cert_dfn_pca15.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/cert_dfn_pca15.der -------------------------------------------------------------------------------- /tests/openpgp/4gb-packet.asc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/4gb-packet.asc -------------------------------------------------------------------------------- /artwork/banner/banner-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/banner-full.png -------------------------------------------------------------------------------- /artwork/banner/banner-half.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/banner-half.png -------------------------------------------------------------------------------- /artwork/gnupg-lock-20x25tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-lock-20x25tr.png -------------------------------------------------------------------------------- /artwork/gnupg-logo-80x25tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-80x25tr.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-12.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-16.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-24.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-32.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-48.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-64.png -------------------------------------------------------------------------------- /tests/pkits/PKITS_data.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/pkits/PKITS_data.tar.bz2 -------------------------------------------------------------------------------- /tools/Manifest: -------------------------------------------------------------------------------- 1 | Makefile.am 2 | watchgnupg.c 3 | gpgconf.c 4 | gpgconf.h 5 | gpgconf-list.c 6 | $names$ 7 | -------------------------------------------------------------------------------- /artwork/banner/Bungee-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/Bungee-Regular.ttf -------------------------------------------------------------------------------- /artwork/gnupg-badge-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-badge-128x128.png -------------------------------------------------------------------------------- /artwork/gnupg-badge-openpgp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-badge-openpgp.jpg -------------------------------------------------------------------------------- /artwork/gnupg-lock-256x256tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-lock-256x256tr.png -------------------------------------------------------------------------------- /artwork/gnupg-lock-80x100tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-lock-80x100tr.png -------------------------------------------------------------------------------- /artwork/gnupg-logo-180x59tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-180x59tr.png -------------------------------------------------------------------------------- /artwork/gnupg-logo-320x100tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-320x100tr.png -------------------------------------------------------------------------------- /artwork/gnupg-logo-420x135tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-420x135tr.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-128.png -------------------------------------------------------------------------------- /artwork/icons/lock-wing-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/icons/lock-wing-256.png -------------------------------------------------------------------------------- /tests/cms/cert_g10code_test1.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/cert_g10code_test1.der -------------------------------------------------------------------------------- /tests/cms/runtest: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | [ -x "$1" ] && exec $1 $2 3 | exec ./asschk --no-echo -DGPGSM=${GPGSM} <"$1" 4 | -------------------------------------------------------------------------------- /tests/cms/samplekeys/ov-user.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/ov-user.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/webdeca.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/webdeca.der -------------------------------------------------------------------------------- /tests/cms/text-2.txt: -------------------------------------------------------------------------------- 1 | Military intelligence is a contradiction in terms. 2 | -- Groucho Marx 3 | -------------------------------------------------------------------------------- /tests/cms/text-3.txt: -------------------------------------------------------------------------------- 1 | Military justice is to justice what military music is to music. 2 | -- Groucho Marx 3 | -------------------------------------------------------------------------------- /tests/extrasamples/dod-test9.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/extrasamples/dod-test9.p12 -------------------------------------------------------------------------------- /tests/openpgp/forged-keyring.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/forged-keyring.gpg -------------------------------------------------------------------------------- /artwork/banner/Raleway-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/Raleway-SemiBold.ttf -------------------------------------------------------------------------------- /artwork/banner/banner-rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/banner-rectangle.png -------------------------------------------------------------------------------- /artwork/gnupg-1.0-available-now.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-1.0-available-now.png -------------------------------------------------------------------------------- /artwork/gnupg-badge-openpgp.cdr.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-badge-openpgp.cdr.gz -------------------------------------------------------------------------------- /artwork/gnupg-badge-openpgp.eps.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-badge-openpgp.eps.gz -------------------------------------------------------------------------------- /artwork/gnupg-lock-rb-256x256tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-lock-rb-256x256tr.png -------------------------------------------------------------------------------- /artwork/gnupg-logo-1500x500-inv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/gnupg-logo-1500x500-inv.png -------------------------------------------------------------------------------- /tests/cms/samplekeys/ov-server.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/ov-server.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/t5793-test.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/t5793-test.pfx -------------------------------------------------------------------------------- /tests/cms/samplekeys/webderoot.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/webderoot.der -------------------------------------------------------------------------------- /artwork/banner/Raleway-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/Raleway-ExtraBold.ttf -------------------------------------------------------------------------------- /artwork/banner/banner-skyscraper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/artwork/banner/banner-skyscraper.png -------------------------------------------------------------------------------- /tests/cms/samplekeys/cryptlib-key.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/cryptlib-key.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/opensc-test.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/opensc-test.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/t5793-openssl.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/t5793-openssl.pfx -------------------------------------------------------------------------------- /tests/cms/samplemsgs/pwri-sample.cbc.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplemsgs/pwri-sample.cbc.p7m -------------------------------------------------------------------------------- /tests/cms/samplemsgs/pwri-sample.gcm.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplemsgs/pwri-sample.gcm.p7m -------------------------------------------------------------------------------- /tests/extrasamples/siemens-ZZZZZ000.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/extrasamples/siemens-ZZZZZ000.crt -------------------------------------------------------------------------------- /tests/extrasamples/siemens-ZZZZZ0EE.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/extrasamples/siemens-ZZZZZ0EE.crt -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-1-key-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/enc-1-key-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-1-key-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/enc-1-key-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-1-key-1.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/sig-1-key-1.sig -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-1-key-2.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/sig-1-key-2.sig -------------------------------------------------------------------------------- /tests/cms/samplekeys/t6752-ov-user-ff.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/t6752-ov-user-ff.p12 -------------------------------------------------------------------------------- /tests/cms/samplemsgs/pwri-sample.cbc-2.p7m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplemsgs/pwri-sample.cbc-2.p7m -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/enc-2-keys-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/enc-2-keys-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-2-keys-1.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/sig-2-keys-1.sig -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-2-keys-2.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/sig-2-keys-2.sig -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-1-key-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signed-1-key-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-1-key-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signed-1-key-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B.gpg -------------------------------------------------------------------------------- /tests/cms/samplemsgs/pdf-signature-sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplemsgs/pdf-signature-sample.pdf -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/no-creation-time.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplekeys/no-creation-time.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-keys-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-keys-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-3.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-keys-3.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-4.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-keys-4.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-2-keys-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signed-2-keys-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-2-keys-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signed-2-keys-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signedz0-1-key-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signedz0-1-key-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signedz0-1-key-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signedz0-1-key-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-1.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-2.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-3.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-4.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-5.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-1.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-2.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-3.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-4.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-5.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-1.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-2.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-3.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-4.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-5.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-1.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-2.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-3.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-3.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-3.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-4.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-4.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-1.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-2.txt -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-3.txt -------------------------------------------------------------------------------- /tests/cms/samplemsgs/webde-buenemann-signed.cms: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplemsgs/webde-buenemann-signed.cms -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-2-keys-3.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-2-keys-3.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-2-keys-4.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/encsig-2-2-keys-4.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signedz0-2-keys-1.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signedz0-2-keys-1.gpg -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signedz0-2-keys-2.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/samplemsgs/signedz0-2-keys-2.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/B662E42F-secret.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/B662E42F-secret.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg -------------------------------------------------------------------------------- /tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg -------------------------------------------------------------------------------- /tests/cms/samplekeys/edward.tester@demo.gnupg.com.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/edward.tester@demo.gnupg.com.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/nistp256-openssl-self-signed.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/nistp256-openssl-self-signed.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/credential_private_encrypted_3DES.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/credential_private_encrypted_3DES.p12 -------------------------------------------------------------------------------- /po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /tests/cms/samplekeys/credential_private_encrypted_AES256.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/credential_private_encrypted_AES256.p12 -------------------------------------------------------------------------------- /tests/cms/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gnupg/master/tests/cms/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/issue2419.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | AA== 6 | =YWnT 7 | -----END PGP ARMORED FILE----- 8 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_test_wzs.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkxTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEw 3 | RlVSUzB0TFMwdENnPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= 4 | -----END CERTIFICATE----- 5 | -------------------------------------------------------------------------------- /po/.gitattributes: -------------------------------------------------------------------------------- 1 | # You should add 2 | #[filter "cleanpo"] 3 | # clean = "awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'" 4 | # to your config file. 5 | 6 | /??.po filter=cleanpo 7 | /??_??.po filter=cleanpo 8 | -------------------------------------------------------------------------------- /po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /README.maint: -------------------------------------------------------------------------------- 1 | Notes for the GnuPG maintainer (GIT only) 2 | ============================================ 3 | 4 | Please see https://gnupg.org/devel/creating-a-release.html or the 5 | corresponding .org file in the gnupg-doc repo. 6 | -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | en@quot 2 | en@boldquot 3 | ca 4 | cs 5 | da 6 | de 7 | eo 8 | el 9 | es 10 | et 11 | fi 12 | fr 13 | gl 14 | hu 15 | id 16 | it 17 | ja 18 | nb 19 | nl 20 | pl 21 | pt 22 | ro 23 | ru 24 | sk 25 | sv 26 | tr 27 | uk 28 | zh_TW 29 | zh_CN 30 | -------------------------------------------------------------------------------- /tests/cms/samplemsgs/README: -------------------------------------------------------------------------------- 1 | Sample messages for CMS symmetric encryption. 2 | Password is "abc". 3 | 4 | pwri-sample.cbc.p7m - Using CBC Mode 5 | pwri-sample.cbc-2.p7m - Using CBC with a different iteration count 6 | pwri-sample.gcm.p7m - Using GCM 7 | -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # indent: Modernize mem2str. 2 | 6a80d6f9206eae2c867c45daa5cd3e7d6c6ad114 3 | # doc: Fix spelling errors found by lintian. 4 | 2ed1f68b48db7b5503045386de0500fddf70077e 5 | # indent: Re-indent a function 6 | 869d1df270c0ccc3a9f792167b96d678a932b37e 7 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ssh-ecdsa.key: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MHcCAQEEIF8Mt42n5l2eJB2rk5TSnS98xAtR2VfmmI96WT5OtFrdoAoGCCqGSM49 3 | AwEHoUQDQgAEsphhghltvEj+1rFEcIlSNy2ze7IMHdhGsH060PwOzjKTy15M8zHI 4 | uaH9SOMXTzn3Bial8bxrXLsOYEhRZhYSrA== 5 | -----END EC PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/DC60E0AE48E0F14E8FD7C9C36E18C6651E99BA93.key: -------------------------------------------------------------------------------- 1 | Created: 20240419T124916 2 | Key: (private-key (ecc (curve Ed25519)(flags eddsa)(q 3 | #405D1A8C6FB60828BEF043119A1DF97E3A6A408CF3E0CD56F74F9522A7BAACD51C#) 4 | (d #ACF7F220B124A7C726F40DE83D07EFB9165814E9A42EFD9ECB53B27401D85BB3#) 5 | )) 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/F27FC04CB01723A4CB6F5399F7B86CCD82C0169C.key: -------------------------------------------------------------------------------- 1 | Created: 20220916T120000 2 | Key: (private-key (ecc (curve Ed25519)(flags eddsa)(q 3 | #403905D615CA9A98D674F1CC7AA8B5E9F948D7D2FB2E7536ED6027B014B1F948E6#) 4 | (d #F1E5A1387736A9BD0976AA1FA1D217C3A75EC636605EA8EEAF3C84A9C13E01B4#) 5 | )) 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/F5DB116462B7BD2FA83A4453C4DFA2AE8604FB59.key: -------------------------------------------------------------------------------- 1 | Created: 20240419T125029 2 | Key: (private-key (ecc (curve Ed25519)(flags eddsa)(q 3 | #40F0C11FA63250E08BD9D0E766417EA5F4E4366B7D60692A442F71E37CFB19EAE4#) 4 | (d #A2319B2E7599FD1AA04578C01EFAECC82B1EDFA8FAB85928244BABB0733653B0#) 5 | )) 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/2F4CD0990D56D41A74456668469E3139A7960CD4.key: -------------------------------------------------------------------------------- 1 | Created: 20240419T125003 2 | Key: (private-key (ecc (curve Curve25519)(flags djb-tweak)(q 3 | #406438411B2E3EA2EA48B681860C2CA537978C69072CBD04A40069E122660F6F37#) 4 | (d #7D295F7111BD111DB6685B451EF1FCFEA61F7777B8227194F97E093D6E508268#) 5 | )) 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/891067FFFC6D67D37BD4BFC399191C5F3989D1B5.key: -------------------------------------------------------------------------------- 1 | Created: 20220916T120000 2 | Key: (private-key (ecc (curve Curve25519)(flags djb-tweak)(q 3 | #409651F6DD19C8F562792274BCE044F8916609FBDA25EE3DFA21207DCE8CBA0C63#) 4 | (d #778955D781825551C8B8025DF6A9D7A00613331DE35711F56C65676A98E565F8#) 5 | )) 6 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-1-key-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNATURE----- 2 | Version: GnuPG v2 3 | 4 | iHsEABYIACMFAldqTEMcHHBhdHJpY2UubHVtdW1iYUBleGFtcGxlLm5ldAAKCRAT 5 | lWNoKgINCu0XAQC6VSdsGyTbvFPp5e6BmkmBzPcb5Kex4ar722k0jzhLzgD+Js2q 6 | Y1JIdjfW4GnFhdzqyUbuGTlk1wNY7Re1uNyD6gw= 7 | =c0oW 8 | -----END PGP SIGNATURE----- 9 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/revoke-2D727CC768697734.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | Comment: This is a revocation certificate 3 | 4 | iGAEIBECACAWIQSg/0WQu2Ei7e9uPFQtcnzHaGl3NAUCWEaoMAIdAAAKCRAtcnzH 5 | aGl3NISuAJ9rsxoazHvPs89Ki33o/SgKMjOg/wCggbFG8V5wXU1njwuiviPUKap3 6 | uqA= 7 | =79yW 8 | -----END PGP PUBLIC KEY BLOCK----- 9 | -------------------------------------------------------------------------------- /doc/mksamplekeys: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | # Generate a samplekeys.asc 3 | 4 | keys='1E42B367 99242560 87978569 4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630' 5 | 6 | for i in $keys; do 7 | gpg --list-keys $i | awk '{ if ( $0 != "") print " " $0; else print $0; }' 8 | done 9 | echo 10 | gpg --export-options export-minimal --export -a $keys 11 | -------------------------------------------------------------------------------- /doc/FAQ: -------------------------------------------------------------------------------- 1 | GnuPG Frequently Asked Questions 2 | 3 | A FAQ is a fast moving target and thus we don't distribute it anymore 4 | with GnuPG. You may retrieve the current FAQ in HTML format at 5 | 6 | https://gnupg.org/faq/gnupg-faq.html 7 | 8 | or in plain text format at 9 | 10 | https://gnupg.org/faq/gnupg-faq.txt 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dirmngr/dirmngr-err.h: -------------------------------------------------------------------------------- 1 | /* Definition of the gpg-error source. */ 2 | 3 | #ifndef DIRMNGR_ERR_H 4 | #define DIRMNGR_ERR_H 5 | 6 | #ifdef GPG_ERR_SOURCE_DEFAULT 7 | #error GPG_ERR_SOURCE_DEFAULT already defined 8 | #endif 9 | #define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_DIRMNGR 10 | #include 11 | 12 | #endif /*DIRMNGR_ERR_H*/ 13 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-sym-cfb-1.asc: -------------------------------------------------------------------------------- 1 | Symmetric encrypted message of "Hello, world!\n" using 2 | the passphrase "password" and cipher AES128.CFB. 3 | 4 | -----BEGIN PGP MESSAGE----- 5 | 6 | jA0EBwMCt0tGQ7H0b2Xt0j8BHVEh+mzI3SyApdQmObZuDtAKNk/dRbERyF7haRCn 7 | cw3N5t3hbOZ/fWlN/BRAaKplninV//QEo8lqheFFpmI= 8 | =LxrG 9 | -----END PGP MESSAGE----- 10 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-sym-cfb-2.asc: -------------------------------------------------------------------------------- 1 | Symmetric encrypted message of "Hello, world!\n" using 2 | the passphrase "password" and cipher AES256.CFB. 3 | 4 | -----BEGIN PGP MESSAGE----- 5 | 6 | jA0ECQMCN4BmCgZpVHDt0j8B1MRJ3ezrbVqU3Xofj5ykOmb7dgYytxzk6QHqzdNO 7 | lorumncKV+xjFkte8uKqaGJoPhoKb2s9uJWDgugLMDM= 8 | =gy0I 9 | -----END PGP MESSAGE----- 10 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/A87B85D88DB8B2B5A62A9958C8F2878F49605D09.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T121404 2 | Key: (private-key (ecc (curve brainpoolP256r1)(q 3 | #0431801CBE11209D65705872CDBED8E8718ADEBC8F4F44D69A71244F883EFFF54654 4 | 7B31DCC0BC0D1BF5DE953DBE11A753DC3B9BD39DB955DCA30C1F2535F59CB4#)(d 5 | #6418FBDFBCE6B9389971AF84468050995EC79FBCF42BE6AB5A5F96BF4A8000BE#))) 6 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/D54E9B75C3541D95C45E430DAC9645E9FB62C668.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T121447 2 | Key: (private-key (ecc (curve brainpoolP256r1)(q 3 | #049A80F4C7499AE14056F51D49D9899D7B73DB1BE7EE62EEEAA477C7A1F96F55F118 4 | CC0C0F89FF23E636C4F27AC51F6C571802606689A9FD9940D717EEDB0702ED#)(d 5 | #409D4A1B8E6B0C8CB466BCD8D6C0B1D832A73FD8241C6EA65F01EA2D3BFFE1A4#))) 6 | -------------------------------------------------------------------------------- /tests/openpgp/plain-3o.asc: -------------------------------------------------------------------------------- 1 | Stored by G10, because diff/patch have problems with 2 | files not having a trailing LF - and this one has none. 3 | 4 | -----BEGIN PGP ARMORED FILE----- 5 | Version: G10 v0.2.6a (Linux) 6 | Comment: This is an alpha version! 7 | 8 | RGllcyBpc3QgZWluZSBlaW5mYWNoZSBaZWlsZSBvaG5lIExGIGFtIEVuZGUu 9 | =ZQ6m 10 | -----END PGP ARMORED FILE----- 11 | -------------------------------------------------------------------------------- /tests/tpm2dtests/rsa.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2021 James.Bottomley@HansenPartnership.com 4 | ;; 5 | ;; SPDX-License-Identifier: GPL-3.0-or-later 6 | ;; 7 | (load (in-srcdir "tests" "tpm2dtests" "defs.scm")) 8 | 9 | (setup-environment) 10 | 11 | (setenv "PINENTRY_USER_DATA" "rsakey" #t) 12 | 13 | (test-tpm "rsa " "rsa2048") 14 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/8F9ABF3E5BBFC50D168DD524EB8F7263E7B33859.key: -------------------------------------------------------------------------------- 1 | Created: 20240419T125051 2 | Key: (private-key (ecc (curve X448)(q #5E42BC08BE62F4D740196FC1888D18F1 3 | D1BD6D21DAC63C7265BE2897F1C2CE5E9E2140AA3B65620FE0EA2FB443952821AD0596 4 | 7A6D32D849#)(d #28FCD007DA2A8D37E94628291FD0BDCFE06F07D1586A1FEF914A12 5 | 092896727F260F49B6A80081A89603F10FF9B40719BF16D20F2E5DA6D2#))) 6 | -------------------------------------------------------------------------------- /tests/openpgp/signdemokey: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ $# != 3 ]; then 6 | echo "Usage: signdemokey name user_id user_id_no" 7 | exit 1 8 | fi 9 | name="$1" 10 | user_id="$2" 11 | user_id_no="$3" 12 | 13 | echo "abc" | ../g10/gpg --options ./gpg.conf --homedir $name \ 14 | --sign-key --batch --yes --passphrase-fd 0 $user_id \ 15 | $user_id_no sign save 16 | 17 | -------------------------------------------------------------------------------- /m4/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 lib-ld.m4 \ 2 | lib-link.m4 lib-prefix.m4 progtest.m4 3 | 4 | EXTRA_DIST += ldap.m4 libusb.m4 readline.m4 pkg.m4 5 | 6 | EXTRA_DIST += gpg-error.m4 libgcrypt.m4 libassuan.m4 ksba.m4 ntbtls.m4 7 | 8 | EXTRA_DIST += autobuild.m4 9 | 10 | EXTRA_DIST += socklen.m4 11 | 12 | EXTRA_DIST += ChangeLog-2011 13 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-1-key-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hF4DkYWHjk/NdMASAQdAPDV6Y3JTfAGDX8pfZcT6YggC7qV3g8B1ezijcfIcdVAw 5 | +hCFGXS1EikBbZ21v79GtGh6Wp3fmyZFRQcsJZciLE/EFcbf9Mv4Q2qfRhKYHlqj 6 | 0lwBRYQrwTJbMNspOwd2MidjYYUxb/02PNiqZSrWUeX0iPsgHFToJol9RVAqs4Zz 7 | bZNKL6y/GeRIRZY12Lzo2TIXSLfjvbMTdkoz53mMKiUXsi/fCKXkTmgIheni8w== 8 | =kmqY 9 | -----END PGP MESSAGE----- 10 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/1E28F20E41B54C2D1234D896096495FF57E08D18.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWNjKDU6Y3VydmU3OkVkMjU1MTkpKDU6ZmxhZ3M1 6 | OmVkZHNhKSgxOnEzMzpAZ8zkuQDL9x7rcvvoo6s3iEF1j88Dknd9nZhLnTEoBRkp 7 | KDE6ZDMyOnicJkwzhZjYg5Fd8zqmEsZLPdGwe+z+8DU6lq6zj5HcKSkp 8 | =ZStX 9 | -----END PGP ARMORED FILE----- 10 | -------------------------------------------------------------------------------- /doc/examples/README: -------------------------------------------------------------------------------- 1 | Files in this directory: 2 | 3 | 4 | scd-event A handler script used with scdaemon 5 | 6 | trustlist.txt A list of trustworthy root certificates 7 | (Please check yourself whether you actually trust them) 8 | 9 | gpgconf.conf A sample configuration file for gpgconf. 10 | 11 | qualified.txt Sample file for qualified.txt. 12 | 13 | common.conf Sample file for common options. 14 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/EB33B687EB8581AB64D04852A54453E85F3DF62D.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWNjKDU6Y3VydmUxMDpDdXJ2ZTI1NTE5KSg1OmZs 6 | YWdzOTpkamItdHdlYWspKDE6cTMzOkAWeeZlz31O4qTmIKr3CZhlRUXZFxc3YKyo 7 | CXyIZBBRaykoMTpkMzI6VN/VGmlcwGBPcLTya2hfU4t37nMcFCKdNSXjJ5DFA0Ap 8 | KSk= 9 | =eVhB 10 | -----END PGP ARMORED FILE----- 11 | -------------------------------------------------------------------------------- /doc/howtos.texi: -------------------------------------------------------------------------------- 1 | @c Copyright (C) 2007 Free Software Foundation, Inc. 2 | @c This is part of the GnuPG manual. 3 | @c For copying conditions, see the file gnupg.texi. 4 | 5 | @node Howtos 6 | @chapter How to do certain things 7 | 8 | This is a collection of small howto documents. 9 | 10 | @menu 11 | * Howto Create a Server Cert:: Creating a TLS server certificate. 12 | @end menu 13 | 14 | 15 | @include howto-create-a-server-cert.texi 16 | -------------------------------------------------------------------------------- /tests/openpgp/tofu/conflicting/README: -------------------------------------------------------------------------------- 1 | This directory contains three keys (1C005AF3, B662E42F, and BE04EB2B), 2 | which all have the same user id, namely "Joke Factory 3 | ". 4 | 5 | The keys are stored in KEYID.gpg. The secret key material is stored 6 | in KEYID-secret.gpg (the secret key material is not password 7 | protected). The files KEYID-N.txt contain messages, which are signed 8 | by KEYID. The message is "N\n". 9 | -------------------------------------------------------------------------------- /doc/see-also-note.texi: -------------------------------------------------------------------------------- 1 | @c We append this note to all ``see also'' sections of the man pages 2 | 3 | @ifset isman 4 | The full documentation for this tool is maintained as a Texinfo manual. 5 | If GnuPG and the info program are properly installed at your site, the 6 | command 7 | 8 | @example 9 | info gnupg 10 | @end example 11 | 12 | should give you access to the complete manual including a menu structure 13 | and an index. 14 | @end ifset 15 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/449E644892C951A37525654730DD32C202079926.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWNjKDU6Y3VydmUxMDpOSVNUIFAtMjU2KSgxOnE2 6 | NToEOx/Lj6ZzYdOMdprseVCR/dwZaYPeInquOlapE22Udwppy4tQqj2jXDYH8d0Z 7 | 5uRvT/FD5lpcW+Cv+BAoo2auuykoMTpkMzI6Xka+GGkZ6tp+azZo+LPj0inV0GnO 8 | vact0wafLNZvlQQpKSk= 9 | =Rgp0 10 | -----END PGP ARMORED FILE----- 11 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/9D7CD8F53F2F14C3E2177D1E9D1D11F39513A4A4.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWNjKDU6Y3VydmUxMDpOSVNUIFAtMjU2KSgxOnE2 6 | NToEMIx/SmNEvuSVkX0Xq60JBOTUT4qTr3ywNqUOSaKijgdYKjwkIF+jpD+7TfSW 7 | vMznIU/Ued6WdRrqtQbi4KVzdCkoMTpkMzM6AIbAgwG04OO3x2tqboQ8eGekVM24 8 | 4oEWVVQjQwNeheokKSkp 9 | =RxSg 10 | -----END PGP ARMORED FILE----- 11 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ssh-ed25519.key: -------------------------------------------------------------------------------- 1 | -----BEGIN OPENSSH PRIVATE KEY----- 2 | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW 3 | QyNTUxOQAAACARyDcsgSrXAdihOuO5lN+qVKVPdwsXCmOZ61XYVUA1MAAAAJAOqdhVDqnY 4 | VQAAAAtzc2gtZWQyNTUxOQAAACARyDcsgSrXAdihOuO5lN+qVKVPdwsXCmOZ61XYVUA1MA 5 | AAAEATyEkvuhAExcEet+Rc2Qz2Fxg4iIi4XXJLpZFKwWsY3hHINyyBKtcB2KE647mU36pU 6 | pU93CxcKY5nrVdhVQDUwAAAACHRlc3Qga2V5AQIDBAU= 7 | -----END OPENSSH PRIVATE KEY----- 8 | -------------------------------------------------------------------------------- /tests/extrasamples/README: -------------------------------------------------------------------------------- 1 | Extra test data where it is not clear whether we may distribute them. Thus 2 | we only keep them in the CVS. 3 | 4 | dod-test9.p12 A file from the DoD X.509 tests suite, September 2001. 5 | Passphrase is "password". 6 | 7 | siemens-ZZZZZ000.crt 8 | siemens-ZZZZZ0EE.crt 9 | Two certificates from the Siemens CA featuring a trailing 10 | garbage byte and crlDPs with several names. 11 | 12 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-sym-ocb-2.asc: -------------------------------------------------------------------------------- 1 | Symmetric encrypted message of "Hello, world!\n" using 2 | the passphrase "password" and cipher AES256.OCB. 3 | 4 | -----BEGIN PGP MESSAGE----- 5 | 6 | jE0FCQIDAvYE/YfWbrWF7T3TKFmFzU/o5JSmot/OwIoDZc4sABYLMuTjVeCXUaRp 7 | unDEDnkCz0tsov+7ljb/tu2NUDGnybSsupE+E4bMf9RJAQkCEMhe3HeHBrv1jHsS 8 | gbmxjSQ/r1whc40/vh6ACbp/Yu2Te1Gf/mPxS9mgLDbIeah3G9/kXlheO4X2Hhuy 9 | iOCOZdpPiAp1QA== 10 | =U8eG 11 | -----END PGP MESSAGE----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/19C87B74004E9839F3D56992B0A9943BF90B56F7.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T121650 2 | Key: (private-key (ecc (curve brainpoolP384r1)(q 3 | #0472FB0D5A0A01E55C29E9FB8C5C425BDF37150DAFA3C556C786E2FEF9E011919E68 4 | 3DBC7731D1281FDB9780C4B7FD7785198516BE2033D06448BA7EA39C2BCB7128BC1E0B 5 | 3F81F2E734434E6FE96B29E19C57B423C5009134010CD87FADCA63A1#)(d 6 | #474FD16712E9A8EC87A6F94E553E369358985475B453E95CFFD2123E4E97679720AA 7 | 269CD6002DC688C9F3B9B8C456F1#))) 8 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/702F599E35E6E0BE68E6FDF25D887229D42780F7.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T121603 2 | Key: (private-key (ecc (curve brainpoolP384r1)(q 3 | #044F9318AAA2E3A3D28DA76F4B3B6B7CCAFA9B77A571E9A5BFFDEAC24A0FD96C6BB3 4 | 8F74FCF980696EDD5F4CBCA2B628AE24C9DBC1C60EF1D5809D4D544EBAA01F7744233E 5 | 248106D98A67CE1ED52D14FA942F6090C9988AA5EEB2368E19F679E2#)(d 6 | #0D146C6EDEC6AE142765DABBFFEF4EA6CA290EB7DDF99676F3F59AE6CA3942531B31 7 | 7330A07F5C8AAAEDFF69E6855301#))) 8 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/mail-test-1.eml: -------------------------------------------------------------------------------- 1 | From: Werner Koch 2 | To: wk@gnupg.org 3 | Subject: gpg-mail-tube test 1 4 | Date: Thu, 29 Aug 2024 15:20:57 +0200 5 | Message-ID: <87h6b3a2iu.fsf@jacob.g10code.de> 6 | User-Agent: Gnus/5.13 (Gnus v5.13) 7 | MIME-Version: 1.0 8 | Content-Type: text/plain 9 | 10 | Hi! 11 | 12 | Don't tell anyone that diplomacy can lead to better results than 13 | going to war. 14 | 15 | Peace, 16 | 17 | Your Privacy Guard 18 | -------------------------------------------------------------------------------- /artwork/icons/lock.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-data-1.txt: -------------------------------------------------------------------------------- 1 | This conjunction of an immense military establishment and a large arms 2 | industry is now in the American experience... We must not fail to 3 | comprehend its grave implications... We must guard against the 4 | acquisition of unwarranted influence...by the military-industrial 5 | complex. The potential for the disastrous rise of misplaced power 6 | exists and will persist. 7 | -- Dwight D. Eisenhower, from his farewell address in 1961 8 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-sym-ocb-1.asc: -------------------------------------------------------------------------------- 1 | Symmetric encrypted message of "Hello, world!\n" using 2 | the passphrase "password" and cipher AES128.OCB. 3 | This is the sample message from the rfc4880bis specs. 4 | 5 | -----BEGIN PGP MESSAGE----- 6 | 7 | wz0FBwIDCJ8LfaPl6mR3kJnjJuVACpCTbO+06OugjGdzcW0fJxRUCjj8rFKZSdrF 8 | KdPeMeFbSutynjMAM9vt1EkBBwIOXtK8HkcKvo8dZEx6bIpWew93ARlmEaFUupwl 9 | dM0FYoSo72gDXGI9k8xwikMhG7bq8rJ/fBjVcbzYOyCt06CLc68VuaCY 10 | =xyh5 11 | -----END PGP MESSAGE----- 12 | -------------------------------------------------------------------------------- /g13/ChangeLog-2011: -------------------------------------------------------------------------------- 1 | 2011-12-01 Werner Koch 2 | 3 | NB: ChangeLog files are no longer manually maintained. Starting 4 | on December 1st, 2011 we put change information only in the GIT 5 | commit log, and generate a top-level ChangeLog file from logs at 6 | "make dist". See doc/HACKING for details. 7 | 8 | 2009-11-04 Werner Koch 9 | 10 | Under initial development - no need for a ChangeLog. 11 | 12 | Local Variables: 13 | buffer-read-only: t 14 | End: 15 | -------------------------------------------------------------------------------- /doc/texi.css: -------------------------------------------------------------------------------- 1 | /* The gnupg.org standard stylesheet. */ 2 | @import url(/share/site.css); 3 | 4 | /* The gnupg site sets body margins to zero. Because we don't have 5 | the table layout here we have to set our own margins for the body. */ 6 | body { 7 | margin-left: 1em; 8 | margin-right: 1em; 9 | } 10 | 11 | /* Make the top header larger. */ 12 | h1 { 13 | text-align: center; 14 | font-size: 200%; 15 | } 16 | 17 | h1:first-letter { 18 | font-size: 120%; 19 | } 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /doc/examples/Automatic.prf: -------------------------------------------------------------------------------- 1 | # Automatic.prf - Configure options for a more automatic mode -*- conf -*- 2 | # 3 | # The options for each tool are configured in a section ("[TOOL]"); 4 | # see the respective man page for a description of these options and 5 | # the gpgconf manpage for a description of this file's syntax. 6 | 7 | [gpg] 8 | auto-key-locate local,wkd,dane 9 | auto-key-retrieve 10 | trust-model tofu+pgp$\r$\n' 11 | 12 | [gpg-agent] 13 | default-cache-ttl 900 14 | max-cache-ttl 3600 15 | min-passphrase-nonalpha 0 16 | -------------------------------------------------------------------------------- /po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /doc/ldap/gnupg-ldap-ad-init.ldif: -------------------------------------------------------------------------------- 1 | # gnupg-ldap-ad-init.ldif -*- conf -*- 2 | # 3 | # Entries connecting the schema specified in gnupg-ldap-ad-schema.ldif. 4 | # Revision: 2021-09-01 v1 5 | 6 | dn: cn=GnuPG Keys,DC=EXAMPLEDC 7 | changetype: add 8 | objectClass: container 9 | cn: GnuPG Keys 10 | 11 | dn: cn=PGPServerInfo,DC=EXAMPLEDC 12 | changetype: add 13 | objectClass: pgpServerInfo 14 | cn: PGPServerInfo 15 | pgpBaseKeySpaceDN: cn=GnuPG Keys,DC=EXAMPLEDC 16 | pgpSoftware: GnuPG 17 | pgpVersion: 2 ntds 18 | -------------------------------------------------------------------------------- /doc/examples/gpgconf.rnames: -------------------------------------------------------------------------------- 1 | # gpgconf-rnames.lst 2 | # Additional registry settings to be shown by "gpgconf -X". 3 | # 4 | # Example: HKCU\Software\GNU\GnuPG:FooBar 5 | # 6 | # HKCU := The class. Other supported classes are HKLM, HKCR, HKU, 7 | # and HKCC. If no class is given and the string thus starts 8 | # with a backslash HKCU with a fallback to HKLM is used. 9 | # Software\GNU\GnuPG := The actual key. 10 | # FooBar := The name of the item. if a name is not given the default 11 | # value is used. 12 | # 13 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/alice.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW2+WxMIKoZIzj0DAQcCAwQnUnqiwvOPU7gGepFTew8Fk5kmVexr+PvaqXgv 4 | 9wKxNzZrs4GvamULk9pl2euwJGKPBRJRz8RSNpW6HIIzAPoOAAEAgOZk+WDjrmum 5 | 0OygJdb6qJp27qsyXvMVZ8AGlsdYtUgS37QZQWxpY2UgPGFsaWNlQGV4YW1wbGUu 6 | b3JnPoiQBBMTCAA4FiEE/Zsg3TyYEj7ur4zFG6QVONLmVrUFAlltvlsCGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQG6QVONLmVrU7PAEAvOqeIRMiJ8Ne0tz+ 8 | K1aRz/np/umCQxO8ddm9mnr4M7EA/1z4YdD06wJXp4RXUI0G2QOHTY+QXMShCFrp 9 | ySArWQqN 10 | =3+Iz 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/bobby.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3WihMIKoZIzj0DAQcCAwTtUYI84wfNPCwa/r2ke7tXz0uv/En9LQZbW0QE 4 | nzHigEvMXLfyjfjCf5tQ2eVbKLbABxtKwDtC2bv8dMcmgqd/AAEA6EzyQYtLOL9v 5 | 4SErBRic7MmQfxFbEJIQSu2vtbWos/0QFLQZQm9iYnkgPGJvYmJ5QGV4YW1wbGUu 6 | Y29tPoiQBBMTCAA4FiEETT9Z9NgDD9LYRK/rpbrD7RJcyuUFAllt1ooCGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQpbrD7RJcyuWUjgEA9UreuOxgDzhSCGAQ 8 | 5GtxBiXkmp/IuH/rvNI8qZaVnoIBAPs/VUgy3eySjF6g9wf/UzvqwUdtoaYvkyC2 9 | a25O7Lxc 10 | =76RO 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/carol.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3WrxMIKoZIzj0DAQcCAwS4HzEJ0YwXZ1SWciHOmWdfnESTvwC3Zb/sWRu8 4 | zdIeZzxAwu8lYQaDq/eOgKeXQVW5gxkQG5rCWUazbG+gCBEIAAEA2QzHlkxFJkTg 5 | QvZuimqU0AySYsleRUaO9B9UARiUbOYOwrQZQ2Fyb2wgPGNhcm9sQGV4YW1wbGUu 6 | bmV0PoiQBBMTCAA4FiEEbGJzXkVMzdefpspgEHkROuwSgv0FAllt1q8CGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQEHkROuwSgv3MygD+KdusoDvz7WZbsjjB 8 | WI/HLhWfWfXsoAR9mN/5rZ94HDgA/1VqbvUcM+vPU62g7/0qoGqWCda3SURB6263 9 | Kirbk6hY 10 | =wkQ4 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/david.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3WzRMIKoZIzj0DAQcCAwQrTeILyHVpkkDsAyAlY7wz0PYjG48ShCYeTX2z 4 | 5f2bLxZGeepQeMiOXznPvCwRNMNpr63048+LGqu34Q9di5tvAAD9HITG0iG5SzeW 5 | cGMfhzGuXEn2P+9arb0OttTUcj+eGBIP8bQZRGF2aWQgPGRhdmlkQGV4YW1wbGUu 6 | b3JnPoiQBBMTCAA4FiEEoGB2NRmMq6LEZ/qmTOW7QuOYQAAFAllt1s0CGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQTOW7QuOYQAAJtAD+JxiDZttAb51FjB5o 8 | J1BksmzIrgL6ouorbLLRjVyk7rkA/0JqyLhh1K3vn4rYDbuKtvQAcfQbCndzwF9X 9 | uGQ/7gbS 10 | =EC4L 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/frank.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3W3RMIKoZIzj0DAQcCAwQs0QS2PEUXhpmsPlaTFOsXd8AoYqpa6xcc0+AE 4 | Mck1EzlqRlxeibvYeh/+yxjl18Ouww/BERB+PcoABXp00zXzAAD+Oybk8/6x5nc8 5 | ZNHkRIbfHW8oKh7jxbpob9X7QIfBpf8TcbQZRnJhbmsgPGZyYW5rQGV4YW1wbGUu 6 | Y29tPoiQBBMTCAA4FiEEzhoOB8+KIMv43EfW25AX265s0O8FAllt1t0CGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQ25AX265s0O+nDQD/RplCmAPQgMejhs2/ 8 | YmOqWrekyd4IWNj9zyI2n228WXYBAJ1/Wf1vBviOEqzs7t+C0iBExxJXViPlG0nN 9 | Z9aoiX1G 10 | =vnHF 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/grace.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3W8RMIKoZIzj0DAQcCAwRTGb7wRrdPa+mXxUNJoYgWbKfMDQH9M1H366PQ 4 | ga8L32TYccFzyCD8DuRYOQxzhnCtSHtdzK4QAwwGLaJV6GRjAAEAzBLT+dB5ga7S 5 | Lh7PepOB9yObDHrHAvXGXg9AUvEm3ZkQ6bQZR3JhY2UgPGdyYWNlQGV4YW1wbGUu 6 | bmV0PoiQBBMTCAA4FiEEuTX0uNoAmvvM3UE4ZlOhgwB/g0UFAllt1vECGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQZlOhgwB/g0W2AAD+KmW2DQALWTnsVnL/ 8 | QKdJ1J8DsaR1l+y2h7FUYuFttQsBALZYs2vUwOVBnAYyqbHogqgbPSxKRXeAxNqo 9 | epx6csv+ 10 | =05c1 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/trust-pgp/heidi.sec.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PRIVATE KEY BLOCK----- 2 | 3 | lHcEWW3XBxMIKoZIzj0DAQcCAwSINFpTZUYnxDDj3k16ljZIt58rh3cuUNIvUcqR 4 | zR9kdlmudQTaf1zUsW6F3r+t91t88kaA2Fcci3wkU0CAob0WAAD/eTlMM3JTEF6K 5 | yh8gxk1+mXRVUAmcGwr+1PzC3nzJAkgPALQZSGVpZGkgPGhlaWRpQGV4YW1wbGUu 6 | b3JnPoiQBBMTCAA4FiEEA4nAt5kOEFILM08jdW8Vce2pGEsFAllt1wcCGwMFCwkI 7 | BwIGFQgJCgsCBBYCAwECHgECF4AACgkQdW8Vce2pGEtwXAD/SVyIRiGnYPkqBVqG 8 | fI2MlTgN8+uirur2JdkcPoylCEMA/j3OeLRRT1docnEnvST1srmlXxZTbNUclnAl 9 | a2OZd7ME 10 | =1goe 11 | -----END PGP PRIVATE KEY BLOCK----- 12 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | No more ChangeLog files 2 | ======================== 3 | 4 | Do not modify any of the ChangeLog files in GnuPG. Starting on 5 | December 1st, 2011 we put change information only in the GIT commit 6 | log, and generate a top-level ChangeLog file from logs at "make dist" 7 | time. As such, there are strict requirements on the form of the 8 | commit log messages. See doc/HACKING for details. The old ChangeLog 9 | files have all be renamed to ChangeLog-2011. 10 | 11 | 12 | 13 | Local Variables: 14 | buffer-read-only: t 15 | mode: text 16 | End: 17 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/513906BEA5A40F25C9D6EBBCEF62D0784E7235A5.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T151658 2 | Key: (private-key (ecc (curve brainpoolP512r1)(q 3 | #046E26896EAC8D3D7F31F0B57439FFDBC0078841CEF7A9A98AB15F489FEE34E9D15E 4 | 2050EAFCA0CD4C7021E5E018F601EEC7EDDE1AACE959EA13F84143861489DD54ADAA4F 5 | F86E5FF75E3CC2EA6453716075DD908B9647B45257A64AE88DD390D7325B9E30698027 6 | 16B3743AFE7A7E44495AF625C3E009C581C63E341A16A23D07#)(d 7 | #1A1364149C7AB54D76D9345424EF755139031E85B5B7DEB0D221855D0189A579614B 8 | BCB6D01D9E02627F5C187338D7A176A830DF55422FE20D3BFF7812255C1A#))) 9 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/A1ABFD89944870D04039D40C218EE127254AEEE9.key: -------------------------------------------------------------------------------- 1 | Created: 20240423T151629 2 | Key: (private-key (ecc (curve brainpoolP512r1)(q 3 | #04681C6E8D70DEF5DED6097972643ECEA2538EA6CA3F9F87DC1E4B27D37CFDA3296A 4 | F129D5EEB331D836EC7A215CC1CF4103184D21F7AA184C1EE9C338BAB19147438F4C30 5 | 705E610E142C29F712C913D01132D862F5B65D7FADE1E145B4D9FB08E8B281DA94139D 6 | 11D3FDC0A55B85D1AFF0DDFE052779115A72DE03BB098E03DD#)(d 7 | #32C7C4790D709ADC404D85A791FB119C327FA8E88F835BE8C4076E250ABAD2858237 8 | 6496ACC61573108A9518789BCF13FA7D33D6D4324D962895F6554DD6A129#))) 9 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encz0-1-key-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hF4DkYWHjk/NdMASAQdAPo9H2rEUOisFYLfLQu91wGJCSIGs9jFiYwQsKlhsZlMw 5 | itRELU7+unvpPp8bIINqu4X6FP7hDzkZjOlQM/5JS0Z/q2jaWo4av8DCxYCK+yHU 6 | 0sATAZtMvHD99HWEAis3GUlFBzf/jxPBmayNElVyifc5eH4d2pRfCqlZPx9gKX69 7 | OYymTKuUkkmzCgBxVfA7XPdIdqTmDbSjVwQ2LFeB8hQv6PsYFHY1vqs4xVmeotIu 8 | pgG1a40+6f8HC9YDNn2lUzktui/mi/VNqDwV9vOHYklGqpVDd81nHAl1wGkAzgBs 9 | 8sYAcQjRAArAPKBaPTCtn6PZF4p4sDcabGImGR8cWwZHb9yxkHIomJRHUVTF1Uz4 10 | MUANuPQHpJE4eqKHUaE6wyTXyGEqJQ== 11 | =UB/1 12 | -----END PGP MESSAGE----- 13 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-1-key-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNATURE----- 2 | Version: GnuPG v2 3 | 4 | iQE0BAABCAAeBQJXaky2FxxzdGV2ZS5iaWtvQGV4YW1wbGUubmV0AAoJEKpD8dzH 5 | /tG3LSUH+gJ++JOZuy5GfHwK+5GEGmeVbex4U9N84tYYAwZOsOpQsh4JxT44IH8S 6 | OG9OViY9xUaUmeSvVsuDR890RiZtKOXO3hCMwUo+HCDFLXgIXxosLlS55G1vfi8X 7 | NPl78Y9NFdtwtAkirpOT0oULJcbZ9NItkPjhoxZ16TlgG3GUE6lZzlZJLFAVCw7u 8 | 6twOtPnq1AB4xB49rsIIW1XhCNrajwzBCghhl/PD4uM7ptSpGkZur5uOJ7nLjNEM 9 | Qo1mF+jQ6rjWA4OrvpmtW482yvNWejAS+JMlhNcP63hlBySjX3tFhGm8tWtUauCT 10 | 3Ky7iF4dFFmhpIXUBT6mMmci4WdA3gE= 11 | =VdOj 12 | -----END PGP SIGNATURE----- 13 | -------------------------------------------------------------------------------- /artwork/icons/wing.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-1-key-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | owGbwMvMwCEmPDU5Q4uJl4vx9AG9JIbwLLcnnCHl+Qq5qXkKOfn52akpCvmlJQpp 5 | Rfm5CiUZqQoFRZnF+XkKSYlFxTpcnP55qQrFieUKuaUpurpcnCFABflAVUVgweIS 6 | oCI9Li6//HKFnNQSoJEK6UCqJCOzWKEoMz2jxEqhBGgTxMTUomKFxKJUsJ2Zeelg 7 | S0H2lWfmpeSX63GFZ2TmAA0H2pefBpLIVShPLIarTixRSMzJAWsAOkVBVxfMhDgF 8 | pCc9v0QhI7OEKzMPLJGRmpiix9VRzcIgxsGgzMoE8rWMTEFiSVFmcqpeTmluaW5S 9 | okNqRWJuQU6qXl5qCQMXpwAsoD78YWRY1rZ/7kOLr4GrbvSU6HqKnVy6+1BllLYd 10 | c5ebbu2ltZ89GRkOBN6327Z+J4eaa5ppOGeA08P8xgvlcft8tz5u9i7jncwKAA== 11 | =uuW/ 12 | -----END PGP MESSAGE----- 13 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encz0-1-key-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hQEMAx13dhm+MQ15AQf/WO25gVi//kxCs0RH+BbJ5OWRRkyZ5fD7mYUs6anJ/zRE 5 | SE/SKwNk4KsWi4ajRR7b7txj7HQN8l6RpjUFXDJwd0onkb5JoCcvVIdaSTRR8z3s 6 | 5tkI/KTkPhlDPN+E5jCllUnJNSLoUwIIMw5Zgn0gRXxZeR6pUCB00+GmSPpoV+6X 7 | pEk8yuP5gcCFz2uiPmRl6QBezq6QLwlzYS6Kj+m2k2zqgEEgBc31aVnze8FTElbf 8 | Mm2wQ+w50PVaqHKkH7206PMIAd3Jsv2QP4XfgDDRxOe1/s6dHiCOfnhdrx/Fblp2 9 | VjluZFc/yL2YfofqqEWAxLLzh47aVN6JLr3bhdAVvNJEATedhlr+GTfhfI+KYO9r 10 | rZlP9aDHzvMKkqyX4WDD0O6a+698AnoseFVmrrBIsokdIt1RjLcpycE4BsCQOXHe 11 | EDBJtGo= 12 | =O1Fl 13 | -----END PGP MESSAGE----- 14 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/0D6F6AD4C4C803B25470F9104E9F4E6A4CA64255.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWxnKDE6cDk3OgD/BWuU2w+pPFZltSIytQ3wyNMV 6 | HbFSG5PDdx29GCJU9RP+rWXX4jcKmilUHH9e4CSDmwcHzTNzqlmDrnZgVXd0uhNx 7 | 5LuuJ1vmTbewdraFkYJ5OjoB3Eg7LneCII8M/0UpKDE6ZzE6AikoMTp5OTY6Toef 8 | zlcVKiPuobKfXHDhIUQPTfGic2Az47wkMoYHo9j9ZE7AWaliMdPz4jLyLfqqoU9m 9 | H8g+vJhyAc7UnAF2Sk5466FDypdPm5F9PTW3cqqIwJM4WgkSlM8J2hxH4YtlKSgx 10 | OngyOTob6nEVc0W4M+ZyrqMvp26DaKRnuFwcsDLsN11JLykpKQ== 11 | =Ghie 12 | -----END PGP ARMORED FILE----- 13 | -------------------------------------------------------------------------------- /tests/openpgp/pgp263-test.pub.asc: -------------------------------------------------------------------------------- 1 | Type Bits/KeyID Date User ID 2 | pub 888/A50283F1 2001/11/08 pgp2.6.3-test-key 3 | 4 | -----BEGIN PGP PUBLIC KEY BLOCK----- 5 | Version: 2.6.3a 6 | 7 | mQB8AzvqRosAAAEDeNMKLJMJQeGC2RG5Nec6R2mzC12N1wGLiYYJCsmSQd1Y8mht 8 | A2Sc+4k/q5+l6GHtfqUR/RTCIIudAZUzrQVIMhHDKF+5de9lsE5QxQS1u43QGVCb 9 | /9IYrOLOizYQ2pkBtD9LCrf7W2DccMEkpQKD8QAFE7QRcGdwMi42LjMtdGVzdC1r 10 | ZXmJAIQDBRA76kaL3HDBJKUCg/EBAZMoA3Yqqdix6B2RAzywi9bKSLqwAFVL+MMw 11 | W+BnYeBXF9u+bPpQvtyxgi0vx8F9r84B3HAhZNEjBWODF6vctIQhXhAhXIniDTSj 12 | HNzQ/+nbWnebQn18XUV2SdM1PzMOblD+nISte7+WUfWzlD7YUJPkFPw= 13 | =b498 14 | -----END PGP PUBLIC KEY BLOCK----- 15 | -------------------------------------------------------------------------------- /tests/cms/plain-3.cms.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED MESSAGE----- 2 | MIAGCSqGSIb3DQEHA6CAMIACAQAxggELMIIBBwIBADBwMGsxCzAJBgNVBAYTAkRF 3 | MRMwEQYDVQQHFApE/HNzZWxkb3JmMRYwFAYDVQQKEw1nMTAgQ29kZSBHbWJIMRkw 4 | FwYDVQQLExBBZWd5cHRlbiBQcm9qZWN0MRQwEgYDVQQDEwt0ZXN0IGNlcnQgMQIB 5 | ADANBgkqhkiG9w0BAQEFAASBgB8adQNvg/lKghatZ/Wy+tMUrarqYmTHB3SDKoDh 6 | B+riZDDxj/j/xR6utjmukvrAz6gz3BzKxU+AjAmXLpNesN1kv+oDS2DmAluFzg5e 7 | j/Ppo+Dudq2uJjZOsMry6xniMIwOhHsLhkLs2cuEb0eB6XAVfMzJvdTawuLaMeLN 8 | fGmVMIAGCSqGSIb3DQEHATAdBglghkgBZQMEAQIEECIzN1lVNsKXkPAEySzCpUWg 9 | gAQgzfoRhxREyicy4Vf6dfDJ+X4kaB4tGwsKGKYVV1uITjEEEFpk2DxEsIIxH66o 10 | pfqG9W4AAAAAAAAAAAAA 11 | -----END ENCRYPTED MESSAGE----- 12 | -------------------------------------------------------------------------------- /tests/openpgp/plain-3.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v1.3.5-cvs (GNU/Linux) 3 | 4 | hQEOA6urKKJHvid1EAQAreXx68NPUPpiNhqRyM//Y97N8hX5iAWq3WxXTa8D6Hy9 5 | 81Jy2wI4IeDhHIoWuXMIX2oVL//V1+LyLkrF/tutBVvqct0TUDUWqb4Ydpfk2l5j 6 | FfSybWW1fS4D1e0KVB3Lfj2Y4cCoT/+zyq7jUKQE++qNefPBzeaRWY4qeI6xXF8E 7 | AMj01HPe0ZwIBWqiIYv91Q7rGzEZm0ROPilgSQjUvCdsNQGhZpFGTl6uMSU0lmp8 8 | SD2EKv3xGeo2nMPy/Xp4JoYAMW+fjJh+wM6uT84nJgCVaeWyR7HAfF1U4rzqz7DF 9 | amPozuwuZiyjoo/wB1irZSl90t5Oa69oMesZtGMvwBN10mMBM0TotT4gjgviv5uY 10 | kLjD7DM79xy0drptNypmcVcjnDunM6bSEhTyq/fahdaULTYcwSOTXVMyesNpmLCb 11 | ziayleyuSaXPxIqWTgSfkab/W2FGWZvbexYaSaWXmDqsyzs81o0= 12 | =JDKF 13 | -----END PGP MESSAGE----- 14 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/C905D0AB6AE9655C5A35975939997BBF3325D6DD.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDIxOnByb3RlY3RlZC1wcml2YXRlLWtleSgzOmVjYyg1OmN1cnZlNzpFZDI1NTE5 6 | KSg1OmZsYWdzNTplZGRzYSkoMTpxMzM6QJASwJYtt7iJ0ho9ryWXzi6FYfC5KR+p 7 | uwXT8cWoMCuCKSg5OnByb3RlY3RlZDI1Om9wZW5wZ3AtczJrMy1zaGExLWFlcy1j 8 | YmMoKDQ6c2hhMTg6vuifz6Hv4GM4OjE5NzM3NjAwKTE2OpcAZjV5+F/YlpOPgp1b 9 | WQUpOTY6qFMSoZCpIVdpOB9iKNKcrowuxl4tpSya+TVyDRedFeYEJgrcUjLFa5qt 10 | Eqi/0/ceDijJBz1HGyZ1mRWwGOzCqhd/8ccVQlQp66GqO8x4Na9uYtfNurj1a7Gv 11 | kdi+aQ+UKSgxMjpwcm90ZWN0ZWQtYXQxNToyMDE0MTEwM1QxODA1MzApKSk= 12 | =FCvp 13 | -----END PGP ARMORED FILE----- 14 | -------------------------------------------------------------------------------- /tests/tpm2dtests/ecc.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2021 James.Bottomley@HansenPartnership.com 4 | ;; 5 | ;; SPDX-License-Identifier: GPL-3.0-or-later 6 | ;; 7 | (load (in-srcdir "tests" "tpm2dtests" "defs.scm")) 8 | 9 | (setup-environment) 10 | (setenv "PINENTRY_USER_DATA" "ecckey" #t) 11 | 12 | ;; 13 | ;; try checking signature and encryption on supported elliptic 14 | ;; curve keys. Note this list must be allowable by the swtpm 15 | ;; used for the test, which is why it's so small 16 | ;; 17 | (define key-list '("nistp256" "nistp384")) 18 | 19 | (for-each 20 | (lambda (algo) 21 | (define name algo "<" algo "@example.com>") 22 | (test-tpm name algo)) 23 | key-list) 24 | -------------------------------------------------------------------------------- /common/isascii.c: -------------------------------------------------------------------------------- 1 | /* isascii.c - Replacement for isascii. 2 | * Copyright (C) 2002 Free Software Foundation, Inc. 3 | * 4 | * This file is free software; as a special exception the author gives 5 | * unlimited permission to copy and/or distribute it, with or without 6 | * modifications, as long as this notice is preserved. 7 | * 8 | * This file is distributed in the hope that it will be useful, but 9 | * WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 10 | * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | */ 12 | 13 | #ifdef HAVE_CONFIG_H 14 | #include 15 | #endif 16 | 17 | int 18 | isascii (int c) 19 | { 20 | return (((c) & ~0x7f) == 0); 21 | } 22 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/8B5ABF3EF9EB8D96B91A0B8C2C4401C91C834C34.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZWxnKDE6cDEyOToAzNix+drHTYCMxS8NiUZNpVTG 6 | nWfzMjxCqVyZYt9CEm7A4JcfSbgRUppqKunwreuDmmNGFc1W+lT1oLfvJaDi/oQ/ 7 | oubgIcq0EZ5gOUydaj961PV3ltNmaaUSZsJ6jRxaa0FB1cgx6EVB88gR6JB4mAM4 8 | KV+Ct/f9QzPv2TMS8qspKDE6ZzE6BikoMTp5MTI4OjdzptnsiJ124yTW5ewhvUVp 9 | mDGuT9CuA3ggW65bjOhfravX5rfHMCXLPXMNXFgpA012vghVwun/ekkj7/rxapZm 10 | lE28YpSDj8Pwn/lkqNAjy466My+wUeoCgg7mEg/75is2ogKzx1L52nay7BGmfS41 11 | 5m7BBjWHsiUA6KRtFXt1KSgxOngzMTppFcbO0lgUP4k3sTNfSIfwBCt8YwBTmPk5 12 | a7hTI4y2KSkp 13 | =miH9 14 | -----END PGP ARMORED FILE----- 15 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ssh-dsa.key: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQCx0bAMKBKzYJugVtUFRRiF8jV4eT8mowj5C0q4QRPuPAGgPdqq 3 | g1PKmoIpCKLynqH29+BFErp1OOenWKRdu9claTu0lmIrMYeYw8liKsyMTg5/DxoV 4 | sRXD1DFoKdeZPDVUxOEQWsLf/IuuLXy4c9GxzET88wUDeieV+GcYQFADoQIVAKS7 5 | giO+VWOnwqr0p/csUWltpo8TAoGBAJcVpe9riXRuxJtmy1sbJJzOvtPtXk5MCpGs 6 | T/KEXJuVZvu334zkySDd9Is1ML2g5e81ONRCgCGHpwNOzoLC4+yp+pr1E+B2xkUY 7 | ouEtZWhKlbaYw7UdHiRRMEVJqvu+CdyI2gwOveDSrVhoXmGyz9PQVNoiuRXP2hMF 8 | C21jNnBrAoGBAILRAY0/mqsaOTII3uC8KvqwbKlmPnYMJr0COmU1PbOXvaeyWLqG 9 | NHhwPZg6OEhqEk+WMIwb2Dcv70AIYKQU8jX0elh0lk6pE8bomn7/ZIkqa60VG1Cx 10 | 8x2GUNag78LvnLfmUPAXOrrCPfbGuqdogCymUz1qrtEzdOSbeBvCMAAFAhQr1sV4 11 | +UWhlUoExLMDdIyT/ohfxQ== 12 | -----END DSA PRIVATE KEY----- 13 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/eddsa-sample-1-pub.asc: -------------------------------------------------------------------------------- 1 | pub ed25519/97965A9A 2014-08-19 2 | Key fingerprint = C959 BDBA FA32 A2F8 9A15 3B67 8CFD E121 9796 5A9A 3 | Keygrip = 0DD40284FF992CD24DC4AAC367037E066FCEE26A 4 | uid [ unknown] EdDSA sample key 1 (draft-koch-eddsa-for-openpgp-00) 5 | 6 | -----BEGIN PGP PUBLIC KEY BLOCK----- 7 | Version: GnuPG v2 8 | 9 | mDMEU/NfCxYJKwYBBAHaRw8BAQdAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJku 10 | Q+47JAa0NEVkRFNBIHNhbXBsZSBrZXkgMSAoZHJhZnQta29jaC1lZGRzYS1mb3It 11 | b3BlbnBncC0wMCmIeQQTFggAIQUCU/NfCwIbAwULCQgHAgYVCAkKCwIEFgIDAQIe 12 | AQIXgAAKCRCM/eEhl5ZamnNOAP9pKn5wz3jPsgy9p65zxz1+xJEr/cczFQx/tYkk 13 | 49tkeAD+P9jJE4SFD2lVofxn1e22H7YLvcVyHDOA9gpYWTNXiAU= 14 | =Jbi7 15 | -----END PGP PUBLIC KEY BLOCK----- 16 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/clearsig-1-key-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNED MESSAGE----- 2 | Hash: SHA256 3 | 4 | You are scrupulously honest, frank, and straightforward. Therefore you 5 | have few friends. 6 | -----BEGIN PGP SIGNATURE----- 7 | Version: GnuPG v2 8 | 9 | iQE0BAEBCAAeBQJXakWmFxxzdGV2ZS5iaWtvQGV4YW1wbGUubmV0AAoJEKpD8dzH 10 | /tG3OiIH/18NlMSXXRFRrxXq9OZySzJxgLI7BjGilRTqb4ALeFzNjmCwu3Y+Gkdg 11 | t7NjYjSe0erWiKYDEmALICwcpmSmXHA//gol3QkHJKIlKQGXJP1qLvIde5+lnK8K 12 | YVwLKLBQBQtlGMkMXPdUEn9PgzSoBFoFIqrzQmAdLO3yijSdm0Mzl9wyIhtbUXk+ 13 | VgX2d/6DRIwcKcFoX2QbFlM/z1kdrS6cOYFbJWavEpLDz9ON8Q8a8uqcBiqRlSpW 14 | eGOMMsysJs+44+qX6uE3hu2KJE9xvHwhSjJOxqtw8dN3KZ1+8IkxsDrvDAhn+Klf 15 | Hbtj647f/iTOF88o1ihO7goDi93Bpv4= 16 | =xAv4 17 | -----END PGP SIGNATURE----- 18 | -------------------------------------------------------------------------------- /tests/cms/samplekeys/README: -------------------------------------------------------------------------------- 1 | This is a collection of keys we use with the regression tests. 2 | For the *.p12 files see Description-p12 3 | 4 | ossl-rentec-user.pem An OpenSSL generated user certificate using a 5 | bunch of attributes and DC RDNs. 6 | 7 | webderoot.der trust.web.de Root CA certificate [2004-02-17] 8 | webdeca.der trust.web.de CA certificate [2004-02-17] 9 | 10 | 11 | gte.pem GTE CyberTrust Global Root 12 | 13 | cert-with-117-akas.pem A certificate with 117 subjectAltNames. 14 | 15 | steed-self-signing-nonthority.pem 16 | The STEED Self-Signing Nonthority. 17 | 68A638998DFABAC510EA645CE34F9686B2EDF7EA.key 18 | The private Key of The STEED Self-Signing Nonthority. 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-1-key-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | owGbwMvMwMG4yvnjneP/Lm5nPJ2exBCe5XbZI7E8O7UyVb1YwTk/LzmntDgzP8+K 5 | i9OzBCiSl1+ikJpYXKlQkq9QkJMIpDNSFZJz8svzFMozUvMUKvNL1ctSFdKByoAq 6 | ikrzwArKM/JzUrk4kzOLkkuL9bg6GU1YGBg5GORYmUD2icsUl6SWpeolZWbnO6RW 7 | JOYW5KTq5aWWMHBxCsAcl9zJ/od/6lrXa9snvZR9wrpXuEblNq/F3pzYWed8DZd8 8 | aApUzgkTy1K64+QU7HuL525G4vM3Yibfvq+VLTf/aFx46FSc7I2MpE2vElhvztZ5 9 | 8SQ2ZWe7m5apT9qu7UfXyhrxxfutyt+ot3daXp3hyxuVPzdfKD147N8djoc5634y 10 | 6n9Uvfa7Uec030zZjae3VHScMDY1tD7yQjrFNnXptYQXP+RPtD1l+Kn33I87jeHT 11 | SYnUk8r3zD71zahJbfZYwem0c+WbOzs/+qQeKeE/kaL+Y8GHeY9vbkq6eGNKWag+ 12 | Y+Ydhac6bccZHEpXHFBfy3iBJ9OrZub93Oulx4Tnz5U5tZuL31VZOSzlyESvoJeb 13 | /0kDAA== 14 | =T94L 15 | -----END PGP MESSAGE----- 16 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-2-keys-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNATURE----- 2 | Version: GnuPG v2 3 | 4 | iHsEABYIACMFAldqTMccHHBhdHJpY2UubHVtdW1iYUBleGFtcGxlLm5ldAAKCRAT 5 | lWNoKgINCgcQAP0f1yNJcHiBvy3nK7SSuzBf1EgSpy/lFlVSjZ1e/7CEKQD/W68C 6 | Zs8iGAyZplpsXKoz/g7LWSU5z/K3lLWwfre7gAGJATQEAAEIAB4FAldqTMcXHHN0 7 | ZXZlLmJpa29AZXhhbXBsZS5uZXQACgkQqkPx3Mf+0bdg8wf/ff4tEMfqdwk1dXJm 8 | 4+iyrNvKyCfv/T5W8BVL16wc8jn+80HJkHK/pSw5Rr6nsEf1P00u5AnothUPfUl2 9 | Yqvjg4+oQYvutePo1uLq0LA1lyWfQ1PV6I14B/dd9rBYdPjYIJJsPjr/k5N3Qz9M 10 | 8RNtDp/rPDVNVHzDbZN77oGE2jokGRfodRo6qnurqU4CnJYinrnzKV4wqrilNKlE 11 | R2CBieb3riDFUH59PH9S9fHuTHBV7q0HlxNJkI6NeoFwtRcS2f8P5B7FK7VCMrUB 12 | R46JExeWhvUlY2ZkKLU98bI3TLnFD0aQHRzKgJj8sWjD+Akzf408EmnOIyyf6MF8 13 | H7uIHg== 14 | =ErBQ 15 | -----END PGP SIGNATURE----- 16 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/sig-2-keys-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNATURE----- 2 | Version: GnuPG v2 3 | 4 | iQE0BAABCAAeBQJXakzUFxxzdGV2ZS5iaWtvQGV4YW1wbGUubmV0AAoJEKpD8dzH 5 | /tG3B8EH/247hq+cJ8eR8eXb1mv1Bdj9SwYI4yDs/xCZ7FIkU8vVSRYQpeYz59ie 6 | 3WZw8Cj1Sd44tr3+viVK682lWXwpHIAl3xUizP+HTFs23tfyH3er7IhDO/aApZ+V 7 | Wd+0oDJY7E/ztsD3CpU50ptKU9D72CgJT8K1/pwBtivzOiMto/scPwVFNDzGlny8 8 | FC06j+2FyXFkXCLwvz/Xdk+hJmv8lQRGNxnSIB5bU+0/GLEd9wJUFTV3WSs5enEM 9 | zqtGBh6v395BXnqrDHpOmT+EkWrpBOSo5vkPZrbN4bOC9nKSa9isCvU/+fjHW3Dn 10 | GpHVTH1hCWsKRhQjxuOOq/X21YpvgJ2IewQAFggAIwUCV2pM1BwccGF0cmljZS5s 11 | dW11bWJhQGV4YW1wbGUubmV0AAoJEBOVY2gqAg0KPJMA/0+3s4HPotwYw8K8pug3 12 | 7Mxgd9LNIBi/d0nSpBnZTHySAQDURAoIZp0IZI/PS7Jc9A8M3TgWdm1LUkj+qU9x 13 | 3L6RCQ== 14 | =3oWb 15 | -----END PGP SIGNATURE----- 16 | -------------------------------------------------------------------------------- /doc/opt-homedir.texi: -------------------------------------------------------------------------------- 1 | @c This option is included at several places. 2 | @item --homedir @var{dir} 3 | @opindex homedir 4 | @efindex GNUPGHOME 5 | @efindex HKCU\Software\GNU\GnuPG:HomeDir 6 | Set the name of the home directory to @var{dir}. If this option is not 7 | used, the home directory defaults to @file{~/.gnupg}. It is only 8 | recognized when given on the command line. It also overrides any home 9 | directory stated through the environment variable @env{GNUPGHOME} or 10 | (on Windows systems) by means of the Registry entry 11 | @var{HKCU\Software\GNU\GnuPG:HomeDir}. 12 | 13 | On Windows systems it is possible to install GnuPG as a portable 14 | application. In this case only this command line option is 15 | considered, all other ways to set a home directory are ignored. 16 | -------------------------------------------------------------------------------- /po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/FD692BD59D6640A84C8422573D469F84F3B98E53.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZHNhKDE6cDk3OgDbbxWAbWsheUJprK6VryMTpwDi 6 | YwMfL+92nrHqSfPqlpMWgDTia8qnpRSXbyEmSppp/6/Ygp+N3n32Kznq7PjHXiuW 7 | LlZGvZMtzmvaMA17y0GY6oLBxS7rhASXIKa9hEUpKDE6cTIxOgD/igRZcqjTHbCv 8 | I/mTtAPK5yJhqykoMTpnOTc6ALV10OZ7mJkWRMRYeGu1T3uwS7YYORJAHwd1fwKh 9 | Fys7P8HZaWIXqp8EqFxk8VUEiEo3ONN9jtIRgBmTbNywKbx6WfBItoYTPEoU0UGo 10 | oM1c/5rfmylyqwdIbMNXDhW4oykoMTp5OTc6AJNnAP6skpHlhVAmecLZT9eRzVoO 11 | q1ivUIntK2Mh47qsL74q6BBwz2sviPU2Y3pDlbb6Ed0qJAXvdCT24hlfoGoXzkoD 12 | InkPJTJeL0gCnwmQPjvXFFd71Cvg5LaL4lIQLSkoMTp4MjA6cZuCxaj7sT+FZqTO 13 | y2lNfMjaQMgpKSk= 14 | =s5nv 15 | -----END PGP ARMORED FILE----- 16 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-1-key-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hQEMAx13dhm+MQ15AQf8DKnGFmadCHP3k8blxdRa73pC3BL0fn9YSp2+EvKP7n4Y 5 | KsVHmKSZ43RL2pq24y5CImLCu6gPkyFGzTn/vmxq8E2Ul8WOvyJiEuRTczNr5NNs 6 | rZiF7dRMSjeZXCEHme24XIXKGzbnlkALHxh83GpgxVmLqKIlHEjgXYn9fneH85M4 7 | KTBxIxpAhIKzninnGk2ikmAS2C6z370tRLYP+tQ6gcP8BbehCZFM+TRqyS3aXjdq 8 | WaV3OgY7uWzj4P0PBXBWx0V829tfgRF9Z70Zx+HA1BpOqvmOcsztah1Jq/pyAaeR 9 | 7t2FunUZuUwbBIYg67/cxStYAXF9ih70tjSRfYBiotLAEAEvZfW1G7lMnfFCWxx8 10 | S8L+AD+BEdycI/kUZhgxFVde985CSYcpIcQZE4IuTYCoc96ZXsvil5Zlf5I//KDz 11 | toq+bxa+VU4Gr+h4lbcq8Sj8OPkx11/P4dOyydiYKLqEThig5l/h5IiROL8AvIMf 12 | TpNhu8TnECbjaEDaDt3RE3vIFP7ZV8zfpsibSFDaK9K0UhniSt/wF4NekBltUcBc 13 | kozlxWbvQ0k3A+xl1dBCBEpFaJrywRYFvz2sY5ISJS1X3ePJ4c9fsPXePTiy9a3W 14 | ItE= 15 | =rFeH 16 | -----END PGP MESSAGE----- 17 | -------------------------------------------------------------------------------- /tests/fake-pinentries/fake-pinentry.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | # Use this for your test suites when a perl interpreter is available. 3 | # 4 | # The encrypted keys in your test suite that you expect to work must 5 | # be locked with a passphrase of "passphrase" 6 | # 7 | # Author: Daniel Kahn Gillmor 8 | # 9 | # License: Creative Commons Zero ("Public Domain Dedication") -- 10 | # Anyone may reuse it, modify it, redistribute it for any purpose. 11 | 12 | use strict; 13 | use warnings; 14 | 15 | # turn off buffering 16 | $| = 1; 17 | 18 | print "OK This is only for test suites, and should never be used in production\n"; 19 | while () { 20 | chomp; 21 | next if (/^$/); 22 | next if (/^#/); 23 | print ("D passphrase\n") if (/^getpin/i); 24 | print "OK\n"; 25 | exit if (/^bye/i); 26 | } 27 | 1; 28 | -------------------------------------------------------------------------------- /autogen.rc: -------------------------------------------------------------------------------- 1 | # autogen.sh configuration for GnuPG -*- sh -*- 2 | 3 | display_name=GnuPG 4 | patches_to=gnupg-devel@gnupg.org 5 | #version_parts=3 6 | 7 | case "$myhost:$myhostsub" in 8 | w32:ce) 9 | extraoptions="--enable-dirmngr-auto-start --disable-scdaemon " 10 | extraoptions="$extraoptions --disable-zip" 11 | ;; 12 | w32:) 13 | extraoptions="--enable-gpgtar" 14 | ;; 15 | esac 16 | 17 | case "$myhost" in 18 | w32) 19 | configure_opts=" 20 | --with-zlib=@SYSROOT@ 21 | --disable-g13 22 | --disable-tpm2d 23 | " 24 | ;; 25 | 26 | amd64) 27 | configure_opts=" 28 | --with-zlib=/usr/x86_64-linux-gnu/usr 29 | " 30 | ;; 31 | esac 32 | 33 | 34 | extra_aclocal_flags="" 35 | 36 | final_info="./configure --sysconfdir=/etc --enable-maintainer-mode && make" 37 | -------------------------------------------------------------------------------- /tests/migrations/setup.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | ;; Nothing to do for now. 21 | -------------------------------------------------------------------------------- /tests/gpgme/run-tests.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (run-tests (load-tests "tests" "gpgme")) 21 | -------------------------------------------------------------------------------- /tests/openpgp/pgp263-test.sec.asc: -------------------------------------------------------------------------------- 1 | Type Bits/KeyID Date User ID 2 | sec 888/A50283F1 2001/11/08 pgp2.6.3-test-key 3 | 4 | -----BEGIN PGP SECRET KEY BLOCK----- 5 | Version: 2.6.3a 6 | 7 | lQGdAzvqRosAAAEDeNMKLJMJQeGC2RG5Nec6R2mzC12N1wGLiYYJCsmSQd1Y8mht 8 | A2Sc+4k/q5+l6GHtfqUR/RTCIIudAZUzrQVIMhHDKF+5de9lsE5QxQS1u43QGVCb 9 | /9IYrOLOizYQ2pkBtD9LCrf7W2DccMEkpQKD8QAFEwADd0Kk5aeyFM3zbPgfikkE 10 | 7iFg9h2LG3nARmA4wAnCZaQ3CS5zRHCdXOf5KLkm6xFza1yMat4iWx6ULvuuNpIc 11 | RmkHccyXYkRi3Hvacd5A9VCNw1UKtCdaCKgacsfplU0s1xYWGZd4J8Jg8boSfW5W 12 | gwG8Dc9R20HHno8uD2vfr5rg8ElWvbFyJI/j4eCVAd+NYAGNvB8I3VP38IIYcavh 13 | YYcGjrpxbGVRybsBvA9IJltpGaVulxwpeCp5NecCGgoAUsN4Ktf42Pg7HXDlQL6r 14 | Xs/YggMztj4NzEgBHXAOLShdKKhDAbEByVSKXZD9A8J+RejXBl6VbuJmD/5qOvph 15 | GAPKS3ahPDj8438HyD7yIDLYYVRKfxjWHLubc46Pgui0EXBncDIuNi4zLXRlc3Qt 16 | a2V5 17 | =l/aV 18 | -----END PGP SECRET KEY BLOCK----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hF4DkYWHjk/NdMASAQdALju99o8iXdJNYTuUNrk3ZgfLNvw4GuaLed/2PDLbLUEw 5 | LaFnwh5u4djUOPPtZHbNzmJimOobJxYg3gwDew3ERLBqweQqRcqFaypu9+Ss86Df 6 | hQEMAx13dhm+MQ15AQgAwHCbQ5TeyLGsrs+oC/dB7AZphqWwsSoVXTuxAi3NPbEF 7 | upvp3mu19HpBJFXijsjysaMbwUGB+DRVhMYwAANfnJJ2oxltNbhMeGic/vRsCjHx 8 | cJhjv/T0Jc3Yuh3YFlp4V3wMiTa7METMBL/2CQtT+MSQbBubkegcNPBkB5ss1civ 9 | WpQckerDKtv9ik0+gvYCgHw0wLyf7UmHRekiJigUats0IhEHoZYv/qa3kvcmJaKV 10 | WffHsOwxoS0jCwj15eV2YHQVJp7nnyxXlX9E7z4gzjxH4MbXpi+tVvBLGM8pHEg6 11 | EJ3U7koABqQ8446CnWC+OJKWO5cHoJjkOSCGALDoENKRAenz/t9qGzMWPInAx2iH 12 | lNg2brHS7UM8z53ESeqpYfaHS1QiMvtZWo8Wl9QPJa8vfrDw/bCtNALYU/OHw95N 13 | k9E+/JgWk9oQFc+syNHDJzw0qfEzblxzng5/d6W8vjggFkIrKwMwE1/6x1w6ZLoV 14 | MYG0TXjnLNBGzGCFRSoDx/RuzybgdDSySV/6OFfPAMSo1g== 15 | =iPxe 16 | -----END PGP MESSAGE----- 17 | -------------------------------------------------------------------------------- /tools/der-to-pem: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Convert A BER or DER encoding to PEM format. 3 | # 4 | # Copyright 20032 Free Software Foundation, Inc. 5 | # 6 | # This program is Free Software; as a special exception the author gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | # 10 | # This program is distributed in the hope that it will be useful, but 11 | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 12 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | PGM="der-to-pem" 15 | if [ $# == 0 ]; then 16 | input="" 17 | elif [ $# == 1 ]; then 18 | input="$1" 19 | else 20 | echo "usage: $PGM []" >&2 21 | exit 1 22 | fi 23 | 24 | echo "-----BEGIN CERTIFICATE-----" 25 | mimencode $input 26 | echo "-----END CERTIFICATE-----" 27 | 28 | -------------------------------------------------------------------------------- /artwork/icons/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Sans-Serif; 3 | color: #333; 4 | background-color: #fcfcfc; 5 | } 6 | 7 | img { 8 | padding-right: 0.1em; 9 | } 10 | 11 | /* Factor 0.72 */ 12 | 13 | .fpr { 14 | text-overflow: ellipsis; 15 | white-space: nowrap; 16 | overflow: hidden; 17 | } 18 | 19 | .fpr12 { 20 | font-size: 17px; 21 | } 22 | 23 | .fpr16 { 24 | font-size: 22px; 25 | } 26 | 27 | .fpr24 { 28 | font-size: 33px; 29 | } 30 | 31 | .fpr32 { 32 | font-size: 44px; 33 | } 34 | 35 | .fpr48 { 36 | font-size: 67px; 37 | } 38 | 39 | .fpr64 { 40 | font-size: 89px; 41 | } 42 | 43 | .fpr128 { 44 | font-size: 178px; 45 | } 46 | 47 | .fpr256 { 48 | font-size: 356px; 49 | } 50 | 51 | .text { 52 | column-count: 3; 53 | column-gap: 40px; 54 | } 55 | 56 | h2 { 57 | padding-top: 0px; 58 | margin-top: 0px; 59 | } 60 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/clearsig-2-keys-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNED MESSAGE----- 2 | Hash: SHA256 3 | 4 | "The geeks shall inherit the earth." 5 | -- Karl Lehenbauer 6 | -----BEGIN PGP SIGNATURE----- 7 | Version: GnuPG v2 8 | 9 | iQE0BAEBCAAeBQJXakX/FxxzdGV2ZS5iaWtvQGV4YW1wbGUubmV0AAoJEKpD8dzH 10 | /tG3g1AH/iQakK5FoXpNQs6Nj9NR4NUwtIPmlLS/Tas21CDs1Lo1Fum1gjU0VUFN 11 | 63+FTnbRg8nXfee9RPddLnec9lYWVqWSkggTFER8qQrj/EurltLMv/tHAZ+B0ueI 12 | mh2XkNHA6KXu3DFipAXQezWaUqi485TGTY6Qv9JtG/plOZBakcRTgCSAamyaDPBA 13 | PHgp85bPf5Zu4aFRBfmJp+IUH/EFLNFIHNXpYyZZy5ZdB3GuhAHGFp6tlpRFk4Z5 14 | vRU9BtdoeiIeoRHp4orMESGlbeZxUXG3CCrgzVk0e1pab0NrehwQ23+axMxFipya 15 | t6mi8Zrxpp7eFc9+ozp+7r4cH//uw8+IewQBFggAIwUCV2pF/xwccGF0cmljZS5s 16 | dW11bWJhQGV4YW1wbGUubmV0AAoJEBOVY2gqAg0Ko1YBAKVC98xZvGsNoaq0yDHG 17 | AJKmsvjnc8z3qmEHzGtxOQCiAP92ffXZr0EM4qNqbDR0EAws9qNo0XlDPcm0LDxy 18 | 0JVcDw== 19 | =Ta4l 20 | -----END PGP SIGNATURE----- 21 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/eddsa-sample-1-sec.asc: -------------------------------------------------------------------------------- 1 | sec ed25519/97965A9A 2014-08-19 2 | Key fingerprint = C959 BDBA FA32 A2F8 9A15 3B67 8CFD E121 9796 5A9A 3 | Keygrip = 0DD40284FF992CD24DC4AAC367037E066FCEE26A 4 | uid [ unknown] EdDSA sample key 1 (draft-koch-eddsa-for-openpgp-00) 5 | 6 | The passphrase is "abc". 7 | 8 | -----BEGIN PGP PRIVATE KEY BLOCK----- 9 | Version: GnuPG v2 10 | 11 | lIYEU/NfCxYJKwYBBAHaRw8BAQdAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJku 12 | Q+47JAb+BwMCeZTNZ5R2udDknlhWE5VnJaHe+HFieLlfQA+nibymcJS5lTYL7NP+ 13 | 3CY63ylHwHoS7PuPLpdbEvROJ60u6+a/bSe86jRcJODR6rN2iG9v5LQ0RWREU0Eg 14 | c2FtcGxlIGtleSAxIChkcmFmdC1rb2NoLWVkZHNhLWZvci1vcGVucGdwLTAwKYh5 15 | BBMWCAAhBQJT818LAhsDBQsJCAcCBhUICQoLAgQWAgMBAh4BAheAAAoJEIz94SGX 16 | llqac04A/2kqfnDPeM+yDL2nrnPHPX7EkSv9xzMVDH+1iSTj22R4AP4/2MkThIUP 17 | aVWh/GfV7bYftgu9xXIcM4D2ClhZM1eIBQ== 18 | =+9EF 19 | -----END PGP PRIVATE KEY BLOCK----- 20 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/signed-2-keys-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | owGbwMvMwMG4yvnjneP/Lm5nmADiiglPTc7QYuLlYjwdm8QQnuVu45iTo+CWmZeY 5 | npOq4JNYXqyQm1ipkJSqkFRZkFhcnJoCZCjkpCYW5WXmpSuUZKQqFGfmFgDVJhaV 6 | KOSnKaTkA8W5yjNLMvJLS4DymXnZQAE9ro5qFgYxDgZlViaQJTIyBYklRZnJqXo5 7 | pbmluUmJDqkViSBj9PJSSxi4OAVgzpoVw/A/fBVnTGzGFd0DUzZcu6HNcm/6mpaZ 8 | CeuOc+89eOsmg9YGRYb/5U3LTx4pf5Ru3ceW/X+Vkdq22kuGCxqaVwYJHZSL/xfN 9 | 08lowsLAyMEgB7FdXKa4JLUsVS8pMzsf3WJY8LR2sv/P9VLy+VZyrvhebd6WMyoz 10 | V/kIXW+p2WbcI1vw58xdofBbU9eHtM2Y47ft6Bm5bS0NL6d6zzl7YsfLl5qKLFJb 11 | s/cVKFe1MM7POqrEqzEr7cqe3amsN08ntDsvbLr3tc1ATKhTgMVKMIhjznseR54F 12 | L1tyl7eUv96SYCbIf+uzu5vZnjWHvulP1zm579qel7afa77Enc94Nnn+U4Xf7F8W 13 | PA5Kumj01S639ux3PcYFLR9+tey0bTDyNPhkqiddvLY9O8ztd94SDw4ph4+bbol+ 14 | 5S1+5dJ1vl1w7VSbtSf5dPfV1uxLr7UQnvGiwplnVpzt8XOvFXbHZ6yx2Hm52Kry 15 | 0TndFZfZqkRzFGxn7bkOAA== 16 | =iswv 17 | -----END PGP MESSAGE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hQEMAx13dhm+MQ15AQgAkI1KV+RVcuDJlzwXShDT9d2r+1GlV2r16z5vp0aDLETz 5 | Ga+OCTSiDR8So9xqM8kNKp12t2OrhmIerYu3dHQxZAWuqbhj/xkxfh0OyAP2wZb4 6 | MtwXIcRKWgUz5pUPYcp/7+Eo/dlBs1QaqxF8Lnh5jAlpxDeQvfSgjTZicZAS0rtY 7 | XONLWaX4nuuHb2DNrQWLDsMvDrwu8fJLPMNy7+tEzECs1G7Tv7D9xu/QHbGw6Zvk 8 | fxjWlLsD2nUQYwn/GpqitD02y7BHDoZKXIO8GccHdPhPOxZHLCiGIHQ7r61ResHA 9 | 3SlqEsNF9OV81RaIg55ndM72ZLbDTC8ZQDIu/5cXaoReA5GFh45PzXTAEgEHQIFu 10 | PbA2WmzBGnzmBfXmRg8AVKE2JVvSYLjBynfTPbtKMAUbz9U2grH/0BdZPWaGuYUh 11 | HNPg9vmmzL5Ch3rSSunzhtxadesh/Gsic9ETkFz/d9K3AVzb9WEneFuEkk43lJAu 12 | X+btUyQ8rBhkmBQPorvZN+1i+NL0XOP3UJ0iIpo3bn/J7Dy9IEDojQAFtdOBuw6F 13 | hbWOMoRVodE5aA6JcRDR2HLj68X3TAou91a8krHJ8NAK84ilrZd07XEwGtNbaom5 14 | rZK9xNFIUV0Ddog6r5rJ/pqsN6o3iEYI2uhh0KYntbIHrRD05ZWRCXhQIGPb6qp8 15 | wEEydtbQpfJFRru8q7Y0V6MlzYflxI1H 16 | =m6X7 17 | -----END PGP MESSAGE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/343D8AF79796EE107D645A2787A9D9252F924E6F.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6ZHNhKDE6cDEyOToArHGqWD0rP0Nn/c3nYELTD4m1 6 | gqR7f2+l1ZUMdHcweYwn/fVjaJKmbR+9GzeHWP398FWYs5mCU1DIfrZLF0nJnAJ6 7 | WRnN9TL+oub1BqqLvCmDSngRuZZ2gUX8DVmD8xTsPnDnG74QDUnvtnpDIAs32sg5 8 | dnusstrriXD8xXgt0g8pKDE6cTIxOgC449htJbbp5rkJHvBDs4YxEIkk5ykoMTpn 9 | MTI4Ol+ITxpSMOT5R67Bu4XWoYU7nVeYURpb6LJ8LK2CV7ygECwFdRFdukiGFB+a 10 | TP8nF6xtuXalaBuerkKp4QXVKqOIkp7MWN2TAOOg9eERHPT//whryf49meNYMPLv 11 | KAe60udHY76Glm+Zso+24WnEwXX2od1PHVV3CItWRb7YmhgGKSgxOnkxMjg6AgXt 12 | 40h2lpiIHTjbu6fiCBzbr5j2eQX3cNoydkRphJ66bqD+DsPW/Ag0WBCQxgRaLgMr 13 | db64fQT+fyjbTBLbC8ytt5hpCbm/q5x3TTXDAUNjoB3CnA/tQItBy7qqq/A0d3FZ 14 | grr6AixK58uZ4wauy8LRZCph67UZ8akcgwJkmVkpKDE6eDIwOn/Y1rjZASGMK9IG 15 | b1y/ZDKT0zkTKSkp 16 | =muRa 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/clearsig-2-keys-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP SIGNED MESSAGE----- 2 | Hash: SHA256 3 | 4 | The very remembrance of my former misfortune proves a new one to me. 5 | -- Miguel de Cervantes 6 | -----BEGIN PGP SIGNATURE----- 7 | Version: GnuPG v2 8 | 9 | iHsEARYIACMFAldqRlwcHHBhdHJpY2UubHVtdW1iYUBleGFtcGxlLm5ldAAKCRAT 10 | lWNoKgINCubRAQC0VyMKKFXWWxLOwCFO5ovhONxq2VLQ6c7jklZt0AAETgEA8ikc 11 | doPxIamOCta2QwgS0JHPhvgmL98GWM1dMLfD3gOJATQEAQEIAB4FAldqRlwXHHN0 12 | ZXZlLmJpa29AZXhhbXBsZS5uZXQACgkQqkPx3Mf+0beYKQgAp60uW2OmVAyaP2MC 13 | F6alWqWVkxw66L6QW6ciOpiuqjEoc9TN6pNIIP+MeSPu+SE71kw4nD0Vvu5mgH/2 14 | 74dZMf7vFX3vERL/g8u7lTOv2GkXyKpFKAwvMxqPJ7zKUH9z6LxeBc2tNImjQ4mS 15 | 7OL30n+SPrsY4FR3BS/d/EY2y+L9spi92oiJeXjgNHH7iIr5iWiSSXS7AwBla0zu 16 | r+mkX2Aats488CEfENACugg79q7cNLpUioeKdOHcqDxCS9wSpYK5Y2+IBqmFEv6t 17 | DKZ1iZnLlk6rHpkZ8aQi96PFbZVZPGnxsOFKkNPWwHjniKeJzoJwd7FqR5i2vrsJ 18 | UiWYwA== 19 | =gWAP 20 | -----END PGP SIGNATURE----- 21 | -------------------------------------------------------------------------------- /g10/exec.h: -------------------------------------------------------------------------------- 1 | /* exec.h 2 | * Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc. 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef _EXEC_H_ 21 | #define _EXEC_H_ 22 | 23 | int set_exec_path(const char *path); 24 | 25 | #endif /* !_EXEC_H_ */ 26 | -------------------------------------------------------------------------------- /m4/codeset.m4: -------------------------------------------------------------------------------- 1 | # codeset.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2020 Free Software 3 | dnl Foundation, Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | dnl From Bruno Haible. 9 | 10 | AC_DEFUN([AM_LANGINFO_CODESET], 11 | [ 12 | AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 13 | [AC_LINK_IFELSE( 14 | [AC_LANG_PROGRAM( 15 | [[#include ]], 16 | [[char* cs = nl_langinfo(CODESET); return !cs;]])], 17 | [am_cv_langinfo_codeset=yes], 18 | [am_cv_langinfo_codeset=no]) 19 | ]) 20 | if test $am_cv_langinfo_codeset = yes; then 21 | AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 22 | [Define if you have and nl_langinfo(CODESET).]) 23 | fi 24 | ]) 25 | -------------------------------------------------------------------------------- /tools/clean-sat.c: -------------------------------------------------------------------------------- 1 | /* clean-sat.c 2 | * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 3 | * 4 | * This file is free software; as a special exception the author gives 5 | * unlimited permission to copy and/or distribute it, with or without 6 | * modifications, as long as this notice is preserved. 7 | * 8 | * This program is distributed in the hope that it will be useful, but 9 | * WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 10 | * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | */ 12 | 13 | #include 14 | 15 | int 16 | main(int argc, char **argv) 17 | { 18 | int c; 19 | 20 | (void)argv; 21 | 22 | if( argc > 1 ) { 23 | fprintf(stderr, "no arguments, please\n"); 24 | return 1; 25 | } 26 | 27 | while( (c=getchar()) == '\n' ) 28 | ; 29 | while( c != EOF ) { 30 | putchar(c); 31 | c = getchar(); 32 | } 33 | 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /tests/fake-pinentries/fake-pinentry.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/php 2 | 9 | # 10 | # License: Creative Commons Zero ("Public Domain Dedication") -- 11 | # Anyone may reuse it, modify it, redistribute it for any purpose. 12 | 13 | print("OK This is only for test suites, and should never be used in production\n"); 14 | while (true) { 15 | $line = fgets(STDIN); 16 | if (False === $line) 17 | break; 18 | $line = strtolower(trim($line)); 19 | if (($line === "") || ($line[0] == '#')) 20 | continue; 21 | if ((0 === strncmp("getpin", $line, 6))) 22 | print("D passphrase\n"); 23 | print("OK\n"); 24 | if ((0 === strncmp("bye", $line, 3))) 25 | break; 26 | } 27 | ?> 28 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6cnNhKDE6bjEyOToAqCYxh+c0mGKVkNRLiSe19rSb 6 | OgLVJcL6dH1EnawO6klyypIbrDom7DNNTlp7TMlwQ+UsKbmT8jwkU08/awg6W9Wq 7 | 5LCABUStYrVcwJJlf3p4lBru0BSRlaKuIslpk5Powfj2lPXX6o1eRHsnxk9FTD+M 8 | GcWkhfL9HF+Rq8vPcicpKDE6ZTM6AQABKSgxOmQxMjg6NPUmd199hJrT8TOzgIRl 9 | vkfedZRLziNM3yBO2nvEjMxKH3uJxKHh/VUg/VLo72On/HIyiQeeDVYcuLJGTm7e 10 | degk/9C85hT5K4VUF9+LXXDX1Vz/jQdZxq+JwUE/AdlAEC9fkFQzc0ftI832mgjR 11 | OASwMVphqYUQERz00ve+NDUpKDE6cDY1OgDJoHlM5kAfmQ3HQsykH2QoWnxA6mTa 12 | aiCn4XIPEsrXCiwObiwWBj3I+w2OTWbodzxWldxBsaYyVCM3bKR6eldFKSgxOnE2 13 | NToA1X6NuSiiTP6lQcAqnoPC37LE6PUeoohF05hVoRotOm+/sIcve7ZrgVBvELEr 14 | q6ZU8fUeCUQoMc2ztQEHyC+0eykoMTp1NjQ6HOTajn4vJZPXy/q5sNWhQ7pZDHeJ 15 | clqSismtIwvuCV3wMAQMIUr+OWTlGHOCYa8FnBn7PbE6TevGdDEE8CQcfCkpKQ== 16 | =AhP7 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6cnNhKDE6bjEyOToAx9HkS9EewRBeMrB/4u8wPapd 6 | l6spEli/46To7WcmBhmvEZJdG0ZQatYNvgkREqOadsgd49onjYaCkBSJtrJrSUOS 7 | +Mo56Ff/52ejToFyfuZs6Ky0UGm9tvKEJw3aZiGNAZ5Pyvp+Jf+xLDwvj0xHHAj8 8 | lEEhOSrIrGvq4yx/+nUpKDE6ZTM6AQABKSgxOmQxMjg6DfYRUGbNEko1eq8wUEfM 9 | BBL6NRWlaf2/coVcLPIvCvASdlTWoog4KC7KiQOTKM07hp8Wz4u3hcDnMG/u60/u 10 | BPHPHCZThYlpGLVMhQwI46NZtMcRSNBp1rhJ5dt/FEcSFvseJOgce4PD/96bB3+c 11 | dbnvKcWM7ncRLj0wVfBzKeEpKDE6cDY1OgDanvj9klp9UkAgNwRxswOgiFOlGBsz 12 | J4dpCZHzWDCjYUd3eGWieynAnfuvctGTaMyB5xT7RwruntbgeRgPpejZKSgxOnE2 13 | NToA6fv/DFn2WVRAODQVQQGGxsvO2cM847IFJu96BbbxOLaZJ536RE980c2a9q/9 14 | B4hOYzKV4B4NI03u5/BqoOY8/SkoMTp1NjQ6ZIvWN1fksXhQMypVTLg8R81igqS3 15 | GXKmQ+KrVEfTIHnXKxH7tyfDeJSS6nfpfARhAe2mP3TIrbjX+9PR+QmkgykpKQ== 16 | =dUou 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6cnNhKDE6bjEyOToA5Hj2C3jzD8OGtLaw7+P2gYdA 6 | fR4s4YS3/AK+kYYtbm5EX4srysyUbylbQDQXUvRzw4FPkjXbboF6KjHw8icNWHCa 7 | zwSfPTfCDvi0JIildkfNqwBzCmNDRn++X8rvAeDCEJ/BtfcgfgmDTElSJOd+3B4X 8 | wnmtnBW54KlR42PLobspKDE6ZTM6AQABKSgxOmQxMjg6AkvpIaKimXAwf3G1m1nl 9 | +LEDKdo55gosry8XToQakvdeXyUerCkplTS1uax8smOQUvrIPYvvnQZ7S9wuPli3 10 | FWH6l/O+2Cgdti99xTSPeJRBeCuf2vv3bAgu/0tyB8MZgRRM9j5NJCeGO7o4DwRg 11 | UkLWX2+R5p4daI2LRUfmV4EpKDE6cDY1OgDr3h6mXHrLT4qSNexzz8BAvK/PlHMA 12 | MAJcy76lXSkl92+c4BcpjFDr5Vpaq/VXoLC4L/IlnEEqY967pAycdLH7KSgxOnE2 13 | NToA9/lAf6hJ4dHQ6ux5BH8DImq2OjW+sK3tIzzf6fpVkPjDuqOYidm+OL2SFCJa 14 | ymSWdVq2gQYbkcdRXdGKVJWDQSkoMTp1NjQ6NeHBLEuc/VX+h3ifO1jyMlh+9nZs 15 | HLkQzUyi2HnrXJ224cjvgc312wvtBQMUyLARWuEuMVMAwWofjX+GZXLz0ikpKQ== 16 | =Rw+Y 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v2 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6cnNhKDE6bjEyOToAvkUCG0xYaTIkZiTwd1wCUF8a 6 | Q2+YdrBGjSfzCyB8DzbPozYA29eOAayDg9RuesQGISmFQ6YRSINsAogdNfZmKu8j 7 | VMp/2mRQR6necW4OKkdtdnAI8B6Qaj/clBJt990RahXcrXG13fa0n72TpRbxmUUs 8 | Y4KRpbCRm44rR9AAWPspKDE6ZTM6AQABKSgxOmQxMjg6IvI/yc3C60dXYh9kvzd6 9 | AVMGWt5zTVFhE+oDfMaxooW5q0tu6vHzViFeYmcxB4FbctnSbTNiN0RUIT7oxpGE 10 | AAumKRejGAaMwiKZz3bMV05l0LI0Yn10GzXsLtRx+iKzpUxThZETRU43BJeMqP5/ 11 | rVqdQAu47pClgTwQWn6bXNkpKDE6cDY1OgDXtvl8CYDL/Q+9qZDCyItE5j7X4wRV 12 | en939fdDepuYAgsLLc7yqnDUOzajXWyx6PxygpnRs5cwmo2zbtZyyWKFKSgxOnE2 13 | NToA4c2I2FZT8gQLl9E3LF8TkBACZzsGb/t3mBUhYNSNZ7W6R/AkZARLI3IZOto5 14 | xhBrxfQayRISS2PBk390z3JlfykoMTp1NjQ6TamsumtzX7waNMzurt48kluI5Zy9 15 | isGpweGpp1T+4L+DiXMMAbhFW60gdqqo4+vzkn2M/M/8BPrKCw1TlDn3TSkpKQ== 16 | =lYo+ 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /scd/atr.h: -------------------------------------------------------------------------------- 1 | /* atr.h - ISO 7816 ATR functions 2 | * Copyright (C) 2003 Free Software Foundation, Inc. 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef ATR_H 21 | #define ATR_H 22 | 23 | char *atr_dump (const void *buffer, size_t buflen); 24 | 25 | 26 | 27 | #endif /*ATR_H*/ 28 | -------------------------------------------------------------------------------- /tests/gpgconf.ctl.in: -------------------------------------------------------------------------------- 1 | # gpgconf.ctl.in - copied to bin during tests. 2 | # 3 | # This file is used to change the directories where the gpg components 4 | # are installed. It does not change the configuration directories. 5 | # The file is expected in the same directory as gpgconf. The physical 6 | # installation directories are evaluated and no symlinks. Blank lines 7 | # and lines starting with pound signed are ignored. No errors are 8 | # printed for unknown keywords or commands. The only defined key for 9 | # now is "rootdir" which must be followed by one optional space, an 10 | # equal sign, and the value for the root directory. Environment 11 | # variables are substituted in standard shell manner, the final value 12 | # must start with a slash, trailing slashes are stripped. 13 | 14 | # This file is only considered if the given envvar evaluates to true. 15 | .enable = $GNUPG_IN_TEST_SUITE 16 | 17 | sysconfdir = $GNUPG_BUILD_ROOT/etc 18 | rootdir = $GNUPG_BUILD_ROOT/ 19 | -------------------------------------------------------------------------------- /tests/gpgscm/private.h: -------------------------------------------------------------------------------- 1 | /* TinyScheme-based test driver. 2 | * 3 | * Copyright (C) 2016 g10 code GmbH 4 | * 5 | * This file is part of GnuPG. 6 | * 7 | * GnuPG is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GnuPG is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, see . 19 | */ 20 | 21 | #ifndef __GPGSCM_PRIVATE_H__ 22 | #define __GPGSCM_PRIVATE_H__ 23 | 24 | extern int verbose; 25 | 26 | #endif /* __GPGSCM_PRIVATE_H__ */ 27 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/13FDB8809B17C5547779F9D205C45F47CE0217CE.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDExOnByaXZhdGUta2V5KDM6cnNhKDE6bjEyOToAqFJWduzk11/m0Ac/K/mab0kz 6 | zr3UUor1bkxh4vcxJHOTZF3a9Y6t1WUpwlOXeCNkY98tRYUg6A40wFgkKz/4jdOa 7 | iDtHW2bOqrvJmJ/wH/5zdmDpthu53JEgXUKP/+j2dfrvYTZYxy2m11DA68QK9iPS 8 | BmksglFMQE2IJatwEAEpKDE6ZTI6AQEpKDE6ZDEyODoAvKABRIX7dtUOm2y6VyGs 9 | ESE5D4YI1AhL0EWodt84EPEUvC1o61UuYbAe28JIHwjIKDLgDiedZ6hTBV3K5cI1 10 | aFHL421hDE0qtD+mVZhcRGnR2RHhr9gX6qX+4P8mV0w1nhdShwUhlFO1GuwQ2/dW 11 | KwYdXGbDW7P58LIiudGWuSkoMTpwNjU6AMM8WAY5lr1ZdSqr39rNqntLZqoXVO4N 12 | ibd5Tw3o/3JMVJ/xEqMykrude87nlPCAJMPlX9gjP1B57UmRxN8mGNkpKDE6cTY1 13 | OgDctZRfAPGvQ4vUwxG4uso9nbCtFlGYZTQgMPHfMFflUyxH9Y0zA8ujyKKYFPYX 14 | t7Pe6Y+qqu6BG0mPqvIXe3dpKSgxOnU2NDop+y32myNaSakGsQ732PgarqitgefN 15 | 3h9Kec4kS/j85t1esYEbC9XlFluVcIUDaQHdKFpijCl6eC2oFXOkPRwJKSkp 16 | =nyLM 17 | -----END PGP ARMORED FILE----- 18 | -------------------------------------------------------------------------------- /doc/examples/common.conf: -------------------------------------------------------------------------------- 1 | # common.conf - common defaults for all components. 2 | # 3 | # This file may provide defaults as well as options which needs to be 4 | # synchronized between components. As usual this file is read from 5 | # the system wide config directory (e.g. /etc/gnupg/common.conf) as 6 | # well as from the home directory (e.g. ~/.gnupg/common.conf). 7 | 8 | 9 | # Uncomment to enable the use of the keybox daemon (keyboxd) by gpg 10 | # and gpgsm. 11 | #use-keyboxd 12 | 13 | # For testing it is sometimes useful to use a different binary 14 | # of keybox. This option can be used to specify this. 15 | #keyboxd-program /foo/bar/keyboxd 16 | 17 | # For the daemons (gpg-agent, scdaemon, dirmngr, keyboxd) it is often 18 | # useful to define a shared logging destination. This is either the 19 | # standard logging socket (socket://) or a tcp server (tcp://ip:port). 20 | # If a file name is given the name of the component is internally 21 | # appended. 22 | #log-file socket:// 23 | -------------------------------------------------------------------------------- /g10/rmd160.h: -------------------------------------------------------------------------------- 1 | /* rmd160.h 2 | * Copyright (C) 2008 Free Software Foundation, Inc. 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | #ifndef G10_RMD160_H 20 | #define G10_RMD160_H 21 | 22 | void rmd160_hash_buffer (void *outbuf, const void *buffer, size_t length); 23 | 24 | #endif /*G10_RMD160_H*/ 25 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/7E201E28B6FEB2927B321F443205F4724EBE637E.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDIxOnByb3RlY3RlZC1wcml2YXRlLWtleSgzOmVsZygxOnAxMjk6AOgCS1p47zcd 6 | ec0UvVC0phewalHUU6f7mulWr0j0ZY1RU0IOP18HAeT7INcwPcUaUvC9KYenXmYb 7 | vO1i7sNNUCOsKUamwg+oSNMcbM3AwNwxlggTyJS1N6WzIX7MjRLUlUqtbLRhPDGl 8 | Cltt6yeAjS0pZT646TANaBDiRIgk94ADKSgxOmcxOgUpKDE6eTEyODpGh2X1Sy+4 9 | Ip/RtMJDPZOY+Y6sWUN7OiM2BkdUmCLOmaOVfgrsEevKdSBBj0oVWN81U02i7jQz 10 | hhAI3tZMFJmP/hlF7AlS5HSaLj2+t1nHAKKy70QhskINR41CCv9sHAc5gN1WrY5N 11 | DpeI12GmqsWMPQVPUHsTTe0QsT6XbHzvCykoOTpwcm90ZWN0ZWQyNTpvcGVucGdw 12 | LXMyazMtc2hhMS1hZXMtY2JjKCg0OnNoYTE4Or78V63MKf6HNzo0OTMzNjMyKTE2 13 | OkxDOAnTGrRgVCyb5u0UbCYpOTY6tghO175Vpfia/wJGrOUT0hgS3Es/EaEHv+bn 14 | jYBeErvROJrKtUboxoGox/Qa2xxpFFhFWtR3IX6rjmqS1a5RhwEmYxFb/IzVESuZ 15 | Kf00wS+lmJuR14ACnuAOfVF6OQP5KSgxMjpwcm90ZWN0ZWQtYXQxNToyMDEwMTAx 16 | NFQxMjA4MTIpKSk= 17 | =a0Os 18 | -----END PGP ARMORED FILE----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-hh-1.asc: -------------------------------------------------------------------------------- 1 | This message has two anonymous recipients: 2 | 3 | public key is 0000000000000000 (steve.biko@example.net) 4 | public key is 0000000000000000 (patrice.lumumba@example.net) 5 | 6 | -----BEGIN PGP MESSAGE----- 7 | Version: GnuPG v2 8 | 9 | hQEMAwAAAAAAAAAAAQf/YA9Ch/xoVYQmAEyo+9VqQxlvgYt23G/Vid3jgn0DFGp3 10 | DRyP8CVEn0ctGpb2kp8Cdgo+SMlO4WCIeVpYzZDCvHYwXSjh6EHMoLL/FVxyUh5q 11 | fXiyXl9692r+ms1qzfqJvVSSAjn4PzH31gFG6iQIz5E0yPRpbaDHA+7UlofP4Gfs 12 | AfidaVJuu9T7OIU50G554Lsjc3oXkr/m1OJDtNVABkkKLsC/bkVZKC6sTxFbmpXV 13 | mYJqq2cBFC5QSE1NO3Gcj4jVhP8CWE2hymIdFtk0HBGiDLQESw9OUmF/MHD6g2Fw 14 | NwVcH1pfzxXQYvygPPjaB0AiHR/52jsBifK/fG82R4ReAwAAAAAAAAAAEgEHQHTC 15 | vCgH7xW/vw5NRqRLSGarsauU9gY3x9aslz65kmYNMNmfnuedeyTxNj/X2C99/iYp 16 | BmofHiCYMkFjd5C0M/+mbGVQNdFwLG4WSSwXf3PkZtJoAXmj3A9opaFDmv51rs3a 17 | 05IOjuHScOpUSKbTCWLY+rrAlrYSNQ0ZEvBdqFUXmoKIrUu/BLBPw654zrxTrFiX 18 | 7cLcUlALJdQISuAEktJVb2E7dsrVFnLQsjJv+0EReH5FfSJRzqFaWjQ= 19 | =NW7s 20 | -----END PGP MESSAGE----- 21 | -------------------------------------------------------------------------------- /tests/fake-pinentries/fake-pinentry.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Use this for your test suites when a POSIX shell is available. 3 | # 4 | # The encrypted keys in your test suite that you expect to work must 5 | # be locked with a passphrase of "passphrase" 6 | # 7 | # Author: Daniel Kahn Gillmor 8 | # 9 | # License: Creative Commons Zero ("Public Domain Dedication") -- 10 | # Anyone may reuse it, modify it, redistribute it for any purpose. 11 | 12 | echo "OK This is only for test suites, and should never be used in production" 13 | while read cmd rest; do 14 | cmd=$(printf "%s" "$cmd" | tr 'A-Z' 'a-z') 15 | if [ -z "$cmd" ]; then 16 | continue; 17 | fi 18 | case "$cmd" in 19 | \#*) 20 | ;; 21 | getpin) 22 | echo "D passphrase" 23 | echo "OK" 24 | ;; 25 | bye) 26 | echo "OK" 27 | exit 0 28 | ;; 29 | *) 30 | echo "OK" 31 | ;; 32 | esac 33 | done 34 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/v5-sample-1-pub.asc: -------------------------------------------------------------------------------- 1 | pub ed25519 2019-03-20 [SC] 2 | 19347BC9872464025F99DF3EC2E0000ED9884892E1F7B3EA4C94009159569B54 3 | uid emma.goldman@example.net 4 | sub cv25519 2019-03-20 [E] 5 | E4557C2B02FFBF4B04F87401EC336AF7133D0F85BE7FD09BAEFD9CAEB8C93965 6 | 7 | -----BEGIN PGP PUBLIC KEY BLOCK----- 8 | 9 | mDcFXJH05BYAAAAtCSsGAQQB2kcPAQEHQFhZlVcVVtwf+21xNQPX+ecMJJBL0MPd 10 | fj75iux+my8QtBhlbW1hLmdvbGRtYW5AZXhhbXBsZS5uZXSIlgUTFggASCIhBRk0 11 | e8mHJGQCX5nfPsLgAA7ZiEiS4fez6kyUAJFZVptUBQJckfTkAhsDBQsJCAcCAyIC 12 | AQYVCgkICwIEFgIDAQIeBwIXgAAA9cAA/jiR3yMsZMeEQ40u6uzEoXa6UXeV/S3w 13 | wJAXRJy9M8s0AP9vuL/7AyTfFXwwzSjDnYmzS0qAhbLDQ643N+MXGBJ2Bbg8BVyR 14 | 9OQSAAAAMgorBgEEAZdVAQUBAQdA+nysrzml2UCweAqtpDuncSPlvrcBWKU0yfU0 15 | YvYWWAoDAQgHiHoFGBYIACwiIQUZNHvJhyRkAl+Z3z7C4AAO2YhIkuH3s+pMlACR 16 | WVabVAUCXJH05AIbDAAAOSQBAP4BOOIR/sGLNMOfeb5fPs/02QMieoiSjIBnijho 17 | b2U5AQC+RtOHCHx7TcIYl5/Uyoi+FOvPLcNw4hOv2nwUzSSVAw== 18 | =WYfO 19 | -----END PGP PUBLIC KEY BLOCK----- 20 | -------------------------------------------------------------------------------- /tests/tpm2dtests/unimportable.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2021 James.Bottomley@HansenPartnership.com 4 | ;; 5 | ;; SPDX-License-Identifier: GPL-3.0-or-later 6 | ;; 7 | (load (in-srcdir "tests" "tpm2dtests" "defs.scm")) 8 | 9 | (setup-environment) 10 | (setenv "PINENTRY_USER_DATA" "this is a password" #t) 11 | 12 | ;; 13 | ;; Tries to import a selection of keys with no TPM representation 14 | ;; and verifies it fails. There are many unimportable keys, so 15 | ;; save time by only choosing one EC and one RSA one 16 | ;; 17 | (define key-list '("ed25519" "rsa4096")) 18 | 19 | (for-each 20 | (lambda(algo) 21 | (info "Checking failure to import" algo) 22 | (define name algo "") 23 | (call-check `(,@GPG --quick-generate-key ,name ,algo)) 24 | (let ((result (call-with-io `(,@GPG --command-fd=0 --edit-key ,name "key 0" keytotpm) "y\n"))) 25 | (if (= 0 (:retcode result)) 26 | (throw "Importing Key succeeded") 27 | (:stderr result)))) 28 | key-list) 29 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-1.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hQEMAx13dhm+MQ15AQgAiZPJa/zmtJ6cDpHVze6zBS+4OCbGeEpzcHBkpWiLKV91 5 | 6CiwLTtL6Fhs7P/i5lEUzWQnRp0IGmUe8Ft5tugAL3ibv3Xm9PstXPZ2Q6EGzDCY 6 | 98x1aQooSuiUwIB4uQ8zFqA2TYGNfRcDCGdHHLpWAps4F/QkZkQGEWmy7KQZetc+ 7 | mLP6z04fQz5XemL0MaJcarLRE0OK8FI4+413DqQB3RyZsMFiFDAY46g3rA7xymuo 8 | Elum8PjMDXtAEpYAs2NHR29okFMinB7rR/DFGabQtzWIJPlgyGOFUVXs7YWj0Git 9 | SgEje73u8eEYAJYTpud1zup/KPUYOqJzyIMvOHDMz4ReA5GFh45PzXTAEgEHQGSH 10 | 2coczePYstzayq418VjtNF+0ohoFKm8lrR9THREYMFJ4oA6/e7r3g38CWlb8kKxN 11 | butxPKCcO2OjZYU5PZMk03CwbpSWM0FTNJEzXfqdKtLAOgHgccG9wgBqAbcTejiX 12 | FQBBsLXRybq8Bra8qW+RVJ5noCav3TH06h8ZVXz/jJMLSUfKt8l+xRQDkYZ88cN3 13 | GhWNSc1eBOjS8e3JwGYaGs4vuoRVECbzee1DWNk3CUQOgeqZKLoSYHDRwHMpzP/N 14 | suXLpGTV7EoN4+qOcF5q/6cZV4gaGxgokoCUrM+IYfhOjmqK3lfo9/1GUxppyE+x 15 | XsWKiUMta3tJ6zhWYJPCZCqIZvzmkSfk3pNtOnsmmhF9gzwN8ehi/FHGFyHc8/gW 16 | qxx0KsCG7FO4Y514pdoa70KqA8QO63YjxTaFBH858yZr5ORlhzElwctgivU= 17 | =cWGf 18 | -----END PGP MESSAGE----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/encsig-2-keys-2.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP MESSAGE----- 2 | Version: GnuPG v2 3 | 4 | hF4DkYWHjk/NdMASAQdA9op1WNWUj4E0PZ2h33tolomYTag75nRNg8qLo/2xfXcw 5 | QrekSuMoLtkv1KO6/tLIohqYYYdZL5cGadTxlBLyIEj32ISVj7El6DxJrmqKIK3y 6 | hQEMAx13dhm+MQ15AQgAnY6drrcce7MeloBIECLSbFIDjKOloUT4xtqspTg3GM1d 7 | wkXtTJOdEm1yLcNQsb+d8ZdZZfYZhotCyMlZ5QQtvf+0XOieb/FlitUI0twAMsj/ 8 | kwjN9dop+KGLZadFoar5A8TBXUz25PfWmwEzz2qSmIPuoIUzhK90B3eGUG6foGzm 9 | 1zEAawfyJ9w7XVAV6pNGJWG2LHSQr2POaMbZs/3iqxQl8p2yb25SlKrg3I35UClZ 10 | 0FC9Hidw8bZ8/rZCyX9KYtHIENHzqT5+XEpaXwN4hBqwpVgUn6DcESv2BAR7KCHD 11 | ZwRRNVZtUvrftj05UIxAgnSAdK5GAyhLfWjCsH5Q3tLAPQGFdlgyYU9q+hWrrqwW 12 | 1tAvUJQpSW97WyK1Aa9RJOLPNpfU1wzRGzzOuNuuqbL4l9OQktJ81Mihh4IWCXQD 13 | 4mN7+nvltCm13bANdujRvZstGGFefRiwkBlEQq9uQMM2SVXA+JAff+AvD5F1Ofq8 14 | DPVMf/WDsKcoTTdqJahk/zoX4yFHprS50tO2z0Mb9souX14+AN+JJzAGQaGRlXXD 15 | TWeEkUXD18HcVzHfooqLUlYYr5zD2f2gNNVskPYH/iP3FGllvzBeQI1NCznAj+Zr 16 | AdOEXHKOkCJmj2RKnxXeOWTJSczoBlQgIQGd/yP/2TPsGesd4SbqFStYuefEZtw= 17 | =hq0A 18 | -----END PGP MESSAGE----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/version.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "openpgp" "defs.scm")) 21 | (setup-environment) 22 | 23 | (info "Printing the GPG version") 24 | (assert (string-contains? (call-check `(,@GPG --version)) 25 | "gpg (GnuPG) 2.")) 26 | -------------------------------------------------------------------------------- /tests/pkits/key-usage: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # key-usage - PKITS Test 4.7 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.7 23 | description="Key Usage" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | final_result 29 | -------------------------------------------------------------------------------- /tests/cms/skey_g10code_test1.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,CFA7DAB8D1EEDCFF 4 | 5 | KTLOYLEGXYFQ63WnUsqFp/vM5HWsJq758AQ5RaYp7jbtCoZdrSp5GovmLUBTPfR+ 6 | hjfcJgGlyWIPDhPAcOObz2XnnpzcKEfmPKR/W+Ou7DFX/6WUh1xwzHq+ddPnCMHJ 7 | vfhx2iMf0e4Y9ZMATBPcU0YIE/Rp9F4wmMKmEAGtAPOSMNdvH17KHlNLXsX+VlXf 8 | scGi9Hr0KFcC/5ehA3J40vBlAg6oZeXwNuERX1PXOpAIlcGY0RklJhTvTBonCfaV 9 | 7+CrfggFed3/b7QuqsNTlRdmW3ctf2rqNoFFIhRB5OVQsLG4CrzIQMdzxMqlZrGd 10 | Eks+0HLOMGO41ioaenz6015ClHORpAf3VXN8NUUrrDAvJL2HVlqFgDBCi9qi9Dp2 11 | TuVePAkJlpBYodgIdwvLN//dav6ZJ+FOOk3A5AnKOtNyTGO4I2Bz8nAS3JpVudk9 12 | ca8CEIIj52dEric6YMiBFokoiIEgMOI/6wjatDL1Yldev+kjH/el+FZT4jZm2lvQ 13 | l1xbg4sqmPNSyIKSv8V95gO2W5E5V9kO/MBiad2GdX4qrVT1c/LwFC96t+tZKFxr 14 | rHdN31CzZE3bHnXxvss3ai+k9IO1NZHfeeb9uqSmGd3AxbmBwWA50bxCsee+HP0R 15 | ihU2BE5NKdlw1faBk+DPVT569uScO4PDc6Jd4fh7g7oBzLhhhcCqNnLEZh8lqa3L 16 | rsb880baq8dm72cz8IXj//x5AppfCz8M8od/UkaQ0/pN2GGTpe4qSPPK0YJ/4MfR 17 | f9jdMbZA6O8si3t7I4jOF2z1UHkFGaseax54ILTsTVE= 18 | -----END RSA PRIVATE KEY----- 19 | 20 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/0DD40284FF992CD24DC4AAC367037E066FCEE26A.asc: -------------------------------------------------------------------------------- 1 | This is the unprotected private key for 2 | 3 | pub ed25519/97965A9A 2014-08-19 4 | Key fingerprint = C959 BDBA FA32 A2F8 9A15 3B67 8CFD E121 9796 5A9A 5 | Keygrip = 0DD40284FF992CD24DC4AAC367037E066FCEE26A 6 | uid [ unknown] EdDSA sample key 1 (draft-koch-eddsa-for-openpgp-00) 7 | 8 | The human readable version of the armored s-expression below is: 9 | 10 | (private-key 11 | (ecc 12 | (curve Ed25519) 13 | (flags eddsa) 14 | (q #403F098994BDD916ED4053197934E4A87C80733A1280D62F8010992E43EE3B2406#) 15 | (d #1A8B1FF05DED48E18BF50166C664AB023EA70003D78D9E41F5758A91D850F8D2#) 16 | ) 17 | ) 18 | 19 | -----BEGIN PGP ARMORED FILE----- 20 | Version: GnuPG v2 21 | Comment: Use "gpg --dearmor" for unpacking 22 | 23 | KDExOnByaXZhdGUta2V5KDM6ZWNjKDU6Y3VydmU3OkVkMjU1MTkpKDU6ZmxhZ3M1 24 | OmVkZHNhKSgxOnEzMzpAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJkuQ+47JAYp 25 | KDE6ZDMyOhqLH/Bd7Ujhi/UBZsZkqwI+pwAD142eQfV1ipHYUPjSKSkp 26 | =SS8V 27 | -----END PGP ARMORED FILE----- 28 | -------------------------------------------------------------------------------- /tests/cms/key_g10code_pete1.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,A4885DDADE65FCB5 4 | 5 | 6mK4tsaqaMQVILY2b0Wku2dGp0GmqJMXRb49Xl/hlDhqO6rF30ZnCbFSOWS0O74a 6 | +QydvNhACt+0lrIYv9E1pfU8ibmlPF1ei6n2GBcXgZGT8nFd5sb/+UJ1hEB9cRny 7 | BuWjUOWB4uFnNkkIcWJEK98Yfmiiisp8kjoW3SgWQPXW/WaZkclpgbk8SVWeZ+14 8 | S6GXvQsaVhiXGN1Kv5nL6Qk1LSCg8rS1jMAPsQEO/KhRCogVmjw06x2RuqM6eISz 9 | 9mAio4AFMEhcY9Dg+2Ybf+iB4NnsvTaygUIZDDZ5TZGbr3O52CDblbKjswr2fO6B 10 | PqoBLODmhb1ZTEq0tf9kQAs0SPek8Rd7xYIQrEBmmZz7v0sU4yROyMkRU3EzEYXV 11 | Qsue1tqVtnBXB/d/Y0GG5NR4bo1oUwjzv8oUTxzPh8uDYDTNW2+KwPBmOx0hN2LG 12 | FkN5KzBeHmGyACvQTVZndzEBHuult+6lfdDFMkopt9dp8ePlUC0s+61x+fi3nfEs 13 | 6AZLvRNDoi8Zv1+42RAbOA5ZKC1H9zjcbF5WzOCegRgKZyhZ+1+9IIoWqoCgK841 14 | pn/Iaog43Ba/npyNpJE63Q7khJueSkeN0NwtV9EeYB8xSF3RMlPDrakTdTTJJIAi 15 | wUFXCbUieMsOj5b9jw6A5H0Zls0HcUdBos/ipiE8jdAjyxOp+q2hXTaOn7eK3WaD 16 | CadRmfnRp383pfzFM+93MhsRZHg+Mw1BTnRghM4l/flykYXgDTFR+9citxbRzQfu 17 | sVfrcqNmHvjqdhR5054oZjZMUP0SxRm13XsUfUMhIWsB1wrqHkYa/A== 18 | -----END RSA PRIVATE KEY----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ed25519-cv25519-sample-1.asc: -------------------------------------------------------------------------------- 1 | pub ed25519 2016-06-22 [SC] 2 | B21DEAB4F875FB3DA42F1D1D139563682A020D0A 3 | Keygrip = 1E28F20E41B54C2D1234D896096495FF57E08D18 4 | uid patrice.lumumba@example.net 5 | sub cv25519 2016-06-22 [E] 6 | 8D0221D9B2877A741D69AC4E9185878E4FCD74C0 7 | Keygrip = EB33B687EB8581AB64D04852A54453E85F3DF62D 8 | 9 | -----BEGIN PGP PUBLIC KEY BLOCK----- 10 | 11 | mDMEV2o9XRYJKwYBBAHaRw8BAQdAZ8zkuQDL9x7rcvvoo6s3iEF1j88Dknd9nZhL 12 | nTEoBRm0G3BhdHJpY2UubHVtdW1iYUBleGFtcGxlLm5ldIiTBBMWCAA7AhsDAheA 13 | FiEEsh3qtPh1+z2kLx0dE5VjaCoCDQoFAmNkyZ0FCwkIBwICIgIGFQgJCgsCBBYC 14 | AwECHgcACgkQE5VjaCoCDQoKxwEAyVSPe4kwcvjlL9iZYftqwmCQpL6Sd7smgBdb 15 | naqvAEMA/RrGBjSTGzTvFMVlIcT0Jr1uPVHig7twPnpzbL1uWUwLuDgEV2o9jRIK 16 | KwYBBAGXVQEFAQEHQBZ55mXPfU7ipOYgqvcJmGVFRdkXFzdgrKgJfIhkEFFrAwEI 17 | B4hhBBgWCAAJBQJXaj2NAhsMAAoJEBOVY2gqAg0Ky4UA/0GmVaXzXemLvv1Xw4yx 18 | Eaz/KfKKGc4RJ+38fyqUzw8NAQCohQ+ki3I5f84EXLZEiUiLsnVtOn1HNxvND/gW 19 | TiFZBA== 20 | =u4Iu 21 | -----END PGP PUBLIC KEY BLOCK----- 22 | -------------------------------------------------------------------------------- /tests/pkits/delta-crls: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # delta-crls - PKITS Test 4.15 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.15 23 | description="Delta-CRLs" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /dirmngr/http-common.h: -------------------------------------------------------------------------------- 1 | /* http-common.h - Defs for common support for TLS implementations. 2 | * Copyright (C) 2017 Werner Koch 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef HTTP_COMMON_H 21 | #define HTTP_COMMON_H 22 | 23 | const char *get_default_keyserver (int name_only); 24 | 25 | void http_reinitialize (void); 26 | 27 | #endif /* HTTP_COMMON_H */ 28 | -------------------------------------------------------------------------------- /tests/openpgp/key-selection/4.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP PUBLIC KEY BLOCK----- 2 | 3 | mQENBD/KdpABCAD2wlP1kYHldknjyGTnMOUq9r+3/fJR8n4qVt5TRRlDdyfK3ZxM 4 | KWStsmkZuK9dMxo4VSOjVeiXdZlHeQU7RlzVPsCNiJ1Qc2HDgHFdmT7eUgOILA12 5 | 36bueRUwVPGmrBEecs0TpNRQ5CVFbO7mC6cTLhT9nRMd+W+BSuuZ8Zm98ebaVh3I 6 | ml3nPEVhs1UFmIop48RGCt45MZ2mYp77kuAmk8NBJjHy9J4H5UK19r0hla2WY4a3 7 | Z59hh7kFnNFCM/MhPxd6GwkeXzUF7WSnhzRVIkdv81u2AnIHbo1zD0BUp8Rf64Ns 8 | 3iFAeB1VuR6ZJpEypHiHUJtYPmr9okEmg8EDABEBAAG0I0FjZWpsbnUgQWNkaXBy 9 | IDxhY2RpcHJAZXhhbXBsZS5vcmc+iQFUBBMBCAA+FiEE7Qh+nTOUNAc44gokSJKj 10 | z49l66wFAj/KdpACGwMFCQWjmoAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQ 11 | SJKjz49l66xZ7QgA7dBJsQP09LhkYDIu8cJzRU6tqa2Y8dx0iFaCU8nqD/0q6xJf 12 | fs2euwMEPsHWmA1WwGwxZpE/NGEksMSQ8TZSQUwCsURxBIiGww5MBtIGeO3ZzreR 13 | Dn0Qhivbiup8ZPtPfFFomoK7ZtWjtGjZ8I5zyYbjT0eEB7P348dkpOtReWDiqGVd 14 | taMnVau4OTDqTRo6fvAiVb37zoaWETsPWtq/TymgkqO/LEhzClzG8xJgpSl98cQW 15 | BoHz5GDVYeVxPEKAN4DdS7gt0KTUC9ZQUcZP+1wTzFohDd/CeUAl4kTeP0QSJVJ3 16 | QC/WnHk4Y56q8/nngIY6w/wID/R/Cp+plw6F5w== 17 | =BA1F 18 | -----END PGP PUBLIC KEY BLOCK----- 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/enc-2-keys-rh-1.asc: -------------------------------------------------------------------------------- 1 | This message has one regular and one anonymous recipient: 2 | 3 | public key is 1D777619BE310D79 (steve.biko@example.net) 4 | public key is 0000000000000000 (patrice.lumumba@example.net) 5 | 6 | -----BEGIN PGP MESSAGE----- 7 | Version: GnuPG v2 8 | 9 | hQEMAx13dhm+MQ15AQgAmDRRzNRfv/NXeJzBLOwcmBjWZ7UZAdr8Y5uqvOEdjIyj 10 | XQlvH56/lNVa4WsGcxRWfNucFs78pxqAY3YulApIs1o/+WheCpPEvxMJ5Z+s14rg 11 | +jV0H+oW9UkeIVCKeLlHrosbUbYM8cvzsHdNFm1U6MnqH1DNiyTtwgzA065kyRDQ 12 | QwoCKf3Bsc+nmbfuWafdWDRwNptdE13JuRoFEd/KxhfXDhWF2r3ynM97erADTYMB 13 | RXzOAuNxLxrgdjJ2KJoJu6KRVGMJk1ermzeV1wv3bnfME+QRtZ2Gzu3heAktR9Bj 14 | gk4dOkEdYHQi7aYpoRaeWtK9An8FafLrEsbyYISNqoReAwAAAAAAAAAAEgEHQKD1 15 | Xk0mkgt/BPeRvR5giCsmMjniGdan99NWiiMJpcNNMOP65NimgxyOYDTbpsGl/tHY 16 | qmNzNy1Wk1/ZRRAr4+K8ITs5lmuoDeVVkGQTE2ahRtKEARtFMKoRDYO5dEgadlnL 17 | FdigDutyPLqVMaIwmx0HivjfXWEYyhBSXc0wwEvPhH76aBBOAnYZKKsLJVx+GoHp 18 | Lxlvdz6CsOOKfgxY7PBjCEpS4aOtIYNenW6fHMYBVTrOXpNok7Q18rx1yNOxvT3X 19 | g6zTetpqqM2SJKgSgRNsOobCDhqr 20 | =jW0C 21 | -----END PGP MESSAGE----- 22 | -------------------------------------------------------------------------------- /tools/decrypt.bat: -------------------------------------------------------------------------------- 1 | @echo on 2 | rem Decrypt all files in the input to the output directory. 3 | rem The input directory and the suffixes are defined by 4 | rem constants given below. 5 | 6 | rem Set the input/output directories and the suffixes. 7 | set INDIR=c:\input-files 8 | set OUTDIR=c:\output-files 9 | set INSUFFIX=.gpg 10 | set OUTSUFFIX= 11 | set LOGFILE=%APPDATA%\decrypt.log 12 | 13 | rem No serviceable parts below. 14 | 15 | set GPGARGS=--batch --yes --log-file "%LOGFILE%" --require-compliance 16 | cd %INDIR% 17 | mkdir %OUTDIR% 2>nul 18 | for /R %%f in (*%INSUFFIX%) do ( 19 | setlocal enabledelayedexpansion 20 | for %%i in ("%%f") do ( 21 | set filename=%%~ni 22 | ) 23 | set OUTPATH=%OUTDIR%\!filename!%OUTSUFFIX% 24 | echo Decrypting %%f into !OUTPATH! >> "%LOGFILE%" 25 | gpg %GPGARGS% -o "!OUTPATH!" -d -- "%%f" 26 | if !errorlevel! neq 0 ( 27 | echo Operation failed with return code: %errorlevel% >> "%LOGFILE%" 28 | ) else ( 29 | echo Operation finished successfully >> "%LOGFILE%" 30 | ) 31 | ) 32 | -------------------------------------------------------------------------------- /sm/passphrase.h: -------------------------------------------------------------------------------- 1 | /* passphrase.h - Get a passphrase 2 | * Copyright (C) 2016 g10 Code GmbH 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPGSM_PASSPHRASE_H 21 | #define GPGSM_PASSPHRASE_H 22 | 23 | int have_static_passphrase (void); 24 | const char *get_static_passphrase (void); 25 | void read_passphrase_from_fd (int fd); 26 | 27 | #endif /* GPGSM_PASSPHRASE_H */ 28 | -------------------------------------------------------------------------------- /tests/cms/text-1.txt: -------------------------------------------------------------------------------- 1 | High Priest: Armaments Chapter One, verses nine through twenty-seven: 2 | Bro. Maynard: And Saint Attila raised the Holy Hand Grenade up on high 3 | saying, "Oh Lord, Bless us this Holy Hand Grenade, and with it 4 | smash our enemies to tiny bits." And the Lord did grin, and the 5 | people did feast upon the lambs, and stoats, and orangutans, and 6 | breakfast cereals, and lima bean- 7 | High Priest: Skip a bit, brother. 8 | Bro. Maynard: And then the Lord spake, saying: "First, shalt thou take 9 | out the holy pin. Then shalt thou count to three. No more, no less. 10 | *Three* shall be the number of the counting, and the number of the 11 | counting shall be three. *Four* shalt thou not count, and neither 12 | count thou two, excepting that thou then goest on to three. Five is 13 | RIGHT OUT. Once the number three, being the third number be reached, 14 | then lobbest thou thy Holy Hand Grenade towards thy foe, who, being 15 | naughty in my sight, shall snuff it. Amen. 16 | All: Amen. 17 | -- Monty Python, "The Holy Hand Grenade" 18 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ecc-sample-1-pub.asc: -------------------------------------------------------------------------------- 1 | The key has been generated by the first GnuPG ECC version at 2 | http://code.google.com/p/gnupg-ecc. 3 | 4 | The sample key has ECDSA top key 0xBAA59D9C and a single ECDH 5 | encryption subkey 0x4089AB73. ECDH subkey uses SHA-256 and AES-128 6 | with KDF. 7 | 8 | -----BEGIN PGP PUBLIC KEY BLOCK----- 9 | Version: GnuPG v2.1.0-ecc (GNU/Linux) 10 | 11 | mFIETJPQrRMIKoZIzj0DAQcCAwQLx6e669XwjHTHe3HuROe7C1oYMXuZbaU5PjOs 12 | xSkyxtL2D00e/jWgufuNN4ftS+6XygEtB7j1g1vnCTVF1TLmtCRlY19kc2FfZGhf 13 | MjU2IDxvcGVucGdwQGJyYWluaHViLm9yZz6IegQTEwgAIgUCTJPQrQIbAwYLCQgH 14 | AwIGFQgCCQoLBBYCAwECHgECF4AACgkQC6Ut8LqlnZzmXQEAiKgiSzPSpUOJcX9d 15 | JtLJ5As98Alit2oFwzhxG7mSVmQA/RP67yOeoUtdsK6bwmRA95cwf9lBIusNjehx 16 | XDfpHj+/uFYETJPQrRIIKoZIzj0DAQcCAwR/cMCoGEzcrqXbILqP7Rfke977dE1X 17 | XsRJEwrzftreZYrn7jXSDoiXkRyfVkvjPZqUvB5cknsaoH/3UNLRHClxAwEIB4hh 18 | BBgTCAAJBQJMk9CtAhsMAAoJEAulLfC6pZ2c1yYBAOSUmaQ8rkgihnepbnpK7tNz 19 | 3QEocsLEtsTCDUBGNYGyAQDclifYqsUChXlWKaw3md+yHJPcWZXzHt37c4q/MhIm 20 | oQ== 21 | =hMzp 22 | -----END PGP PUBLIC KEY BLOCK----- 23 | -------------------------------------------------------------------------------- /tests/pkits/policy-mappings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # policy-mappings - PKITS Test 4.10 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.10 23 | description="Policy Mappings" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /common/pkscreening.h: -------------------------------------------------------------------------------- 1 | /* pkscreening.c - Screen public keys for vulnerabilities 2 | * Copyright (C) 2017 Werner Koch 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * This file is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as 8 | * published by the Free Software Foundation; either version 2.1 of 9 | * the License, or (at your option) any later version. 10 | * 11 | * This file is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GNUPG_COMMON_PKSCREENING_H 21 | #define GNUPG_COMMON_PKSCREENING_H 22 | 23 | gpg_error_t screen_key_for_roca (gcry_mpi_t modulus); 24 | 25 | 26 | #endif /*GNUPG_COMMON_PKSCREENING_H*/ 27 | -------------------------------------------------------------------------------- /tests/cms/32100C27173EF6E9C4E9A25D3D69F86D37A4F939: -------------------------------------------------------------------------------- 1 | (private-key 2 | (oid.1.2.840.113549.1.1.1 3 | (n #00e0ce96f90b6c9e02f3922beada93fe50a875eac6bcc18bb9a9cf2e84965caa2d1ff95a7f542465c6c0c19d276e4526ce048868a7a914fd343cc3a87dd74291ffc565506d5bbb25cbac6a0e2dd1f8bcaab0d4a29c2f37c950f363484bf269f7891440464baf79827e03a36e70b814938eebdc63e964247be75dc58b014b7ea251#) 4 | (e #010001#) 5 | (d #046129F2489D71579BE0A75FE029BD6CDB574EBF57EA8A5B0FDA942CAB943B117D7BB95E5D28875E0F9FC5FCC06A72F6D502464DABDED78EF6B716177B83D5BDC543DC5D3FED932E59F5897E92E6F58A0F33424106A3B6FA2CBF877510E4AC21C3EE47851E97D12996222AC3566D4CCB0B83D164074ABF7DE655FC2446DA1781#) 6 | (p #00e861b700e17e8afe6837e7512e35b6ca11d0ae47d8b85161c67baf64377213fe52d772f2035b3ca830af41d8a4120e1c1c70d12cc22f00d28d31dd48a8d424f1#) 7 | (q #00f7a7ca5367c661f8e62df34f0d05c10c88e5492348dd7bddc942c9a8f369f935a07785d2db805215ed786e4285df1658eed3ce84f469b81b50d358407b4ad361#) 8 | (u #304559a9ead56d2309d203811a641bb1a09626bc8eb36fffa23c968ec5bd891eebbafc73ae666e01ba7c8990bae06cc2bbe10b75e69fcacb353a6473079d8e9b#) 9 | ) 10 | ) 11 | -------------------------------------------------------------------------------- /tests/cms/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key: -------------------------------------------------------------------------------- 1 | (private-key 2 | (rsa 3 | (n #00DB26862FD7EAF7AC9A52BA22473E28C8DF4637B0A048230772F6D5CD96EEF905D7D650A84957CBD3CCCD720A9C941EB430FE5088E6A8DDD0D5770506A314DDB4F579A2696FB53E98E7A8750F400016A9885D1C1F5D19AC90D186186DF4B354F3BDCA978BCBFB1810DFE5AB68AFE4B2B09D1F8223265514AFECDF596628F8C58F#) 4 | (e #010001#) 5 | (d #674F76ECB0FE0CBA2A9A1B3333A0A2FB66FE241CB8C2A8F8C70283F202582FBEC86C38E3CC877E081FC12E24C081B723BD00F698431C924CF384C332C8C87A67080A88A0700DC36D671ECB4D7AE0EE9C645AF932B9B55BD3E16C043E9D972202399F021374C358E8B77CA37CFAC642637CFF31E6E5839A89CBD3E32B9BEF9A01#) 6 | (p #00EB664011AD44EFEDE2B40A3F753373F7CE39E2CF4A5E7812ABF5B957AFA8C9F9FEE1EE9D8F2FF7369B553749EADD0C605A581111A4D532ECC3ED3DC46DB1A501#) 7 | (q #00EE543E10FD86829889682BC4BECA1230924B7B4A19823566FA056C9033937B97F29665CF21F6F097F9BAB24D6F596C93EE348568FAA59BB325EA66DFBE7B9A8F#) 8 | (u #008BD460358A993D2B442BC7DC3F1E6EF9470F17E3E3BD85A496690A50D564BB585B66A3BF841B8FF9513293EA02C784C6142008A79948020FFF03440D9591C7D7#) 9 | ) 10 | ) 11 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ed25519-cv25519-sample-2.asc: -------------------------------------------------------------------------------- 1 | pub ed25519 2022-09-16 [SC] 2 | 5F1438D784C8C68400645518AE08687BF38AFFF3 3 | Keygrip = F27FC04CB01723A4CB6F5399F7B86CCD82C0169C 4 | uid mahsa.amini@example.net 5 | sub cv25519 2022-09-16 [E] 6 | FFE7440568492D986F3B88BD9E64CB003A8D6449 7 | Keygrip = 891067FFFC6D67D37BD4BFC399191C5F3989D1B5 8 | 9 | -----BEGIN PGP PUBLIC KEY BLOCK----- 10 | 11 | mDMEYyRlQBYJKwYBBAHaRw8BAQdAOQXWFcqamNZ08cx6qLXp+UjX0vsudTbtYCew 12 | FLH5SOa0F21haHNhLmFtaW5pQGV4YW1wbGUubmV0iJMEExYKADsWIQRfFDjXhMjG 13 | hABkVRiuCGh784r/8wUCYyRlQAIbAwULCQgHAgIiAgYVCgkICwIEFgIDAQIeBwIX 14 | gAAKCRCuCGh784r/8wYzAQDTikkZd/G/o1DtfGq/k0R9ctcZCD9vHKH3PNj2atfX 15 | cwEAt5zFYyEe2OPzJ5HYffOPhcyK2kPsvkerLfdXy/K8QAe4OARjJGVAEgorBgEE 16 | AZdVAQUBAQdAllH23RnI9WJ5InS84ET4kWYJ+9ol7j36ISB9zoy6DGMDAQgHiHgE 17 | GBYKACAWIQRfFDjXhMjGhABkVRiuCGh784r/8wUCYyRlQAIbDAAKCRCuCGh784r/ 18 | 89lTAQDpupXGKLSlga2qHgtaud47oU5edY48MZ7CBnFByi5IAQEA2nJpUsVuaQl2 19 | XSURaPTUi0C98ny61kwGcVtOcTFpPgY= 20 | =r11D 21 | -----END PGP PUBLIC KEY BLOCK----- 22 | -------------------------------------------------------------------------------- /tests/pkits/name-constraints: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # name-constraints - PKITS Test 4.13 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.13 23 | description="Name Constraints" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tests/pkits/inhibit-any-policy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # inhibit-any-policy - PKITS Test 4.12 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.12 23 | description="Inhibit Any Policy" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /g13/be-truecrypt.h: -------------------------------------------------------------------------------- 1 | /* be-truecrypt.h - Public defs for the Truecrypt based backend 2 | * Copyright (C) 2009 Free Software Foundation, Inc. 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef G13_BE_TRUECRYPT_H 21 | #define G13_BE_TRUECRYPT_H 22 | 23 | #include "backend.h" 24 | 25 | gpg_error_t be_truecrypt_create_new_keys (membuf_t *mb); 26 | 27 | 28 | #endif /*G13_BE_TRUECRYPT_H*/ 29 | -------------------------------------------------------------------------------- /g13/suspend.h: -------------------------------------------------------------------------------- 1 | /* suspend.h - Suspend/Resume a crypto container. 2 | * Copyright (C) 2016 Werner Koch 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef G13_SUSPEND_H 21 | #define G13_SUSPEND_H 22 | 23 | gpg_error_t g13_suspend_container (ctrl_t ctrl, const char *filename); 24 | gpg_error_t g13_resume_container (ctrl_t ctrl, const char *filename); 25 | 26 | #endif /*G13_SUSPEND_H*/ 27 | -------------------------------------------------------------------------------- /tests/pkits/certificate-policies: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # certificate-policies - PKITS Test 4.8 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.8 23 | description="Certificate Policies" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tests/pkits/distribution-points: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # distribution-points - PKITS Test 4.14 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.14 23 | description="Distribution Points" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tests/cms/key_g10code_theo1.pem: -------------------------------------------------------------------------------- 1 | 2 | Passphrase is "test" 3 | 4 | -----BEGIN RSA PRIVATE KEY----- 5 | Proc-Type: 4,ENCRYPTED 6 | DEK-Info: DES-EDE3-CBC,C1E4BE50963AE732 7 | 8 | xtD0InNwYZnG0z61ydRQ+UmDoKiUiiXiwbmZQREZUG2E5Tat77WAkiA8lwjqimmC 9 | kGPWnCUtoMpuXrBl4JC1fsvNCsOhPu9w90JcuNqlxzUltZjP9M9uj9Ic4Hut9FoR 10 | uSKY4sz7zGlOg+1kGZu1lXEKvGgrHO7sq66Q2Y1ugaWrlvdQt+1m2mTpk01rj2vZ 11 | fqZO2EZFYNPAgQRpfnHmfaD1zIefRLbxwjQUTUvLWTN4aOaOBBNE6AlzwSK4w0Ba 12 | 4RAJpHuk7Kk6UNvNQriMjXMBvHCZLqKIJXGn99o8acK4E/Hrsyq8CHKT3ye81FoF 13 | JsJf1n6W9NG21BH/HuS6uDcyvhhBpgP9yJclRiHd29t0pmM2v+FQxlpycEIwMLcT 14 | hu7BaxdVrMmZHwwZXjFW8W0paltN65U3AevAddwyh6tmMRZR7OJP5P4qws4ehzWB 15 | M9VPgHiWHkCwgjMH1EjhCXqChj0KCW4pHHXevA3eNJP8yEuGzlHwvh6Y4b+FFqtO 16 | gib1MfWPsSYP2kW8XPrVzb2VMMWlqepUeKdBtZSC0s7TW7+bN7sgyWJYInBtqTZT 17 | VCTauwUaFfRflp1l+jPofypaVs5Dsom96kMjqe9Tg9b409ZvWps5A7lG1Q26Nkyk 18 | 6/GA7Elt0lArwEs7lcHy40/5cIB5Bjgj7AL5B2/1hwoxFBsNa3k69OssJC6tY6ek 19 | qwwa2KfXHsG6gHlFgMW/gRCJENy4dqtxkaVM27d+ulRlWYP5INyXFiH0NPeSR9i0 20 | LUDpQoKaexXG3DSQZcGSdDGlBa16iuPfKOEQMqQiymgxjG5umSKrZQ== 21 | -----END RSA PRIVATE KEY----- 22 | -------------------------------------------------------------------------------- /tests/fake-pinentries/fake-pinentry.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Use this for your test suites when a python interpreter is available. 3 | # 4 | # The encrypted keys in your test suite that you expect to work must 5 | # be locked with a passphrase of "passphrase" 6 | # 7 | # Author: Daniel Kahn Gillmor 8 | # 9 | # License: Creative Commons Zero ("Public Domain Dedication") -- 10 | # Anyone may reuse it, modify it, redistribute it for any purpose. 11 | 12 | import sys, os 13 | 14 | # turn off buffering: 15 | sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0) 16 | sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) 17 | 18 | print("OK This is only for test suites, and should never be used in production") 19 | while True: 20 | ln = sys.stdin.readline() 21 | if (ln == ''): 22 | break 23 | ln = ln.lower() 24 | if (ln.strip() == '') or (ln.startswith('#')): 25 | continue 26 | if (ln.startswith('getpin')): 27 | sys.stdout.write('D passphrase\n') 28 | sys.stdout.write('OK\n') 29 | if (ln.startswith('bye')): 30 | break 31 | -------------------------------------------------------------------------------- /tests/openpgp/bug1223-good.asc: -------------------------------------------------------------------------------- 1 | Good test key for bug 1223 (Designated revoker sigs are not properly merged) 2 | 3 | -----BEGIN PGP PUBLIC KEY BLOCK----- 4 | Version: GnuPG v1.4.10 (GNU/Linux) 5 | 6 | mI0ES+OoSQEEAJUZ/+fC6DXN2X7Wxl4Huud/+i2qP1hcq+Qnbr7hVCKEnn0edYl+ 7 | 6xfsKmAMBjl+qTZxPSDSx4r3ciMiIbnvXFtlBAQmji86kqoR6fm9s8BN7LTq7+2/ 8 | c2FHVF67D7zES7WgHc4i7CfiZnwXgkLvi5b1jBt+MTAOrFhdobxoy6/XABEBAAGI 9 | twQfAQIAIQUCS+OsRRcMgAEO5b6XkoLYC591QPHM0u2U0hc56QIHAAAKCRA0t9EL 10 | wQjoOrRXBACBqhigTcj8pJY14AkjV+ZzUbm55kJRDPdU7NQ1PSvczm7HZaL3b8Lr 11 | Psa5c5+caVLjsGWkQycQl7lUIGU84KoUfwACQKVVLkqJz8LkL54lLcwkG70+1NH5 12 | xoSNcHHVbYtqDLNeCOq5jEIoXuz44wiWVEfF+/B115PvgwZ63pjH1rRGVGVzdCBL 13 | ZXkgRGVtb25zdHJhdGluZyBSZXZva2VyIFRyb3VibGUgKERPIE5PVCBVU0UpIDx0 14 | ZXN0QGV4YW1wbGUubmV0Poi+BBMBAgAoBQJL46hJAhsDBQkACTqABgsJCAcDAgYV 15 | CAIJCgsEFgIDAQIeAQIXgAAKCRA0t9ELwQjoOgLpA/9/si2QYmietY9a6VlAmMri 16 | mhZeqo6zyn8zrO9RGU7+8jmeb5nVnXw1YmZcw2fiJgI9+tTMkTfomyR6k0EDvcEu 17 | 2Mg3USkVnJfrrkPjSL9EajW6VpOUNxlox3ZT1oyEo3OOnVF1gC1reWYfy7Ns9zIB 18 | 1leLXbMr86zYdCoXp0Xu4g== 19 | =xsEd 20 | -----END PGP PUBLIC KEY BLOCK----- 21 | -------------------------------------------------------------------------------- /tests/openpgp/samplemsgs/mail-test-2.eml: -------------------------------------------------------------------------------- 1 | From: Werner Koch 2 | To: wk@gnupg.org 3 | Subject: gpg-mail-tube test 2 4 | Date: Thu, 29 Aug 2024 15:27:00 +0200 5 | Message-ID: <87cylra28r.fsf@jacob.g10code.de> 6 | User-Agent: Gnus/5.13 (Gnus v5.13) 7 | MIME-Version: 1.0 8 | Content-Type: multipart/mixed; boundary="=Cypherpunks_Abu_Sayyaf_Wildfire_NATIA_Relief_Cancelled_RIT_Worm=Bell" 9 | 10 | --=Cypherpunks_Abu_Sayyaf_Wildfire_NATIA_Relief_Cancelled_RIT_Worm=Bell 11 | Content-Type: text/plain 12 | 13 | Hi! 14 | 15 | As a followup to my first mail, have a look at the attached file. 16 | 17 | Peace, 18 | 19 | The Privacy Guard 20 | 21 | -- 22 | The pioneers of a warless world are the youth that 23 | refuse military service. - A. Einstein 24 | 25 | --=Cypherpunks_Abu_Sayyaf_Wildfire_NATIA_Relief_Cancelled_RIT_Worm=Bell 26 | Content-Type: text/plain; charset=utf-8 27 | Content-Disposition: attachment; filename=lucky.txt 28 | Content-Transfer-Encoding: base64 29 | 30 | 8J+QnvCfjYDwn4yIIA0K 31 | --=Cypherpunks_Abu_Sayyaf_Wildfire_NATIA_Relief_Cancelled_RIT_Worm=Bell-- 32 | -------------------------------------------------------------------------------- /tests/pkits/inhibit-policy-mapping: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # inhibit-policy-mapping - PKITS Test 4.11 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.11 23 | description="Inhibit Policy Mapping" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tests/pkits/require-explicit-policy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # require-explicit-policy - PKITS Test 4.9 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.9 23 | description="Require Explicit Policy" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tests/pkits/verifying-name-chaining: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # verifying-name-chaining - PKITS Test 4.3 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.3 23 | description="Verifying Name Chaining" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /g10/gpg.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (OpenPGP tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /sm/gpgsm.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (X.509/CMS Tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/pkits/verifying-basic-constraints: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # verifying-basic-constraints - PKITS Test 4.6 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.6 23 | description="Verifying Basic Constraints" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /dirmngr/dirmngr.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Archive tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /g10/gpgv.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (OpenPGP verify tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_test_zs.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICyzCCAjSgAwIBAgIBBTANBgkqhkiG9w0BAQUFADA6MQswCQYDVQQGEwJERTERMA8GA1UE 3 | ChMIQ0NJIEdtYkgxGDAWBgNVBAMTD1NQSElOWC1UZXN0LVdaUzAeFw0wMTA4MjQxMDA5MDNa 4 | Fw0wMzA4MjQxMDA5MDNaMDkxCzAJBgNVBAYTAkRFMREwDwYDVQQKEwhDQ0kgR21iSDEXMBUG 5 | A1UEAxMOU1BISU5YLVRlc3QtWlMwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAP+E1LeX 6 | nwq5qAmfHX+zfabAaeMR9Ufow/1ojNg8md+XGVUFJ0a9GZJVQ4ngmxKHmO+6fT77Z0Sj7BQT 7 | bxLbZEqvBxYDSoJgN6K7q2LdbTPIKMOzVF+TxtNyauZx+yxJxTMYYkyVmAlfjAx8Wlznf8Aj 8 | kZywmjVtYWpoN0WedGsbAgMBAAGjgeEwgd4wVwYDVR0fBFAwTjBMoEqgSIZGbGRhcDovLy9j 9 | bj1TUEhJTlgtVGVzdC1XWlMsIG89Q0NJIEdtYkgsIEM9REU/Y2VydGlmaWNhdGVSZXZvY2F0 10 | aW9uTGlzdDASBgNVHRMBAf8ECDAGAQH/AgEAMBEGA1UdIAQKMAgwBgYEgnEJCTAOBgNVHQ8B 11 | Af8EBAMCAQYwTAYDVR0jBEUwQ6E+pDwwOjELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBH 12 | bWJIMRgwFgYDVQQDEw9TUEhJTlgtVGVzdC1XWlOCAQEwDQYJKoZIhvcNAQEFBQADgYEAGWjq 13 | TsoWQmUiY3c5Tju+jL51AapWWZbZP8xpBTFjXNRQcRPzWrtHCWS3fhae+aMyGFxiqEhGLePc 14 | QvNdgZmZtzNYSfmeS3iji3zSj7CFmUQKwFrAXUDQNvkS+87FwVno8LilnC0zMfhSW699HtWe 15 | DW/o0CuhXX6IJXXWuSudCH8= 16 | -----END CERTIFICATE----- 17 | -------------------------------------------------------------------------------- /tests/pkits/basic-certificate-revocation: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # basic-certificate-revocation - PKITS Test 4.4 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.4 23 | description="Basic Certificate Revocation" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tools/gpg-card.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Card tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tools/gpgconf.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Config tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tools/gpgtar.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Archive tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /kbx/keyboxd.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Public Key Daemon) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /scd/scdaemon.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Smartcard Daemon) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/gpgscm/ffi.h: -------------------------------------------------------------------------------- 1 | /* FFI interface for TinySCHEME. 2 | * 3 | * Copyright (C) 2016 g10 code GmbH 4 | * 5 | * This file is part of GnuPG. 6 | * 7 | * GnuPG is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GnuPG is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, see . 19 | */ 20 | 21 | #ifndef GPGSCM_FFI_H 22 | #define GPGSCM_FFI_H 23 | 24 | #include 25 | #include "scheme.h" 26 | 27 | gpg_error_t ffi_init (scheme *sc, const char *argv0, const char *scriptname, 28 | int argc, const char **argv); 29 | 30 | #endif /* GPGSCM_FFI_H */ 31 | -------------------------------------------------------------------------------- /tests/pkits/private-certificate-extensions: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # private-certificate-extensions - PKITS Test 4.16 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.16 23 | description="Private Certificate Extensions" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /agent/gpg-agent.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Private Key Daemon) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /dirmngr/dirmngr_ldap.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (LDAP Helper) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /doc/trust-values.texi: -------------------------------------------------------------------------------- 1 | @c Copyright (C) 2018 Free Software Foundation, Inc. 2 | @c This is part of the GnuPG manual. 3 | @c For copying conditions, see the file gnupg.texi. 4 | 5 | Trust values are used to indicate ownertrust and validity of keys and 6 | user IDs. They are displayed with letters or strings: 7 | 8 | @table @asis 9 | 10 | @item - 11 | @itemx unknown 12 | No ownertrust assigned / not yet calculated. 13 | 14 | @item e 15 | @itemx expired 16 | 17 | Trust calculation has failed; probably due to an expired key. 18 | 19 | @item q 20 | @itemx undefined, undef 21 | Not enough information for calculation. 22 | 23 | @item n 24 | @itemx never 25 | Never trust this key. 26 | 27 | @item m 28 | @itemx marginal 29 | Marginally trusted. 30 | 31 | @item f 32 | @itemx full 33 | Fully trusted. 34 | 35 | @item u 36 | @itemx ultimate 37 | Ultimately trusted. 38 | 39 | @item r 40 | @itemx revoked 41 | For validity only: the key or the user ID has been revoked. 42 | 43 | @item ? 44 | @itemx err 45 | The program encountered an unknown trust value. 46 | 47 | @end table 48 | -------------------------------------------------------------------------------- /g10/key-check.h: -------------------------------------------------------------------------------- 1 | /* key-check.h - Detect and fix various problems with keys 2 | * Copyright (C) 2017 g10 Code GmbH 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GNUPG_G10_PACKET_TOOLS_H 21 | #define GNUPG_G10_PACKET_TOOLS_H 22 | 23 | #include "gpg.h" 24 | 25 | int key_check_all_keysigs (ctrl_t ctrl, int mode, kbnode_t kb, 26 | int only_selected, int only_selfsigs); 27 | 28 | #endif /* GNUPG_G10_PACKET_TOOLS_H */ 29 | -------------------------------------------------------------------------------- /tests/cms/567064FE6D14A17B2D811ABB407728BC558AA455: -------------------------------------------------------------------------------- 1 | (private-key 2 | (oid.1.2.840.113549.1.1.1 3 | (n #00e0ce96f90b6c9e02f3922beada93fe50a875eac6bcc18bb9a9cf2e84965caa2d1ff95a7f542465c6c0c19d276e4526ce048868a7a914fd343cc3a87dd74291ffc565506d5bbb25cbac6a0e2dd1f8bcaab0d4a29c2f37c950f363484bf269f7891440464baf79827e03a36e70b814938eebdc63e964247be75dc58b014b7ea251#) 4 | (e #010001#) 5 | (d #046129F2489D71579BE0A75FE029BD6CDB574EBF57EA8A5B0FDA942CAB943B117D7BB95E5D28875E0F9FC5FCC06A72F6D502464DABDED78EF6B716177B83D5BDC543DC5D3FED932E59F5897E92E6F58A0F33424106A3B6FA2CBF877510E4AC21C3EE47851E97D12996222AC3566D4CCB0B83D164074ABF7DE655FC2446DA1781#) 6 | (p #00e861b700e17e8afe6837e7512e35b6ca11d0ae47d8b85161c67baf64377213fe52d772f2035b3ca830af41d8a4120e1c1c70d12cc22f00d28d31dd48a8d424f1#) 7 | (q #00f7a7ca5367c661f8e62df34f0d05c10c88e5492348dd7bddc942c9a8f369f935a07785d2db805215ed786e4285df1658eed3ce84f469b81b50d358407b4ad361#) 8 | (u #304559a9ead56d2309d203811a641bb1a09626bc8eb36fffa23c968ec5bd891eebbafc73ae666e01ba7c8990bae06cc2bbe10b75e69fcacb353a6473079d8e9b#) 9 | ) 10 | ) 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/cms/shell.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) 21 | (setup-gpgsm-environment) 22 | 23 | ;; This is not a test, but can be used to inspect the test 24 | ;; environment. Simply execute 25 | ;; 26 | ;; make -Ctests/gpgsm check XTESTS=shell.scm 27 | ;; 28 | ;; to run it. 29 | 30 | (interactive-shell) 31 | -------------------------------------------------------------------------------- /tests/pkits/verifying-paths-self-issued: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # verifying-paths-self-issued - PKITS Test 4.5 -*- sh -*- 3 | # Copyright (C) 2008 Free Software Foundation, Inc. 4 | # 5 | # This file is part of GnuPG. 6 | # 7 | # GnuPG is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 3 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # GnuPG is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, see . 19 | 20 | . ${srcdir:-.}/common.sh || exit 2 21 | 22 | section=4.5 23 | description="Verifying Paths with Self-Issued Certificates" 24 | info "Running $description tests" 25 | 26 | 27 | 28 | 29 | 30 | 31 | final_result 32 | -------------------------------------------------------------------------------- /tools/gpg-connect-agent.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (IPC tool) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /dirmngr/dirmngr-client.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Dirmngr Client) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /doc/gnupg7.texi: -------------------------------------------------------------------------------- 1 | @c @c -*-texinfo-*- 2 | @c This is only used to create a man page, thus we don't need to care 3 | @c about actual texinfo stuff. 4 | 5 | @manpage gnupg.7 6 | @ifset manverb 7 | .B GnuPG 8 | \- The GNU Privacy Guard suite of programs 9 | @end ifset 10 | @mansect description 11 | @ifset isman 12 | GnuPG is a set of programs for public key encryption and digital 13 | signatures. The program most users will want to use is the OpenPGP 14 | command line tool, named @command{gpg}. @command{gpgv} is a stripped 15 | down version of @command{gpg} with no encryption functionality, used 16 | only to verify signatures against a trusted keyring. @command{gpgsm} is 17 | the X.509/CMS (for S/MIME) counterpart of 18 | @command{gpg}. @command{gpg-agent} is a passphrase and private key 19 | daemon which may also emulate the @command{ssh-agent}. 20 | @mansect see also 21 | @command{gpg}(1), 22 | @command{gpgv}(1), 23 | @command{gpgsm}(1), 24 | @command{gpg-agent}(1), 25 | @command{dirmngr}(8), 26 | @command{scdaemon}(1) 27 | @include see-also-note.texi 28 | @end ifset 29 | 30 | @bye 31 | -------------------------------------------------------------------------------- /tools/gpg-check-pattern.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Pattern checker) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tools/gpg-wks-client.w32-manifest.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | GNU Privacy Guard (Web Key Service client) 4 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/cms/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key: -------------------------------------------------------------------------------- 1 | (private-key 2 | (oid.1.2.840.113549.1.1.1 3 | (n #00e0ce96f90b6c9e02f3922beada93fe50a875eac6bcc18bb9a9cf2e84965caa2d1ff95a7f542465c6c0c19d276e4526ce048868a7a914fd343cc3a87dd74291ffc565506d5bbb25cbac6a0e2dd1f8bcaab0d4a29c2f37c950f363484bf269f7891440464baf79827e03a36e70b814938eebdc63e964247be75dc58b014b7ea251#) 4 | (e #010001#) 5 | (d #046129F2489D71579BE0A75FE029BD6CDB574EBF57EA8A5B0FDA942CAB943B117D7BB95E5D28875E0F9FC5FCC06A72F6D502464DABDED78EF6B716177B83D5BDC543DC5D3FED932E59F5897E92E6F58A0F33424106A3B6FA2CBF877510E4AC21C3EE47851E97D12996222AC3566D4CCB0B83D164074ABF7DE655FC2446DA1781#) 6 | (p #00e861b700e17e8afe6837e7512e35b6ca11d0ae47d8b85161c67baf64377213fe52d772f2035b3ca830af41d8a4120e1c1c70d12cc22f00d28d31dd48a8d424f1#) 7 | (q #00f7a7ca5367c661f8e62df34f0d05c10c88e5492348dd7bddc942c9a8f369f935a07785d2db805215ed786e4285df1658eed3ce84f469b81b50d358407b4ad361#) 8 | (u #304559a9ead56d2309d203811a641bb1a09626bc8eb36fffa23c968ec5bd891eebbafc73ae666e01ba7c8990bae06cc2bbe10b75e69fcacb353a6473079d8e9b#) 9 | ) 10 | ) 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/v5-sample-1-sec.asc: -------------------------------------------------------------------------------- 1 | sec ed25519 2019-03-20 [SC] 2 | 19347BC9872464025F99DF3EC2E0000ED9884892E1F7B3EA4C94009159569B54 3 | uid emma.goldman@example.net 4 | ssb cv25519 2019-03-20 [E] 5 | E4557C2B02FFBF4B04F87401EC336AF7133D0F85BE7FD09BAEFD9CAEB8C93965 6 | 7 | -----BEGIN PGP PRIVATE KEY BLOCK----- 8 | 9 | lGEFXJH05BYAAAAtCSsGAQQB2kcPAQEHQFhZlVcVVtwf+21xNQPX+ecMJJBL0MPd 10 | fj75iux+my8QAAAAAAAiAQCHZ1SnSUmWqxEsoI6facIVZQu6mph3cBFzzTvcm5lA 11 | Ng5ctBhlbW1hLmdvbGRtYW5AZXhhbXBsZS5uZXSIlgUTFggASCIhBRk0e8mHJGQC 12 | X5nfPsLgAA7ZiEiS4fez6kyUAJFZVptUBQJckfTkAhsDBQsJCAcCAyICAQYVCgkI 13 | CwIEFgIDAQIeBwIXgAAA9cAA/jiR3yMsZMeEQ40u6uzEoXa6UXeV/S3wwJAXRJy9 14 | M8s0AP9vuL/7AyTfFXwwzSjDnYmzS0qAhbLDQ643N+MXGBJ2BZxmBVyR9OQSAAAA 15 | MgorBgEEAZdVAQUBAQdA+nysrzml2UCweAqtpDuncSPlvrcBWKU0yfU0YvYWWAoD 16 | AQgHAAAAAAAiAP9OdAPppjU1WwpqjIItkxr+VPQRT8Zm/Riw7U3F6v3OiBFHiHoF 17 | GBYIACwiIQUZNHvJhyRkAl+Z3z7C4AAO2YhIkuH3s+pMlACRWVabVAUCXJH05AIb 18 | DAAAOSQBAP4BOOIR/sGLNMOfeb5fPs/02QMieoiSjIBnijhob2U5AQC+RtOHCHx7 19 | TcIYl5/Uyoi+FOvPLcNw4hOv2nwUzSSVAw== 20 | =IiS2 21 | -----END PGP PRIVATE KEY BLOCK----- 22 | -------------------------------------------------------------------------------- /tests/openpgp/privkeys/A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD.asc: -------------------------------------------------------------------------------- 1 | -----BEGIN PGP ARMORED FILE----- 2 | Version: GnuPG v1.4.8 (GNU/Linux) 3 | Comment: Use "gpg --dearmor" for unpacking 4 | 5 | KDIxOnByb3RlY3RlZC1wcml2YXRlLWtleSgzOmVsZygxOnAxMjk6AJyN1x9X9Lsj 6 | fX2Z8O9s7BzMO9OoOxFtvZw+FA0BuDs0WVYkq1GuZ9/XiO0K30zvtZnlb7NMvBfz 7 | 7xbLeYx+vKzy5xkq18+LE5dU+HKKdRQZKrrwgCsDy8tJRO447QsiLTksCDqPMaE3 8 | 2OCRBF5nKrG5vih7/cmEhf2CuAn+2yM3KSgxOmcxOgcpKDE6eTEyODoZ5eYysaLn 9 | AwPeqQ9vNvUyrCxUEmrvl4svG7zkkg3ZcgAbDpDQUmnijt3gEBCoAzO3c41TU5wJ 10 | aUNBEPGPWfKcTlmBEGJWjK50QQuA2diGncxIS5SDs+QVaf434a6/KFVQcCmV7K8/ 11 | T2S8/nuGJ/rIlFL5XovW6A/S9mYEjh2pDykoOTpwcm90ZWN0ZWQyNTpvcGVucGdw 12 | LXMyazMtc2hhMS1hZXMtY2JjKCg0OnNoYTE4OkuRjUFO6YIJNzo0NjYwMjI0KTE2 13 | Or7L9Ekww4C0lZz3g61PzJEpMTkyOk7ezAcv7simMXQw+afvqUlhdoyVM4QQuhj8 14 | KzqjNP3IC2fSHoFECWxGfC1fNcuqzRnzs98TqAy5BDnNXSW+e+CpenWtLpID/dvb 15 | azkeATfhMf/2KMd2Mahi6rnQ6IBnxhq1d5jLhYg00Ba1HbojEYOkCPKQlFV01bQw 16 | mUsyQ7sMr42JvdFTI4lDmQlHfqoexpFpLCDv4eUKjvG/K7xs0uLiF4vyMLVH5H/k 17 | 6EF9HEP9sUF+aTDJXrrfHOUG1LR6/CkoMTI6cHJvdGVjdGVkLWF0MTU6MjAxMDEw 18 | MTRUMTUzNTM4KSkp 19 | =soiR 20 | -----END PGP ARMORED FILE----- 21 | -------------------------------------------------------------------------------- /tests/openpgp/samplekeys/ecc-sample-2-sec.asc: -------------------------------------------------------------------------------- 1 | ECC NIST P-384 key taken from 2 | https://sites.google.com/site/brainhub/pgpecckeys 3 | 4 | The sample key has ECDSA top key 0x098033880F54719F and a single ECDH 5 | encryption subkey 0xAA8B938F9A201946. ECDH subkey uses SHA-384 and 6 | AES-256 with KDF. The password for the key is "ecc". 7 | 8 | -----BEGIN PGP PRIVATE KEY BLOCK----- 9 | Version: PGP Command Line v10.0.0 (Linux) 10 | 11 | lQDSBE1TBZITBSuBBAAiAwME9rjFrO1bhO+fSiCdsuSp37cNKMuMEOzVdnSp+lpn 12 | OJlCti1eUTZ99Me/0/jlAP7s8H7SZaYhqOu75T6UfseMZ366FDvRUzwrNQ4cKfgj 13 | E+HhEI66Bjvh5ksQ5pUOeZwt/gcDAkrFTsfF6LKsqD/tW6Eot2DDE8znJjnQQ/Nr 14 | H98XT1WQ9V0ED8l9DDIIj7z80ED3NR8XMSI8Ew/A/0w6NDPL978BX0MGvpaeBaWV 15 | tEuH1EPAxiA+hFALwftY+a8s1zLktCRlY19kc2FfZGhfMzg0IDxvcGVucGdwQGJy 16 | YWluaHViLm9yZz6dANYETVMFkhIFK4EEACIDAwQvqoQCSiC2c1xIl++lv7Qb+Ft+ 17 | 7+q1ygy5/8jqBKRqyyVTSld2lPniU0Ckq1Ijqd0e2lMMiqLmcY2xDX5nJVjHc2/g 18 | k2nqVzmio1VL8W1B+qUFYvEcbTm71d/7a5qeyRgDAQkJ/gkDAqqmkngPLoJGqI4O 19 | rHyyU3wrrPzDDDURkseoUEZlDZINjyto26A8N825mqLqeFytJuuABYH1UnLs4d2x 20 | ZJZIYjEoFMPcFPuUtx+IZnECa1Vcyq2aRFCixVO0G/xrSFar 21 | =a4k3 22 | -----END PGP PRIVATE KEY BLOCK----- 23 | -------------------------------------------------------------------------------- /tests/openpgp/bug1223-bogus.asc: -------------------------------------------------------------------------------- 1 | Bogus test key for bug 1223 (Designated revoker sigs are not properly merged) 2 | Thanks to Daniel Kahn Gillmor for providing the test keys. 3 | 4 | -----BEGIN PGP PUBLIC KEY BLOCK----- 5 | Version: GnuPG v1.4.10 (GNU/Linux) 6 | 7 | mI0ES+OoSQEEAJUZ/+fC6DXN2X7Wxl4Huud/+i2qP1hcq+Qnbr7hVCKEnn0edYl+ 8 | 6xfsKmAMBjl+qTZxPSDSx4r3ciMiIbnvXFtlBAQmji86kqoR6fm9s8BN7LTq7+2/ 9 | c2FHVF67D7zES7WgHc4i7CfiZnwXgkLvi5b1jBt+MTAOrFhdobxoy6/XABEBAAGI 10 | twQfAQIAIQUCS+OsRRcMgAEAAAAAAAAAAAAAAAAAAAAAAAAAAQIHAAAKCRA0t9EL 11 | wQjoOrRXBACBqhigTcj8pJY14AkjV+ZzUbm55kJRDPdU7NQ1PSvczm7HZaL3b8Lr 12 | Psa5c5+caVLjsGWkQycQl7lUIGU84KoUfwACQKVVLkqJz8LkL54lLcwkG70+1NH5 13 | xoSNcHHVbYtqDLNeCOq5jEIoXuz44wiWVEfF+/B115PvgwZ63pjH1rRGVGVzdCBL 14 | ZXkgRGVtb25zdHJhdGluZyBSZXZva2VyIFRyb3VibGUgKERPIE5PVCBVU0UpIDx0 15 | ZXN0QGV4YW1wbGUubmV0Poi+BBMBAgAoBQJL46hJAhsDBQkACTqABgsJCAcDAgYV 16 | CAIJCgsEFgIDAQIeAQIXgAAKCRA0t9ELwQjoOgLpA/9/si2QYmietY9a6VlAmMri 17 | mhZeqo6zyn8zrO9RGU7+8jmeb5nVnXw1YmZcw2fiJgI9+tTMkTfomyR6k0EDvcEu 18 | 2Mg3USkVnJfrrkPjSL9EajW6VpOUNxlox3ZT1oyEo3OOnVF1gC1reWYfy7Ns9zIB 19 | 1leLXbMr86zYdCoXp0Xu4g== 20 | =YV5g 21 | -----END PGP PUBLIC KEY BLOCK----- 22 | -------------------------------------------------------------------------------- /tests/tpm2dtests/start_sw_tpm.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # remove any prior TPM contents 4 | rm -f NVChip h*.bin *.permall 5 | if [ -x "${SWTPM}" ]; then 6 | ${SWTPM} socket --tpm2 --daemon \ 7 | --pid file=swtpm.pid \ 8 | --server type=tcp,port=2321 \ 9 | --ctrl type=tcp,port=2322 \ 10 | --flags not-need-init,startup-clear \ 11 | --tpmstate dir=`pwd` 12 | cat swtpm.pid 13 | else 14 | ${TPMSERVER} > /dev/null 2>&1 & 15 | pid=$! 16 | ## 17 | # This powers on the tpm and starts it 18 | # then we derive the RSA version of the storage seed and 19 | # store it permanently at handle 81000001 and flush the transient 20 | ## 21 | a=0 22 | while [ $a -lt 10 ]; do 23 | tsspowerup > /dev/null 2>&1 24 | if [ $? -eq 0 ]; then 25 | break; 26 | fi 27 | sleep 1 28 | a=$[$a+1] 29 | done 30 | if [ $a -eq 10 ]; then 31 | echo "Waited 10s for tpm_server to come up; exiting" 32 | exit 1 33 | fi 34 | 35 | ${TSSSTARTUP} || exit 1 36 | echo -n $pid 37 | fi 38 | -------------------------------------------------------------------------------- /tests/cms/decrypt.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) 21 | (setup-gpgsm-environment) 22 | 23 | (for-each-p 24 | "Checking decryption of supplied files." 25 | (lambda (name) 26 | (tr:do 27 | (tr:open (in-srcdir "tests" "cms" (string-append name ".cms.asc"))) 28 | (tr:gpgsm "" '(--decrypt)) 29 | (tr:assert-identity name))) 30 | plain-files) 31 | -------------------------------------------------------------------------------- /artwork/README: -------------------------------------------------------------------------------- 1 | These is a collection of graphics used in connection with GnuPG. It 2 | is not part of GnuPG proper. [wk 2004-09-11] 3 | 4 | 5 | gnupg-logo-new.svg Is the new logo from the logo context designed by 6 | Thomas Wittek. We actually use the upper right 7 | one; the other elements may still be useful. 8 | 9 | gnupg-logo.svg This is the cropped off version of the above logo. 10 | 11 | gnupg-logo-new.eps Other versions. 12 | gnupg-logo-new.ai 13 | 14 | gnupg-favicon-1.ico Icons for the website (rectangular) 15 | gnupg-favicon-2.ico (round) 16 | 17 | 18 | The above GnuPG logos are Copyright (c) 2006 g10 Code GmbH, and are 19 | released under the terms of the GNU General Public License, version 3 20 | or any later version, or, at your option, of the Creative Commons 21 | Attribution-ShareAlike 4.0 International License. If you wish to 22 | allow the use of your version of this logo only under the terms of one 23 | of these licenses, indicate your decision by deleting the respective 24 | note. 25 | 26 | We would appreciate that you make a logo image a link to 27 | https://gnupg.org/ if you use it on a web page. 28 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_user07.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC/jCCAmegAwIBAgIBIDANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJERTERMA8GA1UE 3 | ChMIQ0NJIEdtYkgxFzAVBgNVBAMTDlNQSElOWC1UZXN0LVpTMB4XDTAxMTIxMTA4NTgzOFoX 4 | DTAyMTIxMTA4NTgzOFowMzELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBHbWJIMREwDwYD 5 | VQQDEwhTcGhpbngwNzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtV86FCbl5CQqthMK 6 | vjWjCFOfQZW2v66oiIuE/WZjyOIu1n4FC6z0+pI3FmeKrKhiYeXP8A2J/BzwS9ZD+0as5EyU 7 | +QUzMPdm8pkzvkZCUPKRVi2cyRrBwwqnhH8Bwk2L2o2WMe46D3WBx4hSG+vhQvNMP4nrIGbs 8 | oh+3XJjkoXcCAwCnU6OCARowggEWMFYGA1UdHwRPME0wS6BJoEeGRWxkYXA6Ly8vY249U1BI 9 | SU5YLVRlc3QtWlMsIG89Q0NJIEdtYkgsIGM9REU/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlz 10 | dDAMBgNVHRMBAf8EAjAAMB4GA1UdEQQXMBWBE3NwaGlueDA3QGl0cy5jY2kuZGUwEQYDVR0g 11 | BAowCDAGBgSCcQkJMA4GA1UdDwEB/wQEAwIF4DAdBgNVHQ4EFgQUdyGyVPOTruMiE7OLekoP 12 | 8oJttzcwTAYDVR0jBEUwQ6E+pDwwOjELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBHbWJI 13 | MRgwFgYDVQQDEw9TUEhJTlgtVGVzdC1XWlOCAQUwDQYJKoZIhvcNAQEFBQADgYEABjjhOFKV 14 | 3cVF7EGsPfnCq9CYjanFr7jhPxEYG0BuY+x1zgpsTkJm4/wk+NhGo/sFjrq7YExkhQgQViGt 15 | 9UhnXZQPsayna1lmkwl/edzpR3A1ELbiULTVGdLarP3MmWEMzKl/Z6prbb+cD1Qwb8D5DG+Q 16 | u3E39VxgzG8i9wMSFh8= 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /tests/cms/setup.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) 21 | 22 | (define tarball (flag "--create-tarball" *args*)) 23 | (unless (and tarball (not (null? tarball))) 24 | (error "Usage: setup.scm --create-tarball ...")) 25 | 26 | (setenv "GNUPGHOME" (getcwd) #t) 27 | (create-gpgsmhome) 28 | (call-check `(,(tool 'gpgtar) --create --output ,(car tarball) ".")) 29 | -------------------------------------------------------------------------------- /tests/migrations/run-tests.scm: -------------------------------------------------------------------------------- 1 | ;; Test-suite runner. 2 | ;; 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (define tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*)) 21 | 22 | (run-tests (if (null? tests) 23 | (load-tests "tests" "migrations") 24 | (map (lambda (name) 25 | (test::scm #f 26 | #f 27 | (path-join "tests" "migrations" name) 28 | (in-srcdir "tests" "migrations" name))) tests))) 29 | -------------------------------------------------------------------------------- /tests/openpgp/decrypt.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "openpgp" "defs.scm")) 21 | (setup-legacy-environment) 22 | 23 | (for-each-p 24 | "Checking decryption of supplied files" 25 | (lambda (name) 26 | (tr:do 27 | (tr:open (in-srcdir "tests" "openpgp" (string-append name ".asc"))) 28 | (tr:gpg "" '(--yes --decrypt)) 29 | (tr:assert-identity name))) 30 | plain-files) 31 | -------------------------------------------------------------------------------- /tests/openpgp/enarmor.scm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env gpgscm 2 | 3 | ;; Copyright (C) 2016 g10 Code GmbH 4 | ;; 5 | ;; This file is part of GnuPG. 6 | ;; 7 | ;; GnuPG is free software; you can redistribute it and/or modify 8 | ;; it under the terms of the GNU General Public License as published by 9 | ;; the Free Software Foundation; either version 3 of the License, or 10 | ;; (at your option) any later version. 11 | ;; 12 | ;; GnuPG is distributed in the hope that it will be useful, 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ;; GNU General Public License for more details. 16 | ;; 17 | ;; You should have received a copy of the GNU General Public License 18 | ;; along with this program; if not, see . 19 | 20 | (load (in-srcdir "tests" "openpgp" "defs.scm")) 21 | (setup-legacy-environment) 22 | 23 | (for-each-p 24 | "Checking armor encoding and decoding" 25 | (lambda (source) 26 | (tr:do 27 | (tr:open source) 28 | (tr:gpg "" `(--enarmor)) 29 | (tr:gpg "" '(--dearmor)) 30 | (tr:assert-identity source))) 31 | (append plain-files data-files)) 32 | -------------------------------------------------------------------------------- /tools/send-mail.h: -------------------------------------------------------------------------------- 1 | /* send-mail.h - Invoke sendmail or other delivery tool. 2 | * Copyright (C) 2016 g10 Code GmbH 3 | * Copyright (C) 2016 Bundesamt für Sicherheit in der Informationstechnik 4 | * 5 | * This file is part of GnuPG. 6 | * 7 | * This file is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as 9 | * published by the Free Software Foundation; either version 2.1 of 10 | * the License, or (at your option) any later version. 11 | * 12 | * This file is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this program; if not, see . 19 | */ 20 | 21 | #ifndef GNUPG_SEND_MAIL_H 22 | #define GNUPG_SEND_MAIL_H 23 | 24 | gpg_error_t send_mail (estream_t fp); 25 | gpg_error_t send_mail_to_file (estream_t fp, const char *fname); 26 | 27 | 28 | #endif /*GNUPG_SEND_MAIL_H*/ 29 | -------------------------------------------------------------------------------- /kbx/keybox-fwddecl.h: -------------------------------------------------------------------------------- 1 | /* keybox-fwddecl.h - Keybox specific forward declarations and definitions. 2 | * Copyright (C) 2025 g10 Code GmbH 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | * SPDX-License-Identifier: GPL-3.0-or-later 19 | */ 20 | 21 | #ifndef KEYBOX_FWDDECL_H 22 | #define KEYBOX_FWDDECL_H 1 23 | 24 | struct keyring_handle; 25 | typedef struct keyring_handle *KEYRING_HANDLE; 26 | 27 | struct keybox_handle; 28 | typedef struct keybox_handle *KEYBOX_HANDLE; 29 | 30 | #endif /*KEYBOX_FWDDECL_H*/ 31 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_user02.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDBDCCAm2gAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJERTERMA8GA1UE 3 | ChMIQ0NJIEdtYkgxFzAVBgNVBAMTDlNQSElOWC1UZXN0LVpTMB4XDTAxMTIxMTA3MTYyMloX 4 | DTAyMTIxMTA3MTYyMlowODELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBHbWJIMRYwFAYD 5 | VQQDEw1TcGhpbnggVXNlcjAyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD+Gt/ahGJL 6 | uEUVFgceVUsShMgJirndaGjJb/kR3cHQ4Yh4XM9WvP2ze6SRb1cn3Xq9bR1RTFwRoupp9h94 7 | OwhxjhOTKtTtwFv/OcffJPwAF6K+ms5s8oSBzNX6mo+sLwoVWHaXaSP7rzvOhvYPJpCE6zrS 8 | GO4aUcH50f63wusSKQIDAQABo4IBGzCCARcwVgYDVR0fBE8wTTBLoEmgR4ZFbGRhcDovLy9j 9 | bj1TUEhJTlgtVGVzdC1aUywgbz1DQ0kgR21iSCwgYz1ERT9jZXJ0aWZpY2F0ZVJldm9jYXRp 10 | b25MaXN0MAwGA1UdEwEB/wQCMAAwHwYDVR0RBBgwFoEUc3BoaW54X3VzZXIwMkBjY2kuZGUw 11 | EQYDVR0gBAowCDAGBgSCcQkJMA4GA1UdDwEB/wQEAwIF4DAdBgNVHQ4EFgQUZpxNoy1I5cIT 12 | OmeF8LSUJjWnlaowTAYDVR0jBEUwQ6E+pDwwOjELMAkGA1UEBhMCREUxETAPBgNVBAoTCEND 13 | SSBHbWJIMRgwFgYDVQQDEw9TUEhJTlgtVGVzdC1XWlOCAQUwDQYJKoZIhvcNAQEFBQADgYEA 14 | UU1L9U5LOBaa99Q2ogsLS3PuSOhMKSKWwK+rG5YzNGh9L3+Ecp6/cdZeGY8IV4kQHx2YDhon 15 | tX+SfEnAU5WKN+YfxbLQz5jbDYeyIkFXPFn4Pzt4+1gFLOVvdHFJKT6tb0ZbbLkJkrK+gf29 16 | sFHz/tVEIiwvWdzCQh669TvmSLc= 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_user03.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDBDCCAm2gAwIBAgIBHzANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJERTERMA8GA1UE 3 | ChMIQ0NJIEdtYkgxFzAVBgNVBAMTDlNQSElOWC1UZXN0LVpTMB4XDTAxMTIxMTA4NDMwNVoX 4 | DTAyMTIxMTA4NDMwNVowODELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBHbWJIMRYwFAYD 5 | VQQDEw1TcGhpbnggVXNlcjAzMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWLHGzEVlh 6 | NKr5RkWi80jZpuVg20C+1W4H/ez2fuGP8IXZAyy6MYPLQSsFuuwfTtLwFDccJ4PubN/JhSLj 7 | 37/AGyygJODQd41CcQxLyB4NqhsYz+dXJv/Rx/E9HDbgsf7fCVwmCpF71phTzeq+zzJYYlDK 8 | uLLvr2auODr4h24jSwIDAQABo4IBGzCCARcwVgYDVR0fBE8wTTBLoEmgR4ZFbGRhcDovLy9j 9 | bj1TUEhJTlgtVGVzdC1aUywgbz1DQ0kgR21iSCwgYz1ERT9jZXJ0aWZpY2F0ZVJldm9jYXRp 10 | b25MaXN0MAwGA1UdEwEB/wQCMAAwHwYDVR0RBBgwFoEUc3BoaW54X3VzZXIwM0BjY2kuZGUw 11 | EQYDVR0gBAowCDAGBgSCcQkJMA4GA1UdDwEB/wQEAwIF4DAdBgNVHQ4EFgQU04AGVPNiznW2 12 | ZoKD0hqNulIe0zIwTAYDVR0jBEUwQ6E+pDwwOjELMAkGA1UEBhMCREUxETAPBgNVBAoTCEND 13 | SSBHbWJIMRgwFgYDVQQDEw9TUEhJTlgtVGVzdC1XWlOCAQUwDQYJKoZIhvcNAQEFBQADgYEA 14 | qvifydhixBkVQ0ZesWHXVDwhPOjWtHMuYafMP+9Vn46HCqsbl4gnQqwdwHKl2ox4qd4VOOu8 15 | PmfKgLysWq11tp/+LCFIEDSLHKCQ1YpBaAxbBg4JxqeTXDF3a3u1RnYOEaVhMZ6L91u16vHT 16 | MJ93W8Fphgf2Fj7EUBPhpyhsnKw= 17 | -----END CERTIFICATE----- 18 | -------------------------------------------------------------------------------- /tests/cms/cert_cci_user04.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDBDCCAm2gAwIBAgIBGzANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJERTERMA8GA1UE 3 | ChMIQ0NJIEdtYkgxFzAVBgNVBAMTDlNQSElOWC1UZXN0LVpTMB4XDTAxMTIxMTA3MTIxM1oX 4 | DTAyMTIxMTA3MTIxM1owODELMAkGA1UEBhMCREUxETAPBgNVBAoTCENDSSBHbWJIMRYwFAYD 5 | VQQDEw1TcGhpbnggVXNlcjA0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDrExMHDJKt 6 | W6ByaO3hVYJCZXJmyMAhHxm31yLXzbd2V5R3Q6ZH4ARk00AMRPDgPLf/NK913OcUFJDrlhLh 7 | aVUfdtz7V095S6Xl38gaClidx2ZJ2EwM4pNxCDeWS1ZFsJMGcis74L5QGrn3/L+76psz7erW 8 | usP+qwy3+3HzL6/hWQIDAQABo4IBGzCCARcwVgYDVR0fBE8wTTBLoEmgR4ZFbGRhcDovLy9j 9 | bj1TUEhJTlgtVGVzdC1aUywgbz1DQ0kgR21iSCwgYz1ERT9jZXJ0aWZpY2F0ZVJldm9jYXRp 10 | b25MaXN0MAwGA1UdEwEB/wQCMAAwHwYDVR0RBBgwFoEUc3BoaW54X3VzZXIwNEBjY2kuZGUw 11 | EQYDVR0gBAowCDAGBgSCcQkJMA4GA1UdDwEB/wQEAwIF4DAdBgNVHQ4EFgQU/UkAw08BpS4w 12 | bM1Eo5MTX21niG4wTAYDVR0jBEUwQ6E+pDwwOjELMAkGA1UEBhMCREUxETAPBgNVBAoTCEND 13 | SSBHbWJIMRgwFgYDVQQDEw9TUEhJTlgtVGVzdC1XWlOCAQUwDQYJKoZIhvcNAQEFBQADgYEA 14 | 3mZM7XFH3CuiGQYe7Wrom+t/QH9BWwORHrskGiVyzBh5Z40HboB8vIN6I6CrQYJHK9DGKnAL 15 | x5AjZ8MUUG3le5M2G6QdhbtGW0jZg5nF1LHx8QYIx8NJSoYa6uPcfr7Q9WgMvTcmA+gXGgzY 16 | Uqv0AMWOx0f3ww0gUpFYIp22ZCc= 17 | -----END CERTIFICATE----- 18 | --------------------------------------------------------------------------------