sequoia-sqv-1.2.1/.cargo_vcs_info.json0000644000000001360000000000100133120ustar { "git": { "sha1": "14abcec39f8e5c3989843f58d6cb1c70c621ff94" }, "path_in_vcs": "" }sequoia-sqv-1.2.1/.gitignore000064400000000000000000000000741046102023000140730ustar 00000000000000/target/ **/*.rs.bk *~ .gdb_history .dir-locals.el Makefile sequoia-sqv-1.2.1/Cargo.lock0000644000001607670000000000100113060ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "aead" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ "crypto-common", "generic-array", ] [[package]] name = "aes" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", "cipher", "cpufeatures", "zeroize", ] [[package]] name = "aes-gcm" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ "aead", "aes", "cipher", "ctr", "ghash", "subtle", ] [[package]] name = "aho-corasick" version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "android-tzdata" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" [[package]] name = "android_system_properties" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ "libc", ] [[package]] name = "anstream" version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", "utf8parse", ] [[package]] name = "anstyle" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" [[package]] name = "anstyle-parse" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" dependencies = [ "anstyle", "windows-sys 0.52.0", ] [[package]] name = "anyhow" version = "1.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59d2a3357dde987206219e78ecfbbb6e8dad06cbb65292758d3270e6254f7355" [[package]] name = "ascii-canvas" version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" dependencies = [ "term", ] [[package]] name = "assert_cmd" version = "2.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "00ad3f3a942eee60335ab4342358c161ee296829e0d16ff42fc1d6cb07815467" dependencies = [ "anstyle", "bstr", "doc-comment", "predicates", "predicates-core", "predicates-tree", "wait-timeout", ] [[package]] name = "autocfg" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" [[package]] name = "base16ct" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51" [[package]] name = "base64ct" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bindgen" version = "0.68.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078" dependencies = [ "bitflags 2.5.0", "cexpr", "clang-sys", "lazy_static", "lazycell", "peeking_take_while", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", "syn", ] [[package]] name = "bit-set" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ "bit-vec", ] [[package]] name = "bit-vec" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" [[package]] name = "block-buffer" version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] [[package]] name = "block-padding" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" dependencies = [ "generic-array", ] [[package]] name = "blowfish" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e412e2cd0f2b2d93e02543ceae7917b3c70331573df19ee046bcbc35e45e87d7" dependencies = [ "byteorder", "cipher", ] [[package]] name = "botan" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "350081af1a3c6883f8a1f863ac553bfe6922589aad60008a70947765ed57c53e" dependencies = [ "botan-sys", ] [[package]] name = "botan-sys" version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f49dde1b8ebd2996cc41c55c39f6ef8b54e38148d8973aeba0792b87b1621ca" [[package]] name = "bstr" version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" dependencies = [ "memchr", "regex-automata", "serde", ] [[package]] name = "buffered-reader" version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd098763fdb64579407a8c83cf0d751e6d4a7e161d0114c89cc181a2ca760ec8" dependencies = [ "lazy_static", "libc", ] [[package]] name = "bumpalo" version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byteorder" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "camellia" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3264e2574e9ef2b53ce6f536dea83a69ac0bc600b762d1523ff83fe07230ce30" dependencies = [ "byteorder", "cipher", ] [[package]] name = "cast5" version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26b07d673db1ccf000e90f54b819db9e75a8348d6eb056e9b8ab53231b7a9911" dependencies = [ "cipher", ] [[package]] name = "cc" version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17f6e324229dc011159fcc089755d1e2e216a90d43a7dea6853ca740b84f35e7" [[package]] name = "cexpr" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" dependencies = [ "nom", ] [[package]] name = "cfb-mode" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "738b8d467867f80a71351933f70461f5b56f24d5c93e0cf216e59229c968d330" dependencies = [ "cipher", ] [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", "windows-targets 0.52.5", ] [[package]] name = "cipher" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", "zeroize", ] [[package]] name = "clang-sys" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1" dependencies = [ "glob", "libc", "libloading", ] [[package]] name = "clap" version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" dependencies = [ "clap_builder", "clap_derive", ] [[package]] name = "clap_builder" version = "4.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", "terminal_size", ] [[package]] name = "clap_complete" version = "4.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "abb745187d7f4d76267b37485a65e0149edd0e91a4cfcdd3f27524ad86cee9f3" dependencies = [ "clap", ] [[package]] name = "clap_derive" version = "4.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" dependencies = [ "heck", "proc-macro2", "quote", "syn", ] [[package]] name = "clap_lex" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" [[package]] name = "clap_mangen" version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e35a078f3aae828c9b7ad58e1631dab87e9dac40da19418f2219bbf3198aa5c" dependencies = [ "clap", "roff", ] [[package]] name = "cmac" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8543454e3c3f5126effff9cd44d562af4e31fb8ce1cc0d3dcd8f084515dbc1aa" dependencies = [ "cipher", "dbl", "digest", ] [[package]] name = "colorchoice" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" [[package]] name = "const-oid" version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "core-foundation-sys" version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cpufeatures" version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] [[package]] name = "crunchy" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", "rand_core", "subtle", "zeroize", ] [[package]] name = "crypto-common" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", "rand_core", "typenum", ] [[package]] name = "ctr" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ "cipher", ] [[package]] name = "curve25519-dalek" version = "4.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest", "fiat-crypto", "platforms", "rustc_version", "subtle", "zeroize", ] [[package]] name = "curve25519-dalek-derive" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "dbl" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd2735a791158376708f9347fe8faba9667589d82427ef3aed6794a8981de3d9" dependencies = [ "generic-array", ] [[package]] name = "der" version = "0.7.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", "pem-rfc7468", "zeroize", ] [[package]] name = "des" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffdd80ce8ce993de27e9f063a444a4d53ce8e8db4c1f00cc03af5ad5a9867a1e" dependencies = [ "cipher", ] [[package]] name = "difflib" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "const-oid", "crypto-common", "subtle", ] [[package]] name = "dirs-next" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" dependencies = [ "cfg-if", "dirs-sys-next", ] [[package]] name = "dirs-sys-next" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", "redox_users", "winapi", ] [[package]] name = "doc-comment" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "dsa" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48bc224a9084ad760195584ce5abb3c2c34a225fa312a128ad245a6b412b7689" dependencies = [ "digest", "num-bigint-dig", "num-traits", "pkcs8", "rfc6979", "sha2", "signature", "zeroize", ] [[package]] name = "dyn-clone" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "eax" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9954fabd903b82b9d7a68f65f97dc96dd9ad368e40ccc907a7c19d53e6bfac28" dependencies = [ "aead", "cipher", "cmac", "ctr", "subtle", ] [[package]] name = "ecb" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a8bfa975b1aec2145850fcaa1c6fe269a16578c44705a532ae3edc92b8881c7" dependencies = [ "cipher", ] [[package]] name = "ecdsa" version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", "digest", "elliptic-curve", "rfc6979", "signature", "spki", ] [[package]] name = "ed25519" version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8", "signature", ] [[package]] name = "ed25519-dalek" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", "rand_core", "serde", "sha2", "subtle", "zeroize", ] [[package]] name = "either" version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" [[package]] name = "elliptic-curve" version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", "digest", "ff", "generic-array", "group", "hkdf", "pem-rfc7468", "pkcs8", "rand_core", "sec1", "subtle", "zeroize", ] [[package]] name = "ena" version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c533630cf40e9caa44bd91aadc88a75d75a4c3a12b4cfde353cbed41daa1e1f1" dependencies = [ "log", ] [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", "windows-sys 0.52.0", ] [[package]] name = "fastrand" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" [[package]] name = "ff" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core", "subtle", ] [[package]] name = "fiat-crypto" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c007b1ae3abe1cb6f85a16305acd418b7ca6343b953633fee2b76d8f108b830f" [[package]] name = "fixedbitset" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "float-cmp" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" dependencies = [ "num-traits", ] [[package]] name = "foreign-types" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" dependencies = [ "foreign-types-shared", ] [[package]] name = "foreign-types-shared" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "generic-array" version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", "zeroize", ] [[package]] name = "getrandom" version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" dependencies = [ "cfg-if", "js-sys", "libc", "wasi", "wasm-bindgen", ] [[package]] name = "ghash" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" dependencies = [ "opaque-debug", "polyval", ] [[package]] name = "glob" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "group" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core", "subtle", ] [[package]] name = "hashbrown" version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hkdf" version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ "hmac", ] [[package]] name = "hmac" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ "digest", ] [[package]] name = "iana-time-zone" version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", "windows-core", ] [[package]] name = "iana-time-zone-haiku" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ "cc", ] [[package]] name = "idea" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "075557004419d7f2031b8bb7f44bb43e55a83ca7b63076a8fb8fe75753836477" dependencies = [ "cipher", ] [[package]] name = "idna" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", ] [[package]] name = "indexmap" version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", "hashbrown", ] [[package]] name = "inout" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ "block-padding", "generic-array", ] [[package]] name = "itertools" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" dependencies = [ "either", ] [[package]] name = "js-sys" version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] [[package]] name = "lalrpop" version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" dependencies = [ "ascii-canvas", "bit-set", "ena", "itertools", "lalrpop-util", "petgraph", "regex", "regex-syntax", "string_cache", "term", "tiny-keccak", "unicode-xid", "walkdir", ] [[package]] name = "lalrpop-util" version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "507460a910eb7b32ee961886ff48539633b788a36b65692b95f225b844c82553" dependencies = [ "regex-automata", ] [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" dependencies = [ "spin", ] [[package]] name = "lazycell" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libloading" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", "windows-targets 0.52.5", ] [[package]] name = "libm" version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "libredox" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ "bitflags 2.5.0", "libc", ] [[package]] name = "linux-raw-sys" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "lock_api" version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" dependencies = [ "autocfg", "scopeguard", ] [[package]] name = "log" version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "md-5" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if", "digest", ] [[package]] name = "memchr" version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" [[package]] name = "memsec" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fa0916b001582d253822171bd23f4a0229d32b9507fae236f5da8cad515ba7c" [[package]] name = "minimal-lexical" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "nettle" version = "7.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44e6ff4a94e5d34a1fd5abbd39418074646e2fa51b257198701330f22fcd6936" dependencies = [ "getrandom", "libc", "nettle-sys", "thiserror", "typenum", ] [[package]] name = "nettle-sys" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b495053a10a19a80e3a26bf1212e92e29350797b5f5bdc58268c3f3f818e66ec" dependencies = [ "bindgen", "cc", "libc", "pkg-config", "tempfile", "vcpkg", ] [[package]] name = "new_debug_unreachable" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" [[package]] name = "nom" version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ "memchr", "minimal-lexical", ] [[package]] name = "normalize-line-endings" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "num-bigint-dig" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" dependencies = [ "byteorder", "lazy_static", "libm", "num-integer", "num-iter", "num-traits", "rand", "smallvec", "zeroize", ] [[package]] name = "num-integer" version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ "num-traits", ] [[package]] name = "num-iter" version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9" dependencies = [ "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-traits" version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", "libm", ] [[package]] name = "once_cell" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openssl" version = "0.10.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" dependencies = [ "bitflags 2.5.0", "cfg-if", "foreign-types", "libc", "once_cell", "openssl-macros", "openssl-sys", ] [[package]] name = "openssl-macros" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "openssl-sys" version = "0.9.102" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" dependencies = [ "cc", "libc", "pkg-config", "vcpkg", ] [[package]] name = "p256" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" dependencies = [ "ecdsa", "elliptic-curve", "primeorder", "sha2", ] [[package]] name = "parking_lot" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", "windows-targets 0.48.5", ] [[package]] name = "peeking_take_while" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "pem-rfc7468" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" dependencies = [ "base64ct", ] [[package]] name = "petgraph" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", "indexmap", ] [[package]] name = "phf_shared" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" dependencies = [ "siphasher", ] [[package]] name = "pkcs1" version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" dependencies = [ "der", "pkcs8", "spki", ] [[package]] name = "pkcs8" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ "der", "spki", ] [[package]] name = "pkg-config" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] name = "platforms" version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db23d408679286588f4d4644f965003d056e3dd5abcaaa938116871d7ce2fee7" [[package]] name = "polyval" version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" dependencies = [ "cfg-if", "cpufeatures", "opaque-debug", "universal-hash", ] [[package]] name = "ppv-lite86" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "precomputed-hash" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "predicates" version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68b87bfd4605926cdfefc1c3b5f8fe560e3feca9d5552cf68c466d3d8236c7e8" dependencies = [ "anstyle", "difflib", "float-cmp", "normalize-line-endings", "predicates-core", "regex", ] [[package]] name = "predicates-core" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" [[package]] name = "predicates-tree" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" dependencies = [ "predicates-core", "termtree", ] [[package]] name = "primeorder" version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" dependencies = [ "elliptic-curve", ] [[package]] name = "proc-macro2" version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] [[package]] name = "rand" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", ] [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] [[package]] name = "redox_syscall" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "redox_users" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ "getrandom", "libredox", "thiserror", ] [[package]] name = "regex" version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "rfc6979" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac", "subtle", ] [[package]] name = "ripemd" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" dependencies = [ "digest", ] [[package]] name = "roff" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b833d8d034ea094b1ea68aa6d5c740e0d04bad9d16568d08ba6f76823a114316" [[package]] name = "rsa" version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" dependencies = [ "const-oid", "digest", "num-bigint-dig", "num-integer", "num-traits", "pkcs1", "pkcs8", "rand_core", "signature", "spki", "subtle", "zeroize", ] [[package]] name = "rustc-hash" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ "semver", ] [[package]] name = "rustix" version = "0.38.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65e04861e65f21776e67888bfbea442b3642beaa0138fdb1dd7a84a52dffdb89" dependencies = [ "bitflags 2.5.0", "errno", "libc", "linux-raw-sys", "windows-sys 0.52.0", ] [[package]] name = "rustversion" version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" [[package]] name = "same-file" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ "winapi-util", ] [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sec1" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", "generic-array", "pkcs8", "subtle", "zeroize", ] [[package]] name = "semver" version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" [[package]] name = "sequoia-openpgp" version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06f82708c8568218b8544b4abbba1f6483067dca0a946a54991c1d3f424dcade" dependencies = [ "aes", "aes-gcm", "anyhow", "base64", "block-padding", "blowfish", "botan", "buffered-reader", "camellia", "cast5", "cfb-mode", "chrono", "cipher", "des", "digest", "dsa", "dyn-clone", "eax", "ecb", "ecdsa", "ed25519", "ed25519-dalek", "getrandom", "idea", "idna", "lalrpop", "lalrpop-util", "lazy_static", "libc", "md-5", "memsec", "nettle", "num-bigint-dig", "once_cell", "openssl", "openssl-sys", "p256", "rand", "rand_core", "regex", "regex-syntax", "ripemd", "rsa", "sha1collisiondetection", "sha2", "thiserror", "twofish", "typenum", "win-crypto-ng", "winapi", "x25519-dalek", "xxhash-rust", ] [[package]] name = "sequoia-policy-config" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "757d45d308f2bd9c0d6fdd640f320998ad24856bdf2890ddd28d3c3b85808274" dependencies = [ "anyhow", "chrono", "sequoia-openpgp", "serde", "thiserror", "toml", ] [[package]] name = "sequoia-sqv" version = "1.2.1" dependencies = [ "anyhow", "assert_cmd", "chrono", "clap", "clap_complete", "clap_mangen", "predicates", "sequoia-openpgp", "sequoia-policy-config", ] [[package]] name = "serde" version = "1.0.198" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9846a40c979031340571da2545a4e5b7c4163bdae79b301d5f86d03979451fcc" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.198" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e88edab869b01783ba905e7d0153f9fc1a6505a96e4ad3018011eedb838566d9" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "sha1collisiondetection" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f606421e4a6012877e893c399822a4ed4b089164c5969424e1b9d1e66e6964b" dependencies = [ "const-oid", "digest", "generic-array", ] [[package]] name = "sha2" version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "shlex" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signature" version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest", "rand_core", ] [[package]] name = "siphasher" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "smallvec" version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "spin" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spki" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", ] [[package]] name = "string_cache" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", "phf_shared", "precomputed-hash", ] [[package]] name = "strsim" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "subtle" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" version = "2.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "tempfile" version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", "fastrand", "rustix", "windows-sys 0.52.0", ] [[package]] name = "term" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" dependencies = [ "dirs-next", "rustversion", "winapi", ] [[package]] name = "terminal_size" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ "rustix", "windows-sys 0.48.0", ] [[package]] name = "termtree" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "tiny-keccak" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" dependencies = [ "crunchy", ] [[package]] name = "tinyvec" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] [[package]] name = "tinyvec_macros" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "toml" version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ "serde", ] [[package]] name = "twofish" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a78e83a30223c757c3947cd144a31014ff04298d8719ae10d03c31c0448c8013" dependencies = [ "cipher", ] [[package]] name = "typenum" version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] [[package]] name = "unicode-xid" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "universal-hash" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", "subtle", ] [[package]] name = "utf8parse" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "vcpkg" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wait-timeout" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" dependencies = [ "libc", ] [[package]] name = "walkdir" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ "same-file", "winapi-util", ] [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "win-crypto-ng" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99abfb435a71e54ab2971d8d8c32f1a7e006cdbf527f71743b1d45b93517bb92" dependencies = [ "cipher", "doc-comment", "rand_core", "winapi", "zeroize", ] [[package]] name = "winapi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ "winapi-i686-pc-windows-gnu", "winapi-x86_64-pc-windows-gnu", ] [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" dependencies = [ "winapi", ] [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows-core" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ "windows-targets 0.52.5", ] [[package]] name = "windows-sys" version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ "windows-targets 0.48.5", ] [[package]] name = "windows-sys" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ "windows-targets 0.52.5", ] [[package]] name = "windows-targets" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ "windows_aarch64_gnullvm 0.48.5", "windows_aarch64_msvc 0.48.5", "windows_i686_gnu 0.48.5", "windows_i686_msvc 0.48.5", "windows_x86_64_gnu 0.48.5", "windows_x86_64_gnullvm 0.48.5", "windows_x86_64_msvc 0.48.5", ] [[package]] name = "windows-targets" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ "windows_aarch64_gnullvm 0.52.5", "windows_aarch64_msvc 0.52.5", "windows_i686_gnu 0.52.5", "windows_i686_gnullvm", "windows_i686_msvc 0.52.5", "windows_x86_64_gnu 0.52.5", "windows_x86_64_gnullvm 0.52.5", "windows_x86_64_msvc 0.52.5", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" [[package]] name = "windows_i686_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "x25519-dalek" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ "curve25519-dalek", "rand_core", "zeroize", ] [[package]] name = "xxhash-rust" version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "927da81e25be1e1a2901d59b81b37dd2efd1fc9c9345a55007f09bf5a2d3ee03" [[package]] name = "zeroize" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" dependencies = [ "zeroize_derive", ] [[package]] name = "zeroize_derive" version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", "syn", ] sequoia-sqv-1.2.1/Cargo.toml0000644000000046400000000000100113140ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "sequoia-sqv" version = "1.2.1" authors = [ "Justus Winter ", "Kai Michaelis ", "Neal H. Walfield ", ] exclude = [ ".ci", ".gitlab-ci.yml", ] description = "A simple OpenPGP signature verification program" homepage = "https://sequoia-pgp.org/" documentation = "https://gitlab.com/sequoia-pgp/sequoia-sqv" readme = "README.md" keywords = [ "cryptography", "openpgp", "pgp", "signature", "verification", ] categories = [ "cryptography", "command-line-utilities", ] license = "GPL-2.0-or-later" repository = "https://gitlab.com/sequoia-pgp/sequoia-sqv" [[bin]] name = "sqv" path = "src/sqv-usage.rs" bench = false [dependencies.anyhow] version = "1.0.18" [dependencies.chrono] version = "0.4.10" [dependencies.clap] version = "4" features = [ "derive", "string", "wrap_help", ] [dependencies.sequoia-openpgp] version = "1" default-features = false [dependencies.sequoia-policy-config] version = "0.6" [dev-dependencies.assert_cmd] version = "2" [dev-dependencies.predicates] version = "3" [build-dependencies.anyhow] version = "1.0.18" [build-dependencies.clap] version = "4" features = [ "derive", "string", "wrap_help", ] [build-dependencies.clap_complete] version = "4" [build-dependencies.clap_mangen] version = "0.2" [build-dependencies.sequoia-openpgp] version = "1" default-features = false [build-dependencies.sequoia-policy-config] version = "0.6" [features] crypto-botan = ["sequoia-openpgp/crypto-botan"] crypto-botan2 = ["sequoia-openpgp/crypto-botan2"] crypto-cng = ["sequoia-openpgp/crypto-cng"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] crypto-openssl = ["sequoia-openpgp/crypto-openssl"] crypto-rust = ["sequoia-openpgp/crypto-rust"] default = ["crypto-nettle"] [badges.gitlab] repository = "sequoia-pgp/sequoia" [badges.maintenance] status = "actively-developed" sequoia-sqv-1.2.1/Cargo.toml.orig000064400000000000000000000032431046102023000147730ustar 00000000000000[package] name = "sequoia-sqv" description = "A simple OpenPGP signature verification program" version = "1.2.1" authors = [ "Justus Winter ", "Kai Michaelis ", "Neal H. Walfield ", ] documentation = "https://gitlab.com/sequoia-pgp/sequoia-sqv" homepage = "https://sequoia-pgp.org/" repository = "https://gitlab.com/sequoia-pgp/sequoia-sqv" readme = "README.md" keywords = ["cryptography", "openpgp", "pgp", "signature", "verification"] categories = ["cryptography", "command-line-utilities"] license = "GPL-2.0-or-later" edition = "2021" rust-version = "1.70" exclude = [".ci", ".gitlab-ci.yml"] [badges] gitlab = { repository = "sequoia-pgp/sequoia" } maintenance = { status = "actively-developed" } [dependencies] sequoia-openpgp = { version = "1", default-features = false } anyhow = "1.0.18" chrono = "0.4.10" clap = { version = "4", features = ["derive", "string", "wrap_help"] } sequoia-policy-config = "0.6" [build-dependencies] anyhow = "1.0.18" clap = { version = "4", features = ["derive", "string", "wrap_help"] } clap_complete = { version = "4"} clap_mangen = "0.2" sequoia-openpgp = { version = "1", default-features = false } sequoia-policy-config = "0.6" [dev-dependencies] assert_cmd = "2" predicates = "3" [[bin]] name = "sqv" path = "src/sqv-usage.rs" bench = false [features] default = ["crypto-nettle"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] crypto-openssl = ["sequoia-openpgp/crypto-openssl"] crypto-botan = ["sequoia-openpgp/crypto-botan"] crypto-botan2 = ["sequoia-openpgp/crypto-botan2"] crypto-cng = ["sequoia-openpgp/crypto-cng"] crypto-rust = ["sequoia-openpgp/crypto-rust"] sequoia-sqv-1.2.1/LICENSE.txt000064400000000000000000000367571046102023000137470ustar 00000000000000Sequoia PGP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Sequoia PGP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. sequoia-sqv-1.2.1/Makefile000064400000000000000000000034321046102023000135440ustar 00000000000000# Configuration. CARGO_TARGET_DIR ?= $(shell pwd)/../target # We currently only support absolute paths. CARGO_TARGET_DIR := $(abspath $(CARGO_TARGET_DIR)) SQV ?= $(CARGO_TARGET_DIR)/debug/sqv # Tools. CARGO ?= cargo CODESPELL ?= codespell CODESPELL_FLAGS ?= --disable-colors --write-changes ifneq ($(filter Darwin %BSD,$(shell uname -s)),) INSTALL ?= ginstall else INSTALL ?= install endif # If CARGO_PACKAGES contains a package specification ("-p foo"), then # only run cargo test. .PHONY: test check test check: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) $(CARGO) test $(CARGO_FLAGS) $(CARGO_PACKAGES) $(CARGO_TEST_ARGS) $(MAKE) examples .PHONY: examples examples: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \ $(CARGO) build $(CARGO_FLAGS) --examples # Installation. .PHONY: build-release build-release: CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \ $(CARGO) build $(CARGO_FLAGS) --release --package sequoia-sqv .PHONY: install install: build-release $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin $(INSTALL) -t $(DESTDIR)$(PREFIX)/bin $(CARGO_TARGET_DIR)/release/sqv $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions \ $(CARGO_TARGET_DIR)/_sqv $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions $(INSTALL) $(CARGO_TARGET_DIR)/sqv.bash \ $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sqv $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/fish/completions $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/fish/completions \ $(CARGO_TARGET_DIR)/sqv.fish .PHONY: codespell codespell: $(CODESPELL) $(CODESPELL_FLAGS) \ -L "crate,ede,iff,mut,nd,te,uint,KeyServer,keyserver,Keyserver,keyservers,Keyservers,keypair,keypairs,KeyPair,fpr,dedup" \ -S "*.bin,*.gpg,*.pgp,./.git,data,highlight.js,*/target,Makefile,Cargo.lock" sequoia-sqv-1.2.1/NEWS000064400000000000000000000013701046102023000126020ustar 00000000000000 -*- org -*- #+TITLE: sequoia-sqv NEWS – history of user-visible changes #+STARTUP: content hidestars * Changes in 1.2.1 - Use the correct stem when saving shell completions. * Changes in 1.2.0 - Upgrade to clap 4. - shell completions are now written to `$ASSET_OUT_DIR/out/shell-completions`. - Generate a man page. It is written to `$ASSET_OUT_DIR/out/man-pages`. - Use the system's crypto policy by default. Allow the user to override it by setting `SEQUOIA_CRYPTO_POLICY`. * Changes in 1.1.0 This is the first release since sqv was moved to its own repository. All dependencies have been upgraded. No code was changed. * Changes in 1.0.0 This is the initial stable release. sequoia-sqv-1.2.1/README.md000064400000000000000000000004331046102023000133610ustar 00000000000000A simple signature verification program. `sqv` verifies detached OpenPGP signatures. It is a replacement for `gpgv`. Unlike `gpgv`, it can take additional constraints on the signature into account. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872271 for the motivation. sequoia-sqv-1.2.1/build.rs000064400000000000000000000034311046102023000135500ustar 00000000000000use std::env; use std::fs; use std::path::PathBuf; use anyhow::Result; use clap::ValueEnum; use clap_complete::Shell; mod sqv_cli { include!("src/sqv_cli.rs"); } fn main() { println!("cargo:rerun-if-changed=build.rs"); let mut sqv = sqv_cli::build(); generate_shell_completions(&mut sqv).unwrap(); generate_man_pages(&mut sqv).unwrap(); } /// Variable name to control the asset out directory with. const ASSET_OUT_DIR: &str = "ASSET_OUT_DIR"; /// Returns the directory to write the given assets to. fn asset_out_dir(asset: &str) -> Result { println!("cargo:rerun-if-env-changed={}", ASSET_OUT_DIR); let outdir: PathBuf = env::var_os(ASSET_OUT_DIR).unwrap_or_else( || env::var_os("OUT_DIR").expect("OUT_DIR not set")).into(); if outdir.exists() && ! outdir.is_dir() { return Err( anyhow::anyhow!("{}={:?} is not a directory", ASSET_OUT_DIR, outdir)); } let path = outdir.join(asset); fs::create_dir_all(&path)?; Ok(path) } /// Generates shell completions. fn generate_shell_completions(sqv: &mut clap::Command) -> Result<()> { let path = asset_out_dir("shell-completions")?; for shell in Shell::value_variants() { clap_complete::generate_to(*shell, sqv, "sqv", &path)?; }; println!("cargo:warning=shell completions written to {}", path.display()); Ok(()) } /// Generates man pages. fn generate_man_pages(sqv: &clap::Command) -> Result<()> { let path = asset_out_dir("man-pages")?.join("sqv.1"); let man = clap_mangen::Man::new(sqv.clone()); let mut buffer: Vec = Default::default(); man.render(&mut buffer)?; std::fs::write(&path, &buffer)?; println!("cargo:warning=man page written to {}", path.display()); Ok(()) } sequoia-sqv-1.2.1/src/sqv-usage.rs000064400000000000000000000027301046102023000151540ustar 00000000000000//! A command-line frontend for Sequoia. //! //! # Usage //! //! ```text //! sqv is a command-line OpenPGP signature verification tool. //! //! USAGE: //! sqv [FLAGS] [OPTIONS] --keyring ... //! //! FLAGS: //! -h, --help Prints help information //! -V, --version Prints version information //! -v, --verbose Be verbose. //! //! OPTIONS: //! --keyring ... A keyring. Can be given multiple times. //! --not-after //! Consider signatures created after TIMESTAMP as invalid. If a date //! is given, 23:59:59 is used for the time. //! [default: now] //! --not-before //! Consider signatures created before TIMESTAMP as invalid. If a date //! is given, 00:00:00 is used for the time. //! [default: no constraint] //! -n, --signatures //! The number of valid signatures to return success. Default: 1 //! //! //! ARGS: //! File containing the detached signature. //! File to verify. //! //! TIMESTAMPs must be given in ISO 8601 format (e.g. '2017-03-04T13:25:35Z', '2017- //! 03-04T13:25', '20170304T1325+0830', '2017-03-04', '2017031', ...). If no //! timezone is specified, UTC is assumed. //! ``` #![doc(html_favicon_url = "https://docs.sequoia-pgp.org/favicon.png")] #![doc(html_logo_url = "https://docs.sequoia-pgp.org/logo.svg")] include!("sqv.rs"); sequoia-sqv-1.2.1/src/sqv.rs000064400000000000000000000311451046102023000140540ustar 00000000000000/// A simple signature verification program. /// /// See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872271 for /// the motivation. use std::process::exit; use std::path::PathBuf; use chrono::{DateTime, offset::Utc}; use anyhow::Context; use clap::FromArgMatches; use sequoia_openpgp as openpgp; use crate::openpgp::{ Cert, KeyHandle, Result, parse::Parse, }; use crate::openpgp::parse::stream::{ DetachedVerifierBuilder, MessageLayer, MessageStructure, VerificationHelper, GoodChecksum, VerificationError, }; use crate::openpgp::cert::prelude::*; mod sqv_cli; struct VHelper { not_before: Option, not_after: std::time::SystemTime, good: usize, total: usize, threshold: usize, keyrings: Vec, } impl std::fmt::Debug for VHelper { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("VHelper") .field("not_before", &self.not_before) .field("not_after", &self.not_after) .field("good", &self.good) .field("total", &self.total) .field("threshold", &self.threshold) .field("keyrings", &self.keyrings) .finish() } } impl VHelper { fn new(threshold: usize, not_before: Option, not_after: std::time::SystemTime, keyrings: Vec) -> Self { VHelper { not_before: not_before, not_after: not_after, good: 0, total: 0, threshold: threshold, keyrings: keyrings, } } } impl VerificationHelper for VHelper { fn get_certs(&mut self, ids: &[crate::KeyHandle]) -> Result> { let mut certs = Vec::with_capacity(ids.len()); // Load relevant keys from the keyring. for filename in self.keyrings.iter() { for cert in CertParser::from_file(filename) .with_context(|| format!("Failed to parse keyring {:?}", filename))? .unvalidated_cert_filter(|cert, _| { // We don't skip keys that are valid (not revoked, // alive, etc.) so that cert.keys().key_handles(ids.iter()).next().is_some() }) { certs.push(cert.with_context(|| { format!("Malformed certificate in keyring {:?}", filename) })?); } } // Dedup. To avoid cloning the certificates, we don't use // Vec::dedup. certs.sort_by(|a, b| a.fingerprint().cmp(&b.fingerprint())); let count = certs.len(); let (certs, errs) = certs.into_iter().fold( (Vec::with_capacity(count), Vec::new()), |(mut certs, mut errs), a| { if certs.is_empty() { certs.push(a); } else if certs[certs.len() - 1].fingerprint() == a.fingerprint() { // Merge `a` into the last element. match certs.pop().expect("non-empty vec").merge_public(a) { Ok(cert) => certs.push(cert), Err(err) => errs.push(err), } } else { certs.push(a); } (certs, errs) }); if !errs.is_empty() { eprintln!("Error merging duplicate keys:"); for err in errs.iter() { eprintln!(" {}", err); } Err(errs.into_iter().next().expect("non-empty vec")) } else { Ok(certs) } } fn check(&mut self, structure: MessageStructure) -> Result<()> { use self::VerificationError::*; let mut signers = Vec::with_capacity(2); let mut verification_err = None; for layer in structure.into_iter() { match layer { MessageLayer::SignatureGroup { results } => for result in results { self.total += 1; match result { Ok(GoodChecksum { sig, ka, .. }) => { match (sig.signature_creation_time(), self.not_before, self.not_after) { (None, _, _) => { eprintln!("Malformed signature:"); print_error_chain(&anyhow::anyhow!( "no signature creation time")); }, (Some(t), Some(not_before), not_after) => { if t < not_before { eprintln!( "Signature by {:X} was created before \ the --not-before date.", ka.key().fingerprint()); } else if t > not_after { eprintln!( "Signature by {:X} was created after \ the --not-after date.", ka.key().fingerprint()); } else { signers.push(ka.cert().fingerprint()); } } (Some(t), None, not_after) => { if t > not_after { eprintln!( "Signature by {:X} was created after \ the --not-after date.", ka.key().fingerprint()); } else { signers.push(ka.cert().fingerprint()); } } }; } Err(MalformedSignature { error, .. }) => { eprintln!("Signature is malformed:"); print_error_chain(&error); } Err(MissingKey { sig, .. }) => { let issuers = sig.get_issuers(); eprintln!("Missing key {:X}, which is needed to \ verify signature.", issuers.first().unwrap()); } Err(UnboundKey { cert, error, .. }) => { eprintln!("Signing key on {:X} is not bound:", cert.fingerprint()); print_error_chain(&error); } Err(BadKey { ka, error, .. }) => { eprintln!("Signing key on {:X} is bad:", ka.cert().fingerprint()); print_error_chain(&error); } Err(BadSignature { error, .. }) => { eprintln!("Verifying signature:"); print_error_chain(&error); if verification_err.is_none() { verification_err = Some(error) } } } } MessageLayer::Compression { .. } => (), _ => unreachable!(), } } // Dedup the keys so that it is not possible to exceed the // threshold by duplicating signatures or by using the same // key. signers.sort(); signers.dedup(); self.good = signers.len(); for signer in signers { println!("{:X}", signer); } Ok(()) } } fn print_error_chain(err: &anyhow::Error) { eprintln!(" {}", err); err.chain().skip(1).for_each(|cause| eprintln!(" because: {}", cause)); } fn main() -> Result<()> { let mut p = sequoia_policy_config::ConfiguredStandardPolicy::new(); p.parse_default_config()?; let p = p.build(); let matches = sqv_cli::build().get_matches(); let cli = sqv_cli::SqvCommand::from_arg_matches(&matches)?; let verbose = cli.verbose; let good_threshold = cli.signatures; if good_threshold < 1 { eprintln!("Value passed to --signatures must be >= 1 (got: {:?}).", good_threshold); exit(2); } let not_before: Option = if let Some(t) = cli.not_before { Some(parse_iso8601(&t, chrono::NaiveTime::from_hms_opt(0, 0, 0).unwrap()) .context(format!("Bad value passed to --not-before: {:?}", t))? .into()) } else { None }; let not_after: std::time::SystemTime = if let Some(t) = cli.not_after { Some(parse_iso8601(&t, chrono::NaiveTime::from_hms_opt(23, 59, 59).unwrap()) .context(format!("Bad value passed to --not-after: {:?}", t))? .into()) } else { None }.unwrap_or_else(std::time::SystemTime::now); let h = VHelper::new(good_threshold, not_before, not_after, cli.keyring); let mut v = DetachedVerifierBuilder::from_file(cli.sig_file)?.with_policy(&p, None, h)?; v.verify_file(cli.file)?; let h = v.into_helper(); if verbose { eprintln!("{} of {} signatures are valid (threshold is: {}).", h.good, h.total, good_threshold); } exit(if h.good >= good_threshold { 0 } else { 1 }); } /// Parses the given string depicting a ISO 8601 timestamp. fn parse_iso8601(s: &str, pad_date_with: chrono::NaiveTime) -> Result> { // If you modify this function this function, synchronize the // changes with the copy in sqv.rs! for f in &[ "%Y-%m-%dT%H:%M:%S%#z", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%dT%H:%M%#z", "%Y-%m-%dT%H:%M", "%Y-%m-%dT%H%#z", "%Y-%m-%dT%H", "%Y%m%dT%H%M%S%#z", "%Y%m%dT%H%M%S", "%Y%m%dT%H%M%#z", "%Y%m%dT%H%M", "%Y%m%dT%H%#z", "%Y%m%dT%H", ] { if f.ends_with("%#z") { if let Ok(d) = DateTime::parse_from_str(s, *f) { return Ok(d.into()); } } else { if let Ok(d) = chrono::NaiveDateTime::parse_from_str(s, *f) { return Ok(DateTime::from_utc(d, Utc)); } } } for f in &[ "%Y-%m-%d", "%Y-%m", "%Y-%j", "%Y%m%d", "%Y%m", "%Y%j", "%Y", ] { if let Ok(d) = chrono::NaiveDate::parse_from_str(s, *f) { return Ok(DateTime::from_utc(d.and_time(pad_date_with), Utc)); } } Err(anyhow::anyhow!("Malformed ISO8601 timestamp: {}", s)) } #[test] fn test_parse_iso8601() { let z = chrono::NaiveTime::from_hms_opt(0, 0, 0).unwrap(); parse_iso8601("2017-03-04T13:25:35Z", z).unwrap(); parse_iso8601("2017-03-04T13:25:35+08:30", z).unwrap(); parse_iso8601("2017-03-04T13:25:35", z).unwrap(); parse_iso8601("2017-03-04T13:25Z", z).unwrap(); parse_iso8601("2017-03-04T13:25", z).unwrap(); // parse_iso8601("2017-03-04T13Z", z).unwrap(); // XXX: chrono doesn't like // parse_iso8601("2017-03-04T13", z).unwrap(); // ditto parse_iso8601("2017-03-04", z).unwrap(); // parse_iso8601("2017-03", z).unwrap(); // ditto parse_iso8601("2017-031", z).unwrap(); parse_iso8601("20170304T132535Z", z).unwrap(); parse_iso8601("20170304T132535+0830", z).unwrap(); parse_iso8601("20170304T132535", z).unwrap(); parse_iso8601("20170304T1325Z", z).unwrap(); parse_iso8601("20170304T1325", z).unwrap(); // parse_iso8601("20170304T13Z", z).unwrap(); // ditto // parse_iso8601("20170304T13", z).unwrap(); // ditto parse_iso8601("20170304", z).unwrap(); // parse_iso8601("201703", z).unwrap(); // ditto parse_iso8601("2017031", z).unwrap(); // parse_iso8601("2017", z).unwrap(); // ditto } sequoia-sqv-1.2.1/src/sqv_cli.rs000064400000000000000000000046741046102023000147120ustar 00000000000000/// Command-line parser for sqv. use std::path::PathBuf; use clap::{Command, CommandFactory, Parser}; use sequoia_policy_config::ConfiguredStandardPolicy; // The argument parser. pub fn build() -> Command { let sqv_version = Box::leak( format!( "{} (sequoia-openpgp {}, using {})", env!("CARGO_PKG_VERSION"), sequoia_openpgp::VERSION, sequoia_openpgp::crypto::backend() ) .into_boxed_str(), ) as &str; SqvCommand::command().version(sqv_version) } #[derive(Parser)] #[command( name="sqv", about = "sqv is a command-line OpenPGP signature verification tool", after_help = format!("\ TIMESTAMPs must be given in ISO 8601 format \ (e.g. '2017-03-04T13:25:35Z', '2017-03-04T13:25', \ '20170304T1325+0830', '2017-03-04', '2017031', ...). \ If no timezone is specified, UTC is assumed. By default, sqv configures the cryptographic policy using {}. That can \ be overwritten by setting the {} environment variable to an alternate \ file. The path must be absolute. The file's format is described \ here: .", ConfiguredStandardPolicy::CONFIG_FILE, ConfiguredStandardPolicy::ENV_VAR), arg_required_else_help = true, disable_colored_help = true, )] pub struct SqvCommand { /// A keyring. #[clap( long, value_name = "FILE", required = true)] pub keyring: Vec, /// Consider signatures created after TIMESTAMP as invalid. /// If a date is given, 23:59:59 is used for the time. /// [default: now] #[clap( long, value_name = "TIMESTAMP")] pub not_after: Option, /// Consider signatures created before TIMESTAMP as invalid. /// If a date is given, 00:00:00 is used for the time. /// [default: no constraint] #[clap( long, value_name = "TIMESTAMP")] pub not_before: Option, /// The number of valid signatures to return success. #[clap( long, short = 'n', value_name = "N", default_value_t = 1)] pub signatures: usize, /// File containing the detached signature. #[clap( value_name = "SIG-FILE")] pub sig_file: PathBuf, /// File to verify. #[clap( value_name = "FILE")] pub file: PathBuf, /// Be verbose. #[clap( long, short = 'v')] pub verbose: bool, } sequoia-sqv-1.2.1/tests/bad-subkey.rs000064400000000000000000000010421046102023000156350ustar 00000000000000#[cfg(test)] mod integration { use std::path; use assert_cmd::Command; use predicates::prelude::*; #[test] fn bad_subkey() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&["--keyring", "bad-subkey-keyring.pgp", "bad-subkey.txt.sig", "bad-subkey.txt"]) .assert() .success() .stdout(predicate::eq( b"8F17777118A33DDA9BA48E62AACB3243630052D9\n" as &[u8])); } } sequoia-sqv-1.2.1/tests/data/a-cypherpunks-manifesto.txt000064400000000000000000000120461046102023000214750ustar 00000000000000A Cypherpunk's Manifesto by Eric Hughes Privacy is necessary for an open society in the electronic age. Privacy is not secrecy. A private matter is something one doesn't want the whole world to know, but a secret matter is something one doesn't want anybody to know. Privacy is the power to selectively reveal oneself to the world. If two parties have some sort of dealings, then each has a memory of their interaction. Each party can speak about their own memory of this; how could anyone prevent it? One could pass laws against it, but the freedom of speech, even more than privacy, is fundamental to an open society; we seek not to restrict any speech at all. If many parties speak together in the same forum, each can speak to all the others and aggregate together knowledge about individuals and other parties. The power of electronic communications has enabled such group speech, and it will not go away merely because we might want it to. Since we desire privacy, we must ensure that each party to a transaction have knowledge only of that which is directly necessary for that transaction. Since any information can be spoken of, we must ensure that we reveal as little as possible. In most cases personal identity is not salient. When I purchase a magazine at a store and hand cash to the clerk, there is no need to know who I am. When I ask my electronic mail provider to send and receive messages, my provider need not know to whom I am speaking or what I am saying or what others are saying to me; my provider only need know how to get the message there and how much I owe them in fees. When my identity is revealed by the underlying mechanism of the transaction, I have no privacy. I cannot here selectively reveal myself; I must always reveal myself. Therefore, privacy in an open society requires anonymous transaction systems. Until now, cash has been the primary such system. An anonymous transaction system is not a secret transaction system. An anonymous system empowers individuals to reveal their identity when desired and only when desired; this is the essence of privacy. Privacy in an open society also requires cryptography. If I say something, I want it heard only by those for whom I intend it. If the content of my speech is available to the world, I have no privacy. To encrypt is to indicate the desire for privacy, and to encrypt with weak cryptography is to indicate not too much desire for privacy. Furthermore, to reveal one's identity with assurance when the default is anonymity requires the cryptographic signature. We cannot expect governments, corporations, or other large, faceless organizations to grant us privacy out of their beneficence. It is to their advantage to speak of us, and we should expect that they will speak. To try to prevent their speech is to fight against the realities of information. Information does not just want to be free, it longs to be free. Information expands to fill the available storage space. Information is Rumor's younger, stronger cousin; Information is fleeter of foot, has more eyes, knows more, and understands less than Rumor. We must defend our own privacy if we expect to have any. We must come together and create systems which allow anonymous transactions to take place. People have been defending their own privacy for centuries with whispers, darkness, envelopes, closed doors, secret handshakes, and couriers. The technologies of the past did not allow for strong privacy, but electronic technologies do. We the Cypherpunks are dedicated to building anonymous systems. We are defending our privacy with cryptography, with anonymous mail forwarding systems, with digital signatures, and with electronic money. Cypherpunks write code. We know that someone has to write software to defend privacy, and since we can't get privacy unless we all do, we're going to write it. We publish our code so that our fellow Cypherpunks may practice and play with it. Our code is free for all to use, worldwide. We don't much care if you don't approve of the software we write. We know that software can't be destroyed and that a widely dispersed system can't be shut down. Cypherpunks deplore regulations on cryptography, for encryption is fundamentally a private act. The act of encryption, in fact, removes information from the public realm. Even laws against cryptography reach only so far as a nation's border and the arm of its violence. Cryptography will ineluctably spread over the whole globe, and with it the anonymous transactions systems that it makes possible. For privacy to be widespread it must be part of a social contract. People must come and together deploy these systems for the common good. Privacy only extends so far as the cooperation of one's fellows in society. We the Cypherpunks seek your questions and your concerns and hope we may engage you so that we do not deceive ourselves. We will not, however, be moved out of our course because some may disagree with our goals. The Cypherpunks are actively engaged in making the networks safer for privacy. Let us proceed together apace. Onward. Eric Hughes 9 March 1993 sequoia-sqv-1.2.1/tests/data/a-cypherpunks-manifesto.txt.ed25519.sig000064400000000000000000000003441046102023000232510ustar 00000000000000-----BEGIN PGP SIGNATURE----- wnUEABYKACcFgltzBDIWoQSOjDP6RiYzeXbZeXgGnAw0jdgsGQmQBpwMNI3YLBkA AAllAP9fLXh78uB2DBLaVtLxaQYKPLH4bWncaMOv3qhChi89+AEA4UWrbOMn9oIh IlrFPgnupgnajQl5xbq/rDG6ibv4iA4= =DpCD -----END PGP SIGNATURE----- sequoia-sqv-1.2.1/tests/data/a-cypherpunks-manifesto.txt.ed25519.sig.duplicated000064400000000000000000000006061046102023000253670ustar 00000000000000-----BEGIN PGP SIGNATURE----- wnUEABYKACcFgltzBDIWoQSOjDP6RiYzeXbZeXgGnAw0jdgsGQmQBpwMNI3YLBkA AAllAP9fLXh78uB2DBLaVtLxaQYKPLH4bWncaMOv3qhChi89+AEA4UWrbOMn9oIh IlrFPgnupgnajQl5xbq/rDG6ibv4iA7CdQQAFgoAJwWCW3MEMhahBI6MM/pGJjN5 dtl5eAacDDSN2CwZCZAGnAw0jdgsGQAACWUA/18teHvy4HYMEtpW0vFpBgo8sfht adxow6/eqEKGLz34AQDhRats4yf2giEiWsU+Ce6mCdqNCXnFur+sMbqJu/iIDg== =UIhc -----END PGP SIGNATURE----- sequoia-sqv-1.2.1/tests/data/bad-subkey-keyring.pgp000064400000000000000000000432201046102023000203620ustar 00000000000000 YoJP}K5E8n[џ QZ6&JN=D1'q&_ .!hJ )+ |ӭIJ11S#ʡu>5'KKW-YQomo&'_1LwBmrW@rzm5C)f-*XB@SIZn7[9rikj$W9"ʹֆ$R.74y-]p'na~z*klZE݈+l.T''~N(Zvbp/G]ވIM,` dg, } aJp qH|nsnQS8Vl뫫q_.@5+Justus Winter M ;!͏e>e}3TJYo f     }3TJ,kc)(`\C \?jldH]la,jTEl}6;k~qCv8nG=^ƅ !,Z<5ɫ*S4Lo c }FDTTAwh+pqK}ߟa * ֙Z€|:WʿW*;SL]Gnn5{v!6poKO}d](~pnb {N2d=F@zP+0TD6\  M蟜Fu[Fbwu;zi/J9oH[M?QZI XLK %Īy(,<񜙴#Justus Winter M ;!͏e>e}3TJYo f     }3TJT0|\hagLêu; y9w:AjAkjb7$X访9%\@ .4D)]Ũ[87S5ണ[S@brDsy{)7c [VmŨq0F,f?qm#0aIHs5<יtbGwxuJS0C=SH9 M6ѵˤmSgkHYp&fy Yoc *. U{ Na uwٌ; L9;b .GTh3M{`] NPqiU~aq 8\|d0\ye+HFs] Hni圑J}%2-S;1R~aqok"QdVOeaDz $"g<"3 BAojLZIKc*},>+Zc\JϷ g=Zfn &!͏e>e}3TJYo g@ }3TJt  !%jNU-$h~38_yYo ~38_yfV!Ok;_ѫxf/BqB_ͱ% L[xH~O OIHq=xgu(oP[82y"B3b3 >M66{S۔qbgA9tQ;c4 ߞ0+qnd7.| N59d=9^Lh目(O}«Uꩠ#4(J|ah_`@15IVo^`R^0ug+h|iggV-2v ;k U,-Ak ZLZ Yo)ajK?ù9v#hAF6ܦ3c['c6qd5 #XV/=D2Czw͊5+(|S:Dav\"'e}3TJYo  g }3TJOt=g壞MY7=VY|F~r `I+dC}y_qBVir<|[cGW^ZGrID)6`-?ĭqzCi鰺0Acpv׹@d;Ƶ܏܃^فހ׌Y(.FPAw>>:xO(S3Bf5ho`Z ٪#"K ~T8c]”+ 37%+&1@3b>9%9-nsKop \{W#= Gg> zucz e]>^7KwrWx3Xā&Oލp4݇ e]!9Ac\i+Ehu`iMQI?BU_M%keRN"Hge.]XV'4zK+ #8 1esOnh=;q^"ǣ[7\ Yosɕ᪜`C1Gf ~ljCIYJ=xt1\>=7&aW($rv~gO>|;gw_&B =!m[^S2owg&lQ skʖ==khc;}5~#P}(u%lS^zYjOD[<>$\ovVX焲Ÿ!lpo'-h=snBna-￀ dOm8 &!͏e>e}3TJYo  g }3TJ\<=s R=1Cu؆<e_&9\?}sm/ hwSA;=J" W =}C%Zh[$347ٟtto滰_8:6*!*f@R75bQ;Li'k =k'\BtmD;]A@(Xʈ9cq%w նPD6U[1(mZCϮW-Rpũ_` NgY)b2+ .QilHJ~DMN 6Xܮ'<8H`GϏԛMwJR֖ P3? (ZT U#5Q$_|p|CxTsls_yAHxeYZvS2j[ױØ;?|4%߯š p-xc a!Л&d #$݀['yX2}H& ۨ9=[@S I~GP=LqW?2$c?rrw(eQ+9]:ߤ0 \.NBMenO]U U# g) 2CcR]  U# r#fx%(yΆ>H ܖ]Wk>-N$`$48b觶FRL[Pэ 4ڀ9R W6 փ玮d)~6mR#2C#?5dȏˤ>WX|ьk))`ZB1w$1Q#3Qz6M} dQ<\^U&v8c&jPb{10|iX #I'TJ+ɖx1 2٤'ELOOH ߅5cF€dQ|G/5E01uƐl="HS\n|zU f0 Q:# lP$PŦ"JE&Mb:ʏp ,_'N'Pkڛ3<"54m;XQlz3 f묟CQɻ[7qX%ΝFغfJ1Zԣ|Ef4bI29֠^)Ӵ oY\/9+M~%贐\%]] h5NDu=sǪ ⅤzY<A#_s}qG" C&˥>g>' ]P i   4y cauQfU8ڐ^뎼 rLU} X%Hm"E^$8x0bq#-=Fʼn X#  )]  U# r#fx%(yΆ>H ܖ]Wk>-N$`$48b觶FRL[Pэ 4ڀ9R W6 փ玮d)~6mR#2C#?5dȏˤ>WX|ьk))`ZB1w$1Q#3Qz6M} dQ<\^U&v8c&jPb{10|iX #I'TJ+ɖx1 2٤ 2CcR0?友rɳ~PFbJ=vj/nI {<\+}9ٚ/H0qJԚpd FE᳐k/ЦS10[[ܾ؉z/ǀvԧwK((V.lwdtNr%oC/mv`~3 HV+Vz1mĀcW iPϕ=E8ZzNdlkh(TOѻner/&3[ScLT] }4 (3FC'8}9}B06>)9 2"^2DWby8C:MSГdjlߏ3챆)>> SvtرuVТB #:!o8|/'CD-`(f-3 U#  g 2CcRم]qbON@6>HܐŌE  X# # 2CcRS-`KsAN.) $Xt@F18iVȘY%䠠y"^ApJԛW(8)g<ܜg#$1]'_e5ef;}GI~?fLE K6*I~XiIb\t؀@ffkjGL>47_;B5dwEц0N@-ɇQ1/t~i`]١lهkO758.,{2wdӱU"TowI| -H:G"=qbk,)td.b5 ^k @Sr}*ISЦ$N%T 0QZ<eL)s3Kg^fF@ɦAҨOS7bP;-Z}y6͢_)Dg]Ϲ U#֭ݣ#x [s`T@IhZ>-Wp>- OkеH)AZ6G:?D P/?%+&e_Hon1~-W=Xf.y:6d`pm1l+* &N_(ob2 v }.\To(M U::k;L/'D(/,H5nvm8:8wBF(Hi.5nT-tዐl9[! I_18ukMtrr$!4Г+}ow  X#  2CcRrQy-c@ygճ1CWsk,L [4ykX/GpK]hϤ?uS|W3HNS~|+!Qp~)gC^Ji"jJNopvLrQ9 '~*ud"$S瓵4DE+zd=&F~=Osb<8'}w &:˦u#0@"=XT %Rx\7ll%{wLR  K(&W=*Es@yALLDV*mŁz/%;,Ui6uuu݋u_7gE&rqh$,9?)6J )%2xH1Q8DcJEJ$0n[|G²L#㦫tYI)kMX![v=;wtNkQ( >    !wq=ڛb2CcRY6{ L 2CcRك+M4ޒ=.#Шw3|շA 4"o)WlYn! n]`tq؀?KjTSKc:X8L':@(a'@j Q\ 1^оeS<t9Y!Qi o蕩 p?ueom^{-vM&HDL~OU#R;U1RLo\G^zO`DR#2ܰ5q1~l߈J^jgL%XC]?}]$ *%|ic8x1"R2'bעo{i(1< T dvWBʰűٺzv/'hrd@w1z<+͙aыfb{f?A'[}*P.6. ~(|M褮 =&_{]gAS#wq; p]B3Ux!g6}(!ScOҽ~&URgEXґ!,-=֑jiA.f= B+Rڔ*- ?DG$Neal H. Walfield ( >    !wq=ڛb2CcRY6{ L 2CcRك+M4ޒ=.#Шw3|շA 4"o)WlYn! n]`tq؀?KjTSKc:X8L':@(a'@j Q\ 1^оeS<t9Y!Qi o蕩 p?ueom^{-vM&HDL~O!Neal H. Walfield % ;    !wq=ڛb2CcRY6{ L 2CcRٷ-pȿd4\<ɰe #~5g,jO,a-uzC<[٧Q;>G5aG)x1*]T{S&k4-zJ=r.UVt*aof-/XGOiGֆP}XkmTW̕1rKqHww^uyIJ t]wO\_*;K:{eۖ$z ;Ǜۀ }AzI$sc尽&ʅ xK_ˆFruQV^Oy'O0;챐z҆%2/R@cĻK 8T+3 $eyE`+Z49M.7^e>q< <%J8&ߕkS}SwMA[]ӌ#Neal H. Walfield  0 !wq=ڛb2CcRY5 2CcR<qmE*\bsp!qLzRb(i/4!j"b8E,7X@/kme qXy2kd/A[eI˪ݕ -:g gs>@:z#pʀmO^ӀރhrYH, F4@uL5R_l(B#PĊuVr2.Z |Ed)K3Z\15W{ cHnzZ_UyŲß_U8v矜nByA #3BB:b#շ73+ ==&J{r_&Neal H. Walfield % ;    !wq=ڛb2CcRY6{ L 2CcR$4 P뀁W M;8LtW-*ҹ,Vҿs0+Q3ԗLsbя߲ nީ[w-~pJZ\) #(y7t=wKKk Z}9AB#tRBD!8{=w'U58z![īXop~<@?9/6KRJO$?֪c)I4mQ{Ta%,gVL_fZK< mXcNYjegVKߊMu7<vOՅle|;;L&M jзDOFRwh5xnL5}:N'Neal H. Walfield % ;    !wq=ڛb2CcRY6| L 2CcRH} (&*(.txc:ྪ!ѴL]<. Aaj|ijwEyꓥ/|,mcw*a~v=xw:g ]judHnuX1tlǩM06z(l)tDgϱd< A΁B'wqWy}\ŅgY5E;*=RIFp=.)Lyz4%&fO1nxFu;{s0:܌[zǪHO.*%8.*+JtqAu]et#뼊9 4, +5[rt˙O9|L.j5!BC<:feb1ܬ~/ٝǏzia-ͻB'| p+9=,m,LRd'Neal H. Walfield % ;!wq=ڛb2CcRZ<  L     2CcRyP-vΦ&ʾHEiFdn6mZE#H"S0R¤O`?>`ՄM-nGS#=! Gi xP(,6zU 8W,poj4t R_1k R+GebW}Y^;sfWn\5NvL>Fs0D U#5Q$_|p|CxTsls_yAHxeYZvS2j[ױØ;?|4%߯š p-xc a!Л&d #$݀['yX2}H& ۨ9=[@S I~GP=LqW?2$c?rrw(eQ+9]:ߤ0 \.NBMenO]U U# g) 2CcR]  U# r#fx%(yΆ>H ܖ]Wk>-N$`$48b觶FRL[Pэ 4ڀ9R W6 փ玮d)~6mR#2C#?5dȏˤ>WX|ьk))`ZB1w$1Q#3Qz6M} dQ<\^U&v8c&jPb{10|iX #I'TJ+ɖx1 2٤'ELOOH ߅5cF€dQ|G/5E01uƐl="HS\n|zU f0 Q:# lP$PŦ"JE&Mb:ʏp ,_'N'Pkڛ3<"54m;XQlz3 f묟CQɻ[7qX%ΝFغfJ1Zԣ|Ef4bI29֠^)Ӵ oY\/9+M~%贐\%]] h5NDu=sǪ ⅤzY<A#_s}qG" C&˥>g>' ]P i   4y cauQfU8ڐ^뎼 rLU} X%Hm"E^$8x0bq#-=Fʼn X#  )]  U# r#fx%(yΆ>H ܖ]Wk>-N$`$48b觶FRL[Pэ 4ڀ9R W6 փ玮d)~6mR#2C#?5dȏˤ>WX|ьk))`ZB1w$1Q#3Qz6M} dQ<\^U&v8c&jPb{10|iX #I'TJ+ɖx1 2٤ 2CcR0?友rɳ~PFbJ=vj/nI {<\+}9ٚ/H0qJԚpd FE᳐k/ЦS10[[ܾ؉z/ǀvԧwK((V.lwdtNr%oC/mv`~3 HV+Vz1mĀcW iPϕ=E8ZzNdlkh(TOѻner/&3[ScLT] }4 (3FC'8}9}B06>)9 2"^2DWby8C:MSГdjlߏ3챆)>> SvtرuVТB #:!o8|/'CD-`(f-3 U#  g 2CcRم]qbON@6>HܐŌE  X# # 2CcRS-`KsAN.) $Xt@F18iVȘY%䠠y"^ApJԛW(8)g<ܜg#$1]'_e5ef;}GI~?fLE K6*I~XiIb\t؀@ffkjGL>47_;B5dwEц0N@-ɇQ1/t~i`]١lهkO758.,{2wdӱU"TowI| -H:G"=qbk,)td.b5 ^k @Sr}*ISЦ$N%T 0QZ<eL)s3Kg^fF@ɦAҨOS7bP;-Z}y6͢_)Dg]Ϲ U#֭ݣ#x [s`T@IhZ>-Wp>- OkеH)AZ6G:?D P/?%+&e_Hon1~-W=Xf.y:6d`pm1l+* &N_(ob2 v }.\To(M U::k;L/'D(/,H5nvm8:8wBF(Hi.5nT-tዐl9[! I_18ukMtrr$!4Г+}ow  X#  2CcRrQy-c@ygճ1CWsk,L [4ykX/GpK]hϤ?uS|W3HNS~|+!Qp~)gC^Ji"jJNopvLrQ9 '~*ud"$S瓵4DE+zd=&F~=Osb<8'}w &:˦u#0@"=XT %Rx\7ll%{wLR  K(&W=*Es@yALLDV*mŁz/%;,Ui6uuu݋u_7gE&rqh$,9?)6J )%2xH1Q8DcJEJ$0n[|G²L#㦫tYI)kMX![v=;wtNkQsequoia-sqv-1.2.1/tests/data/bad-subkey-keyring.txt000064400000000000000000000006631046102023000204170ustar 00000000000000This key keyring contains two keys in the following order: "Justus", "Neal". Justus's key includes all of Neal's subkeys. When Justus's key is canonicalized, Neal's subkeys should be dropped. If an application looks for Neal's signing subkey and either doesn't validate the keys or only filters on the unvalidated keys, then it will not find the right key. This was fixed in sqv in commit 1d63e71a839bf68f50cb7f4c1942f0d0b1eccfca. sequoia-sqv-1.2.1/tests/data/bad-subkey.txt000064400000000000000000000000041046102023000167360ustar 00000000000000foo sequoia-sqv-1.2.1/tests/data/bad-subkey.txt.sig000064400000000000000000000004661046102023000175330ustar 000000000000003 !?AWdar#fx%([4 r#fx%(?BLX Nfrq'9_wu:P?] TILΐٞA"EȐd(U2VR 3[د +G@м(.c'Kd)٦c]A0ܔ& !3F&3yvyx 4,[د  4,v !83̷xn=f/=:[}e)>!L̠{ EӳPV<;+-MC#^zĐ͗,&yZ}H\hxΖLO-d;,.PEᗬjt/L~BV:p^J=xīF FK/$[6U(ſ=//7-I@d QK*j{N@2%XZT[]'Fx9<8s"!-! e/>d5nH.CneJIyɎގj \A Z^\L"QfA@XTqw5Tj(6¹Uam u+`sK=ŖKIݑdmXVi\hCI/~rdu.v{ 5K_+ɶyAU\׌ E:t*޷pQiɮV0eg蜴!@ce#Y~J3ķ 6$[ڶwe2@q,uegc~T֔0w~Qgxݫ>0faJU, |HuE wnقAxG#Cۃ\Z`Bma(1C 3 \A!L/fw m w m m .XmB!kcimq[ V҆>~)/T0u"-#Xfԋsŝ*'4œ%(0-PP`^t7S=ymMyF/I4J&-҇:7 *In<`D}b&@ ߸s51/wgw4 ;f"xb݅͹&Y. H\މhi }6U9HSƷu6N|lg8Gn'0n'\ q$KiTroS8( Q72JW OO*)]D; HTśi v N[JqO hS:Aˍ3sequoia-sqv-1.2.1/tests/data/no-signing-caps.sig000064400000000000000000000006661046102023000176650ustar 00000000000000 '\A!1z"fbM-,)`X -,)`X(z hT7}8RQ)GPejn"J_jp w3ʢ:7%\{l!0|'2sO $w _G \g 6ݣ+H7ry(Zz,{,9`;lVILcFpN, xZq0HhL1〿T`8}%S? #.^\YS`[B6&v NnQrrb!Խ ;zւh^/Gzn[* j|h?}.)TN|O[z"9f[%T#r(DE\naeW$5!G};sequoia-sqv-1.2.1/tests/data/revoked-key-cert-not-revoked.pgp000064400000000000000000000017311046102023000223020ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-compromised.pgp000064400000000000000000000021641046102023000240240ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP™  *\*#Key material has been compromised! hc^!&|e+'Zhc^c>ȕ4zx""^H.Xne<ѨK*DIpb56H߄6_~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-compromised.sk.pgp000064400000000000000000000021641046102023000244400ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL™( *\*#Key material has been compromised! hc^!&|e+'Zhc^`xbF0Ei1la2္ًh݌i嚻G^$gN@:5G / ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-key_retired.pgp000064400000000000000000000021641046102023000240110ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP™  *\*#Key is retired and no longer used! hc^!&|e+'Zhc^"tH4H[bB4mSDnv#J_ 8 JKdT)EY\6x~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-key_retired.sk.pgp000064400000000000000000000021641046102023000244250ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL™( *\*#Key is retired and no longer used! hc^!&|e+'Zhc^?2]dwD ޿KY-כLֳ߮1Y^jbpKP' / ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-no_subpacket.pgp000064400000000000000000000021201046102023000241500ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oPu  \*! hc^!&|e+'Zhc^؉]Gv<zQwu 8pR=!sW8(+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-no_subpacket.sk.pgp000064400000000000000000000021201046102023000245640ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒLu( \*! hc^!&|e+'Zhc^zǚD!l@v@Ҕ/+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-private.pgp000064400000000000000000000021751046102023000231570ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP¢  3\*,dPrivate/Experimental revocation reason 100! hc^!&|e+'Zhc^BpSk(äq/Z \\x\pфE!︜n8R "ё ~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-private.sk.pgp000064400000000000000000000021751046102023000235730ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL¢( 3\*,dPrivate/Experimental revocation reason 100! hc^!&|e+'Zhc^JDkbդ?rٶiZCV {U8O] z%gje / ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-superseded.pgp000064400000000000000000000021441046102023000236440ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP‰  \*Key is superseded! hc^!&|e+'Zhc^[|U "p%+cӠϪN H+ZM2֋]'sKCe]E@r#~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-superseded.sk.pgp000064400000000000000000000021441046102023000242600ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL‰( \*Key is superseded! hc^!&|e+'Zhc^(WN`gp:Q{yCIdhd[K3B=w^;K/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-uid_retired.pgp000064400000000000000000000021711046102023000240000ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oPž  /\*( User ID information is no longer valid! hc^!&|e+'Zhc^ x3#:wv2)) Y )w^-n8a/k ilTXMd ~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-uid_retired.sk.pgp000064400000000000000000000021711046102023000244140ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒLž( /\*( User ID information is no longer valid! hc^!&|e+'Zhc^PFY5RЦj¤2 Ҵo+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-unknown.pgp000064400000000000000000000021601046102023000231760ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP•  &\*Unknown revocation reason 200! hc^!&|e+'Zhc^ qf"}r#:HPSGS\M!aNsd($"mLj`m~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-unknown.sk.pgp000064400000000000000000000021601046102023000236120ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL•( &\*Unknown revocation reason 200! hc^!&|e+'Zhc^:78wؿ>t3ŒM2`@7̆,nQ[U|~ǕK/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-unspecified.pgp000064400000000000000000000021461046102023000240010ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP‹  \*No reason specified! hc^!&|e+'Zhc^ꪪP+afjOXUeLWDMlzo]Pt^W>UhufTfk~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-cert-revoked-unspecified.sk.pgp000064400000000000000000000021461046102023000244150ustar 000000000000003ZIz +G@pFtR{6A"Fjuj<)r{m {W!7oP~ ^  ! hc^!&|e+'Zhc^XOh I}vMW-C5;د=ዖ4,]Fy.+$CYiOOD~ ZIz ! hc^!&|e+'Zhc^I̝տ~$GYbVD֤"_r^HhbYjPZIdէ8juliet@example.orgu ZIz! hc^!&|e+'Zhc^ :*kh$U9)ഃ5G<#Dyt9;]aFl. ypY GO3ZJˀ +G@_BZ H,{% dϒL‹( \*No reason specified! hc^!&|e+'Zhc^}>6sS73W%EیKU#Ķipmul7.p/ ^  hc^v ^ ! U@ (!JhW(VU@ (ZD9Cs~SKcI F"9pM#[7ޙ!Ϝ#kߗ28<0t΂< !&|e+'Zhc^L.J^)hyaᆐjn$ʬUh ,pN Xpqh\vWiQ&; / Z hc^v Z! U@ (!JhW(VU@ (f;b R( x5&r:qʯUxe']LL{D^ &#TcǓ' !&|e+'Zhc^4i÷i@VMZۺYF$Y-&d}0a=+q&iCmX>+NXsequoia-sqv-1.2.1/tests/data/revoked-key-sig-t0.pgp000064400000000000000000000001671046102023000202170ustar 00000000000000u XhF! hc^!&|e+'Zhc^2sU\<1d5z(2Y KBܫɶ$F.=sequoia-sqv-1.2.1/tests/data/revoked-key-sig-t0.sk.pgp000064400000000000000000000001671046102023000206330ustar 00000000000000u XhF! U@ (!JhW(VU@ (6o_dED \^aU%l {o3021$vsequoia-sqv-1.2.1/tests/data/revoked-key-sig-t1-t2.pgp000064400000000000000000000001671046102023000205430ustar 00000000000000u Z! hc^!&|e+'Zhc^(bw2-M0!;eQ)cueWCzF\ܢRO_6Bf~!ɣsequoia-sqv-1.2.1/tests/data/revoked-key-sig-t1-t2.sk.pgp000064400000000000000000000001671046102023000211570ustar 00000000000000u Z! U@ (!JhW(VU@ (F<Mktͷ* rͷҵrw M:wu|XȷI}msequoia-sqv-1.2.1/tests/data/revoked-key-sig-t2-t3.pgp000064400000000000000000000001671046102023000205450ustar 00000000000000u ]?! hc^!&|e+'Zhc^1re'_d\ r" Z-p@oW%{n?jay$sequoia-sqv-1.2.1/tests/data/revoked-key-sig-t2-t3.sk.pgp000064400000000000000000000001671046102023000211610ustar 00000000000000u ]?! U@ (!JhW(VU@ (< ?N#{宛aIT!TP*36QU9a`GΉv 3ņ&9)MwMsequoia-sqv-1.2.1/tests/data/revoked-key-sig-t3-now.sk.pgp000064400000000000000000000001671046102023000214370ustar 00000000000000u ^l! U@ (!JhW(VU@ (}=n0H]1RV~؞an ɔ4ѭM.AfjZws = ~(l sequoia-sqv-1.2.1/tests/duplicate-signatures.rs000064400000000000000000000017621046102023000177540ustar 00000000000000use assert_cmd::Command; use std::path; /// Asserts that duplicate signatures are properly ignored. #[test] fn ignore_duplicates() { // Duplicate is ignored, but remaining one is ok. Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "a-cypherpunks-manifesto.txt.ed25519.sig.duplicated", "a-cypherpunks-manifesto.txt", ]) .unwrap(); // Duplicate is ignored, and fails to meet the threshold. Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "--signatures=2", "a-cypherpunks-manifesto.txt.ed25519.sig.duplicated", "a-cypherpunks-manifesto.txt", ]) .assert() .failure(); } sequoia-sqv-1.2.1/tests/multiple-signatures.rs000064400000000000000000000013121046102023000176240ustar 00000000000000 use assert_cmd::Command; fn p(filename: &str) -> String { format!("../openpgp/tests/data/{}", filename) } /// Asserts that multiple signatures from the same Cert are properly /// ignored. #[test] fn ignore_multiple_signatures() { // Multiple signatures from the same Cert are ignored, and fails to // meet the threshold. Command::cargo_bin("sqv").expect("have sqv") .args( &["--keyring", &p("keys/emmelie-dorothea-dina-samantha-awina-ed25519.pgp"), "--signatures=2", &p("messages/a-cypherpunks-manifesto.txt.ed25519.sig.duplicated"), &p("messages/a-cypherpunks-manifesto.txt")]) .assert() .failure(); } sequoia-sqv-1.2.1/tests/not-before-after.rs000064400000000000000000000044461046102023000167610ustar 00000000000000#[cfg(test)] mod integration { use assert_cmd::Command; use predicates::prelude::*; use std::path; #[test] fn unconstrained() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "a-cypherpunks-manifesto.txt.ed25519.sig", "a-cypherpunks-manifesto.txt", ]) .assert() .success() .stdout(predicate::eq( b"8E8C33FA4626337976D97978069C0C348DD82C19\n" as &[u8])); } #[test] fn in_interval() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "--not-before", "2018-08-14", "--not-after", "2018-08-15", "a-cypherpunks-manifesto.txt.ed25519.sig", "a-cypherpunks-manifesto.txt", ]) .assert() .success() .stdout(predicate::eq( b"8E8C33FA4626337976D97978069C0C348DD82C19\n" as &[u8])); } #[test] fn before() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "--not-before", "2018-08-15", "a-cypherpunks-manifesto.txt.ed25519.sig", "a-cypherpunks-manifesto.txt", ]) .assert() .failure(); } #[test] fn after() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args(&[ "--keyring", "emmelie-dorothea-dina-samantha-awina-ed25519.pgp", "--not-after", "2018-08-13", "a-cypherpunks-manifesto.txt.ed25519.sig", "a-cypherpunks-manifesto.txt", ]) .assert() .failure(); } } sequoia-sqv-1.2.1/tests/revoked-key.rs000064400000000000000000000463451046102023000160530ustar 00000000000000//! Tests revocations and binding signatures over time. //! //! These tests create a certificate with a signing capable primary //! key (subkey), and revoke it later on, then re-legitimize it using //! a new signature. We then ask sqv to verify a signature at //! different points in time. Hard revocations of the key invalidate //! the signature at any point in time, whereas in the case of soft //! revocations, the keys can be re-legitimized. //! //! All tests are run in three flavors: //! //! 0. The primary key makes the signatures and is revoked. //! 1. The subkey makes the signatures, primary key is revoked. //! 2. The subkey makes the signatures and is revoked. //! //! As extra subtlety, we bind the subkey *after* the t1-t2 signature. //! //! Timeline: v //! | //! t0 -| - Signature revoked-key-sig-t0.pgp //! | //! t1 -| - Primary key creation //! | //! | - Subkey creation //! | //! | - Signature revoked-key-sig-t1-t2.pgp //! | //! | - Subkey is bound //! | //! t2 -| - Revocation of (sub)key //! | //! | - Signature revoked-key-sig-t2-t3.pgp //! | //! t3 -| - New direct/binding signature //! | //! | - Signature revoked-key-sig-t3-now.pgp //! | //! now -| //! v #[cfg(test)] mod integration { use assert_cmd::Command; use predicates::prelude::*; use std::path; fn sqv(keyring: &str, sig: &str) -> Command { let mut cmd = Command::cargo_bin("sqv").expect("have sqv"); cmd.current_dir(path::Path::new("tests").join("data")) .args( &["--keyring", &format!("revoked-key-cert-{}.pgp", keyring), &format!("revoked-key-sig-{}.pgp", sig), "msg.txt"]); cmd } /// Tests flavor 0, primary key signs and is revoked. fn f0(keyring: &str, sig: &str) -> Command { sqv(keyring, sig) } /// Tests flavor 1, subkey signs and primary key is revoked. fn f1(keyring: &str, sig: &str) -> Command { sqv(keyring, &format!("{}.sk", sig)) } /// Tests flavor 2, subkey signs and is revoked. fn f2(keyring: &str, sig: &str) -> Command { sqv(&format!("{}.sk", keyring), &format!("{}.sk", sig)) } /// Base case, cert is not revoked. #[test] fn not_revoked() { let c = "not-revoked"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").unwrap(); f0(c, "t2-t3").unwrap(); f0(c, "t3-now").unwrap(); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").unwrap(); f1(c, "t3-now").unwrap(); // f2 is not used here, because we don't have any revocations. } /// The hard revocation reasons. All signatures are invalid. #[test] fn revoked_no_subpacket() { let c = "revoked-no_subpacket"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); } #[test] fn revoked_unspecified() { let c = "revoked-unspecified"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); } #[test] fn revoked_compromised() { let c = "revoked-compromised"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); } #[test] fn revoked_private() { let c = "revoked-private"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); } #[test] fn revoked_unknown() { let c = "revoked-unknown"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").assert().failure().stderr(predicate::str::contains("revoked")); } /// The soft revocation reasons. Only the signature dated prior /// to the key creation and the one directly after the revocation /// are invalid. #[test] fn revoked_superseded() { let c = "revoked-superseded"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").unwrap(); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").unwrap(); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").unwrap(); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").unwrap(); } #[test] fn revoked_key_retired() { let c = "revoked-key_retired"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").unwrap(); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").unwrap(); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").unwrap(); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").unwrap(); } /// XXX: This is an odd one. #[test] fn revoked_uid_retired() { let c = "revoked-uid_retired"; f0(c, "t0").assert().failure(); f0(c, "t1-t2").unwrap(); f0(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f0(c, "t3-now").unwrap(); f1(c, "t0").assert().failure(); f1(c, "t1-t2").assert().failure(); f1(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f1(c, "t3-now").unwrap(); f2(c, "t0").assert().failure(); f2(c, "t1-t2").assert().failure(); f2(c, "t2-t3").assert().failure().stderr(predicate::str::contains("revoked")); f2(c, "t3-now").unwrap(); } } // Code to create the data for the test cases above //#[test] #[allow(dead_code)] fn create_key() { use std::fs::File; use sequoia_openpgp::{ Cert, Packet, packet::{ signature, Key, key::{ Key4, SecretParts, PrimaryRole, SubordinateRole, }, UserID, }, serialize::Serialize, types::{ Curve, Features, KeyFlags, SignatureType, HashAlgorithm, ReasonForRevocation, } }; use chrono::offset::TimeZone; let msg = b"Hello, World"; let t0 = chrono::offset::Utc.timestamp_opt(1483228800, 0).unwrap(); // 2017-01-01 let t1 = chrono::offset::Utc.timestamp_opt(1514764800, 0).unwrap(); // 2018-01-01 let t2 = chrono::offset::Utc.timestamp_opt(1546300800, 0).unwrap(); // 2019-01-01 let t3 = chrono::offset::Utc.timestamp_opt(1577836800, 0).unwrap(); // 2020-01-01 let f1: f32 = 0.4; // Chosen by fair dice roll. let f2: f32 = 0.7; // Likewise. let t12 = t1 + chrono::Duration::days((300.0 * f1) as i64); let t_sk_binding = t12 + chrono::Duration::days(1); let t23 = t2 + chrono::Duration::days((300.0 * f2) as i64); let compatible = false; let make_key = || -> Key { if compatible { Key4::generate_rsa(2048).unwrap().into() } else { Key4::generate_ecc(true, Curve::Ed25519).unwrap().into() } }; // Create primary key. let mut key: Key<_, PrimaryRole> = make_key(); key.set_creation_time(t1).unwrap(); let mut signer = key.clone().into_keypair().unwrap(); // Create a UserID. let uid: UserID = "juliet@example.org".into(); let uid_binding = signature::SignatureBuilder::new(SignatureType::PositiveCertification) .set_signature_creation_time(t1).unwrap() .sign_userid_binding(&mut signer, None, &uid).unwrap(); // Create subkey. let mut subkey: Key<_, SubordinateRole> = make_key().into(); subkey.set_creation_time(t1 + chrono::Duration::days(1)).unwrap(); let mut sk_signer = subkey.clone().into_keypair().unwrap(); // 1st direct key signature valid from t1 on let mut b = signature::SignatureBuilder::new(SignatureType::DirectKey) .set_features(Features::sequoia()).unwrap() .set_key_flags(KeyFlags::empty() .set_signing().set_certification()).unwrap() .set_signature_creation_time(t1).unwrap() .set_preferred_hash_algorithms(vec![HashAlgorithm::SHA512]) .unwrap(); let direct1 = b.sign_direct_key(&mut signer, None).unwrap(); // 1st subkey binding signature valid from t_sk_binding on b = signature::SignatureBuilder::new(SignatureType::SubkeyBinding) .set_key_flags(KeyFlags::empty().set_signing()).unwrap() .set_signature_creation_time(t_sk_binding).unwrap() .set_embedded_signature( signature::SignatureBuilder::new(SignatureType::PrimaryKeyBinding) .set_signature_creation_time(t_sk_binding).unwrap() .sign_primary_key_binding(&mut sk_signer, &key, &subkey).unwrap()) .unwrap(); let sk_bind1 = b.sign_subkey_binding(&mut signer, None, &subkey).unwrap(); // 2nd direct key signature valid from t3 on b = signature::SignatureBuilder::new(SignatureType::DirectKey) .set_features(Features::sequoia()).unwrap() .set_key_flags(KeyFlags::empty() .set_signing().set_certification()).unwrap() .set_signature_creation_time(t3).unwrap() .set_preferred_hash_algorithms(vec![HashAlgorithm::SHA512]) .unwrap(); let direct2 = b.sign_direct_key(&mut signer, None).unwrap(); // 2nd subkey binding signature valid from t3 on let mut b = signature::SignatureBuilder::new(SignatureType::SubkeyBinding) .set_key_flags(KeyFlags::empty().set_signing()).unwrap() .set_signature_creation_time(t3).unwrap() .set_embedded_signature( signature::SignatureBuilder::new(SignatureType::PrimaryKeyBinding) .set_signature_creation_time(t3).unwrap() .sign_primary_key_binding(&mut sk_signer, &key, &subkey).unwrap()) .unwrap(); let sk_bind2 = b.sign_subkey_binding(&mut signer, None, &subkey).unwrap(); let cert = Cert::try_from(vec![ key.clone().into(), direct1.clone().into(), direct2.clone().into(), uid.clone().into(), uid_binding.clone().into(), subkey.clone().into(), sk_bind1.clone().into(), sk_bind2.clone().into(), ]).unwrap(); let mut fd = File::create("revoked-key-cert-not-revoked.pgp").unwrap(); cert.serialize(&mut fd).unwrap(); for (slug, reason) in &[ ("no_subpacket", None), ("unspecified", Some(ReasonForRevocation::Unspecified)), ("superseded", Some(ReasonForRevocation::KeySuperseded)), ("compromised", Some(ReasonForRevocation::KeyCompromised)), ("key_retired", Some(ReasonForRevocation::KeyRetired)), ("uid_retired", Some(ReasonForRevocation::UIDRetired)), ("private", Some(ReasonForRevocation::Private(100))), ("unknown", Some(ReasonForRevocation::Unknown(200))), ] { // Revocation sig valid from t2 on let mut b = signature::SignatureBuilder::new(SignatureType::KeyRevocation) .set_signature_creation_time(t2).unwrap(); if let Some(r) = reason { b = b.set_reason_for_revocation(*r, r.to_string().as_bytes()) .unwrap(); } let rev = b.sign_direct_key(&mut signer, None).unwrap(); let cert = Cert::try_from(vec![ key.clone().into(), direct1.clone().into(), rev.clone().into(), direct2.clone().into(), uid.clone().into(), uid_binding.clone().into(), subkey.clone().into(), sk_bind1.clone().into(), sk_bind2.clone().into(), ]).unwrap(); let mut fd = File::create(format!("revoked-key-cert-revoked-{}.pgp", slug)) .unwrap(); cert.serialize(&mut fd).unwrap(); // Again, this time we revoke the subkey. let mut b = signature::SignatureBuilder::new(SignatureType::SubkeyRevocation) .set_signature_creation_time(t2).unwrap(); if let Some(r) = reason { b = b.set_reason_for_revocation(*r, r.to_string().as_bytes()) .unwrap(); } let rev = b.sign_subkey_binding(&mut signer, None, &subkey).unwrap(); let cert = Cert::try_from(vec![ key.clone().into(), direct1.clone().into(), direct2.clone().into(), uid.clone().into(), uid_binding.clone().into(), subkey.clone().into(), sk_bind1.clone().into(), rev.clone().into(), sk_bind2.clone().into(), ]).unwrap(); let mut fd = File::create(format!("revoked-key-cert-revoked-{}.sk.pgp", slug)) .unwrap(); cert.serialize(&mut fd).unwrap(); } // 0th message sig before t1 let sig0 = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t0).unwrap() .sign_message(&mut signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t0.pgp").unwrap(); Packet::from(sig0).serialize(&mut fd).unwrap(); // 0th message sig before t1, subkey let sig0 = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t0).unwrap() .sign_message(&mut sk_signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t0.sk.pgp").unwrap(); Packet::from(sig0).serialize(&mut fd).unwrap(); // 1st message sig between t1 and t2 b = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t12).unwrap(); let sig1 = b.sign_message(&mut signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t1-t2.pgp").unwrap(); Packet::from(sig1).serialize(&mut fd).unwrap(); // 1st message sig between t1 and t2, subkey b = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t12).unwrap(); let sig1 = b.sign_message(&mut sk_signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t1-t2.sk.pgp").unwrap(); Packet::from(sig1).serialize(&mut fd).unwrap(); // 2nd message sig between t2 and t3 b = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t23).unwrap(); let sig2 = b.sign_message(&mut signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t2-t3.pgp").unwrap(); Packet::from(sig2).serialize(&mut fd).unwrap(); // 2nd message sig between t2 and t3, subkey b = signature::SignatureBuilder::new(SignatureType::Binary) .set_signature_creation_time(t23).unwrap(); let sig2 = b.sign_message(&mut sk_signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t2-t3.sk.pgp").unwrap(); Packet::from(sig2).serialize(&mut fd).unwrap(); // 3rd message sig between t3 and now b = signature::SignatureBuilder::new(SignatureType::Binary); let sig3 = b.sign_message(&mut signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t3-now.pgp").unwrap(); Packet::from(sig3).serialize(&mut fd).unwrap(); // 3rd message sig between t3 and now, subkey b = signature::SignatureBuilder::new(SignatureType::Binary); let sig3 = b.sign_message(&mut sk_signer, msg).unwrap(); let mut fd = File::create("revoked-key-sig-t3-now.sk.pgp").unwrap(); Packet::from(sig3).serialize(&mut fd).unwrap(); } sequoia-sqv-1.2.1/tests/wrong-key-flags.rs000064400000000000000000000034621046102023000166330ustar 00000000000000#[cfg(test)] mod integration { use assert_cmd::Command; use std::path; #[test] fn not_for_signing_subkey() { Command::cargo_bin("sqv").expect("have sqv") .current_dir(path::Path::new("tests").join("data")) .args( &["--keyring", &"no-signing-caps.key", &"no-signing-caps.sig", &"msg.txt"]) .assert() .failure(); } } // Code to create the data for the test cases above // use sequoia_openpgp; // // #[test] // fn create_key() { // use std::fs::File; // use sequoia_openpgp::{ // cert::CertBuilder, // packet::{ // signature, // key::SecretKey, // }, // crypto::KeyPair, // serialize::Serialize, // types::{ // SignatureType, // HashAlgorithm, // } // }; // // let (cert, _) = CertBuilder::default() // .add_userid("Testy Mc Test") // .add_transport_encryption_subkey() // .generate().unwrap(); // let subkey = cert.subkeys().next().unwrap(); // let key = subkey.subkey(); // let sig = { // let mpis = match key.secret() { // Some(SecretKey::Unencrypted{ ref mpis }) => mpis, // _ => unreachable!(), // }; // let mut b = signature::SignatureBuilder::new(SignatureType::Binary); // b.sign_message( // &mut KeyPair::new(key.clone(), mpis.clone()).unwrap(), // HashAlgorithm::SHA512, b"Hello, World").unwrap() // }; // // { // let mut fd = File::create("key").unwrap(); // cert.serialize(&mut fd).unwrap(); // } // // { // let mut fd = File::create("sig").unwrap(); // sig.serialize(&mut fd).unwrap(); // } // }