nettle-7.1.0/.cargo_vcs_info.json0000644000000001360000000000100123340ustar { "git": { "sha1": "1201cbdf48ef0991db901e46c3870b874d8d8d9d" }, "path_in_vcs": "" }nettle-7.1.0/.gitignore000064400000000000000000000000610072674642500131410ustar 00000000000000/target/ **/*.rs.bk Cargo.lock **/*.swp **/*.swo nettle-7.1.0/.gitlab-ci.yml000064400000000000000000000075200072674642500136140ustar 00000000000000# These stanzas do some common management tasks before and after the # job-specific before_script and after_script stanzas are run. # before_script_start configures any default global state. The # job-specific before_script can override this state, if required. # before_script_end prints out information about the environment to # improve debugging; it does not modify the environment. # after_script_end does some common management tasks after the # job-specific after_script is run. It prints information about the # environment, and does some clean up. # # Add this to your stanza as follows: # # before_script: # - *before_script_start # - *** YOUR CODE HERE *** # - *before_script_end # after_script: # - *** YOUR CODE HERE *** # - *after_script_end .before_script_start: &before_script_start - 'if test "x${RUSTFLAGS+SET}" = xSET; then echo "\$RUSTFLAGS is set ($RUSTFLAGS)"; exit 1; fi' .before_script_end: &before_script_end - 'if test "x${RUSTFLAGS+SET}" = xSET; then echo "WARNING: before_script set \$RUSTFLAGS ($RUSTFLAGS)"; fi' - rustc --version --verbose - cargo --version - clang -v - apt list nettle-dev - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR | wc --lines; du -sh $CARGO_TARGET_DIR; fi - if [ -d $CARGO_HOME ]; then find $CARGO_HOME | wc --lines; du -sh $CARGO_HOME; fi .after_script_end: &after_script_end - if [ -d $CARGO_TARGET_DIR ]; then find $CARGO_TARGET_DIR -type f -atime +7 -delete; fi - if [ -d $CARGO_TARGET_DIR ]; then du -sh $CARGO_TARGET_DIR; fi - if [ -d $CARGO_HOME ]; then du -sh $CARGO_HOME; fi before_script: - *before_script_start - *before_script_end after_script: - *after_script_end image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye:latest test: script: - cargo test --all test:arm64: tags: - docker-arm64 image: registry.gitlab.com/sequoia-pgp/build-docker-image/bullseye-arm64:latest script: - cargo test --all # XXX: The runners are offline, disable this for now. To re-enable, drop the next line. when: manual only: variables: # Forks of this project most likely do not have an arm64 runner - $CI_PROJECT_NAMESPACE == "sequoia-pgp" # Test on Debian Buster with Nettle 3.4.1. test-buster: image: rust:slim-buster before_script: - *before_script_start - apt update -y -qq - apt install -y -qq --no-install-recommends clang llvm pkg-config nettle-dev - *before_script_end script: - cargo test --all # Test on Windows with the GNU toolchain. test-windows-gnu: tags: - win - win2019 image: registry.gitlab.com/sequoia-pgp/build-docker-image/windows-gnu only: variables: # Forks of this project most likely use gitlab's shared windows runners, which # do not use the docker executor, so disable the windows jobs for forks. - $CI_PROJECT_NAMESPACE == "sequoia-pgp" script: - rustup override set stable - cargo test --all # Windows uses Powershell, disable our scriptlets. before_script: [] after_script: [] sanitizer: tags: - linux image: registry.gitlab.com/sequoia-pgp/build-docker-image/sanitizer-nightly:latest stage: test before_script: - *before_script_start - llvm-symbolizer --version - *before_script_end script: - export RUSTFLAGS="-Z sanitizer=address" - export RUSTDOCFLAGS="-Z sanitizer=address" - export ASAN_OPTIONS=detect_stack_use_after_return=1 - cargo test --target x86_64-unknown-linux-gnu pages: stage: deploy script: - cargo doc - mv target/doc public - cp docs/index.html public/ artifacts: paths: - public only: - main cache: paths: - Cargo.lock - target/ - cargo/ variables: DEBIAN_FRONTEND: noninteractive CARGO_HOME: $CI_PROJECT_DIR/cargo CARGO_TARGET_DIR: $CI_PROJECT_DIR/target CARGO_FLAGS: --color always CARGO_INCREMENTAL: 0 nettle-7.1.0/Cargo.lock0000644000000206700000000000100103140ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "bindgen" version = "0.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd4865004a46a0aafb2a0a5eb19d3c9fc46ee5f063a6cfc605c69ac9ecf5263d" dependencies = [ "bitflags", "cexpr", "clang-sys", "lazy_static", "lazycell", "peeking_take_while", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", ] [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "cc" version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" [[package]] name = "cexpr" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27" dependencies = [ "nom", ] [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clang-sys" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa66045b9cb23c2e9c1520732030608b02ee07e5cfaa5a521ec15ded7fa24c90" dependencies = [ "glob", "libc", "libloading", ] [[package]] name = "fastrand" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" dependencies = [ "instant", ] [[package]] name = "getrandom" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" dependencies = [ "cfg-if", "libc", "wasi", ] [[package]] name = "glob" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" [[package]] name = "instant" version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ "cfg-if", ] [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[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.115" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a8d982fa7a96a000f6ec4cfe966de9703eccde29750df2bb8949da91b0e818d" [[package]] name = "libloading" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd" dependencies = [ "cfg-if", "winapi", ] [[package]] name = "memchr" version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "nettle" version = "7.1.0" dependencies = [ "getrandom", "libc", "nettle-sys", "thiserror", ] [[package]] name = "nettle-sys" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b13b685c7883e3a32196ccf3ce594947ec37ace43d74e157de7ca03d3fe62d17" dependencies = [ "bindgen", "cc", "libc", "pkg-config", "tempfile", "vcpkg", ] [[package]] name = "nom" version = "5.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af" dependencies = [ "memchr", "version_check", ] [[package]] name = "peeking_take_while" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "pkg-config" version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe" [[package]] name = "proc-macro2" version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" dependencies = [ "unicode-xid", ] [[package]] name = "quote" version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" dependencies = [ "proc-macro2", ] [[package]] name = "redox_syscall" version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" dependencies = [ "bitflags", ] [[package]] name = "regex" version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" dependencies = [ "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.6.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] name = "remove_dir_all" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ "winapi", ] [[package]] name = "rustc-hash" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "shlex" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" [[package]] name = "syn" version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" dependencies = [ "proc-macro2", "quote", "unicode-xid", ] [[package]] name = "tempfile" version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" dependencies = [ "cfg-if", "fastrand", "libc", "redox_syscall", "remove_dir_all", "winapi", ] [[package]] name = "thiserror" version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", "syn", ] [[package]] name = "unicode-xid" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" [[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 = "wasi" version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[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-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" nettle-7.1.0/Cargo.toml0000644000000020700000000000100103310ustar # 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 = "2018" name = "nettle" version = "7.1.0" authors = ["Kai Michaelis ", "Justus Winter "] description = "Rust bindings for the Nettle cryptographic library" documentation = "https://docs.rs/nettle" readme = "README.md" keywords = ["nettle", "cryptography"] categories = ["cryptography"] license = "LGPL-3.0 OR GPL-2.0 OR GPL-3.0" repository = "https://gitlab.com/sequoia-pgp/nettle-rs" [dependencies.getrandom] version = "0.2" [dependencies.libc] version = "0.2.33" [dependencies.nettle-sys] version = "2.1" [dependencies.thiserror] version = "1" nettle-7.1.0/Cargo.toml.orig000064400000000000000000000010410072674642500140370ustar 00000000000000[package] name = "nettle" version = "7.1.0" authors = [ "Kai Michaelis ", "Justus Winter ", ] description = "Rust bindings for the Nettle cryptographic library" repository = "https://gitlab.com/sequoia-pgp/nettle-rs" keywords = ["nettle", "cryptography"] categories = ["cryptography"] license = "LGPL-3.0 OR GPL-2.0 OR GPL-3.0" readme = "README.md" documentation = "https://docs.rs/nettle" edition = "2018" [dependencies] nettle-sys = "2.1" libc = "0.2.33" getrandom = "0.2" thiserror = "1" nettle-7.1.0/LICENSE-GPL2000064400000000000000000000432550072674642500126740ustar 00000000000000 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. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program 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. This program 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. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. nettle-7.1.0/LICENSE-GPL3000064400000000000000000001045170072674642500126740ustar 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. 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. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program 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 3 of the License, or (at your option) any later version. This program 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . nettle-7.1.0/LICENSE-LGPL3000064400000000000000000000167300072674642500130070ustar 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser 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 Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. nettle-7.1.0/README.md000064400000000000000000000020710072674642500124330ustar 00000000000000# nettle Rust bindings for the [Nettle cryptographic library](https://www.lysator.liu.se/~nisse/nettle/). The documentation for the latest version can also be found [here](https://sequoia-pgp.gitlab.io/nettle-rs). # Windows The bindings can be compiled using Mingw-w64 or the MSVC toolchain. In the MSYS2/mingw64 environment, you can install the toolchain and Nettle by running: ``` $ pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-pkg-config mingw-w64-x86_64-nettle ``` For MSVC, first install the "Build Tools for Visual Studio". Then, install Nettle, for example from MSYS2: ``` $ pacman -S libnettle-devel ``` # License This project is licensed under either of * GNU General Public License, Version 2.0, ([LICENSE-GPL2](LICENSE-GPL2) or https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * GNU General Public License, Version 3.0, ([LICENSE-GPL3](LICENSE-GPL3) or https://www.gnu.org/licenses/gpl.html) * GNU Lesser General Public License, Version 3.0, ([LICENSE-LGPL3](LICENSE-LGPL3) or https://www.gnu.org/licenses/lgpl.html) at your option. nettle-7.1.0/clippy.toml000064400000000000000000000000600072674642500133450ustar 00000000000000msrv = "1.46.0" type-complexity-threshold = 300 nettle-7.1.0/docs/index.html000064400000000000000000000005100072674642500140750ustar 00000000000000 nettle-rs Documentation Redirecting to nettle-rs documentation... nettle-7.1.0/examples/hash-benchmark.rs000064400000000000000000000023340072674642500162150ustar 00000000000000use std::time::SystemTime; use nettle::hash::*; use nettle::hash::insecure_do_not_use::*; fn benchmark(buf: &[u8], n: usize, h: &mut dyn Hash, name: &str) { let mut digest = vec![0; h.digest_size()]; let start = SystemTime::now(); for _ in 0..n / buf.len() { h.update(buf); } h.digest(&mut digest); let elapsed = start.elapsed().unwrap(); println!("Hashing {} bytes using {:10.} {:2.}.{:06.}s {:9.} byte/s", n, name, elapsed.as_secs(), elapsed.subsec_micros(), (n as f64 / (elapsed.as_secs() as f64 + elapsed.as_micros() as f64 / 1_000_000.)) as usize); } fn main() { const N: usize = 1024 * 1024 * 1024; let buf = vec![0; 1024 * 1024]; macro_rules! bench { ($hash: ident) => { benchmark(&buf, N, &mut $hash::default(), stringify!($hash)); } } //bench!(Md2); // MD2 is way too slow. bench!(Md4); bench!(Md5); bench!(Ripemd160); bench!(GostHash94); bench!(Sha1); bench!(Sha224); bench!(Sha256); bench!(Sha384); bench!(Sha512); bench!(Sha512_224); bench!(Sha512_256); bench!(Sha3_224); bench!(Sha3_256); bench!(Sha3_384); bench!(Sha3_512); } nettle-7.1.0/examples/polymorphic.rs000064400000000000000000000101640072674642500157070ustar 00000000000000extern crate nettle; use nettle::aead::{Eax, Gcm}; use nettle::cipher::{Aes128, Twofish}; use nettle::hash::{Hash, Sha224, Sha256}; use nettle::mac::Hmac; use nettle::mode::{Cbc, Cfb}; use nettle::aead::Aead; use nettle::mac::Mac; use nettle::mode::Mode; use nettle::random::{Random, Yarrow}; struct Fubar { foo: Foo, bar: Bar, baz: Baz, } impl Default for Fubar { fn default() -> Fubar { Fubar { foo: Foo::default(), bar: Bar::default(), baz: Baz::default() } } } impl Fubar { pub fn produce_hash(&self) -> Vec { let mut h = self.init_hash(); self.foo.hash(&mut h); self.bar.hash(&mut h); self.baz.hash(&mut h); let mut g = h.clone(); self.foo.hash(&mut g); self.bar.hash(&mut g); self.baz.hash(&mut g); let mut ret = vec![0u8; h.digest_size()]; h.digest(&mut ret); ret } pub fn produce_mac(&self) -> Vec { let mut h = self.init_mac(); self.foo.mac(&mut h); self.bar.mac(&mut h); self.baz.mac(&mut h); let mut ret = vec![0u8; h.mac_size()]; h.digest(&mut ret).unwrap(); ret } fn init_hash(&self) -> Box { if random_bool() { Box::new(Sha224::default()) } else { Box::new(Sha256::default()) } } fn init_mac(&self) -> Box { if random_bool() { Box::new(Hmac::::with_key(&b"123"[..])) } else { Box::new(Hmac::::with_key(&b"123"[..])) } } fn init_cipher(&self) -> Box { if random_bool() { Box::new(Cbc::::with_encrypt_key(&b"123"[..]).unwrap()) } else { Box::new(Cfb::::with_encrypt_key(&b"123"[..]).unwrap()) } } fn init_aead(&self) -> Box { if random_bool() { Box::new( Gcm::::with_key_and_nonce(&b"123"[..], &b"123"[..]) .unwrap(), ) } else { Box::new( Eax::::with_key_and_nonce(&b"123"[..], &b"123"[..]) .unwrap(), ) } } } struct Foo { num_foos: usize, } impl Default for Foo { fn default() -> Foo { Foo { num_foos: 42 } } } impl Foo { pub fn hash>(&self, h: &mut H) { h.as_mut().update(format!("{}", self.num_foos).as_bytes()); } pub fn mac>(&self, h: &mut H) { h.as_mut().update(format!("{}", self.num_foos).as_bytes()); } } struct Bar { bar: &'static str, } impl Default for Bar { fn default() -> Bar { Bar { bar: "Hallo, I bims bar vong foo her" } } } impl Bar { pub fn hash>(&self, h: &mut H) { h.as_mut().update(self.bar.as_bytes()); } pub fn mac>(&self, h: &mut H) { h.as_mut().update(self.bar.as_bytes()); } } enum Baz { One, Two, Three, } impl Default for Baz { fn default() -> Baz { if random_bool() { if random_bool() { Baz::One } else { Baz::Two } } else { Baz::Three } } } impl Baz { pub fn hash>(&self, h: &mut H) { match self { &Baz::One => h.as_mut().update(&b"Hello"[..]), &Baz::Two => h.as_mut().update(&b"Hallo"[..]), &Baz::Three => h.as_mut().update("こにちわ".as_bytes()), } } pub fn mac>(&self, h: &mut H) { match self { &Baz::One => h.as_mut().update(&b"Hello"[..]), &Baz::Two => h.as_mut().update(&b"Hallo"[..]), &Baz::Three => h.as_mut().update("こにちわ".as_bytes()), } } } fn main() { let fubar = Fubar::default(); fubar.init_aead(); fubar.init_cipher(); println!("Fubar hash: {:?}", fubar.produce_hash()); println!("Fubar mac: {:?}", fubar.produce_mac()); } fn random_bool() -> bool { let mut b = [0]; Yarrow::default().random(&mut b); b[0] > 127 } nettle-7.1.0/rustfmt.toml000064400000000000000000000002410072674642500135520ustar 00000000000000overflow_delimited_expr = true unstable_features = true use_small_heuristics = "Max" fn_args_density = "Compressed" max_width = 80 force_multiline_blocks = true nettle-7.1.0/src/aead/aead.rs000064400000000000000000000007240072674642500141000ustar 00000000000000/// A AEAD mode of operation. pub trait Aead { /// Adds associated data `ad`. fn update(&mut self, ad: &[u8]); /// Encrypts one block `src` to `dst`. fn encrypt(&mut self, dst: &mut [u8], src: &[u8]); /// Decrypts one block `src` to `dst`. fn decrypt(&mut self, dst: &mut [u8], src: &[u8]); /// Produce the digest. fn digest(&mut self, digest: &mut [u8]); /// Length of the digest in bytes. fn digest_size(&self) -> usize; } nettle-7.1.0/src/aead/ccm.rs000064400000000000000000001107070072674642500137530ustar 00000000000000use nettle_sys::{ ccm_ctx, nettle_ccm_decrypt, nettle_ccm_digest, nettle_ccm_encrypt, nettle_ccm_set_nonce, nettle_ccm_update, }; use std::cmp::min; use std::mem::zeroed; use crate::{aead::Aead, cipher::{BlockSizeIs16, Cipher}, Result}; /// Counter with CBC-MAC mode (NIST SP800-38C). /// /// CCM is a generic AEAD mode for block cipher with 128 bit block size. pub struct Ccm { cipher: C, context: ccm_ctx, } impl Ccm { /// Recommended size of the CCM digest in bytes. pub const DIGEST_SIZE: usize = ::nettle_sys::CCM_DIGEST_SIZE as usize; /// Creates a new instance with secret `key` and public `nonce`. /// /// The instance expect additional data of `ad_len` bytes, a /// overall message of `msg_len` and will produce a digest of /// `digest_len` bytes. pub fn with_key_and_nonce( key: &[u8], nonce: &[u8], ad_len: usize, msg_len: usize, digest_len: usize, ) -> Result { let mut ctx = unsafe { zeroed() }; let mut cipher = C::with_encrypt_key(key)?; let enc_func = C::raw_encrypt_function().ptr(); let cipher_ctx = cipher.context(); unsafe { nettle_ccm_set_nonce( &mut ctx as *mut _, cipher_ctx as *const _, enc_func, nonce.len(), nonce.as_ptr(), ad_len, msg_len, digest_len, ); } Ok(Ccm { cipher: cipher, context: ctx }) } } impl Aead for Ccm { fn digest_size(&self) -> usize { ::nettle_sys::CCM_DIGEST_SIZE as usize } fn update(&mut self, ad: &[u8]) { unsafe { nettle_ccm_update( &mut self.context as *mut _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), ad.len(), ad.as_ptr(), ); } } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_ccm_encrypt( &mut self.context as *mut _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_ccm_decrypt( &mut self.context as *mut _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_ccm_digest( &mut self.context as *mut _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), digest.len(), digest.as_mut_ptr(), ); } } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_ccm_twofish() { use crate::cipher::Twofish; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_twofish() { use crate::cipher::Twofish; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_twofish() { use crate::cipher::Twofish; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; 14], Twofish::BLOCK_SIZE * 5, Twofish::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_aes128() { use crate::cipher::Aes128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_aes128() { use crate::cipher::Aes128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_aes128() { use crate::cipher::Aes128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; 14], Aes128::BLOCK_SIZE * 5, Aes128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_aes192() { use crate::cipher::Aes192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_aes192() { use crate::cipher::Aes192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_aes192() { use crate::cipher::Aes192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; 14], Aes192::BLOCK_SIZE * 5, Aes192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_aes256() { use crate::cipher::Aes256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_aes256() { use crate::cipher::Aes256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_aes256() { use crate::cipher::Aes256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; 14], Aes256::BLOCK_SIZE * 5, Aes256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_camellia128() { use crate::cipher::Camellia128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_camellia128() { use crate::cipher::Camellia128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_camellia128() { use crate::cipher::Camellia128; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; 14], Camellia128::BLOCK_SIZE * 5, Camellia128::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_camellia192() { use crate::cipher::Camellia192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_camellia192() { use crate::cipher::Camellia192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_camellia192() { use crate::cipher::Camellia192; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; 14], Camellia192::BLOCK_SIZE * 5, Camellia192::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_camellia256() { use crate::cipher::Camellia256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_camellia256() { use crate::cipher::Camellia256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_camellia256() { use crate::cipher::Camellia256; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; 14], Camellia256::BLOCK_SIZE * 5, Camellia256::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_ccm_serpent() { use crate::cipher::Serpent; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_ccm_serpent() { use crate::cipher::Serpent; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_ccm_serpent() { use crate::cipher::Serpent; let mut enc = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let mut dec = Ccm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; 14], Serpent::BLOCK_SIZE * 5, Serpent::BLOCK_SIZE * 10, Ccm::::DIGEST_SIZE, ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Ccm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Ccm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } } nettle-7.1.0/src/aead/chacha_poly1305.rs000064400000000000000000000134410072674642500157710ustar 00000000000000use nettle_sys::{ chacha_poly1305_ctx, nettle_chacha_poly1305_decrypt, nettle_chacha_poly1305_digest, nettle_chacha_poly1305_encrypt, nettle_chacha_poly1305_set_key, nettle_chacha_poly1305_set_nonce, nettle_chacha_poly1305_update, }; use std::cmp::min; use std::mem::zeroed; use crate::errors::Error; use crate::{aead::Aead, Result}; /// D.J. Bernsteins ChaCha-Poly1305 AEAD stream cipher. pub struct ChaChaPoly1305 { context: chacha_poly1305_ctx, } impl ChaChaPoly1305 { /// Size of a Poly1305 digest in bytes. pub const DIGEST_SIZE: usize = ::nettle_sys::CHACHA_POLY1305_DIGEST_SIZE as usize; /// Size of the ChaCha key in bytes. pub const KEY_SIZE: usize = ::nettle_sys::CHACHA_POLY1305_KEY_SIZE as usize; /// Size of the ChaChaPoly1305 nonce in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::CHACHA_POLY1305_NONCE_SIZE as usize; /// Creates a new ChaChaPoly1305 instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != Self::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != Self::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_chacha_poly1305_set_key(&mut ctx as *mut _, key.as_ptr()); nettle_chacha_poly1305_set_nonce( &mut ctx as *mut _, nonce.as_ptr(), ); } Ok(ChaChaPoly1305 { context: ctx }) } } impl Aead for ChaChaPoly1305 { fn digest_size(&self) -> usize { ::nettle_sys::CHACHA_POLY1305_DIGEST_SIZE as usize } fn update(&mut self, ad: &[u8]) { unsafe { nettle_chacha_poly1305_update( &mut self.context as *mut _, ad.len(), ad.as_ptr(), ); } } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_chacha_poly1305_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_chacha_poly1305_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_chacha_poly1305_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } } #[cfg(test)] mod tests { use super::*; #[test] fn rfc_7539() { let key = b"\x1c\x92\x40\xa5\xeb\x55\xd3\x8a\xf3\x33\x88\x86\x04\xf6\xb5\xf0\x47\x39\x17\xc1\x40\x2b\x80\x09\x9d\xca\x5c\xbc\x20\x70\x75\xc0"; let cipher = b"\x64\xa0\x86\x15\x75\x86\x1a\xf4\x60\xf0\x62\xc7\x9b\xe6\x43\xbd\x5e\x80\x5c\xfd\x34\x5c\xf3\x89\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2\x4c\x6c\xfc\x18\x75\x5d\x43\xee\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0\xbd\xb7\xb7\x3c\x32\x1b\x01\x00\xd4\xf0\x3b\x7f\x35\x58\x94\xcf\x33\x2f\x83\x0e\x71\x0b\x97\xce\x98\xc8\xa8\x4a\xbd\x0b\x94\x81\x14\xad\x17\x6e\x00\x8d\x33\xbd\x60\xf9\x82\xb1\xff\x37\xc8\x55\x97\x97\xa0\x6e\xf4\xf0\xef\x61\xc1\x86\x32\x4e\x2b\x35\x06\x38\x36\x06\x90\x7b\x6a\x7c\x02\xb0\xf9\xf6\x15\x7b\x53\xc8\x67\xe4\xb9\x16\x6c\x76\x7b\x80\x4d\x46\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9\x90\x40\xc5\xa4\x04\x33\x22\x5e\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e\xaf\x45\x34\xd7\xf8\x3f\xa1\x15\x5b\x00\x47\x71\x8c\xbc\x54\x6a\x0d\x07\x2b\x04\xb3\x56\x4e\xea\x1b\x42\x22\x73\xf5\x48\x27\x1a\x0b\xb2\x31\x60\x53\xfa\x76\x99\x19\x55\xeb\xd6\x31\x59\x43\x4e\xce\xbb\x4e\x46\x6d\xae\x5a\x10\x73\xa6\x72\x76\x27\x09\x7a\x10\x49\xe6\x17\xd9\x1d\x36\x10\x94\xfa\x68\xf0\xff\x77\x98\x71\x30\x30\x5b\xea\xba\x2e\xda\x04\xdf\x99\x7b\x71\x4d\x6c\x6f\x2c\x29\xa6\xad\x5c\xb4\x02\x2b\x02\x70\x9b"; let nonce = b"\x00\x00\x00\x00\x01\x02\x03\x04\x05\x06\x07\x08"; let ad = b"\xf3\x33\x88\x86\x00\x00\x00\x00\x00\x00\x4e\x91"; let tag = b"\xee\xad\x9d\x67\x89\x0c\xbb\x22\x39\x23\x36\xfe\xa1\x85\x1f\x38"; let plain = b"\x49\x6e\x74\x65\x72\x6e\x65\x74\x2d\x44\x72\x61\x66\x74\x73\x20\x61\x72\x65\x20\x64\x72\x61\x66\x74\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x73\x20\x76\x61\x6c\x69\x64\x20\x66\x6f\x72\x20\x61\x20\x6d\x61\x78\x69\x6d\x75\x6d\x20\x6f\x66\x20\x73\x69\x78\x20\x6d\x6f\x6e\x74\x68\x73\x20\x61\x6e\x64\x20\x6d\x61\x79\x20\x62\x65\x20\x75\x70\x64\x61\x74\x65\x64\x2c\x20\x72\x65\x70\x6c\x61\x63\x65\x64\x2c\x20\x6f\x72\x20\x6f\x62\x73\x6f\x6c\x65\x74\x65\x64\x20\x62\x79\x20\x6f\x74\x68\x65\x72\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x73\x20\x61\x74\x20\x61\x6e\x79\x20\x74\x69\x6d\x65\x2e\x20\x49\x74\x20\x69\x73\x20\x69\x6e\x61\x70\x70\x72\x6f\x70\x72\x69\x61\x74\x65\x20\x74\x6f\x20\x75\x73\x65\x20\x49\x6e\x74\x65\x72\x6e\x65\x74\x2d\x44\x72\x61\x66\x74\x73\x20\x61\x73\x20\x72\x65\x66\x65\x72\x65\x6e\x63\x65\x20\x6d\x61\x74\x65\x72\x69\x61\x6c\x20\x6f\x72\x20\x74\x6f\x20\x63\x69\x74\x65\x20\x74\x68\x65\x6d\x20\x6f\x74\x68\x65\x72\x20\x74\x68\x61\x6e\x20\x61\x73\x20\x2f\xe2\x80\x9c\x77\x6f\x72\x6b\x20\x69\x6e\x20\x70\x72\x6f\x67\x72\x65\x73\x73\x2e\x2f\xe2\x80\x9d"; let mut c = ChaChaPoly1305::with_key_and_nonce(&key[..], &nonce[..]).unwrap(); let mut got_plain = vec![0u8; plain.len()]; let mut got_tag = vec![0u8; tag.len()]; c.update(&ad[..]); c.decrypt(&mut got_plain[..], &cipher[..]); c.digest(&mut got_tag[..]); assert_eq!(&plain[..], &got_plain[..]); assert_eq!(&tag[..], &got_tag[..]); } } nettle-7.1.0/src/aead/eax.rs000064400000000000000000000775070072674642500140000ustar 00000000000000use nettle_sys::{ eax_ctx, eax_key, nettle_eax_decrypt, nettle_eax_digest, nettle_eax_encrypt, nettle_eax_set_key, nettle_eax_set_nonce, nettle_eax_update, }; use std::cmp::min; use std::mem::zeroed; use crate::{aead::Aead, cipher::Cipher, Error, Result}; /// M.Bellare et.al EAX mode of operation. pub struct Eax { cipher: C, key: eax_key, context: eax_ctx, } impl Eax { /// Size of a EAX digest in bytes. pub const DIGEST_SIZE: usize = ::nettle_sys::EAX_DIGEST_SIZE as usize; /// Creates a new EAX instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if C::BLOCK_SIZE != 16 { return Err(Error::InvalidArgument { argument_name: "C::BLOCK_SIZE", }); } let mut ctx = unsafe { zeroed() }; let mut key_ctx = unsafe { zeroed() }; let mut cipher = C::with_encrypt_key(key)?; let enc_func = C::raw_encrypt_function().ptr(); let cipher_ctx = cipher.context(); unsafe { nettle_eax_set_key( &mut key_ctx as *mut _, cipher_ctx as *const _, enc_func, ); nettle_eax_set_nonce( &mut ctx as *mut _, &key_ctx as *const _, cipher_ctx as *const _, enc_func, nonce.len(), nonce.as_ptr(), ); } Ok(Eax { cipher: cipher, key: key_ctx, context: ctx }) } } impl Aead for Eax { fn digest_size(&self) -> usize { ::nettle_sys::EAX_DIGEST_SIZE as usize } fn update(&mut self, ad: &[u8]) { unsafe { nettle_eax_update( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), ad.len(), ad.as_ptr(), ); } } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_eax_encrypt( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_eax_decrypt( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_eax_digest( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), digest.len(), digest.as_mut_ptr(), ); } } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_eax_twofish() { use crate::cipher::Twofish; let mut enc = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_twofish() { use crate::cipher::Twofish; let mut enc = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_twofish() { use crate::cipher::Twofish; let mut enc = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_aes128() { use crate::cipher::Aes128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_aes128() { use crate::cipher::Aes128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_aes128() { use crate::cipher::Aes128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_aes192() { use crate::cipher::Aes192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_aes192() { use crate::cipher::Aes192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_aes192() { use crate::cipher::Aes192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_aes256() { use crate::cipher::Aes256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_aes256() { use crate::cipher::Aes256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_aes256() { use crate::cipher::Aes256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_camellia128() { use crate::cipher::Camellia128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_camellia128() { use crate::cipher::Camellia128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_camellia128() { use crate::cipher::Camellia128; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_camellia192() { use crate::cipher::Camellia192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_camellia192() { use crate::cipher::Camellia192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_camellia192() { use crate::cipher::Camellia192; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_camellia256() { use crate::cipher::Camellia256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_camellia256() { use crate::cipher::Camellia256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_camellia256() { use crate::cipher::Camellia256; let mut enc = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_eax_serpent() { use crate::cipher::Serpent; let mut enc = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_eax_serpent() { use crate::cipher::Serpent; let mut enc = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_eax_serpent() { use crate::cipher::Serpent; let mut enc = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Eax::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Eax::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Eax::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } } nettle-7.1.0/src/aead/gcm.rs000064400000000000000000000770700072674642500137640ustar 00000000000000use nettle_sys::{ gcm_ctx, gcm_key, nettle_gcm_decrypt, nettle_gcm_digest, nettle_gcm_encrypt, nettle_gcm_set_iv, nettle_gcm_set_key, nettle_gcm_update, }; use std::cmp::min; use std::mem::zeroed; use crate::{aead::Aead, cipher::{BlockSizeIs16, Cipher}, Result}; /// Galois/Counter mode (NIST SP800-38D). pub struct Gcm { cipher: C, key: gcm_key, context: gcm_ctx, } impl Gcm { /// Size of a GCM digest in bytes. pub const DIGEST_SIZE: usize = ::nettle_sys::GCM_DIGEST_SIZE as usize; /// Creates a new GCM instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { let mut ctx = unsafe { zeroed() }; let mut key_ctx = unsafe { zeroed() }; let mut cipher = C::with_encrypt_key(key)?; let enc_func = C::raw_encrypt_function().ptr(); let cipher_ctx = cipher.context(); unsafe { nettle_gcm_set_key( &mut key_ctx as *mut _, cipher_ctx as *const _, enc_func, ); nettle_gcm_set_iv( &mut ctx as *mut _, &key_ctx as *const _, nonce.len(), nonce.as_ptr(), ); } Ok(Gcm { cipher: cipher, key: key_ctx, context: ctx }) } } impl Aead for Gcm { fn digest_size(&self) -> usize { ::nettle_sys::GCM_DIGEST_SIZE as usize } fn update(&mut self, ad: &[u8]) { unsafe { nettle_gcm_update( &mut self.context as *mut _, &self.key as *const _, ad.len(), ad.as_ptr(), ); } } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_gcm_encrypt( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_gcm_decrypt( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_gcm_digest( &mut self.context as *mut _, &self.key as *const _, self.cipher.context() as *const _, C::raw_encrypt_function().ptr(), digest.len(), digest.as_mut_ptr(), ); } } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_gcm_twofish() { use crate::cipher::Twofish; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_twofish() { use crate::cipher::Twofish; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_twofish() { use crate::cipher::Twofish; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Twofish::KEY_SIZE], &vec![2; Twofish::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Twofish::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Twofish::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_aes128() { use crate::cipher::Aes128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_aes128() { use crate::cipher::Aes128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_aes128() { use crate::cipher::Aes128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes128::KEY_SIZE], &vec![2; Aes128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_aes192() { use crate::cipher::Aes192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_aes192() { use crate::cipher::Aes192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_aes192() { use crate::cipher::Aes192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes192::KEY_SIZE], &vec![2; Aes192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_aes256() { use crate::cipher::Aes256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_aes256() { use crate::cipher::Aes256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_aes256() { use crate::cipher::Aes256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Aes256::KEY_SIZE], &vec![2; Aes256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Aes256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Aes256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_camellia128() { use crate::cipher::Camellia128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_camellia128() { use crate::cipher::Camellia128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_camellia128() { use crate::cipher::Camellia128; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia128::KEY_SIZE], &vec![2; Camellia128::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia128::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_camellia192() { use crate::cipher::Camellia192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_camellia192() { use crate::cipher::Camellia192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_camellia192() { use crate::cipher::Camellia192; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia192::KEY_SIZE], &vec![2; Camellia192::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia192::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_camellia256() { use crate::cipher::Camellia256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_camellia256() { use crate::cipher::Camellia256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_camellia256() { use crate::cipher::Camellia256; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Camellia256::KEY_SIZE], &vec![2; Camellia256::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Camellia256::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } #[test] fn round_trip_gcm_serpent() { use crate::cipher::Serpent; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert_eq!(digest, output_digest); } #[test] fn modify_ad_gcm_serpent() { use crate::cipher::Serpent; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); input_ad[1] = 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert_eq!(input_plaintext, output_plaintext); assert!(digest != output_digest); } #[test] fn modify_ciphertext_gcm_serpent() { use crate::cipher::Serpent; let mut enc = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let mut dec = Gcm::::with_key_and_nonce( &vec![1; Serpent::KEY_SIZE], &vec![2; Serpent::BLOCK_SIZE], ) .unwrap(); let input_plaintext = vec![1u8; Serpent::BLOCK_SIZE * 10]; let input_ad = vec![1u8; Serpent::BLOCK_SIZE * 5]; let mut ciphertext = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut digest = vec![2u8; Gcm::::DIGEST_SIZE]; let mut output_plaintext = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut output_digest = vec![3u8; Gcm::::DIGEST_SIZE]; enc.update(&input_ad); enc.encrypt(&mut ciphertext, &input_plaintext); enc.digest(&mut digest); ciphertext[1] ^= 42; dec.update(&input_ad); dec.decrypt(&mut output_plaintext, &ciphertext); dec.digest(&mut output_digest); assert!(input_plaintext != output_plaintext); assert!(digest != output_digest); } } nettle-7.1.0/src/aead/mod.rs000064400000000000000000000004050072674642500137610ustar 00000000000000//! Authenticated encryption mode with associated data. mod aead; pub use self::aead::Aead; mod eax; pub use self::eax::Eax; mod gcm; pub use self::gcm::Gcm; mod ccm; pub use self::ccm::Ccm; mod chacha_poly1305; pub use self::chacha_poly1305::ChaChaPoly1305; nettle-7.1.0/src/cipher/aes128.rs000064400000000000000000000106660072674642500145770ustar 00000000000000use nettle_sys::{ aes128_ctx, nettle_aes128_decrypt, nettle_aes128_encrypt, nettle_aes128_invert_key, nettle_aes128_set_decrypt_key, nettle_aes128_set_encrypt_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 128 bit variant of the Advanced Encryption Standard (AES, formerly RIJNDAEL) defined in FIPS 197. pub struct Aes128 { context: aes128_ctx, } impl Aes128 { /// Creates a new `Aes128` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes128_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Aes128 { context: ctx } } } impl Cipher for Aes128 { const BLOCK_SIZE: usize = ::nettle_sys::AES_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::AES128_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Aes128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes128_set_encrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes128 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Aes128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes128_set_decrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes128 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes128_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes128_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut aes128_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes128_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes128_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Aes128::with_encrypt_key(key).unwrap(); let _ = Aes128::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes128::with_encrypt_key(&key).unwrap(); let mut dec = Aes128::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes128::with_encrypt_key(&key).unwrap(); let mut dec = Aes128::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/aes192.rs000064400000000000000000000111200072674642500145620ustar 00000000000000use nettle_sys::{ aes192_ctx, nettle_aes192_decrypt, nettle_aes192_encrypt, nettle_aes192_invert_key, nettle_aes192_set_decrypt_key, nettle_aes192_set_encrypt_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 192 bit variant of the Advanced Encryption Standard (AES, formerly RIJNDAEL) defined in FIPS 197. pub struct Aes192 { context: aes192_ctx, } impl Aes192 { /// Creates a new `Aes192` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes192_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Aes192 { context: ctx } } } impl Cipher for Aes192 { const BLOCK_SIZE: usize = ::nettle_sys::AES_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::AES192_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Aes192::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes192_set_encrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes192 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Aes192::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes192_set_decrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes192 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes192_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes192_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut aes192_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes192_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes192_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Aes192::with_encrypt_key(key).unwrap(); let _ = Aes192::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes192::with_encrypt_key(&key).unwrap(); let mut dec = Aes192::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes192::with_encrypt_key(&key).unwrap(); let mut dec = Aes192::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/aes256.rs000064400000000000000000000113200072674642500145650ustar 00000000000000use nettle_sys::{ aes256_ctx, nettle_aes256_decrypt, nettle_aes256_encrypt, nettle_aes256_invert_key, nettle_aes256_set_decrypt_key, nettle_aes256_set_encrypt_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 256 bit variant of the Advanced Encryption Standard (AES, formerly RIJNDAEL) defined in FIPS 197. pub struct Aes256 { context: aes256_ctx, } impl Aes256 { /// Creates a new `Aes256` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes256_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Aes256 { context: ctx } } } impl Cipher for Aes256 { const BLOCK_SIZE: usize = ::nettle_sys::AES_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::AES256_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Aes256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes256_set_encrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes256 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Aes256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_aes256_set_decrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Aes256 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes256_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_aes256_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut aes256_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes256_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_aes256_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Aes256::with_encrypt_key(key).unwrap(); let _ = Aes256::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes256::with_encrypt_key(&key).unwrap(); let mut dec = Aes256::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Aes256::with_encrypt_key(&key).unwrap(); let mut dec = Aes256::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/blowfish.rs000064400000000000000000000062500072674642500154030ustar 00000000000000use nettle_sys::{ blowfish_ctx, nettle_blowfish_decrypt, nettle_blowfish_encrypt, nettle_blowfish_set_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// The Blowfish block cipher. /// /// Blowfish is defined in B. Schneiers 1993 paper "Description of a New /// Variable-Length Key, 64-Bit Block Cipher (Blowfish)" published in "Fast Software Encryption, /// Cambridge Security Workshop Proceedings" (December 1993), Springer-Verlag, 1994, pp. 191-204. pub struct Blowfish { context: blowfish_ctx, } impl Blowfish { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_blowfish_set_key( &mut ctx as *mut _, key.len(), key.as_ptr(), ); } Blowfish { context: ctx } } } impl Cipher for Blowfish { const BLOCK_SIZE: usize = ::nettle_sys::BLOWFISH_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::BLOWFISH_MAX_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(Blowfish::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(Blowfish::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_blowfish_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_blowfish_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut blowfish_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_blowfish_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_blowfish_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Blowfish::with_encrypt_key(key).unwrap(); let _ = Blowfish::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Blowfish::with_encrypt_key(&key).unwrap(); let mut dec = Blowfish::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/camellia128.rs000064400000000000000000000110710072674642500155650ustar 00000000000000use nettle_sys::{ camellia128_ctx, nettle_camellia128_crypt, nettle_camellia128_invert_key, nettle_camellia128_set_encrypt_key, nettle_camellia_set_decrypt_key, // WTF? }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 128 bit variant of the Camellia block cipher developed by Mitsubishi & NTT, defined in RFC 3713. pub struct Camellia128 { context: camellia128_ctx, } impl Camellia128 { /// Creates a new `Camellia128` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia128_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Camellia128 { context: ctx } } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_camellia128_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } impl Cipher for Camellia128 { const BLOCK_SIZE: usize = ::nettle_sys::CAMELLIA_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::CAMELLIA128_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Camellia128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia128_set_encrypt_key( &mut ctx as *mut _, key.as_ptr(), ); } Ok(Camellia128 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Camellia128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia_set_decrypt_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Camellia128 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut camellia128_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia128_crypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia128_crypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Camellia128::with_encrypt_key(key).unwrap(); let _ = Camellia128::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia128::with_encrypt_key(&key).unwrap(); let mut dec = Camellia128::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia128::with_encrypt_key(&key).unwrap(); let mut dec = Camellia128::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/camellia192.rs000064400000000000000000000113660072674642500155750ustar 00000000000000use nettle_sys::{ camellia256_ctx, nettle_camellia192_set_decrypt_key, nettle_camellia192_set_encrypt_key, nettle_camellia256_crypt, nettle_camellia256_invert_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 192 bit variant of the Camellia block cipher developed by Mitsubishi & NTT, defined in RFC 3713. pub struct Camellia192 { context: camellia256_ctx, } impl Camellia192 { /// Creates a new `Camellia192` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia256_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Camellia192 { context: ctx } } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_camellia256_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } impl Cipher for Camellia192 { const BLOCK_SIZE: usize = ::nettle_sys::CAMELLIA_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::CAMELLIA192_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Camellia192::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia192_set_encrypt_key( &mut ctx as *mut _, key.as_ptr(), ); } Ok(Camellia192 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Camellia192::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia192_set_decrypt_key( &mut ctx as *mut _, key.as_ptr(), ); } Ok(Camellia192 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut camellia256_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia256_crypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia256_crypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Camellia192::with_encrypt_key(key).unwrap(); let _ = Camellia192::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia192::with_encrypt_key(&key).unwrap(); let mut dec = Camellia192::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia192::with_encrypt_key(&key).unwrap(); let mut dec = Camellia192::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/camellia256.rs000064400000000000000000000115620072674642500155740ustar 00000000000000use nettle_sys::{ camellia256_ctx, nettle_camellia256_crypt, nettle_camellia256_invert_key, nettle_camellia256_set_decrypt_key, nettle_camellia256_set_encrypt_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// 256 bit variant of the Camellia block cipher developed by Mitsubishi & NTT, defined in RFC 3713. pub struct Camellia256 { context: camellia256_ctx, } impl Camellia256 { /// Creates a new `Camellia256` instance for decryption that uses the same key as `encrypt`. /// /// The `encrypt` instance must be configured for encryption. This /// is faster than calling `with_decrypt_key`. pub fn with_inverted_key(encrypt: &Self) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia256_invert_key( &mut ctx as *mut _, &encrypt.context as *const _, ); } Camellia256 { context: ctx } } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_camellia256_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } impl Cipher for Camellia256 { const BLOCK_SIZE: usize = ::nettle_sys::CAMELLIA_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::CAMELLIA256_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { if key.len() != Camellia256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia256_set_encrypt_key( &mut ctx as *mut _, key.as_ptr(), ); } Ok(Camellia256 { context: ctx }) } fn with_decrypt_key(key: &[u8]) -> Result { if key.len() != Camellia256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_camellia256_set_decrypt_key( &mut ctx as *mut _, key.as_ptr(), ); } Ok(Camellia256 { context: ctx }) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut camellia256_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia256_crypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_camellia256_crypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x09\x10\x11\x12\x13\x14\x15\x16\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = Camellia256::with_encrypt_key(key).unwrap(); let _ = Camellia256::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia256::with_encrypt_key(&key).unwrap(); let mut dec = Camellia256::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_invert() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Camellia256::with_encrypt_key(&key).unwrap(); let mut dec = Camellia256::with_inverted_key(&enc); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/cast128.rs000064400000000000000000000055160072674642500147570ustar 00000000000000use nettle_sys::{ cast128_ctx, nettle_cast128_decrypt, nettle_cast128_encrypt, nettle_cast5_set_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// The CAST-128 block cipher defined in RFC 2144. pub struct Cast128 { context: cast128_ctx, } impl Cast128 { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_cast5_set_key(&mut ctx as *mut _, key.len(), key.as_ptr()); } Cast128 { context: ctx } } } impl Cipher for Cast128 { const BLOCK_SIZE: usize = ::nettle_sys::CAST128_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::CAST5_MAX_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(Cast128::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(Cast128::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_cast128_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_cast128_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut cast128_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_cast128_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_cast128_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Cast128::with_encrypt_key(key).unwrap(); let _ = Cast128::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Cast128::with_encrypt_key(&key).unwrap(); let mut dec = Cast128::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/chacha.rs000064400000000000000000000046160072674642500150010ustar 00000000000000use nettle_sys::{ chacha_ctx, nettle_chacha_crypt, nettle_chacha_set_key, nettle_chacha_set_nonce, }; use std::cmp::min; use std::mem::zeroed; use crate::{Error, Result}; /// D.J. Bernstein's ChaCha block cipher. pub struct ChaCha { context: chacha_ctx, } impl ChaCha { /// ChaCha block size in bytes. pub const BLOCK_SIZE: usize = ::nettle_sys::CHACHA_BLOCK_SIZE as usize; /// ChaCha key size in bytes. pub const KEY_SIZE: usize = ::nettle_sys::CHACHA_KEY_SIZE as usize; /// ChaCha nonce size in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::CHACHA_NONCE_SIZE as usize; /// Create a new instance with `key`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != ChaCha::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != ChaCha::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_chacha_set_key(&mut ctx as *mut _, key.as_ptr()); } unsafe { nettle_chacha_set_nonce(&mut ctx as *mut _, nonce.as_ptr()); } Ok(ChaCha { context: ctx }) } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_chacha_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key_and_nonce() { let key = vec![0; 32]; let nonce = vec![1; 8]; let _ = ChaCha::with_key_and_nonce(&key, &nonce).unwrap(); } #[test] fn round_trip() { let key = vec![0; 32]; let nonce = vec![1; 8]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = ChaCha::with_key_and_nonce(&key, &nonce).unwrap(); let mut dec = ChaCha::with_key_and_nonce(&key, &nonce).unwrap(); enc.crypt(&mut cipher, &input); dec.crypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/cipher.rs000064400000000000000000000052560072674642500150450ustar 00000000000000use std::os::raw::c_void; use crate::Result; use super::{ Aes128, Aes192, Aes256, Camellia128, Camellia192, Camellia256, Serpent, Twofish, }; /// Used internally for cipher modes. pub struct RawCipherFunctionPointer { inner: Option, } impl RawCipherFunctionPointer { #[doc(hidden)] pub fn new( f: unsafe extern "C" fn(T, usize, *mut u8, *const u8), ) -> Self { let ret: extern "C" fn(*const c_void, usize, *mut u8, *const u8) = unsafe { ::std::mem::transmute(f as *const c_void) }; RawCipherFunctionPointer { inner: Some(ret) } } #[doc(hidden)] pub fn ptr( &self, ) -> Option { self.inner } } /// Symmetric block or stream cipher. /// /// Symmetric cipher encrypt and decrypt data using the same key. pub trait Cipher: Sized { /// Block size in bytes. const BLOCK_SIZE: usize; /// Maximal key size in bytes. const KEY_SIZE: usize; /// Creates a new cipher instance for decryption. /// /// The `key` parameter must have size `KEY_SIZE`. fn with_decrypt_key(key: &[u8]) -> Result; /// Creates a new cipher instance for encryption. /// /// The `key` parameter must have size `KEY_SIZE`. fn with_encrypt_key(key: &[u8]) -> Result; /// Decrypt `src` into `dst`. /// /// Both must have the same length. That length must be a multiple /// of `BLOCK_SIZE`. Blocks are processed in ECB mode. fn decrypt(&mut self, dst: &mut [u8], src: &[u8]); /// Encrypt `src` into `dst`. /// /// Both must have the same length. That length must be a multiple /// of `BLOCK_SIZE`. Blocks are processed in ECB mode. fn encrypt(&mut self, dst: &mut [u8], src: &[u8]); /// Returns a pointer to the C context struct of the cipher instance. /// /// Used internally by block modi. fn context(&mut self) -> *mut c_void; /// Pointer to the *_decrypt C function. /// /// Used internally for block modi. fn raw_decrypt_function() -> RawCipherFunctionPointer; /// Pointer to the *_encrypt C function. /// /// Used internally for block modi. fn raw_encrypt_function() -> RawCipherFunctionPointer; } /// Marker trait for ciphers with 16 byte block size. pub trait BlockSizeIs16: Cipher {} impl BlockSizeIs16 for Aes128 {} impl BlockSizeIs16 for Aes192 {} impl BlockSizeIs16 for Aes256 {} impl BlockSizeIs16 for Twofish {} impl BlockSizeIs16 for Camellia128 {} impl BlockSizeIs16 for Camellia192 {} impl BlockSizeIs16 for Camellia256 {} impl BlockSizeIs16 for Serpent {} nettle-7.1.0/src/cipher/des3.rs000064400000000000000000000061230072674642500144230ustar 00000000000000use nettle_sys::{ des3_ctx, nettle_des3_decrypt, nettle_des3_encrypt, nettle_des3_set_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// Triple DES in EDE configuration defined in RFC 1851. pub struct Des3 { context: des3_ctx, } impl Des3 { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Result { if key.len() != Des3::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_des3_set_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Des3 { context: ctx }) } } impl Cipher for Des3 { const BLOCK_SIZE: usize = ::nettle_sys::DES3_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::DES3_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Des3::with_key(key) } fn with_decrypt_key(key: &[u8]) -> Result { Des3::with_key(key) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_des3_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_des3_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut des3_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_des3_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_des3_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x01\x02\x03\x04\x05\x06\x07\x08\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Des3::with_encrypt_key(key).unwrap(); let _ = Des3::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Des3::with_encrypt_key(&key).unwrap(); let mut dec = Des3::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/insecure_do_not_use/arcfour.rs000064400000000000000000000060100072674642500212540ustar 00000000000000use nettle_sys::{arcfour_ctx, nettle_arcfour_crypt, nettle_arcfour_set_key}; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// Ron Rivest's RC4 stream cipher. /// /// # Note /// RC4 is no longer considered a secure cipher. Only use it for legacy applications. pub struct ArcFour { context: arcfour_ctx, } impl ArcFour { /// Create a new instance with `key`. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_arcfour_set_key(&mut ctx as *mut _, key.len(), key.as_ptr()); } ArcFour { context: ctx } } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_arcfour_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } impl Cipher for ArcFour { const BLOCK_SIZE: usize = 1; const KEY_SIZE: usize = ::nettle_sys::ARCFOUR_MAX_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(ArcFour::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(ArcFour::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { self.crypt(dst, src) } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut arcfour_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_arcfour_crypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_arcfour_crypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16"[..]); let _ = ArcFour::with_encrypt_key(key).unwrap(); let _ = ArcFour::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = ArcFour::with_encrypt_key(&key).unwrap(); let mut dec = ArcFour::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/insecure_do_not_use/arctwo.rs000064400000000000000000000100230072674642500211110ustar 00000000000000use nettle_sys::{ arctwo_ctx, nettle_arctwo_decrypt, nettle_arctwo_encrypt, nettle_arctwo_set_key, nettle_arctwo_set_key_ekb, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// Ron Rivest's RC2 block cipher defined RFC 2268. /// /// # Note /// RC2 is no longer considered a secure cipher. Only use it for legacy applications. pub struct ArcTwo { context: arctwo_ctx, } impl ArcTwo { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_arctwo_set_key(&mut ctx as *mut _, key.len(), key.as_ptr()); } ArcTwo { context: ctx } } /// Creates a new instance with `key` that can be used for both encryption and decryption. /// /// The `ekb` parameter can be used to limit the effective key /// size to `ekb` bits. A value of `0` is handled as `1024`. pub fn with_key_ekb(key: &[u8], ekb: u32) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_arctwo_set_key_ekb( &mut ctx as *mut _, key.len(), key.as_ptr(), ekb, ); } ArcTwo { context: ctx } } } impl Cipher for ArcTwo { const BLOCK_SIZE: usize = 8; const KEY_SIZE: usize = ::nettle_sys::ARCTWO_MAX_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(ArcTwo::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(ArcTwo::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_arctwo_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_arctwo_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut arctwo_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_arctwo_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_arctwo_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = ArcTwo::with_encrypt_key(key).unwrap(); let _ = ArcTwo::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = ArcTwo::with_encrypt_key(&key).unwrap(); let mut dec = ArcTwo::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn round_trip_ekb() { let key = vec![0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = ArcTwo::with_key_ekb(&key, 42); let mut dec = ArcTwo::with_key_ekb(&key, 42); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/insecure_do_not_use/des.rs000064400000000000000000000073700072674642500204000ustar 00000000000000use nettle_sys::{ des_ctx, nettle_des_check_parity, nettle_des_decrypt, nettle_des_encrypt, nettle_des_fix_parity, nettle_des_set_key, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Error, Result}; /// The Data Encryption Standard (DES) defined in FIPS 46-3. /// /// # Note /// DES is no longer considered a secure cipher. Only use it for legacy applications. pub struct Des { context: des_ctx, } impl Des { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Result { if key.len() != Des::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_des_set_key(&mut ctx as *mut _, key.as_ptr()); } Ok(Des { context: ctx }) } /// Checks the parity bits of the given DES key. /// /// Returns `true` if parity is correct, `false` otherwise. pub fn check_parity(key: &[u8]) -> bool { unsafe { nettle_des_check_parity(key.len(), key.as_ptr()) == 1 } } /// Sets the parity bits in the given DES key. pub fn fix_parity(key: &mut [u8]) { unsafe { nettle_des_fix_parity(key.len(), key.as_mut_ptr(), key.as_ptr()); } } } impl Cipher for Des { const BLOCK_SIZE: usize = ::nettle_sys::DES_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::DES_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Des::with_key(key) } fn with_decrypt_key(key: &[u8]) -> Result { Des::with_key(key) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_des_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_des_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut des_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_des_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_des_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Des::with_encrypt_key(key).unwrap(); let _ = Des::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Des::with_encrypt_key(&key).unwrap(); let mut dec = Des::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn key_parity() { let mut key = b"\x01\x02\x03\x04\x05\x06\x07\x08"[..] .iter() .cloned() .collect::>(); assert!(!Des::check_parity(&key)); Des::fix_parity(&mut key); assert!(Des::check_parity(&key)); } } nettle-7.1.0/src/cipher/insecure_do_not_use/mod.rs000064400000000000000000000003650072674642500204010ustar 00000000000000//! Insecure ciphers. //! //! The algorithms in this module are known to be broken. Only use them for legacy applications. mod arcfour; pub use self::arcfour::ArcFour; mod arctwo; pub use self::arctwo::ArcTwo; mod des; pub use self::des::Des; nettle-7.1.0/src/cipher/mod.rs000064400000000000000000000015250072674642500143450ustar 00000000000000//! Block and stream ciphers. pub mod insecure_do_not_use; mod cipher; pub use self::cipher::{BlockSizeIs16, Cipher, RawCipherFunctionPointer}; mod aes128; pub use self::aes128::Aes128; mod aes192; pub use self::aes192::Aes192; mod aes256; pub use self::aes256::Aes256; mod blowfish; pub use self::blowfish::Blowfish; mod camellia128; pub use self::camellia128::Camellia128; mod camellia192; pub use self::camellia192::Camellia192; mod camellia256; pub use self::camellia256::Camellia256; mod cast128; pub use self::cast128::Cast128; mod chacha; pub use self::chacha::ChaCha; mod des3; pub use self::des3::Des3; mod salsa20; pub use self::salsa20::{Salsa20_128, Salsa20_256}; mod salsa20r12; pub use self::salsa20r12::{Salsa20R12_128, Salsa20R12_256}; mod serpent; pub use self::serpent::Serpent; mod twofish; pub use self::twofish::Twofish; nettle-7.1.0/src/cipher/salsa20.rs000064400000000000000000000115010072674642500150260ustar 00000000000000use nettle_sys::{ nettle_salsa20_128_set_key, nettle_salsa20_256_set_key, nettle_salsa20_crypt, nettle_salsa20_set_nonce, salsa20_ctx, }; use std::cmp::min; use std::mem::zeroed; use crate::{Error, Result}; #[allow(non_camel_case_types)] /// 128 bit variant of D.J. Bernstein's Salsa20 block cipher. pub struct Salsa20_128 { context: salsa20_ctx, } impl Salsa20_128 { /// Salsa20 block size in bytes. pub const BLOCK_SIZE: usize = ::nettle_sys::SALSA20_BLOCK_SIZE as usize; /// Salsa20 key size in bytes. pub const KEY_SIZE: usize = ::nettle_sys::SALSA20_128_KEY_SIZE as usize; /// Salsa20 nonce size in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::SALSA20_NONCE_SIZE as usize; /// Create a new instance with `key`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != Salsa20_128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != Salsa20_128::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_salsa20_128_set_key(&mut ctx as *mut _, key.as_ptr()); nettle_salsa20_set_nonce(&mut ctx as *mut _, nonce.as_ptr()); } Ok(Salsa20_128 { context: ctx }) } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_salsa20_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } #[allow(non_camel_case_types)] /// 256 bit variant of D.J. Bernstein's Salsa20 block cipher. pub struct Salsa20_256 { context: salsa20_ctx, } impl Salsa20_256 { /// Salsa20 block size in bytes. pub const BLOCK_SIZE: usize = ::nettle_sys::SALSA20_BLOCK_SIZE as usize; /// Salsa20 key size in bytes. pub const KEY_SIZE: usize = ::nettle_sys::SALSA20_256_KEY_SIZE as usize; /// Salsa20 nonce size in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::SALSA20_NONCE_SIZE as usize; /// Create a new instance with `key`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != Salsa20_256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != Salsa20_256::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_salsa20_256_set_key(&mut ctx as *mut _, key.as_ptr()); } unsafe { nettle_salsa20_set_nonce(&mut ctx as *mut _, nonce.as_ptr()); } Ok(Salsa20_256 { context: ctx }) } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_salsa20_crypt( &mut self.context as *mut _, min(dst.len(), src.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } #[cfg(test)] mod tests { use super::*; #[test] fn salsa128_set_key_and_nonce() { let key = vec![0; 16]; let nonce = vec![1; 8]; let _ = Salsa20_128::with_key_and_nonce(&key, &nonce).unwrap(); } #[test] fn salsa128_round_trip() { let key = vec![0; 16]; let nonce = vec![1; 8]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Salsa20_128::with_key_and_nonce(&key, &nonce).unwrap(); let mut dec = Salsa20_128::with_key_and_nonce(&key, &nonce).unwrap(); enc.crypt(&mut cipher, &input); dec.crypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn salsa256_set_key_and_nonce() { let key = vec![0; 32]; let nonce = vec![1; 8]; let _ = Salsa20_256::with_key_and_nonce(&key, &nonce).unwrap(); } #[test] fn salsa256_round_trip() { let key = vec![0; 32]; let nonce = vec![1; 8]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Salsa20_256::with_key_and_nonce(&key, &nonce).unwrap(); let mut dec = Salsa20_256::with_key_and_nonce(&key, &nonce).unwrap(); enc.crypt(&mut cipher, &input); dec.crypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/salsa20r12.rs000064400000000000000000000120560072674642500153610ustar 00000000000000use nettle_sys::{ nettle_salsa20_128_set_key, nettle_salsa20_256_set_key, nettle_salsa20_set_nonce, nettle_salsa20r12_crypt, salsa20_ctx, }; use std::cmp::min; use std::mem::zeroed; use crate::{Error, Result}; #[allow(non_camel_case_types)] /// 128 bit variant of D.J. Bernstein's Salsa20/12 block cipher. /// # Note /// Salsa20/12 it a reduced round version of Salsa20. pub struct Salsa20R12_128 { context: salsa20_ctx, } impl Salsa20R12_128 { /// Salsa20/12 block size in bytes. pub const BLOCK_SIZE: usize = ::nettle_sys::SALSA20_BLOCK_SIZE as usize; /// Salsa20/12 key size in bytes. pub const KEY_SIZE: usize = ::nettle_sys::SALSA20_128_KEY_SIZE as usize; /// Salsa20/12 nonce size in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::SALSA20_NONCE_SIZE as usize; /// Create a new instance with `key`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != Salsa20R12_128::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != Salsa20R12_128::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_salsa20_128_set_key(&mut ctx as *mut _, key.as_ptr()); nettle_salsa20_set_nonce(&mut ctx as *mut _, nonce.as_ptr()); } Ok(Salsa20R12_128 { context: ctx }) } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_salsa20r12_crypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } } #[allow(non_camel_case_types)] /// 256 bit variant of D.J. Bernstein's Salsa20/12 block cipher. /// # Note /// Salsa20/12 it a reduced round version of Salsa20. pub struct Salsa20R12_256 { context: salsa20_ctx, } impl Salsa20R12_256 { /// Salsa20/12 block size in bytes. pub const BLOCK_SIZE: usize = ::nettle_sys::SALSA20_BLOCK_SIZE as usize; /// Salsa20/12 key size in bytes. pub const KEY_SIZE: usize = ::nettle_sys::SALSA20_256_KEY_SIZE as usize; /// Salsa20/12 nonce size in bytes. pub const NONCE_SIZE: usize = ::nettle_sys::SALSA20_NONCE_SIZE as usize; /// Create a new instance with `key`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != Salsa20R12_256::KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != Salsa20R12_256::NONCE_SIZE { return Err(Error::InvalidArgument { argument_name: "nonce" }); } let mut ctx = unsafe { zeroed() }; unsafe { nettle_salsa20_256_set_key(&mut ctx as *mut _, key.as_ptr()); } unsafe { nettle_salsa20_set_nonce(&mut ctx as *mut _, nonce.as_ptr()); } Ok(Salsa20R12_256 { context: ctx }) } /// Encrypt/decrypt data from `src` to `dst`. pub fn crypt(&mut self, dst: &mut [u8], src: &[u8]) { assert_eq!(dst.len(), src.len()); unsafe { nettle_salsa20r12_crypt( &mut self.context as *mut _, dst.len(), dst.as_mut_ptr(), src.as_ptr(), ) }; } } #[cfg(test)] mod tests { use super::*; #[test] fn salsa128_set_key_and_nonce() { let key = vec![0; 16]; let nonce = vec![1; 8]; let _ = Salsa20R12_128::with_key_and_nonce(&key, &nonce).unwrap(); } #[test] fn salsa128_round_trip() { let key = vec![0; 16]; let nonce = vec![1; 8]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Salsa20R12_128::with_key_and_nonce(&key, &nonce).unwrap(); let mut dec = Salsa20R12_128::with_key_and_nonce(&key, &nonce).unwrap(); enc.crypt(&mut cipher, &input); dec.crypt(&mut output, &cipher); assert_eq!(output, input); } #[test] fn salsa256_set_key_and_nonce() { let key = vec![0; 32]; let nonce = vec![1; 8]; let _ = Salsa20R12_256::with_key_and_nonce(&key, &nonce).unwrap(); } #[test] fn salsa256_round_trip() { let key = vec![0; 32]; let nonce = vec![1; 8]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Salsa20R12_256::with_key_and_nonce(&key, &nonce).unwrap(); let mut dec = Salsa20R12_256::with_key_and_nonce(&key, &nonce).unwrap(); enc.crypt(&mut cipher, &input); dec.crypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/serpent.rs000064400000000000000000000056560072674642500152570ustar 00000000000000use nettle_sys::{ nettle_serpent_decrypt, nettle_serpent_encrypt, nettle_serpent_set_key, serpent_ctx, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// The Serpent block cipher. pub struct Serpent { context: serpent_ctx, } impl Serpent { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_serpent_set_key(&mut ctx as *mut _, key.len(), key.as_ptr()); } Serpent { context: ctx } } } impl Cipher for Serpent { const BLOCK_SIZE: usize = ::nettle_sys::SERPENT_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::SERPENT_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(Serpent::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(Serpent::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_serpent_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_serpent_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut serpent_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_serpent_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_serpent_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Serpent::with_encrypt_key(key).unwrap(); let _ = Serpent::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Serpent::with_encrypt_key(&key).unwrap(); let mut dec = Serpent::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/cipher/twofish.rs000064400000000000000000000056560072674642500152620ustar 00000000000000use nettle_sys::{ nettle_twofish_decrypt, nettle_twofish_encrypt, nettle_twofish_set_key, twofish_ctx, }; use std::cmp::min; use std::mem::zeroed; use std::os::raw::c_void; use crate::cipher::RawCipherFunctionPointer; use crate::{cipher::Cipher, Result}; /// The Twofish block cipher. pub struct Twofish { context: twofish_ctx, } impl Twofish { /// Creates a new instance with `key` that can be used for both encryption and decryption. pub fn with_key(key: &[u8]) -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_twofish_set_key(&mut ctx as *mut _, key.len(), key.as_ptr()); } Twofish { context: ctx } } } impl Cipher for Twofish { const BLOCK_SIZE: usize = ::nettle_sys::TWOFISH_BLOCK_SIZE as usize; const KEY_SIZE: usize = ::nettle_sys::TWOFISH_KEY_SIZE as usize; fn with_encrypt_key(key: &[u8]) -> Result { Ok(Twofish::with_key(key)) } fn with_decrypt_key(key: &[u8]) -> Result { Ok(Twofish::with_key(key)) } fn encrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_twofish_encrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn decrypt(&mut self, dst: &mut [u8], src: &[u8]) { unsafe { nettle_twofish_decrypt( &mut self.context as *mut _, min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ) }; } fn context(&mut self) -> *mut c_void { ((&mut self.context) as *mut twofish_ctx) as *mut c_void } fn raw_encrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_twofish_encrypt) } fn raw_decrypt_function() -> RawCipherFunctionPointer { RawCipherFunctionPointer::new(nettle_twofish_decrypt) } } #[cfg(test)] mod tests { use super::*; #[test] fn set_key() { let key = &(b"\x01\x02\x03\x04\x05\x06\x07\x08\x01\x02\x03\x04\x05\x06\x07\x08"[..]); let _ = Twofish::with_encrypt_key(key).unwrap(); let _ = Twofish::with_decrypt_key(key).unwrap(); } #[test] fn round_trip() { let key = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, ]; let input = vec![ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, ]; let mut cipher = vec![0; 16]; let mut output = vec![0; 16]; let mut enc = Twofish::with_encrypt_key(&key).unwrap(); let mut dec = Twofish::with_decrypt_key(&key).unwrap(); enc.encrypt(&mut cipher, &input); dec.decrypt(&mut output, &cipher); assert_eq!(output, input); } } nettle-7.1.0/src/curve25519.rs000064400000000000000000000077400072674642500140530ustar 00000000000000//! Elliptic curve Diffie-Hellman using D.J. Bernstein's Curve25519. use nettle_sys::{nettle_curve25519_mul, nettle_curve25519_mul_g}; use crate::{Error, random::Random, Result}; /// Size of the public and private keys in bytes. pub const CURVE25519_SIZE: usize = ::nettle_sys::CURVE25519_SIZE as usize; /// Generate a new X25519 private key. pub fn private_key(rng: &mut R) -> Box<[u8]> where R: Random, { let mut ret = vec![0u8; CURVE25519_SIZE].into_boxed_slice(); // Curve25519 Paper, Sec. 3: // A user can, for example, generate 32 uniform random bytes, clear bits 0, 1, 2 of the first // byte, clear bit 7 of the last byte, and set bit 6 of the last byte. rng.random(&mut ret[..]); ret[0] &= 0b1111_1000; ret[CURVE25519_SIZE - 1] &= !0b1000_0000; ret[CURVE25519_SIZE - 1] |= 0b0100_0000; ret } /// Derive DH public key. /// /// Computes the public key `q` for a given secret `n`. Returns an /// error if `q` or `n` are not [`CURVE25519_SIZE`] bytes long. pub fn mul_g(q: &mut [u8], n: &[u8]) -> Result<()> { if q.len() != CURVE25519_SIZE { return Err(Error::InvalidArgument { argument_name: "q" }); } if n.len() != CURVE25519_SIZE { return Err(Error::InvalidArgument { argument_name: "n" }); } unsafe { nettle_curve25519_mul_g(q.as_mut_ptr(), n.as_ptr()); } Ok(()) } /// Derive DH shared secret. /// /// Computes the shared secret `q` for our private key `n` and the /// other parties public key `p`. Returns an error if `q`, `n`, or /// `p` are not [`CURVE25519_SIZE`] bytes long. pub fn mul(q: &mut [u8], n: &[u8], p: &[u8]) -> Result<()> { if q.len() != CURVE25519_SIZE { return Err(Error::InvalidArgument { argument_name: "q" }); } if n.len() != CURVE25519_SIZE { return Err(Error::InvalidArgument { argument_name: "n" }); } if p.len() != CURVE25519_SIZE { return Err(Error::InvalidArgument { argument_name: "p" }); } unsafe { nettle_curve25519_mul(q.as_mut_ptr(), n.as_ptr(), p.as_ptr()); } Ok(()) } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn rfc7748() { let alice_priv = &b"\x77\x07\x6d\x0a\x73\x18\xa5\x7d\x3c\x16\xc1\x72\x51\xb2\x66\x45\xdf\x4c\x2f\x87\xeb\xc0\x99\x2a\xb1\x77\xfb\xa5\x1d\xb9\x2c\x2a"[..]; let alice_pub = &b"\x85\x20\xf0\x09\x89\x30\xa7\x54\x74\x8b\x7d\xdc\xb4\x3e\xf7\x5a\x0d\xbf\x3a\x0d\x26\x38\x1a\xf4\xeb\xa4\xa9\x8e\xaa\x9b\x4e\x6a"[..]; let bob_priv = &b"\x5d\xab\x08\x7e\x62\x4a\x8a\x4b\x79\xe1\x7f\x8b\x83\x80\x0e\xe6\x6f\x3b\xb1\x29\x26\x18\xb6\xfd\x1c\x2f\x8b\x27\xff\x88\xe0\xeb"[..]; let bob_pub = &b"\xde\x9e\xdb\x7d\x7b\x7d\xc1\xb4\xd3\x5b\x61\xc2\xec\xe4\x35\x37\x3f\x83\x43\xc8\x5b\x78\x67\x4d\xad\xfc\x7e\x14\x6f\x88\x2b\x4f"[..]; let shared = &b"\x4a\x5d\x9d\x5b\xa4\xce\x2d\xe1\x72\x8e\x3b\xf4\x80\x35\x0f\x25\xe0\x7e\x21\xc9\x47\xd1\x9e\x33\x76\xf0\x9b\x3c\x1e\x16\x17\x42"[..]; let mut tmp = vec![0u8; CURVE25519_SIZE]; assert!(mul_g(&mut tmp, alice_priv).is_ok()); assert_eq!(tmp, alice_pub); assert!(mul_g(&mut tmp, bob_priv).is_ok()); assert_eq!(tmp, bob_pub); assert!(mul(&mut tmp, alice_priv, bob_pub).is_ok()); assert_eq!(tmp, shared); assert!(mul(&mut tmp, bob_priv, alice_pub).is_ok()); assert_eq!(tmp, shared); } #[test] fn smoke_test() { let mut rng = Yarrow::default(); let sk1 = private_key(&mut rng); let sk2 = private_key(&mut rng); let mut pk1 = vec![0u8; CURVE25519_SIZE]; let mut pk2 = vec![0u8; CURVE25519_SIZE]; assert!(mul_g(&mut pk1[..], &sk1[..]).is_ok()); assert!(mul_g(&mut pk2[..], &sk2[..]).is_ok()); let mut sh1 = vec![0u8; CURVE25519_SIZE]; let mut sh2 = vec![0u8; CURVE25519_SIZE]; assert!(mul(&mut sh1[..], &sk1[..], &pk2[..]).is_ok()); assert!(mul(&mut sh2[..], &sk2[..], &pk1[..]).is_ok()); assert_eq!(sh1, sh2); } } nettle-7.1.0/src/curve448.rs000064400000000000000000000132230072674642500136760ustar 00000000000000//! Elliptic curve Diffie-Hellman using Mike Hamburg's Curve448. use nettle_sys::{nettle_curve448_mul, nettle_curve448_mul_g}; use crate::{Error, random::Random, Result}; /// Whether or not this algorithm is supported by the version of /// Nettle we are linked against at build time. /// /// If this is false, then [`mul_g`], and [`mul`] will fail on all /// inputs. pub const IS_SUPPORTED: bool = nettle_sys::config::HAVE_CV448; /// Size of the public and private keys in bytes. pub const CURVE448_SIZE: usize = ::nettle_sys::CURVE448_SIZE as usize; /// Generate a new X448 private key. pub fn private_key(rng: &mut R) -> Box<[u8]> where R: Random, { let mut ret = vec![0u8; CURVE448_SIZE].into_boxed_slice(); // Section 5 of RFC7748: // // > [..] for X448, set the two least significant bits of the first // > byte to 0, and the most significant bit of the last byte to 1. // > This means that the resulting integer is of the form 2^447 plus // > four times a value between 0 and 2^445 - 1 (inclusive). rng.random(&mut ret[..]); ret[0] &= 0b1111_1100; ret[CURVE448_SIZE - 1] |= 0b1000_0000; ret } /// Derive DH public key. /// /// Computes the public key `q` for a given secret `n`. Returns an /// error if `q` or `n` are not `CURVE448_SIZE` bytes long, or if /// Curve448 is not supported by Nettle (see [`IS_SUPPORTED`]). pub fn mul_g(q: &mut [u8], n: &[u8]) -> Result<()> { if ! nettle_sys::config::HAVE_CV448 { return Err(Error::KeyGenerationFailed); } if q.len() != CURVE448_SIZE { return Err(Error::InvalidArgument { argument_name: "q" }); } if n.len() != CURVE448_SIZE { return Err(Error::InvalidArgument { argument_name: "n" }); } unsafe { nettle_curve448_mul_g(q.as_mut_ptr(), n.as_ptr()); } Ok(()) } /// Derive DH shared secret. /// /// Computes the shared secret `q` for our private key `n` and the /// other parties public key `p`. Returns an error if `q`, `n` or `p` /// are not `CURVE448_SIZE` bytes long, or if Curve448 is not /// supported by Nettle (see [`IS_SUPPORTED`]). pub fn mul(q: &mut [u8], n: &[u8], p: &[u8]) -> Result<()> { if ! nettle_sys::config::HAVE_CV448 { return Err(Error::EncryptionFailed); } if q.len() != CURVE448_SIZE { return Err(Error::InvalidArgument { argument_name: "q" }); } if n.len() != CURVE448_SIZE { return Err(Error::InvalidArgument { argument_name: "n" }); } if p.len() != CURVE448_SIZE { return Err(Error::InvalidArgument { argument_name: "p" }); } unsafe { nettle_curve448_mul(q.as_mut_ptr(), n.as_ptr(), p.as_ptr()); } Ok(()) } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn rfc7748() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } let alice_priv = &b"\x9a\x8f\x49\x25\xd1\x51\x9f\x57\x75\xcf\x46\xb0\x4b\x58\ \x00\xd4\xee\x9e\xe8\xba\xe8\xbc\x55\x65\xd4\x98\xc2\x8d\ \xd9\xc9\xba\xf5\x74\xa9\x41\x97\x44\x89\x73\x91\x00\x63\ \x82\xa6\xf1\x27\xab\x1d\x9a\xc2\xd8\xc0\xa5\x98\x72\x6b"[..]; let alice_pub = &b"\x9b\x08\xf7\xcc\x31\xb7\xe3\xe6\x7d\x22\xd5\xae\xa1\x21\ \x07\x4a\x27\x3b\xd2\xb8\x3d\xe0\x9c\x63\xfa\xa7\x3d\x2c\ \x22\xc5\xd9\xbb\xc8\x36\x64\x72\x41\xd9\x53\xd4\x0c\x5b\ \x12\xda\x88\x12\x0d\x53\x17\x7f\x80\xe5\x32\xc4\x1f\xa0"[..]; let bob_priv = &b"\x1c\x30\x6a\x7a\xc2\xa0\xe2\xe0\x99\x0b\x29\x44\x70\xcb\ \xa3\x39\xe6\x45\x37\x72\xb0\x75\x81\x1d\x8f\xad\x0d\x1d\ \x69\x27\xc1\x20\xbb\x5e\xe8\x97\x2b\x0d\x3e\x21\x37\x4c\ \x9c\x92\x1b\x09\xd1\xb0\x36\x6f\x10\xb6\x51\x73\x99\x2d"[..]; let bob_pub = &b"\x3e\xb7\xa8\x29\xb0\xcd\x20\xf5\xbc\xfc\x0b\x59\x9b\x6f\ \xec\xcf\x6d\xa4\x62\x71\x07\xbd\xb0\xd4\xf3\x45\xb4\x30\ \x27\xd8\xb9\x72\xfc\x3e\x34\xfb\x42\x32\xa1\x3c\xa7\x06\ \xdc\xb5\x7a\xec\x3d\xae\x07\xbd\xc1\xc6\x7b\xf3\x36\x09"[..]; let shared = &b"\x07\xff\xf4\x18\x1a\xc6\xcc\x95\xec\x1c\x16\xa9\x4a\x0f\ \x74\xd1\x2d\xa2\x32\xce\x40\xa7\x75\x52\x28\x1d\x28\x2b\ \xb6\x0c\x0b\x56\xfd\x24\x64\xc3\x35\x54\x39\x36\x52\x1c\ \x24\x40\x30\x85\xd5\x9a\x44\x9a\x50\x37\x51\x4a\x87\x9d"[..]; let mut tmp = vec![0u8; CURVE448_SIZE]; assert!(mul_g(&mut tmp, alice_priv).is_ok()); assert_eq!(tmp, alice_pub); assert!(mul_g(&mut tmp, bob_priv).is_ok()); assert_eq!(tmp, bob_pub); assert!(mul(&mut tmp, alice_priv, bob_pub).is_ok()); assert_eq!(tmp, shared); assert!(mul(&mut tmp, bob_priv, alice_pub).is_ok()); assert_eq!(tmp, shared); } #[test] fn smoke_test() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } let mut rng = Yarrow::default(); let sk1 = private_key(&mut rng); let sk2 = private_key(&mut rng); let mut pk1 = vec![0u8; CURVE448_SIZE]; let mut pk2 = vec![0u8; CURVE448_SIZE]; assert!(mul_g(&mut pk1[..], &sk1[..]).is_ok()); assert!(mul_g(&mut pk2[..], &sk2[..]).is_ok()); let mut sh1 = vec![0u8; CURVE448_SIZE]; let mut sh2 = vec![0u8; CURVE448_SIZE]; assert!(mul(&mut sh1[..], &sk1[..], &pk2[..]).is_ok()); assert!(mul(&mut sh2[..], &sk2[..], &pk1[..]).is_ok()); assert_eq!(sh1, sh2); } } nettle-7.1.0/src/dsa/keys.rs000064400000000000000000000075270072674642500140460ustar 00000000000000use nettle_sys::{ __gmpz_clear, __gmpz_init, __gmpz_init_set, mpz_t, nettle_dsa_generate_keypair, }; use std::mem::zeroed; use crate::helper::{convert_buffer_to_gmpz, convert_gmpz_to_buffer}; use crate::random::Random; use super::Params; /// Public DSA key. pub struct PublicKey { pub(crate) public: mpz_t, } impl PublicKey { /// Creates a new public key. pub fn new(y: &[u8]) -> PublicKey { PublicKey { public: [convert_buffer_to_gmpz(y)] } } /// Returns the public key `y` as big endian number. pub fn as_bytes(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.public[0]) } } impl Clone for PublicKey { fn clone(&self) -> Self { unsafe { let mut ret: mpz_t = zeroed(); __gmpz_init_set(&mut ret[0], &self.public[0]); PublicKey { public: ret } } } } impl Drop for PublicKey { fn drop(&mut self) { unsafe { __gmpz_clear(&mut self.public[0] as *mut _); } } } /// Private DSA key. pub struct PrivateKey { pub(crate) private: mpz_t, } impl PrivateKey { /// Creates a new private key sructure. /// /// The secret exponent `x` must be a big endian integer. pub fn new(x: &[u8]) -> PrivateKey { PrivateKey { private: [convert_buffer_to_gmpz(x)] } } /// Returns the secret exponent `x` as bit endian integer. pub fn as_bytes(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.private[0]) } } impl Clone for PrivateKey { fn clone(&self) -> Self { unsafe { let mut ret: mpz_t = zeroed(); __gmpz_init_set(&mut ret[0], &self.private[0]); PrivateKey { private: ret } } } } impl Drop for PrivateKey { fn drop(&mut self) { unsafe { __gmpz_clear(&mut self.private[0] as *mut _); } } } /// Generates a fresh DSA key pair. /// /// Generator and primes must be supplied via `params`. Entrophy is /// gathered using `random`. pub fn generate_keypair( params: &Params, random: &mut R, ) -> (PublicKey, PrivateKey) { unsafe { let mut public: mpz_t = zeroed(); let mut private: mpz_t = zeroed(); __gmpz_init(&mut public[0] as *mut _); __gmpz_init(&mut private[0] as *mut _); nettle_dsa_generate_keypair( ¶ms.params, &mut public[0], &mut private[0], random.context(), Some(R::random_impl), ); let ret_pub = PublicKey { public: public }; let ret_key = PrivateKey { private: private }; (ret_pub, ret_key) } } #[cfg(test)] mod tests { use super::*; use crate::dsa::{sign, verify, Params}; use crate::random::Yarrow; #[test] fn generate_key() { let mut rand = Yarrow::default(); let params = Params::generate(&mut rand, 1024, 160).unwrap(); for _ in 0..3 { let _ = generate_keypair(¶ms, &mut rand); } } #[test] fn new_public_key() { let y = &['y' as u8; 12]; let public = PublicKey::new(y); assert_eq!(public.as_bytes().as_ref(), y); } #[test] fn new_private_key() { let x = &['x' as u8; 12]; let private = PrivateKey::new(x); assert_eq!(private.as_bytes().as_ref(), x); } #[test] fn clone() { let mut rand = Yarrow::default(); let params = Params::generate(&mut rand, 1024, 160).unwrap(); let (public, private) = generate_keypair(¶ms, &mut rand); let public = public.clone(); let private = private.clone(); let params = params.clone(); let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(¶ms, &private, &msg, &mut rand).unwrap(); let sig = sig.clone(); assert!(verify(¶ms, &public, &msg, &sig)); } } nettle-7.1.0/src/dsa/mod.rs000064400000000000000000000004310072674642500136350ustar 00000000000000//! The Digital Signature Algorithm (DSA) described in FIPS 186. mod signature; pub use self::signature::Signature; mod params; pub use self::params::Params; mod sign; pub use self::sign::{sign, verify}; mod keys; pub use self::keys::{generate_keypair, PrivateKey, PublicKey}; nettle-7.1.0/src/dsa/params.rs000064400000000000000000000071370072674642500143530ustar 00000000000000use nettle_sys::{ __gmpz_set, dsa_params, nettle_dsa_generate_params, nettle_dsa_params_clear, nettle_dsa_params_init, nettle_mpz_set_str_256_u, }; use std::mem::zeroed; use std::ptr; use crate::helper::convert_gmpz_to_buffer; use crate::{Error, random::Random, Result}; /// Public parameters for DSA signatures. /// /// DSA uses the ring Z/pqZ (p,q are primes) and a generator `g` of that group. pub struct Params { pub(crate) params: dsa_params, } impl Params { /// Create a new DSA parameter structure with primes `p` and `q` and generator `g`. pub fn new(p: &[u8], q: &[u8], g: &[u8]) -> Params { unsafe { let mut ret: dsa_params = zeroed(); nettle_dsa_params_init(&mut ret as *mut _); nettle_mpz_set_str_256_u(&mut ret.p[0], p.len(), p.as_ptr()); nettle_mpz_set_str_256_u(&mut ret.q[0], q.len(), q.as_ptr()); nettle_mpz_set_str_256_u(&mut ret.g[0], g.len(), g.as_ptr()); Params { params: ret } } } /// Generates a fresh set of parameters. /// /// `p_bits` and `q_bits` are the size of the primes. FIPS-186 expects `q_bits = 160` /// and `p_bits = 512 + 64l` for `l = [0-8]`. The Nettle documentation recommends 1024. pub fn generate( random: &mut R, p_bits: usize, q_bits: usize, ) -> Result { unsafe { let mut ret = zeroed(); nettle_dsa_params_init(&mut ret as *mut _); if nettle_dsa_generate_params( &mut ret as *mut _, random.context(), Some(R::random_impl), ptr::null_mut(), None, p_bits as u32, q_bits as u32, ) == 1 { Ok(Params { params: ret }) } else { nettle_dsa_params_clear(&mut ret as *mut _); Err(Error::InvalidBitSizes) } } } /// Returns the primes `p` and `q` ad big endian integers. pub fn primes(&self) -> (Box<[u8]>, Box<[u8]>) { let p = convert_gmpz_to_buffer(self.params.p[0]); let q = convert_gmpz_to_buffer(self.params.q[0]); (p, q) } /// Returns the generator `g` as big endian integer. pub fn g(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.params.g[0]) } } impl Clone for Params { fn clone(&self) -> Self { unsafe { let mut ret = zeroed(); nettle_dsa_params_init(&mut ret); __gmpz_set(&mut ret.p[0], &self.params.p[0]); __gmpz_set(&mut ret.q[0], &self.params.q[0]); __gmpz_set(&mut ret.g[0], &self.params.g[0]); Params { params: ret } } } } impl Drop for Params { fn drop(&mut self) { unsafe { nettle_dsa_params_clear(&mut self.params as *mut _); } } } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn new_params() { let p = &['p' as u8; 12]; let q = &['q' as u8; 12]; let g = &['g' as u8; 12]; let params = Params::new(p, q, g); assert_eq!(params.primes().0.as_ref(), p); assert_eq!(params.primes().1.as_ref(), q); assert_eq!(params.g().as_ref(), g); } #[test] fn generate_params() { let mut rand = Yarrow::default(); let _ = Params::generate(&mut rand, 1024, 160).unwrap(); } #[test] #[should_panic] fn generate_params_failing() { let mut rand = Yarrow::default(); let _ = Params::generate(&mut rand, 1024, 16).unwrap(); } } nettle-7.1.0/src/dsa/sign.rs000064400000000000000000022742140072674642500140340ustar 00000000000000use nettle_sys::{nettle_dsa_sign, nettle_dsa_verify}; use std::mem::zeroed; use crate::{Error, random::Random, Result}; use super::{Params, PrivateKey, PublicKey, Signature}; /// Sign `digest` using key `private` and ring `params`. /// /// Siging may fail if `digest` is larger than `q` or not co-prime to /// `pq`. pub fn sign( params: &Params, private: &PrivateKey, digest: &[u8], random: &mut R, ) -> Result { unsafe { let mut ret = zeroed(); let mut private = private.private[0]; let res = nettle_dsa_sign( ¶ms.params, &mut private, random.context(), Some(R::random_impl), digest.len(), digest.as_ptr(), &mut ret as *mut _, ); if res == 1 { Ok(Signature { signature: ret }) } else { Err(Error::SigningFailed) } } } /// Verifies `signature` of `digest` by `public` over ring `params`. /// /// Returns `true` if the signature is valid. pub fn verify( params: &Params, public: &PublicKey, digest: &[u8], signature: &Signature, ) -> bool { unsafe { let mut public = public.public[0]; nettle_dsa_verify( ¶ms.params, &mut public, digest.len(), digest.as_ptr(), &signature.signature, ) == 1 } } #[cfg(test)] mod tests { use super::*; use crate::dsa::generate_keypair; use crate::random::Yarrow; #[test] fn sign_verify() { let mut rand = Yarrow::default(); let params = Params::generate(&mut rand, 1024, 160).unwrap(); let (mut public, mut private) = generate_keypair(¶ms, &mut rand); for _ in 0..3 { let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(¶ms, &mut private, &msg, &mut rand).unwrap(); assert!(verify(¶ms, &mut public, &msg, &sig)); } for _ in 0..3 { let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(¶ms, &mut private, &msg, &mut rand).unwrap(); rand.random(&mut msg); assert!(!verify(¶ms, &mut public, &msg, &sig)); } } #[test] fn fips_186_3() { use crate::hash::*; use crate::hash::insecure_do_not_use::Sha1; fn test(msg: &[u8], p: &[u8], q: &[u8], g: &[u8], y: &[u8], r: &[u8], s: &[u8]) where H: Default + Hash, { let mut h = H::default(); h.update(msg); let mut d = vec![0; h.digest_size()]; h.digest(&mut d); let params = Params::new(p, q, g); let key = PublicKey::new(y); let sig = Signature::new(r, s); assert!(verify(¶ms, &key, &d, &sig)); // Sanity check: Change the digest and retry. d[0] ^= 1; assert!(! verify(¶ms, &key, &d, &sig)); } // [mod = L=1024, N=160, SHA-1] let p = b"\xa8\xf9\xcd\x20\x1e\x5e\x35\xd8\x92\xf8\x5f\x80\xe4\xdb\x25\x99\xa5\x67\x6a\x3b\x1d\x4f\x19\x03\x30\xed\x32\x56\xb2\x6d\x0e\x80\xa0\xe4\x9a\x8f\xff\xaa\xad\x2a\x24\xf4\x72\xd2\x57\x32\x41\xd4\xd6\xd6\xc7\x48\x0c\x80\xb4\xc6\x7b\xb4\x47\x9c\x15\xad\xa7\xea\x84\x24\xd2\x50\x2f\xa0\x14\x72\xe7\x60\x24\x17\x13\xda\xb0\x25\xae\x1b\x02\xe1\x70\x3a\x14\x35\xf6\x2d\xdf\x4e\xe4\xc1\xb6\x64\x06\x6e\xb2\x2f\x2e\x3b\xf2\x8b\xb7\x0a\x2a\x76\xe4\xfd\x5e\xbe\x2d\x12\x29\x68\x1b\x5b\x06\x43\x9a\xc9\xc7\xe9\xd8\xbd\xe2\x83"; let q = b"\xf8\x5f\x0f\x83\xac\x4d\xf7\xea\x0c\xdf\x8f\x46\x9b\xfe\xea\xea\x14\x15\x64\x95"; let g = b"\x2b\x31\x52\xff\x6c\x62\xf1\x46\x22\xb8\xf4\x8e\x59\xf8\xaf\x46\x88\x3b\x38\xe7\x9b\x8c\x74\xde\xea\xe9\xdf\x13\x1f\x8b\x85\x6e\x3a\xd6\xc8\x45\x5d\xab\x87\xcc\x0d\xa8\xac\x97\x34\x17\xce\x4f\x78\x78\x55\x7d\x6c\xdf\x40\xb3\x5b\x4a\x0c\xa3\xeb\x31\x0c\x6a\x95\xd6\x8c\xe2\x84\xad\x4e\x25\xea\x28\x59\x16\x11\xee\x08\xb8\x44\x4b\xd6\x4b\x25\xf3\xf7\xc5\x72\x41\x0d\xdf\xb3\x9c\xc7\x28\xb9\xc9\x36\xf8\x5f\x41\x91\x29\x86\x99\x29\xcd\xb9\x09\xa6\xa3\xa9\x9b\xbe\x08\x92\x16\x36\x81\x71\xbd\x0b\xa8\x1d\xe4\xfe\x33"; test::( b"\x3b\x46\x73\x6d\x55\x9b\xd4\xe0\xc2\xc1\xb2\x55\x3a\x33\xad\x3c\x6c\xf2\x3c\xac\x99\x8d\x3d\x0c\x0e\x8f\xa4\xb1\x9b\xca\x06\xf2\xf3\x86\xdb\x2d\xcf\xf9\xdc\xa4\xf4\x0a\xd8\xf5\x61\xff\xc3\x08\xb4\x6c\x5f\x31\xa7\x73\x5b\x5f\xa7\xe0\xf9\xe6\xcb\x51\x2e\x63\xd7\xee\xa0\x55\x38\xd6\x6a\x75\xcd\x0d\x42\x34\xb5\xcc\xf6\xc1\x71\x5c\xca\xaf\x9c\xdc\x0a\x22\x28\x13\x5f\x71\x6e\xe9\xbd\xee\x7f\xc1\x3e\xc2\x7a\x03\xa6\xd1\x1c\x5c\x5b\x36\x85\xf5\x19\x00\xb1\x33\x71\x53\xbc\x6c\x4e\x8f\x52\x92\x0c\x33\xfa\x37\xf4\xe7", p, q, g, b"\x31\x3f\xd9\xeb\xca\x91\x57\x4e\x1c\x2e\xeb\xe1\x51\x7c\x57\xe0\xc2\x1b\x02\x09\x87\x21\x40\xc5\x32\x87\x61\xbb\xb2\x45\x0b\x33\xf1\xb1\x8b\x40\x9c\xe9\xab\x7c\x4c\xd8\xfd\xa3\x39\x1e\x8e\x34\x86\x83\x57\xc1\x99\xe1\x6a\x6b\x2e\xba\x06\xd6\x74\x9d\xef\x79\x1d\x79\xe9\x5d\x3a\x4d\x09\xb2\x4c\x39\x2a\xd8\x9d\xbf\x10\x09\x95\xae\x19\xc0\x10\x62\x05\x6b\xb1\x4b\xce\x00\x5e\x87\x31\xef\xde\x17\x5f\x95\xb9\x75\x08\x9b\xdc\xda\xea\x56\x2b\x32\x78\x6d\x96\xf5\xa3\x1a\xed\xf7\x53\x64\x00\x8a\xd4\xff\xfe\xbb\x97\x0b", b"\x50\xed\x0e\x81\x0e\x3f\x1c\x7c\xb6\xac\x62\x33\x20\x58\x44\x8b\xd8\xb2\x84\xc0", b"\xc6\xad\xed\x17\x21\x6b\x46\xb7\xe4\xb6\xf2\xa9\x7c\x1a\xd7\xcc\x3d\xa8\x3f\xde", ); test::( b"\xd2\xbc\xb5\x3b\x04\x4b\x3e\x2e\x4b\x61\xba\x2f\x91\xc0\x99\x5f\xb8\x3a\x6a\x97\x52\x5e\x66\x44\x1a\x3b\x48\x9d\x95\x94\x23\x8b\xc7\x40\xbd\xee\xa0\xf7\x18\xa7\x69\xc9\x77\xe2\xde\x00\x38\x77\xb5\xd7\xdc\x25\xb1\x82\xae\x53\x3d\xb3\x3e\x78\xf2\xc3\xff\x06\x45\xf2\x13\x7a\xbc\x13\x7d\x4e\x7d\x93\xcc\xf2\x4f\x60\xb1\x8a\x82\x0b\xc0\x7c\x7b\x4b\x5f\xe0\x8b\x4f\x9e\x7d\x21\xb2\x56\xc1\x8f\x3b\x9d\x49\xac\xc4\xf9\x3e\x2c\xe6\xf3\x75\x4c\x78\x07\x75\x7d\x2e\x11\x76\x04\x26\x12\xcb\x32\xfc\x3f\x4f\x70\x70\x0e\x25", p, q, g, b"\x29\xbd\xd7\x59\xaa\xa6\x2d\x4b\xf1\x6b\x48\x61\xc8\x1c\xf4\x2e\xac\x2e\x16\x37\xb9\xec\xba\x51\x2b\xdb\xc1\x3a\xc1\x2a\x80\xae\x8d\xe2\x52\x6b\x89\x9a\xe5\xe4\xa2\x31\xae\xf8\x84\x19\x7c\x94\x4c\x73\x26\x93\xa6\x34\xd7\x65\x9a\xbc\x69\x75\xa7\x73\xf8\xd3\xcd\x5a\x36\x1f\xe2\x49\x23\x86\xa3\xc0\x9a\xae\xf1\x2e\x4a\x7e\x73\xad\x7d\xfc\x36\x37\xf7\xb0\x93\xf2\xc4\x0d\x62\x23\xa1\x95\xc1\x36\xad\xf2\xea\x3f\xbf\x87\x04\xa6\x75\xaa\x78\x17\xaa\x7e\xc7\xf9\xad\xfb\x28\x54\xd4\xe0\x5c\x3c\xe7\xf7\x65\x60\x31\x3b", b"\xa2\x6c\x00\xb5\x75\x0a\x2d\x27\xfe\x74\x35\xb9\x34\x76\xb3\x54\x38\xb4\xd8\xab", b"\x61\xc9\xbf\xcb\x29\x38\x75\x5a\xfa\x7d\xad\x1d\x1e\x07\xc6\x28\x86\x17\xbf\x70", ); test::( b"\xd5\x43\x1e\x6b\x16\xfd\xae\x31\x48\x17\x42\xbd\x39\x47\x58\xbe\xb8\xe2\x4f\x31\x94\x7e\x19\xb7\xea\x7b\x45\x85\x21\x88\x22\x70\xc1\xf4\x31\x92\xaa\x05\x0f\x44\x85\x14\x5a\xf8\xf3\xf9\xc5\x14\x2d\x68\xb8\x50\x18\xd2\xec\x9c\xb7\xa3\x7b\xa1\x2e\xd2\x3e\x73\xb9\x5f\xd6\x80\xfb\xa3\xc6\x12\x65\xe9\xf5\xa0\xa0\x27\xd7\x0f\xad\x0c\x8a\xa0\x8a\x3c\xbf\xbe\x99\x01\x8d\x00\x45\x38\x61\x73\xe5\xfa\xe2\x25\xfa\xeb\xe0\xce\xf5\xdd\x45\x91\x0f\x40\x0a\x86\xc2\xbe\x4e\x15\x25\x2a\x16\xde\x41\x20\xa2\x67\xbe\x2b\x59\x4d", p, q, g, b"\x23\xb4\xf4\x04\xaa\x3c\x57\x5e\x55\x0b\xb3\x20\xfd\xb1\xa0\x85\xcd\x39\x6a\x10\xe5\xeb\xc6\x77\x1d\xa6\x2f\x03\x7c\xab\x19\xea\xcd\x67\xd8\x22\x2b\x63\x44\x03\x8c\x4f\x7a\xf4\x5f\x5e\x62\xb5\x54\x80\xcb\xe2\x11\x11\x54\xca\x96\x97\xca\x76\xd8\x7b\x56\x94\x41\x38\x08\x4e\x74\xc6\xf9\x0a\x05\xcf\x43\x66\x0d\xff\x8b\x8b\x3f\xab\xfc\xab\x3f\x0e\x44\x16\x77\x5f\xdf\x40\x05\x58\x64\xbe\x10\x2b\x45\x87\x39\x2e\x77\x75\x2e\xd2\xae\xb1\x82\xee\x4f\x70\xbe\x4a\x29\x1d\xbe\x77\xb8\x4a\x44\xee\x34\x00\x79\x57\xb1\xe0", b"\x3f\x0a\x4a\xd3\x2f\x08\x16\x82\x1b\x8a\xff\xb5\x18\xe9\xb5\x99\xf3\x5d\x57\xc2", b"\xea\x06\x63\x8f\x2b\x2f\xc9\xd1\xdf\xe9\x9c\x2a\x49\x28\x06\xb4\x97\xe2\xb0\xea", ); test::( b"\x85\x66\x2b\x69\x75\x50\xe4\x91\x5c\x29\xe3\x38\xb6\x24\xb9\x12\x84\x5d\x6d\x1a\x92\x0d\x9e\x4c\x16\x04\xdd\x47\xd6\x92\xbc\x7c\x0f\xfb\x95\xae\x61\x4e\x85\x2b\xeb\xaf\x15\x73\x75\x8a\xd0\x1c\x71\x3c\xac\x0b\x47\x6e\x2f\x12\x17\x45\xa3\xcf\xee\xff\xb2\x44\x1f\xf6\xab\xfb\x9b\xbe\xb9\x8a\xa6\x34\xca\x6f\xf5\x41\x94\x7d\xcc\x99\x27\x65\x9d\x44\xf9\x5c\x5f\xf9\x17\x0f\xdc\x3c\x86\x47\x3c\xb6\x01\xba\x31\xb4\x87\xfe\x59\x36\xba\xc5\xd9\xc6\x32\xcb\xcc\x3d\xb0\x62\x46\xba\x01\xc5\x5a\x03\x8d\x79\x7f\xe3\xf6\xc3", p, q, g, b"\x6b\xc3\x6c\xb3\xfa\x61\xce\xcc\x15\x7b\xe0\x86\x39\xa7\xca\x9e\x3d\xe0\x73\xb8\xa0\xff\x23\x57\x4c\xe5\xab\x0a\x86\x7d\xfd\x60\x66\x9a\x56\xe6\x0d\x1c\x98\x9b\x3a\xf8\xc8\xa4\x3f\x56\x95\xd5\x03\xe3\x09\x89\x63\x99\x0e\x12\xb6\x35\x66\x78\x41\x71\x05\x8e\xac\xe8\x5c\x72\x8c\xd4\xc0\x82\x24\xc7\xa6\xef\xea\x75\xdc\xa2\x0d\xf4\x61\x01\x3c\x75\xf4\x0a\xcb\xc2\x37\x99\xeb\xee\x7f\x33\x61\x33\x6d\xad\xc4\xa5\x6f\x30\x57\x08\x66\x7b\xfe\x60\x2b\x8e\xa7\x5a\x49\x1a\x5c\xf0\xc0\x6e\xbd\x6f\xdc\x71\x61\xe1\x04\x97", b"\x3b\xc2\x9d\xee\x96\x95\x70\x50\xba\x43\x8d\x1b\x3e\x17\xb0\x2c\x17\x25\xd2\x29", b"\x0a\xf8\x79\xcf\x84\x6c\x43\x4e\x08\xfb\x6c\x63\x78\x2f\x4d\x03\xe0\xd8\x88\x65", ); test::( b"\x87\xb6\xe7\x5b\x9f\x8e\x99\xc4\xdd\x62\xad\xb6\x93\xdd\x58\x90\xed\xff\x1b\xd0\x02\x8f\x4e\xf8\x49\xdf\x0f\x1d\x2c\xe6\xb1\x81\xfc\x3a\x55\xae\xa6\xd0\xa1\xf0\xae\xca\xb8\xed\x9e\x24\x8a\x00\xe9\x6b\xe7\x94\xa7\xcf\xba\x12\x46\xef\xb7\x10\xef\x4b\x37\x47\x1c\xef\x0a\x1b\xcf\x55\xce\xbc\x8d\x5a\xd0\x71\x61\x2b\xd2\x37\xef\xed\xd5\x10\x23\x62\xdb\x07\xa1\xe2\xc7\xa6\xf1\x5e\x09\xfe\x64\xba\x42\xb6\x0a\x26\x28\xd8\x69\xae\x05\xef\x61\x1f\xe3\x8d\x9c\xe1\x5e\xee\xc9\xbb\x3d\xec\xc8\xdc\x17\x80\x9f\x3b\x6e\x95", p, q, g, b"\x01\x4a\xc7\x46\xd3\x60\x5e\xfc\xb8\xa2\xc7\xda\xe1\xf5\x46\x82\xa2\x62\xe2\x76\x62\xb2\x52\xc0\x94\x78\xce\x87\xd0\xaa\xa5\x22\xd7\xc2\x00\x04\x34\x06\x01\x6c\x0c\x42\x89\x6d\x21\x75\x0b\x15\xdb\xd5\x7f\x97\x07\xec\x37\xdc\xea\x56\x51\x78\x1b\x67\xad\x8d\x01\xf5\x09\x9f\xe7\x58\x4b\x35\x3b\x64\x1b\xb1\x59\xcc\x71\x7d\x8c\xeb\x18\xb6\x67\x05\xe6\x56\xf3\x36\xf1\x21\x4b\x34\xf0\x35\x7e\x57\x7a\xb8\x36\x41\x96\x9e\x31\x1b\xf4\x0b\xdc\xb3\xff\xd5\xe0\xbb\x59\x41\x9f\x22\x95\x08\xd2\xf4\x32\xcc\x28\x59\xff\x75", b"\x63\x7e\x07\xa5\x77\x0f\x3d\xc6\x5e\x45\x06\xc6\x8c\x77\x0e\x5e\xf6\xb8\xce\xd3", b"\x7d\xfc\x6f\x83\xe2\x4f\x09\x74\x5e\x01\xd3\xf7\xae\x0e\xd1\x47\x4e\x81\x1d\x47", ); test::( b"\x22\x59\xee\xad\x2d\x6b\xbc\x76\xd4\x92\x13\xea\x0d\xc8\xb7\x35\x0a\x97\x69\x9f\x22\x34\x10\x44\xc3\x94\x07\x82\x36\x4a\xc9\xea\x68\x31\x79\xa4\x38\xa5\xea\x45\x99\x8d\xf9\x7c\x29\x72\xda\xe0\x38\x51\xf5\xbe\x23\xfa\x9f\x04\x18\x2e\x79\xdd\xb2\xb5\x6d\xc8\x65\x23\x93\xec\xb2\x7f\x3f\x3b\x7c\x8a\x8d\x76\x1a\x86\xb3\xb8\xf4\xd4\x1a\x07\xb4\xbe\x7d\x02\xfd\xde\xfc\x42\xb9\x28\x12\x4a\x5a\x45\xb9\xf4\x60\x90\x42\x20\x9b\x3a\x7f\x58\x5b\xd5\x14\xcc\x39\xc0\x0e\xff\xcc\x42\xc7\xfe\x70\xfa\x83\xed\xf8\xa3\x2b\xf4", p, q, g, b"\x0f\xe7\x40\x45\xd7\xb0\xd4\x72\x41\x12\x02\x83\x1d\x49\x32\x39\x6f\x24\x2a\x97\x65\xe9\x2b\xe3\x87\xfd\x81\xbb\xe3\x8d\x84\x50\x54\x52\x8b\x34\x8c\x03\x98\x41\x79\xb8\xe5\x05\x67\x4c\xb7\x9d\x88\xcc\x0d\x8d\x3e\x8d\x73\x92\xf9\xaa\x77\x3b\x29\xc2\x9e\x54\xa9\xe3\x26\x40\x60\x75\xd7\x55\xc2\x91\xfc\xed\xbc\xc5\x77\x93\x4c\x82\x4a\xf9\x88\x25\x0f\x64\xed\x56\x85\xfc\xe7\x26\xcf\xf6\x5e\x92\xd7\x08\xae\x11\xcb\xfa\xa9\x58\xab\x8d\x8b\x15\x34\x0a\x29\xa1\x37\xb5\xb4\x35\x7f\x7e\xd1\xc7\xa5\x19\x0c\xbf\x98\xa4", b"\x83\x36\x6b\xa3\xfe\xd9\x3d\xfb\x38\xd5\x41\x20\x3e\xcb\xf8\x1c\x36\x39\x98\xe2", b"\x1f\xe2\x99\xc3\x6a\x13\x32\xf2\x3b\xf2\xe1\x0a\x6c\x6a\x4e\x0d\x3c\xdd\x2b\xf4", ); test::( b"\x21\x9e\x8d\xf5\xbf\x88\x15\x90\x43\x0e\xce\x60\x82\x50\xf7\x67\x0d\xc5\x65\x37\x24\x93\x02\x42\x9e\x28\xec\xfe\xb9\xce\xaa\xa5\x49\x10\xa6\x94\x90\xf7\x65\xf3\xdf\x82\xe8\xb0\x1c\xd7\xd7\x6e\x56\x1d\x0f\x6c\xe2\x26\xef\x3c\xf7\x52\xca\xda\x6f\xeb\xdc\x5b\xf0\x0d\x67\x94\x7f\x92\xd4\x20\x51\x6b\x9e\x37\xc9\x6c\x8f\x1f\x2d\xa0\xb0\x75\x09\x7c\x3b\xda\x75\x8a\x8d\x91\xbd\x2e\xbe\x9c\x75\xcf\x14\x7f\x25\x4c\x25\x69\x63\xb3\x3b\x67\xd0\x2b\x6a\xa0\x9e\x7d\x74\x65\xd0\x38\xe5\x01\x95\xec\xe4\x18\x9b\x41\xe7\x68", p, q, g, b"\x3a\x41\xb0\x67\x8f\xf3\xc4\xdd\xe2\x0f\xa3\x97\x72\xba\xc3\x1a\x2f\x18\xba\xe4\xbe\xde\xc9\xe1\x2e\xe8\xe0\x2e\x30\xe5\x56\xb1\xa1\x36\x01\x3b\xef\x96\xb0\xd3\x0b\x56\x82\x33\xdc\xec\xc7\x1e\x48\x5e\xd7\x5c\x92\x2a\xfb\x4d\x06\x54\xe7\x09\xbe\xe8\x49\x93\x79\x21\x30\x22\x0e\x30\x05\xfd\xb0\x6e\xbd\xfc\x0e\x2d\xf1\x63\xb5\xec\x42\x4e\x83\x64\x65\xac\xd6\xd9\x2e\x24\x3c\x86\xf2\xb9\x4b\x26\xb8\xd7\x3b\xd9\xcf\x72\x2c\x75\x7e\x0b\x80\xb0\xaf\x16\xf1\x85\xde\x70\xe8\xca\x85\x0b\x14\x02\xd1\x26\xea\x60\xf3\x09", b"\x57\x97\x61\x03\x9a\xe0\xdd\xb8\x11\x06\xbf\x49\x68\xe3\x20\x08\x3b\xbc\xb9\x47", b"\x50\x3e\xa1\x5d\xba\xc9\xde\xde\xba\x91\x7f\xa8\xe9\xf3\x86\xb9\x3a\xa3\x03\x53", ); test::( b"\x2d\xa7\x9d\x06\x78\x85\xeb\x3c\xcf\x5e\x29\x3a\xe3\xb1\xd8\x22\x53\x22\x20\x3a\xbb\x5a\xdf\xde\x3b\x0f\x53\xbb\xe2\x4c\x4f\xe0\x01\x54\x1e\x11\x83\xd8\x70\xa9\x97\xf1\xf9\x46\x01\x00\xb5\xd7\x11\x92\x31\x80\x15\x43\x45\x28\x7a\x02\x14\xcf\x1c\xac\x37\xb7\xa4\x7d\xfb\xb2\xa0\xe8\xce\x49\x16\xf9\x4e\xbd\x6f\xa5\x4e\x31\x5b\x7a\x8e\xb5\xb6\x3c\xd9\x54\xc5\xba\x05\xc1\xbf\x7e\x33\xa4\xe8\xa1\x51\xf3\x2d\x28\x77\xb0\x17\x29\xc1\xad\x0e\x7c\x01\xbb\x8a\xe7\x23\xc9\x95\x18\x38\x03\xe4\x56\x36\x52\x0e\xa3\x8c\xa1", p, q, g, b"\x56\xf7\x27\x22\x10\xf3\x16\xc5\x1a\xf8\xbf\xc4\x5a\x42\x1f\xd4\xe9\xb1\x04\x38\x53\x27\x1b\x7e\x79\xf4\x09\x36\xf0\xad\xcf\x26\x2a\x86\x09\x7a\xa8\x6e\x19\xe6\xcb\x53\x07\x68\x5d\x86\x3d\xba\x76\x13\x42\xdb\x6c\x97\x3b\x38\x49\xb1\xe0\x60\xac\xa9\x26\xf4\x1f\xe0\x73\x23\x60\x10\x62\x51\x5a\xe8\x5f\x31\x72\xb8\xf3\x48\x99\xc6\x21\xd5\x9f\xa2\x1f\x73\xd5\xae\x97\xa3\xde\xb5\xe8\x40\xb2\x5a\x18\xfd\x58\x08\x62\xfd\x7b\x1c\xf4\x16\xc7\xae\x9f\xc5\x84\x2a\x01\x97\xfd\xb0\xc5\x17\x3f\xf4\xa4\xf1\x02\xa8\xcf\x89", b"\x5d\xd9\x0d\x69\xad\xd6\x7a\x5f\xae\x13\x8e\xec\x1a\xaf\xf0\x22\x9a\xa4\xaf\xc4", b"\x47\xf3\x9c\x4d\xb2\x38\x7f\x10\x76\x2f\x45\xb8\x0d\xfd\x02\x79\x06\xd7\xef\x04", ); test::( b"\xba\x30\xd8\x5b\xe3\x57\xe7\xfb\x29\xf8\xa0\x7e\x1f\x12\x7b\xaa\xa2\x4b\x2e\xe0\x27\xf6\x4c\xb5\xef\xee\xc6\xaa\xea\xbc\xc7\x34\x5c\x5d\x55\x6e\xbf\x4b\xdc\x7a\x61\xc7\x7c\x7b\x7e\xa4\x3c\x73\xba\xbc\x18\xf7\xb4\x80\x77\x22\xda\x23\x9e\x45\xdd\xf2\x49\x84\x9c\xbb\xfe\x35\x07\x11\x2e\xbf\x87\xd7\xef\x56\x0c\x2e\x7d\x39\x1e\xd8\x42\x4f\x87\x10\xce\xa4\x16\x85\x14\x3e\x30\x06\xf8\x1b\x68\xfb\xb4\xd5\xf9\x64\x4c\x7c\xd1\x0f\x70\x92\xef\x24\x39\xb8\xd1\x8c\x0d\xf6\x55\xe0\x02\x89\x37\x2a\x41\x66\x38\x5d\x64\x0c", p, q, g, b"\x09\x42\xa5\xb7\xa7\x2a\xb1\x16\xea\xd2\x93\x08\xcf\x65\x8d\xfe\x3d\x55\xd5\xd6\x1a\xfe\xd9\xe3\x83\x6e\x64\x23\x7f\x9d\x68\x84\xfd\xd8\x27\xd2\xd5\x89\x0c\x9a\x41\xae\x88\xe7\xa6\x9f\xc9\xf3\x45\xad\xe9\xc4\x80\xc6\xf0\x8c\xff\x06\x7c\x18\x32\x14\xc2\x27\x23\x6c\xed\xb6\xdd\x12\x83\xca\x2a\x60\x25\x74\xe8\x32\x75\x10\x22\x1d\x4c\x27\xb1\x62\x14\x3b\x70\x02\xd8\xc7\x26\x91\x68\x26\x26\x59\x37\xb8\x7b\xe9\xd5\xec\x6d\x7b\xd2\x8f\xb0\x15\xf8\x4e\x0a\xb7\x30\xda\x7a\x4e\xaf\x4e\xf3\x17\x4b\xf0\xa2\x2a\x63\x92", b"\x44\x84\x34\xb2\x14\xee\xe3\x8b\xde\x08\x0f\x8e\xc4\x33\xe8\xd1\x9b\x3d\xdf\x0d", b"\x0c\x02\xe8\x81\xb7\x77\x92\x3f\xe0\xea\x67\x4f\x26\x21\x29\x8e\x00\x19\x9d\x5f", ); test::( b"\x83\x49\x9e\xfb\x06\xbb\x7f\xf0\x2f\xfb\x46\xc2\x78\xa5\xe9\x26\x30\xac\x5b\xc3\xf9\xe5\x3d\xd2\xe7\x8f\xf1\x5e\x36\x8c\x7e\x31\xaa\xd7\x7c\xf7\x71\xf3\x5f\xa0\x2d\x0b\x5f\x13\x52\x08\xa4\xaf\xdd\x86\x7b\xb2\xec\x26\xea\x2e\x7d\xd6\x4c\xde\xf2\x37\x50\x8a\x38\xb2\x7f\x39\xd8\xb2\x2d\x45\xca\xc5\xa6\x8a\x90\xb6\xea\x76\x05\x86\x45\xf6\x35\x6a\x93\x44\xd3\x6f\x00\xec\x66\x52\xea\xa4\xe9\xba\xe7\xb6\x94\xf9\xf1\xfc\x8c\x6c\x5e\x86\xfa\xdc\x7b\x27\xa2\x19\xb5\xc1\xb2\xae\x80\xa7\x25\xe5\xf6\x11\x65\xfe\x2e\xdc", p, q, g, b"\xa0\x15\x42\xc3\xda\x41\x0d\xd5\x79\x30\xca\x72\x4f\x0f\x50\x7c\x4d\xf4\x3d\x55\x3c\x7f\x69\x45\x99\x39\x68\x59\x41\xce\xb9\x5c\x7d\xcc\x3f\x17\x5a\x40\x3b\x35\x96\x21\xc0\xd4\x32\x8e\x98\xf1\x5f\x33\x0a\x63\x86\x5b\xaf\x3e\x7e\xb1\x60\x4a\x07\x15\xe1\x6e\xed\x64\xfd\x14\xb3\x5d\x3a\x53\x42\x59\xa6\xa7\xdd\xf8\x88\xc4\xdb\xb5\xf5\x1b\xbc\x6e\xd3\x39\xe5\xbb\x2a\x23\x9d\x5c\xfe\x21\x00\xac\x8e\x2f\x9c\x16\xe5\x36\xf2\x51\x19\xab\x43\x58\x43\xaf\x27\xdc\x33\x41\x4a\x9e\x46\x02\xf9\x6d\x7c\x94\xd6\x02\x1c\xec", b"\x8c\x2f\xab\x48\x9c\x34\x67\x21\x40\x41\x5d\x41\xa6\x5c\xef\x1e\x70\x19\x2e\x23", b"\x3d\xf8\x6a\x9e\x2e\xfe\x94\x4a\x1c\x7e\xa9\xc3\x0c\xac\x33\x1d\x00\x59\x9a\x0e", ); test::( b"\xf2\x3e\xe7\x9e\xb4\xfc\xe5\xcb\xf3\xb0\x8d\x65\xa1\x80\x3d\x2e\x3e\x19\x1d\x35\x80\xa4\x4d\x17\x7d\x8f\xf0\x69\xf9\x07\x84\xd0\x12\xca\x57\x46\xe6\xdd\x66\x38\xdf\xe8\x41\x3f\x1d\xb3\xd8\xfe\x28\x2c\x21\x60\xf5\xdd\x96\x60\x7d\xd6\x3d\x61\x0f\x79\x1d\xfc\x10\xab\xad\x18\x72\x15\x87\x10\x1c\xec\x8a\x2a\x12\x91\x3c\xfb\xad\xa3\xa5\xb7\x59\x39\x58\xb9\xbf\xa6\xe9\xaf\x3a\xf5\xd7\x1f\xf1\x7e\xc7\x2a\xaa\xee\xca\xaf\xfc\x5d\x17\x4e\x62\x9a\x09\x02\x97\xe9\x4c\xdf\xe9\x88\xd9\xbf\x6c\x80\x82\x7c\x23\xdf\x51\x37", p, q, g, b"\x22\x9a\x26\xdc\xaf\xf2\x9e\xd1\xa7\x26\x4e\xd0\xf7\x7d\x67\x62\x39\xb9\xba\x1e\xf4\x77\x8e\x7d\xd6\x40\xe8\xaa\x6f\xab\xdc\x1f\x1b\xd3\xf5\x82\xe2\x11\xbd\x01\xc2\x6b\x3d\x9d\x3b\xff\xe7\x19\x9f\x9e\xd4\x5d\x76\x4c\xd9\xd0\xe8\x44\xb3\x85\xcb\x34\xe6\xde\x22\x37\x0e\xbc\x6b\xa4\x1d\xb4\x09\xd6\x3f\x50\xc1\xac\x09\xbe\xd0\x0c\xdc\x2b\x7c\x55\x22\x3c\x59\x6b\x7e\x13\x3b\xa2\x5b\xa9\xe7\x8f\x33\x50\x2f\x8d\xd5\x2f\x32\xa6\x67\xa7\x68\x3e\x50\x40\x47\x81\x79\x63\x23\x8d\x96\x29\xa9\x18\xa0\xce\xeb\xaa\xd5\x18", b"\x8d\x38\x8e\xc7\xf2\x86\x3d\xd5\xb7\xc9\x9a\xc9\x35\x05\xd1\x58\x0b\xf2\xe0\xc7", b"\x76\xae\x93\x17\x69\x6d\x37\xf2\xd8\xbd\x61\xc4\x77\x33\xe9\x45\x5b\x61\xd3\x47", ); test::( b"\x68\x36\x25\x5e\x6e\x65\x9d\xe4\xff\xb5\x35\x89\x2d\x46\x6a\x3b\xea\x09\x69\x3e\x58\x7e\xb5\xbd\x50\xf4\x4f\x8a\x22\xf1\x16\x97\x05\x7d\x68\x66\x0b\xc6\x56\x24\x00\xd5\x87\xba\xac\x1c\x19\xd3\x30\xff\x79\x4a\x70\xdf\x53\x00\xa5\x21\x1c\x72\x54\x1a\x56\xd0\xff\x2a\xf0\x2a\x27\x8e\xd2\xdb\x1d\xf9\x4c\xcb\x20\x26\xd3\x13\x8b\x2d\x92\x42\x45\x02\x1e\xe8\x35\xd3\xc1\x7b\x0b\x3b\x76\x77\xde\xf8\x56\x11\x22\x7f\x6c\xe2\x91\x3e\x7c\xb4\x46\xa4\x79\xb9\x5a\xcf\xd0\x10\x5c\x25\xe4\x65\x6f\xbc\x56\xc2\xa1\x0a\x22\xb3", p, q, g, b"\xa7\xbb\xc3\x54\x23\x51\x0e\xdf\xeb\xf7\x9c\x4e\x2e\x56\x98\x6f\x28\x06\xd1\x11\x16\xbc\xae\x90\xa7\x16\xf0\x5d\xcb\xfc\x46\xdc\xbf\xeb\xe2\xec\x94\x6c\x40\xf9\xcc\x8c\x1a\x74\x39\xcd\xd0\x4e\x27\x01\x22\xec\x1c\x3b\xac\xa8\x38\x11\xa9\xf1\xbd\xae\xd9\xb1\x17\x21\x50\xaf\x1c\x8c\xe1\xc5\xd5\x02\xdf\xe5\xf4\xe8\x46\x7e\x50\x60\x50\x87\xa8\xf8\xc5\xf4\x5c\xa6\x72\xfd\x04\x9e\xec\x0a\x06\xf5\xe0\x1f\x78\x2d\x51\xf3\xba\x56\x40\x4b\xf1\x38\x80\x65\x55\x2f\xc8\x7a\xd2\x1a\xc0\xfa\x40\x27\xa1\x45\xd0\xb0\xd9\xe6", b"\xc0\xab\x43\xd3\x09\xa5\xe9\x4b\x6e\xf4\xdb\x99\x43\x30\x6e\x6d\x96\x6f\xc9\xb5", b"\x07\xec\x5a\xa1\x92\x8f\x19\xfc\x3a\x42\x0f\x29\xb9\x35\xba\xc4\x61\x24\xc0\xe2", ); test::( b"\x4b\x08\x45\xc9\x9d\xb3\x48\x29\x4f\x1d\x83\x16\x6b\x27\xf4\x48\xec\x29\xab\x79\x65\x46\x44\x77\xf4\x54\x44\xf4\x46\x72\xa4\x09\xdd\xca\xfa\xf3\x5e\x91\xfa\xf4\x01\xec\xa7\x49\x8e\x32\x68\xca\xa2\xd9\x6b\xf1\xaa\x84\x0c\x0e\x1e\xd4\x3a\x5a\xb6\x08\x88\xfc\xf0\x2b\x2f\x8a\x2c\x89\xda\xa5\x98\xad\xf0\xb7\xd2\xda\xce\x92\x10\xef\xd4\x1a\xb4\x96\xa1\xe7\x3a\x18\x2d\xa4\x30\xc1\xd0\x43\xe2\x49\xa1\x28\x9c\x91\x80\x9c\x8c\x72\x98\xcf\xdb\xb0\xae\x43\x8b\x00\x93\x6c\x28\x3a\x0e\xc2\xd7\x9c\xdc\x81\xc9\xce\x3c\x2d", p, q, g, b"\x54\x1a\x9c\x45\xe1\x65\xd3\xd9\x1e\x71\xbb\x13\x70\xd7\xc0\x32\xc3\x60\x32\x2a\xa1\x5e\x99\xd8\xc1\xc1\x6e\xa3\x5c\x8c\x19\x32\x24\xa0\x64\x67\xab\x77\xa6\x54\x78\xc4\x67\xb3\xf2\x0c\xb0\xc5\xfd\xb8\xc8\x4c\xef\xa6\x95\x66\xa5\x94\xa2\xaa\x54\xc3\xa9\x48\xeb\xc1\xea\x7e\x6c\x3d\x28\xd3\x80\xcb\xd0\x17\x40\x63\x4c\x96\xb7\x6d\x6a\x03\xcc\x6e\xba\x0a\xfa\x72\x26\xf2\x3f\xc1\x0a\x18\xb0\xb6\xf9\x72\x70\xdf\xa0\x38\x16\x09\x60\xb5\xb8\x39\xba\x66\xaf\x50\xfd\xa0\x72\x45\x81\x0e\x80\xd3\x8b\x66\x93\xe8\xa9\xce", b"\x44\x28\x60\x19\xc1\xd5\x31\x03\x98\x06\x16\x94\x0c\x02\x8b\xad\x32\x17\xf7\x8d", b"\x4b\x37\x2b\xf5\x27\xc5\x15\xf5\x80\x25\x69\x9a\x45\xf2\x02\x1e\xf1\x8e\x11\xb9", ); test::( b"\x45\x97\xc1\xca\x0b\x07\x64\xbe\x31\xfa\x73\xcc\xc5\x89\x11\x6c\xc8\xd0\xa3\x16\x05\xf2\x55\x0e\xb3\x7f\xa5\x69\xb2\x49\x6c\x4f\x34\x32\x1d\x61\xbb\x8e\x49\xf8\x58\xc8\x67\x1b\x74\x37\xfc\x15\xf2\x69\xdd\x2d\x41\x46\x47\x0b\x81\x7d\xfe\x30\x69\x22\x5d\xdd\x3c\xd4\xa6\xc9\x77\xfb\x6c\xfc\x0d\x43\x26\x4a\x7b\xf6\x65\x92\x83\xe1\x40\xe4\xc8\x9a\xb2\xe8\xa4\xd0\xed\xe6\x27\x49\x61\xd6\x55\xbd\x79\xc7\xe4\x78\x80\xa7\x41\xfb\x01\x80\xc3\x25\xb5\xb7\xd2\xf7\xb8\xa5\x7a\xed\x52\xd0\x20\x6a\x83\xbb\x69\xa9\xd7\xa4", p, q, g, b"\x53\x15\xad\xf9\x0e\x19\x69\x46\xbe\x6b\x04\xc5\x41\x4d\xa1\xfa\xfd\x98\xb0\xd1\x7c\x3a\x39\x00\x0a\x00\x09\x1b\x7b\x56\x57\x4b\x1e\xcd\x02\x6e\xab\xb2\x5b\xe9\xec\xd0\xad\x69\x1d\xf2\xb7\xbf\x7e\xec\xd6\xad\x95\xbb\x4d\x7d\x17\xac\x74\x70\x60\xee\x7e\x3e\xb5\xc6\xfb\x75\x57\xcf\x7e\x80\x03\xa6\x20\xe4\x3e\x58\x7d\x06\x12\x85\x44\x72\xc3\xad\x85\x18\x39\xf7\x44\x15\x94\x11\xa3\x38\x76\xae\xc3\x65\xeb\x04\x91\xde\xc8\x0b\xa1\x4c\xba\x2d\x11\xde\xc4\x2a\xf4\xa4\xbf\x9c\x99\x31\x2a\x2a\xe7\xe5\x46\x2a\x2a\xdf", b"\x90\xd5\x47\x71\x2b\xc0\xce\xbb\xd3\xeb\xd1\x8a\x63\xd9\xb9\x2a\x03\x95\x30\x50", b"\x34\xea\x61\x76\xb4\xc6\x30\x43\x29\x5f\x12\x9a\x48\x95\xe1\x4e\xe5\x81\x65\x63", ); test::( b"\x18\xc6\x2a\x40\xb5\x23\x47\xa4\x73\xf5\x7a\xa6\x68\xee\xbb\x44\x84\xbe\xb5\xf1\x0f\xdc\x51\x77\x9e\x67\x70\x10\x6c\x0d\x12\x2e\xb6\x35\x6a\xe5\x3a\x33\x79\xe2\x70\xed\xca\x39\x01\x5d\xa3\x00\x57\x70\xc7\xb2\xa5\xaf\xd1\x12\x17\x99\x31\x53\xff\x43\xa0\xb2\x6d\xb0\x1a\xa2\xa4\x93\xde\x06\x14\x92\xa0\xaa\x3f\x22\x9b\x5a\xbd\x1a\xff\x29\x39\x5e\x31\xb0\x63\x50\x4e\xb3\x56\x20\x21\x9b\xa2\x99\x97\xf9\x2a\x52\xe1\xb2\xe6\xff\x20\x74\x80\xfd\x13\xd5\x8f\xf0\x29\x0e\xec\x5a\xab\xf2\x3b\x84\x94\x3e\xea\x20\xa4\x3c", p, q, g, b"\x3b\x73\x82\x46\xf9\xe3\x8c\xeb\xf4\x54\x2c\xed\x3f\xc0\xc0\x09\x6a\xeb\x9e\x9a\x3a\xd9\x28\xf4\xdd\x47\x45\xd8\x75\xfe\x6e\x20\xfb\x65\x55\x6d\x06\x69\x64\x32\xec\xff\xd5\x5b\x33\x49\x40\xc6\xe2\x3c\x90\x3f\x0a\xa4\xa1\x33\x5f\x73\x94\xc5\x50\x70\x58\x6b\xaa\xc8\x6c\x38\xcc\x19\x8e\xba\xf1\x54\x01\x25\x95\x28\xc5\x51\x92\xe9\x29\x8d\x2a\x0c\x89\x14\xda\xf2\xad\x00\x25\x9f\xe7\x25\x55\xc3\xc0\x44\x2e\x38\xc1\xe6\xe5\x02\x09\x28\xc6\xe6\x57\x1a\x0a\x98\xf6\xf4\x85\xe4\x37\x91\xae\x8a\xaa\xb1\x80\x46\x1f\xa4", b"\x29\xb7\xc0\xf9\x0d\x62\x4f\x8d\x58\x7e\xfd\x3f\x49\xf9\x7d\xa7\x0f\x6e\x63\xe7", b"\x22\x2a\x3d\x9f\xfc\xa0\xdc\xf5\x79\x37\xe8\x9c\x92\x53\x8e\x32\xe7\xa8\x68\x0f", ); // [mod = L=1024, N=160, SHA-224] let p = b"\x8b\x9b\x32\xf5\xba\x38\xfa\xad\x5e\x0d\x50\x6e\xb5\x55\x54\x0d\x0d\x79\x63\x19\x55\x58\xca\x30\x8b\x74\x66\x22\x8d\x92\xa1\x7b\x3b\x14\xb8\xe0\xab\x77\xa9\xf3\xb2\x95\x9a\x09\x84\x8a\xa6\x9f\x8d\xf9\x2c\xd9\xe9\xed\xef\x0a\xdf\x79\x2c\xe7\x7b\xfc\xec\xca\xdd\x93\x52\x70\x0c\xa5\xfa\xec\xf1\x81\xfa\x0c\x32\x6d\xb1\xd6\xe5\xd3\x52\x45\x80\x11\xe5\x1b\xd3\x24\x8f\x4e\x3b\xd7\xc8\x20\xd7\xe0\xa8\x19\x32\xac\xa1\xeb\xa3\x90\x17\x5e\x53\xea\xda\x19\x72\x23\x67\x4e\x39\x00\x26\x3e\x90\xf7\x2d\x94\xe7\x44\x7b\xff"; let q = b"\xbc\x55\x0e\x96\x56\x47\xfb\x3a\x20\xf2\x45\xec\x84\x75\x62\x4a\xbb\xb2\x6e\xdd"; let g = b"\x11\x33\x3a\x93\x1f\xba\x50\x34\x87\x77\x73\x76\x85\x9f\xdc\x12\xf7\xc6\x87\xb0\x94\x8a\xe8\x89\xd2\x87\xf1\xb7\xa7\x12\xad\x22\x0a\xe4\xf1\xce\x37\x9d\x0d\xbb\x5c\x9a\xbf\x41\x96\x21\xf0\x05\xfc\x12\x3c\x32\x7e\x50\x55\xd1\x85\x06\x34\xc3\x6d\x39\x7e\x68\x9e\x11\x1d\x59\x8c\x1c\x36\x36\xb9\x40\xc8\x4f\x42\xf4\x36\x84\x6e\x8e\x7f\xca\xd9\x01\x2c\xed\xa3\x98\x72\x0f\x32\xff\xfd\x1a\x45\xab\x61\x36\xce\x41\x70\x69\x20\x7a\xc1\x40\x67\x5b\x8f\x86\xdd\x06\x39\x15\xae\x6f\x62\xb0\xce\xc7\x29\xfb\xd5\x09\xac\x17"; test::( b"\xfb\x21\x28\x05\x25\x09\x48\x8c\xad\x07\x45\xed\x3e\x63\x12\x85\x0d\xd9\x6d\xda\xf7\x91\xf1\xe6\x24\xe2\x2a\x6b\x9b\xea\xa6\x53\x19\xc3\x25\xc7\x8e\xf5\x9c\xac\xba\x0c\xcf\xa7\x22\x25\x9f\x24\xf9\x2c\x17\xb7\x7a\x8f\x6d\x8e\x97\xc9\x3d\x88\x0d\x2d\x8d\xbb\xbe\xdc\xf6\xac\xef\xa0\x6b\x0e\x47\x6c\xa2\x01\x3d\x03\x94\xbd\x90\xd5\x6c\x10\x62\x6e\xf4\x3c\xea\x79\xd1\xef\x0b\xc7\xac\x45\x2b\xf9\xb9\xac\xae\xf7\x03\x25\xe0\x55\xac\x00\x6d\x34\x02\x4b\x32\x20\x4a\xbe\xa4\xbe\x5f\xaa\xe0\xa6\xd4\x6d\x36\x5e\xd0\xd9", p, q, g, b"\x7e\x33\x9f\x37\x57\x45\x03\x90\x16\x0e\x02\x29\x15\x59\xf3\x0b\xed\x0b\x2d\x75\x8c\x5c\xcc\x2d\x8d\x45\x62\x32\xbb\x43\x5a\xe4\x9d\xe7\xe7\x95\x7e\x3a\xad\x9b\xfd\xcf\x6f\xd5\xd9\xb6\xee\x3b\x52\x1b\xc2\x22\x9a\x84\x21\xdc\x2a\xa5\x9b\x99\x52\x34\x5a\x8f\xc1\xde\x49\xb3\x48\x00\x3a\x9b\x18\xda\x64\x2d\x7f\x6f\x56\xe3\xbc\x66\x51\x31\xae\x97\x62\x08\x8a\x93\x78\x6f\x7b\x4b\x72\xa4\xbc\xc3\x08\xc6\x7e\x25\x32\xa3\xa5\xbf\x09\x65\x20\x55\xcc\x26\xbf\x3b\x18\x83\x35\x98\xcf\xfd\x70\x11\xf2\x28\x5f\x79\x45\x57", b"\xaf\xee\x71\x9e\x7f\x84\x8b\x54\x34\x9c\xcc\x3b\x4f\xb2\x60\x65\x83\x3a\x4d\x8e", b"\x73\x4e\xfe\x99\x22\x56\xf3\x13\x25\xe7\x49\xbc\x32\xa2\x4a\x1f\x95\x7b\x3a\x1b", ); test::( b"\x02\x97\x1e\x0c\xdd\x48\xae\x23\x31\xdb\x9c\x62\x85\xe9\x88\x0e\x96\x10\x4f\xa7\xa9\xf3\x78\xdf\xea\x71\x8e\x63\xef\xe9\x83\x52\xfe\x4d\x35\xa2\xbc\x94\xb3\xa8\x88\xcf\xb8\x8b\x8b\x7d\x9f\x6c\x8c\x54\xe4\x86\x13\xf3\x2c\x99\x46\xff\xe6\xe9\xa4\xb7\x10\x8e\xce\xcd\xda\x41\xbc\x15\x1b\x3d\x87\x24\xb6\x1f\x5b\x83\xa4\xe2\x74\x76\x91\x43\x87\xb0\x48\x8e\x41\xbe\x54\xf6\x3a\xa7\x73\x17\x5e\xb3\x73\xa3\x64\x1e\x6e\x79\x50\xee\xe8\xfa\xf0\x48\xa8\x41\xf1\x07\xd3\x0c\xf9\xbe\x26\x84\x93\x23\x15\x45\xd8\x98\x46\x94", p, q, g, b"\x63\x3b\xb7\x57\xb3\xc0\xe3\xb7\x86\x7b\xf8\x45\x30\x1e\xa4\xe3\x9f\x75\xc9\x75\x9c\x22\x3f\x46\xce\x26\x6d\x40\x6b\x9d\xf5\xdb\x50\x1f\xb8\x26\xb6\xe6\x1c\xba\x61\x04\xc6\x04\x45\x8c\x90\x79\x9f\x2a\x36\xab\x51\x16\x6d\x0e\x83\xb7\x70\x84\x06\x24\xfe\xdc\x35\xeb\xfb\x98\x53\x41\x9e\x7e\x09\xb3\x2b\x4b\xd6\x52\xda\x4f\x1c\xe9\x73\xac\x26\x20\xc9\x66\xb6\x1e\x35\xa3\xf2\x16\x43\x9a\x8d\xe1\xa1\x04\xf1\x72\xe1\xb6\xe2\x87\x81\x12\xa6\x6c\x34\xd1\x6a\x9a\xef\x3a\xc2\x4a\x34\xaf\x5e\xdb\xf3\x98\x18\xa3\xe2\xef", b"\x92\xc6\x5e\x07\x46\x2d\x66\x8b\x06\xdd\x45\xb6\x08\x78\x49\x65\x89\x78\x38\xbc", b"\x2e\x40\xad\xf4\x1c\xaf\xb8\x04\x8c\x79\x3c\x70\x92\xa7\xe8\x23\x51\x5b\x6c\xfa", ); test::( b"\x06\x2e\x82\xfb\x43\x23\x6e\xe1\x7e\xbf\xaa\x3d\x36\x3b\x9b\x87\x3d\x0f\xe4\x14\x44\xc7\x4c\xef\x7f\x7e\x3b\xd8\x1f\x72\x3f\xd9\x0f\xd1\x48\xa2\x8e\x99\x75\x85\x41\x36\x95\x11\x37\x57\x75\x8a\xa4\xdd\x27\x5f\x70\xb3\x75\xf8\x90\x3c\x7b\xe4\x6e\x3a\x3a\xd3\x19\x0c\xd0\x49\x71\xab\xd2\xf1\xdb\x19\x2e\xf0\xd2\xb9\x8b\xbb\x80\x18\x1a\x72\x1a\x58\x09\x92\x8b\x5b\xca\x5c\x11\x8a\x29\x11\x13\x2a\xd2\x33\xcd\x27\xc7\xe4\x1a\xdf\xcc\xfe\xb4\xe9\x52\x87\x4b\xfa\x81\x96\x61\x18\x29\x75\xe4\x4d\x37\xc6\x17\x34\x75\x9c", p, q, g, b"\x3b\x0a\x09\x1d\xfc\xa0\x5d\xce\x61\xe9\xf0\x5b\x15\xb0\x74\x87\xd2\xe3\xea\x4f\x56\x8d\xc9\xac\x75\x2d\x42\xc0\xaa\x77\x1a\xe0\xcc\xc3\x72\xce\x97\x74\xfb\x9f\xd1\x6a\x30\xcb\x37\x59\xbb\x19\x89\x48\x8c\xe8\x5d\xb7\xcd\xfa\x50\x64\x76\xac\xec\x64\x4c\x21\x16\x8f\x2d\xb1\xf3\x6e\xfe\x02\x30\xc6\xfb\x8f\x1f\x2a\xe4\xea\xf1\x79\x9d\x5e\x29\xe2\x12\x46\x7b\x11\xbf\xbc\x1e\xeb\xed\x14\x2d\x7a\x01\x72\x62\xcd\x87\x35\xe3\xe2\x9d\x8e\x0c\x4a\x6e\x76\x6c\x07\xd7\xaa\x9f\x8d\x17\x6f\x53\x60\x87\xbf\xec\xf4\xc4\x14", b"\xba\x55\x41\x24\x87\x4d\x06\xa6\xce\xf6\x27\x40\xe1\x58\x21\xcc\xdd\xbf\xe6\xf3", b"\x59\x62\xbe\x75\x7d\x75\xb0\xf1\x7d\x15\x48\x2e\xbb\x59\x5c\xa4\xe9\xfb\xfe\x22", ); test::( b"\x4f\xca\x07\x48\x44\xea\xe2\x47\xd1\x9c\x06\xe9\x20\x32\xae\x8e\x77\x30\x43\xe2\xe1\xf4\x5d\x40\x0e\x9d\xce\xbb\xde\x5d\x65\xe7\xc1\x42\x3b\x03\x90\x16\x19\x91\xc0\x26\xf3\x8a\x0e\x2b\xfe\xef\x40\xda\xe1\x87\x41\x73\x7b\x1d\x53\x5a\xb4\x6b\x56\x6a\x1b\x67\x2f\xc2\x2d\xec\x86\x74\x7a\x7c\x76\x38\xfa\x65\x04\x7f\x1e\xde\x36\xad\x43\xf6\xae\xdf\x51\xb5\xbf\x29\x79\xad\xf4\xd9\xa9\x4e\xd8\x02\xa2\x9d\xe5\x60\x3b\x70\x47\x70\xb3\x2c\x8b\x94\x6a\x32\xe1\xb6\x05\x4c\xd7\x0c\x3a\xdd\x02\x5c\xc9\x37\x1d\x1e\x40\x4d", p, q, g, b"\x40\xb6\x38\xc9\x4b\x1e\x71\x9a\x33\x7d\x83\x35\x86\x99\xc7\x0c\xd8\x67\xff\x88\x8c\x65\x5a\x5f\x5a\x1d\xe8\x73\x2d\x05\x8b\xf0\x27\xd4\x74\x7e\xfe\x3b\x8d\xed\xca\x32\x76\xde\x5a\x58\xf1\x36\xed\x35\xcf\xf0\x30\x30\xf6\x72\xda\x65\xc7\x1f\x18\xe5\x82\x78\xdd\xfc\x7b\x9b\x50\xa2\x48\xef\xf9\x23\x68\x74\xee\x3c\xb0\xd0\xa3\x5b\x7b\x2e\xe1\x85\xb1\x39\xea\x84\xee\xd7\xbf\xfc\x50\x94\xab\x87\x43\xa7\x53\x74\xbc\x36\xc7\xd6\x9d\x5f\x3e\x6f\xe5\xf3\xef\x1f\x93\x58\xf0\x0a\x3c\x58\x92\xff\xf4\x1e\xd6\xaf\xee\x3b", b"\x65\x1a\x38\x9d\x8c\xa5\x0d\x6e\x32\x73\xca\xbb\xe7\x1c\xd8\x4c\xcc\xd0\x23\x61", b"\x34\x01\xfe\x47\xb3\x81\x2d\xaa\x8c\x02\x0c\x9b\xd4\x26\x09\xcb\xeb\xdf\xa7\x28", ); test::( b"\x4d\x96\x30\xfe\x05\x89\x98\xca\x5b\x80\xae\x62\xf3\xf7\x3d\xc8\x5b\xee\x29\x15\x09\x84\x3a\xc0\x02\x40\xd1\x3d\x55\x25\x1a\xe5\x3b\x37\x79\x47\x83\xb9\x7d\x53\xe0\x42\xca\xb2\x6f\x8c\x84\xde\x0a\x70\xf5\xb4\x30\x51\xfb\xef\xb3\xe4\x3f\x08\xf5\xd2\xe8\xaa\xd9\xe2\xde\x27\x17\x41\x2d\xbb\x90\x2a\xcc\x88\x49\xad\xc0\x4d\x06\xfe\xd8\xc1\x42\x1c\x4c\xfe\x8b\x81\xee\x7f\x5a\xc5\xd4\xf0\xc0\xb6\x8e\x80\xb6\xf8\x8f\xd3\xc7\xd5\xb3\x20\x22\x57\x2b\x0a\x68\x1b\xd2\xd4\xdf\x2d\x04\x7b\x0b\x23\xb6\x88\x71\x45\xaf\xe1", p, q, g, b"\x72\x7b\x65\x28\x35\x7d\x67\x05\xc2\x0d\x31\x35\x8f\x64\x19\x34\xfd\xec\x63\xcc\x66\xdf\x98\x83\x7d\x2f\x37\x81\x64\xe1\x5f\xa0\x84\x22\x07\xac\xf3\x22\x0c\x80\x23\xa9\xf4\xf8\xd2\x05\x71\x65\xb3\xc8\x49\xea\xeb\x53\x76\xe3\xfa\xd1\x17\x85\xf1\xd0\x26\x17\x79\xaa\xed\xd5\x3b\x1e\x52\x79\x80\x07\xeb\x4c\x8e\x83\xb1\xff\x32\x1b\x62\x0d\x88\x33\x91\xa1\x4f\xa4\x7f\xec\x49\x01\xd9\x6e\xc2\x32\xea\xbb\x4a\x0b\xb4\x45\x33\x68\xfe\xf5\x17\x6c\x67\x13\x56\x49\x97\x9d\x32\x14\xd3\xfb\x67\xa1\x31\x9a\xc5\x4f\xeb\x01", b"\x9c\xa3\xe4\x33\x50\x4c\x55\x7b\xa1\xaa\xc6\x64\x69\x78\x11\x75\xcd\xfb\x4a\xd5", b"\x72\x14\x5d\xfa\x52\x79\xdd\x82\xae\x99\x60\x4d\x16\xa2\xb8\xdf\x71\xb9\x53\x20", ); test::( b"\x62\xb9\xd6\x01\xe3\x0b\x42\xa2\x79\xc7\xe0\x4d\xf3\xca\x8d\x81\x40\xa5\x5c\xd5\x87\x6c\x7e\x91\x81\xc7\x35\x75\xe4\xc4\xf9\x21\xa9\x4e\x4e\x2d\x0b\xdd\x7b\xa9\x86\x00\xd6\x52\xe5\xdf\x5b\xe9\x46\x4e\x7a\x90\x11\xab\x48\x69\x60\xf6\x9d\x57\xec\xe1\xd2\xc4\xaf\x93\x24\x45\x7c\x1e\x3d\x83\xfb\xa4\x26\x5b\xeb\x47\x40\x7e\x47\x61\xdb\xc9\x49\xd5\xbd\x67\xfe\xe4\xa4\x76\xa4\xd5\xa9\x3d\x77\xac\xda\x96\xa2\x21\xa0\xa3\x1e\x0f\x02\x4b\x3f\x0b\x82\x34\xc0\x15\x23\x8f\x32\x58\xda\xa0\x85\xae\x9f\x4e\x1a\xa7\xb1\xcc", p, q, g, b"\x5f\x6d\xfb\x06\x4c\xad\xdf\x64\x4a\xf3\x99\xe3\x3a\x67\x25\x65\x76\x67\x61\xd5\x5a\xc0\xb8\x4b\xea\xd4\x2c\x39\x80\xe7\xe3\x96\x04\x37\x44\x36\x17\x78\xf0\x4d\xcb\x69\x8e\x45\x63\x85\x34\x20\xfe\xca\xcd\x59\x4a\xf8\x28\xf5\x7d\xf5\x41\xd9\xe4\xde\x89\x9d\x61\xf0\x4f\x63\x79\xc1\xc9\x62\x46\xd1\x52\x36\x93\x95\x24\x2a\x1c\x2e\x70\xee\xf8\xf3\x54\x17\xa0\xff\xdb\x03\x92\x82\x51\x6c\xe2\x1b\x85\x68\x79\x04\xc5\x11\x08\x7f\x11\x3e\x51\x42\xf0\x27\xf1\x17\x97\x12\xed\xcb\xce\x27\x93\x9a\xb1\x5e\xc4\x9c\x08\x5f", b"\x33\x19\x20\xa7\xb7\x9e\x3c\xfa\x76\x38\xe4\x09\xd9\x70\x2a\xaf\xd0\x8f\xbe\xc6", b"\x07\x1d\x06\xe6\xcd\x30\x15\x15\xf3\x7b\x60\x69\x0a\xfa\x21\x9f\xe5\x08\x3d\x96", ); test::( b"\x00\x06\xe0\x9c\x20\x37\x64\x42\xe6\x89\xbf\x2d\x34\x26\x8f\xd6\x91\x09\xc1\x30\x1e\xa6\x6c\xbe\x90\x39\x4c\xc0\xf4\x1f\x94\x82\x2c\x28\x84\x58\x19\xb9\xa9\x87\x64\xd2\xf7\x26\x2e\x98\x89\x14\x87\xff\x55\xb0\x5b\xd6\x9e\x18\xb7\xca\xd4\x1b\xd9\x8e\x13\x75\x66\xb6\x04\x1c\x73\x9d\xb1\x1f\x78\xe5\x67\xca\xc0\x2f\x33\xf1\x40\xd1\x9a\x48\x05\x00\x25\x45\x37\x5d\xae\xbf\xd7\xdc\xbe\xa3\x32\x42\xe7\x3c\x8e\x26\x91\x49\xd7\xeb\x9d\xb9\xf9\x00\x6e\x17\xac\xb7\x36\xb5\xe9\x77\x64\x5a\xb6\x51\xb8\x12\x25\xc5\xe5\x43", p, q, g, b"\x1b\x1f\x72\x56\x64\xd7\x5b\xdc\xb2\xa5\xa4\xc6\x53\x06\x1c\x46\x07\x99\xdd\x48\xbf\x1e\x6b\x03\xe1\x3c\x71\xd8\x3e\x3f\xdb\x50\x6f\xa9\x4e\x6c\xaf\xb5\xdb\xde\xad\x88\xa3\x3d\x23\xd4\xe9\x28\x7b\x47\x07\xe1\xfb\xa8\x71\xb9\x7c\x9a\x48\xf9\x30\xcd\xcc\xba\x0d\xc0\x6a\x4f\x0a\x8b\xfb\xb4\xe1\x4d\x0b\x4d\x5a\x08\x71\xfa\x13\x41\xca\xec\x7b\xc0\x81\x38\x71\x31\x21\xd4\x19\x76\x9f\x31\x20\x35\x08\xdf\x71\x94\x72\x65\x64\x4f\xdc\x61\x37\xd8\xe4\x66\xc8\xcb\x0c\xe9\x85\x34\x0c\xb2\xe2\x79\xb4\xce\x93\x15\xa7\x72", b"\xb6\xaa\x83\x3b\x82\x51\x84\x72\x9a\xf3\x08\xf8\x1b\xf5\xe5\x8e\x2d\x7e\x92\x84", b"\x54\x53\xb4\xb2\xe3\xfc\x80\x2b\x2f\x97\x7d\x0c\xf6\xeb\x7f\x5c\x16\x67\x3f\xa3", ); test::( b"\xe0\x4a\x71\xf2\xb5\xc1\x76\xa0\xdb\x17\xa9\x83\xa1\x7d\xec\x58\x8c\x00\xf4\x2c\x9a\xa3\x02\x6b\x5e\xb4\x40\xf0\x7a\x21\x40\xc2\xed\x84\x02\x4e\x05\x31\xea\x77\x88\xdf\xea\xa9\x18\x83\xfb\x6a\x98\x41\xc1\x7d\xcf\xd3\x12\x96\x8a\xdb\x00\xe5\x56\xbc\x7e\xb3\x02\x1f\x57\xb7\xa1\x68\x94\xfa\x4f\xe1\x2e\xc9\x3d\xfd\x49\x4a\x0a\x1c\x69\x3d\x6a\xde\x15\x4e\xf6\x48\xc0\x55\x52\xda\x41\x22\x4d\x49\x22\xd1\x86\x1d\x9f\x76\x71\xb8\xce\x6c\xe4\x48\xe8\x95\xea\x0e\xed\x25\x80\x2e\x33\x50\xec\x08\xae\x79\xf2\xd6\x1e\x0f", p, q, g, b"\x68\x7e\x16\x30\x9b\x06\x81\x7b\x93\x23\x6d\xd9\x90\xfa\xef\x9e\x23\x2e\xb8\x1c\xb9\xc7\xd6\xda\xe4\xfd\xd4\xf8\xe7\xca\x93\x3e\x18\x5b\x1d\xa6\x22\xd7\xc7\xfa\x35\xe0\xa3\x90\x6f\x91\x5d\xed\x14\xba\x96\xd6\x03\x5b\x46\xbd\x6c\xa5\xfe\x17\x2a\xf9\x4e\x08\x1f\xb0\xb9\xa9\x58\x3a\x45\x8b\xd2\x06\xc1\xe8\x7f\x97\xa5\x7d\x00\xd6\xea\xde\x19\xec\x56\xac\x2e\x9b\xbd\x8c\x15\xdf\x35\x6e\xe7\xb1\x2c\x91\x31\x1a\x38\xfc\x33\x15\xcf\xde\x9f\xf4\x62\xca\x6a\xdf\xf2\x80\x8b\x3f\x8e\x80\x5e\xe9\x15\xae\x88\x5c\xa9\x57", b"\x14\x89\x2b\x1e\xc7\xfc\x71\x6c\x75\xa1\x7f\x7a\xd2\xe4\x1e\xc6\xfa\xa7\x88\x36", b"\x72\xcc\x56\xa9\x89\x0e\x8b\xdf\x1a\x53\xd3\xac\xc6\xf8\x91\x37\x26\x4f\x9f\xf8", ); test::( b"\x5e\x8e\xb9\x6b\x5c\x6a\xd7\x5d\x3d\xab\x1e\x28\xbb\x2c\xe7\x51\xec\xc3\x16\x11\xa0\x19\xe8\xd4\xb5\x61\xc7\xe4\x53\x3c\xc7\xab\x73\xbd\x9d\xe9\x31\xe8\xc5\x4c\x51\xc5\x71\x1e\x6c\x27\x6a\x8e\xd9\x2f\x4b\xb4\x57\xdd\xf2\x82\x33\xda\x2c\xa3\xe3\x01\x3c\x56\xe3\xcd\x2b\xc6\x1d\x4d\x4e\x0e\x22\xcf\x63\x61\x30\x4e\x56\xd6\x8b\x31\x5c\xa5\xd3\xfc\xc4\x72\xa7\xee\xf8\xcc\xa5\x75\x20\x4d\xd0\x84\xa2\x1a\x99\xba\x67\xfd\xdb\xf9\x0d\xf7\xc6\xc6\x58\x76\x17\x34\xbc\xe1\x3c\x3d\x22\xd8\x0b\x6f\xb9\xbe\xce\x55\x14\x92", p, q, g, b"\x50\xb0\xf7\x60\x59\x11\xbc\xe6\xed\x5e\xcf\xf1\xe3\xc1\x81\x6f\xbb\xf0\x3a\x14\x79\xa0\x82\x06\x03\xff\xa7\x15\xae\xf9\xff\xbc\xcb\xd0\x67\x57\x9c\xbb\xc8\xc8\x7c\x39\x2e\x85\xbb\xe9\x29\xa0\xb5\xe1\x05\x9f\xaa\xe6\xf9\x12\x1d\xf4\x9c\x66\xa0\x49\xa9\x8a\x90\xd8\x4c\x70\xa2\x13\x12\xbf\x83\x7f\x47\x23\x99\x3d\x0e\xc0\xac\x4c\x2a\x7f\xfb\x9d\x40\x09\x57\xb3\x9f\xb8\x3e\x95\x1e\xf4\x13\x62\x45\x2c\xf4\x58\xd7\x84\xc4\x3f\xe8\x22\xea\x7a\x7a\xbb\xea\x0a\x69\x98\x32\x1a\x93\x81\x9d\x2d\x28\x2c\x78\x84\xf5\xc2", b"\x73\x99\xb1\x20\xd4\xbf\xbd\x6d\xc4\x06\x4d\x2f\x3f\x8f\x0c\xa5\xc3\x62\xb2\xd8", b"\x23\x02\xd8\x1d\x7e\xbb\x24\x17\xee\xf4\x5d\x88\x94\x1b\x07\x0e\xca\xb1\x1c\xab", ); test::( b"\xda\x91\xc6\x92\xcd\xb0\xa5\x95\x62\xe2\xb6\x64\xdc\xfe\x75\x54\xac\x58\x9d\x57\xf8\x22\x46\xc4\xa8\xa3\xf9\x57\x3b\xf4\x7b\x25\x7e\xb8\xf9\x34\x47\xc1\xeb\xab\x13\xdc\xe5\x3d\x6f\x44\x16\xfb\x2c\x6c\x36\x30\x3e\xd9\x78\x85\xcf\x7a\x6c\xae\xf0\x55\xf7\xe3\x14\x5e\xf3\x83\x8c\x31\x87\x7f\xad\x7a\x88\x83\xff\xc8\x4e\xbd\x97\x3f\x8c\x06\xd1\x7c\xdd\x33\x9b\xb3\x37\x1f\x9d\x3d\x4f\x2d\x9f\x0b\x80\xae\x2b\xcc\x87\x8b\x4a\xf7\x8f\x84\x5e\xac\x4f\x2a\xac\xee\x6a\x94\x51\xda\xf8\x14\xa4\x4e\x92\x7b\xb5\x42\x88\x20", p, q, g, b"\x67\x8b\x39\x58\xed\x24\xfc\x84\x94\x20\x54\xf4\x9d\x9e\x6f\x27\xbb\xac\x7d\xe3\xa4\xa5\x2a\xf9\xff\xcb\x9c\xe6\xc1\xfb\x8b\xdd\x99\xdb\x0e\x80\xc8\x68\xac\x54\x7c\x4c\xfc\x78\x2d\xe7\xeb\xcf\x69\x43\xb2\xe4\x64\x33\xc6\x70\x17\x8d\xe0\x10\x4b\xd6\xfc\x25\xdc\x30\x54\xdb\x9c\x48\xc1\x27\x06\xe1\xde\xa3\x5e\x16\x3b\xe3\x6a\x4a\xb7\x21\x95\x0c\x02\x8b\x05\x46\xf1\x71\x9f\xf2\xed\xd8\x1b\x2b\x79\x74\xfb\x9b\x12\x12\x24\xcc\xfa\xab\xc4\x7e\x9e\x62\x9a\x97\xbc\x6b\xa4\x26\x91\xca\x3f\x64\x9c\xca\xc4\x7d\x0f\x1e", b"\x6f\x15\x79\xed\xcf\x43\x75\x84\xd3\xe9\x39\xfa\x5b\x00\x2e\xee\x83\xe3\xb6\x14", b"\x71\x20\x8a\x87\xa4\xcf\x2b\x3a\x9b\x65\x47\x77\x73\xb0\x09\x6d\x45\x2d\xae\x60", ); test::( b"\x0f\x2e\xdc\x87\xf4\xd2\x94\x2c\x46\x93\xb0\x64\xa5\x11\xb9\x3f\x79\x0c\x60\xdc\x14\x9a\x1b\x0b\x70\x41\xaf\x51\x83\xbc\x0f\x42\x23\x41\x34\xb2\x84\x27\x0e\x4c\x7e\x53\x61\x4f\x7e\xcf\xe7\x11\xde\x0e\xfb\x28\x33\x6d\x0b\xb3\x59\xc8\x6e\x8b\xe8\x83\x9f\x58\x32\x11\xe9\x17\x48\x32\xb3\xd4\x1e\xe6\xd2\x18\x64\xac\x61\x86\xfd\x1d\xb9\x20\xdd\xa6\x5b\x25\x96\x6c\x59\x51\xab\x8a\x20\x50\xdd\xa8\x7d\x1d\x72\xe3\x03\x28\x52\xad\x43\xda\x9f\xb4\x30\xe8\x50\x02\x2b\x4b\xb6\xcc\x9c\xb9\x0e\x42\x8f\x3a\x5c\xa3\x2a\x62", p, q, g, b"\x3a\x97\x8e\x90\x22\xa8\xf7\xa0\xca\xa9\x1f\x27\x5b\xf9\xcf\x76\x48\xe1\xb9\xa3\x1a\x07\x02\xd8\xac\xdb\xf5\x9a\xff\xb5\x46\x7f\xb0\x7a\x8f\x7e\x5b\x4c\x86\x77\x5a\xc4\xef\xb6\x09\xb9\x46\xf0\x5a\x3f\x13\x03\x4d\xb9\x4a\xcc\x64\x05\x7f\x90\x6d\x18\x54\x91\x0d\xe5\x38\xf8\x43\x67\x18\x1c\x61\x8e\x96\xc3\xf9\x22\x54\x7d\x40\x8e\xe6\x40\x8b\x7a\x70\xac\xed\xc7\x5d\xe8\xae\x44\x5c\x5d\x4d\xd5\xde\xf4\xa3\x52\xd2\x52\x82\x34\x07\x0c\xc7\x20\x70\x0c\x14\xce\x12\xd2\xf3\x69\x90\xd3\x6b\x29\xd7\xb0\x05\x96\xe3\x4b", b"\xb6\xea\x9c\xdb\x21\x1c\x45\x60\xb3\xd5\x92\xe9\x3a\xf6\xd5\xf1\x33\xb6\x4b\x9b", b"\x62\x42\xe4\x5a\x47\x2f\xa8\x14\x7c\xb5\x25\x3d\xbd\xde\xba\xe3\x1e\xf3\x1e\x4e", ); test::( b"\xd1\x2f\xc1\x98\x3e\x00\x95\xe9\xe2\xb6\xb8\x74\x3f\xb3\x43\x86\xcc\x48\x21\x54\x0e\x3e\xfe\x1a\x29\xf8\x4c\xf7\xe6\x3e\x2a\x06\x68\xd5\x51\xf9\x12\xad\x22\x21\xb5\xa3\xd6\xb9\xeb\xd1\x21\x36\xde\xf5\xe6\x69\x0e\x1d\x32\xaa\xe9\x19\xf9\xf1\xcf\x5d\x24\xd6\x2a\x46\xa9\xa9\xa6\x04\xba\xe1\x1b\x9c\x08\x66\x35\x03\x67\x20\x4a\x92\x0b\x58\x9a\x31\x7d\xdf\xbb\x87\x7f\x9f\xad\x6b\x0d\x36\x29\xaf\x96\x35\xda\x46\x93\x31\x51\xc0\xd9\xa2\x0a\xaa\xbd\xdd\x3d\xf5\xd0\x49\x65\x9b\x28\x60\xdd\xb8\xb2\x09\x63\x26\x1e\xa0", p, q, g, b"\x10\xb7\xb1\x4a\xd2\x9f\xb3\x4d\x7a\x39\xf3\xe9\x53\x05\x1f\x45\x6a\x0c\xd1\x23\x3e\xf5\x4d\x90\xa4\xad\xc8\x2d\xfb\xd9\xfa\x7a\x85\x62\x8f\x11\x03\x96\x32\xb4\x7b\xa9\xda\xec\xa6\xe4\x63\xec\x46\x44\xf5\xe2\xa2\xa4\xbf\x95\xd3\x92\xe8\xc9\xc9\xf2\x87\xa2\x0b\xa4\x5a\x19\x88\x15\xca\x0e\x9b\xa8\x54\xd7\xf3\xc7\x9d\x90\x37\xfa\x14\x17\x72\x4f\xb7\xf0\x27\x99\xb1\xc2\xb2\xbc\xc7\x9d\x64\x36\x7b\x90\xc0\x6d\x17\x89\xdc\xc6\xde\x57\xca\x19\xfc\xef\xaf\xc0\x4f\xcc\xe2\x9c\x8f\x49\x5e\xd5\x64\xf5\xd9\xa1\x12\xca", b"\x36\x06\x17\x96\x5f\x65\xa6\x8a\xbc\xb8\x3d\xbf\x2d\x88\x6a\x1a\x10\xca\x05\xde", b"\x71\xab\xb6\xac\xbf\x7e\x65\x3d\x2e\xbc\x3c\xb7\x14\x9b\x51\xcc\x0c\x92\xfb\xa8", ); test::( b"\x87\xa6\xdf\xb8\x48\x7f\x16\xf6\xfe\xf1\xd6\x8b\xc3\x14\x69\xac\x21\x0e\xa5\x53\x87\x96\x5b\xb4\x45\x8c\xa0\xd0\x0d\x6c\x46\x85\x8b\xe2\x8a\x01\x9c\xe9\x14\xc3\x9c\x24\x79\xf3\x21\xf0\x25\x2c\xa4\xa8\xbd\x68\x1a\x5b\x35\x8a\x09\x3f\xc8\x34\x1c\x31\xbc\x47\xc6\x18\x40\x3f\x93\x32\x2b\x44\x30\x84\xce\x58\x18\x49\x0b\x74\xe8\x3c\x38\x66\xb8\x16\x4b\xbc\xf7\x9b\xf8\x25\x39\xf4\x28\xc9\x35\x1c\x40\xb1\x0d\x77\x3c\xbe\x1c\xba\xa8\xc9\x80\x0a\x6d\xcf\x38\xd8\x55\x15\xe2\xdf\xf5\xd4\xf8\xa9\x65\xec\xae\xf3\x7e\x38", p, q, g, b"\x75\xef\x5d\x5f\x67\x02\x24\x26\xf5\x31\xe9\xb8\xca\x91\x15\x92\x1d\x5a\x5c\x44\x6b\xcd\xf1\xaf\x70\x1b\x60\x5b\xae\x68\x7d\xff\x8d\x1e\x7b\x3c\x4f\x8b\x28\x95\x37\xeb\x09\xa7\x46\x1d\x66\x88\xa3\x71\x19\x74\x37\x1a\x5b\x73\xa2\x08\x2e\x99\x14\x10\x11\x86\x66\xcc\xd9\x4f\x44\x49\x77\xd0\xc8\x9b\xa3\x61\x62\xde\x02\x3a\xa5\x19\x03\x7a\x6b\xa6\x30\x54\x17\xda\xd3\xf2\xdc\x38\x75\x6a\x40\x04\x64\x91\xe8\xee\x80\xc4\xf1\x47\x82\x5b\x8c\x02\x1b\x5d\x09\xa2\x42\x2d\x39\xd7\xc4\xab\xc3\x95\xf6\xc2\xd7\x90\x3c\x66", b"\x54\x09\xcd\x62\xf5\x53\x93\x06\xae\x8c\x93\x60\x82\xee\xf9\x32\xc6\x50\x5c\x39", b"\x07\xc0\xcc\xb3\x0e\xc9\x0b\x14\x81\x40\x9c\xbf\xa2\xf5\xde\x6c\xfa\xf1\xef\xc5", ); test::( b"\xa3\x32\xb3\x8e\x64\x2b\xca\xd8\xbd\x27\x1f\x77\x6f\xff\x24\xa7\x31\x72\x4a\x43\x40\x0c\x16\x14\xf5\xe2\x12\x96\xdb\x04\xf7\x25\xee\xba\xd2\x8d\x62\xe2\x0c\xa3\xf7\xf1\x83\x28\xa7\x6b\x80\x92\xd9\x7b\x63\x2b\xb7\x87\x18\xf0\xf2\xf9\xec\xc7\xc1\x2c\xc3\x6b\x50\x59\x59\x91\x7b\x5c\x54\x31\x2a\xd4\x71\x7b\xe8\x4f\xa8\x40\xb9\xf0\x6d\xe0\x05\xc7\x92\xaf\x3e\x9e\xa7\x2b\x7a\xe2\xe3\x42\x3d\x07\xc7\x81\xc9\xc2\x55\x3f\x89\x95\x54\xa0\xd8\xde\xc9\xa2\x85\xc1\xee\x25\x16\x0f\xa2\x78\x48\x94\x74\xa0\xe4\x37\x95\x16", p, q, g, b"\x41\xcc\x1d\x6d\x9e\x0c\xf5\xf1\x58\xda\xb5\x99\x11\x4f\x3e\xe4\x73\x8f\x19\x7c\xf2\xc9\x56\xb6\xbb\x0d\xdd\x6d\xfd\xcf\x5e\x4d\xb3\x99\xaa\xcc\x16\xc5\x38\x94\x8c\x4b\x50\xde\x85\xba\xd6\xd9\x16\xdb\xc4\x15\xba\xd2\xf6\x73\x70\x23\xfc\x70\x63\xc1\x33\xbd\x0c\x42\x31\xd6\xb3\x3c\xe8\x13\xc0\xd6\x02\x4d\x13\x15\x26\x95\x71\xb2\x55\x4b\xbb\x2e\xdf\x2a\x99\x10\x8a\x43\x59\xe8\xe2\x3b\xf8\xa1\x43\xbf\xc5\x38\xab\x9f\x88\x42\xcd\x4e\x92\x59\x68\xf4\x9a\xc5\x6a\x02\xe3\xf0\x67\xe2\x60\x01\xe5\x20\x7b\xcb\x56\xd4", b"\xa1\x6a\x73\x08\xa6\x82\x4d\x92\x9b\x6a\x9a\x3b\xdb\x28\x0d\x15\x1a\x6e\xed\x81", b"\x7a\x42\xad\xda\xb7\xdd\xb9\x80\x00\x28\x60\x44\xd9\x99\x3d\x5c\xf8\x18\xf2\xb1", ); test::( b"\x79\xb1\x44\xd5\x0e\x00\x47\x59\x6c\xf0\x6b\xfc\xb3\xe9\xce\x39\x59\xec\x4b\x8c\xc9\xba\x01\x43\x4f\xc3\xf6\x8f\x47\xc8\x68\xce\xa0\x48\xb9\x90\xe6\x2c\xd7\xa5\x0e\xee\x28\x8b\x35\xae\x62\xaa\x79\x79\x24\xc9\xdc\xab\x76\x40\x9b\x86\x9b\x33\xde\x28\x88\x5e\x62\xf1\x7d\xb7\xa7\x75\x89\x73\x48\x29\x68\xb9\xf9\x60\xeb\x2d\xba\x84\xae\x85\x10\x1a\xa6\xc6\x14\x1b\x3f\x08\x39\xa4\x18\x5a\x4c\x49\x6e\xae\x87\x6e\xcd\xc4\x56\x27\x33\x0d\x36\xf0\x1a\x67\xcb\xb7\xfa\xef\x83\x43\x57\x33\x0a\xac\x36\xc7\xc6\xf4\x7a\xc9", p, q, g, b"\x74\xdb\x74\x60\xc5\x19\x19\xa9\xe8\x7b\x43\x0d\x10\x5d\x86\x36\x2e\xe4\xac\xd9\x68\x2b\xf6\xc9\xfe\x87\xd9\x95\x6c\x2f\x5f\xf1\x7d\x95\x93\x0c\xcc\x12\xf7\xe9\x2d\x8b\xcb\x6a\xf5\xf7\xef\x18\x48\xda\x8d\x15\xc9\x15\x20\x82\x47\x7d\xe9\x95\x94\x78\x1b\x99\x8d\xaa\xfb\xf8\xae\x4a\xf2\x37\x72\x12\x5c\x19\xe1\x66\x42\x1f\x80\x6b\xd0\xfb\xea\xc3\x65\x07\x6e\xcd\x9e\x15\x43\x2a\xd4\xac\x25\x23\x41\x8f\x6e\x41\x0c\xbf\xcb\xc5\xa7\x1a\x0e\xdf\x22\xe6\x94\xa6\x7d\x14\xb9\xcf\xc9\x72\x2b\xc4\xbd\x8c\x43\xe2\x2a\x91", b"\x02\x1a\x3d\xe9\x8c\x3d\xa6\x98\xb4\x77\xb4\xc3\xd5\x0b\x21\x69\xe6\x5f\x5e\x91", b"\xaf\xd7\x64\x31\x8d\xd0\xfe\xe0\x4f\xd6\xb0\x7f\x55\x03\x20\x78\x9c\xd9\xbf\xa5", ); // [mod = L=1024, N=160, SHA-256] let p = b"\xcb\xa1\x3e\x53\x36\x37\xc3\x7c\x0e\x80\xd9\xfc\xd0\x52\xc1\xe4\x1a\x88\xac\x32\x5c\x4e\xbe\x13\xb7\x17\x00\x88\xd5\x4e\xef\x48\x81\xf3\xd3\x5e\xae\x47\xc2\x10\x38\x5a\x84\x85\xd2\x42\x3a\x64\xda\x3f\xfd\xa6\x3a\x26\xf9\x2c\xf5\xa3\x04\xf3\x92\x60\x38\x4a\x9b\x77\x59\xd8\xac\x1a\xdc\x81\xd3\xf8\xbf\xc5\xe6\xcb\x10\xef\xb4\xe0\xf7\x58\x67\xf4\xe8\x48\xd1\xa3\x38\x58\x6d\xd0\x64\x8f\xee\xb1\x63\x64\x7f\xfe\x71\x76\x17\x43\x70\x54\x0e\xe8\xa8\xf5\x88\xda\x8c\xc1\x43\xd9\x39\xf7\x0b\x11\x4a\x7f\x98\x1b\x84\x83"; let q = b"\x95\x03\x1b\x8a\xa7\x1f\x29\xd5\x25\xb7\x73\xef\x8b\x7c\x67\x01\xad\x8a\x5d\x99"; let g = b"\x45\xbc\xaa\x44\x3d\x4c\xd1\x60\x2d\x27\xaa\xf8\x41\x26\xed\xc7\x3b\xd7\x73\xde\x6e\xce\x15\xe9\x7e\x7f\xef\x46\xf1\x30\x72\xb7\xad\xca\xf7\xb0\x05\x3c\xf4\x70\x69\x44\xdf\x8c\x45\x68\xf2\x6c\x99\x7e\xe7\x75\x30\x00\xfb\xe4\x77\xa3\x77\x66\xa4\xe9\x70\xff\x40\x00\x8e\xb9\x00\xb9\xde\x4b\x5f\x9a\xe0\x6e\x06\xdb\x61\x06\xe7\x87\x11\xf3\xa6\x7f\xec\xa7\x4d\xd5\xbd\xdc\xdf\x67\x5a\xe4\x01\x4e\xe9\x48\x9a\x42\x91\x7f\xbe\xe3\xbb\x9f\x2a\x24\xdf\x67\x51\x2c\x1c\x35\xc9\x7b\xfb\xf2\x30\x8e\xaa\xcd\x28\x36\x8c\x5c"; test::( b"\x81\x21\x72\xf0\x9c\xba\xe6\x25\x17\x80\x48\x85\x75\x41\x25\xfc\x60\x66\xe9\xa9\x02\xf9\xdb\x20\x41\xee\xdd\xd7\xe8\xda\x67\xe4\xa2\xe6\x5d\x00\x29\xc4\x5e\xca\xce\xa6\x00\x2f\x95\x40\xeb\x10\x04\xc8\x83\xa8\xf9\x00\xfd\x84\xa9\x8b\x5c\x44\x9a\xc4\x9c\x56\xf3\xa9\x1d\x8b\xed\x3f\x08\xf4\x27\x93\x5f\xbe\x43\x7c\xe4\x6f\x75\xcd\x66\x6a\x07\x07\x26\x5c\x61\xa0\x96\x69\x8d\xc2\xf3\x6b\x28\xc6\x5e\xc7\xb6\xe4\x75\xc8\xb6\x7d\xdf\xb4\x44\xb2\xee\x6a\x98\x4e\x9d\x6d\x15\x23\x3e\x25\xe4\x4b\xd8\xd7\x92\x4d\x12\x9d", p, q, g, b"\x4c\xd6\x17\x86\x37\xd0\xf0\xde\x14\x88\x51\x5c\x3b\x12\xe2\x03\xa3\xc0\xca\x65\x2f\x2f\xe3\x0d\x08\x8d\xc7\x27\x8a\x87\xaf\xfa\x63\x4a\x72\x7a\x72\x19\x32\xd6\x71\x99\x4a\x95\x8a\x0f\x89\x22\x3c\x28\x6c\x3a\x9b\x10\xa9\x65\x60\x54\x2e\x26\x26\xb7\x2e\x0c\xd2\x8e\x51\x33\xfb\x57\xdc\x23\x8b\x7f\xab\x2d\xe2\xa4\x98\x63\xec\xf9\x98\x75\x18\x61\xae\x66\x8b\xf7\xca\xd1\x36\xe6\x93\x3f\x57\xdf\xdb\xa5\x44\xe3\x14\x7c\xe0\xe7\x37\x0f\xa6\xe8\xff\x1d\xe6\x90\xc5\x1b\x4a\xee\xdf\x04\x85\x18\x38\x89\x20\x55\x91\xe8", b"\x76\x68\x3a\x08\x5d\x67\x42\xea\xdf\x95\xa6\x1a\xf7\x5f\x88\x12\x76\xcf\xd2\x6a", b"\x3b\x9d\xa7\xf9\x92\x6e\xaa\xad\x0b\xeb\xd4\x84\x5c\x67\xfc\xdb\x64\xd1\x24\x53", ); test::( b"\xc1\xb1\xf1\x47\x2f\x08\xdf\x38\xa5\x2a\x55\xba\x55\x82\x7b\xa3\xb7\xcd\xd6\xbe\xde\xd9\x04\xfc\xd5\x26\x10\xc8\x99\xed\xa3\xc6\x16\x82\x65\x68\x73\xbb\xfa\xab\x0d\x90\x74\x95\xda\xcf\x45\x8e\xa3\x45\x0a\xfd\x93\xbe\x96\x7a\x37\x43\x4d\x41\x2b\x63\x25\x66\x9a\xd8\x4b\x4e\xaa\x27\x8a\x24\x87\x0e\xcc\x2d\xf0\xda\x13\xad\x52\x6a\x9e\x66\x69\x95\x8d\x4e\x52\xdb\xfb\xa2\x80\x3a\xe9\xae\x13\x5d\x0c\x0a\xcc\xa8\x6a\x04\xc4\x2b\xa9\xca\xfb\x09\xb7\xaf\x96\x34\x71\x88\x88\x0b\x08\x61\x69\xeb\xdf\x9f\x1f\x5f\x31\x73", p, q, g, b"\x99\x18\x74\x98\x53\x4f\x31\x3d\xc7\xcd\x7f\x3a\x48\xd6\x2b\x23\x35\xbc\xdc\x36\xf0\xdc\x98\xdb\xf8\x45\xdc\x60\x85\xc2\x67\x47\x4c\x36\xfd\xfc\xa3\x88\x54\x21\x98\x30\xe6\x14\xbb\xca\xb2\xbb\x9d\xec\xb8\x1e\x86\x12\x4b\xd7\x8f\x86\xd4\x71\xbd\x84\xbe\x06\xac\x1f\x0f\x41\xfe\x5b\x4b\x37\x40\xb2\x10\x7e\x0c\x9c\x48\xf8\x1e\x31\xe9\xbf\x55\x0d\x96\x56\x4d\xd3\x80\xca\x47\xa1\x1d\x72\xf0\xd0\xa3\x27\x5f\x07\x5f\x95\xbb\xd5\x98\x69\xc1\x4d\xc9\x12\xa1\xcb\xcf\x01\xdb\x9f\xb7\xf7\x10\x15\xcc\x14\x99\x86\x82\x5e", b"\x54\xed\x4e\xfa\xec\xdf\xc7\x8d\x02\x64\x71\xb6\x5c\xfe\xfc\x65\x29\x94\x5b\xbf", b"\x6d\x6d\xac\x29\x6e\xbd\xe3\xf8\x73\xb7\x51\xc6\xb1\x48\x43\xf0\xb7\xbe\xfd\xff", ); test::( b"\xb8\x0a\x47\x07\x1d\x13\x76\xfe\x61\x7e\x59\xfd\xc0\x05\xa8\x90\x36\x9a\x4c\xa5\xe6\x78\xff\x46\xeb\x9b\x20\x5d\x6e\xc0\x9c\xbd\x49\x37\x3b\xb3\x41\xfe\x78\x13\xee\x44\x2a\x6e\xce\x17\xe7\x20\xbf\x71\xa7\x45\x57\xac\x9a\x37\x5c\x05\x9e\x55\x35\xe7\x73\xa4\x5e\x79\xe1\xbf\xf3\x46\x5a\x38\x86\xc8\x6e\x2a\x2b\xc8\x82\xf0\xbe\xce\xef\xff\xb2\xae\x1a\x52\x2f\x13\xc8\x2d\xef\x4c\xfd\x0c\xfc\xa6\xfc\xee\xb4\xce\xce\x71\x86\x9e\x90\xcd\x10\xd0\xaf\xf2\x7a\x84\xb5\x60\x1d\xaa\xe0\x61\xcb\xeb\x3a\xa6\x2b\x37\xfd\x3a", p, q, g, b"\x91\xf5\x02\x70\xa7\x54\x05\x5e\x5d\xa6\x11\xc7\x20\xa4\x26\x2f\x3c\xb8\xbd\x41\x61\xf7\x7d\x07\x40\x16\x04\xd3\xd1\x16\x5e\x45\x51\x8f\x7e\x19\x01\xad\xef\x66\x28\xf2\x3d\xc4\x82\x71\xd3\x5f\xf4\x92\xaf\x8d\x62\xaa\x53\x8c\x0e\x77\xe0\x42\xf2\x3a\x52\x2f\x22\x14\xe6\x21\x14\xbf\xee\xa4\x6a\xe8\x88\x8b\xda\xda\xcd\xaa\x0a\x9a\x5b\x50\x3d\x79\xc2\x3e\x4c\x20\xc9\x8b\xd4\xeb\xb3\x6f\x95\xbf\x44\x51\xcc\xb0\xb5\xbb\x44\xdf\xd0\x11\x34\x1c\xfa\x29\xa9\xe1\x56\xa3\xcd\x82\x8e\x12\x6e\x68\xcb\x91\x1e\x8f\x9d\xc0", b"\x1f\xc2\xd1\xcb\x80\xbf\x6e\x0e\x78\xb2\x5f\xac\x29\x3b\x75\x2c\xbf\xf2\xb5\xac", b"\x75\xbc\xc7\x72\xf7\x73\xd5\xfd\x98\xdd\xe1\xf9\x07\xe7\xec\x2c\xba\x20\x1d\xfb", ); test::( b"\xa9\x60\x30\x54\x46\x58\x87\xdf\x15\xdb\x07\xc0\x70\x9a\x8c\x87\x8d\x2f\x1a\xbd\xcf\xc6\x19\x5e\xab\xf3\xe9\xb3\xad\x07\xe8\x55\x8b\x99\xcc\x4a\x7a\xa0\x76\xda\xf6\x7e\x9b\x7d\x84\x80\xf1\x1e\x8a\xfb\x18\xe2\xac\x56\xa9\x54\x7b\x48\x45\x3f\xed\xca\x32\xda\x9e\xb0\xc2\x92\x71\xeb\x60\xf0\xa1\xd9\x5c\x18\xf4\x2d\x99\x23\x94\xb3\x26\x4f\xf3\xe2\x1e\x60\x6e\x0b\xea\xc0\x8a\x7b\xa7\x1b\x8e\x57\x95\xa8\xda\x98\x51\x18\xe4\x32\xcf\x5b\x30\xb6\xcd\x3a\x60\x3d\x8b\x0d\x58\x0f\x06\xc6\x26\xee\x93\x7c\x6c\xd0\x5f\x40", p, q, g, b"\xa2\xc4\x56\x9a\x30\x14\x73\xae\x4f\x16\x4d\x68\xb9\xa3\xc6\xeb\x70\x5a\xe8\x1f\x75\xd6\xe5\xcc\x30\x70\xa5\x59\xcc\xcb\x8b\x1a\x2d\x8c\x21\x09\x0e\xd7\x0e\x61\x67\x0c\x7e\x9d\xbf\x5f\x75\x5a\x37\xd5\x8d\x3a\xbb\x34\xc2\xdf\xd4\x0d\xb9\xf2\x6f\x68\x68\xd0\xdd\x91\xbe\x98\xf3\x95\xac\x0e\xbd\xc3\x7e\x1b\x54\x23\x80\x2b\xea\x7a\x6c\xb1\x96\xd7\xe0\xf9\x3d\xb9\x2f\x66\x3b\x6c\x9c\x72\x6e\x80\xfe\xb2\xe9\x22\x71\x54\xce\x1c\x15\xf8\xe8\xdf\x93\xec\x0d\x37\xfa\x47\xe5\xfa\x11\x2b\xb0\xa4\x8f\x4a\x23\x9d\x60\x52", b"\x48\x53\x95\x23\x81\x5b\xd8\xd7\x3c\xe7\x02\x36\x7c\x77\x12\xb9\xb1\x38\x67\xf2", b"\x20\xff\x4c\xfe\xf8\xa6\x68\x82\x9f\xea\xe7\x3b\x52\x0e\x8a\xa4\xd0\x2c\x81\x68", ); test::( b"\x19\xeb\x08\x8c\x32\x29\xa4\x4f\x95\x86\xf0\x04\x21\xcf\xe7\x42\x3a\x48\x6d\x5f\x7e\x28\xad\x2c\x91\x19\xdd\x2e\x13\x95\xdf\x1a\xcc\x06\xcb\x28\xe9\x06\x9c\xee\x62\xf0\x9f\x48\xe4\xca\x29\x26\x9d\xd8\x9d\xf9\xfe\xc1\xff\xdf\x64\xb1\xfe\x27\x17\xfe\x52\xb1\x42\x1f\xcf\x6c\x70\x5c\x0c\xf3\x99\x30\xf9\x0e\xcb\x33\x9b\x51\xef\x95\xb2\xef\x38\xa6\xd9\x6a\x57\x5f\x7b\x36\xf5\xed\xf4\xf2\xcb\xd6\xd2\x61\xe1\xfd\xd7\x7d\x44\x59\x28\x8c\x02\xe6\x8c\x82\xa3\x91\x0f\xf8\xca\x17\x47\xc8\x6b\xb1\x87\xd5\x20\x5f\x51\xa8", p, q, g, b"\x49\xe6\x06\xaa\xd5\xd2\xe5\x4e\x1b\xae\x25\x17\x91\x5c\x66\x0b\xa3\x0e\xc4\xfd\x28\xd7\x18\x61\x3a\x7c\x84\x46\x4b\x0f\x44\xbc\x6d\x54\x6e\x5a\x9b\xc1\xdc\x60\x42\x3b\x45\xdd\x01\xec\x29\x55\x64\xec\x08\xf2\x9d\x68\x87\xe6\x9f\x68\x9d\x6b\x34\x88\xf9\xda\x5d\x5a\x60\xf3\x9c\xdd\x5a\x15\x8d\x51\xa3\xd0\x73\xb2\x22\x5f\xea\x55\x9e\x58\xbb\x22\x2e\x29\xa8\x7b\x5f\x0f\x5a\xb3\x1d\xd7\xc0\xce\xaa\xd8\x87\x07\x0d\xac\x95\x5d\x28\x97\x36\x07\xa9\x9e\x46\xdd\xd7\x73\x7b\xea\xb6\x51\x99\xf2\x50\xd7\xf0\x3b\x65\x83", b"\x6b\xf4\xf5\xd3\x25\x12\x01\x05\x9e\xe8\x5e\xdb\x99\xa6\x7a\x70\x6f\x37\x19\x7d", b"\x31\x25\xc5\xaf\x39\x77\x59\x99\x6b\x87\x6c\xb5\x85\x7b\xe2\x63\x2a\xaa\xf3\xb6", ); test::( b"\xad\xdb\x5a\x04\x5c\x9f\x4f\x4f\xb9\xeb\x5e\x5d\xb4\x4d\x65\x15\x98\x0c\x9e\x08\x80\x15\xb6\x85\x93\xd8\xbc\xbf\xfc\x6f\xf5\x7f\x18\x86\x5a\xb8\x24\xd3\xd1\x58\x64\x25\xcb\x50\x81\x19\x7e\x9e\x01\xcb\x72\x97\xb0\x6b\x64\x10\x3c\xea\x43\x7e\xee\xec\x9c\x50\x79\x86\x79\xfb\x86\x9e\xc3\x06\xa7\x25\x75\x05\x7f\xd3\x68\xae\xb0\xf6\x74\xa2\x9c\x3a\xc2\x48\xb6\xa0\x8f\x91\x33\x1d\x84\x56\xd0\x62\x02\x53\x47\xc1\x2a\x0a\x61\xc6\x1f\x76\xe5\x20\x6f\xe6\xca\x43\x77\x35\xaf\x43\x0d\xea\x7c\xc8\xf3\x9f\x1a\x5b\x75\x05", p, q, g, b"\x22\x1c\xed\x57\xa9\x13\x25\xb1\x0f\x8d\xcd\x12\x20\xb1\xaf\x68\xf8\xda\xf3\x97\xf4\x19\xa4\x3b\xbd\x8f\xbe\x64\x43\x11\x75\x5b\x11\x1a\xae\x52\x57\xc6\x42\xfa\xfd\x83\xb0\x47\xa1\xf5\x6f\x2a\x82\x9f\xcd\xf4\xdf\x3e\x5d\xcc\xb2\x36\x45\xb2\x8c\x0a\x34\xc6\xe8\xa6\x50\xef\xcd\xfa\xdd\x48\xfe\xa4\x67\xcc\x94\x3c\xa4\xe7\x37\x88\x29\x30\x07\x13\x83\x8b\x6c\x71\x09\x62\xba\x72\xe7\x90\xc1\x0a\xb8\x79\xa0\x1f\xe1\x45\x7e\xa3\xdd\x4b\x7c\x3c\x3a\x54\x2e\x35\x22\xa7\x5d\x0d\xb2\x61\xe5\x76\xcd\x3f\x22\xc9\x98\xe4", b"\x7c\xc6\x62\xe3\x52\xe0\xee\xde\x85\x14\x01\x07\xa7\x77\x3a\xd8\x66\x3e\x70\xbd", b"\x15\xc1\x7b\x9d\x24\x58\x72\x84\x4e\xaa\xc3\xd4\x6b\xb0\x8c\x3e\x08\x59\x74\x23", ); test::( b"\x02\x70\x9d\x2b\xe0\xd9\xdc\x1d\xc0\xeb\xc5\x5f\x63\x0d\x91\xfa\x23\x60\x9f\x61\xb5\x13\xc2\x27\x57\x66\x03\x4d\x8f\x40\xe8\x19\xaa\xf9\x32\x6c\x8d\xb3\x7c\x35\xc5\xa1\x7e\x96\xbc\x95\x6d\xf6\xd1\x1b\x55\x8d\x16\xd9\x18\x71\xaf\xc0\x10\xb3\x11\x9c\x57\x98\xc2\xe2\x94\x11\xff\x4f\x0d\x71\x96\xe7\xe4\x76\xbf\x0a\xd0\x3b\xf7\x2e\x89\x7f\xed\x87\x3c\x10\x61\x3d\xd2\x55\xd1\x52\x43\x87\x0b\x81\xcd\x87\xd0\xab\xc1\x6e\x14\x0d\x03\x2f\xe5\xbd\x1c\x8e\xeb\x2f\x66\xe0\x4d\x13\xd4\x92\x69\xfc\x7d\xa6\xb6\x5a\x7c\x1c", p, q, g, b"\x9e\x93\xbc\x03\xe6\xe8\x15\x30\x87\x34\xe3\xb8\xf1\xd1\x06\x96\x1b\xeb\xdf\xf1\x0a\x52\x53\x03\x25\x7a\x05\x3d\xea\x4d\xa6\xdc\xf5\x04\xc7\x83\x9b\x54\xd5\x75\x22\xf2\xac\xb3\xaa\xc9\x59\xff\x4a\xe8\x61\x00\x22\xca\x5a\x1e\x68\x82\x32\x33\x6c\xa1\xee\x8f\xd7\x02\x8b\xf7\xb6\xe9\xee\xdf\x8a\x4b\x0d\x09\x89\x69\xf5\xe5\xfd\x3d\x93\x00\xc3\x40\xe7\xf1\x9f\xd4\x71\xa4\x51\xaf\xb9\x2e\xd4\x82\x9f\xa4\xd9\x02\x49\x14\x4a\xa3\x63\xdc\x18\x80\x7b\x3e\x29\xd2\x7e\x6e\xc3\xda\x73\x6c\x33\xb1\x85\x51\x1b\xb3\xaa\xa0", b"\x72\xb0\xbc\xc6\xde\xfa\x66\xfa\x8b\xab\x02\x96\x76\xa1\xc7\x70\x3f\x96\x08\xf2", b"\x69\xd9\x11\xe0\x5a\xcd\x7b\xe5\x2f\x28\x34\xc0\xaa\x00\x51\x28\xe7\xfa\x85\xb8", ); test::( b"\xcc\x06\x1e\xdb\x31\xc3\x4d\x39\x81\x51\x7f\x4d\x89\xaf\xbe\x98\x0f\x74\x18\x52\x60\xcf\x48\xb3\x04\x3b\xc1\x3a\x14\x49\x44\xad\x43\xe0\xe5\x76\xd2\xa5\x8b\xf5\x89\xcc\x02\x1d\xc1\xc1\xd3\x32\xc4\xd7\x68\x96\xea\x77\xdd\xa1\x97\xf6\x83\xe5\x1e\xed\x71\xb4\xd6\xdf\x46\x66\x6a\x1b\x14\x2e\x67\x9b\x02\x83\xcf\x33\x9e\x5b\xca\x90\xe2\xff\x9c\x34\xdd\x5f\xd7\xcc\x49\x17\xd6\x67\x04\xfe\xe4\x36\x4f\x76\x93\x10\x1d\xc7\x66\x70\x71\x04\xef\xb2\xb9\x33\xc4\x84\x8b\x93\xe1\x3f\x94\x85\x5f\x75\xe4\xfd\x75\x6c\xb6\xe3", p, q, g, b"\x5d\x7d\x2e\x34\x21\x54\x98\x3e\xbc\x20\x15\xbc\x67\x50\xf9\x87\x6f\x56\x89\xca\x0a\xda\x85\x29\x90\x8e\xd4\xfd\xbc\x59\x6b\x97\x2c\x5c\xc6\xd5\x3e\x80\xa8\xad\x8a\x8c\xed\xf3\xce\x64\xb6\x2a\x75\xdb\x44\x1c\x96\x20\x7f\xc7\x47\x7e\x3f\x7b\x9f\x10\xdf\x28\xe0\xcc\x2f\xb7\x73\x83\xe7\xca\x4c\x51\x50\xf7\x12\xdd\x82\x3c\x23\x09\xf0\x16\x1b\xe0\xbd\x5e\xed\xd6\x0c\xf6\xba\x23\x08\x61\xa0\x8b\x9d\x9a\x74\x68\x43\x8b\x4d\x6e\xc6\x73\xd2\x8a\x54\xd8\x3c\x70\x10\xd5\x06\x31\xe5\x5f\x0a\x02\x83\x2a\xbc\x5a\x0a\x46", b"\x21\xf5\x12\x42\x56\x70\x94\x34\x77\x53\x4e\x90\x75\xce\xb5\xb7\xd6\x3f\x20\xdf", b"\x73\xc6\xf6\xf8\xde\x3a\xae\xa5\x20\xa0\x83\xb2\x26\x42\x99\xe8\x1c\xfc\x91\xc5", ); test::( b"\x79\xd5\x29\xe4\x0c\x2b\xa4\xe5\xb9\xc7\xd7\x7d\x72\x07\x6f\x1f\xd9\x49\x09\x28\xff\x44\x19\xc8\x24\xe6\x4d\xb8\xfb\x9a\x05\x1e\x01\xe8\xe1\x73\xc6\xf2\x14\xe0\xe9\xe6\x45\xed\x25\x0b\x6d\xaa\xa6\xf8\xc1\xa5\xcc\x90\x0d\x52\xcf\x3e\x1e\xfb\xfe\xa2\x57\x48\xe8\x9a\x1a\x54\x8c\x73\xe2\xd1\x10\xb2\x5f\x53\x08\xbc\xf7\x57\xb2\x13\x52\x16\xc9\x1d\xca\x27\x83\x33\x2c\x0d\x79\x03\xeb\x21\xc2\x26\xdb\xd3\x3a\x69\xee\xf5\x75\xaa\x8a\x41\xcb\xbd\xcd\x1b\x3d\x94\x92\x8a\xa8\xf8\xba\x58\xc5\xce\x0d\x31\x77\x86\xe8\x7b", p, q, g, b"\x28\x2d\xec\xc0\xe3\x79\x94\xc2\x85\x6e\x61\xf3\x6b\x83\x1b\x61\xbd\xc0\x2b\x7c\xa6\x75\xdb\xc3\xc2\x03\x28\x00\xb7\xef\xd3\xb7\x11\xac\xf1\x4c\x88\x69\x96\x88\x31\xe1\x45\x36\x1b\xf2\x18\x2b\x06\x0e\x48\x38\xf0\x7d\xc6\x1f\x76\x58\x4c\xf1\x02\xa9\x13\xbb\x28\xa5\x2c\x73\x17\xaf\x5f\x9d\x23\x22\x92\x7c\x96\x66\xe5\xe8\x7c\x2f\x2b\xfd\x2f\x18\x1d\xd3\x26\x12\xd7\xb2\xb2\xa6\x45\xbf\x1a\x47\xc0\xeb\xfd\x79\xa9\x40\xf6\x27\xa6\x68\xa8\xf2\xeb\x72\x9f\xd0\x51\xaa\x2c\x65\x9a\xbc\x91\x8e\x55\x71\x99\x4e\x65\x93", b"\x92\x9a\x48\x51\xbe\x0a\xe4\xba\x91\xda\x0e\x6c\x73\x76\xd7\x1d\xf7\x59\x2d\xbb", b"\x7e\x6b\x65\x04\xb7\x48\xef\x00\x24\xd9\xd2\xa2\xe6\xf3\xbc\xd7\xcf\x13\x5a\xc7", ); test::( b"\xf5\x51\x64\x10\x70\x63\x23\x54\x9b\x20\xc5\x2d\xaf\xa2\xf2\xf9\x07\x99\x78\x6c\x0d\xdb\x85\x04\x88\x92\xcc\xc1\x87\x20\xdc\xe5\xc1\x29\xa1\x0e\xb4\x38\x87\x88\xa3\xd9\x7a\x03\xb0\x00\x17\x99\xcb\x65\xa7\x9c\x88\x08\x36\xbc\x9f\x32\x04\xea\x75\xa5\x77\x20\x4d\xc1\xe2\x89\x4c\x57\x2a\x25\x8f\x9e\x51\x7c\xa3\x7c\x5b\x79\x1e\x48\xb2\x7c\x8d\xc1\xc8\x21\xb3\x4e\xbb\x1f\x29\x85\x8c\x4a\x72\xa0\xd5\x17\x2c\x56\x5e\x9d\xbe\x1b\xdd\xdf\x6e\x02\x48\x91\xcd\x62\x91\xfa\xa8\x1e\xd5\x65\x74\x6c\x61\xc2\xed\xa2\x01\x1f", p, q, g, b"\x74\xcc\xc6\xeb\x83\xad\xbc\xba\xd0\xfc\x37\x14\x4d\x9b\xfb\x85\xfd\xcc\x85\xab\x92\xc9\xf8\x87\x7c\x9c\xda\x66\x25\x1d\x1a\xff\x2f\xb2\x24\x88\x8d\xdd\xb7\xd7\x72\xa8\xb7\x38\xc5\x3e\x03\xec\xad\x99\x03\x79\x6f\xa3\xc9\xc6\x02\x4d\x06\x36\x7e\x08\x70\xad\x79\x76\x94\xf5\x98\x70\x8d\x08\x91\x2c\x0f\xe0\x98\x81\x76\x3a\x0a\x72\x2d\xda\x95\xd9\x4e\xee\x88\x24\x92\x7c\xbf\xa6\x76\x1a\x79\xa0\x38\xaa\x6d\x33\x1d\xa3\x4d\x9b\xd5\xc5\x83\x3c\x94\xc5\x26\xa8\x6a\xf1\xcd\xfb\x2d\x40\x79\xd2\xdb\x6d\x0b\x9a\x12\x38", b"\x27\xb3\xf2\x35\xe4\xaf\xc1\x8c\x66\x13\xb4\xfa\x7f\x27\xd7\xa8\x26\x2b\xa4\xc0", b"\x8b\x22\x63\x4e\x4d\x45\xb7\x1a\x84\xea\xba\xa1\xe5\xa4\xbf\x1e\x37\x33\x7a\x59", ); test::( b"\x55\xbd\x15\x26\xe0\x8f\x64\x43\xb2\x55\xac\xd3\x2c\x28\x68\x07\x54\x2d\x34\xc0\xf3\xd7\x98\x92\x71\x3f\x9d\x6d\x6d\x6b\x3b\xe7\x07\xe4\xaf\x6e\x71\xf7\xda\xb4\xa2\xc5\xf6\xbd\x25\xf5\xae\x1f\x51\x4b\x26\x44\xa4\xcd\xaf\xce\xce\x1e\x58\xf7\x57\x6f\x82\xe2\xab\x0a\xf2\x32\x6c\x71\x27\x9e\x9b\xce\xf1\xe1\xc5\x4a\x76\xfa\x77\xec\x2b\x2d\x05\x67\x17\x64\x57\x64\xe7\x99\x1b\x52\x0b\x0e\x5a\x1b\x04\x91\x09\x51\x9b\x22\xaa\x52\x04\xe3\xed\x53\xb1\xe0\x95\x7d\xab\x5e\xc3\x24\x79\xd0\x6a\xc3\xe1\x1a\x5d\x1c\xbd\x03", p, q, g, b"\x5d\x6e\xdf\x6d\xb6\xe6\xc2\x7e\x80\xa7\xf0\x25\x97\x23\x79\x19\x17\x0b\x49\x36\x48\x9d\x6f\x15\xf5\x98\xb8\x20\xcd\x91\x7e\x17\x25\x09\xb7\xe2\x87\xb8\x8b\x0c\xc1\x4e\x1a\x01\x86\x79\x38\x86\x80\x9a\xb4\x17\x02\x09\x98\x70\x95\x09\x22\x34\xb4\xfd\xc4\x4b\x3d\x1f\xc1\x6e\xeb\x2e\xfa\xf8\x52\xed\x39\x16\x69\x8c\xf9\xec\xa4\x61\x2b\x49\x61\xbb\x6e\x20\xc3\x2e\x18\x84\x69\x88\x3f\x97\xf4\x9e\x29\xa8\x19\x7c\x30\xd0\x72\x3b\xab\xb0\x6d\xea\x70\x4f\x77\x04\xb2\x78\x8e\x57\xd7\x6d\x6d\x9a\x3c\xfa\x68\xf6\xc7\x83", b"\x62\x1a\x29\x09\x30\xac\x43\x67\x37\xa7\x2f\xb4\xc6\x2b\xf5\xc4\xb6\x74\x81\xaf", b"\x62\xdb\x20\xf8\x2a\x57\x54\xf1\x09\xf7\xa2\xce\x58\x1d\x4c\x8d\x71\xc6\x8d\x29", ); test::( b"\x62\x78\x9a\x89\xf0\xd7\x08\xe2\x1a\x12\x1f\xc3\x40\x09\xaf\x88\x41\x33\x68\x1b\x9d\x4a\x66\xcc\x36\xc0\x36\x5c\x34\xbe\x72\xa4\x98\x2e\xb0\x96\x1c\xe2\x57\xf3\x5e\x6e\x71\x83\xf0\x20\x4a\x96\xa5\x45\x19\x30\x01\x02\x3d\x33\x09\xa8\x99\x7e\x7c\x4b\x76\x2a\xb4\xf4\xc4\x0e\x03\xe1\x3f\x4e\xdb\x32\x8b\x23\xcf\x00\xc0\x91\x19\xde\xb4\x0a\xdd\xf6\x56\x7b\x3b\x74\xac\xef\x5c\xef\xf0\x45\x30\x4d\x61\x84\x21\xe8\x73\xc4\x1a\x72\xd3\x1e\x45\x1d\x21\x3b\x06\x08\x29\xb2\x86\xf6\x40\x13\xd4\xd9\x34\x2a\xe7\xab\x80\x64", p, q, g, b"\xad\x59\x05\x90\xa8\x2e\x89\x29\xca\x86\xf4\x05\x51\x6c\x32\x91\x3b\xf5\x28\x2f\x70\x30\x9c\x6d\x4a\x88\xcc\xf1\x65\xce\x15\xfc\xf1\x1e\x14\x0c\x36\x6b\xb2\x73\x83\x9a\x71\x1c\xb6\xae\x52\xbb\x71\x78\x59\x57\x0f\xdb\xf9\xfc\x26\x72\x67\x28\x59\x6e\x6f\xc7\x19\x23\xde\xad\xb3\x5a\x9d\x57\xcd\xb2\x13\xc0\xf2\x9c\x13\x75\xf8\xb1\xd3\xc6\xb5\x26\x90\xc4\x28\xf7\x48\x1c\x14\xaa\xd8\x2f\xba\x7f\x24\xee\xa8\xcd\x8d\xa7\xf0\xef\x7a\xe7\x81\xc1\xa9\x26\x67\x1a\x61\xd4\xe5\xff\xc8\xdd\xf1\xbc\x10\xd6\x88\xa9\x04\xc6", b"\x89\xdc\xbc\xa7\xc8\xcd\x6b\x90\xaa\x90\x6a\x4c\x54\x71\x53\x76\x2f\xcf\xff\xd6", b"\x23\xe8\x92\x6b\x18\xcf\xd4\xb6\x7c\x53\xfa\xc4\xa2\xd5\x32\x1e\x5c\x3d\x88\x0c", ); test::( b"\x4e\xaf\xcc\x68\x74\xae\x2a\x6d\x52\x57\x38\x96\x7a\xfb\x30\x54\x35\x7a\x39\x67\x0d\x1e\x55\x55\xd7\xdc\x55\xbe\x24\xdd\x5a\x32\xa0\xc7\xca\x3f\x1b\x5c\x6d\x94\x8c\x9c\xe3\x91\x01\x3a\xbe\xb4\x7f\x7e\x24\xcd\x2c\x54\xe1\xfc\x7c\x0e\x92\xc4\xab\x77\xf5\x97\x3a\x70\x54\xbd\x1c\x6c\x84\x5b\x80\x2b\x79\x37\xd6\x52\x05\x08\xae\x01\x8a\xe1\x4b\x27\xff\x4b\x1e\x34\x0a\x4b\x9f\x6f\x6b\x48\x14\xd0\x7e\x90\xcb\x8f\x19\xb1\x5e\x91\x5d\x6a\xd1\x83\x4c\x0f\x7a\x3c\x3e\x1e\x45\x20\x67\x72\xa0\xee\xc2\xd3\xf9\x16\x08\x97", p, q, g, b"\xb9\x3d\x79\x47\x2f\x04\x98\x93\x77\x9a\x3a\x0e\x83\xb3\x85\x3f\x78\xb3\xcf\x69\xb7\x59\x61\xa6\x0e\x95\x0f\x0c\x00\xf4\x98\xf3\xea\xa2\x38\x43\x25\xf7\x4d\xdd\x38\x29\x2f\xbd\xbd\xb1\x99\x21\x2e\x90\xb1\x4e\xc9\xe5\x54\x72\x7d\xf8\x1e\x06\xeb\x77\x83\xad\xda\x38\x69\x1c\x63\xa7\xcb\x00\xcd\x76\xd8\xe1\x8e\x3d\x29\xc7\x93\xe9\xf1\xfe\x83\x37\xf1\x59\x8b\x89\x65\x1f\x63\x4c\xb7\x03\xf2\x18\xe1\x90\x63\x19\xf8\x2a\xc6\xd5\x8e\x67\x86\xda\x7a\xec\xfb\xca\x59\x39\xf0\x3a\x13\xe7\xb4\xd5\xa8\xac\x81\x2d\x78\x29", b"\x63\x3e\x98\x12\xa0\x65\x7c\xec\x33\x26\xaa\x54\x15\x34\x0c\x46\x36\x2f\xcd\x4b", b"\x6b\x20\x1f\x0c\x3f\xd4\x42\x47\xf6\xc2\x8c\x01\xd1\x21\x7e\xb9\x91\x46\xc0\x40", ); test::( b"\x86\xd9\x89\x2b\x48\xf5\x95\x41\x01\x48\x27\x42\xc0\xda\xfb\x68\xdc\x97\x12\x24\x83\xb9\xe4\x59\xf9\x74\x95\xcc\x97\x0e\x05\x6d\x21\x62\xc7\xc7\x1d\xb1\x67\x22\x9f\xb7\xf4\x52\x09\xe0\xc0\x1e\xb0\x6f\xf9\x24\xb8\x23\xed\xa5\x1a\x7e\x99\x0f\x3c\x98\x6e\xb9\xaf\x2a\x7a\x07\x3f\x75\x4c\xb8\x4d\xb4\x53\xa9\xe8\xc0\xae\x7f\xa5\xc0\x5a\x26\x55\xd2\x61\xad\x7e\xc5\x61\x28\x76\xfa\x7d\xf0\x95\x22\xe0\xb6\x9a\xe9\x24\x77\xf6\x3d\xef\x19\x92\xc9\x6c\xe9\x5e\xe7\xbd\x63\x0e\xc1\x61\x46\x21\xda\x6a\x51\x2a\xb5\x3d\xd7", p, q, g, b"\xae\x26\x4e\xa9\x6b\xf0\x93\xef\x2d\xe2\x73\x81\x73\x82\x19\xe3\xbf\xdb\x08\x61\x69\x67\xcd\x13\xe9\x41\x5f\x47\x5c\x4a\x79\x4c\x19\xf1\x2a\x60\x7b\x89\x8d\xb1\xe3\xe6\xbc\x54\x02\x32\x75\x85\xd3\x28\x41\xae\x15\xe3\x46\x28\x80\x85\x0e\x9e\x41\x36\xa4\x75\x1b\x64\xa7\x29\xea\x27\xb7\x2c\xe3\x61\x28\xa4\x4f\xa5\x37\x52\xa0\x8d\x73\x58\x4f\xaa\x44\xfb\x14\x12\x0f\x47\xa0\x4c\x47\xe9\x89\xea\xda\xbc\x7e\x5c\xdb\x15\xd2\x7c\x2b\x0e\xa4\x25\x7c\xec\x22\x9a\x2c\x7b\xf7\xc9\x3c\x57\x1e\x8d\x22\xae\xaa\x2e\x38\xbe", b"\x77\xb4\x80\x88\x5c\x70\xc1\xfe\xe2\x05\x62\x37\xd1\xb7\x9c\xfd\x9f\xb5\x4a\x1f", b"\x22\x83\xf4\xc0\x64\x0f\xf6\xda\xac\xbd\xfb\xbe\xf7\x22\x4a\xfa\x59\xca\x39\x59", ); test::( b"\x8b\x60\xb9\xb6\xba\x37\x54\x48\xde\x4f\x00\xde\x51\xd1\x87\x06\xef\x8c\x4f\x97\xba\x34\xc9\xcc\xe2\xb0\xab\xb0\x69\x84\x36\x00\x9d\x1d\x2b\xaf\xcb\xef\x73\xa8\xb5\xdf\xf6\xa3\xcd\x5d\xb5\x25\x8a\xc8\x4e\xf7\x24\xb2\x8d\x8a\x62\xd7\x15\xda\x6e\x11\x19\x39\x73\x53\x66\xa7\xc6\x64\x70\x36\x45\x57\xf5\x46\x37\x7d\x5c\x0e\x7e\xa9\x06\x47\x31\xcb\x71\x49\xe1\x05\x1d\x66\xa7\xbe\xd1\x4a\xa2\x05\xbd\xc5\xd4\xb9\xca\x02\x9a\x1e\x68\xa6\xfa\x2c\x1d\xb2\x2d\x27\xfb\x79\xd8\x38\x77\xcf\xaa\x67\x42\x11\x92\x29\xa4\x93", p, q, g, b"\x87\x03\x2f\x26\x3d\xe2\xbf\x2f\x26\x8a\x09\x3f\x33\xc3\x66\xd6\xbc\xda\x77\x2c\xa9\x59\xfa\x17\xcf\xe9\x48\xf1\xdc\xa3\xe7\x5e\xc9\x42\x76\xde\x91\xd9\xbc\x60\xfc\x6a\xb9\x22\x48\x61\xc5\x5d\xc9\xcc\xc5\xf7\x15\xc2\x51\xdd\x50\x8b\xd4\x38\x68\x1c\xab\x20\x50\x59\x05\x0f\x8e\x11\xe8\xa5\x46\x8d\xa4\x2d\x20\xae\xfa\xc5\x3d\x7a\x9f\xb7\x1f\x64\x24\xd7\xbd\xc6\x5d\xb8\x73\xee\x4f\x9d\xcd\x91\x80\x91\xaa\x72\x4b\x26\x1b\x60\x56\xf3\x20\xca\x77\x24\x51\x8e\x14\xcb\x8d\xba\x0b\x71\x3f\x54\xa0\xfe\x44\xff\x15\x97", b"\x5d\x15\x9f\x89\x4d\x25\x0d\xb9\x0d\x7f\xcc\xd4\x93\x29\xe4\x4d\x11\x12\xdb\x47", b"\x37\x23\x1b\xc1\x51\x95\xec\xb6\xba\xdb\x7c\x3f\xe8\x03\x80\xff\x91\x2b\xae\xda", ); // [mod = L=1024, N=160, SHA-384] let p = b"\xf2\x4a\x4a\xfc\x72\xc7\xe3\x73\xa3\xc3\x09\x62\x33\x2f\xe5\x40\x5c\x45\x93\x09\x63\x90\x94\x18\xc3\x07\x92\xaa\xf1\x35\xdd\xea\x56\x1e\x94\xf2\x47\x26\x71\x6b\x75\xa1\x88\x28\x98\x2e\x4c\xe4\x4c\x1f\xdd\xcb\x74\x64\x87\xb6\xb7\x7a\x9a\x5a\x17\xf8\x68\xab\x50\xcd\x62\x1b\x5b\xc9\xda\x47\x08\x80\xb2\x87\xd7\x39\x81\x90\xa4\x2a\x5e\xe2\x2e\xd8\xd1\xff\x14\x7e\x20\x19\x81\x0c\x82\x98\xed\x68\xe1\xca\x69\xd4\x1d\x55\x5f\x24\x9e\x64\x9f\xb1\x72\x5d\xdb\x07\x5c\x17\xb3\x7b\xef\xf4\x67\xfd\xd1\x60\x92\x43\x37\x3f"; let q = b"\xda\x06\x5a\x07\x8d\xdb\x56\xee\x5d\x2a\xd0\x6c\xaf\xab\x20\x82\x0d\x2c\x47\x55"; let g = b"\x47\xb5\x59\x1b\x79\x04\x3e\x4e\x03\xca\x78\xa0\xe2\x77\xc9\xa2\x1e\x2a\x6b\x54\x3b\xf4\xf0\x44\x10\x4c\xd9\xac\x93\xef\xf8\xe1\x01\xbb\x60\x31\xef\xc8\xc5\x96\xd5\xd2\xf9\x2e\x3a\x3d\x0f\x1f\x74\x70\x2d\xd5\x4f\x77\xd3\xcd\x46\xc0\x4d\xee\x7a\x5d\xe9\xf0\x0a\xd3\x17\x69\x1f\xdd\xce\xfe\x4a\x22\x0a\x26\x51\xac\xae\x7f\xce\xdd\xa9\x2b\xfc\xca\x85\x5d\xb6\x70\x5e\x8d\x86\x4f\x81\x92\xbf\x6b\xf8\x60\xc0\x0f\x08\xad\x64\x93\xec\xc1\x87\x2e\x00\x28\xd5\xc8\x6d\x44\x50\x5d\xb5\x74\x22\x51\x5c\x38\x25\xa6\xf7\x8a"; test::( b"\xb0\xdb\xbf\x4a\x42\x1b\xa5\xc5\xb0\xe5\x2f\x09\x62\x98\x01\xc1\x13\x25\x8c\x25\x2f\x29\x89\x8c\x33\x54\x70\x6e\x39\xec\x58\x24\xbe\x52\x3d\x0e\x2f\x8c\xfe\x02\x2c\xd6\x11\x65\x30\x12\x74\xd5\xd6\x21\xa5\x97\x55\xf5\x04\x04\xd8\xb8\x02\x37\x1c\xe6\x16\xde\xfa\x96\x2e\x36\x36\xae\x93\x4e\xc3\x4e\x4b\xcf\x77\xa1\x6c\x7e\xff\x8c\xf4\xcc\x08\xa0\xf4\x84\x9d\x6a\xd4\x30\x7e\x9f\x8d\xf8\x3f\x24\xad\x16\xab\x46\xd1\xa6\x1d\x2d\x7d\x4e\x21\x68\x1e\xb2\xae\x28\x1a\x1a\x5f\x9b\xca\x85\x73\xa3\xf5\x28\x1d\x30\x8a\x5a", p, q, g, b"\x43\xa2\x7b\x74\x0f\x42\x2c\xb2\xdc\x3e\xaa\x23\x23\x15\x88\x3a\x2f\x6a\x22\x92\x7f\x99\x7d\x02\x4f\x5a\x63\x8b\x50\x7b\x17\xd3\xb1\xcb\xd3\xec\x69\x1c\xc6\x74\x47\x09\x60\xa0\x14\x6e\xfd\xec\xb9\x5b\xb5\xfe\x24\x97\x49\xe3\xc8\x06\xcd\x5c\xc3\xe7\xf7\xba\xb8\x45\xda\xdb\xe1\xf5\x0b\x33\x66\xfb\x82\x7a\x94\x2c\xe6\x24\x6d\xda\x7b\xd2\xc1\x3e\x1b\x4a\x92\x6c\x0c\x82\xc8\x84\x63\x95\x52\xd9\xd4\x60\x36\xf9\xa4\xbc\x2a\x9e\x51\xc2\xd7\x6e\x30\x74\xd1\xf5\x3a\x63\x22\x4c\x42\x79\xe0\xfa\x46\x04\x74\xd4\xff\xde", b"\x77\xc4\xd9\x9f\x62\xb3\xad\x7d\xd1\xfe\x64\x98\xdb\x45\xa5\xda\x73\xce\x7b\xde", b"\x23\x87\x1a\x00\x2a\xe5\x03\xfd\xab\xaa\x6a\x84\xdc\xc8\xf3\x87\x69\x73\x7f\x01", ); test::( b"\xec\x84\xbe\xd0\x9e\xcb\x4a\x6f\xee\xec\x3a\x70\x71\xb6\x5a\x4c\x12\x67\xa0\x3c\xac\x8b\x5a\x05\x00\xc2\x37\xb2\x0d\xc0\x58\x51\x4d\xa7\x98\x33\x5a\x21\xb2\x3d\x7e\x8c\xbb\x15\xef\xcf\x92\xe6\x06\x0a\x13\xfb\x77\xf4\x99\x81\x47\xde\xc1\xd0\xfa\x0e\xdd\x41\x8b\x0a\xae\x8e\xb0\x05\x6f\xc7\xd4\x00\x8b\x19\x8b\xd4\x0b\x96\x9d\xc1\x0d\x79\xe1\x5b\x23\x00\x82\x03\x23\xbd\x5e\x1b\x7d\x89\x4c\xe8\xe7\xbc\x8f\x7c\xec\xa1\x29\xb5\xe5\x11\xee\x1c\x8c\xae\xc2\x55\x14\xf5\x37\x35\x3a\x91\x2a\x97\x1b\x80\x70\xe3\xf1\x41", p, q, g, b"\xd7\xa0\x95\x0d\x0e\x63\x62\xb0\xc9\x42\xad\x8a\xf6\x71\x61\xdf\x07\xde\xbc\xa5\x9a\x4c\xfa\x72\x8f\x93\xd4\x9b\x6e\x29\x6a\x23\x96\x9a\x65\xa9\x2b\x2e\x05\x39\x8a\x11\x4d\x73\xd5\xa5\x2b\x73\xb7\x1e\xbb\x28\x57\x1c\xf6\xb6\x00\x2f\x85\x3a\x8f\x59\x4b\x5c\x93\xb9\xa8\x42\x33\xf3\xc5\x52\x82\x36\x19\xe0\xaa\x84\x7d\x60\x20\x3d\xb1\x5d\x2a\x91\x6a\xd0\x22\x28\x32\x5e\x15\x78\x39\x88\xf4\x15\x9e\x05\xc8\xca\x08\x83\x60\xe6\xea\x7a\xce\x51\xb0\x55\x10\x21\x53\xc0\x0a\xdf\x33\x5f\xf6\xaf\xfd\x17\x54\xf2\xa8\xaa", b"\xb2\x57\x0e\x0e\x19\x93\x54\x38\xd3\x26\x86\xc4\x78\x47\x3a\x0e\x45\xda\xd0\x23", b"\x39\xa0\x2e\x98\x03\x62\x4f\x7e\x90\xfe\xab\x87\x14\xcd\xdc\x41\xe0\x1f\x8f\xce", ); test::( b"\x80\xf7\x57\xfc\x06\x40\x9b\x70\xd7\x33\xef\xdb\x68\xb5\x20\xf3\xf9\x07\x8a\xb9\x36\xc4\x47\x9f\xb9\x8d\x0b\xeb\x16\x31\xd8\x30\x33\x24\x47\x08\x24\x86\x22\x24\xb4\x39\xbc\x85\xde\xcf\xcc\xb8\xde\x8f\xbf\x36\xa2\xbc\x4c\xe3\xa0\x92\x68\x82\x49\xab\x4e\xb9\xfe\xbf\xad\x26\x82\x45\xfb\xd7\xe7\x2e\x0f\x24\x05\x00\xaf\x71\x29\x2e\xa2\x3c\x8a\xd4\xb7\x1e\x03\x21\x06\xf5\x87\xf4\x61\x16\x63\x13\x76\x90\xcb\x25\x24\x19\x12\x76\x3c\x5e\x18\x79\xb3\xab\x67\xe2\x18\x7f\x92\xd8\x21\xfc\x81\xf5\x52\xe2\xc3\x55\xbd\x73", p, q, g, b"\x1f\x03\x01\x3e\x66\xfd\x1e\x63\x3f\xf7\x43\x89\x4c\x37\xf6\x96\x48\x39\xa5\x2c\xfb\xb6\xe8\x49\xcf\xb4\xea\xc9\xa3\xc9\xcd\xb5\x5c\x28\xe1\x47\x88\x86\x5c\x21\x2b\xe6\x20\x47\xcb\x39\xc6\x36\x57\x80\xbb\x2e\x62\x79\x57\xd3\x4e\x99\x23\x2f\x69\x17\x0a\x8e\xfb\x89\x4d\x80\x29\xd1\xb8\xbe\xa8\xb9\x11\xce\xbc\xd4\x3b\x86\xbd\x53\x66\x93\xf1\x8b\xfe\x50\xc8\x4b\x99\x91\x11\x81\xac\xe1\x4c\x3f\xab\x9f\xb6\xac\xd9\x87\x86\xf9\xd2\xad\x12\x9c\x5e\xfe\xb8\xcd\x09\x41\xa3\xd8\x90\x98\xd5\x72\x1d\x43\x53\x43\xcb\x76", b"\xc7\xdb\x4a\x9f\x54\xd8\x82\xec\x5f\x56\x17\x05\x39\x6c\x94\x83\x4d\xd5\x3c\x5a", b"\x67\x52\xcb\x6b\xe9\xb8\x72\x65\xd7\x6d\x69\xb3\x82\x29\x96\x78\xf9\x6a\x5f\xaf", ); test::( b"\x36\xa2\x56\x59\xa7\xf1\xde\x66\xb4\x72\x1b\x48\x85\x5c\xde\xbe\x98\xfe\x61\x13\x24\x1b\x7b\xed\xdc\x26\x91\x49\x3e\xd0\xad\xd0\xb6\xa9\xfb\xbf\x9f\xb8\x70\xa1\xbc\x68\xa9\x01\xb9\x32\xf4\x7d\xed\x53\x2f\x93\x49\x3b\x1c\x08\x14\x08\x16\x58\x07\xb3\x8e\xfc\xe7\xac\xc7\xdb\xc2\x16\xbe\xf7\x4e\xd5\x9e\x20\x97\x33\x26\x55\x3c\xc8\x37\x79\xf7\x42\xe3\xf4\x69\xa7\x27\x8e\xeb\x15\x37\xdd\x71\xcd\x8f\x15\x11\x4d\x84\x69\x3c\x2e\x6b\xbf\x62\x81\x4a\x08\xe8\x2b\xa7\x15\x39\xf4\xcb\x4b\xf0\x8c\x86\x9d\x7d\xb9\xde\xa9", p, q, g, b"\xc9\x00\x39\x95\xb0\x14\xaf\xad\x66\xde\x25\xfc\x0a\x22\x10\xb1\xf1\xb2\x2d\x27\x5d\xa5\x1a\x27\xfa\xac\xda\x04\x2f\xd7\x64\x56\x86\xec\x8b\x1b\x62\xd5\x8d\x8a\xf2\xe1\x06\x3a\xb8\xe1\x46\xd1\x1e\x3a\x07\x71\x0b\xc4\x52\x12\x28\xf3\x5f\x51\x73\x44\x3b\xbf\xd0\x89\xf6\x42\xcd\x16\x64\x1c\x57\x19\x9c\x9a\xb6\xe0\xd9\xb0\xc0\x19\x31\xc2\xd1\x62\xf5\xe2\x0d\xbe\x73\x65\xc9\x3a\xdc\x62\xfd\x5a\x46\x1b\xea\x59\x56\xd7\xc1\x1a\xc6\x76\x47\xbe\xdc\xea\xd5\xbb\x31\x12\x24\xa4\x96\xaa\x15\x59\x92\xae\xe7\x4e\x45\xad", b"\x17\xcc\x53\xb5\xb9\x55\x8c\xc4\x1d\xf9\x46\x05\x5b\x8d\x7e\x19\x71\xbe\x86\xd7", b"\x00\x3c\x21\x50\x39\x71\xc0\x3b\x5e\xf4\xed\xc8\x04\xd2\xf7\xd3\x3f\x9e\xa9\xcc", ); test::( b"\x65\xa3\xc9\x24\x53\xf9\x61\xde\x7f\x57\x6d\x5a\x1e\x31\x06\xc3\x8b\x7f\x20\x81\x39\x94\xb5\xdd\x20\x15\x46\xdc\x45\x50\x65\xdd\xe5\x9e\xdc\xd8\x4d\x0f\xa1\x7a\x85\xc0\xf9\xf9\x91\x71\xd6\x7a\x34\x47\x5c\xef\x4f\x31\x19\x51\xf2\xee\xf7\xf6\xb6\x4a\x5b\xbc\x6d\xa6\xd1\xb6\x22\x48\x0c\xde\x56\xa0\x7a\x77\xaa\x60\x40\xeb\xc1\xfc\xb2\x65\xb3\xb6\x24\x88\x1f\xd2\x72\x03\xdc\xfe\x8a\x12\x49\x21\x98\x47\x4a\x99\x0c\xb9\xf3\x4a\x19\x43\x35\x6f\xde\x5b\xce\x3f\xd8\x35\x16\xda\x8b\xf7\x80\xf8\xcb\x18\x51\xb3\xb9\x54", p, q, g, b"\x0f\xc5\x14\xca\x16\x0f\x34\xf2\xf6\xed\xe1\xba\x59\x14\xd5\x84\x4c\x9d\xe5\x14\x20\x8c\x72\x56\x9a\x0b\x36\xec\x92\xc8\xb2\xc8\xfd\xfb\x7d\x68\x12\x74\x86\xe5\x8a\x04\xa3\x2d\x0d\x15\x0e\x51\xbb\x05\xe6\x66\x24\xcb\x62\x2e\xda\xe1\x9a\x6b\x4b\x1d\x83\x17\x68\x9b\xaa\xfa\x30\x16\x8e\xf3\x75\x9e\xe8\x2e\x61\x4e\x47\x61\x90\x01\x82\xdf\x90\xe9\xcd\x2d\x93\x11\x53\x77\x1b\x8b\xe3\x0d\x89\xc2\xfb\xb9\x5b\xe7\xe0\x5a\x4b\x29\xda\x96\x8f\xfe\xbb\xda\x5c\x0c\x98\x39\x35\x4b\xb5\x9d\xc6\x97\xa2\x69\x06\x3f\x2f\x50", b"\x77\xff\xaf\x42\x90\xc4\x1e\xb0\x89\xc1\xd7\xbe\x5c\x8d\x38\x33\x02\x77\x02\xef", b"\xcb\x75\x3a\x2d\x4c\xe0\xe5\x98\x51\xf8\x14\x77\x9f\x34\x3b\xeb\x61\x5f\x27\x70", ); test::( b"\x15\x26\xb6\x4c\xe4\x1c\xc8\xe2\xce\xf2\x6f\x37\x06\xbe\x53\x0a\x36\xac\x9c\xd1\x6f\xf6\x9f\x05\x77\x3e\x94\x47\xed\x94\x52\x06\x4b\x77\x51\xf3\xa6\x49\x19\xbf\xa3\xa7\xe1\x02\x0d\xfc\x17\x5a\x10\xac\xfd\xf0\x96\xfd\x41\xc0\x33\x72\xe4\xd2\xab\xd7\xba\x88\x7e\x00\x76\x71\x6c\xe9\x55\x2f\x2c\x7c\x8e\xdd\xb1\xb3\xfc\xa1\xbd\xcd\x23\x30\x0c\xe2\xb1\x67\x7d\x4a\x2d\xeb\xea\xa7\x05\x34\x66\xe5\x9b\x09\x87\x71\xbf\xb9\x21\x8e\x0f\xb4\xab\x6b\x74\x18\xab\xeb\xcc\x34\xd6\x81\xe1\x4c\x4a\x89\x75\x00\x0d\x83\xbb\x44", p, q, g, b"\xd3\x0e\xed\x73\x9f\x46\x47\x93\x64\xd4\xc2\xbe\xc1\x8c\xf4\xc7\x5c\x32\x4f\x8d\xb8\x18\x4d\x9c\x3c\x17\x55\x56\xa0\x0a\xcf\xb0\xa6\x81\x38\x87\xb6\x87\x06\xe7\x0c\x16\x7f\x40\x63\xbc\x00\x46\x39\x6b\xa1\xbb\x32\x26\xc2\x92\x21\xbd\x64\xec\x4c\xeb\xc9\x90\xa7\xb4\x04\xe2\x6e\x2c\xf0\x42\x30\x4a\x7c\x57\xab\x7d\xe4\x18\xba\x67\x1e\x17\xf7\xf5\x02\xb9\xe1\xbb\x59\x84\x46\x9b\x30\x4e\xbc\x0c\x3c\x3a\x5a\x69\xcf\xf7\xab\xff\x41\x10\x13\x03\x16\x65\x1e\x0f\x93\xeb\xd2\x83\x4d\xd0\x44\xea\xe1\xfd\x6f\x04\x51\x02", b"\x31\xab\xe8\xe7\x45\x8c\xe3\x63\xa5\xf3\x98\x51\x11\xb2\x39\xbc\x8d\xf8\xdc\xb9", b"\x1d\x96\x7b\xe0\x11\x61\x28\x69\x9d\x16\x7f\xc1\x6e\x5e\x92\x0a\x41\x31\x16\x69", ); test::( b"\xd7\x85\x2e\xe9\x0b\x3f\x11\x20\xbb\x11\x24\x98\x08\xc7\xe7\xbe\x14\xfe\x57\x7b\xff\x18\x86\xbe\x3c\x42\x58\x9a\x6e\xeb\x06\xa1\x83\x41\x10\x86\x2b\x65\xd2\x6c\xc5\xa2\xe5\xd9\x03\xed\x24\x32\x8d\x68\x4c\x96\xe3\xba\xbb\x37\xae\x31\xf9\x6d\x32\xf5\x76\x57\xa3\xbd\x77\x98\xaa\xfa\xe8\x6f\x44\xad\x89\x81\xe7\xcd\x47\xd7\xf3\x1b\xb4\x56\x4a\x75\x7c\x92\x5c\x64\xda\x98\x20\x96\x3c\x1c\x51\x48\xf5\x89\xd6\x39\x30\x04\xa6\xa5\x8a\xa2\xc8\xa5\x78\xf4\xdb\x75\x95\xf8\x86\x17\x0e\x79\xe9\xd5\x7b\xf7\xff\x8f\xd0\xa7", p, q, g, b"\x0d\xd3\x79\x85\x16\x3f\x93\x61\x8f\xde\xa8\xe3\x97\x54\x19\xfc\xf7\x44\x6f\xf9\x80\x85\x1e\x18\x93\x2d\x74\x94\xf8\x09\xc0\xae\x9c\x03\xcc\x39\x77\x9f\xf0\x42\x2c\xb2\x24\x8a\xe1\x98\x6f\x9a\xad\x2a\x43\xd6\xfa\x68\x78\xd2\x44\xb4\x29\xaa\xc5\xea\x80\x15\x79\x80\x57\x7e\x5b\xa0\xd1\x1b\x1f\xa3\x40\xa2\x83\xfa\x0a\x2d\x65\x1e\x02\x43\x31\xe6\xbb\xe7\xd0\x1a\xc0\x34\xdb\x37\xb0\x08\xb9\x1f\x9f\x88\xd1\x35\xfa\xd2\x3a\xf8\xc2\x27\x65\xd8\x33\xa9\xc9\xef\xf7\xac\xcf\x66\x8e\x17\xf9\xa8\xbd\xf5\x93\x17\xc2\x02", b"\x44\xc2\xd6\x50\x98\x74\xac\xe7\x1a\xcd\x1d\xcc\x32\x33\x5b\x39\x4c\x4e\x41\xe0", b"\x37\xe7\x8f\x13\xae\xc0\x52\xeb\x7b\x07\xa8\xb9\xf6\xd5\x4d\xbc\x77\x82\x90\x06", ); test::( b"\x9a\xb9\x14\x48\xa0\xdc\x96\x94\xbe\x17\x3c\xe6\xd9\xb5\x22\xce\x0e\x2f\x75\xfc\xb5\x77\x20\xfc\x5e\xb8\xf9\x2d\x8f\xb0\xe1\x95\x03\x00\x63\x96\x89\x25\xa5\x68\x63\x6f\x4a\xea\x1e\xdf\x6c\x5f\xcb\x86\xdc\xed\xd2\x04\x53\x9d\x8c\x29\x17\x57\xfb\x8a\x51\x62\x0a\xbd\xa5\x9a\xa8\xf8\x50\x2e\x69\x04\xbc\xe0\x66\x7d\x92\xc8\xcb\x3f\xcf\x1a\x61\xb1\xfb\x0b\xb4\xe9\x38\x3b\x37\xeb\x46\x9b\xd5\xc2\xf5\xa7\x76\x80\xda\x62\xf9\x07\xc2\xe2\x63\xcb\x48\x40\x2b\x4b\x12\x98\x5e\xaa\xb9\x04\x51\x88\x5e\x81\x9b\x3e\x8c\x3a", p, q, g, b"\x49\xd7\xf0\x8f\xde\x0a\x83\xcf\xb8\x11\x6c\x9b\x7c\xdc\xab\x29\x75\x1f\xca\x5f\xfe\x31\x07\x60\xfe\xa7\x13\xc3\x0e\x95\xe7\x75\x5e\x65\xce\x60\x92\x88\x93\xc6\x50\x20\xee\x9b\x61\xf6\xc9\xc8\x9c\x07\xe0\xfc\x50\x3b\x7b\x03\x13\x68\xf0\x69\x57\x8a\x9e\x6b\x45\x1f\xef\x36\x9e\xf9\x0c\x26\xdd\x66\x0e\xe1\xa6\xb8\xb7\x14\xd1\xcc\x28\x24\x5e\x9f\x13\xf1\x87\x12\x2d\xe2\x6a\xc2\xfb\xf5\xbc\xcb\x7c\xaf\xf5\x9f\x1d\xe9\x10\x55\x11\x04\xd3\xa0\xe8\xfa\x9f\xe6\xb7\xea\xcc\x9a\x5f\xd5\x56\xb7\xbf\x71\x39\xd6\xed\xf9", b"\x95\xda\x25\xd0\x6f\xf9\xc0\x2b\xc8\x93\xfb\x03\x25\x08\x30\x4c\x17\xeb\xcf\x08", b"\x61\x7a\xdb\x8d\xe1\x0d\xa1\xa8\x74\x13\xd6\x44\x66\xb4\x82\x40\x9d\x27\xbc\xe7", ); test::( b"\xc9\xc0\xe6\x9f\x84\x0c\xb6\xde\xb9\x84\xc2\x57\x5d\x7f\x68\x16\xfa\x35\xaf\x03\xb4\x42\x9c\x70\x3a\x5a\xec\x90\xe7\xcb\x26\xe5\x24\x13\x58\x7f\x3b\xc5\xa0\x77\x2b\xe7\xb5\xe5\x89\xc9\xa7\x60\x71\xc1\x73\x98\x33\xf4\x61\x1f\xa9\x51\xd3\x75\x82\x0b\x48\xd7\x40\x62\x6c\x66\x55\x34\xd6\x04\x87\xbf\x3e\x0a\x84\xeb\x63\x89\xe0\x99\xfe\x62\x1f\x26\x94\x91\xc3\xb8\x94\x2e\x03\xbb\xad\x2a\x52\x20\xca\xf5\x1e\x7b\x4a\x26\x50\xe4\xb3\x00\x02\x4a\x0a\x96\xf0\x86\x1b\x32\x06\xff\xfc\xa8\x3d\x08\x50\xf2\xa3\xe2\xa0\x6c", p, q, g, b"\x26\xf7\x32\x19\xd0\xe7\xdd\x3a\x80\xe7\xfb\xc0\x79\xd9\xba\xad\x45\x12\x89\x1a\xad\xfd\x24\x16\xb1\x85\x9f\x41\xad\xac\x31\x17\x1e\xc6\x24\xd8\xa4\xd6\xa1\x0d\x5d\xe1\xb9\x39\x59\xbc\x49\x95\x3f\x23\x49\x2f\x18\xab\x76\x5f\x96\x3a\x98\x58\x48\x07\xd6\x66\x29\xe5\xa1\xe0\x57\xd7\x7d\x42\xe3\x36\x34\x58\x64\x1a\x04\x69\x16\x6a\x0d\x85\x3b\x27\x79\x8b\xd8\x48\xaa\x0d\x3c\xcd\xbb\x40\xfa\x21\xb9\xfe\x62\x82\x4c\xb2\xc7\xcc\x62\x42\x59\x78\xe6\x72\xaf\xf0\xbb\xd8\xc8\xcd\x08\xe4\x63\x85\xb0\xd6\x21\x9d\xc5\x6e", b"\xb6\xb2\x5a\x9d\xa1\x10\xb5\xd5\x76\x75\x88\x9e\xae\x75\xab\x58\xa4\xd8\xe2\x81", b"\x5a\x60\xc2\xb0\xad\xbe\xa4\xc5\xbe\x06\x5b\xbd\x0f\xd0\xe3\xce\x4b\xf2\x92\x00", ); test::( b"\x40\x02\xde\x82\x5b\xb8\x7a\xc3\x46\xbd\x84\x87\xcf\x6b\xe0\x53\xcb\x30\xee\x67\xc6\x64\x34\x21\x71\x07\xa8\xb0\xb5\x2e\x57\x26\x90\x06\x15\xed\xd2\xfd\x0a\xcd\xf8\x8a\x7e\x65\xe7\xdd\x3b\xa6\xab\xbb\xb3\x71\xa1\xc8\x40\x25\x0d\x9c\xe8\x09\xe7\xb1\x11\x1f\x16\xda\xf5\x19\x42\x11\x71\x5f\xf5\xfe\x63\x1e\x37\x84\x08\x74\x98\x48\xa0\xc8\x1a\x28\x9b\x43\x38\xbc\xcd\x8d\x10\x53\xf8\x63\x19\x7a\xd0\x29\x20\xfc\xbc\xa5\x14\xe2\xdf\xd9\x4a\x8b\x00\xf9\x0c\xf0\x34\xad\xfd\x77\x6f\x4d\xca\xef\x2c\x8d\xce\x3b\x05\x39", p, q, g, b"\x14\x9b\xcb\xb4\xf5\x98\x3d\xb5\x6f\xbe\x99\x8f\xcd\x02\xd7\x36\xe6\xd2\xf1\x8f\xcf\x96\x46\x8c\xd7\xe9\x9b\xc6\x47\x43\x6f\xbd\x74\xfd\x7a\x2c\xc2\xf0\xd8\x86\x69\x52\xb9\x7b\x44\xff\x64\x4b\x56\x65\xcd\x10\x65\xb0\x7a\x2c\x33\xd9\x15\x1d\xeb\x33\x5e\x35\x22\xc1\xb7\x7d\xa1\x44\x3a\x13\x73\xc9\x3b\xfa\x04\x0d\xa5\xa1\x35\x3b\x88\xa7\x8e\x3a\x5a\x08\x4e\x6c\x44\x2d\xb0\x3f\x7f\xbb\x4b\xdb\xd3\x0b\x1a\xf3\x96\x3f\x8c\x5d\x3e\x83\x45\x32\x94\xe3\xa0\x7d\xda\xcf\xd4\x3d\xc8\xf9\xe8\x30\x32\xfe\xf7\x84\x20\xc4", b"\xd3\xcd\xe1\x70\xd8\x21\x54\xec\x1b\xbd\x90\x77\xc4\x86\x97\x11\x20\x60\x03\x76", b"\xb0\x08\xfc\xd0\x1b\x5e\x49\xa8\x5a\x92\x1b\xee\x1d\xdd\x70\x62\x12\x79\x90\x86", ); test::( b"\xf7\x01\x8f\xf0\xaf\x67\x76\xed\x42\x34\xc1\xfb\x9c\xca\x1f\x8c\xff\x31\x29\x5c\xb9\xf7\x6d\x8b\x73\x89\x84\x30\x09\x7c\x49\xa4\x00\x28\x44\x17\x71\xea\x1d\xe0\x8f\xfd\x5c\xec\x7e\xaa\x59\xe3\x2b\x3a\x17\x03\x29\x13\x92\x27\xba\x86\xe0\xc5\xef\xca\xee\x38\x2b\xff\xf9\x62\x24\x9d\xa8\x53\xde\xe4\x18\x41\x3f\x20\x1a\x28\xfe\x45\xb8\x29\x3c\x26\x20\x89\xd2\xce\xeb\x9a\xf6\x75\x29\xab\x01\x1f\x04\xf5\xee\xaf\x82\xba\x32\xdc\xe9\xa9\x82\x17\x62\xc3\x35\x1b\x00\x20\x65\x91\xa3\xf8\x7c\x52\x60\xa4\x26\x36\x59\xf0", p, q, g, b"\x6c\x20\x6e\x71\xfe\xd8\xb3\x63\xfc\xf5\x71\x78\x6c\xe1\xb4\xe5\x2a\x40\x4d\xe7\xed\xa7\x03\x1e\x5d\x93\xa4\x7e\xa6\x68\xde\x43\xdc\x70\x73\xe3\x1d\x3b\x6b\x12\x5a\xe3\xe8\xee\x45\xae\xd2\x73\xbc\x87\x8c\x73\x42\x3b\x22\x5a\x15\x26\xbb\xb1\x49\xa0\xce\x5e\x9a\x2d\x29\x62\xbd\x6d\x33\x23\x75\x86\x0f\x84\xce\x0e\x78\x7a\x0a\xf9\x3f\x44\xe6\x4e\xda\xa2\xdc\xe6\xca\x22\xbc\xc6\xd4\x8b\x84\xb0\xaf\xfb\xa3\x42\x75\x3b\x18\x42\x94\x10\x67\xd5\xb8\x41\x4c\x35\x61\x38\xe6\x25\xbb\x50\x65\x66\xa2\x7b\x33\x50\x94\xb0", b"\x07\x9b\x08\xbc\x01\x6c\x54\x3d\x09\xd6\xb2\x76\xc0\x23\x34\x7a\x3a\xac\xe9\xae", b"\x16\x4c\x3c\x38\x0f\x20\x9f\xea\xf8\xff\xcf\x53\x69\x1e\xe3\x03\x1c\x3b\x3f\xff", ); test::( b"\x4a\x18\xbd\xcc\xcd\x46\xbb\x89\x56\x7c\xeb\x9c\x1e\x2e\x50\x0a\x3b\xae\xd2\x4f\xf2\xc5\xfc\x7f\x83\xcb\x3c\xf6\xa6\xf3\x88\x59\xa1\xa9\x27\xfa\xb5\xe2\xfd\x7e\xa1\xe1\xa4\x15\x47\x39\x30\x1c\xb1\x95\x77\x09\x10\x3a\xf8\x86\xc9\x29\xcf\x88\xd2\x5c\xed\x5c\xd6\xf8\xcf\x3f\xfe\xe7\xb0\x88\xed\xc2\xf6\xab\xd1\x11\x43\x98\xa3\xab\x00\xfc\x21\xbe\xc0\x2e\x8e\x53\x9b\xa1\x2d\xf7\x0a\x58\x7f\xbf\xba\x63\x19\x5c\x64\x49\xb2\xb8\x49\x54\x7c\x42\x27\x78\x34\xe1\xec\x08\x6b\x5e\x53\xd9\x49\x84\x67\x69\xe8\x97\x15\xbf", p, q, g, b"\x8e\x66\x8d\xd1\x52\x7b\x5d\x1e\x56\xaa\xe4\xa6\xca\x22\x5e\x67\x73\x68\x41\x23\x24\xa7\x9d\x98\xbf\xda\xd9\xa8\x4d\x9f\x87\xc1\x35\x75\x18\xc9\xa5\x05\x6e\xa6\xa0\x88\x2e\x94\xd4\xff\xad\xd9\x7d\x89\xbc\xf2\xf3\x2f\xf4\x42\xb2\x5d\xd2\xaf\x2a\x78\xdd\xad\xe4\x6b\x75\xaa\x8a\x5b\x1a\x14\x71\x76\x4a\xb6\x99\xd7\x00\xcb\x2a\x28\xb9\x59\xa3\x84\x8e\xdb\xbd\x6c\x95\x14\xee\x84\x9f\x83\x3c\x43\x00\x85\x31\x36\x5a\x01\x54\x1f\x9c\x0b\x65\xd5\xe7\xd3\xc2\x1d\xc8\xbe\xf1\x36\x9a\x41\xc0\x40\x5f\x37\x23\xf6\x79\x10", b"\xb2\x2c\x00\xfe\x0b\xc2\xfa\xe7\xa4\xab\x74\xed\xcd\x49\x6c\x64\xa9\x99\xc7\xd3", b"\x85\xba\x8d\xbb\xc9\x3a\xb9\x4a\x76\x13\x3d\x47\x9e\x3f\x79\x57\x69\x44\xe6\xca", ); test::( b"\x75\x47\x47\x11\x82\x17\x66\xb0\x65\xe2\x44\x86\x01\xe8\x2b\x88\x15\x3a\x41\xbf\xb5\xc6\xb6\xa9\xdd\xcf\x73\x17\x0e\xe3\x74\xa6\x62\x5d\xe1\x9c\x56\x0b\xcb\xd2\x02\x0b\xfe\xab\x5c\xbf\xad\x8f\xc6\x0c\xcf\xc9\x5a\x1b\x94\xfb\xef\xdf\x81\x5d\x9b\xfc\x43\xfa\x59\x31\x5e\x70\x93\xd5\x68\x52\x74\xb8\xaf\xc3\x13\x9b\x92\x5e\xbf\x69\x7f\xe2\x69\x9b\x0f\xeb\x1e\x42\xbc\xa6\x5e\x5d\x4e\xb0\xb4\x51\x4a\xf9\x2d\xfa\xb8\x5e\x7f\x26\x66\xc8\x7e\x97\x89\x39\x5f\x35\x4c\xe3\x39\x38\xe9\x62\x30\x61\x11\x34\x65\xa4\xe2\xb9", p, q, g, b"\x74\xa9\x3c\x73\xd7\x55\x00\xca\x43\x05\xca\x31\x84\x47\x5b\x53\xd9\x6c\x6f\xdd\x41\x7e\xf2\x3d\x9d\xc6\x1b\x80\xbb\xc1\x10\x82\x28\xd2\x54\x3c\x1c\x3a\x9f\x2e\x77\x83\xca\x69\xb0\x19\xc0\xcd\x9a\x6d\x2b\x62\xb0\xed\x93\xd4\x22\x9d\xa8\x7b\xfc\x21\xf9\xe4\xbd\x0d\xea\x2c\x4e\x6d\x4d\x2f\x88\x20\x1a\xb0\x50\x4b\x31\xf4\xef\x15\x58\xad\xf4\x93\xe4\x70\xad\xfc\x57\x2c\xa6\x8d\xeb\xc4\x61\x23\x58\x9a\xe9\x13\xb9\x67\x98\x3d\xbc\xac\x6b\xf3\xbd\x86\x11\x13\x7e\x39\xd5\x87\x00\x57\xae\x18\xcb\x84\xa7\x6a\xae\x30", b"\x1e\xd1\x31\xc9\x6a\x2c\x31\x0e\x1f\x79\x76\xd3\x08\x2a\x69\xa5\xaf\x45\xbd\xd0", b"\x70\x66\x3e\x9a\xd7\x11\x3a\xe5\x7d\x4a\xf6\x90\x77\x12\xe0\xaa\xf8\x8b\xc0\x7a", ); test::( b"\x34\x0d\xf7\x08\xd4\x57\xdf\x94\x13\xef\x2b\xda\x22\x5c\x5f\x55\x8b\x90\x96\x6c\xdd\x53\x1a\x0b\x5a\xa7\x45\xd5\xc3\xea\x79\x0d\xeb\xea\x22\x48\x61\xef\x12\xfb\x16\x38\xbf\xf0\x12\x1f\xf2\x6d\xbd\xcf\xfc\x29\x9b\xf9\xf3\xa9\xc1\xfe\x60\x27\x40\x0f\xf1\x4c\x34\xfb\x06\xf6\x7d\xb9\xc3\x0a\x1d\xcb\xfd\x99\x69\x03\x52\x3d\x85\x04\x63\x82\xff\x28\x04\x18\xd9\x74\xa3\xec\xe6\xb5\xfa\xfe\x30\x5e\x2e\x79\xb1\xd0\x7a\x7c\x1e\xeb\x7a\x12\x77\xa8\x22\x82\xbe\x62\x83\x1d\xf7\xfe\xe3\x88\x41\x46\x26\x02\x98\x6a\x8e\x9b", p, q, g, b"\x61\x50\xa6\x8d\x64\xad\xda\x3d\x3f\xb5\xa9\x73\xc6\x2b\x99\x2a\xd3\xfe\x53\x8a\xf7\x16\x1b\xae\x41\xea\x2f\x17\x99\x30\x4f\xe5\xb8\xc8\x64\xe0\x61\xd1\x33\xd9\x4c\x16\xa4\xc6\xb0\xed\x8d\xff\xdf\x2c\xef\xa7\x39\x40\x15\xe7\x5c\x57\xb1\x81\x41\x9d\xcf\xef\xe3\x40\x9d\x3b\x53\xd8\x69\x11\xc7\x49\xf9\xf2\x8f\x7c\x1d\xe9\x9f\x7e\x4b\x2e\xa2\x2a\x48\x81\x7a\xce\x4f\xd9\x97\x4f\xa5\x3b\x8d\x4f\x05\xf5\x73\x14\x88\x81\x38\x03\xd7\xf3\xaa\xf1\xcf\xa1\x38\xbc\x73\xc4\xd2\x7c\xa1\x62\x1e\x92\x26\x66\x18\x83\xe9\xdd", b"\x4f\x18\x2a\xd4\x2c\xb5\x67\x1d\x31\x62\xbb\x9d\x04\xa0\x6c\xd2\x0e\xdb\xc5\x58", b"\xa6\xc5\x41\x79\x47\x44\x77\x18\xed\x1c\xb8\x9a\x6e\xfc\xe2\xd3\x11\x6e\x50\xd1", ); test::( b"\x9f\x23\xc8\x25\x63\xab\x7c\x0b\xa8\x6b\xbb\x98\x93\x35\x00\x0a\x49\x3b\x29\x1e\x5d\xc1\x7c\xe7\x29\x49\x49\x58\x90\x36\x23\xed\x99\xdf\x34\x42\x30\xff\xb6\x26\xb1\xdb\xef\xcc\xe0\x59\xae\x16\xc2\xee\x7e\xe6\xfd\x2a\x78\x07\x33\x6c\xb7\x1b\x88\x53\xe2\xed\x3b\x74\xb2\xfa\xac\x82\xa8\x31\xd5\x3e\x03\xd7\xbb\xb9\x6d\x38\xdf\x98\xfd\x19\xbd\x4c\x1a\x62\x48\xcd\x50\x7c\x89\xf7\x99\x5f\x59\x57\x9a\xfe\x53\x19\x73\x1b\x44\x3d\x68\x71\xe5\x58\xf5\xb7\x7f\x2f\x9a\x4d\xd9\x9e\xfb\x30\x5e\x27\x91\x65\x94\x52\x4e\x02", p, q, g, b"\x96\xd7\x45\x11\x81\xfb\x25\x3f\xbc\x3f\x44\x14\x09\xbe\x5e\x5e\x01\x44\x97\x26\x10\xe3\x7f\xa8\x2b\xc2\xaf\x24\x66\x37\xa4\xc9\x18\x02\x30\x97\x87\x52\x55\xa2\x17\xea\x89\x5d\xad\xdf\x46\xbf\xbb\x17\x47\x49\xb0\x4c\x59\xfe\xfa\x62\x89\x68\x4f\x2f\x9a\xea\xdf\x5c\xe7\xca\x47\xf0\x03\x2e\x38\x4b\x7d\x50\x59\x79\x01\x18\x15\x01\xcb\x59\x15\xfb\x46\x86\xa6\xad\x7b\xcd\x5b\x46\x86\x24\x11\xa4\xdf\x22\xb1\xed\x2a\x56\x90\x5e\x07\xc0\xa9\x36\xc9\x94\x42\x13\x19\x4e\xbe\xfd\x4e\xc6\x85\x97\xcc\xa0\x36\x33\x8b\x3c", b"\xb6\x59\x9f\xbd\xdb\x48\x56\x27\x6d\xf4\x48\xcf\x09\xd6\x2f\xd7\x65\x7d\xe6\xc3", b"\x4b\x49\x58\x90\x99\xbe\x55\x78\x32\x2d\x82\x9b\x87\xb4\x3a\xc0\x7f\x62\xe3\x5d", ); // [mod = L=1024, N=160, SHA-512] let p = b"\x88\xd9\x68\xe9\x60\x2e\xcb\xda\x6d\x86\xf7\xc9\x70\xa3\xff\xbe\xb1\xda\x96\x2f\x28\xc0\xaf\xb9\x27\x0e\xf0\x5b\xc3\x30\xca\x98\xc3\xad\xf8\x3c\x07\x2f\xeb\x05\xfb\x2e\x29\x3b\x50\x65\xbb\xb0\xcb\xcc\x93\x0c\x24\xd8\xd0\x78\x69\xde\xae\xcd\x92\xa2\x60\x4c\x0f\x5d\xd3\x5c\x5b\x43\x1f\xda\x6a\x22\x2c\x52\xc3\x56\x2b\xf7\x57\x1c\x71\x02\x09\xbe\x8b\x3b\x85\x88\x18\x78\x87\x25\xfe\x81\x12\xb7\xd6\xbc\x82\xe0\xff\x1c\xbb\xf5\xd6\xfe\x94\x69\x0a\xf2\xb5\x10\xe4\x1a\xd8\x20\x7d\xc2\xc0\x2f\xb9\xfa\x5c\xef\xaa\xb5"; let q = b"\xa6\x65\x68\x9b\x9e\x5b\x9c\xe8\x2f\xd1\x67\x60\x06\xcf\x4c\xf6\x7e\xcc\x56\xb7"; let g = b"\x26\x7e\x28\x28\x57\x41\x77\x52\x11\x3f\xba\x3f\xca\x71\x55\xb5\xce\x89\xe7\xc8\xa3\x3c\x1a\x29\x12\x2e\x2b\x72\x09\x65\xfc\x04\x24\x52\x67\xff\x87\xfc\x67\xa5\x73\x0f\xe5\xb3\x08\x01\x3a\xa3\x26\x69\x90\xfb\xb3\x98\x18\x5a\x87\xe0\x55\xb4\x43\xa8\x68\xce\x0c\xe1\x3a\xe6\xae\xe3\x30\xb9\xd2\x5d\x3b\xbb\x36\x26\x65\xc5\x88\x1d\xaf\x0c\x5a\xa7\x5e\x9d\x4a\x82\xe8\xf0\x4c\x91\xa9\xad\x29\x48\x22\xe3\x39\x78\xab\x0c\x13\xfa\xdc\x45\x83\x1f\x9d\x37\xda\x4e\xfa\x0f\xc2\xc5\xeb\x01\x37\x1f\xa8\x5b\x7d\xdb\x1f\x82"; test::( b"\x3a\x84\xa5\x31\x4e\x90\xfd\x33\xbb\x7c\xd6\xca\x68\x72\x0c\x69\x05\x8d\xa1\xda\x1b\x35\x90\x46\xae\x89\x22\xca\xc8\xaf\xc5\xe0\x25\x77\x16\x35\xfb\x47\x35\x49\x15\x21\xa7\x28\x44\x1b\x5c\xb0\x87\xd6\x07\x76\xee\x0e\xcc\x21\x74\xa4\x19\x85\xa8\x2c\xf4\x6d\x8f\x8d\x8b\x27\x4a\x0c\xc4\x39\xb0\x09\x71\x07\x7c\x74\x5f\x8c\xf7\x01\xcf\x56\xbf\x99\x14\xcc\x57\x20\x9b\x55\x5d\xc8\x7c\xa8\xc1\x3d\xa0\x63\x27\x0c\x60\xfc\x2c\x98\x8e\x69\x2b\x75\xa7\xf2\xa6\x69\x90\x3b\x93\xd2\xe1\x4e\x8e\xfb\x6f\xb9\xf8\x69\x4a\x78", p, q, g, b"\x60\xf5\x34\x1e\x48\xca\x7a\x3b\xc5\xde\xce\xe6\x12\x11\xdd\x27\x27\xcd\x8e\x2f\xc7\x63\x5f\x3a\xab\xea\x26\x23\x66\xe4\x58\xf5\xc5\x1c\x31\x1a\xfd\xa9\x16\xcb\x0d\xcd\xc5\xd5\xa5\x72\x9f\x57\x3a\x53\x2b\x59\x47\x43\x19\x9b\xcf\xa7\x45\x49\x03\xe7\x4b\x33\xdd\xfe\x65\x89\x63\x06\xce\xc2\x0e\xbd\x84\x27\x68\x2f\xa5\x01\xee\x06\xbc\x4c\x5d\x14\x25\xcb\xe3\x18\x28\xba\x00\x8b\x19\xc9\xda\x68\x13\x6c\xf7\x18\x40\xb2\x05\x91\x9e\x78\x3a\x62\x8a\x5a\x57\xcf\x91\xcf\x56\x9b\x28\x54\xff\xef\x7a\x09\x6e\xda\x96\xc9", b"\xa5\x3f\x1f\x8f\x20\xb8\xd3\xd4\x72\x0f\x14\xa8\xba\xb5\x22\x6b\x07\x9d\x99\x53", b"\x11\xf5\x3f\x6a\x4e\x56\xb5\x1f\x60\xe2\x0d\x49\x57\xae\x89\xe1\x62\xae\xa6\x16", ); test::( b"\x6f\x39\x97\x3f\xd2\x25\x16\x7a\x76\x73\xcd\x71\xab\x35\x34\xd2\x68\x66\x87\xc3\x32\xf9\x3f\xd6\x6d\xb5\xf1\xca\x99\x67\x8e\xfd\x28\x25\xa8\x4c\xd7\xa7\x10\x7a\xdf\x96\x50\x1d\xd1\xd0\x5e\x7b\xbc\x8d\x11\x3e\x08\x7b\xba\x77\xb2\x34\x6b\x43\x64\x13\x21\x25\x24\x5e\x9a\xac\xe3\xa1\x46\xb5\x76\xf6\x54\xc8\x6e\x07\xfc\x19\x14\xca\xfa\x20\x9d\xd6\xd0\x48\x45\x57\x5d\xbb\x27\x9c\xd1\xb2\x32\x96\xd0\x1e\xf5\x05\xb5\xe1\xce\x7f\x21\x94\xf1\x89\x88\xf3\x55\xc9\xb3\x4f\x92\x0a\xb3\x51\x52\xe0\x3b\xcf\x79\x2a\xc5\x29", p, q, g, b"\x11\x0e\x39\x8e\x36\xc9\xd2\x72\x6e\x77\xde\xb4\x65\xdd\x23\x30\x3f\x9e\x38\x77\x78\xb5\x49\x70\x0a\x52\xb9\xa5\x46\x85\x12\xee\x37\x7c\xe3\xd7\xdc\xbf\xc6\xb6\x4e\xe3\x53\xea\xc6\xa4\x38\x98\xb2\x64\x84\x05\x8b\xa1\xb2\x4b\x22\x9c\xd6\x9c\x99\x4d\x97\x6d\x43\x34\x4c\x18\x1e\xa6\xc4\x7d\xf0\x06\x2c\x09\xa1\x6b\x23\xab\x60\x75\xc0\x4a\x08\x99\xba\xc3\xe4\xf0\x34\xa9\x83\xbf\x90\x43\x8f\x6a\xc2\x68\x55\xd8\xa5\xfd\xed\x90\x17\x2e\x7e\x8c\x19\x6a\x2c\xe7\xe1\xfc\x0d\xac\x94\x27\x8a\xff\x16\x53\xc3\xae\x09\xf5", b"\x1b\x9e\xd3\x9b\xcc\x4b\x46\xed\x00\x07\x67\x9c\xe9\xc3\xf6\xdc\x7c\x41\x57\xb9", b"\x25\x8d\x41\x36\xad\x95\xb7\x04\xa7\x95\x9d\x04\x09\x6d\xcd\x78\x1e\xb5\x4b\xde", ); test::( b"\x7f\x59\x74\x4c\x79\x0c\x0f\x98\x5a\x9a\xe1\x01\xd9\xfa\x00\xda\x3b\x95\xd2\x47\x3d\x79\x28\x05\xec\x1d\x6d\x1e\x95\x22\x2a\x6f\x30\xee\x6a\xb8\xfc\x5a\x63\x20\x57\x15\x3f\x23\x7a\xd3\xaa\x2f\xae\x8f\x1e\x51\xea\xe7\x59\x06\xd0\x7e\x57\x6d\xd0\x02\x1a\xc1\x71\x1b\x1c\x88\x53\xe6\x2d\x27\xfe\x6b\x09\x87\x66\xb8\xce\x3e\x76\xd3\x47\xc8\xe4\x9b\xe0\xab\x05\xd0\xd1\x2f\xd7\x77\xa8\x5c\xff\xc7\xad\x12\x07\xa9\xaa\x75\x64\x3d\x7b\x41\x5b\xa4\xb1\xb9\x7d\xc0\xee\x19\xd0\x5a\x60\x7b\xa0\x63\xa0\x34\x1f\x17\x61\x04", p, q, g, b"\x3e\xad\x9c\xf2\x11\xf3\x85\x9d\x5b\xaa\x51\x55\xfb\x62\x33\x1b\xca\x3f\xff\x9e\xcb\xe1\x82\xeb\xf8\xb0\x4d\xb0\xeb\xb1\x9e\xda\x54\x8c\x86\xdb\x4c\xbb\x5e\xca\x98\xce\x44\x9c\xfd\x51\xf1\xc4\x60\xd7\x84\x83\x26\xee\xe2\x2f\xca\xc7\x24\x7f\xb8\x89\xee\x41\x5c\x49\x33\xa9\x09\xc7\x8c\xe9\xbc\x50\xee\x19\x01\x16\xda\x9a\xe2\x54\x7a\xe6\x24\x2a\x34\x0d\xdb\xb9\xa1\x5a\xc8\x18\xc4\x67\x7f\x29\x19\xc6\x45\x09\xd0\x3c\x49\xd1\x30\x7b\xb2\xcd\x78\xe0\x1c\xe5\xb2\x5a\x9f\x47\xd8\x28\xfc\x75\x84\xeb\xce\x36\x6c\x2f", b"\x38\xf5\x2d\xf7\x8b\x0e\x45\x4d\x35\x83\x20\x8a\x0f\xce\x03\xb9\x04\xee\xc8\x16", b"\x5c\xdc\x57\xa9\x43\xab\x1f\x26\x9c\xa1\x1c\x63\xbc\xb1\x05\x9e\xe7\x6f\x9c\x2e", ); test::( b"\x16\x25\x0c\x74\xcc\xb4\x04\x43\x62\x5a\x37\xc4\xb7\xe2\xb3\x61\x52\x55\x76\x82\x41\xf2\x54\xa5\x06\xfa\x81\x9e\xfb\xb8\x69\x8a\xde\x38\xfc\x75\x94\x6b\x3a\xf0\x90\x55\x57\x8f\x28\xa1\x81\x82\x7d\xda\x31\x1b\xd4\x03\x8f\xd4\x7f\x6d\x86\xcc\xeb\x1b\xbb\xef\x2d\xf2\x0b\xf5\x95\xa0\xad\x77\xaf\xd3\x9c\x84\x87\x74\x34\xad\xe3\x81\x2f\x05\xec\x54\x1e\x04\x03\xab\xad\xc7\x78\xd1\x16\xfd\x07\x7c\x95\xc6\xec\x0f\x47\x24\x1f\x4d\xb8\x13\xf3\x19\x86\xb7\x50\x4c\x1c\xd9\xdd\xb4\x96\xac\x6e\xd2\x2b\x45\xe7\xdf\x72\xcc", p, q, g, b"\x6e\x8c\x85\x15\x0c\x5c\x9c\xa6\xdc\xb0\x48\x06\x67\x1d\xb1\xb6\x72\xfc\x10\x87\xc9\x95\x31\x1d\x70\x87\xad\x12\xab\x18\xf2\xc1\x4b\x61\x2c\xea\x13\xbf\x79\x51\x8d\x2b\x57\x0b\x8b\x69\x6b\x3e\x4e\xfc\xd0\xfd\xa5\x22\xa2\x53\xbb\xcb\x7d\xbb\x71\x1d\x98\x4c\x59\x8f\xa2\x01\xc2\x1a\x8a\x9e\x27\x74\xbc\x15\x02\x09\x20\xcd\x8c\x27\xc2\x87\x5c\x77\x9b\x08\xef\x95\x09\x3c\xaa\xc2\xc9\xce\xa3\x7e\xc4\x98\xc2\x3d\xd2\x4b\x68\x4a\xbc\xb4\x67\xec\x95\x2a\x20\x2c\xbd\x2d\xf7\x96\x0c\x1e\xf9\x29\xcc\x2b\x61\x1c\xa6\xc8", b"\x00\x01\x8f\x0f\xdc\x16\xd9\x14\x97\x1c\x8f\x31\x0f\x1a\xf7\x79\x6c\x6f\x66\x2a", b"\x62\xb7\xae\xcc\x75\xcb\xc6\xdb\x00\xdd\x0c\x24\x33\x9f\x7b\xdb\x5a\xe9\x66\xa5", ); test::( b"\xa2\xce\x90\xb5\x1a\x48\x0c\x06\x68\xb5\x59\x36\xbb\xee\xbe\x36\x79\xf8\xd4\x06\xa0\xb6\x94\xb9\x03\x45\x74\x9e\x3b\x9c\x67\x77\x6c\xae\x9a\x62\xc2\x5c\xc0\x11\xcd\xb3\x18\x02\x63\xdd\xd7\x3a\xa2\x09\x0e\xc7\xa7\x49\x09\x2f\x6c\x78\x16\xc2\x67\x44\xc5\x39\x3a\xcb\x08\xc6\xb7\xb3\x59\xbb\x3a\x3c\x75\x43\x68\x4f\x80\x50\xec\xc6\x42\x22\x34\xff\x24\x97\x8a\xe0\x6b\x91\xd6\xa2\x4c\x08\x6d\x71\xeb\x17\x61\xca\xf1\x41\x76\xd8\xba\xcd\xca\xd5\x3b\x78\x95\xbd\xb0\xe0\x53\xc6\x16\xb1\x47\xff\x73\xd2\xd8\x6b\xa3\xbc", p, q, g, b"\x0e\x6b\x41\x9d\xa8\xb4\xdb\x80\x2d\x93\x88\x73\xe3\xb1\x05\xab\x3e\xff\x43\x2d\x8a\x13\x76\x60\x20\x59\xcf\x2e\x51\x0f\x69\x6a\x2a\x4e\x42\x02\x56\x70\xdb\x00\x11\xe9\xbe\x31\xe8\xb1\x40\x36\x15\xb9\xa3\x39\xce\x65\x4a\x89\xa2\xd4\x62\xee\x20\xc0\x80\xc4\x47\x96\x48\xc5\xc0\x0e\x17\x2e\xcd\x53\x7c\x93\x4e\x75\x34\xaf\x70\x02\xbd\x6f\xda\xfa\xb5\x65\x06\x68\x0c\x01\x9c\xed\x38\x77\x9d\x95\x40\x91\x64\x5f\xed\xf5\xd0\x05\x7a\x23\xff\x63\x49\x19\xfc\x56\xa9\x67\x71\xce\x21\xfa\x99\xec\xd9\xaa\x7f\x79\x85\xf1", b"\x5b\x13\xf1\x33\x7a\xc7\x2e\x41\x98\x67\xc9\x2f\x93\x87\xf9\xdf\x62\x88\x3a\xa5", b"\x90\xab\x5b\x68\xfd\x82\x53\xb6\xbb\x64\xc6\x17\x59\x16\x4a\x97\x83\x4c\x39\xe1", ); test::( b"\x3b\x6e\xea\xed\xc5\xfb\x38\xce\x86\x91\x68\x6c\x89\x99\x3c\xaf\x17\xc9\xe2\x4f\xa5\x65\xa9\xe8\xd4\x84\x36\xb8\x7d\xb6\x2f\xab\x83\x9c\x42\xd8\x1f\xb1\xf8\xb8\x96\x8c\x82\x6e\x78\xd3\x33\xb1\xd9\x9d\x5c\x36\xe0\x8a\x9a\x0e\xc7\x55\x4c\x2b\xde\x07\xfd\x8e\xc4\x22\xaf\x12\x82\x46\xba\x3b\xea\xe1\x8e\xf2\xbe\x75\x5d\xb2\x2a\x86\x92\x02\x95\x1c\xd9\x57\x96\xfc\x2f\xf7\xba\x2a\x69\x67\xd1\x9e\x5c\xa2\x30\x46\x55\xbf\xdf\x87\x9b\x77\x47\xf8\x0a\x59\xb1\xda\xc0\x46\x1c\xf6\xe4\x90\x37\x8e\x56\xab\x37\x85\x84\xf2", p, q, g, b"\x4a\x7f\xf6\x67\xf7\xab\x28\x91\xa8\xa6\x9a\xb5\xd1\x5d\x93\xd1\xfd\x83\x39\x06\xc9\xb6\x29\xfc\xb9\xb4\x9e\x84\xd8\xec\xb3\x5b\x39\x7d\x93\x83\x9d\x79\x85\x59\x03\x26\xcf\xfb\x55\xa7\x0e\x4a\x51\xa2\x82\x9e\x38\x72\x90\xf6\xfa\xfb\x7d\x22\x61\x51\xc2\x82\x47\x02\x24\xfd\x71\x7f\x3d\x52\x65\x89\xc6\xee\xd9\x61\x1c\x5b\xdf\x4b\xde\x63\xfc\xc9\x20\x4c\x80\x07\xb0\xb1\x43\xc4\x9d\x19\x81\x83\x56\x58\xbc\xf8\x00\xa2\x15\x7c\x5c\x14\x3d\x76\x36\x9f\xd6\xe7\x8d\x0a\x3f\x80\x0b\x8a\x3a\x8f\x0e\x11\xc9\x05\x9d\xcd", b"\x61\x38\x0c\xa8\x67\x98\xfc\x5f\xb6\x1c\x35\x67\x5a\xf0\x8d\x5c\xc1\x3c\x25\xaa", b"\x54\xdd\xf6\x8f\x47\x68\x84\xaf\x3e\x0e\x65\x36\xf3\xa8\x09\x25\xee\x63\xa4\x02", ); test::( b"\x01\x19\x7a\xe9\x60\xde\x90\xa9\x3d\x97\x36\x89\x6f\xe1\x36\xbc\x56\x1f\x05\x50\xc6\xb1\xcc\x36\x31\xb3\x1d\xf6\x83\x01\x7c\x2a\xb8\xc6\xf4\x1d\x27\x45\xf1\xa7\x97\xe0\xe8\x9d\xc3\xd5\x87\x88\x66\xc3\x69\x4a\x08\x03\x66\x75\x7e\x6f\xd8\x92\xd2\x66\x68\xfd\x2d\x86\x0e\xa2\xa2\xb6\x7f\xda\xca\x96\xe3\x22\x97\x75\x87\x87\xec\xc0\xa7\xe1\xd3\x04\xcc\x71\x98\x03\x27\x2e\x72\xe3\x39\xb3\xf3\x4c\x34\x7e\x47\xb9\x1a\x1e\xd6\x9c\xa8\x06\x2c\xd3\x50\xdc\xcc\x9c\x22\x64\x73\x2b\x9f\xdd\x84\x62\xd9\xf6\xfc\x76\x85\x0c", p, q, g, b"\x37\x30\x81\x77\x0a\x9f\x4d\xae\x8d\xf5\xdf\xa7\x05\x03\xe1\x49\xd7\x59\xca\x37\x40\x85\x49\xaa\x34\xd1\xb4\x9b\x31\x76\xa3\x9d\x7c\x46\x61\xe4\x21\xa1\xf5\xd6\x1e\x3f\x77\xb3\xc4\xb3\x9b\xb2\xe6\x3c\xd2\x49\x19\xa2\x91\x0a\x8b\x15\x5e\x17\x58\xf5\xa3\x75\xda\x60\xf1\x9d\x2b\xf4\x02\x0e\x82\x8f\x42\x37\xeb\x3e\x2a\x36\x12\x4a\x6a\x39\x14\x46\x9d\x68\x33\x69\x5b\x83\xb9\x37\x7f\xb2\x85\xb2\x7b\xd2\x68\x99\x33\xc1\x89\xc7\xfd\xe4\x2e\x1e\x0e\x20\x30\x83\x31\xfd\x56\xed\x0d\xb2\xef\xbc\x77\xea\x3a\xc7\x12\x1f", b"\x41\xed\x17\x0c\x8b\xf6\xf2\x0f\xd1\xce\x18\xfa\xac\x97\x56\x5f\xdb\x4f\xe6\xf4", b"\x7c\x8c\x6f\xea\xce\x68\xc9\x7c\xa4\x37\x80\x74\x1f\xae\x58\xf2\xf6\x1b\xf7\x65", ); test::( b"\x0d\x5a\xb2\x7b\x2b\x7e\x18\xcf\xce\x4c\xcd\xa1\x3a\xa1\xa5\xa8\xc1\x8b\xaa\xf3\x9b\x14\xe6\x42\xb8\xf8\x1b\x30\xcd\x54\x18\xa1\xdd\x05\xdf\x22\x59\x9f\xbb\xb3\xba\xe4\xfe\xe1\xe4\xb2\xc1\x50\xa2\x3e\x21\x6c\x13\x3f\xe2\xd8\x23\x54\x85\xe3\x4f\x80\x68\x5c\x66\xbc\x0c\x19\x0a\xf6\x7a\x0a\x49\x93\x0b\x47\x6b\x28\x03\xe1\x22\x74\xcd\x43\x09\x09\x21\xbf\x66\x8f\xdf\xef\x15\x50\x72\xa3\xcd\xf1\x79\x01\x42\x7a\xfa\x51\x31\x8a\xfd\xda\x93\x7e\x28\x3e\x2c\x60\xd8\x5e\x3b\xfe\x07\xf3\xda\x5f\x99\x2c\x1f\xca\x4b\x98", p, q, g, b"\x1c\xa3\x6e\x35\x05\xee\x70\xa5\x6a\xfd\x5d\xc4\x0a\x48\xe9\x79\x79\xe9\x84\xdd\x2d\x89\x6a\xbc\x7a\x49\x1d\x34\x61\xc6\x93\x16\x68\xa0\xce\xf1\x1e\x45\xbb\x66\xc6\x11\x13\x79\x99\x90\x7a\xd7\xe1\xf7\xcf\xea\x7f\x7e\xd4\x9a\xae\x93\x5b\xfc\x41\x44\x32\x93\xe7\x1d\xd2\xfe\xc2\x9f\x37\xa9\x54\x46\x72\xab\x92\x50\xca\xa2\x81\x88\xf3\x90\xb5\xd4\xaf\x13\xbb\x05\xe9\x69\x2c\x1c\x6a\x4d\x6a\xaf\xeb\xdd\xaf\x7e\xef\x18\x34\xff\xfe\x0f\x53\x91\xbc\xe2\x43\x78\x9a\x2d\x55\xd2\x9e\x2b\x90\xce\x12\x04\x29\xf2\xa0\x75", b"\x66\x01\x5e\x5f\xb3\xab\xe9\xd7\x85\x23\x77\x0f\x7b\xa0\x99\x00\x31\x06\x5a\xd7", b"\x4b\x8b\x15\x3d\x5b\x01\xdd\xfa\x91\xf2\xde\xc6\xf0\xfa\xff\x02\xe6\xe8\x72\x18", ); test::( b"\x90\x6a\x93\x3b\xc8\x23\xa3\x07\xe2\xab\x29\xa4\xa8\xf7\xf1\x51\x0d\x5d\x30\x35\x04\xfd\xe3\x81\x69\xde\xd1\x68\x91\x3e\x3b\xf8\x1d\x53\xa4\x38\x9a\x3e\x73\xa3\xef\xeb\xd5\xe4\x2c\xf4\x02\xbf\x9f\xdc\x5d\xa5\xef\x46\x87\x81\x65\xad\xa6\xd2\xe0\x72\x99\x03\x5a\x39\x87\xed\x6c\x2c\x6c\x8b\xec\xc4\x4e\xa1\x31\xa9\x49\x3e\x72\xae\xe2\x82\x42\xcf\x7c\xfa\xc3\x8e\xe8\x70\xe5\x4e\xb9\x5a\x6e\xfa\x9f\xad\x74\x35\x4b\x28\x1c\xb6\x3e\xa7\x16\x52\xeb\xa1\xad\x73\xf8\x41\xdb\xa7\x77\x8f\x3a\x03\xd3\xe0\x01\x90\xed\x68", p, q, g, b"\x4f\x3a\xde\x3e\xa4\xf7\x06\x61\x07\x32\x1e\x8b\xfb\x12\xee\xaf\x9b\x3c\x7b\xdc\xc6\x14\x79\x08\x75\x42\x31\x15\x6b\x46\xe0\x63\x9c\x9d\xb9\xd5\x44\x7a\xbd\x2d\x0a\x92\x23\xc8\x5d\x63\xd8\xb1\xdf\xa6\x97\x42\xeb\xf7\xe0\x41\x9e\x60\x8c\x4b\x18\xc3\xad\x9f\x55\xf5\xd2\x84\x8e\xdb\xec\x4e\x71\x80\xe3\x4b\xfb\xb1\xf6\xb6\xeb\xbb\x68\x64\x97\x14\xb5\xfb\xfa\x6c\xfa\xb4\xa0\x1f\x65\x50\x08\xa9\x5a\x7e\xed\xcd\xc2\xf7\x17\x10\x94\x56\x3a\x3c\x18\x31\xe8\x1f\x5c\xa0\x75\xc6\xe8\x53\xbe\xea\xe8\x7a\x67\xff\x90\x22", b"\x99\xc9\x1e\x07\x94\x72\x3b\xcd\xe3\x45\x94\xdd\x22\x68\x41\x8d\xfb\x35\x34\x43", b"\x42\xe9\xc4\x9d\x60\xad\x8f\x9b\x41\xf2\x90\xae\x6b\x77\x2f\x44\xbe\x62\xce\xa9", ); test::( b"\x1d\x6b\xa4\x3a\x0f\xf6\x77\xcf\x8c\xf6\x8d\x6a\x1d\x33\x04\xd9\x94\x90\xa7\xca\xe5\x6f\xe3\x53\x18\xf3\x8e\xd0\xf5\x87\x9f\xe2\x54\x70\x3f\xa7\x74\x58\xc4\x5e\x8a\x69\x84\x69\xb8\x99\xa2\x15\xc2\x5e\x86\x9f\xd2\x87\x41\x10\x1d\x27\xdc\x11\x1f\xfa\xd6\x98\x0f\x8e\xbd\x74\x8f\x69\x77\xd5\xd6\x04\x38\xe6\xed\xec\x37\xa4\x9d\x30\x11\xf8\xf0\xf0\x85\x25\x15\x6a\xe6\x0b\xc9\x1a\xbe\x66\x16\x38\xf4\xb9\xc6\xc3\x65\xc3\xaf\x17\x13\xbf\x7f\x72\x25\xd4\xaf\xad\x7a\x1b\x53\x1a\x33\x11\x33\xd8\xb8\xfd\x23\x85\x98\xa4", p, q, g, b"\x08\xad\x77\xf2\x33\x33\x4c\x04\xca\x22\x82\xf6\xda\xc0\xb0\xd8\xa0\x0d\x59\x6e\x02\xe8\x36\xa7\x67\xa1\x46\xef\x80\x62\x4b\x33\xfd\xba\x8b\x35\x20\x4b\x20\xbe\xe8\xff\x2b\xe9\xa8\x2b\xd8\x01\x31\xc0\xaa\x89\x8b\x17\xee\xab\x5a\xf2\x4c\x20\x55\x1d\x5d\x63\x6a\x11\x54\x8f\xdd\x2e\x6c\x61\x6b\x09\xdf\x86\xb0\x57\xe5\x70\x21\x46\xec\xc4\xfa\x2d\x44\xd8\x5b\xb1\x42\x7e\x7e\x35\x76\xf6\x98\xb4\xf2\x16\x45\xa1\xe0\x04\x79\xd0\x89\x82\xb0\x57\x3d\xd1\x98\x1b\xbd\x40\x5c\x2a\x45\xd7\xde\x92\x42\xaf\xae\x8f\x95\xc9", b"\xa2\xb4\x2c\xca\x55\xbc\x1b\xa3\x3f\x82\x52\xd1\xa8\x9c\x8d\x89\xb0\x0b\x39\x50", b"\x2e\xc5\x16\x6e\x35\xe6\x3f\x0f\xa1\x16\xb3\xdb\x1b\xd1\x86\x81\xa4\x39\x9c\x04", ); test::( b"\x3b\xd0\xc5\xb7\x59\xcb\x71\x0c\x52\xb8\x1f\xba\x48\xb6\x77\x1c\xab\x17\xbf\x1b\x67\xea\xfd\x08\xf4\xee\x17\x77\xdd\x47\x30\x64\xdd\x0b\xec\x98\xd3\x58\x2e\xe1\xe9\x91\xab\x9a\x91\xa6\xfe\x55\x8a\x41\xdb\x9a\xe6\xb2\x1a\x05\x79\x32\x81\x14\x40\xd6\x4c\x78\x6b\x22\xd1\x50\xe3\xd3\x8c\x71\x90\x0a\xd5\xb6\x1e\x05\x30\x74\x4e\x76\x5b\x5c\x2e\xf3\x0b\xcb\x96\xe7\x26\xe3\x07\x9e\x44\x00\x86\xef\x30\x0b\xae\x90\x00\xdf\x34\x03\xc3\x3a\x79\x84\x9f\x8f\x83\xd6\xc0\x3f\x77\xea\xe9\x80\x52\x57\x8d\x82\xd6\x28\xe6\x5c", p, q, g, b"\x3a\x1e\xd9\x76\xb7\x93\x4b\xee\x3e\x80\xd6\x9f\xbc\xdd\x35\xf8\x20\x51\xcc\xc2\x14\xbd\xe6\xfa\x75\x6b\xe6\x70\x17\xff\x60\xac\x68\x47\xcf\x8d\x1f\x82\x3f\x89\x0d\x26\xaf\x8c\xd3\x51\x71\x6a\xd2\xd4\xee\xfd\x7f\x06\xc1\x95\x1e\xa4\xa7\xdb\x5c\xaf\x25\x0f\x40\x7b\x78\xf2\x1f\xff\x42\x5d\x0c\xba\x1b\x5f\xb3\x5a\x5b\x5d\xcf\x06\x2a\x1c\xdf\x25\x07\xaf\x74\x78\x93\x26\x71\x0e\x33\x4f\xaf\x3c\x50\x1b\xd8\xc8\x34\x72\x25\xf9\x4f\x89\x73\xad\xb7\xa8\xb5\xde\xf9\x89\x61\x09\xd1\xef\xe5\x50\x32\x5d\xd8\x9f\x31\xd6", b"\x77\xd6\x2e\xc2\xa9\x5b\xeb\xa6\xc6\x72\xd8\x42\x2e\xe6\x63\xd1\xd1\x80\x49\xd0", b"\x2a\x33\x9c\xc8\xf5\x67\xc1\x21\x49\xa8\x91\x73\x75\xec\x6c\xa4\xb4\x72\x54\xa1", ); test::( b"\x8d\xc5\x82\xa2\xb5\xaf\x65\xe6\x6e\xbd\xf5\xb5\x33\xd8\xe2\x2b\x38\xb5\xc1\x97\x7e\x57\x8d\x32\x13\xa1\x10\xe9\xd4\x83\x7a\x74\xd4\xb7\xbf\x7d\x71\x87\x56\x90\xb5\xb7\x1c\x8e\x8a\xfa\xb8\x94\x34\xc4\x6a\x86\x41\xcc\xed\x1a\x13\x0e\x21\xcd\x0c\x80\x5e\xe4\x5c\x13\x4c\x7c\x0d\xf7\x5d\x5c\xd3\x0c\x41\x81\x8f\x7a\xe4\x75\xdd\x60\x22\x87\x7c\x74\x3d\x09\xd5\x4f\x0c\x94\x58\x1a\xe7\xbd\x4b\x42\x3f\x02\xe1\x93\x97\xbe\x7b\xd4\xa9\x04\xb8\x8c\xbd\x2f\x81\x4b\x1d\xff\x1e\x79\x6d\x9f\x2d\x1c\x84\x70\xb7\x96\xc6\x9a", p, q, g, b"\x5d\x6d\xc1\x74\x9f\x28\xcb\x8f\x7c\x01\x4d\x5c\x55\x16\xcf\x5b\xc2\x22\xc6\xd9\x33\x7a\xc0\x08\x9b\x19\xb9\x0b\x32\x19\x56\xcf\x61\x92\xf3\x25\x5d\x0e\xec\x45\x84\x08\x10\xc2\x1f\xe9\x1c\xf5\x30\x89\x48\x85\x2a\x57\xcd\x01\x89\xf1\x5b\xd9\x6a\xf8\x38\x0d\x19\xcb\x82\x1b\x1c\x56\xaf\xdc\x38\xa9\x4b\x2c\x32\xfe\xb1\x82\x13\x93\x96\x93\xb6\x9f\x2b\xcb\xae\x7e\x70\xab\x09\xea\xd3\xb6\xa8\xb7\xda\xd3\xc4\xf5\x21\xad\x04\x55\xdd\x4e\x87\x2b\x36\x27\xd4\xfe\xd2\x0d\x5e\xfc\x78\xf6\xae\x46\x7f\xb9\x26\x7a\xb1\xd4", b"\x05\x36\x3b\xcc\xa1\x93\xd7\x26\xcd\x20\xe0\x34\x89\xe1\xb1\x3b\x7d\xf3\xbc\x98", b"\x31\xbd\xac\xcb\x29\xe4\xa6\x00\x23\x92\x9f\x18\x21\x99\xc0\x70\xb7\x1a\xc5\x75", ); test::( b"\x47\x7a\xf8\xc0\x25\x18\x1b\x55\x77\x32\xb9\x56\x86\x34\xb1\x32\x4e\x66\x69\xb4\xc2\x8a\x0b\xcd\x4c\x65\x3d\x4c\x81\xed\x68\xb2\xa2\x04\x3a\x80\x0a\x31\x4b\xa9\x5e\x50\xde\xea\xcc\x5e\xe9\xc2\xba\x6f\x6f\x62\xfd\xba\x0e\x86\xac\xa2\x27\xd7\x27\x37\x75\x52\xa3\xab\xdb\xab\x60\x1c\x26\x01\x84\x6e\xc2\x7a\x19\x2a\x3f\x33\xe7\xff\xdb\xe4\xa4\xaa\x7b\xeb\x2b\x3f\xf6\xc9\x1b\xd5\xcd\x5c\x89\x0b\xcb\x6f\x4c\x90\x8f\xf5\xb9\xb5\x55\xe2\xa0\xa7\xdf\x8c\x3e\xf6\x77\x01\x36\xbb\xf0\x09\x75\x5b\xf6\xc3\xe6\x30\x73\x10", p, q, g, b"\x2c\xce\xdd\xc9\xe2\xce\xbb\xc1\xe9\x9b\x83\xb0\x30\x53\xbb\x14\xa9\xcf\xaf\x07\x2b\x45\xe4\x74\x6d\x18\xcb\x39\x01\xf6\xa2\xc3\xcf\x72\xda\x66\xb0\xb9\xb3\xe1\x05\xbd\x4c\xd0\xe5\x42\x7d\x7e\x9b\x65\x7e\xd7\x18\x84\xcd\x49\xf5\x1f\xe8\xfa\x18\xa3\x66\x01\x8a\x3e\xaf\xac\x33\x81\xe0\x7a\x5b\x19\xf6\xd3\x86\x2e\xd2\x91\x60\x94\x90\x6e\x75\x28\x6e\xaf\x1d\x13\xc4\x85\x74\x4b\x27\x04\x04\xff\x9a\xdc\x8e\x17\x78\x33\x04\x3b\xdc\x34\xc3\x07\xe6\xfc\x9c\x55\xc5\x3d\x8f\xf8\x4a\x6e\x25\x10\x38\xdb\xeb\x5e\xf7\x74", b"\x35\x91\xc5\x21\xb2\xa5\x6c\xf4\x60\x51\xc0\xcb\x3d\x44\x4b\x9a\x22\xff\xf6\x3f", b"\x7a\xc7\x8e\xe2\x52\x44\x0c\xf9\xe8\x51\x04\x94\xd1\xfa\xd8\xb5\x18\xf1\xe1\x28", ); test::( b"\xbb\x65\x93\xff\x21\x9c\x9f\x20\xaa\x47\xe1\xe1\x57\xe8\x8e\xd5\x9a\xe2\x9c\x89\x40\xa5\x27\xc8\x2e\x0e\x0f\x2e\x85\x5f\xa9\x8e\x94\xe0\x7b\xe1\xf6\xbc\xe3\x83\x2b\x7e\xa1\xe6\x0a\x5c\x9e\xf5\x83\xf2\xec\x7b\x17\x92\x27\xe4\xaf\xdc\xf8\x29\xd6\x73\xe1\x37\x7f\x83\x2a\xe3\x8e\x7c\xad\xed\xe4\x15\x96\x4f\x12\xba\xf7\x75\xd3\x8c\xe3\x8e\x94\x55\x63\xe7\x28\x61\x51\x91\x97\xc2\xd0\x8f\x28\xd8\xb6\x46\x65\x62\xe0\x59\xec\x41\x74\x1d\xe3\x49\xed\x5d\xe2\xc7\xd6\xcc\x75\x18\xa8\x77\x20\xa2\x48\xb3\x01\x73\x3a\x47", p, q, g, b"\x15\xd9\xe2\x0c\x3f\x39\xcc\x9e\x3b\x8f\xb6\x5f\xeb\x64\xfb\x15\x68\xf6\xef\xde\xf6\x45\x7d\x23\x1c\x49\x1e\xd5\x17\x31\xd5\x8f\x06\xe4\x5e\xa5\xd6\x65\xd0\x49\x69\x82\x3d\xa4\xe6\x75\x0a\x2c\x3d\x16\xc5\xff\x60\x80\xec\xd0\x9a\xa3\x9c\x00\x6e\xed\xce\xb4\xdb\xc1\x6e\xbd\x64\xbc\x5b\x1e\x44\xb8\x31\xa6\xbb\x25\xaf\xbc\xb3\x00\x0f\xa6\xb6\xc2\x00\x08\x60\x01\x40\x11\x18\x9c\x22\x54\x2c\x14\x5e\x40\x7e\x7b\x59\xf6\xd3\xfb\x1e\x13\x62\x95\xec\x85\x0b\x14\xff\x2f\x49\x94\xea\x37\x48\x1e\x80\x19\x99\x10\xbe\x8e", b"\x61\xe7\x27\x71\x6c\xc9\x69\x14\x50\x97\x40\xa7\xcb\xa6\xe7\x4a\x9d\xec\x64\x06", b"\x2e\x77\xc1\x4f\x01\xf2\x21\x80\xbc\xda\x57\x25\xcf\x0e\xaa\xc9\xad\x13\xa7\xd1", ); test::( b"\x56\x5f\x19\x24\x44\x68\x51\x5e\x84\x63\xd0\x7b\x42\x5b\x4d\x5f\x81\xff\x2e\xfa\xb5\x15\x6b\xa1\x9a\x63\x73\x42\x19\xc2\x26\xcc\xca\x59\x03\xbf\x9c\x35\xdb\xca\x09\x61\xdb\x7c\x2e\x3f\x69\x44\xd0\x57\xed\xfa\x6c\x23\x94\xc3\x9a\x00\xf1\xc4\x25\x96\xe7\xee\x72\xed\x64\x4c\x6a\x18\x21\x15\xbd\xc4\x4b\x90\x10\xc8\x6e\x7b\x0e\xc2\xe3\xbd\xf7\x01\x6c\x5e\x04\xf4\x55\xb4\xcb\x69\x3e\x32\x49\x0b\x8f\x49\x4b\xb4\x10\x3b\x3b\x5e\xa6\x80\x82\x22\x45\x28\x41\xb7\x33\xfa\xf7\x35\xf1\x0a\x95\xfb\x28\x3d\xd8\x6c\xe5\x93", p, q, g, b"\x66\x42\x45\xaa\xeb\xcf\x5c\x05\x5c\x32\x10\x9b\x21\x59\xa1\x74\x73\x04\x30\x87\x91\x5f\x14\xe9\x59\xdd\xdc\x0c\x9b\x20\xc7\x26\xf0\x12\x4f\x1e\xcb\xaf\x20\x2f\xe2\x67\x6a\xfd\xab\xd3\x46\xa7\xb5\xbe\xf7\x69\xa2\x5c\x6f\x73\x36\x12\xd7\x37\x8d\xf1\xb2\xd4\xc5\x18\xa2\xda\x5b\x3a\x4c\xd0\x25\x2b\xb8\x18\x08\x38\xa4\x63\x89\xa8\x46\x93\xbe\x8c\xc2\x4f\xbd\xc6\x39\xb6\x2c\xb2\x1d\x8a\xbe\x12\x72\xb5\xaa\x06\x22\x2f\xe2\x13\x3f\xc5\x55\x6d\x24\xe7\x54\x96\xa5\x3e\x19\x34\xd3\xb5\x84\x8e\x51\x0b\x69\xda\x04\xa4", b"\x5c\xa0\x7b\xc7\xcd\x9f\x7a\x60\xcf\x79\x39\x1d\x87\x3b\x6f\xdd\xf5\xa4\x8c\xca", b"\x97\x99\xc7\x4a\x80\x6f\xc1\x96\xe0\x22\x3f\xb1\xa6\x13\xfd\x17\x8c\xaf\xbd\x99", ); // [mod = L=2048, N=224, SHA-1] let p = b"\xf2\xd3\x9e\xd3\x06\x2b\x13\xc9\x16\x27\x36\x00\xa0\xf2\xa0\x29\xe8\x6d\x7a\x4b\x92\x17\xb4\xf1\x81\x5b\xf2\xb2\x4d\x97\x10\xa5\x7a\xb3\x3f\x99\x72\x94\xb0\x14\x58\x5b\x8d\x01\x98\xdf\xdc\xcb\xcd\x75\x31\x4d\xa5\xff\x85\xaa\x34\x4b\x45\xad\xae\xaa\x97\x9b\x51\xa3\x12\xa7\xbf\xa9\x44\x72\xfb\x63\x3f\x1a\x6f\x15\x6b\xb4\x45\x88\x67\xdf\xd3\x84\x03\xf0\x6b\x85\x1f\x00\xfe\x2d\x34\x84\x07\x7b\xde\xd7\x1a\xb7\x51\x3d\x04\xa1\x40\x22\x05\x75\xfb\x69\x33\x95\x48\x0e\x4c\x84\x02\xb7\xa4\x6c\xec\x2d\x37\xa7\x78\xc3\x05\xac\xcd\x1f\x13\xe9\xf6\x2e\x86\x53\x15\xf4\xb2\x2c\xc4\x67\xc8\x98\x6e\xc8\xe4\x96\x1d\xdf\x81\x05\x66\xb0\xc4\xee\x36\x9a\xc6\xaa\x15\xe4\x3f\x47\x44\x00\x58\x26\xf5\xbd\xe8\x07\x1a\x19\xe3\x0b\x69\x09\xaa\xc4\xb3\xd1\x74\x23\x72\x70\xda\xd0\x27\x99\xd0\x9b\x8a\x2c\xc5\xf2\x2e\x66\x89\x4b\x54\x22\x22\x8b\x2c\x23\x4f\x11\xf5\xa7\x71\xc5\xb8\x9c\xf4\x65\xa2\xac\xec\xbb\xee\xaa\x17\x25\xfe\x8f\x9b\x59\x42\x2b\xe8\x99\x10\x52\xcb\x55\x6d\xdf\x2c\x8c\xe8\xfa\x92\x06\xdb\xf3\x9f\xea\xdc\x19\x4e\x00\xf8\xe5"; let q = b"\x80\x00\x00\x00\x00\x00\x00\x00\xc1\x18\xf4\x98\x35\xe4\xef\x73\x3c\x4d\x15\x80\x0f\xcf\x05\x9e\x88\x4d\x31\xb1"; let g = b"\xe3\xa9\x3c\x09\xda\x6f\x56\x0e\x4d\x48\x3a\x38\x2a\x4c\x54\x6f\x23\x35\xc3\x6a\x4c\x35\xac\x14\x63\xc0\x8a\x3e\x6d\xd4\x15\xdf\x56\xfd\xc5\x37\xf2\x5f\xd5\x37\x2b\xe6\x3e\x4f\x53\x00\x78\x0b\x78\x2f\x1a\xcd\x01\xc8\xb4\xeb\x33\x41\x46\x15\xfd\x0e\xa8\x25\x73\xac\xba\x7e\xf8\x3f\x5a\x94\x38\x54\x15\x1a\xfc\x2d\x7d\xfe\x12\x1f\xb8\xcd\x03\x33\x5b\x06\x5b\x54\x9c\x5d\xcc\x60\x6b\xe9\x05\x24\x83\xbc\x28\x4e\x12\xac\x3c\x8d\xba\x09\xb4\x26\xe0\x84\x02\x03\x0e\x70\xbc\x1c\xc2\xbf\x89\x57\xc4\xba\x06\x30\xf3\xf3\x2a\xd6\x89\x38\x9a\xc4\x74\x43\x17\x60\x63\xf2\x47\xd9\xe2\x29\x6b\x3e\xa5\xb5\xbc\x23\x35\x82\x8e\xa1\xa0\x80\xed\x35\x91\x8d\xee\x21\x2f\xd0\x31\x27\x9d\x1b\x89\x4f\x01\xaf\xec\x52\x38\x33\x66\x9e\xac\x03\x1a\x42\x0e\x54\x0b\xa1\x32\x0a\x59\xc4\x24\xa3\xe5\x84\x9a\x46\x0a\x56\xbc\xb0\x01\x64\x78\x85\xb1\x43\x3c\x4f\x99\x29\x71\x74\x6b\xfe\x29\x77\xce\x72\x59\xc5\x50\xb5\x51\xa6\xc3\x57\x61\xe4\xa4\x1a\xf7\x64\xe8\xd9\x21\x32\xfc\xc0\xa5\x9d\x16\x84\xea\xb9\x0d\x86\x3f\x29\xf4\x1c\xf7\x57\x8f\xaa\x90\x8c"; test::( b"\xed\xc6\xfd\x9b\x6c\x6e\x8a\x59\xf2\x83\x01\x6f\x7f\x29\xee\x16\xde\xea\xa6\x09\xb5\x73\x79\x27\x16\x2a\xef\x34\xfe\xd9\x85\xd0\xbc\xb5\x50\x27\x56\x37\xba\x67\x83\x1a\x2d\x4e\xfc\xcb\x35\x29\x6d\xfe\x73\x0f\x4a\x0b\x4f\x47\x28\xd1\xd7\xd1\xbb\x8f\x4a\x36\x23\x8a\x5c\x94\x31\x1f\xa1\x13\x4a\x93\xa6\xb4\xde\x39\xc0\x85\xe9\xf6\x0a\xe4\xe2\x37\xc0\x41\x6d\x58\x04\x2b\xb3\x6b\xaa\x38\xcb\xa8\xc8\x96\x29\x5b\x74\x5d\x53\x76\xfd\x8c\xe4\x2e\xb6\xee\x5a\x1b\x38\xf8\x77\x16\xb2\x65\xb7\x6e\x58\xcf\xb2\x4a\x91\x70", p, q, g, b"\x28\x9f\xf1\x8c\x32\xa5\x6b\xb0\xb8\x83\x93\x70\x64\x76\x83\xa3\x8a\x5a\x7e\x29\x14\x10\xb9\x32\x07\x21\x2a\xdc\x80\x88\xd3\x0f\x93\xe9\xe4\xab\xc5\x23\xf3\xd4\x69\x36\xe7\xd5\xc9\x0d\x88\x74\x2b\x36\xaf\xd3\x75\x63\x40\x8f\x15\xc8\xc1\xa4\xf7\xac\x24\xbf\x05\xf0\x10\x08\xff\xee\x70\xc8\x82\x5d\x57\xc3\xa9\x30\x8b\xad\x8a\x09\x5a\xf2\xb5\x3b\x2d\xda\x3c\xbe\xd8\x46\xd9\x5e\x30\x1e\xb9\xb8\x47\x66\x41\x5d\x11\xf6\xc3\x32\x09\xa0\xd2\x85\x71\x09\x6a\xb0\x4a\x79\xaa\x0d\xc4\x65\x99\x75\x29\x68\x6b\x68\xe8\x87\xcd\x8a\x20\x5c\x2d\xc8\x19\x5a\xef\x04\x22\xeb\xa9\x97\x9f\x54\x9a\xc8\x55\x48\xe4\x19\x41\x36\x43\xb7\x24\x43\x61\x15\x3a\xda\x14\x80\xd2\x38\xcd\x00\xdc\x16\x52\x79\x38\x95\x55\x48\xdd\x5d\x02\x7d\xed\x10\x29\xee\xeb\x8e\xd6\xc6\x1b\x4c\xd5\x93\x41\xd8\xb1\x54\x66\xe9\xda\x89\x0a\x98\x99\x96\xf4\xd7\x69\x1e\x60\x72\xde\x13\x6a\xf2\x8b\x58\x74\xbf\x08\xbd\x1f\x8a\x60\xcf\xb1\xc0\x08\x88\x13\x29\x09\xf5\x15\xe0\x4b\xce\x81\xb0\x29\x51\xaa\x41\xba\xac\x68\xff\xdb\x8c\x5d\xc7\x7a\x1d\x32\xd8\xf2\xc1\x0d\xd7", b"\x45\xdf\x2f\x42\x3e\x94\xbf\x15\x5d\xd4\xe1\xd9\xe6\x3f\x31\x5e\xa6\x06\xdd\x38\x52\x7d\x4c\xf6\x32\x87\x38\xc8", b"\x59\xb3\xe8\xef\xa5\xbc\x0c\xcb\xf4\xa3\xcb\xb6\x51\x5c\x4b\x9b\xf7\x84\xcf\xac\xdc\xc1\x01\xdc\x9f\x81\xd3\x1f", ); test::( b"\x3b\xd2\xab\x08\x21\x78\x78\xe6\x77\x4e\xc7\x79\x7d\xeb\x75\xd5\xc9\x4c\x40\xe2\x4d\xdf\x1f\xac\x8d\xde\x3a\x29\xc8\x6b\x26\xf5\x71\x57\xd3\x29\xaa\xc3\x1a\x66\x22\xe1\xd6\xda\xc9\x7e\x22\x69\x5d\x7d\x1f\x8e\x20\xaa\x26\xb0\x67\x95\xc2\xf8\x78\xba\x5d\x2b\x9c\xc4\xb1\x6d\x5f\xa6\x0a\x5f\xa5\xc2\x4c\x09\x03\x1d\xe2\xf9\x70\xa9\xb5\x7e\xa2\x4a\xf1\x71\x92\xec\xe2\x1a\x4d\x12\x0f\xdb\x52\xe6\x2b\x82\x38\xf7\x78\xff\x85\x52\xfa\x45\x3c\x0a\x88\x91\x24\x3f\xc8\x75\x71\x88\xe9\xc4\xe0\xe7\x49\xf7\xe9\xcd\xf1\xc1", p, q, g, b"\xb9\xb0\xe1\xcd\x37\xba\xfb\xed\xee\xd1\x73\xfd\x70\x99\x83\xf5\x3c\x2c\x42\x7f\x9f\x61\xc8\x95\xfa\xc9\xeb\x54\x9b\xd6\x20\x1d\x05\xef\xd5\x51\xae\xcb\x98\xb2\xdf\x80\x14\x2d\xea\x7a\x35\x49\x1d\x47\x4a\x3a\xdc\x83\xf0\xda\x8d\xc4\xea\xcd\x7f\x6d\x72\x01\xc6\xfc\x0a\xb7\x98\xab\xe8\x9d\xcd\x7d\x03\x10\xd5\xf0\x0f\xa1\x0d\x21\x1f\x18\xea\x85\x35\x79\xe2\xfe\x31\xee\x55\x37\x1d\x1c\x9f\xc4\xcf\xb0\x50\x78\x65\x86\x65\x9b\xdc\x0f\x1a\xac\x4c\x10\x9b\x9e\x4f\x94\x16\xd2\x2c\x42\xb3\x9a\x47\x13\x11\xe2\x8a\x8e\xd6\x2f\x1f\x41\xbc\xfe\x06\xe0\x74\xbb\x2f\x1a\xcd\x29\x59\x79\x53\xc3\xb6\x9d\x3a\x78\x83\x1f\xb2\xf8\x36\x65\xd0\x4a\x13\x95\x77\x5e\xa3\xa2\xa6\xea\x14\x2e\xc0\x05\x07\xba\xdd\x4d\xe0\xd9\xc1\x02\xea\xc7\xbb\x89\x4f\x74\x53\xe6\xa8\xe0\xdd\x3f\x14\x97\x83\x77\xd1\xdd\xb1\xfd\xf1\xc5\x58\x35\xb9\x92\x4f\x42\xad\x45\xc8\x47\xc7\x9b\x3f\x83\xfb\xf9\x24\xf8\x0b\x78\xf5\x03\x29\x73\x10\x16\x76\x3e\x01\xba\x8e\xf6\x9e\x81\x52\x3e\x18\x15\x84\xf4\x5c\x21\xe3\xc8\xed\xfe\xd4\xe2\xec\x56\xfb\x7b\x02\xaa\x4e\xe9", b"\x6d\x19\xfe\x3c\x41\x5d\x6b\x07\xd6\xa1\x03\x9a\x1f\xe3\x4b\x10\x6d\xaa\x2e\xea\x4c\xbc\xa9\x71\xcb\x66\x9e\xac", b"\x14\xd7\xde\xcc\x2c\xc0\x5a\x17\x00\xfa\x25\x6e\x4d\x29\x94\xbc\x4b\xd9\x57\xbe\xd0\xba\xf9\xa1\x8b\xda\x70\x90", ); test::( b"\xc6\x7f\xa7\x7c\xd7\x35\x1d\x10\x0c\x76\x24\xe2\x54\x18\x48\x1f\x8f\xa4\x99\xd7\x5f\x59\x49\xa5\xca\xe6\x0f\x96\xa0\xf7\xbf\xcd\xda\x7d\xba\x37\x3f\x9f\x75\x12\xa5\xf1\x46\x0a\x95\x21\x30\x77\xce\xbd\x91\x2e\x26\x62\xc4\x3a\xc6\xbb\xe3\x8c\x44\x79\xb0\x41\x51\xa5\xe2\xd2\x88\x09\x02\xd0\x31\xaa\x0d\xff\x3f\x41\x12\x6d\xd0\x9f\xba\x5c\x05\x07\x63\x4e\xd1\x6c\x39\x38\xfb\xd3\xa9\x64\x73\xa8\xb1\xeb\xdc\x37\xd3\x2c\x76\x7f\xd5\x93\x2e\xfa\x23\x55\x55\xf3\x82\x5a\x15\x95\x36\x92\x38\x67\x54\x53\x60\x4d\x27\x8e", p, q, g, b"\x31\x93\x9c\xcd\xd3\x93\xf7\x47\x54\x1a\x5c\x69\xf8\xe5\x09\x76\x1d\xd6\x7e\xdd\xb4\x2e\x0b\xdf\xc4\x12\xd4\xcc\x30\xd3\x68\xd8\x78\xd2\x6d\x85\x6c\x52\x90\xec\x74\x6b\x59\xc5\xe5\xaf\x65\xef\x3f\xd6\x2c\x9a\x2d\xcc\xfc\x15\x58\xdf\xbf\xb6\x2c\xfe\xcd\x78\x38\xe6\xd5\x94\x95\xb2\x0d\xb5\xad\x9d\x78\xe8\x2f\x04\x6f\x9f\x15\x98\x11\x3a\xae\x0a\x79\x60\x1d\x6b\x94\xa3\x2e\x05\xf6\xec\xfd\xf2\xb9\xc4\xcf\xa7\x20\xde\xbf\xc2\x12\x22\x1b\x14\xb0\xdd\x6f\x70\x78\x20\x5a\x4f\x21\x8c\xd4\xb8\xf1\x0b\xea\x8f\xa4\x81\xec\xa5\x25\x4f\x36\x5d\x01\xf3\xc8\x65\x20\xbf\x25\x43\x23\xd5\x63\x4b\x96\x92\x0a\x13\xb8\xf2\x9d\x73\x4e\x07\xfd\xe8\x06\x4e\xb0\xc9\xf8\xeb\xb6\xae\x0b\x40\xb4\xaa\x7d\x26\xbb\x8d\x80\x86\x82\x31\xd4\x55\x8a\x27\x80\x45\xcb\x5f\x29\x51\xcb\xfe\x0d\xc9\x7b\xbd\xce\xe7\xaf\x8c\x9b\x1e\x3b\x63\xcb\x49\xdc\x29\xf3\x00\x77\x5c\xdb\xe4\xd2\xd2\x78\x94\xe2\x7e\x0e\x7c\x9e\xad\xa1\x3a\x35\x9f\x0b\x92\xb4\x49\xe9\xd0\x69\xb9\x5b\xdc\x2a\xa7\xc8\x5e\x56\x81\x1c\x07\x20\x7a\x15\x0e\x59\x87\x35\x99\x6a\x6e\x53\x49", b"\x79\x24\xb7\x6e\xe7\x6a\xd7\xff\x2a\xb3\x27\xda\xbb\xbd\x31\x33\x67\x50\xfc\x76\x63\xdf\x4b\x5b\x94\xee\xb6\x2d", b"\x59\x14\xcf\x96\x54\x90\xb0\xbf\x81\x92\xfc\x6e\x16\x97\x54\xbd\xfd\x31\xc4\x8d\x71\x63\x61\xdd\x15\xf4\x5b\xf7", ); test::( b"\xfd\xe7\x43\x4c\x41\x66\x60\x22\xd6\xd7\xda\xbc\x7a\x67\x31\x5b\x1f\xf4\x9a\x2a\x85\xa6\x16\x8f\x2b\x60\x63\xe3\x03\x6a\x4f\x35\xe6\x6d\x28\x72\xaf\x3d\x97\xe5\xbe\xba\x23\x96\x98\xd8\x8e\x13\xbd\x03\x6e\xf0\x8c\xf0\xe8\x3a\x41\x66\x4c\x3d\x0d\x21\x86\x3c\x24\x12\x9a\x6a\x9b\x27\xb8\xe9\x6c\x80\x29\xec\x67\x3e\x07\xaf\x72\x46\xab\x77\xa5\x6c\x21\xca\x20\x8d\xf4\xb1\x81\x8d\xed\xa9\x06\xb5\x53\xb2\xb2\x3a\x37\xb5\xa0\x5e\x29\x82\x5e\xbe\xb4\x7f\x53\x98\x6c\x2b\xf2\x6d\x73\x1a\x5b\x73\x1f\xff\xc3\x53\x25\x8c", p, q, g, b"\x59\xa1\x4e\x36\xc9\xed\xed\xdc\xe8\x00\x0f\x04\xc6\xf7\x40\x1a\xd9\x87\xf1\xc7\xa5\xa0\x70\xb8\x0e\x0a\xae\xd7\x75\x1d\x1d\x50\xd9\x9a\x58\x0c\xf2\x05\xdb\xcc\x37\x97\xa0\xa0\x40\x6b\x04\x77\x6d\x80\xf2\xf2\xdf\x41\x8c\xee\x24\x9b\x98\x67\x2d\xe7\xe6\x1c\xda\x85\xcf\xbe\x90\x36\x90\xe5\x46\x42\xdc\x2a\x12\xa9\x0e\xcf\x88\xc5\x92\x56\xa4\xd7\x7c\x4c\x0c\xb5\x4e\x13\xfa\x36\x47\xb1\x14\x31\xe1\x73\x4f\x3c\xee\xea\x04\xfb\xf3\x45\x96\x65\xe9\x99\xfc\x0f\x7a\x75\x46\x83\xe4\x8c\xef\xeb\x4a\x95\xfe\x47\x39\x11\xff\xe0\xde\x0f\x73\x89\x60\x75\x3d\xac\x33\x66\x6c\x53\xed\x28\x93\xbc\x63\xdd\x41\x62\xd7\xa6\x32\x87\x39\xa2\x52\xcd\xae\xa7\xa9\x48\xc9\x7d\x02\x41\x53\xb5\x5d\x14\xfd\x53\x04\xe3\x57\x50\x48\x41\x88\x08\xa9\x52\x67\x5f\xaf\xb9\x5f\xad\x84\xb1\x15\x6b\x24\xe9\x8e\x04\x8a\xa7\x77\xa7\x45\x32\x4e\xc1\x3b\xa3\x78\xe8\x3b\x23\x84\xbc\x2e\x96\xc6\x09\x5a\xa7\x86\xbd\x28\xfc\x3b\xe6\xbf\xa4\xdb\x0c\x3c\x44\xfe\xd4\xc3\x51\xbd\x88\xa1\x9e\x17\x9a\x6a\x7b\xc1\x2f\xc0\x14\xf1\x7d\xe4\x6f\xd1\x2e\xf1\x28\x7f\x72", b"\x49\xea\x82\x71\x3a\xaa\xd7\x99\xe2\x63\x80\x9e\x16\x1b\x06\x55\xf1\xe7\x43\x23\xa0\x60\x41\x83\x6f\x67\x69\x80", b"\x76\xb3\xf6\xc1\x64\x7f\x8d\x17\x71\x8f\xfb\x92\xd6\xe1\x42\x46\x06\xba\x97\x24\xe5\x29\x0d\xaa\x4e\xe9\x5e\xfb", ); test::( b"\x66\x76\xa3\xa1\x31\xce\xf7\xe5\x64\x7e\xa7\x59\x0d\xa3\xc7\x04\xa0\xf5\xdc\x3f\x37\xf2\x69\x13\xa7\x0d\x43\x06\x09\xcc\x24\x97\xc4\x5e\x68\xb7\xbd\x6f\x58\x93\xdb\xa2\x62\x87\xff\x0d\x24\x0b\xab\x8a\x07\x61\x93\x6a\xa7\x09\xa2\x16\x2e\xbf\x1c\x20\xa6\x13\x6a\x74\x83\x52\xdc\x39\xba\x44\x03\xcb\xe4\xb0\xa5\xa5\x4a\x72\x92\x86\xdd\x19\x3e\xac\x1a\x2e\x6b\xdc\x15\x0f\xb0\x63\x69\xbe\x44\x43\xa6\x0e\x75\xe5\x33\x00\x83\xff\x00\x9e\xab\xb0\x52\x32\xc5\x23\x68\xa2\x6f\xd2\x37\xc7\xc3\x18\x5c\x1c\x7e\x7d\x59\x55", p, q, g, b"\xdd\xcd\xf4\xc6\x16\xfd\x6e\x40\x16\x09\x9f\xb3\x4e\xbc\x4e\xc5\x07\x29\x07\x62\xc5\xee\x68\x76\xf1\x0c\x6a\x2d\xed\xec\x97\xba\x86\xa6\x06\x3a\xa8\xff\x06\x9f\x3f\x3d\xb4\x0c\x94\x64\xaf\xb1\xba\x7e\xd6\x91\x77\x3a\xfd\x60\x83\x58\x6b\x14\xe3\x56\x94\xa9\xdd\xc3\x76\xdd\xc3\x9d\xac\x57\x13\x2a\x05\xbf\x88\xa0\xa6\x08\x5c\x72\xa8\x0a\x21\xc1\x3e\x59\x0c\x68\xc4\xe9\x8e\xed\xb6\x7f\x1e\x16\xc8\xcc\x7e\x9e\x25\xff\x37\xc8\x7e\xe3\xbe\x9a\xdf\x1a\xd0\xb8\x38\x65\x1b\x0f\xdd\xf8\xd0\x26\x96\x9d\x4a\x16\xbb\xb8\x28\xfc\xaf\x00\xef\xa3\x06\xfc\xed\xd5\xae\x19\xca\x1a\x1a\xbf\x44\xa2\xbd\xf6\xf9\x94\x12\x3c\xe9\x41\xfd\x35\x23\xbc\x13\x35\xf5\x1f\xa8\xdc\x5d\x52\x53\x58\xbd\xdf\x0c\x55\xfe\x2c\xe0\x7c\xe9\x74\x40\x8d\x90\x90\x48\x88\x37\x97\x6f\x16\x84\x5e\xb7\xa8\x2d\x04\xc4\x3a\x70\x4b\xe2\xde\xe1\xbe\x2c\x86\x83\xb2\xd9\xe5\xc4\x4f\x18\x33\xf5\xc4\x6c\x65\xb6\xe6\x2c\x2a\x72\x04\x21\xbb\x35\x84\x3f\xea\xd7\xb9\xe0\xb3\xfc\x04\xc6\x46\xbe\x39\xe8\x90\xe3\x70\xb9\x82\xbd\xe9\x1f\x2f\xc1\x84\x42\xb6\x50\xae\x60\x2f", b"\x16\x58\xa7\xef\x2f\x44\x4b\x01\x4a\x18\x85\xb1\xed\xa8\xda\xd3\x60\x5b\x96\xc3\x94\x8e\x54\x4e\x4c\x88\x25\xeb", b"\x60\x21\x50\xf6\x7b\x19\xa5\xe3\xe3\x9f\xc5\x3a\xbe\xa0\x2d\xd8\xf3\xb3\x0d\x25\xc0\xb4\xea\x0b\xcd\xdc\xbd\xb0", ); test::( b"\x07\x1f\x06\xa1\x15\x88\x58\x4d\xa5\x57\x60\x13\x02\x9b\x5a\x14\x71\x25\x81\xa4\x84\x08\xbb\xfd\xbe\x34\xe1\x75\x68\xc0\xa0\xe4\xd1\x2c\x1e\x9c\x3f\xb2\x27\x10\x14\x40\xdd\x8d\xcd\xc4\x15\xe3\xb4\x9f\x68\xa2\x6a\x0e\xc7\x61\x2a\x10\xbb\xc6\x4d\xdb\x8f\x7e\xc9\xe9\x75\x0d\x1e\xfc\x9c\x05\x74\x70\x08\x75\xfc\xf5\x2d\x00\xd3\x7b\x9d\xd7\x44\xca\x84\x1e\xcf\x75\x66\x97\x7c\x1b\x57\x99\xdc\x41\x05\xd0\xb7\xa9\x25\x51\xc5\xb3\x3a\x50\x13\x3f\xa3\x00\xa5\x90\x8b\x18\xf4\xc0\x19\x36\x34\x7c\x60\x49\x44\x7a\xbf\x29", p, q, g, b"\xb1\xf4\xdf\xc9\xc8\x34\x55\xf2\x79\xa3\xe7\x52\x27\x34\xd6\xb1\x20\xab\x8e\xd3\x6c\xcb\xa7\x85\x4e\x26\x50\x4c\x70\x79\x83\xd2\xa9\xc0\x75\x04\x57\x23\xf4\x41\xab\xfc\x7b\x36\xfb\xb5\xd4\xbf\x04\x47\x67\x8f\x5b\x70\x9c\xa5\x12\x9b\x74\x88\x8a\x07\x23\xe9\x05\x76\x98\x36\xb9\xda\xc1\x30\x3f\x1b\x9a\xce\x26\x55\x43\x42\xb6\xe6\xd0\x32\xac\x4b\x47\x7e\x01\x1a\x4d\xdd\x3e\x29\x78\xfc\x0c\x44\x9c\x64\xa6\x6e\xfe\x7d\x4e\x22\xe5\xa5\xfa\x2b\x01\xbb\x17\xfc\xdb\xec\x71\x85\xdd\x41\x15\xa1\x9d\x97\x2f\xb0\x1a\x06\xb3\x3b\xb1\x8b\x93\x49\xff\x95\xfb\x10\xdb\xbf\x2d\xcf\x89\x9b\x18\x17\xd3\x0a\xd4\x8a\x99\xa6\x14\xd5\x77\x70\xba\x76\x4a\x11\xa8\x4a\x8d\xb3\xaf\x30\x41\xec\x36\x26\x14\xf8\x07\x19\x6e\xa3\xb9\x0d\x05\xb0\x14\x05\x4f\xf4\xe1\x85\x24\xc7\x95\xe6\x72\x2c\x0f\xa1\xf6\xd1\x20\x5d\x53\x2d\x94\x34\x76\x33\xeb\x13\x2e\x6c\xbb\x59\x6d\x8b\x34\x1e\x65\xf2\xb2\xf9\x55\x87\x2e\xbd\x4d\x30\x06\xc4\x5a\xc3\x3d\xa1\x11\x67\xfa\x46\x86\x9c\x7e\xe7\x0e\x9c\xf1\x47\xb2\x33\x68\xb3\xaa\xcd\x9c\x18\x80\xb0\x9a\xc8\x6a\x8d", b"\x07\xbd\x3f\x67\x18\xe3\x98\x39\x30\x4e\xf5\x4a\xc4\x8b\xda\x8d\x9a\xc8\xee\x05\x1a\x49\xbb\x91\x31\xdc\xc9\x18", b"\x64\x96\xb2\x46\x9b\xfb\x58\x45\x48\x50\x04\x70\x2b\x0c\x79\x94\x1b\xc3\xc3\x00\x70\x07\xba\x16\x9d\x83\x07\xce", ); test::( b"\x71\x27\x9b\x84\x8c\x00\x20\x8f\xb4\xe4\xd8\x79\x79\xcf\x97\x3b\x32\x1b\x20\xd0\x98\xde\xa9\x12\xa3\xb4\xb5\x78\x9c\xdd\x3b\x7c\xcd\x8f\x39\x93\xa9\xc9\x2c\x34\xb7\x0e\x9b\x0b\xd5\x75\x20\xdb\x56\xf2\xde\xd3\xa6\x12\xa6\x16\x9d\x2a\x1c\xc6\x35\x09\x05\xed\x02\x02\xa2\x5c\x11\x3b\x7b\xf8\xfa\xec\x4e\xdd\x2e\xa3\xb8\xf4\x47\xca\x75\xd1\x5a\x71\x2b\x4b\x43\x94\xc2\x2d\xe0\xc2\x55\x4b\x9a\xa0\x7e\xc8\x46\x67\x27\xe7\xef\x6f\x1f\x04\xac\x45\x68\xd7\x72\x6d\x9d\x77\xf5\x0a\x2f\xd5\x51\xac\x29\xe4\x2f\x8d\xda\x23", p, q, g, b"\x7c\x8d\x63\xb9\xd5\x5f\x59\x29\x0b\x02\xa0\xfc\xea\x6d\x98\xc6\xc5\x45\xe2\xc0\xd4\xb1\x09\xa0\x69\x69\x4d\x80\xcb\x03\x4d\xbd\xbd\x9e\xdb\x6b\x4d\x9b\x15\x28\x49\xca\xbd\x65\x5f\xc7\x70\x71\x64\x4b\xbf\x4a\x0c\x7e\xa4\xed\xfe\x86\x4a\x43\xc4\x4f\xde\xd1\x63\xdd\x89\x9c\x21\xcc\x2f\x9c\x33\xcb\xf5\x6e\x8c\xaf\x84\x39\x4b\x24\xf8\xc1\x4e\x84\xf2\x2c\x3b\x0f\x74\x71\x29\xd9\xae\xf4\x1b\x6f\x1b\x1f\xa8\xff\x5a\x8f\x68\x0b\x49\x65\x95\xdb\xc7\xb7\xb6\x3a\x77\x90\xe3\x62\x87\x47\x01\x1b\x32\x77\xb0\x6e\x80\xde\x0b\x67\x94\x2f\x60\x2e\xad\xa6\x0b\x51\x8f\x28\x2c\xde\x69\xcd\x71\x7a\x5f\x6a\x19\xc8\xe1\x69\x44\x9e\x0d\x32\xa9\xd8\xce\x8f\x09\xa5\xad\xa2\x3c\x12\xa0\x2d\xcc\xfc\xdc\x02\x90\xa8\xbd\x46\xe8\xb7\xeb\x39\x74\x94\xf3\x2a\x0e\xcb\x49\xfa\x5a\x8e\xdd\x41\x84\x5e\xb4\x17\xfb\xb8\xcd\xb8\x9a\x9f\x18\xb9\xad\x1b\x41\xdd\x41\x22\xab\x34\x9b\xb3\xc4\x49\x51\xe4\xf9\x60\x43\x60\xfc\xb1\xb7\x95\x31\x15\x45\xa6\x1c\xfd\x67\xc2\x87\xa7\xc9\xd4\xd3\x53\x02\x14\x98\x8e\x76\x16\x97\x9e\x2c\xe9\x07\xd5\xc7\xf3\xe9\xad", b"\x4c\xf5\xc2\x6c\x4c\x2c\xd4\x8c\x05\x50\x8e\x52\xd7\x43\xef\x48\x68\x5f\x63\x24\x14\x1a\xde\xf2\x3d\x79\xa3\x96", b"\x59\xf6\x47\x55\xa0\x4c\x90\xa1\x4b\x18\x7a\xe1\x42\xec\x48\x3c\x46\x00\xb6\xfb\xbe\x19\xf0\x4a\x49\xe9\xff\x88", ); test::( b"\x3e\xa0\x3e\x9b\x00\x5e\xc1\x95\x4f\xee\x0c\x73\x32\x6d\x8a\xca\x1a\x4f\x63\x64\x8e\xb4\xcc\x59\x26\x55\x28\xee\x8e\x96\x9e\xce\xfe\xcf\x27\x97\xa0\x14\x4c\x83\x36\x50\x0e\x26\xa1\xc7\xcb\x1a\x64\x2b\x1e\xc6\x52\x01\x41\x6e\x5d\xeb\x35\x52\x01\xde\x2b\xda\x69\x5d\x1b\xeb\xa8\xde\xe6\x27\x72\xf4\xd5\x91\x4a\x24\x5b\xe9\xff\xec\xf3\x94\x08\xae\x7b\xf1\xbf\xf7\xc2\x45\x10\x29\xc4\xba\x0c\x52\x25\x16\xe8\x99\x55\xad\x3b\xd6\x99\xcc\xe9\x4c\x74\x40\x81\xa9\xf2\xd6\x0f\x5c\x51\x27\xec\x72\x2f\xa5\x73\x16\xce\xde", p, q, g, b"\x12\x39\xc3\x47\xbe\x4c\xe6\xf1\xda\xa7\x21\xfb\xbb\x14\x1e\xe6\xe2\xf7\xc7\x30\x98\xef\xfe\x8e\x71\xbe\xb9\xf1\xab\x72\xd1\xb5\xbd\x3e\x78\xdf\x77\x0f\x7f\xbd\x4b\x3a\x95\x05\x70\x2d\xac\xf1\x02\xee\xb8\xa1\x6f\x11\xb4\xf8\x09\xca\x00\x2a\xe3\x77\x4a\xc0\x40\x7e\x25\x72\xae\x3e\xe1\x71\x64\x58\xe5\xf4\x5c\x49\x3f\x4b\x92\x11\x44\xe8\x58\xd8\x7d\x63\x77\x3d\x02\x37\x45\x51\x2b\x0c\xc0\x2b\x31\xeb\xfe\x5c\x24\xad\x37\xef\xe5\x39\xcd\x39\x3c\xfc\x2b\x95\x1f\xe1\xb6\xff\xad\x2a\x28\x24\xc0\xf5\x4b\xd7\x76\xaa\x0a\xfc\xf9\xc1\xef\x42\x7a\xfc\x6c\xf4\xc4\xb1\x7f\x66\x35\x5d\x68\x57\x41\x32\xe1\xd8\x8a\xde\x37\x22\x51\x3e\x39\x5f\xc6\x2d\x65\xe9\x48\x51\x57\xc8\x20\x64\xc9\x08\x03\xa1\xa9\x1f\x9e\x6b\x10\xaf\x2f\x80\x69\x9d\x91\x7d\xaa\x6b\x81\x41\x5e\x50\x81\x93\x15\x2b\x4c\xcd\xed\x59\x3d\xde\x35\xf6\x45\xe5\x4b\x7c\xba\x44\x57\x75\xeb\x16\xc5\xe1\x90\x73\xf0\xa9\xeb\x53\x69\xbf\x25\x13\xb9\x21\x58\x16\x5b\x94\xde\xa5\x11\xe9\x38\xfb\x6a\x87\x98\xe0\x40\xa0\x5d\xa9\x4f\xdb\x5a\x4d\x44\xbe\xe9\x43\xb9\x5b\x39\xd9", b"\x5c\xa2\xe9\x71\xf2\x1b\x70\x12\x7a\x70\xc6\x55\xeb\x87\xe2\x0b\x25\x17\x97\x62\x28\xa2\xc4\xe6\x48\xd5\x49\xb2", b"\x44\x03\x6b\x34\x66\x71\x36\xa5\x14\x0d\xd1\x94\x8d\xdc\x2f\xb2\xbf\x67\x9e\xfe\xe2\x1f\x29\xb7\xad\x87\xaf\x7c", ); test::( b"\xa3\xf7\x03\x39\x58\xc5\xb7\x79\x07\x2b\x05\x48\xba\xed\xf4\xf8\x8d\x14\xf1\x1a\x6d\xd6\xee\xc0\x18\x1b\x39\x99\x43\xd7\x24\x6a\x45\xd5\x0c\x4f\x7b\x52\x95\xda\xe4\xcd\x3b\xa7\xc4\xc1\x81\xfa\x20\x15\x81\xad\x5c\x4b\x38\x79\x3b\xcf\x45\x4f\x17\x68\x68\xe9\xcb\xe0\x99\x7a\xa4\x19\x87\xb1\xaa\x3d\x5d\xdc\x04\x6b\xe7\xb0\x22\xfb\x51\x30\x59\x4c\x8a\x9d\xf0\x3c\xfa\xa7\xac\xef\x81\x7e\x3b\xa5\xe1\x92\xc6\x9a\x12\x02\x99\x49\x2b\xaa\x52\xa9\xbe\x83\xb8\xe8\x71\xab\xe3\x18\xb4\xa1\xf5\x88\xf9\xed\xcd\xda\xfc\x17", p, q, g, b"\x62\xde\x24\x65\xed\xbc\x1e\xf8\x45\x8b\xea\xa2\x05\xf4\x5f\x9d\xc0\xfc\x3d\xb7\x7b\xae\x0f\x2b\x13\xbe\xf6\xd8\x03\xdb\x68\x9b\x8f\x5c\x74\x7e\x3a\x04\x1c\x08\xd3\x26\xcd\x7e\x18\x91\x67\x5b\x02\x2a\x9d\xa3\xbb\xae\xf8\x00\x77\x84\xc5\x6c\x86\xc4\x17\x6c\x0a\xc8\x76\x35\x1d\x10\x62\xd9\xc2\x70\xd5\x48\xc8\xf4\xec\x39\xa4\x55\x6c\x66\xe7\x6e\x50\x7f\xc5\xf2\x54\x0a\xbf\xa7\x7c\x17\x8a\x9b\xae\x15\x34\x35\xa7\xca\xaa\x00\x8f\x36\xb9\xca\xb2\x13\xec\xf5\xe1\x9a\x0f\x7b\x1e\x62\xfb\x9a\x9c\x82\x23\xbb\x68\x9e\x85\x47\xb5\xec\x91\x5b\x04\xa8\x5b\x2f\x53\xcc\xc7\x92\xdc\x0a\x7a\x41\xd1\x72\xe6\xf5\x9f\x5b\x5e\x7c\x44\x03\x50\xac\x6a\x72\xca\x9c\x06\x56\x2d\x4c\xf8\xc6\x0e\x70\x87\x0a\x97\x83\x12\xe1\x9b\xf5\x4c\x24\x81\xc5\x82\x29\x6b\x64\x55\x4b\xd8\x71\xac\xcc\x8b\x25\x1a\x76\x17\xca\x5e\x5d\x2a\xad\xc1\x9d\x48\x4d\x76\xbc\x38\x26\x84\x1f\x88\xfa\xd1\x49\x1d\x80\x67\x92\x43\xe1\x52\x71\x97\xd0\x2a\x40\x63\x48\xb2\x47\xae\x78\x61\x08\xe5\x40\x09\x75\xa3\x8f\x39\x61\x75\x8a\xdc\x07\xce\x74\x0d\x8d\x44\x2f\x15\x2f", b"\x18\x23\xf0\xa8\x07\xfb\x9e\x71\xad\x69\xb8\xe9\xfc\x67\x4c\xf7\x6f\x67\xc4\x2c\xad\xbe\xa6\xd3\x4c\xf1\xf1\xcc", b"\x66\x7f\xc5\x7a\x44\xb2\x89\xfc\x34\xa1\x98\x55\x61\x17\xaf\xd6\x96\xdc\xbd\x96\xbf\x1b\xaa\xcb\x40\xd3\xf8\xb2", ); test::( b"\x68\x0d\x87\x8c\xa6\xee\xb8\x7e\x4a\xe1\x58\xdd\xdc\x37\x32\x78\x40\x13\xeb\xb1\xda\x89\x40\x1a\xcd\xd6\x10\x90\x89\xe5\x60\x1d\x69\x5f\x9e\x4e\x6e\xbf\x16\x02\x6a\xa7\x46\xde\xe8\x0a\x01\x23\x50\x33\xf2\x42\x07\x9a\xf1\xb7\xfa\x69\x65\xc8\x7e\xae\x8b\x32\x91\xa0\x09\xe4\xf1\x9d\x5b\x8f\x13\x94\xd8\x66\xe7\xc9\xb7\x20\x73\xa9\x56\x52\xc0\xee\xd9\x8e\x94\x84\xa1\x5c\x92\x44\x76\x4d\x8c\xba\xab\xd4\x9d\x24\xc2\x07\xc7\x05\x70\x3c\xc3\x5e\xbf\xc7\x68\x3f\x4a\x0e\x6a\xbf\x23\xfa\x07\x67\x83\x50\xa6\xa0\x0c\xde", p, q, g, b"\x51\x1a\x36\x08\xc4\xbd\xa7\xc8\x2d\x7d\x68\xa5\xd3\x0b\xd4\xc7\x1e\x45\x7b\x0f\x32\x30\x27\xd6\x01\xd6\x32\x4a\x94\x89\x3a\xb3\xd6\x28\x78\xb1\x2d\x98\xc4\x4d\xcf\x30\xad\xab\x43\x52\xb7\x0f\x4d\xaa\x77\x2d\xf6\xae\xd3\xc0\x75\x87\xe9\x6c\x68\xf8\xa8\x47\xa3\x35\x05\x14\x81\xd5\x39\x03\xd1\xd1\xae\x0c\xf9\x9a\x54\x38\x7b\x00\x16\x9a\x1c\x97\x04\xbb\x62\xf1\xd9\x80\x47\xdb\xa8\xa0\xfd\xda\x73\x4c\xd4\x16\x11\x58\x4d\x50\x55\x4a\xd7\x78\x90\x72\x0c\x8a\xc2\x99\x32\x09\x7c\xf2\xbb\x1a\x8d\x0d\xaf\x86\x63\x24\x1e\x23\x64\x0c\xc3\x96\xf9\xe6\x87\x73\x48\xf0\x14\x07\x3f\x4f\xdc\x5b\xeb\xd1\x15\xa0\xd7\x4c\x2c\xe8\x57\xe1\x00\xae\x3d\xc0\x70\x7b\x95\xef\xfa\x4a\x2c\xd8\x62\x9f\xdd\x9b\xce\x72\x09\x1c\x0e\x26\x12\xd2\xb3\x03\x20\x42\x0f\x42\xec\xb0\x98\x6a\xc3\x28\x92\x51\xb4\xae\x54\xe5\x1e\xd8\x3d\x01\x95\xde\xda\x9d\x4e\x5b\x39\x8b\x03\x72\x13\xd2\xf8\xf0\xff\xdb\xf7\x27\x21\x40\x85\x53\x4a\x32\x4d\x4f\xef\xc1\x65\x36\x42\x03\x5e\xbd\xbe\x81\x67\xb1\x50\xbd\x92\xb7\xcd\xf2\x76\xfc\xf5\xe0\xbf\xfc\xe9\x56\xa4\x7e", b"\x7c\xeb\x71\x48\x0b\x5a\x71\x33\x40\x1b\x52\x27\xfa\x22\x53\x33\x2e\x04\xf7\x8e\xa5\xd0\xfe\x23\x7c\x85\x25\xd1", b"\x48\x48\x00\xe8\x1f\x7b\x56\x92\xb7\x9e\xb2\x1a\xc2\xff\xf8\x3c\x49\xc9\xf0\xd4\x09\xc7\x56\xc7\x3f\xbd\xd2\xf0", ); test::( b"\x69\x7f\x9e\xfc\x86\x53\xfe\xdb\x89\x8c\x77\xf9\x0f\x12\x4b\xea\x5c\x3b\x89\x3c\x49\xd7\xf1\xb1\x16\x47\x9e\x83\xd3\x5c\xb6\xc3\x94\x07\x97\x50\x1e\x7f\x52\x88\x7d\x18\xae\x9f\x40\x55\xe1\xbd\xd1\x24\xb5\x72\xf7\xa6\xfa\xd1\x01\xf5\x8b\x52\xb3\x0c\xa3\x0d\x97\x43\xa9\x01\x6a\xf8\x91\x89\x6d\x25\x35\x6e\x44\xf9\x82\xd4\x06\xea\x26\xa9\xb2\x5f\xc4\xf9\x03\x09\x2d\x7e\x8e\x87\x13\x77\x4a\x8b\xe7\xaa\xac\x93\xa6\x94\x2c\x1f\x2c\x48\xe9\xde\xa6\x49\x84\xae\x54\xf7\xef\x99\x96\x1b\xfd\x9b\x8d\x93\x22\x6a\xf7\x76", p, q, g, b"\x64\xb5\x88\x49\x9c\x9d\xb3\xe5\x86\x41\x92\x46\x4d\x32\xfa\x35\x47\xf6\x48\xfe\x67\x6c\x15\x0a\x8f\x9e\x15\x3c\x5a\xf5\x79\x25\xc7\x6d\xda\x4b\x41\x9d\x60\xb2\x2f\xa5\xcd\xea\x0f\xb6\xf0\xb8\x47\x9c\x98\x8a\x32\x4d\x27\x5b\xd4\x2e\xf1\x0d\x89\x98\xc3\x60\x39\xeb\x40\x21\xfc\x0d\x27\x88\xb5\x9a\x75\xcf\x25\xed\x6e\xe4\xd4\x48\x82\xb0\xc5\xc5\xcb\x8d\xcc\x10\x02\xc0\xba\xa4\x79\x81\x07\xe0\xb5\x7c\xd2\x6d\xeb\xbc\xd0\xba\x41\xd1\xb1\xb8\x60\xb8\xeb\x90\xf6\xf3\x05\x00\xb2\xe4\xbe\x7a\x00\xb6\x7d\x93\xc8\x7d\x3f\xf7\xa6\xce\x53\xb9\x77\xa9\x30\x99\x98\x07\xfc\xbe\xf5\x7d\x8d\xc6\x7a\x8f\x36\x61\x24\x99\x13\x89\x32\x8c\xe7\xe7\x0f\x9e\x5c\x22\xff\xde\xdb\x28\x49\x82\x82\xb4\xa9\xa9\xc6\x85\x34\xa2\x38\x32\x2e\x0d\xb6\x08\x8e\xd0\xaf\xa8\xbc\x77\xce\x99\x8c\x81\x44\x71\xab\x56\x76\x7b\x35\xd0\x7b\x94\x29\x0e\xa1\x06\xff\x0c\x99\x8b\x51\xf0\x22\x22\x73\x8e\xf9\x30\x1f\x29\x0c\x6b\x48\x5d\xbc\x4f\x12\xb4\x72\xa1\x19\x2f\xd9\x3f\x2d\x23\x52\x7a\x02\xd9\x5a\xf0\xb4\x22\xbe\x76\x40\xa9\x70\x2e\xca\xac\x26\xc9\xe0\x04", b"\x62\x05\x4d\x11\x52\x9b\x99\x3a\x6f\x19\xa0\xd5\x48\x1b\x99\xb4\xb4\x46\x1a\x49\x86\x6c\x29\x53\x4a\x36\x1a\x8b", b"\x7a\x7f\xd0\x98\x2e\x4e\x21\x18\xd1\xa0\x69\x78\x7a\x80\xb9\x02\x49\x34\x65\xf6\x62\x0a\x35\x5c\x86\xa9\x48\x67", ); test::( b"\xd0\x80\xa7\xdf\xf1\xef\x20\xe3\x38\x32\xb9\x9c\xf8\x3c\x6c\x91\x9c\x07\x62\x0b\xf6\x08\xe0\x80\xaa\x30\x18\x31\xca\x61\x78\xe4\x4e\xf7\xa4\xc1\x15\xe9\x3a\xb6\xd8\x77\xe9\x66\x52\x17\x16\x10\xa5\x1d\x92\x7d\x20\x34\xf4\x2f\x28\x0f\xe8\x7d\x7c\x17\x47\xc4\x80\xeb\xcc\xbf\x56\x5a\x15\x0f\x32\x40\xf6\xd4\xce\x5d\x6e\xb0\xb2\xe9\x64\x41\x67\x91\x37\x6e\xd2\x2b\x35\x59\xcf\x93\xa0\x19\x67\x6e\x9e\x0b\xe3\xc8\xd3\x4f\x0e\x0d\x11\x52\xec\x6c\x32\x6d\x3d\xbf\x1d\x33\x03\xbe\xad\xd1\x88\xc3\xaa\x0d\x77\xe8\xa1\x17", p, q, g, b"\x41\x76\x7c\xe2\x6c\x78\x0e\x3f\x20\x19\xf5\xa4\x9a\x70\x15\x70\x14\x8e\x9f\xf3\x38\x22\x03\x83\x3d\x1b\x18\xe9\xd8\xd6\xa0\x0c\x0b\x22\x58\xf2\xe5\x67\xdb\x31\xad\x4e\x8c\xfb\x26\x21\x79\x4b\xac\x87\xd9\xb3\xb5\x3b\x79\x19\x9a\x77\x50\x58\xfe\xbc\x19\x0d\x00\xad\xed\xae\x0f\xd3\x02\x12\x91\xbc\x2d\x1f\xf0\x50\x8b\xf0\x19\xec\xa0\xc5\x73\xfd\x86\x37\x22\xf3\x67\xd5\xd0\x2b\xd9\xfa\x0d\x07\xf7\x54\x06\xac\x20\x4f\xd3\xa5\xca\x16\x32\x5c\x66\x1f\xe8\x54\xfd\x00\xfb\x26\x65\x47\x52\xfe\xbb\xe4\x39\x09\x6d\xd2\x28\x4d\x5a\xb1\x3d\xe9\xeb\x00\x48\x47\xd1\xd8\x59\x9f\xee\x68\x7c\xb2\xec\xd0\xe5\xb7\x61\xd9\x1a\x7e\x9c\x58\xe6\x92\x1f\x10\x30\x24\x21\x5e\x74\xf3\xde\x3c\xc1\x2f\x5e\xd7\x70\x3d\xef\x04\x1d\xd3\x26\x7f\x1c\xde\x0d\x4f\xda\x8d\xd5\xcc\xc9\xc0\x7b\x65\xde\x59\x48\x2c\x47\x84\xb4\xf6\xfa\x85\x66\x71\x86\xe2\xdf\x6c\x5d\xc8\xb4\x95\xbe\x8e\xc6\x13\x79\xf2\x09\x23\x57\x6f\x17\x68\x0c\x4d\xab\x99\x31\x2d\x0b\x64\x41\x30\x6a\xe7\x17\xc9\x5d\x3f\x35\x2b\xa4\xc0\x96\xf0\x1d\x14\xa7\xdc\x05\xb2\x8b\xa9\xa3\xca", b"\x44\xe7\x0d\x2e\xad\x3c\x51\xdd\x0c\x54\x61\xdd\x41\x86\x82\x5e\x23\xb4\xe7\x51\xd8\xab\x17\xd0\xb7\xed\xfa\xac", b"\x48\xff\xad\xe2\x75\x31\xdb\x47\x8f\x22\xfa\x0e\xc9\x2b\xcf\xd2\xff\xeb\x6d\xb6\x77\x15\xdc\xdc\x79\xbc\xb0\x28", ); test::( b"\xf6\xa9\xaf\xe2\x41\xdd\x98\x4e\x3b\xc2\x65\x78\x7d\xcc\x49\x49\x1b\x3b\xca\x67\xfe\xef\x32\xfc\x1e\x07\xfd\xaf\x0a\xf6\xc5\xd0\x6d\xcc\xb4\x7c\xdb\x69\x07\x51\x1c\xb3\x0c\x10\x9f\x62\xe6\x67\x18\xc5\xc4\xbb\x43\xd4\xb0\x0b\x51\x23\x5d\xf4\x32\x23\xd6\x0c\xe1\xf9\xbe\x34\x93\xa4\xdc\xb0\x2e\x25\xed\x3d\xda\xe1\x0d\x13\x1b\x48\x1a\x61\xae\xf3\x34\xb6\x90\xc7\xa1\xec\x74\x86\x59\x54\xb3\x9c\xcf\xa7\xa5\x1a\x9a\x1e\x62\xe6\x54\xbb\x89\x27\x0c\x77\x4f\x08\x2a\xdf\x09\xb5\x79\xc8\x35\x8d\xac\xb9\xdb\x7c\xa1\xc2", p, q, g, b"\xb4\x13\x8f\xa4\xe1\xdc\x67\x72\xb4\x7e\x5a\x3e\xd1\x30\xa1\x3b\x82\x23\x94\xc3\xce\x8a\x01\x93\xd1\xdd\xe4\xc9\x0e\x7d\xa1\x17\x8e\x11\x26\xdd\x29\x62\x52\xfa\x7d\x2f\x13\x9a\x14\x8a\xc4\x4d\xc0\x6a\x05\x8b\x84\xec\xb0\x3a\xd8\x27\xe6\x68\x92\xe8\x55\x29\xc3\x62\xce\xac\x2e\x71\x04\xb7\x97\xb2\xe9\x82\x60\x54\xde\x35\x05\x96\xab\x58\x17\x65\xe9\xa5\xc9\xff\x51\x43\x33\x2c\x2f\x3b\xfd\x24\x9a\x87\xfe\x1e\x30\xef\xd6\xfc\x05\x7e\x23\x4a\x1c\xd4\xc1\x9e\x07\x2b\xd7\x1b\x32\xd5\x5e\xf1\x22\xea\x93\x09\x11\x08\x1e\x26\xd9\x98\x49\x03\x76\xe3\xb7\x21\xcc\x32\xfe\xd9\x2b\x82\xd5\x45\xa7\xe6\xba\x6e\x4e\xb4\x34\x06\x3c\x87\xdb\x84\x8d\xf4\xef\x02\xed\xa3\xfd\xf4\xf9\xd2\x90\x5b\x78\xf7\xb1\x6b\x5e\xa0\xb5\x99\x8f\x1f\xbb\x0a\xaf\x62\xa1\x73\x55\x91\x60\x0f\x98\x01\x97\x7b\x1b\x94\x7f\x61\xa9\x1f\xf2\xaf\xb8\x72\x7c\x55\x26\x89\x72\xc8\x72\x16\xaa\xe9\x00\x61\x7a\x56\xf5\x35\xed\x18\xc4\xc5\xdd\xf8\xd7\xa5\x44\x63\x25\x6d\x09\x14\x4d\x88\x9c\x14\x9e\x5b\x09\xbd\xd9\xd8\x50\x93\x14\xb1\x03\xb8\x46\xf3\xe6\xfa\x1b\xb2", b"\x55\x5a\x45\x48\x80\x08\x4f\x6c\xb2\x52\x2d\xaf\x33\x99\xfb\x4a\x50\x1a\x94\x3a\x9b\x6a\xac\xd5\x8e\x2c\x7d\x37", b"\x73\x0f\xed\xb3\xa5\x91\x18\x44\x14\x60\x98\xac\x56\x03\xe2\xba\xaa\xe7\x69\x62\xb3\x3a\x32\x7b\x50\x42\x0a\x50", ); test::( b"\x2d\x1c\x57\x3b\xf3\x24\x02\x8d\xc2\xfe\x00\x92\x8f\x55\xf7\xfa\xc7\x90\x37\xd4\xd9\x9e\xb1\x85\xf3\xb9\x97\xe0\x42\xcd\xf8\x08\xb5\x38\x2d\x50\xa6\xaa\x80\x85\xc5\xd1\x95\x8e\x67\x28\x3d\xf6\x69\x86\xb9\x34\x71\xc1\x2e\x30\x45\xba\x14\x6e\xd5\x96\x5c\x8a\xc5\xb4\x46\x68\xf6\x19\x84\xd2\x17\x36\xcf\x1c\x27\x67\x54\xb8\x48\xe9\xfa\x63\x6b\x63\x15\xb2\x27\x2c\x19\xe6\x56\x26\xbf\x8b\x12\x14\xd7\x09\x89\xa6\x23\xb5\xff\xf7\x80\x3d\x28\xa6\x63\xbb\xbb\xeb\xb8\x4c\x83\x9b\x42\x72\x0f\xd0\xe6\x22\x46\xb3\xb0\x34", p, q, g, b"\x5c\xcd\xca\x35\x55\x1c\xf3\x55\xec\x85\xdb\x8d\x68\x01\x0d\xed\x63\x58\x32\x55\xb1\xd5\xfd\x2a\x52\x2e\x29\x51\x3a\xd3\xce\x61\x57\xbe\x30\xea\x1c\x30\x5d\x87\xde\x6c\x27\xfb\xe3\xa3\xfa\x50\x07\x12\x82\x75\xd6\xe6\x18\x3a\x65\xce\xc5\xb6\x94\xbc\x6c\x02\x73\x35\x06\x6e\x01\x27\x3f\xd6\x98\x1c\xc5\xf6\x0c\x3e\x33\x75\x13\x86\xce\x79\x2c\xcb\x6e\x6a\x6d\xb5\xd7\xf0\x73\x80\x03\x29\xf9\xcc\x46\xd1\x9f\x42\x29\x23\xb9\x74\x8d\xcc\xa4\x97\x1e\x43\xa9\xd1\xf5\x9d\x1c\x74\x97\x88\xa8\x52\x7a\xd5\x24\xdf\x74\x15\x0b\x39\xea\xfa\x7f\x4d\x56\x08\xd1\xc9\x72\x55\x65\x44\x56\xea\xdd\x4d\x38\x2a\xc5\x4f\xdd\x12\x53\x8b\x2f\x2e\xf7\x5a\x50\x98\x01\x71\xa0\x4d\x40\x54\xb4\xcd\x79\xc7\x1e\x1c\x4d\xeb\x3b\xc6\xaf\x4c\x87\x4f\x5c\xf0\x27\x38\x96\xd4\xfd\xc5\x84\x7f\xef\xdc\xc9\x7f\x54\x02\xc7\xe7\x64\x84\xd3\xd2\xd7\x0a\xc1\x6b\xda\x41\x99\x6c\xad\xcd\x83\xad\x92\xcb\x37\xc0\xc1\xe9\xd6\x4f\xa1\xab\xd9\xa2\xcf\x00\x5c\x2c\x29\xa1\x73\x7c\xdd\x6d\x63\xaa\x2f\xda\xa5\x60\x79\x9b\x9f\x07\xd4\x48\x76\x06\x78\x47\x76\x29\xf2\x2f", b"\x7b\xf3\xc0\xc5\x47\xe2\x18\x46\x21\x2b\xf4\xcf\x3e\x38\x36\x2d\xd4\xd3\x59\xb7\xaf\x64\x20\xf9\x0d\xa5\x79\x07", b"\x5e\xbd\x5d\x2d\x88\xca\xe4\x0b\x37\xa9\xa5\xa8\x4e\x62\x18\xd2\x45\x3a\xfa\x14\x6c\x79\xa5\xd5\xf5\xdf\x44\xf4", ); test::( b"\xba\xb4\xdb\x55\xbf\x6d\x3a\xbe\xfd\x1b\xb4\xe0\xf7\xbc\xec\x65\xee\x6c\x6d\x8e\xb0\x4b\x7c\x48\x0d\xf4\xe9\xe3\x91\x50\xf1\x0c\x38\xf1\xab\xb6\x3d\xfe\x1b\xb9\x75\x5c\x41\xb3\x89\x55\xba\x38\xba\x93\x8b\x6c\xee\xdf\xec\x02\x00\x1f\xa8\x70\x07\x0c\x59\xdf\x1f\xd2\xd7\x2a\x81\x41\x04\xc5\x14\x33\x76\xa3\x13\x6b\x81\x18\xf7\xb4\x7b\xd1\xff\xab\x53\x35\x9e\x53\xf9\x5c\x66\xee\x12\x70\x5e\x31\xa4\x62\xa8\xca\xae\x48\x15\x56\xce\xff\x60\x7c\xcc\x8b\xf1\x45\x07\x72\xcd\x68\x08\x1d\x3f\x15\xa7\x10\xe6\x56\xae\x56", p, q, g, b"\x53\xc0\xb0\xb0\x26\x9f\xcf\x29\x48\x66\x7e\x28\xb1\x1c\xcd\xa9\xcb\xb9\x27\x54\x63\xf2\x1e\xe3\x0d\xa3\x3c\x45\x75\xbe\x5e\x11\x1a\x18\x2a\x6f\x38\xb8\x90\xf2\x0b\x8f\x2d\x22\x4f\x59\x81\x89\x53\x10\xdb\x7c\x47\x03\xc1\xce\xc2\xb2\x57\xf4\x52\xd9\x64\xbe\x50\xc0\x14\xb7\x52\x36\x0e\xe2\x4f\x2f\xe1\xbc\xc0\x23\x47\x7a\x2d\x70\x85\xf5\x82\x14\xdf\x86\x6b\x13\xa8\xd8\xaf\x91\x31\x46\xdc\x0b\xee\x07\x8a\xea\x1c\xe6\x45\x99\x9b\x57\x94\x98\xea\xe9\x27\x7e\xd7\xe8\xb2\xc7\x5f\x49\x4e\xfa\xa7\x3a\x97\x3f\x32\x23\x2f\x08\xce\x7f\x0a\xfc\xba\x31\x66\x23\xb9\x41\x58\xde\x39\xbd\x4c\x0d\x51\x32\x34\xee\x1a\x48\x1d\x5b\x72\xf4\xee\xa3\x77\x49\xb4\x0f\xff\x12\xab\x62\x0f\x11\xaa\xa0\x1e\x35\x58\xe7\xa4\xc5\x50\x70\x7b\x71\xc1\x6c\xb8\xcd\xa9\x8f\x46\xbf\x71\x76\x9a\x47\x6c\x33\x85\xa8\xca\xf7\xc8\x86\xae\x47\xd2\x28\xb1\x77\x1a\x8b\xd4\xb7\xf1\x9e\x6f\x53\x04\x7f\x62\xf0\x29\xc3\x39\xfe\x75\x75\xbe\x93\x08\x0a\xc7\x48\x28\x91\x49\xa5\x7a\x0d\xdc\xed\x54\xd7\x2f\x6d\x4d\x34\x4f\xb8\x74\xcc\xc8\x5e\xa7\xf3\xdd\x21\x64\xdf", b"\x11\x8d\x22\x27\xbe\x4b\xd9\x1e\x98\xa2\xef\xde\x15\x60\x9b\x2b\x91\x24\xb2\xe8\x3c\x27\x4b\x63\x23\x00\x43\x2b", b"\x3a\x44\x74\x61\x94\x4b\x2a\x59\x27\x8a\x8e\x11\x18\xb4\x06\xbd\x3f\xf4\x16\x77\x5d\x65\x53\x0e\x54\xf9\xe6\x23", ); // [mod = L=2048, N=224, SHA-224] let p = b"\xaa\x81\x5c\x9d\xb1\xc4\xd3\xd2\x77\x3c\x7d\x0d\x4d\x1d\xa7\x5e\xcf\xc4\xa3\x9e\x97\xd5\xfa\x19\x1f\xfe\xc8\xb1\x49\x0a\x29\x0c\xe3\x35\xe5\xce\x87\xea\x62\x0a\x8a\x17\xde\x0b\xb6\x47\x14\xe2\xec\x84\x0b\xf0\x0e\x6e\xbd\xb4\xff\xb4\xe3\x24\xca\x07\xc3\xc8\x71\x73\x09\xaf\x14\x10\x36\x2a\x77\x2c\x9a\xdd\x83\x8b\x2b\x0c\xae\x1e\x90\xab\x44\x8a\xda\xbd\xac\xd2\xe5\xdf\x59\xc4\x18\x7a\x32\xa2\x37\x19\xd6\xc5\x7e\x94\x00\x88\x53\x83\xbf\x8f\x06\x6f\x23\xb9\x41\x92\x0d\x54\xc3\x5b\x4f\x7c\xc5\x04\x4f\x3b\x40\xf1\x70\x46\x95\x63\x07\xb7\x48\xe8\x40\x73\x28\x44\xd0\x0a\x9c\xe6\xec\x57\x14\x29\x3b\x62\x65\x14\x7f\x15\xc6\x7f\x4b\xe3\x8b\x08\x2b\x55\xfd\xea\xdb\x61\x24\x68\x9f\xb7\x6f\x9d\x25\xcc\x28\xb8\xea\xa9\x8b\x56\x2d\x5c\x10\x11\xe0\xdc\xf9\xb3\x99\x23\x24\x0d\x33\x2d\x89\xdc\x96\x03\xb7\xbd\xdd\x0c\x70\xb8\x3c\xaa\x29\x05\x63\x1b\x1c\x83\xca\xbb\xae\x6c\x0c\x0c\x2e\xfe\x8f\x58\x13\x1e\xd8\x35\x1b\xf9\x3e\x87\x5f\x6a\x73\xa9\x3c\xba\xd4\x70\x14\x1a\x26\x87\xfb\xac\xf2\xd7\x1c\x8d\xde\xe9\x71\xad\x66\x07\x29\xad"; let q = b"\xea\x34\x7e\x90\xbe\x7c\x28\x75\xd1\xfe\x1d\xb6\x22\xb4\x76\x38\x37\xc5\xe2\x7a\x60\x37\x31\x03\x48\xc1\xaa\x11"; let g = b"\x20\x42\x09\x4c\xcb\xc8\xb8\x72\x3f\xc9\x28\xc1\x2f\xda\x67\x1b\x83\x29\x5e\x99\xc7\x43\x57\x6f\x44\x50\x4b\xe1\x18\x63\x23\x31\x9b\x50\x02\xd2\x4f\x17\x3d\xf9\x09\xea\x24\x1d\x6e\xa5\x28\x99\x04\xee\x46\x36\x20\x4b\x2f\xbe\x94\xb0\x68\xfe\x09\x3f\x79\x62\x57\x95\x49\x55\x1d\x3a\xf2\x19\xad\x8e\xd1\x99\x39\xef\xf8\x6b\xce\xc8\x34\xde\x2f\x2f\x78\x59\x6e\x89\xe7\xcb\x52\xc5\x24\xe1\x77\x09\x8a\x56\xc2\x32\xeb\x1f\x56\x3a\xa8\x4b\xc6\xb0\x26\xde\xee\x6f\xf5\x1c\xb4\x41\xe0\x80\xf2\xda\xfa\xea\x1c\xed\x86\x42\x7d\x1c\x34\x6b\xe5\x5c\x66\x80\x3d\x4b\x76\xd1\x33\xcd\x44\x5b\x4c\x34\x82\xfa\x41\x50\x23\x46\x3c\x9b\xf3\x0f\x2f\x78\x42\x23\xe2\x60\x57\xd3\xaa\x0d\x7f\xbb\x66\x06\x30\xc5\x2e\x49\xd4\xa0\x32\x5c\x73\x89\xe0\x72\xaa\x34\x9f\x13\xc9\x66\xe1\x59\x75\x2f\xbb\x71\xe9\x33\x68\x90\xf9\x32\x43\xfa\x6e\x72\xd2\x99\x36\x5e\xe5\xb3\xfe\x26\x6e\xbf\x11\x10\x56\x8f\xee\x44\x25\xc8\x47\xb5\x02\x10\xbd\x48\x4b\x97\x43\x1a\x42\x85\x6a\xdc\xa3\xe7\xd1\xa9\xc9\xc6\x75\xc7\xe2\x66\x91\x83\x20\xdd\x5a\x78\xa4\x8c\x48\xa9"; test::( b"\xe9\x20\xfc\x16\x10\x71\x8f\x2b\x02\x13\xd3\x01\xc0\x09\x2a\x51\xf3\xc6\xb0\x10\x7b\xbb\xd8\x24\x3a\x96\x89\xc0\x44\xe2\xd1\x42\xf2\x02\xd9\xd1\x95\xa5\xfa\xef\x4b\xe5\xac\xad\xc9\xff\x6f\x7d\x22\x61\xe5\x8b\x51\x71\x39\xbc\xb9\x48\x9b\x11\x04\x23\xc2\xe5\x9e\xb1\x81\x29\x4f\xfd\xae\x8a\xad\x0e\x62\x4f\xab\x97\x4c\x97\xf9\xf5\xe7\xdc\x19\xd6\x78\xa9\xcb\x34\x29\xcf\x05\xec\x50\x90\x72\x85\x6f\x5a\xdf\xec\x6e\x29\xba\xfe\x8e\x5b\xa9\x55\x93\xe6\x12\x84\x3e\x34\x31\x11\xd8\x8a\x1e\xaf\xf7\xdc\x0a\x2e\x27\x7f", p, q, g, b"\x1a\xe1\x0c\x78\x6a\xd0\x90\x2c\x5c\x68\x5d\xae\x5c\x71\x21\x41\x8a\x37\x7b\x88\x8b\x5f\x2f\x2b\xc7\x66\x23\x57\x0f\xd6\x2b\xcb\x19\x0b\x47\x1a\xd5\x35\x9c\x5f\x06\x2f\x88\x19\x28\x9e\x95\x6d\x8a\xa6\xf9\x0d\x1f\x8c\xf1\xee\x72\xd3\xa1\xbd\xfd\x56\xc4\x78\xdc\x29\xa1\x9c\x45\x69\xb5\xa6\x0e\x3a\x8f\x34\xf6\x06\x56\xea\xc5\xb2\x5d\xde\x55\x14\xa5\xc6\x7b\x67\x54\x23\x20\x4f\x6c\xca\xf0\x99\x06\x17\xcc\x73\x55\xb9\xd3\xed\x86\x89\x78\xa2\x52\x02\x0a\x76\x9e\xd5\x9a\x6e\xda\xa6\xef\xe3\x37\x7e\xef\x45\xf3\xf6\xf3\xe6\x41\x79\xcc\x7d\xb8\xb1\x43\xfb\x83\x5c\x5d\x71\xbf\xcf\xa1\xe2\xa9\x04\x9b\xcc\xf7\xfe\x9a\xb5\x75\x46\x22\x0f\xe3\xf4\xb7\x52\x1c\x86\x17\x39\xd1\x38\x50\x7e\x81\xa4\x6a\x69\x93\x60\x54\x41\xdc\xb9\x0d\x6e\xe4\xaf\xbc\x42\xca\xbe\x90\xa2\x54\x44\x49\x68\x10\x9d\x7e\xdd\x96\x94\xa0\x23\x23\x9f\x1d\x56\x17\x5d\xd1\xfa\xc1\x15\x91\x5e\x24\xfa\xb5\x63\xf4\xfc\x3f\x26\x9b\xed\x2f\x30\x08\x32\xd1\x12\x59\x64\x85\xa7\x11\x41\x7a\xa7\x3b\xb4\xac\x72\xa6\x51\xa1\xfa\x5b\xae\xd3\x63\x6c\x72\x0d\x39\x70\x08", b"\x65\x10\x2e\x8f\x64\xec\xb1\x1f\x06\x01\x7b\x1a\x0c\x0d\xef\x3c\x29\x89\x7c\x27\x7c\x4a\x94\x8b\x1f\x4d\xa6\xb9", b"\x21\xad\x0a\xbb\x27\xbd\x3c\x21\x16\x6c\xb9\x6a\xef\x70\xc0\xdb\xd5\xf3\x07\x9c\xab\x0d\xd5\x43\xd4\x12\x5b\xd1", ); test::( b"\xda\x5e\x7b\x05\x1c\x18\x59\xd2\x2f\x2a\x31\x63\x33\x5d\x27\x79\x51\x97\x3c\x17\x2e\x06\x69\x7c\x04\x90\xff\x15\xb5\x92\xc1\xeb\xd0\xfa\x5e\xfa\x24\x63\x11\x98\x04\xa3\xfe\xa2\x24\xb9\x6b\x46\x3e\x30\x08\x3e\x00\x29\x49\xa2\x4e\x92\x20\x31\x76\x4b\xb3\xda\xff\x81\x01\xfa\x08\x8a\xf5\x45\x7a\xf3\x66\x54\xc6\x68\xf2\x34\xa0\x0c\xd8\x28\xcc\x74\x0a\x89\x8c\x0c\xd3\xdf\x09\x31\x5d\xa9\xb3\x46\xb3\x25\xb2\xfb\xec\x47\x52\x10\xb7\x54\x82\xaf\xfa\x61\xa3\xef\xf5\x0c\x83\xc3\xa0\x39\xfa\xe5\xcf\xa8\xd9\x71\xfd\xdd", p, q, g, b"\x5e\x27\x69\x87\xb8\x47\xb8\x52\xcc\x37\x2e\x98\x6e\x8a\xba\x06\x33\xdd\x46\xc4\x61\xba\xb5\x8a\xca\xe0\x56\xd4\xd1\xa9\xdf\x03\xa1\x9d\xf1\x14\xf6\x48\xb2\x8e\x03\x85\x06\xfd\x09\xad\x0d\x95\x44\x9d\x9d\x80\x58\xaa\x1b\x24\x1b\x2a\xcd\x3b\xad\xbf\x98\x82\x69\x73\x31\xde\x45\xb4\x52\x34\x5c\x05\x1c\x2c\xd8\x30\xf7\xcd\xd7\x48\x6b\x11\x66\xb9\x38\x91\xa7\x2a\x8b\x7d\xc6\x22\x8b\xad\x70\x87\x20\xef\x33\x23\x58\x01\xc4\xd4\xc3\xc4\xf2\x80\x36\xdf\x60\x29\xa1\x95\xd0\x01\x91\x24\xd1\x6f\xe8\xf7\x6c\x52\x5b\x7e\x8f\x04\xbf\x4b\x8d\x8b\xa6\xef\x60\x8e\x62\x32\x24\xfa\x8d\x98\x84\x20\xf4\x05\x26\xc2\x5a\xe3\xe4\xc7\x9d\x5a\xe7\xfe\xe6\x97\x93\xe0\x2b\xad\x96\x51\xea\x0f\xef\xd3\xea\xdc\x5f\xf1\xca\x2d\x14\x29\x30\x35\x5b\x1f\x3a\xea\x10\x22\x21\xfa\x17\xb7\x35\xa1\x8a\xf3\xb8\x33\x27\xc8\xf3\x3e\xfb\x9a\x49\xb7\x02\x11\x01\x4e\xba\x43\xfa\x65\xee\xaf\x25\xeb\xf4\x52\xbc\x4b\x7d\xc1\xf4\x07\xd0\xcf\x1b\x83\x46\x19\xb5\xf7\x3c\x6c\xab\x70\x51\xc9\x20\x70\xaa\x06\xf7\xf9\x40\x6c\x50\x7d\x1a\x15\xd1\x2c\x11\xbc\x83\x9a", b"\x31\x36\x15\x83\x6f\x0d\x33\x8d\x81\xb6\x70\xf1\x16\xa5\x41\x4d\x2c\xe9\x0e\xa5\xca\x53\x08\xba\x4f\x0c\x8a\x7d", b"\xdc\x1d\x4c\x3c\x06\x20\x3f\xd5\x98\xa4\x76\xc8\x91\xdf\xe5\x93\x41\x62\xd0\xd3\x5f\x37\xf1\xc0\x9d\xd6\x39\x5d", ); test::( b"\xf4\x98\x95\xb3\x29\x0d\x9a\xae\xb4\xaf\x61\x1c\x5e\x30\xaf\xc0\x04\x7d\xd4\x2c\x07\x21\x62\x11\xd5\x49\x77\xd1\x49\x7f\xa4\xee\x6a\xbe\x11\x00\x0d\x6a\xc0\x4d\x24\xb4\xc5\x0f\x31\xe0\x6e\xe8\xa7\x47\x74\xd3\xd3\x04\x13\x7c\xc6\xb1\x14\xd1\x45\x25\x0e\xe7\xe9\x4a\x12\xa1\xab\x59\x2a\xe3\x07\xef\x5d\x93\x0c\xf3\x91\x70\xe9\x75\x6a\xdc\x5e\x7b\xa6\x2a\x54\xab\xb6\xf0\x47\xb4\x50\x0b\x61\x21\xe1\xf4\xa9\x5d\x3c\x6a\x96\xf7\xf8\x33\x3c\xbb\x1e\xbe\xed\x8b\x4d\xb1\xa7\xfe\x75\xf4\x07\x1c\xeb\xfb\xbd\xfd\xab\x90", p, q, g, b"\x6d\x62\x25\x25\xec\xf5\x4d\xbe\xca\xa8\x11\x93\x9e\xe0\x7e\xf2\x97\x5d\x9d\xa9\xf7\xa3\xc5\x8b\xbb\x89\x3c\xe3\x88\x06\x77\x40\x4f\x2c\x6e\x59\x63\xb8\xc0\xb4\x49\x26\x01\xf1\x5b\xc6\xfd\xfd\x74\x7a\x00\xab\x83\x34\xe9\x05\x32\x01\xe1\xc9\xfb\xa5\x5f\xbf\xde\x36\xec\x54\x23\x75\x01\xb8\x74\x16\x99\x27\x71\xcb\x5a\xb8\x78\x1d\x0a\x96\x7b\x7f\x14\xf3\xd5\xde\x6b\x16\x65\xf6\x62\x88\x58\x78\xe5\x0a\xd3\x78\x27\xb9\x5c\x8f\x0e\x21\xd6\xbb\xeb\xc9\xdf\xd4\x7b\x29\x57\xd2\xfc\xdd\x1a\x2b\x25\xa6\x16\xe6\x98\x12\x9b\x45\x99\x8b\x6b\x6a\xa2\xa9\x9c\x1e\xbf\x42\x75\x49\x3e\x28\xee\xf1\xae\x34\xe9\xca\x63\xcd\x88\x86\xda\x58\x57\x29\x07\xaa\x9b\x71\x4e\x89\xbd\x36\x44\xa7\xea\x02\x9f\xa3\xa4\xae\x9c\x26\xe6\x65\xc8\x52\x96\x20\x4f\xdf\x86\xb7\xb1\xdd\x78\x66\xbc\x8e\x93\x85\xe9\x51\x8a\x27\x02\x48\x29\x25\x94\xc5\x4a\x4a\x03\xdc\x14\x92\x66\x4d\xda\xe5\x32\x77\xc6\xfb\xb9\xdd\x0c\xdd\x99\xbf\x11\xea\xf6\xae\x31\x92\x3e\x4f\x97\x9a\x7f\x58\x17\x99\xdc\x43\x2b\x19\x40\xf6\x13\xa7\xa7\xea\x68\x55\x23\x7f\x77\x6e\x91\xd4", b"\x79\xd5\x44\xcd\xec\xfd\x1e\xc1\xb7\xd1\xba\x63\x22\xa5\xe0\xeb\x85\x8a\xeb\x4b\x76\xd5\xb3\x20\x2c\xea\x23\x3a", b"\x0e\xa5\x3d\xea\x4c\xcb\x25\x97\x8a\x0a\xf5\x52\x95\x98\x91\x1b\x47\xc2\x5e\x0b\xa3\xb2\xa0\x50\x5f\xd1\xd7\xfc", ); test::( b"\x31\xd7\x39\x56\x69\x14\x54\x9e\xb2\x57\x26\xbf\x6d\x4b\x6c\x67\x4f\x47\x9b\xa7\xa4\x06\xac\xd1\x08\xa1\x06\xf3\x6c\x7f\x52\x14\x97\x6d\xcf\x3a\xdf\x2c\x83\xfd\x26\xb3\x7d\x52\xc0\xb5\xff\x51\xe6\xb3\x81\x1a\x8d\xcb\x02\x6a\x1f\xbb\x52\xf9\x50\x27\xea\x60\x34\xd9\x11\x49\xb3\x0a\xb4\x92\x8e\xde\x26\xdd\xd6\x92\xdd\xb8\xdd\xd9\x29\xfb\xff\x83\xfc\x67\x37\x88\xfa\xa0\xba\x5d\x96\x7f\xd1\x33\x92\x99\xe5\x5b\xe5\x1c\xea\x80\x60\x9d\x2b\x3c\x34\x33\xcf\x71\x3a\x96\x86\xe2\x29\x33\x6c\xfa\x7e\x72\x0f\xd5\x30\x3d", p, q, g, b"\x38\x6c\xbb\x8f\x7e\x72\x87\x51\xd4\xf6\xa7\x5f\x89\x05\x02\x98\x9b\x51\x22\x8d\x30\x39\xdd\x1a\xf7\xf2\xdd\x01\x86\xbf\x97\xa9\xff\x76\x3b\x40\x32\x3b\x30\xab\x0d\xc8\x1b\xf0\x9e\xf4\x8d\xb7\x2c\x0c\xfb\xe7\x72\xb3\xd3\x14\x92\x7e\xd1\x9b\xad\xee\x7b\x88\xb4\x9e\xe2\x94\x92\x37\x14\xad\xae\x30\xc9\x55\xd3\x7b\x99\xc1\xda\xdc\x4a\x29\xf0\xf8\xc2\xb9\xd1\x03\x8d\x17\x05\x9c\x58\x6a\x21\x2a\x97\x48\x72\x0f\xde\xc9\x5b\x42\x89\x71\xdf\x19\x23\xf0\x8a\x01\xd3\x58\x93\xd1\x2e\xd1\x7e\x0b\x14\x2e\xd8\xe9\xef\x77\xd4\x40\xa0\x1d\x77\x90\x5b\x92\xc5\x1d\xac\xe1\xb3\x45\xcd\x19\xf9\x16\x23\xa6\x96\x42\x88\xdd\xee\x6e\x99\x08\x19\x7f\x91\xda\x9a\x26\xf8\x06\xbb\x14\xe2\x37\x17\x42\xf8\x49\xcd\xc6\xce\x7a\x04\x5a\x70\x4a\x79\x2e\x57\x60\xd6\x64\x4e\xad\xb7\xcf\xfa\xba\x80\x6b\x05\x45\xfa\xe3\xb9\xfa\xda\xe4\xe3\x6b\xdf\x3b\x69\xc6\xdb\xbf\x0d\x8b\x05\x3d\xa3\x8b\x90\x4e\x9c\x4b\x94\x93\x25\xb2\xa0\x05\xb2\x49\x27\x6a\xc3\x69\x27\xb3\x17\x93\xf8\x01\x15\xb5\xe2\xf2\x10\x7f\x98\x77\x10\x38\x07\x08\xe2\xc3\x22\x89\x4f\xa8", b"\xc8\xb8\xa9\x2e\x8c\x10\x15\x05\xa1\x99\x1b\xcb\x02\xfb\x6e\x38\x2a\x3e\xcb\xae\xc8\xf4\x37\x45\x01\xb6\x57\xbe", b"\x20\xd1\x61\xce\xfd\x58\x49\x79\x22\x43\x79\xf2\x8d\x82\x7a\xa2\x19\xc5\x72\xf9\x60\x01\x47\xf4\x04\x8b\xa7\xcf", ); test::( b"\xd0\xa8\xa1\xca\x0f\xf2\xb4\x4b\x37\xff\x86\x00\x07\x33\x4b\x23\xbe\x49\x34\xff\x89\x05\x1d\x78\x7c\xe6\x9d\x3d\x7f\xa7\x34\xb9\x77\x9e\x2f\x0b\x38\xc2\x35\x39\x1a\x89\x7f\xb8\x51\x4b\x85\x7b\x99\x1d\x10\xe3\x4a\x00\xdc\x25\xb0\xc4\x38\x2d\xfb\x6d\x53\xaa\x87\xec\x17\x84\xf1\xca\xe2\x59\x92\x59\x40\x6d\x47\x56\x53\x98\x67\x67\x9d\x30\x88\x91\x3a\x13\x88\x71\xe2\xa4\x34\x74\x72\x22\xfc\xfa\xb0\x79\xd9\xe6\x55\xba\x25\x44\x63\xcb\x0c\x57\x86\xb9\x85\x8d\xc4\x29\xff\xda\xdf\x4c\x3b\x6a\x25\x3f\x90\xee\xba\x24", p, q, g, b"\x72\x47\xd4\xe1\x25\x3f\x0b\x52\xa1\x38\x8b\x79\x48\x15\xdb\x61\xc1\xa3\x54\xcb\x0f\x73\xfd\x19\xfe\xde\x61\x5c\x1c\x30\x25\x84\x0f\xff\x20\x4b\x0c\x6e\x61\x0e\xbe\xf1\x11\x3d\xf5\x6f\x67\x40\x6b\xad\xeb\x99\x44\x58\x91\xdc\xaf\xe1\x8d\x28\xf5\x97\x12\x60\x64\xdd\xf7\xaa\xf2\x03\xb2\xfb\x0d\x35\xd2\xf4\x58\xbb\x74\x34\x1a\xd9\x37\x21\x1e\xdc\x39\x4e\xc1\xa3\xf7\x90\x9a\x3f\x97\x2d\xb2\x7a\xa1\x35\xd3\x1b\xbd\x7e\x36\xc2\xbb\xc3\x60\x58\x5e\x7b\xb6\xe8\x32\x76\x40\x6b\x95\x25\xf6\x88\xee\x59\x95\xe7\xaa\x8e\xf7\xa7\x2c\x27\xe9\x90\xd6\x40\x16\xb9\x9a\x0a\xe4\xd0\x4b\x2f\x1b\x7d\x23\x8a\xf8\x8a\xc4\xc2\xe4\xe0\xf3\x29\x4c\xfe\xe9\xbe\x24\x57\xe4\x89\x55\x94\x8c\xf4\xbb\x3a\x44\x5a\x1d\x77\x8c\xed\xfa\x4b\x86\xf5\x9f\x15\x61\x18\x03\x4b\x2b\x83\x4a\x9a\xa1\x21\xe9\xd4\x82\xd6\x92\x22\x92\x82\x3b\xe2\x99\x1b\x3b\x5b\x42\xc2\x39\x25\xda\x29\x4d\x5e\xa3\x74\x06\xea\xf7\x8b\x7d\xc7\x25\x19\xd8\xf2\x61\x48\x2d\x6a\xff\xf0\xe5\x67\xbf\x6e\x67\x3d\xd8\x99\x60\xce\x73\x4f\x09\x2d\x98\x95\x63\x52\x42\x9a\x91\x84\x56\x94", b"\x9d\xab\xff\x22\xa4\x30\x12\xdb\xf4\x7d\x56\xb9\xae\x5a\x09\xf4\xd7\x39\xdd\x69\xfe\x90\x77\x25\xaf\xcd\x84\xf4", b"\xb6\x0c\x44\x72\x8e\x4b\x13\x90\xf3\x02\x38\xfb\xa1\xdc\x10\x03\xfd\xd3\x95\x07\xff\x5d\x6b\xa7\xe6\x09\xf2\xae", ); test::( b"\xe4\xff\xe7\x2c\x77\xc3\xa4\x3a\xf8\xa6\x1f\x58\xf9\x24\x0e\x1a\x07\xb5\xc2\x89\x4d\x5b\xdb\x65\x4b\x2b\x99\x4d\xc0\xc9\x87\xba\xd9\xb7\x04\x07\x5d\x3d\x0a\x96\x9c\xec\xfc\x98\xb1\xdc\x20\xe7\x6c\xd8\xe0\x12\x28\x58\x19\x46\x22\x26\xa8\x4d\xcd\xd6\x78\x95\xf6\xea\x27\x82\x66\xf1\x57\x5e\xa7\x85\xa2\xc3\x59\xf8\xf4\x59\x3b\xef\x31\xa5\x80\x91\xb6\x4a\xfb\x84\xcd\xfd\x23\xe4\xaa\xff\x29\xd9\x62\x6f\x0c\x82\x3d\x93\x42\x83\xa4\xfa\xaf\xc9\xc6\xcc\x18\x62\x23\x28\xca\xd9\x6f\x77\xd7\x9b\x9b\xa3\x5a\x43\xd8\x25", p, q, g, b"\x71\x46\x00\x9d\x12\xb0\x3b\x2f\x32\x30\x5f\x49\x5f\xaf\xcc\x4d\x45\x2e\xfb\x85\xcc\x80\xd6\x71\xff\x42\x49\x49\x2c\x66\x99\xfb\x26\xa8\x9c\xa4\xb2\x24\xd5\x6f\x6b\x8e\x74\x5d\xf9\xfb\xc7\x35\x2c\xa5\x83\x22\x2f\x4d\xea\xb1\x18\xf9\xfe\xc0\xb3\x4e\x33\x40\x60\xbd\xc2\x8d\xb8\x72\xe0\x09\x06\x49\x14\x94\x99\xe7\xa1\xc1\x97\x87\x8d\x3c\x72\x62\x43\x93\x03\xb9\x02\x01\xd0\xb7\xf5\xbe\x94\xd0\xa7\xc4\xeb\x15\x18\x29\x35\x29\x6c\x3e\x3f\xa2\xd7\x7d\x74\xd7\x8f\x41\xca\xda\xa4\x0e\xaf\xd4\x0d\x01\x78\x88\xca\xa0\x2a\x47\x48\x68\xe4\x0f\x49\x6b\x7b\xc1\xce\x36\x7f\x50\x34\x35\xe0\xd9\xa6\x37\x5a\xab\x03\xc2\x31\xd9\xcd\xaa\x15\xde\x23\xc4\x8a\xc0\x87\x8e\xf6\x49\xeb\x14\x4c\xe6\xbe\x4d\x2d\xe1\x1d\xa2\x02\xfa\xe8\x20\x90\x67\x3c\x83\xb3\x28\x40\xa3\x2d\xf6\x17\x6e\x1d\x55\x02\x7d\x7a\x1c\x1c\x56\xe6\x42\xf5\x1a\xae\xcc\xb3\xc9\x90\x89\x80\x61\xbf\xa1\x6b\x3d\xc1\x46\x10\x73\xc3\x33\x33\x7f\xd7\x6a\x31\x03\xf3\xfd\xe8\x21\xbc\x99\x4e\xbe\xdd\x6f\xfd\x79\x74\xd0\xca\x1b\x54\x96\x1d\x7d\xf5\xb9\xee\xbb\xfa\x26\xc3\xd6", b"\x4a\x2a\xbc\x68\x9d\x2a\x63\xe8\xb2\x32\x14\xa3\x21\x2a\x5d\x20\xa7\x38\x68\x82\xd5\xe1\x1c\x5d\x5d\xaa\x66\xbc", b"\x08\xe0\xc6\x54\x70\x87\xb5\x8b\xc9\x4f\xae\x24\x7e\x96\x2d\xa1\xa2\x89\x78\x88\xd1\xbc\x9c\x8c\xbf\x3a\xd6\xaf", ); test::( b"\xf8\xfe\xc1\x92\x88\xf3\xa8\xbd\x1d\x0d\x57\x3b\xbb\xc1\x80\x10\x60\x65\x69\x74\x81\xbe\xd9\x12\xf8\x75\x27\x50\xd3\x31\xe3\xa0\x97\x77\x5a\x12\x27\x6b\xc4\x29\x3a\x78\xa8\x07\x48\xb2\xb2\xc3\x7d\x20\xb8\x00\x33\x5c\x1d\x1b\x43\x0a\x71\xbb\xdf\xd8\xf7\xaf\xee\xec\x82\xce\xff\x2f\xd3\x3f\x26\x24\xe4\x9d\x37\x45\x7f\x26\x2c\xf5\xde\xde\xf9\x02\x5c\xe9\x6e\x0b\x7d\x49\x9f\xcc\x7a\x7f\xf0\x6c\x02\x59\x0e\xa8\x21\xdd\x8e\xd0\x60\xca\xbc\xf4\xfe\xec\x95\x92\xac\xed\xdf\xd3\x2b\x4c\x09\xe4\xd4\x49\x38\x43\x5b\x82", p, q, g, b"\x7e\x50\x01\x1d\x42\x29\x86\xea\xe0\x1a\xe6\x89\x43\xdc\xa0\xc8\x7a\xf4\x4f\x7b\x87\x9b\xd1\x25\x6d\x4c\xaf\xfa\x0e\xb1\x92\x50\x29\xc0\x63\x3a\x7a\xc6\x74\x87\xa7\xb6\xf9\x8a\xd7\x7e\xe7\xe1\x44\x2d\x12\x9d\x06\xdb\x47\x5a\x4f\x78\x04\xfd\x8c\x6a\x03\x81\x51\x91\x1f\x81\x39\x7e\x96\x35\x94\xb9\xc9\x1e\x3b\xfe\x94\x32\x8f\x05\x6e\x9b\xdb\xb9\xb1\x1f\x54\x93\x9d\x7e\x23\x7a\xaf\xb0\xc9\x50\xe0\x58\x1c\xab\xfe\x94\xbc\x26\xf0\xe0\xd5\x56\x09\x97\xbf\xb0\xf6\x35\x7b\xbf\x2c\xad\xb0\x10\x8e\xc0\x09\x56\x46\xe4\xca\xa2\x2f\x71\xe1\xf1\x7a\x9f\x34\xe8\xa8\xc4\xb7\x1c\xf0\xb1\x26\x5e\x00\x15\x54\xfa\x91\xf1\x8a\x17\x56\x2b\xc0\x94\x8c\x43\x1f\x25\x94\x59\x62\xba\x7f\xaf\x7d\xcb\x64\xff\x0b\x8b\xdd\xe7\x01\xe1\xdf\x62\x0a\x11\xaa\xd0\x71\x96\xd6\x7a\x95\x6e\xbe\x49\x8a\xe6\xf8\x23\x24\xf7\x5c\xaf\xbe\x80\xed\xaa\xbe\xf0\x03\x7b\x79\xc3\xed\x65\x8d\x9b\xa1\xb5\x42\x2c\x4a\xc0\x53\xba\x69\xbb\xaf\x7f\xa9\xdb\x99\x0e\x8b\x5e\x7f\x9a\xf5\x7a\x79\xf3\xe3\x1c\x07\x61\x1f\x50\x2b\x30\x15\x96\x2b\x02\xb6\xb4\x25\x70\x6e\x0a", b"\x2f\x38\xc5\xcf\x86\xaa\x0e\x53\xd1\xfe\xa0\xe6\x5d\xd0\x38\x13\x64\x04\x04\xb8\xd9\xa8\xcd\x6d\x26\x4d\x92\x85", b"\x47\x60\x38\x80\xf3\xd6\x7b\xa1\xa6\xea\xbc\x20\x13\x7d\xc4\x88\x2e\x41\x73\x04\xcb\x95\xd6\x22\x17\x7d\xf5\x11", ); test::( b"\x75\x59\x46\x5a\xf5\xca\x04\xc1\xe7\x4d\xeb\x9f\x8e\x46\xb0\xef\x17\xde\x4d\x7a\x2a\xe0\xfa\xf4\xe9\x03\xa2\x99\x8b\xca\xa0\x9b\x7f\x17\x30\x39\x33\x20\xeb\xc5\x7d\x05\x2d\x2e\x98\xf5\x48\x6e\x8e\x92\xbd\x1e\xe6\xbb\x0f\xfd\x02\xd6\x9e\x5d\x45\x91\xe2\xfa\x12\xe4\xeb\xff\x8b\x6b\x9d\x32\x70\xfc\x75\x27\x4f\x8f\x82\xe1\xc6\x0e\xdb\x2a\x21\xf8\xd5\x53\x1a\x23\x80\xcb\xeb\xb2\x4f\x64\x57\x17\x6e\x54\x76\x9a\x13\x66\x01\xa9\xb8\x1d\xa6\x8f\xf1\x96\xff\x8c\xc7\x8c\xf0\x59\xc0\x4a\xe2\x24\x59\xce\xc7\xda\x89\xb6", p, q, g, b"\x5b\xcd\x42\xe5\x86\xca\x18\x0f\x74\x33\x95\xfc\x39\xe2\xbd\x39\x38\x20\xf5\xb4\xc4\x9c\x7c\xb7\x69\x21\xec\x38\xbb\x53\xe8\x64\xfb\xe8\x09\xa0\x33\x77\x5f\x16\xc7\xf5\xc6\x48\x72\xfe\xdd\xe6\xab\xc5\x60\x48\x8e\x57\x29\x55\xed\xd3\xf9\x56\x90\x92\x07\x1e\x56\xdf\x21\x15\x64\xf3\x31\x85\xdb\xff\x18\x0e\x7a\xb2\x29\x77\x00\xc6\x4d\xb6\xe2\x20\x70\x1c\xb8\xa2\x1e\xad\x2e\xa8\x09\xf0\x6a\x16\x55\x43\x19\xb2\x73\x9d\xe2\xac\xa8\x05\x7a\x62\xd4\xca\xa7\x95\x7a\x2b\x9f\x03\x9b\x3c\x7d\x4f\xb0\x76\x1a\x73\x30\x2a\x6f\xbb\x58\x31\x00\xb2\x39\xd7\x27\x15\x8b\x4c\xdc\x97\x65\xfe\x04\x85\xaf\xb6\xa1\xb0\xac\x0d\xb5\x04\xa9\x47\xf3\xd8\x7f\xaa\x55\x42\xc6\xee\xf7\xa6\x81\xc5\xfc\xd2\x8f\x46\x36\x36\x0f\x55\x93\xbf\xf7\xe4\x33\xb6\xa3\x38\xd7\x7e\x3d\x63\xf6\xce\xff\x69\x53\x6e\x2a\x3f\xf7\x7a\xce\x74\x5b\x65\xa5\x16\x0d\x7f\xbf\x91\x05\xa9\x0f\x46\xce\x1c\x54\xfa\x35\x3c\x8a\xee\xbe\x16\xfb\x23\x8c\x8e\xd9\x98\x61\x7b\x63\x28\x75\x11\x20\x8d\x9d\xb3\xf6\x6d\x50\x33\x74\xbb\xda\x48\xa5\x52\xd0\x4b\x2c\x30\x4a\x15\xba\xc0", b"\xc5\xd3\x3f\x5a\x4f\xe2\x28\x0a\x9b\x96\xd7\xa9\xb5\x53\x0d\xc1\x7c\xd1\x05\x4b\xf1\xe8\xcf\x6f\x4a\xa3\xe2\xac", b"\xc9\xbf\x1c\x06\x2b\xd1\xe8\x6f\x3b\xd3\xc1\xff\x58\x2c\x33\x27\x05\x37\xfa\x77\x69\xb9\x59\x2a\xef\x12\xe1\x04", ); test::( b"\x16\x74\x82\x38\x96\xc5\xa7\x64\xc6\x1f\xd1\x9b\x12\x5a\x7d\x6c\xd5\x8c\x88\x3d\x86\x79\x43\x91\x47\x73\x49\xf0\x36\x16\xd7\x5b\x69\x25\xe9\xdc\xc5\x53\xde\xa3\x70\x47\xf0\xcd\x15\x31\x68\xeb\x26\xe5\xad\x4b\x8f\xe7\xcc\x65\xe4\xfa\x27\x55\x14\xc8\x42\xaf\x63\x50\x7f\x90\x1f\xd1\x10\xb9\x82\x49\x13\x3d\x3d\x12\x66\xd2\xf9\x67\xc8\x5b\x7f\x88\xdd\x76\xc7\xf7\x6b\x78\x6b\x55\x72\xdc\xae\x68\xcc\x64\x6e\x45\x8b\x82\x78\xdb\x34\x6b\x2e\x97\x0c\x78\x70\xcf\xfd\x84\x57\xfb\xec\x06\xbb\xb5\x14\x15\x75\xf4\x0f\xde", p, q, g, b"\x5c\x34\x13\x5c\x90\xf9\x7e\xbc\x9b\xf1\xed\x98\x6e\xba\x56\x3e\x32\xce\x8c\x25\xae\x71\x41\xdf\xef\xca\x86\x00\xad\x2f\x3c\xbe\x8e\x45\xb4\xa0\x10\xae\x49\x97\x82\x0a\x38\xb4\x88\x81\x87\xbf\x20\x7b\xde\x43\x8a\x1e\xc7\xbe\xff\xf8\x1a\x64\x26\x5a\x4c\xe9\x90\x0b\x37\xa3\x8e\x4f\xc2\x36\x13\x88\x7b\x63\x8a\x11\x3e\xf4\x16\x65\xad\x2b\x1f\x15\x76\x4c\xb5\x36\x07\xd0\xee\xc3\x03\xac\x48\xc0\x55\xf5\xaa\xda\xbc\xfb\xe2\xc5\xfa\xa8\x5e\x02\x9c\x43\xe1\x60\x7a\x3a\x29\xf6\x58\x02\x95\x9b\x68\x6b\x46\x8e\x81\x07\xc4\x66\xa7\x31\x7b\x50\x63\xe0\x38\x02\x19\x75\xb2\xf0\x17\xf1\xf3\xba\xd0\x7c\xd0\xeb\xb4\x87\x96\x41\x51\xe4\xf8\x2b\xb5\x27\x7c\x35\xa2\x18\xec\x57\x0c\xb5\x68\xad\x04\x04\xa3\x71\x3a\xb7\xfc\xc1\x29\x7b\x1e\xa9\x74\x3f\x85\xac\x5d\x5a\x7e\xc8\x18\xe5\xf9\x0a\x4a\x58\xf2\xc2\x19\x2b\xba\x6d\xff\xec\xbc\xd3\x9f\x24\x5c\xc9\x32\x95\x31\x90\xee\x35\x3a\x0c\xa9\x9d\xc6\x1e\xac\x4b\x4f\x83\x46\x18\x14\x0c\x9a\x32\xec\xa3\x1d\x71\x8c\x95\xee\x03\xb2\x99\x2c\x63\xa6\x83\xb0\x62\x88\x83\xa5\xc2\x22\xfd\xde\xf0", b"\xb1\xa9\x46\xfa\x42\xa3\x6d\x83\x6d\xaa\xb5\x6f\xe0\x15\xc9\xf2\x9c\x45\x44\xa4\xa4\x7d\x48\x2e\xa2\xd9\xcc\x5b", b"\xe2\x90\x5e\xe7\x0a\x5d\xc0\x99\xb7\xe0\xba\xec\x55\x66\xb2\x29\xe9\xca\x8e\x7e\x00\x84\x09\x66\xcf\x56\xc4\xd5", ); test::( b"\x28\x1f\xd1\x4a\xe2\xe7\x02\xdb\xd2\x5f\x77\xd8\xba\x8a\xf0\x9f\xdd\x77\xb1\x83\x96\x48\xab\x9c\x88\x0b\xd1\x19\xd4\x47\x53\x78\xfc\xd0\xd1\x24\x15\xab\xb9\xf2\x6b\xfb\x8e\x26\xf1\x08\xb1\x29\x88\x59\x23\x5e\xd1\x2e\x7f\x9e\x91\x56\x28\xe3\xca\x36\xc5\x98\x6d\x18\x81\x1a\x59\x05\xae\xf7\x87\x8c\x63\x00\xa9\x5e\xa8\x71\x82\x01\x6e\xc5\x95\xd3\x2e\x4d\xfc\x27\x4a\xdb\x47\xc3\xed\x0f\x6c\x38\xec\x89\x3b\x33\x1f\x70\x92\xf1\x9b\x72\x4b\x9f\xe4\x3f\x0e\xf8\xde\xc1\x4f\xb7\xbf\x8b\x90\x41\xb5\x39\x0b\xeb\x44\x08", p, q, g, b"\x48\xed\x8f\xa8\x9d\x07\xde\xb5\xf8\xee\x6d\x38\x74\x8a\x4e\x66\x00\x20\x20\xf7\x9f\xf2\x2d\x66\xfa\x53\xad\x91\x3d\x59\x68\x60\xd4\xdb\xcb\x7c\x3a\x66\x33\xcd\x42\x24\xa8\x0e\x5e\x95\x90\x8f\x87\xb1\x8a\xcc\x2e\x36\x4c\x14\xb5\x1d\xe6\xbd\xda\x7a\xd8\x96\x1d\xfd\xa4\x54\xef\x47\x98\xd0\xf7\xa3\x0e\xf1\x0e\xae\x87\xde\x40\x86\x77\x64\xb8\x4b\xc5\x5d\x7c\x02\x83\xf9\xc7\xcd\x2b\xe0\x8e\x18\x52\x48\x75\x12\xff\x43\xa8\xd1\xe6\x8a\x95\x11\x97\xc7\x71\xf9\xe6\xc2\xff\xdf\x2c\x00\xed\x21\x63\xf8\x6d\xff\x52\x41\xf9\xe2\xff\x1c\xdb\x05\xa0\xb3\xe6\x47\xe6\xfd\x23\xcc\xad\xa8\x3b\x9c\x59\x61\xe6\xe2\xfe\xf3\x29\x74\x93\xdd\xb0\xe9\x90\x29\x5d\x38\x40\x5a\x24\x44\x8e\x24\x96\x27\xc0\xa7\x99\x8c\xc4\x07\x2d\xd2\x91\x39\xc5\x33\x6d\x98\x56\x01\x66\x42\x99\x2c\xd2\x45\xc7\x58\xa3\x03\x1e\xc2\x80\x7b\x17\x1a\xba\xee\xf1\x4c\x82\xa3\xda\xb2\x01\x75\x23\x51\xde\x2b\xff\xa5\x08\x5c\x13\x76\x56\xe4\x69\x58\x1f\x63\xf8\x63\x79\xd6\x28\x68\xac\x3e\x3a\xa2\x4d\xf9\x82\x6a\x83\x33\x14\xbd\x41\xe0\xd9\xa0\xae\x56\x80\xe6\xa4\xd2", b"\x5a\x77\x63\x96\x63\x66\x4e\x3f\x0b\x19\xfd\x58\x3b\xab\x6e\x68\x06\x88\xcd\x89\xd5\xe0\x12\xdd\xcb\x1e\x06\xbc", b"\xd4\x1c\x78\x4b\x58\x3c\xbc\x52\x5b\xce\x87\xc6\xca\xa4\x40\x62\xea\xc8\x47\xbc\xa8\xb0\x05\xc1\x2a\xb5\xe5\x54", ); test::( b"\x50\x3f\x20\x42\x35\x8f\x7e\x41\x42\x96\xab\x2d\x41\xf3\xa1\xf3\xf1\x11\x82\xec\xa6\xc8\x2b\x2a\xe6\xee\x83\x3d\xd7\x37\xbc\xb3\x46\x91\x79\x3e\x30\x11\x00\x36\xae\x54\xd4\x03\xa5\xea\x45\xcb\xf3\xe5\x51\x5b\xbf\x80\xb1\xaf\x13\x98\x53\xf5\x06\x79\x2d\xf7\xff\x52\x35\x99\x5e\x08\x0f\x82\xb5\x62\x32\x6a\xda\xf3\x21\x15\x9a\xde\xef\x20\x38\x80\x24\x50\x9f\x22\x5e\x8c\x52\x35\x36\x8a\x7b\x04\x5d\x69\xe4\x72\xe6\xb2\xad\x7d\x47\x0a\x11\xf6\xaa\x8d\x4c\xa6\xc6\xcd\xb0\xf3\xed\x4e\x06\xfb\x9a\x95\xe2\xcf\x20\x0c", p, q, g, b"\x7e\x51\x4a\x04\xbb\x57\x5a\xb9\x3e\x71\xb3\x55\x5c\xdb\xac\x63\x4d\x47\x5c\x58\xc1\xd9\xb4\x80\x2e\x15\x3a\x85\x8d\x02\x78\x04\xea\x74\x8c\x29\x07\xeb\x99\x87\xf7\x8e\x41\xc6\x75\x7e\xd5\xcb\xf1\x02\x54\x4a\x71\x46\x99\xa0\x2a\x9e\xf1\x47\x68\xf9\x6d\xbb\xdf\x48\xf3\xb2\xb3\x79\x2e\xfb\x97\x3a\x7f\x91\xf2\x60\xe0\xde\xa2\x80\x34\xc9\x15\xd9\xd5\xa8\x7a\x8f\x98\x6a\x15\xf5\xd6\xf9\x8d\x7d\x6d\x35\xbe\xe7\xe0\x59\xae\xdb\x59\xfe\x59\x5b\xa7\xda\x17\xce\x0d\xb8\x95\xf3\x41\x1b\x83\x2a\x1e\x22\x1a\x83\x1f\x70\x65\x87\x84\x1d\x93\x23\xe0\xc7\xf4\x43\x57\x03\x12\x70\x84\xb2\x0e\xda\x9c\x6a\x24\x97\x28\x01\x90\xa2\xb5\x27\x3b\x23\x1b\x44\x48\x2c\x92\x53\x50\x1c\x66\xef\x11\x22\x25\x3b\xe4\xea\x34\x77\xff\x61\x86\xaf\x87\x18\x69\xaf\x1b\xa1\x0f\x6a\x15\xd1\xc4\x32\x94\x03\x17\xd1\x19\xdd\x76\x1c\xa0\x34\x2a\xb6\x06\xd5\x32\xc4\x71\x78\x3a\x4d\xcd\x6f\xac\x9b\x8a\x67\xa6\xba\xe1\x87\xc7\xdc\x64\xc7\x61\x1d\xed\x72\x73\xdc\x34\x8c\xd7\x61\x3a\x52\xd0\x26\x70\xe8\x77\xe1\x8d\x0b\x60\xc8\xbb\xdd\x1a\xdb\x04\xef\xf2\x13", b"\x84\x86\xab\x31\xc8\x27\x8f\xad\x06\x91\xfd\xd6\xca\xc2\xf5\xfd\x79\x0b\x2f\x3f\xed\x52\xb0\x99\x86\x76\x60\x42", b"\xb6\x96\x7b\x9e\xac\xde\x5f\x48\x83\x71\x0e\xba\x38\x7b\x3c\x6f\xed\xfc\x91\x94\x4e\xa5\x1f\x6f\xfa\xb7\x25\x31", ); test::( b"\x65\x0c\x3c\x40\x9a\x88\x5f\xa6\xd1\xac\x1f\xf4\x1e\x15\xf9\x00\x1f\x6c\xd6\xa1\x52\xc3\x76\xfd\x22\xe2\x85\x1c\x9c\xba\xa5\x35\x0d\x8a\x92\xb7\x40\x10\x30\x80\x93\x95\xcf\x0b\x1a\x0c\xb0\x3a\x24\xdc\x3b\x43\x47\x05\x0e\x85\x53\xda\x0e\x61\xd8\x1d\xee\x44\x02\xb1\xce\xc9\x7d\x89\x8d\xc6\x88\x66\x01\x02\x4f\x6b\xfb\xc4\x8d\x2f\x2c\x40\xbf\x96\xde\x9b\xc0\xe0\x78\xe4\x40\xc7\x71\xf7\x4e\x71\x15\xad\x22\xba\x99\x4a\xe2\xf8\x57\xc7\xfb\x86\x5e\xa7\x50\xb1\x8c\x79\xe7\xb0\x48\x56\x3b\xec\xef\x88\x98\xce\xd3\xdd", p, q, g, b"\x55\x18\x6d\xe3\x9e\x6a\x01\x31\xad\xb7\xd8\x41\x70\xa8\xd3\x6a\xc4\xbf\x31\x36\x16\xe7\x50\x22\x0d\xe3\x56\xfb\xb1\x89\x9d\xba\xaa\x65\x0d\x8d\xe9\xa7\xaf\xab\xf3\xc4\xdd\x6a\x3c\x8b\xac\x24\x19\x22\xac\xbc\xc4\xbb\x7f\xa4\xce\x5f\xcd\xb5\xf2\x31\xcb\x17\xa8\xc0\x97\x8c\x8e\x69\xfb\x82\xd4\x46\x83\xeb\xb9\xfb\x17\x89\x8e\x0b\xa4\x93\x91\x96\xed\x99\x80\xeb\xec\xab\xba\xad\x7b\x5b\x34\xcd\x9e\xc0\xea\x6d\xf9\x62\x43\x82\x3b\x1d\x17\x0e\xfc\xcb\x4d\x59\xbc\xba\x24\xce\x5f\xaa\xd3\x2d\x59\x1a\xd6\xec\xe0\x44\x0d\x2b\x62\xa2\x12\x05\x9e\x00\x0f\xb5\x00\x5a\xbf\xec\x12\x7c\x1e\x9f\xa7\xd3\x46\x9c\x72\xb8\x9a\x96\x97\x6e\xb4\x70\x2f\x09\xf9\xc0\xa0\x97\x1b\x30\xdf\xc3\x39\x07\x2b\x5e\x3a\x6c\xe4\x0b\xfe\xa2\xd5\x2f\x2c\x93\x0a\x11\xdd\x65\x5d\xd3\x6a\xc9\xfa\xd8\x6f\xc3\x98\x6b\x48\x71\xe7\xc9\x04\x59\xa2\xea\xa3\xb3\xd2\x2d\xd0\x4c\xb8\x24\x17\x3c\xcc\x08\x7d\x42\x9b\xb2\xa1\x88\xe0\x5d\x8a\xf0\xac\x29\x11\xc9\x07\xfd\x95\x7b\x2b\xb3\x30\xa6\xf3\x98\x7a\x59\x59\x30\xb3\x12\x05\x3c\x4b\xdf\x85\x6d\xe7\x29\x38\x58", b"\xa0\xc4\x9d\x3c\x47\x24\x0d\x30\xd2\x6f\x0c\x20\xe4\x50\x8b\x36\x0a\x84\x12\x85\xde\x3f\xc1\x98\x6f\x1e\xf9\xf6", b"\x97\xca\xa2\xb7\x6d\x15\xb1\xf9\xf1\x77\xe2\x09\x00\x4a\x2b\x1f\xdd\x23\xa3\x94\x50\x34\x58\x4c\x2c\x15\xbf\xa2", ); test::( b"\x64\x12\x91\x53\xeb\x9c\xcc\x74\xcc\x3a\xae\x1d\x59\x99\xc6\xe9\x0d\x98\x6b\xe6\xfa\x40\xc6\xc4\xbc\x00\xb1\xc3\xf8\x07\x2d\x10\xa9\xd8\xe6\xc3\x14\xd8\x2a\x76\x41\xf8\xa3\xae\x29\xd3\xe7\xdd\x19\x42\xdb\xf0\xdc\x52\xb4\xb4\xb3\x5b\xb6\x7a\x99\x49\x42\xaf\xf0\x29\xca\x6f\xa1\x87\x09\x91\x5f\xf7\x20\xab\x8f\x65\xf2\x31\x15\x5c\xb1\xd0\xdb\xcb\xa0\x4f\xc5\x19\x3a\xfc\x71\xa5\xed\xdb\x4a\x03\x86\x7e\x5c\x4b\xb9\x2d\x37\xb7\xef\x77\x1d\xa9\x54\xec\x67\x54\xd5\xfb\xe2\xe3\x72\xb9\x2d\xf6\xa3\xea\x8c\x3a\x4a\xff", p, q, g, b"\x23\xf5\x38\xd4\xec\x34\x5f\xaa\x90\x6e\xff\x12\xf6\xc5\x94\x2a\xc1\x66\x91\x4b\xaf\x8e\x73\x7d\xaf\xc7\x1e\x47\x28\x55\x12\xeb\xc5\x7e\xbf\x3e\xc6\x66\x34\x2a\xbc\x05\x9b\x0e\xbd\xdb\x02\x1c\xea\xff\x6e\xf7\x58\x28\xc7\xbe\x37\x66\x25\x7f\x72\x47\xa6\x7e\x14\x08\x23\x9f\xa4\xdd\x1c\xaa\xc2\xb7\x22\x9e\x8c\x1b\xcf\xd5\x7a\xee\xa4\xc0\x4e\x15\x86\x76\x4e\x28\x66\x9c\x36\x12\xd8\xa0\x06\x58\x2c\xf8\xf8\x29\x10\x48\x26\x91\xc1\x0e\x41\x13\x21\x6f\xc2\x4f\xeb\x29\x9f\x84\xba\x58\x70\x0a\x3b\xb6\xfd\xef\xa1\x7a\x7f\xac\x9a\xa9\xbb\x41\x0f\xe4\x11\xfb\x29\x4d\x62\x94\x39\x6f\x7f\x62\x7d\xca\x04\x52\xef\x59\x5d\xc2\x41\x70\xc1\x47\xd3\x86\x3f\xc1\x6e\x23\x64\x50\x19\xac\xa6\x3f\xcc\x11\x52\xb0\xf7\x66\xf5\xf6\x51\xc9\xbb\x69\x9e\x2f\x50\x47\xfa\x1e\x96\x03\x97\x2d\x2c\x75\x51\xb1\x8f\x3b\x16\xc1\x06\xdd\xd6\xcc\x2e\x24\xd2\xd0\x5e\x79\x68\x7e\xfe\x65\x51\x02\xe6\xbc\x15\xbc\x3a\x57\xf6\x0c\x1a\x6a\xd2\x0b\xf1\xcb\xe6\x20\x52\xad\x09\x47\x43\x7b\x92\xb2\xc9\x32\xaf\x5d\x72\x77\x5d\x43\x18\x3b\xbc\x6f\x35\x9a\x4d\xf6", b"\x3d\x72\x89\x62\xae\xc3\x58\x22\xff\xf9\x9e\x1b\x52\x17\xd8\xa6\x26\x4a\x7c\x60\x8d\x80\x66\xf4\xfc\xc9\x00\x8a", b"\xca\x5c\x8e\x17\x8a\x14\xba\x00\x6e\x93\xcf\x4a\xd1\x19\xf0\x45\xbb\xf8\x2b\x82\x87\x67\xd3\xe5\x83\xd0\xbd\x15", ); test::( b"\x9f\xd2\x79\x1c\x41\xa2\xff\xa6\xdf\x26\x10\x98\x04\xea\xf0\x70\x12\x2e\x20\xbb\xb6\x2e\xcd\x98\x11\x55\x11\x36\xaa\x95\x6d\xc1\xc3\x21\x32\x78\x93\xa0\xdd\xe6\xdd\x1d\x5b\x3a\x0d\x2a\x5a\xa9\x7e\xd7\x54\xe5\xbc\x06\x67\x53\x33\x8d\xdd\xfc\x68\xeb\xa2\x17\xd2\x48\x35\x05\xb0\xd7\xc0\xa4\x37\x73\x2f\x80\x46\xcf\x3b\xf5\x93\x0a\x11\xef\xd3\xf6\x59\x9c\x0f\x8d\x46\x5f\xca\x76\x76\xce\x1f\x39\x10\x2c\xc0\xcd\xf1\x32\x81\xb2\xc7\xb9\xcf\x7a\x7a\xfc\xde\x68\x10\x05\xe5\xa2\xe4\xe3\x8c\xf8\x2e\x42\x13\x57\xa4\x1f", p, q, g, b"\x14\x7a\xa8\xd9\xe4\xcc\xac\x90\x6d\x6a\x5a\x0b\x65\xbf\xeb\x59\xd4\xd6\x60\x37\xad\x40\xd2\x88\xd7\x53\x4f\xc9\xae\x33\xc5\xaa\x70\x1c\xa1\x8e\x60\xf0\xb6\x89\x08\x28\x05\x62\x11\x0a\xf7\xd1\xd1\xbf\xb5\x38\xc5\x9d\x91\x00\x98\x03\x84\xae\x93\xb7\x7b\xe0\x33\x2a\x03\xcc\x56\x7d\x4d\x63\x4f\x76\x48\xa1\xb9\xfd\x25\xda\xf2\x50\xb2\x86\x96\x83\xe9\x42\x6d\x75\x56\x1a\x5e\x17\x87\xc2\xba\xb7\x11\x32\x75\x7d\xff\xc4\xb7\x66\x51\x43\xe7\xd8\x7d\x50\xf1\x2d\x01\x07\x5b\xef\x5f\x4b\x0f\x14\xcb\x3f\x10\x9d\x15\x99\xe5\xbf\x94\xde\x01\x11\xa0\x1a\xf5\x7e\x8c\x13\xf5\x83\xbe\x4d\xc9\x00\x89\x61\x9c\x72\xd2\x2a\x49\x5c\x45\x25\x6e\xc7\x87\xa5\x83\x2d\x2e\x4c\x4a\x42\xf0\x00\x18\x37\xa9\x75\xac\x8f\xbb\x8c\x56\x5f\x77\xb2\x53\x30\x3b\x1a\x87\x33\x06\xfa\x5c\xf6\xa5\xda\xb6\x2d\x7b\x1b\xa3\xd7\x0d\xc1\x1b\x4e\x4f\x87\x5e\x3e\xda\xe5\x0e\xe8\xe5\x17\x8d\xd0\x9a\x33\x4c\xf9\x26\x0c\x3e\x0a\x10\x91\x1d\x38\x1d\x7f\x56\x01\xc0\xb3\xf2\x69\x46\x68\x20\x18\x62\x99\x22\x94\x6d\xd7\x3f\x81\x24\x08\x16\xae\x96\x06\x91\x1c\xbf\xd6", b"\xa7\xcc\x74\x86\xf4\x7f\xe6\x2f\xe3\x25\x4e\xd6\x55\xe1\xc9\x94\x90\x2d\x79\x7f\x0d\x7c\xa9\x3f\xb9\x7d\xf9\xc1", b"\x91\x4b\xf7\xd1\x5c\xe2\xc9\xec\xc5\xae\x15\x0d\x63\x08\xfc\x55\x7d\x94\xe1\xef\x18\xc0\x86\x0a\xa6\x8a\xd4\x8e", ); test::( b"\x6b\x78\xb4\xde\x5f\x75\x26\xdb\xed\x08\xee\x0f\xf4\xe4\x33\x35\xb6\x0c\xd3\xbc\x37\x1b\x70\xcd\x4f\xd9\xce\x45\xbf\x06\x50\x83\x91\x08\x5d\x14\x2c\xc3\x89\x1b\x17\x91\x67\xc7\x6a\x13\x50\xca\x8e\xf8\xce\x75\x4a\xb1\xd6\x24\x57\x2e\x43\x71\x95\x66\x0f\x00\x4c\xb7\xbe\xd2\xff\x3b\x0f\x7c\x7e\x53\xf8\x53\x30\x5a\x38\x21\xdf\xba\xec\x33\xe2\x20\xdf\x3c\x3e\xf7\xa7\x9f\x34\xe8\x2c\xc8\xff\xf8\x41\x5f\x10\x8c\x00\x0f\x21\xc3\xbb\x21\xa4\xc3\x32\x67\xa2\x13\xcb\x4a\x55\x8e\x3b\x37\x0d\x17\xc6\x39\x24\x7b\xff\xeb", p, q, g, b"\x91\x47\x67\x0f\x64\xae\xdf\xa2\x46\x93\x8b\xa7\x7f\xb9\xc1\xac\x27\x1c\xa1\x09\x1d\x86\x3f\x32\xf0\x0d\x5c\xcd\xeb\xe7\x02\x2d\x26\x8b\xa9\x05\x1d\x80\xfe\x55\xdf\xc5\xf6\x4b\x07\x16\xc4\xbb\x8d\xa4\xb1\x1e\x9e\x28\x34\x48\xed\x8b\xe4\x27\x8e\x93\xb5\x2d\x67\x56\x49\xab\xb4\x59\x56\x52\x2f\x92\x63\x4c\x92\xa0\x9a\xc5\xa5\xd6\x03\xaa\xe2\xa6\xd0\x4a\x43\x52\x39\x53\x8d\xe3\x03\xfc\x05\xb9\xed\x5f\xcb\x84\x3f\x05\x36\xa8\xab\x94\x2d\x9c\x3b\xdc\x90\xfe\xed\x97\x44\x9c\xe3\x09\xbe\x8a\xb1\x19\x67\x6a\x96\xc2\xa6\x0a\x06\x69\x2e\x8c\xd5\x9e\x55\xe6\xff\x8d\x91\xfa\x46\x29\x66\x55\x55\x26\xc9\x87\xfc\x44\xba\x42\x0b\xbf\xf7\x68\xf7\xa7\xfd\x36\x36\x38\xd5\xce\x4d\x9e\xa1\xed\xd7\xfd\x39\x9d\x6c\x65\x62\x7b\xbc\x33\x7f\x13\x1c\x73\x45\xb3\xd7\x9b\x4d\xb7\x41\x25\x62\x54\x7c\xa2\xa7\xc8\xea\x55\xeb\xdd\xdd\x05\xa4\xb4\x20\x0c\x72\xab\x2b\x83\x31\x11\x52\xb7\x1c\x99\x30\x6c\x1d\x3b\x3d\x44\x66\x57\xbe\x65\xe5\x8d\x7c\xf8\xa0\x62\xb2\x25\xce\x93\x78\x02\x59\x05\x46\x85\x3f\x19\x2a\x6a\x8c\x8b\x3f\xf7\xa6\x2f\xcf\x80", b"\x2f\x85\xee\x5c\x32\xd5\x46\xc6\x8f\x0a\xa2\x69\x8b\xea\xe5\x3e\x28\x48\xc3\x75\x51\x7a\x57\x0e\x0f\x1b\x55\x46", b"\x54\x76\x67\xe8\xb1\x3f\x21\x63\x5a\x0b\x10\x6d\x32\x4d\x06\xc8\x5b\x74\xa6\x4c\xe9\x22\x5c\xc5\xe0\x84\x35\x81", ); // [mod = L=2048, N=224, SHA-256] let p = b"\xa4\xc7\xea\xab\x42\xc4\xc7\x3b\x75\x77\x70\x91\x64\x89\xf1\x7c\xd5\x07\x25\xcd\x0a\x4b\xc4\xe1\xcf\x67\xf7\x63\xb8\xc1\xde\x2d\x6d\xab\x98\x56\xba\xaf\xb0\x08\xf3\x65\xb1\x8a\x42\xe1\x4d\xc5\x1f\x35\x0b\x88\xec\xa0\x20\x9c\x5a\xa4\xfd\x71\xa7\xa9\x6c\x76\x5f\x59\x01\xc2\x1e\x72\x05\x70\xd7\x83\x7b\xec\x7c\x76\xd2\xe4\x93\x44\x73\x1c\xa3\x94\x05\xd0\xa8\x79\xb9\xe0\xdc\xd1\xa8\x12\x5f\xd1\x30\xec\x1e\x78\x3e\x65\x4b\x94\xe3\x00\x2e\x6b\x62\x9e\x90\x4a\xb3\x87\x78\x67\x72\x0c\xbd\x54\xb4\x27\x0a\x9e\x15\xcd\x02\x8c\x7c\xc7\x96\xf0\x6c\x27\x2a\x66\x09\x51\x92\x8f\xdb\xeb\x2d\xca\x06\x1b\x41\xe9\x32\x25\x73\x05\x74\x2f\xf1\x6e\x2f\x42\x91\x91\xd5\xe5\xf1\xa6\xdd\xf6\xe7\x8c\x5d\x77\x22\xcf\xf8\x0a\x9c\x0b\xd5\xc8\xd7\xae\xba\x8c\x04\x43\x89\x92\xb0\x75\xe3\x07\xc1\x53\x4c\x49\xad\x38\x0f\x47\x7f\x5f\x79\x87\xdc\x17\x2c\x16\x1d\xca\x38\xdc\xaf\x3f\xb3\x84\x6c\x72\xc9\x11\x9a\x52\x99\xad\xc7\x48\x95\x1b\x3d\xce\x0d\x00\xd4\xa9\x01\x38\x00\xb2\x00\x82\x03\xb7\x24\x65\xbc\x6a\x84\xae\x05\x9a\x30\xc4\x52\x2d\xea\x57"; let q = b"\xce\x89\xfe\x33\x2b\x8e\x4e\xb3\xd1\xe8\xdd\xce\xa5\xd1\x63\xa5\xbc\x13\xb6\x3f\x16\x99\x37\x55\x42\x7a\xef\x43"; let g = b"\x8c\x46\x5e\xdf\x5a\x18\x07\x30\x29\x1e\x08\x0d\xfc\x53\x85\x39\x7a\x50\x06\x45\x0d\xba\x2e\xfe\x01\x29\x26\x4f\xbd\x89\x7b\xb5\x57\x9c\xa0\xea\xb1\x9a\xa2\x78\x22\x04\x24\x72\x4b\x4f\x2a\x6f\x6e\xe6\x32\x84\x32\xab\xf6\x61\x38\x06\x46\x09\x72\x33\x50\x53\x39\xc5\x51\x9d\x35\x7d\x71\x12\xb6\xee\xc9\x38\xb8\x5d\x5a\xa7\x5c\xc2\xe3\x80\x92\xf0\xa5\x30\xac\xb5\x4e\x50\xfe\x82\xc4\xd5\x62\xfb\x0f\x30\x36\xb8\x0b\x30\x33\x40\x23\xeb\xbe\x66\x37\xa0\x01\x0b\x00\xc7\xdb\x86\x37\x11\x68\x56\x36\x71\xe1\xe0\xf0\x28\xae\xdb\xd4\x5d\x2d\x57\x26\x21\xa6\x09\x98\x2a\x07\x3e\x51\xaa\xe2\x77\x07\xaf\xbe\xef\x29\xe2\xec\xee\x84\xd7\xa6\xd5\xda\x38\x2b\xe3\xa3\x5f\x42\xb6\xc6\x68\x49\x20\x2a\xb1\x9d\x02\x5b\x86\x9d\x08\x77\x64\x76\xd1\xab\x98\x14\x75\xad\x2a\xd2\xf3\xe6\xfd\x07\xe3\x06\x96\xd9\x0a\x62\x68\x16\xdf\x60\xd6\xca\x7a\xfd\x7b\x48\x2f\x94\x2f\x83\xb4\x5c\xc8\x29\x33\x73\x1f\x87\xfa\xee\x32\x09\x00\xf2\xaa\x3e\x70\xb1\x86\x7e\x14\x30\xe4\x0b\xe6\x7c\x07\xf9\x29\x02\x99\xef\x06\x7b\x8b\x24\xa7\x51\x5b\x3f\x99\x2c\x07"; test::( b"\xce\xc8\xd2\x84\x3d\xee\x7c\xb5\xf9\x11\x9b\x75\x56\x25\x85\xe0\x5c\x5c\xe2\xf4\xe6\x45\x7e\x9b\xcc\x3c\x1c\x78\x1c\xcd\x2c\x04\x42\xb6\x28\x2a\xea\x61\x0f\x71\x61\xdc\xed\xe1\x76\xe7\x74\x86\x1f\x7d\x26\x91\xbe\x6c\x89\x4a\xc3\xeb\xf8\x0c\x0f\xab\x21\xe5\x2a\x3e\x63\xae\x0b\x35\x02\x57\x62\xcc\xd6\xc9\xe1\xfe\xcc\x7f\x9f\xe0\x0a\xa5\x5c\x0c\x3a\xe3\x3a\xe8\x8f\x66\x18\x7f\x95\x98\xeb\xa9\xf8\x63\x17\x1f\x3f\x56\x48\x46\x25\xbf\x39\xd8\x83\x42\x73\x49\xb8\x67\x1d\x9b\xb7\xd3\x96\x18\x06\x94\xe5\xb5\x46\xae", p, q, g, b"\x74\x8a\x40\x23\x72\x11\xa2\xd9\x85\x25\x96\xe7\xa8\x91\xf4\x3d\x4e\xb0\xee\x48\x82\x6c\x9c\xfb\x33\x6b\xbb\x68\xdb\xe5\xa5\xe1\x6b\x2e\x12\x71\xd4\xd1\x3d\xe0\x36\x44\xbb\x85\xef\x6b\xe5\x23\xa4\xd4\xd8\x84\x15\xbc\xd5\x96\xba\x8e\x0a\x3c\x4f\x64\x39\xe9\x81\xed\x01\x3d\x7d\x9c\x70\x33\x6f\xeb\xf7\xd4\x20\xcf\xed\x02\xc2\x67\x45\x7b\xb3\xf3\xe7\xc8\x21\x45\xd2\xaf\x54\x83\x0b\x94\x2e\xc7\x4a\x5d\x50\x3e\x42\x26\xcd\x25\xdd\x75\xde\xcd\x3f\x50\xf0\xa8\x58\x15\x5d\x7b\xe7\x99\x41\x08\x36\xdd\xc5\x59\xce\x99\xe1\xae\x51\x38\x08\xfd\xae\xac\x34\x84\x3d\xd7\x25\x8f\x16\xf6\x7f\x19\x20\x5f\x6f\x13\x92\x51\xa4\x18\x6d\xa8\x49\x6d\x5e\x90\xd3\xfe\xcf\x8e\xd1\x0b\xe6\xc2\x5f\xf5\xeb\x33\xd9\x60\xc9\xa8\xf4\xc5\x81\xc8\xc7\x24\xca\x43\xb7\x61\xe9\xfd\xb5\xaf\x66\xbf\xfb\x9d\x2e\xbb\x11\xa6\xb5\x04\xa1\xfb\xe4\xf8\x34\xec\xb6\xac\x25\x4c\xab\x51\x3e\x94\x3b\x9a\x95\x3a\x70\x84\xb3\x30\x5c\x66\x1b\xfa\xd4\x34\xf6\xa8\x35\x50\x3c\x9a\xde\x7f\x4a\x57\xf5\xc9\x65\xec\x30\x1e\xcd\xe9\x38\xee\x31\xb4\xde\xb0\x38\xaf\x97\xb3", b"\x9c\x5f\xa4\x68\x79\xdd\xaf\x5c\x14\xf0\x7d\xfb\x53\x20\x71\x5f\x67\xa6\xfe\xc1\x79\xe3\xad\x53\x34\x2f\xb6\xd1", b"\xc3\xe1\x7e\x7b\x3c\x4d\x0a\xc8\xd4\x9f\x4d\xd0\xf0\x4c\x16\xa0\x94\xf4\x2d\xa0\xaf\xcc\x6c\x90\xf5\xf1\xbb\xc8", ); test::( b"\xf3\xbb\x27\xbf\x9d\x41\x2f\x13\x22\x9a\x56\xd2\xd1\x53\x3e\xae\x63\xf4\x00\x04\xc1\x43\xc6\xb9\x2f\x6e\x60\x6d\x26\x3d\xd2\xda\x75\x81\xe5\xeb\x20\xb6\xcd\x02\x1e\x3a\xb6\x3b\x49\x8a\xba\xfc\xe0\x1b\x4a\xd7\xac\x86\x28\xf7\xa1\x84\x9c\x4e\x45\x4f\x11\x68\xae\x97\xad\xfa\xb1\xfa\xdb\xd3\x13\xfc\xa7\x38\x17\x26\xf5\x04\x57\x52\xda\xba\xad\x6e\xa3\x25\x0d\x30\x3a\x54\x96\xbb\xa2\xfa\x48\x95\xae\x49\xf0\x6a\x9a\xa6\x45\x1a\xe7\x0c\xf3\x3b\x5f\x06\xfa\x17\xca\xc0\x14\x4f\x28\xbd\x19\xfb\x2a\xc0\x41\xa5\x78\xed", p, q, g, b"\x00\xc7\xaa\xbe\x30\xfa\x4c\x3d\x1b\xa8\x5e\x7a\xe0\xaa\xe7\x93\x60\xe5\xea\xb3\x04\x1b\xca\xaa\x5d\x32\x1c\x92\xf3\x47\x1e\x41\x94\xc1\x04\x84\xcf\xf1\x52\xba\xde\x6b\x7d\x61\x9c\xf2\x86\x77\x34\x75\x29\x8f\x88\x3e\xfd\xf6\x4c\x08\xb6\x92\x58\x3d\xe3\x1b\xe0\xa4\xe2\xb8\xe8\xd5\x08\xec\x14\x5c\x65\xa3\x69\xce\x61\x95\x44\x6c\x52\xd0\x23\x72\xeb\xa5\x62\xf9\xa9\xd7\xcb\x24\xd2\xec\x3b\x0a\x1a\xb8\x33\xe4\xd7\x62\x3b\x04\x55\xa4\x1e\xec\x75\x9d\x07\xa3\xc8\xa2\x0d\x88\xa9\x26\x40\x8c\x20\xf1\x67\x56\x01\xbe\x53\xcf\xfd\x65\x61\x7b\x66\xfd\x4e\xb3\x53\xa1\xf2\xdb\x31\xf6\x63\x43\xb0\x7f\xaf\x60\xde\x0b\x6a\x68\x08\x09\xc6\x16\x6a\xdb\xf5\xe5\x04\xc5\xc6\x1b\xab\xb8\x4b\xe7\x2c\x02\xd3\xeb\xee\xe0\x66\xd9\xea\xb0\xd0\xec\xdf\xe0\x1b\x8c\xcd\x67\x28\xee\x91\x23\xb9\xd2\x11\x54\xb2\xbc\x9a\x13\x43\x63\x56\x64\x02\x29\x1a\xc8\xa4\x84\xee\x32\xeb\x88\x40\x46\xd4\x0f\xde\x7c\xab\xbf\x51\xd1\xd1\x20\x6d\xf1\xc5\xec\xf2\x90\xab\x7e\xa7\x2a\xbb\x5b\xd3\xbe\x8d\x91\xc0\x2b\xb6\x3f\x80\x97\x18\xba\x1d\x38\x0a\xf8\x83\x31", b"\x79\xa6\xae\xd7\x3c\xe1\x77\xed\x35\x81\xf5\xd1\x81\xa7\x7f\x00\x0d\x63\x58\x51\x4e\xa9\x5c\xb0\x38\x8a\x6a\xdd", b"\x2b\x85\x97\xa6\x94\x56\x4e\x26\x7b\x6f\x25\x0a\x4c\x76\x36\x1f\x8c\xdf\x49\x86\x3a\x79\x02\xaf\xa4\x8f\xd6\xd8", ); test::( b"\xe7\x14\xc0\x16\x31\x70\x4e\x94\x47\x39\x0f\x5c\x31\x5c\x96\x15\xa7\xa5\x28\x63\xb1\x43\x70\x65\x83\xf6\x61\x59\x5c\x50\x5a\xec\x47\x7e\xeb\x5a\xd6\xd6\x40\xca\x81\x2c\xe1\x17\x50\xb6\x7b\xc8\xbe\xde\x2e\x4f\x96\x18\xdb\xe7\x37\x6c\xab\x62\x31\xb2\x12\x48\xec\x91\x4a\xe1\x82\xdf\x87\x53\x36\x2d\x21\x18\xa6\x5e\x66\xf6\x40\x18\x81\x08\x04\xad\x97\xfc\xc1\xa8\x7b\x8c\x9f\x34\x9d\x10\x01\xe4\xb0\x9b\x04\x69\x91\xe6\xab\xe6\x33\x8f\xbe\xf7\xbe\x48\xf1\xc8\x0c\x35\x0d\x29\x62\xeb\x6b\x8f\xce\x25\xb6\x9f\x8d\xc9", p, q, g, b"\x04\xd3\x01\xf0\x01\x82\x1b\x03\xc9\x13\x94\xc5\x20\x83\x9a\xb6\xaa\xa9\x53\x25\xc1\x08\xa0\x2d\xad\x9d\xb4\x8b\x3c\x80\x33\xd6\x44\x3b\xcb\xf0\x50\x45\x23\x0c\xa8\x8a\xaf\x98\xa8\xc4\xcb\x6b\x09\x5b\x35\x2d\x91\xb4\xc4\x16\xf6\x32\xfa\xb4\x9d\x45\xac\x90\x69\x9a\x5a\x41\x96\x30\xa8\x1d\x47\x3b\xc8\x91\x22\xeb\x5b\xac\xb9\x1c\x40\xca\xa4\xe4\xbc\xc4\x76\xf3\xca\x77\xbf\x6a\x21\x03\x7a\x06\xbe\x24\xf1\x1c\x64\x5b\x0c\x21\xb8\x57\xfd\xc5\xc0\x4f\xbb\xf0\xa2\x6e\xfc\x56\x9c\xdb\xb0\xea\x98\x9b\xa0\xe0\x37\xc2\x3f\x22\xb0\xc5\xf1\x64\x3d\x77\xd9\x8f\x2d\xe2\x48\xcc\xc3\x66\x72\xd3\x97\xd3\x0c\x1c\x5e\x13\x19\xfc\x7e\x58\x42\xae\x1a\x9f\xcd\x9e\x96\xfe\x89\x0a\x74\xdd\xee\x91\xa3\x9c\xe7\x32\xe4\xc0\xea\xf7\x09\x4b\x53\xb7\xb4\x09\x30\x38\x60\xb0\xb4\x94\x4c\xc8\x1b\x4a\x42\xd4\x05\x38\xcf\xe5\x12\xb9\x68\x0e\x0a\x28\x1b\x1f\xbb\xf6\x39\x13\x9e\x80\x66\xad\x63\x8c\xf8\x46\xc9\xea\x51\xfb\x4c\x4e\xf8\x49\x21\xf1\x6a\x6c\xa3\xf2\xbd\x15\x81\x57\xc5\x51\x73\x9c\x9d\x02\x3e\x27\x0b\x3d\xe7\xc2\xf1\xd7\x68\x3c\xf8\x09", b"\x79\x0b\x4d\xca\xe3\x1f\xe4\x5c\xd3\xa7\xbb\x6f\xa1\x0d\xcf\x9e\xde\x1f\x06\x71\x23\xf9\x3b\xaa\xd7\xed\xb4\x89", b"\x71\xe3\xe4\x6d\xfe\x04\x04\x96\xce\x4c\x5e\x49\x0f\x69\x44\xa2\x3c\xd5\xe6\x6c\xe9\xb4\xd9\xac\xbe\x41\x30\xce", ); test::( b"\x3f\x6e\x48\x2f\xd4\x84\xed\x3d\x07\xf1\xd0\x76\x1f\x2d\x60\xfc\x96\xd4\x6e\xb0\xec\xd1\x0a\x59\xdd\x4f\x39\x2e\x3d\x3b\x2c\xbe\x18\x40\x10\xe1\x32\x68\x55\x78\xb1\xf6\x30\x32\x39\x79\x8a\x53\x03\xa8\x11\x69\xd4\xf5\x2f\xba\x0d\x20\xa4\x28\x34\xde\x29\x3e\x3a\x7b\x32\x84\x8b\x65\xdd\x30\x8e\xef\x53\x50\xd6\x33\x29\x74\x65\x42\x5b\x7b\x15\x95\xff\xc8\xea\x7b\x12\x58\x96\xf8\x9e\x28\x44\x56\x16\x35\xf5\x2e\xc6\x2f\xab\x2e\xcf\xea\x28\x8d\x23\xf0\xa7\x71\xcd\x63\x11\x80\x61\x03\x13\x51\x72\xcf\x9f\xef\x14\x55", p, q, g, b"\x9f\xc1\xb2\x92\xeb\xe1\x55\x31\x57\x9f\x35\xdd\xa8\xd7\x06\xbe\xe0\xda\x85\x7c\xd6\x96\xa1\x0a\xf7\x70\xdc\x35\x62\x32\x73\x6c\xf8\x93\xf7\x41\x1a\x9d\x27\x18\xb3\x9f\x38\x81\x18\xd1\x77\xcd\x8d\x0f\xd7\xca\x3b\x3c\x22\x0f\x3a\xa7\x43\xd8\xb1\x67\x21\x9d\x3c\x2c\x78\x3e\x1f\x09\xd8\xb8\xdf\x8e\xc7\xe1\x75\x78\xc5\x32\x94\x88\xc8\x7a\x89\x67\x8d\x28\x18\xa9\x93\x66\xb7\x85\xd5\x3f\x6c\xa6\x99\x5e\x19\x3b\xa5\xca\x26\xc0\x0b\x84\x9f\x90\x27\xca\x5d\xf5\xbb\x7e\xc8\x7f\xe7\x87\x35\xae\x88\x0f\x1a\x97\xda\xbc\x3c\xa7\x98\x5d\x8c\xbc\x81\xbe\x82\x4c\x1f\xfb\x95\x3f\x10\x96\xbf\x92\x62\x26\xfb\x5e\x9d\x4a\xd4\x3e\x93\x63\xda\x5e\x6b\x73\x8c\x9a\x2f\x95\x1a\xb3\x29\x4e\x2b\x28\x22\xcf\x52\x82\xbb\x41\x34\x15\x8a\xa9\x0a\xb9\xc8\xf0\xf6\x4d\x05\xa0\xd6\x25\xa7\x5b\xc2\xd6\xa4\xae\x3d\xd1\x1f\xc0\x5e\xde\x7b\x66\x47\xae\x7c\x07\x50\xdd\xb2\x73\xfe\x5f\x88\x28\x31\x8a\x91\xdb\x31\x72\xad\x59\x16\x6a\xac\xf2\xda\x4f\x37\x04\xd1\x69\xeb\xc8\x60\xd9\xe1\xc6\x46\x4a\xbc\x2b\x65\x30\x13\x77\x4d\x29\x37\x5b\x77\xba\xc1\xec", b"\x3b\x5d\x80\x34\xc4\xb8\xad\x97\x01\xbf\x29\xb1\x00\x06\xdb\x69\xd0\x17\xfd\xe8\x63\x80\x79\xdd\x7b\xbf\xac\xe7", b"\xcd\xe0\x1d\xf5\x4a\x66\xce\xf3\xc0\x53\x86\x48\x52\x5b\x25\x0c\xb1\xf0\x87\x07\xf5\xff\x11\x4b\xde\xbf\xf8\xf7", ); test::( b"\x31\xa2\x78\xf8\x81\xfd\xd3\x75\x56\x5c\x0f\x28\xff\x75\x75\xf2\x16\x11\x04\x86\xd6\xfe\x08\xda\xe8\xfd\x07\x29\x50\x97\x8b\xdf\xf6\x01\xde\xd1\xef\x22\x6b\x5d\x90\x4c\x47\xf7\x14\x2a\x8f\x46\x65\xe0\x3e\xfe\x58\x70\xda\x2d\xd1\xab\x80\xe4\x49\xf5\xc7\x57\xb3\xb6\x99\x6a\x9d\xc0\xb5\xb2\x75\x0b\x97\xbb\xad\x2f\x55\x3f\xba\xff\x2a\xed\xec\xfc\x9f\xf6\xa9\x70\xd1\x56\xe4\xfe\x38\x52\x97\x9d\xc9\x13\xbd\xb2\x96\xa3\x21\xf7\x66\x36\x72\x39\xde\x45\xe4\x7c\xbe\xf4\xd7\x9b\xfa\x3d\x57\x68\x87\xc6\x5f\x7f\x8a\x60", p, q, g, b"\x7e\xc0\xa5\x41\x88\x28\x15\x9e\x3e\xc8\x29\xf7\x93\xb9\x6e\xa3\x46\x03\x28\xde\xa2\x1b\xa1\x57\xd7\x1a\xc3\x06\xf9\xbc\xde\x61\x7d\xb6\x73\x68\xd5\x92\xbf\x46\xd4\x69\x18\xb1\x30\xfc\x7e\x3d\x11\x89\xee\xb7\x99\x6d\x5f\x66\x0a\xce\x30\xbe\x50\x9a\x26\xb2\x18\xd8\x65\xd9\xe5\x6b\xa7\xf6\x19\x42\xe5\x67\xd8\xcd\xab\x96\xa7\x8c\xa3\x03\xc6\xb0\x1d\x98\x9b\x1e\x78\xae\x95\x64\x23\xe3\x5b\x5a\x46\x6c\x16\x07\x4e\x0b\xc9\xe8\x37\x23\x40\xd2\xc1\x25\x16\xc2\x2d\x5e\x1f\xf6\x5a\xbd\x5d\x44\x82\x15\xb6\xba\xf5\x65\xde\x18\x20\x1c\x1f\xd5\xba\x3d\xe8\x7e\x5d\x5b\x43\x7d\x2f\x48\xde\xee\x72\xa1\x2e\x65\x5f\x8c\x7f\xa3\x13\xd2\x4b\xd0\xc8\xc2\x0e\x59\xc9\x0e\xdf\xbf\x5d\xfc\x05\x7c\x6b\x67\x98\x50\xae\x41\x82\x61\x78\xf2\xf3\x04\xca\x3b\x92\xa9\xba\xc3\x1a\xb3\xcf\x74\xdf\xb8\xee\x5b\x64\x3b\x4a\x34\x1e\xbb\xdb\x5d\xbd\x24\xd0\xb7\x82\xc5\xb4\x50\x59\x6a\xbf\xc3\xdf\x9e\xe0\x5f\x45\xd0\xea\x2e\x8f\xf4\x35\x7c\xd3\x60\x5f\x35\x06\xce\x58\xa5\x39\x4f\x1f\x24\x44\xc2\x63\x59\x29\x9a\xf1\x53\x53\x2b\xc9\x0d\xaa\xf9\x54\xae", b"\x2b\x47\xe2\x57\xbf\x72\xad\xf3\x4d\x61\x8d\x3a\x6c\x46\x14\x28\x81\xbd\xd0\x68\x9a\x46\xf1\xcb\x31\x99\xee\x6c", b"\xcc\x1f\xf2\xfa\x37\x55\xa0\xe8\x1e\xdf\xc7\x53\xbc\xf1\x4e\x63\x74\x13\xea\xee\x0f\x22\xd7\x88\x6b\x05\x8d\xcc", ); test::( b"\xa6\xd7\x60\x47\xbd\x18\xde\xef\xe7\x0d\xc0\xa4\xbd\x08\x2a\x10\xfa\x52\x1d\xff\xda\x78\x2a\x93\x64\xb9\xe2\xb1\x1e\x14\x7e\x1a\x36\xa1\x1c\x43\x00\x67\x21\x44\xd9\xb9\x74\x13\x2b\x49\x75\xf2\x7e\xa6\xe8\xe4\x6b\x55\xae\xdd\x67\x23\xe5\x3e\x7b\xc9\xb4\x0d\xce\x24\x49\x28\x5a\x69\x08\x85\xc3\x22\x3b\x63\x6c\xb5\xc4\x87\x3c\x5d\xda\xeb\xb0\xb6\xdc\x5b\x69\x43\x8d\x88\x1a\x52\x59\x05\xa5\x1b\xdb\x97\xb0\x51\xdb\xfe\xc6\xdd\x4a\x7b\x58\x02\x97\xb0\x8f\x2b\xa6\x0f\x2e\xad\x3a\x07\x53\x1c\xf2\x99\x97\x74\x13\xaf", p, q, g, b"\x8b\x26\x62\x77\x5b\xb7\xf1\x92\x52\x20\x45\x94\xa8\x4b\x46\x9f\x3d\xc8\xd6\x6e\xb7\x99\x3b\xed\x12\x2d\x8a\x06\x5f\x59\xea\x81\xd4\xc4\x84\xce\xe5\xbd\x76\x6a\x5c\x13\x7d\xd5\x7e\x43\xe9\x41\x33\x98\x52\x15\x05\x09\xac\xbd\xe6\xf7\x95\x7a\x1b\x04\xec\xe7\x18\x56\x5c\xe8\xb6\x37\xea\x03\x1b\xfa\x34\x10\xa5\x80\x74\x4b\x3d\x49\x59\xa5\xe7\x5e\x31\x5d\xd3\x3c\x02\xb5\x2c\x7c\x56\x21\x8b\x7c\xdf\xdc\x24\xf5\x1d\xdb\x4e\x78\x49\xfa\xf2\x89\xcf\x80\x6c\x4d\x3c\x6b\x87\x7c\x63\xdb\xfa\xb5\x69\x92\x0a\x2b\x21\x9c\x39\x21\x5c\x5e\x3e\x63\x8a\x3e\xbe\xeb\xfb\x52\xc8\xb3\x8e\x82\x85\xa8\x5d\x62\x5f\xc1\xb4\x2f\xbf\x0e\x51\x8c\x58\xeb\x8f\x45\xfa\x54\x67\x6e\xd8\xb0\x09\x41\x5d\x26\x96\xee\x9b\x51\x53\xdd\xdc\x5e\xeb\xef\x49\xcc\x76\x59\x81\x0a\x98\xd4\xb5\xe8\xb9\x69\x5f\xb2\xd9\xe4\xbf\x19\x20\x93\x74\x7c\x87\x8a\x95\x65\xb4\x7c\xba\x05\x3c\x48\xba\x7c\x0b\x9b\x1c\xe7\x7f\x8a\x3e\x10\x43\xe8\x7f\xcc\x61\x32\xcb\xe8\xfa\xd7\xc7\x38\xe9\xbf\x79\xbc\xcb\x41\x4e\xf2\x49\x07\x67\x5b\xa7\xcb\x05\x9a\x83\x89\xee\xe7\xeb\xbe", b"\xb8\x67\x4d\x1b\xa6\xf1\x33\x98\xf5\xe8\x94\x4b\x82\x15\x0d\x9e\x9b\xc9\xb2\x10\xa8\x14\x95\xb3\x35\x94\x7e\x64", b"\x75\xfc\xfe\x96\x92\x61\x86\xef\xa1\x2c\x00\x7c\x09\x85\x20\x51\x47\xcf\x65\xab\xd1\x08\x36\x3d\x8b\x89\x11\x90", ); test::( b"\xf0\xd5\xb3\x33\x27\x69\x55\x36\xe3\x51\xb3\x7c\xd3\xfe\xea\x69\x3f\x10\x37\x7a\x5f\x8b\xdd\x91\x34\x02\xc2\xed\x67\xa0\xfc\x1e\x7b\xca\xab\x00\x2f\xa7\x79\x93\x59\x50\xc7\x6e\x42\xa4\x91\xa6\x8f\xa6\xfe\x44\x5c\xd3\x55\x75\xcf\xce\x5f\x37\x6c\x29\xc4\xe8\xc0\xfe\xd5\xa5\x48\x7e\xf4\x18\xb9\x6f\xa5\x75\x2a\x03\x3a\xd0\x79\x59\x65\x3d\x1b\x8a\xf6\x70\x2d\xcc\xe4\x0e\xfe\xf2\x1b\x2d\x64\xcf\x06\xbd\x8b\x03\xda\xdb\x2f\xda\xaa\x73\xfb\x2d\x3d\x75\xb0\x98\x5e\x9a\xef\xa1\xf9\x44\x42\xa5\x49\x1a\xe4\x6d\x7c\x51", p, q, g, b"\xa4\x48\xb0\xd4\x48\x24\x9a\x0e\x54\xa9\x45\x86\x88\x29\x85\xa0\x8e\x19\x97\x22\x81\xd1\x0d\x9e\x7f\xb5\x7f\x95\xdf\xee\xbf\x97\x1f\x6d\x9d\xfe\x88\xdb\xd0\xa4\x95\x0f\x52\x82\x00\xbe\x7b\x60\x58\x65\xee\xfd\x8e\xc2\x74\xac\x53\xe4\xed\x5b\x28\x8c\x6a\x00\x72\x1e\x02\x88\x81\xb9\x72\x5f\xb0\xa9\xce\x41\x53\xdc\xc1\xfe\x7b\x5c\xe7\x25\x9f\x16\xea\x8b\x32\x45\x6c\xb0\x3b\xae\x81\xbe\x77\xf3\xf6\xe8\xb3\x9f\x52\x58\x7b\xc9\xdd\x47\xa2\x64\x27\x8d\x5d\x8e\xcb\xe1\xba\x57\x42\x69\x69\x6a\x7b\xb1\xe1\x67\xa3\xae\x71\x10\xec\x05\x7f\x42\x91\xa1\xba\xe8\x25\x7d\x69\xc1\x0a\xe0\x95\xf3\x27\x16\x21\xc6\xd6\xb5\x60\x79\x25\xc3\x49\x81\x89\xd7\x51\xb7\xc9\xbf\x30\xe6\x56\x83\xcb\x39\xfb\x51\xbd\x59\x2f\x1f\x98\x27\x9f\x2e\x7b\x2b\x53\xad\x54\x68\x16\xa8\x50\x8c\x93\xf0\x34\x96\xde\x7c\x47\x16\x5f\x5c\xf2\x97\x68\x7a\xd7\xd6\x0f\x01\x0a\xb9\xfa\xad\x01\x53\x43\x2e\xc1\xcc\xdf\x26\xd4\xf4\x41\xdf\x62\x53\x94\xe2\x10\x42\x08\xbb\x67\x5e\x7f\x97\x2b\x6c\x66\xed\x70\x28\xa1\xe3\xf4\x5a\x67\x1a\xb2\x71\x6c\x60\xfe\xab\xcc\x22", b"\x01\xa4\xf4\xbc\x63\x3e\xbf\x84\x2a\x28\xd0\x45\x18\x4d\x25\x05\x29\x92\x0d\xf2\x80\x54\x5c\xba\x00\x50\x1c\xad", b"\x09\xfc\xeb\x2d\xf2\x00\xb7\xc0\xa5\x6a\xe7\x96\x9f\x54\x73\xb7\xa1\xf6\xb7\x03\xf7\x43\xf9\x54\xa4\xfb\xdb\xe3", ); test::( b"\xf5\x8e\x03\x9d\x66\x6e\xf0\x64\xcc\xcc\x7e\xd0\x15\x01\x7c\x68\x39\x3d\x14\x55\x30\x0d\x0c\x4f\xd4\xf0\xd3\x02\xc4\x3a\x00\x22\x36\x3a\x7c\xb0\x1b\xf0\x67\x3d\x32\x52\x93\xbd\x50\xb2\x7f\x81\x87\xd8\x8e\xe2\xb5\x53\xb1\x59\xa9\x7d\x15\xac\x54\x34\x21\x44\x6c\x2a\xec\x39\x56\x63\x15\x21\x1b\x9b\x41\x08\xca\xcf\x90\x85\xda\xcd\xb4\xde\x94\xbc\xe8\x40\x97\xc0\x89\x2b\x1c\xc6\x5f\x2e\x10\xd7\x4e\x52\x93\xa0\x4a\x83\x7b\x61\x6d\x41\x81\xf3\xfe\x4c\xaa\x4c\xc2\xe7\x44\x91\x6e\x77\x0f\xf0\xab\x13\x68\xc8\x6c\xfc", p, q, g, b"\x40\x52\x53\x4a\x77\x26\xcb\xe1\x7e\x34\x55\x56\x48\xe5\xf2\x97\xb9\x63\xf2\x2d\x3a\xca\x24\x97\x85\xad\x93\x2f\x6e\xa1\xfb\x5d\xf3\x1d\x37\x9b\x68\x52\x2f\x8e\xeb\xed\xfc\x9b\x5c\x52\x77\xe9\x15\x74\xfa\x79\xec\xf0\x37\x80\xcc\x44\x35\x1f\x3e\x3b\xfa\x1a\x05\x87\xc8\x8d\x0e\x04\xe0\xa0\x2c\xd1\xee\x9a\xe2\x10\xb3\xc9\xaa\xcc\x65\xc7\x1c\xf1\xb8\x64\x63\x36\x7e\x2b\xe2\x5c\xca\xdd\x9d\x5a\x4d\x1f\xcb\xd5\x87\x72\xf7\xa1\x17\xf3\x67\x3c\x76\xee\x2a\x8d\x93\x44\x6f\xfd\x7c\xda\x7f\x84\x30\x49\x05\x02\xc1\x6b\x1a\x50\x22\xe1\x2a\x3a\x95\xa7\xa9\xf2\x0e\x98\xd3\xb2\x85\xab\xe3\x0e\x8d\xe4\x2a\x11\xc5\x17\xc1\x4e\xf3\xb6\xe5\xb6\xc4\x71\x14\xa9\x61\xd8\x58\xc6\x87\x55\x61\xc7\xd5\xd2\x1b\x7c\x93\xf3\x73\xcb\x33\x08\x00\x72\x8e\xa1\x88\xb2\x57\x8a\x6d\xf3\x47\x72\xa7\xac\xdd\xb8\x29\xc0\x9b\x3a\xcf\x9b\xc5\xb0\x61\x40\xb9\xb0\x35\x26\x7a\x40\xe8\x6c\x1a\xf5\x57\x7b\x3d\x02\xa8\x9b\x20\xa4\x65\x73\xc8\x75\x00\xa2\xeb\xed\x4b\x00\xb1\xfb\x13\xa8\x6f\x14\x3e\x35\x67\x02\xd7\x91\x37\x9a\x90\xdf\xcc\x26\xb8\x07\x19\xad", b"\x31\xfd\xe5\xf2\x2e\xbb\x42\x6f\x25\x6b\x17\x50\x57\xa7\x61\x25\xc4\x01\x36\x97\x4a\xd5\x8e\x68\x1e\xc2\xc4\xa9", b"\x77\xb0\x61\x4d\xd9\x9a\xcb\xbf\x4c\x43\xaa\x92\x6b\x3f\x0b\xe1\xcd\x52\xd5\x27\x75\xf2\x2a\x40\x8c\x4e\x03\x04", ); test::( b"\x14\x77\xaa\x0b\x9f\x1b\x19\x9b\x6a\xa0\x93\x1d\x4d\x3f\x76\x6d\x80\xa3\xaf\x10\xc9\xff\x73\x15\x39\x1f\x15\xed\xc4\xe9\x26\x32\xf9\xd4\xd2\x1a\x80\x33\x21\x5d\x5e\x99\xcf\xf1\x70\xd9\x88\x8f\x02\x0b\x0d\xb0\xe5\xb9\x7e\x12\x3a\x28\x89\x89\x8c\x5b\x0e\xf7\xc8\x32\xd0\x28\xaf\xd5\xe3\x85\x00\x45\x31\xff\x99\x89\x79\x7c\x3b\xd9\x54\xb1\xac\x72\x90\x66\x57\x76\x67\x56\x78\x84\xcd\x4b\xc5\xd0\x55\xa3\xf6\x45\x58\x3d\x29\xcf\x47\x58\x50\x7c\x88\x3c\x5b\xbf\xa7\x44\x44\xb9\xc5\xb9\xb4\x95\x07\x2c\x32\x61\xb6\xec", p, q, g, b"\x46\x75\xf1\x9b\x00\x95\xfa\xf8\xec\x96\x88\x8e\x48\x3f\x3a\x0a\xa6\x75\xf5\xb4\x25\x91\x07\x65\x06\x9a\xb5\x7c\x97\xa1\x2b\x7c\x50\x64\x37\xc8\x75\x7f\xef\x54\xec\xc6\xd3\x10\x92\x1d\x71\x59\xff\x39\xf2\xf1\xcd\x95\x35\xb6\x4f\x27\xf1\x36\x91\x37\x15\x77\x5a\x23\x8f\xbe\x01\x23\x7e\x18\x1a\xde\xbe\x55\x1f\xfe\x5d\x21\xe3\xc3\x57\x74\xe7\xad\xe8\xc7\x9d\xf7\x41\xc5\x2d\xab\xd8\xbe\x47\x82\xee\x5a\x3b\x60\x7a\x39\xd1\xb4\x55\xdc\x84\x83\x01\x84\x73\x12\x98\x05\x66\xf5\x5e\xba\x08\x06\x21\xe3\xc1\x23\x14\x2a\x1a\x20\x74\xe2\xe3\x9f\x6c\x06\x30\xb3\x68\x31\xf0\x74\x86\x9d\x46\xa6\x84\x29\xf6\x25\x73\xcd\x2c\x67\x17\x26\x13\x1f\xbf\xd5\x66\xa6\xd0\x71\x93\xdb\x4f\x36\x78\x02\xd7\xde\x8f\x4e\x83\x0a\xa8\x78\xee\x2c\xdf\xb8\x6d\x85\x37\x74\x6b\x71\xc7\x0f\xbc\xb6\xa1\xfa\xd6\x62\x13\xd6\xfb\xea\x68\x24\x1e\xb9\xf6\x17\x47\x8a\xdc\xc9\xfa\xaa\xb2\x6c\xf8\x1b\x91\x20\x89\xda\x0c\x4b\x18\x7b\x49\x6a\x17\xd8\x86\xce\xf5\x71\xe3\x93\xd6\xf1\xf8\x57\xeb\xf5\x17\xc8\x01\xf9\x23\x1e\x95\xdb\x66\x1e\x8c\xb2\x09\x54\x56\xa3", b"\xa2\x38\x0b\x5e\xce\x76\x67\x26\x69\xe2\x61\x87\xa1\x7d\xa4\x5a\xd8\x9d\xe1\x72\x6c\x82\x6e\x57\x37\x8a\xf7\x07", b"\x9c\xc2\x6c\x34\x56\xc0\xa4\x09\xf4\xcc\x98\xc8\x3e\xa5\x17\x6e\xb2\x93\xec\x71\x57\xe5\x13\x70\x72\x64\x29\xce", ); test::( b"\xfc\x82\x37\x25\x66\xef\x2c\x62\x6b\x21\x45\x54\x9a\x5d\xb9\x73\x11\x8d\xff\x4c\x6d\x1d\x7c\x4a\x2e\x16\xec\xc3\x1b\x43\xc1\x4a\xd3\x68\x31\x73\x53\x5b\x0b\x82\x33\x1f\x15\xa1\x83\xe6\xa5\x02\x00\xfd\x1e\x88\xff\x90\x3e\xcf\xc5\x0b\xdd\x4f\x58\x75\xe2\x64\xa4\x49\x9e\xad\xbd\xaf\x80\x7f\x97\x4f\x8d\x81\x04\x47\x7a\x0e\x4d\x30\x46\x3d\xfc\x61\xcd\xac\x5b\xf4\x4e\xab\x96\xc7\x70\xa7\xdb\x91\x2e\xee\x2d\xb2\x48\xcd\xd2\xb9\xb3\x62\x11\xf9\x38\x70\xbe\xae\x6b\xdf\x8e\x0a\xed\x00\x97\x51\x9e\xcd\xe3\x47\x0c\xdd", p, q, g, b"\x38\x84\xab\x23\xab\x93\xd9\xd1\xb7\x16\x71\x2c\x8d\xaa\x08\x0b\x26\xaf\x01\x65\x7f\x0d\xab\x71\x5e\xbe\x6b\xd7\x66\xde\xca\x76\x12\xbe\xa6\xa4\xcf\x1f\xf7\xd0\x8a\xbb\x2d\x44\x42\xac\x0e\xaa\xb0\x1e\x68\x57\x0b\xdc\xc2\x22\xf8\x4b\xc3\xdd\x6d\x8c\x54\x90\x13\x2d\x1c\x36\xe2\x39\x13\xf0\x0d\x11\xc8\x03\xb7\x03\xa6\x9a\x51\xa1\xb4\x75\xf5\x6d\xb0\x0f\xca\x47\xd2\x34\xaa\xc3\x07\xb9\xe7\x98\xe9\xfd\x89\x1d\xff\x9c\x12\x57\xbe\xe5\x56\x31\x4b\x02\x1f\xbf\x93\xf7\x5e\xd8\xc4\x34\x33\xaf\xa7\x15\xb8\x2d\x5e\xc6\xaf\x8e\xf9\x47\x1e\x9b\x02\xf9\x55\x4e\xd7\x95\x7c\x1f\x46\xd8\xdb\x35\xa5\x92\x1f\x4a\x83\x72\x7f\x75\x4e\x82\xb6\xff\xa6\xd1\xb8\x25\x95\x22\x08\x76\xd2\x2e\x18\xfb\xaf\xa5\x33\x3b\x26\xc2\xcf\xd4\x7d\x89\x4a\xaa\x71\x64\xa2\x63\x02\x94\xd0\xa3\x85\xfc\x8a\x8c\xf5\x7d\x10\xed\x0f\xc5\x3f\x21\xf1\xfd\x6b\x4c\x27\xe9\xc6\x9e\x65\xa2\x88\x44\x46\x19\xa3\xc2\x48\xbc\xc4\x4e\xc2\x56\x05\x02\x83\x25\x24\x32\x74\xd7\x21\x00\xed\xf5\x60\xcd\x38\x2b\xab\xee\x1c\xa5\x32\xb7\xf0\x6a\x43\x88\xf1\x81\xdb\xbb\x5d\xb5", b"\x54\x61\xb2\x07\x04\x45\x3b\x6c\x51\x83\x7f\x7b\x9e\xf5\x83\x61\x31\xb5\x01\xf2\x53\x91\x45\xca\x34\x81\xe6\xaf", b"\xb6\x5f\x69\xd2\x91\xff\xae\x2d\x16\xe3\x10\x8d\x69\xae\xb0\x1b\x4f\x92\x02\xaf\xa0\x13\x82\xe5\x3d\xea\x4d\x54", ); test::( b"\xe6\x6a\xad\x54\x04\x8b\xec\xec\xa5\x68\x26\x44\xd5\x27\x4c\x18\x06\x83\x63\xe9\x68\xe3\x7e\x6c\x11\xc1\xf8\xa0\xd7\xe3\x20\x57\x85\x14\xe1\x87\x4e\x9d\x4e\xaf\x1b\xd0\x2d\xa6\xb7\x22\xed\x22\xac\xfc\xa4\x8c\x3a\xcb\x67\x0a\x6f\x9e\xe6\x2e\x3a\xa7\x1d\xeb\x18\x09\x75\x08\xf4\x31\xb0\x52\x14\xc1\x99\xc1\x66\xfa\x42\xcd\x6a\x07\x97\xbc\x7b\x4d\x1a\x2f\x33\x0c\xb6\x2c\x2c\x95\x18\x2f\xef\x0d\x06\x86\x25\x42\x84\x5e\x43\x0d\x77\x8c\x82\x07\x63\x87\xad\xad\x43\x55\xc2\x58\xe6\xc5\x43\xcd\x65\x6f\xe3\xcd\x23\x32", p, q, g, b"\x06\x24\x5b\xc5\x09\xb4\x95\x54\x40\xb0\xe4\x01\x71\x0d\xdb\x2c\x4e\xa2\xe5\x59\x59\x83\x61\xa3\x66\x6c\x4a\xb1\x2e\x76\x6b\x43\x9f\x21\xb9\x53\x96\x2f\x6e\xf5\xa1\x1d\xbe\xe5\x67\x7a\xb7\xf8\x90\x6d\x8b\x32\x51\x80\xef\x4e\x45\xd0\x5c\x12\x94\xfc\xe5\xdc\xaf\x63\x60\xf7\x1b\x10\xb7\x05\x56\xf3\x06\x99\x3d\x29\x5b\x69\x5f\xfe\x57\x29\xc5\xc5\xbb\xb6\xcb\x48\x34\xad\x03\x7b\xd8\x36\x4a\x12\xc9\x92\xc2\x59\x8e\x8e\xe6\xbe\xb1\x60\x6e\xbc\x0a\xc0\xff\x00\xc0\xea\x2e\xb8\xae\xd7\x5d\xca\x01\xa8\x90\x08\x5a\x40\x0e\xbf\x99\x3e\x58\x79\x38\x2f\xf9\x1a\xbf\x1b\xe2\xce\xed\xd1\xfc\x4a\x87\x43\x42\xb7\x7b\x6c\x55\xff\xe7\xf6\x76\xa1\xc9\x5e\xe4\xec\xc3\x23\x58\xa0\x80\xc9\x23\x61\xcf\xcd\x2e\x34\x26\xf7\x8c\x21\x7a\xe2\x95\x56\x70\x9e\xd0\x29\xb2\x87\xe7\x1f\xea\xe0\x60\x8c\xf3\x93\x88\x57\x04\x0d\x7f\x06\xb0\xf9\x1b\x3b\x4d\xa8\x92\x9d\xf4\xb5\x69\x8e\x73\x4a\x37\x31\x68\x79\xc3\x08\xa8\x1c\x09\x6b\x72\x3b\xf2\x08\x99\x10\xd5\xab\x30\xb8\xef\xf3\x88\x58\xaf\xf6\xec\xf7\x64\xe2\x68\xed\x69\x8b\x70\xe8\xfb\x7f\x3c\x66", b"\x86\xd5\xba\xc3\xae\xee\x9b\x50\x1f\x91\xf2\xfa\x71\xb1\x06\x67\x60\xdf\x2e\x0e\xe1\x47\x38\x3f\x14\x5b\xb0\xd3", b"\x8d\x6a\x20\x78\x02\xd6\xfd\x6e\x53\x4e\x1b\x8a\x1e\xdb\x99\x7b\x7c\xc9\xa2\x5a\x97\xa9\xe4\xb6\xee\xbd\x0e\x23", ); test::( b"\xc8\x57\x47\xcd\xd2\xac\x9d\xa0\x99\x9b\x7e\x5d\x7f\x64\xd1\x1d\xce\x76\x73\xdf\x5b\xc6\x05\x05\x13\x16\xb4\xb9\x4b\xc7\xfc\x77\x6f\xb1\xd3\xda\x5a\x43\x95\xa6\x74\xaa\x8a\x07\x98\xa3\x41\xb3\x1b\x11\xe6\x3c\xdf\xac\x5f\x85\x43\x46\xf6\xa4\xb7\x4b\x49\xf2\xd0\x89\xcb\xb8\x6f\xae\x54\xeb\xfd\x95\xeb\x9f\x05\xa1\xb5\xe8\x43\x06\xe9\x30\x46\x1a\xd7\xf8\x27\xcf\xb9\x10\x01\x4a\x3a\xf4\xda\xe0\xd4\x6e\xce\x91\x2b\xc2\x68\x70\xa4\x33\xf7\x0f\x0a\x38\xbf\x23\xb1\x5d\x98\xcc\x65\x88\x48\xf4\xba\xd9\xc8\x4e\x89\xf0", p, q, g, b"\x29\x72\x78\x7d\xcb\xd6\x7e\x5b\xdd\xaa\xf1\xbd\x3f\x05\xeb\xd6\x69\x49\x60\x1d\xda\x44\x23\x7e\xc9\x36\x15\x91\xce\x9b\x80\x9f\x87\x22\xfb\x39\x9e\x6b\x9b\x81\x09\xa7\x9e\xa7\xb8\x3f\xe9\x83\x59\xa0\x7a\x27\xe2\x32\xcd\xea\x8f\x65\x33\xe3\x4e\x37\xdb\x3a\xe5\x33\x09\xf6\x2f\x10\x8b\x2e\xe7\xb4\x89\xa9\x33\xe4\xef\x58\xdd\x4d\xb8\xc0\x10\x8a\x36\x70\xc6\x75\xb9\x8b\x75\x79\x8a\xc0\x88\x4c\xf5\xa4\x61\xaf\x28\x1f\x6d\xd8\xe7\xea\x3d\x41\x39\x6f\x04\x96\x01\xa9\xaf\x2e\x39\x08\x8a\xe0\xa1\xec\x0d\x2d\x10\xfa\xe1\xdc\x1d\xe9\x62\xd8\x4d\x8c\xf0\x42\x15\xfc\x6d\x62\x62\xac\x43\x25\x41\xaf\x2c\x48\xc0\x9c\xd4\xe1\x5b\xd9\x46\x0e\x9a\x7b\xae\x17\xe0\x03\x5a\xf0\xb1\x3d\x8d\xe7\x07\x87\x0c\x54\xbc\x85\x11\x12\xf4\xae\x1d\x69\x07\x47\x12\xc2\x12\xbc\x7e\x13\xf1\x99\xff\xc8\xf3\x77\x23\xcd\x6d\xcf\x53\x9f\x8d\xf8\xcf\x0c\xf1\xed\x4c\x10\xee\xaf\x0f\x44\x48\x04\xf1\xeb\x9d\x9c\x32\x9d\x6f\x19\x97\x3e\xec\x27\x32\x22\xfa\x04\xb5\xf1\xf0\xe1\x79\x71\xce\x39\x98\x69\x58\x20\x27\xb1\xc4\x54\xdc\x1a\xdd\xd4\x84\x90\x2c\xb0", b"\x28\xe3\xdd\x71\x09\x8f\xf0\x4d\x1c\xa8\x85\xc2\x77\x4f\x78\xec\xb3\xec\xea\x70\x8f\xab\x2e\x16\xbd\x5c\xec\xe1", b"\xac\x8b\x6e\xe4\x98\xee\x38\x3e\x28\x40\x4b\xa4\xb5\x3e\x64\xac\xa0\xfc\xd2\x67\x90\x71\x32\x64\xfe\x3c\xf6\xa1", ); test::( b"\xa7\xa5\x9d\xa6\x2a\x93\x91\xcf\xe6\x28\x69\x75\x48\xb0\x5f\x8a\xf3\x9e\xa9\x82\x1d\x76\xc3\x14\x47\x8e\x21\x0f\xbc\xd2\x7f\xbf\x6b\x0b\xf4\x60\xa6\x5d\xbc\xba\xdc\xdd\xfc\x01\x78\xec\xe1\x35\x26\x4a\x7d\x7c\x5b\x70\x53\x20\x8b\xfb\xde\x54\xe3\x33\x8d\x90\x19\x27\xe9\x5e\x1d\xc8\xee\xb7\x3d\x29\x9e\x6f\xa6\x58\x45\x55\xcf\xea\xfd\x19\x25\xe9\x5e\x0b\x35\x58\xdd\xec\x64\x11\x75\xfc\x72\x93\xc0\x31\x02\x66\xac\xe1\x8b\xbb\x16\xf9\x08\x4f\xd4\xac\x22\xad\x2d\xc8\x52\x8c\x3f\x3f\x33\x26\x84\x03\x9e\x74\xb3\x90", p, q, g, b"\x0a\xa0\x40\xbb\xb2\x3c\x33\x7d\x58\x87\x4d\x95\xef\xe9\x27\x70\x80\x86\x2e\xa0\x88\x8d\x92\x09\xec\xc2\xf5\xd7\xe0\xd5\x6b\x3e\x84\x44\xca\x93\x38\x00\x45\x0f\x10\xb8\x12\x4f\xf8\x81\x2f\x87\xe1\xbe\xcf\x1a\x31\x7a\xce\x0c\x3a\x13\x76\xd6\x24\x93\x8c\xab\x61\x7b\xb5\x46\xd0\xaa\xd4\xf1\xd0\xaa\x23\xc6\x67\x0c\xfa\xe0\xda\x28\x66\x03\x93\xa9\x09\x11\xb3\xdb\xe3\x84\x7e\xab\x4e\xbb\x7d\xd0\x50\x4a\xeb\x02\x69\x12\x66\x55\xd1\x35\xd2\xe9\x14\x9c\xd8\xac\x52\x21\x15\x16\x40\x91\x4d\x48\x05\x69\xb3\x83\xe9\x83\x64\xcc\x41\xce\xc5\x6e\xa1\x57\xce\x8d\x7e\x73\xa9\x49\xb3\x48\xe5\xff\xd3\xce\xef\xea\x7f\x76\x25\xf5\x99\xaa\x9a\xfe\x2d\xb4\xcf\x3b\x0d\x59\xf2\x70\x0f\x6c\xec\xc5\x4f\x8b\xf7\x85\x38\x92\xf0\x73\x37\xdb\xe7\x6b\xe7\x81\x99\x4e\xf4\xe1\x4d\xf2\xf0\xcf\x7c\xb3\x42\xee\x1c\x8b\x18\x8a\x7d\xcc\x31\x7a\x09\x7c\x9f\x9e\x33\xff\x89\x46\x2c\x26\x46\x5b\xb5\x3e\xec\x05\xd1\x08\x5f\xc6\x15\x6c\xad\x0f\x7c\x9b\x80\xd2\xa6\x89\x53\x50\x1a\x97\xac\xb7\x46\xac\x3a\x2b\x9b\xdc\xf1\x8d\xfc\xea\xa1\x96\x71\x6e\xc7\x73", b"\x84\x93\x4f\x3f\x56\xd6\x48\x15\xfc\x66\xb0\xdb\xf3\xb1\xfa\x56\xd1\x38\x7b\xe7\x61\x1a\x1e\x57\x1c\x40\x51\x00", b"\x43\x1f\x11\x34\x69\x50\xe7\x7c\x9e\x9e\xd0\x12\x7c\x50\xbf\x62\x0f\x6f\x69\xa6\x99\xcd\x01\x7c\x7d\x87\x36\x8a", ); test::( b"\xd4\xc5\xb4\x39\xa1\xcc\xf5\xd9\x8c\xf0\xb9\x31\xf2\x53\xf7\x33\x03\x79\x21\xd4\xef\xb0\x2c\xf8\x7b\x25\x09\xe7\x32\xa5\x6c\xcb\x49\xe0\xc8\x3b\x14\x09\xcc\x00\x9f\x1d\x2d\x1c\xb4\xc0\xc7\xab\x00\xc4\x02\xee\x01\x8e\xc5\x09\x80\x31\xac\x9e\x71\x97\xd4\x39\x5d\x49\x17\x21\x70\x8a\x41\xff\x5c\xda\x5a\x03\xbe\x6a\x11\x69\xbf\x45\x94\x70\xb1\xaa\xf5\x3c\x8a\x96\x68\xac\xae\x13\x85\xb9\x21\xf5\xa2\x6c\x73\x36\x54\x44\x51\x5c\x3c\x12\x6c\x69\x40\xb4\xbf\x57\x59\x1a\x0b\xfd\x6c\x2c\x74\xc7\x24\x42\x6c\xb2\xad\x3f", p, q, g, b"\x37\xc5\xf0\x29\x81\x63\x22\xda\x51\x61\xc4\xe2\x0d\xc4\xf5\xab\xde\x9f\x04\xf5\xf9\xdf\xf5\xd5\x81\xb2\x53\x10\x91\x91\xb3\x84\x24\xdd\xe7\x5f\xeb\xac\x32\xd6\xce\x31\xb1\x16\x06\x34\x94\xa7\x0c\x5c\x1d\x9d\x8b\x73\x51\x25\x2e\xd3\x77\xea\x38\xfb\xe8\x5b\x9f\x61\x4e\xca\x13\x46\xbf\xf6\x53\x45\xd5\x7e\x64\x6b\xfb\x03\x2e\x9b\xef\xa9\xe6\xe5\xa8\x9c\x16\xd7\x15\x42\x0e\x24\x12\x9b\x6f\x70\xe4\xf6\x81\xbc\x1d\x38\xad\x17\x37\xdb\x79\x65\x5d\x24\x4b\x4d\x67\xad\x3d\x2b\xd8\x0f\xd9\xd8\x0c\x2e\x15\x24\x02\x14\x85\x9f\xdc\x0b\x6c\x43\xdd\x1e\x80\x5d\xcd\xd2\xa5\xb9\x78\x13\x97\xbd\x4a\x4e\x8b\xc4\xd6\xf9\xa1\x66\x40\x36\xe9\x0c\xac\x55\x0e\x83\xd6\x64\x13\x67\x61\x37\x07\xd0\xde\x4f\x2d\xee\x55\xe9\xa5\xbe\x6d\x3d\xe8\x93\xd6\x15\x61\xf4\xba\x90\xd3\x87\xb7\xab\x48\x80\x10\x86\x01\x6c\x84\x2f\x3e\x0c\xe6\x0e\x6b\x46\xaa\x98\x01\x91\xcb\xa1\x47\x40\x7a\xa4\xcc\xbe\x19\xb0\x0b\x0a\xc7\x16\x48\xd5\x29\x6d\x13\xe4\x8c\x75\xd5\x28\x48\xbb\xd3\x9f\x1d\xed\x98\x8c\x36\x16\xfa\xaf\x64\xf9\x1a\x30\x74\x25\x06\x31\x68\x93", b"\x1b\x51\xb8\xd2\xd3\xee\xb3\xd6\x21\x8d\xa3\x49\x47\x14\xd0\xe8\x8c\xd7\x36\x6f\x38\x7e\x6e\xde\x00\xf6\x53\xe0", b"\x84\x42\x03\xa8\x1f\xb3\x8f\x57\x50\x5b\xf8\x3b\xc8\xc1\xda\x00\x2a\x39\xe8\x1a\xbb\xdd\x2f\x99\xab\x6a\x4d\x65", ); test::( b"\x40\xd4\xd9\x73\x6b\x54\x99\x3c\x1b\xce\xe7\x07\x1c\x68\x23\x90\xd3\x4d\x47\xc3\x5f\x17\x79\x39\xca\x5b\x70\xf4\x57\xb3\x45\x8f\xd5\xec\xa4\xcb\x03\xf0\xef\xe1\xae\xc1\x0b\xf7\x94\xb8\x41\x21\x60\x56\xa1\x55\xda\xb5\x8a\x3d\xbf\xc1\x9d\xdf\x05\xd4\x58\x61\xba\xe6\xee\xa2\xbd\x7f\xfb\x87\xa6\xfd\x0f\xd2\x39\x4e\x84\x7d\xc3\x6c\x94\xc8\x15\x61\xde\xe1\x20\x77\x9b\xbe\xcb\xc3\x22\x06\x32\x7f\xeb\xaa\x17\xc9\x65\x05\xec\xb9\x7d\x56\x0c\x93\x4c\x38\x6f\x6f\x76\x6a\x2f\x51\x54\xf5\x45\xf2\x21\x81\xc1\x9f\xc6\x98", p, q, g, b"\x24\xaa\x1c\x7c\x6a\x04\x1f\x6d\x2c\x53\x30\x06\xce\xbc\xc2\xad\x04\x8b\x3d\xc0\x8f\xa8\x62\x82\xf5\x87\x9a\x23\x72\x31\xd2\x30\xcd\x85\x4a\xa1\x01\x58\xce\xbb\x45\xf3\x87\x92\x3f\xad\xa8\xc5\xf4\xb9\x1a\x7b\xc2\xdc\x3e\x2c\x39\x46\x37\x97\xe6\xeb\x19\x58\xab\xc9\xb9\xe7\x48\xbb\xfe\x80\xe3\x60\x23\x3e\x96\x95\x22\x79\x95\x9a\x6b\x80\x61\x91\x00\xf6\xf1\x87\x6f\xad\xeb\x79\x04\x91\x46\x2f\x59\x17\xda\x36\xce\xa3\x79\x3c\x44\xdb\x90\x90\x8c\xb9\xda\x18\xf6\x96\xce\xd9\x0f\x2a\xcb\x82\x63\x55\x10\x4c\x4c\x8f\x06\xc7\x37\xd4\x8a\xcf\x98\x5d\x6b\x8c\x2a\xbf\x31\x80\x72\x82\xb6\xe6\x51\xd2\x96\x7a\x16\x90\x7b\xe3\xd8\xe4\xb7\xf3\x2e\xd3\x4e\xba\x8c\x26\x2d\x6c\x0e\xcb\x13\x19\x46\xd2\x54\x63\x62\xc2\x17\xae\x19\x5d\x05\x65\x6a\x4f\xcf\xac\x73\x71\x7a\xe8\x5a\x57\x1d\x81\x1c\xbc\x99\xe0\xb3\x12\x4b\xba\x76\x7f\xea\xd6\x05\x26\x6d\x99\x02\x1c\xdd\x8c\xb4\xc0\x81\xbe\xf1\x02\x43\x10\x07\xee\x12\x52\x3b\x48\xbb\x83\x86\x98\xa5\x97\x1e\x51\x72\x52\xd6\xd9\x3e\x1c\x7f\xe9\xfb\xe0\x7b\xf4\x34\x16\x4b\xaa\xa1\x02\x6d\xa4", b"\x32\x5a\xa7\xb1\x73\xca\xc9\x6d\x58\x65\xaa\x50\xea\x54\xe5\xdf\x45\xa1\x0e\x72\xfd\x5d\xd1\xfb\x26\x5a\xae\x09", b"\x0a\x72\x03\xf6\xb8\xfb\xf6\x68\xb8\xf6\x43\x5e\x92\x9f\xd5\x2f\x52\xe2\x3a\xd4\xb8\xa1\x56\xae\x5f\x3c\x9c\x47", ); // [mod = L=2048, N=224, SHA-384] let p = b"\xa6\xbb\x53\x33\xce\x34\x3c\x31\xc9\xb2\xc8\x78\xab\x91\xee\xf2\xfd\xea\x35\xc6\xdb\x0e\x71\x67\x62\xbf\xc0\xd4\x36\xd8\x75\x06\xe8\x65\xa4\xd2\xc8\xcf\xbb\xd6\x26\xce\x8b\xfe\x64\x56\x3c\xa5\x68\x6c\xd8\xcf\x08\x14\x90\xf0\x24\x45\xb2\x89\x08\x79\x82\x49\x5f\xb6\x99\x76\xb1\x02\x42\xd6\xd5\x0f\xc2\x3b\x4d\xbd\xb0\xbe\xf7\x83\x05\xd9\xa4\xd0\x5d\x9e\xae\x65\xd8\x7a\x89\x3e\xaf\x39\x7e\x04\xe3\x9b\xaa\x85\xa2\x6c\x8f\xfb\xde\xf1\x23\x32\x87\xb5\xf5\xb6\xef\x6a\x90\xf2\x7a\x69\x48\x1a\x93\x2e\xe4\x7b\x18\xd5\xd2\x7e\xb1\x07\xff\xb0\x50\x25\xe6\x46\xe8\x87\x6b\x5c\xb5\x67\xfe\xc1\xdd\x35\x83\x5d\x42\x08\x21\x98\x53\x1f\xaf\xbe\x5a\xe2\x80\xc5\x75\xa1\xfb\x0e\x62\xe9\xb3\xca\x37\xe1\x97\xad\x96\xd9\xdd\xe1\xf3\x3f\x2c\xec\x7d\x27\xde\xae\x26\x1c\x83\xee\x8e\x20\x02\xaf\x7e\xb6\xe8\x2f\x6a\x14\x79\x6a\xf0\x37\x57\x7a\x10\x32\xbb\xc7\x09\x12\x9c\xaa\xbd\x8a\xdd\xf8\x70\xae\x2d\x05\x95\xc8\xfd\xb3\x71\x55\x74\x8f\x0d\xea\x34\xb4\x4d\x4f\x82\xed\x58\xc2\xf5\xb1\xb8\x48\x16\x62\xac\x53\x47\x3c\x69\x34\x10\x08\x2f\xbd"; let q = b"\x8c\x3e\xe5\xbd\x9a\x2a\xaf\x06\x8b\xd5\x84\x5b\xd5\x5e\xcf\x27\x41\x70\x55\x30\x75\x77\xbb\xc3\x77\x0e\xc6\x8b"; let g = b"\x43\xb5\xa6\xb6\xd0\xbb\x96\x2e\xc9\x76\x6a\x37\x7c\x32\xcc\x41\x24\xf1\x31\x11\x88\xc2\xec\xf9\x5c\x0c\xd4\xa4\xfa\x09\x72\x25\xb7\x61\x8c\xb1\x27\x6c\x47\x45\x78\xd3\xbf\x56\x4c\x14\x51\x99\xc0\x92\xa1\xb1\x4b\xaa\x92\x9c\x2f\x3f\x0f\x36\xe0\xc2\xda\xe9\x1e\xba\x08\xbe\x30\x99\x2a\x88\x9f\x29\x52\xe0\x44\x2c\x37\xaf\x48\x4a\x4e\xcd\xc3\x24\x3c\xcf\xcb\x9e\x34\x13\xcf\x5c\xdd\x66\x30\xb0\x9f\xe1\x7e\xfb\xfd\xe1\x4d\x87\x25\x49\x30\x19\xb7\xb7\x3d\x1f\x78\x2b\x48\xef\x30\xbe\xc3\x6e\x00\xe0\x2b\xa3\x36\xd2\x25\x4f\xc2\x02\xa6\x96\x12\xcd\x94\x46\xf9\x1d\x76\xb7\x39\xff\xa6\xd8\xb8\x60\x52\xf8\xdc\x5f\x11\x45\x80\x1c\x56\x24\x1a\xf5\xba\x90\x37\x24\x1b\xd8\x9e\x63\x38\xb5\x8e\x01\x31\x06\x71\xc2\x68\xeb\x5e\x33\xac\xb5\x7d\x1f\x99\xf1\x64\x40\xa6\x75\x82\x7d\x40\x17\x75\x4d\x60\x1a\x17\xad\xa2\xfb\xed\xf9\x04\x55\x4a\x90\xb0\x15\x30\xda\x8c\x93\xcd\x14\xce\x29\x3c\xb2\xbd\x3e\x79\x37\xe9\x34\xb7\x9e\x31\x0f\xe4\xd8\x0c\x13\xf9\x2f\x63\x38\x13\x55\xbd\x80\xa1\xab\xee\x1a\x73\xfd\xfb\x6d\xa2\x4e\xf2\x80\x02\xa3"; test::( b"\xdf\x5d\x56\x4d\xb8\x35\x92\xc1\x12\x8b\xe5\xd2\x9b\x70\x36\x88\x0d\x55\xe8\x34\xa2\x91\xa7\x45\xed\x8d\xcd\x43\x8c\x4d\xa6\xb1\xb9\xf3\x94\x12\xb2\xc5\x11\x07\x30\xdb\x83\xc1\xcc\xdf\xe9\x05\x9d\xd9\x6e\xc7\xea\x2b\xbc\xb3\x4e\x3e\xba\x72\xef\x0a\x1d\x47\x21\xc7\xc0\x22\x1e\x29\x27\x9f\x01\x4d\x63\xfa\xcc\x5b\xc8\xf1\x8c\x53\x9b\x92\xff\x2a\xf8\x9e\x56\x82\x25\xd6\xb4\xcf\x59\x9c\xb3\xdf\xf5\xe3\xc6\xdd\xfa\xc0\xa2\x7f\x10\xf6\x36\xec\x22\x0a\xbb\x72\x63\x0b\xae\x9a\x39\xc1\x8f\xd3\x66\x3e\x46\x51\xcc\xac", p, q, g, b"\x64\x79\x79\xb7\x96\x0c\xe7\xb9\x71\xff\x0e\x5f\x64\x35\xf4\x2a\x41\xb1\x8c\x9d\xe0\x9a\x30\x11\x14\xa0\x13\xa7\xcd\x01\x18\x3f\x17\x6f\x88\x83\x83\x79\xdc\xb4\xef\xb6\x7d\xae\xa7\x9d\xef\x3f\x04\x2c\xbc\xf9\xcc\x50\x3b\x4c\x21\x51\xa2\x36\x4f\x7c\x94\x37\xb1\x96\x43\xe6\x7e\x24\xa3\x6b\xac\x4a\x4c\xfa\x29\x3d\xee\xdf\x8e\xc6\xb1\x54\xa3\x2a\xa7\x29\x85\xf7\xd8\xde\x23\x53\x34\xb5\x46\xc2\x9d\xef\x45\x8c\x55\xd0\xc5\xc0\xac\x5d\x74\xe2\x02\x4e\xc7\xd4\xab\xc2\xfd\xa5\x16\xa2\xa0\xb1\xa4\xd8\x86\xad\x92\xc2\x04\x70\x78\x28\xa4\xfc\x77\x94\xf6\x0e\xe8\xa4\xbe\x11\x01\xc9\xe5\x51\x8f\x7e\x19\xee\xbd\x47\x5f\x2d\xe6\xf6\xba\x89\xc2\x8b\xd1\x29\xf1\x39\x93\xbe\xfe\x58\x18\x44\x03\x19\xa7\x95\x49\x83\x31\x96\x34\x2a\x31\xdb\xaf\x7d\x79\x49\x7d\xec\x65\xee\x7d\xbe\xf7\x0e\x58\xf9\x9d\x05\x95\xf6\xa7\x11\x40\x9a\xde\x31\x51\xd4\x55\x63\xd5\x3c\x1c\xd0\xa8\xab\x1a\x18\xbe\xff\x65\x02\xcb\xb0\xc0\x69\xb1\x14\xea\x7b\xe7\x78\x98\xd0\xf4\xe5\x49\x99\x1b\xa0\xb3\x68\x97\x1b\x10\x72\xec\xe4\xaf\xc3\x80\xe9\xae\x32\x9a\x50", b"\x5a\xb4\x3e\xde\x66\xa1\x56\x88\x14\x6d\x1f\x4c\xd7\x16\x47\x02\xc0\xc4\x45\x7b\xd4\xfd\xde\xba\xc0\x48\x29\x53", b"\x6c\x58\xe8\xab\x27\xd2\x85\x12\xc4\x60\x63\xc9\x6b\xf5\xbc\xeb\x8f\xba\xd2\x32\xd8\xf5\xb3\x9c\x47\x55\xd0\xb1", ); test::( b"\xeb\xeb\x9e\x2b\x69\x2e\xc6\xc9\xaf\xad\x2a\x0c\x2b\x90\x89\x39\x94\x3f\xdf\x4b\xb7\x43\x8e\x3b\xd9\x28\x8e\x76\x81\x98\x40\x87\xff\xdc\xf8\x65\x02\x07\x9c\x29\x12\x36\xd7\xf1\xad\xb5\x04\xe6\x7e\x0f\x88\xbe\xe6\x1b\x61\x71\x70\x14\xcf\x06\xb5\xfa\xd5\xcb\x36\xf1\xb2\x23\xb6\x39\x12\xcd\xcd\x2b\x94\x16\x52\x4d\x37\xf5\xd7\xb0\x5c\x37\xd1\x78\x96\x69\xe1\x41\xaf\xf6\x67\x0d\xb2\xe0\xde\x31\x67\x3b\x20\x55\xf6\x79\x9a\xc8\x87\x93\x7e\x56\x64\xa6\x59\xea\x02\x54\xa8\xd4\xba\x6f\x20\x4d\xf2\xa3\x8c\x2a\x77\xe4", p, q, g, b"\x31\xd3\x1a\x5b\xb8\x28\x74\xbd\xc7\x6c\xab\xae\x3e\xc8\x56\x90\xaa\x51\x03\xca\xcb\xe5\x23\x4e\x0d\x5e\xf6\x45\xee\xf3\x80\xd3\xae\x2f\x62\x39\x14\x4b\x82\xb1\x01\xa7\xef\x47\x44\xaa\xdb\x8f\xc9\x8e\x82\xb4\x13\x72\xe9\x9d\x6c\x90\x5c\xa9\x74\xb8\x1c\x9f\xa5\x21\xf9\x20\xa1\xdf\xfa\xb4\xe2\xee\x15\xf6\x1e\x03\xb7\x42\xf4\x24\x70\xdc\x2f\xa9\xab\x25\x7f\x11\x36\xf9\xfe\x4b\x5a\xa2\xec\xe5\x20\x72\x30\xc4\x90\x6d\x67\xa1\x56\xa3\xff\xef\x47\x0c\xbf\x3a\x65\xe3\x18\x9b\x38\x9d\xdc\x66\xc6\x04\x0a\x79\x95\xc6\x8a\xe1\xdf\x20\x85\x94\x1b\x5b\x1d\xf7\xd9\x57\xfb\xcf\x36\x68\x24\xe0\x29\x1d\xf8\x8e\xae\x55\xd8\xd3\x04\x0d\x8d\x09\xf4\xf6\xff\xee\x34\xcc\xbd\x19\x61\x85\x2a\x5a\x62\xb2\x6c\x8d\xaa\xaa\x56\xa8\xff\x7f\xa8\x63\xb6\x3c\x6d\x60\x4f\xd3\x37\x82\x62\xe8\x15\xf5\x51\x71\xdc\xa3\x5d\x04\x76\x1f\xe3\xd9\xed\xdc\x6d\x32\x65\x7a\x96\xd6\x43\xd4\x60\x8e\xf2\x14\x3b\x19\xf1\xc9\xd8\xc0\x0e\xd2\x65\x47\x1b\x24\x5b\x60\xf3\x1f\x8c\x7e\xd4\x8d\xd6\xb1\x8b\x5b\xec\x1a\x6e\xde\x14\x5d\xea\x40\x28\x32\x30\x72\x4e\xc8", b"\x82\xc3\x74\x7a\x06\x58\xdf\x00\x6a\x7a\x20\x5a\x6a\xe2\xae\xdd\x5d\x29\x48\x48\x85\x59\xfc\x3c\xfd\x64\x3a\x64", b"\x86\x36\x79\x6d\xf6\x22\xd1\x3f\x07\x0f\xbe\xd4\x18\x4c\x81\x38\x35\x8c\x21\xdb\x30\xc6\x06\xb8\xf9\xbe\x52\x1a", ); test::( b"\xdb\xd2\x51\x6b\x03\xfd\xc5\x8b\x32\xc0\x23\x30\x80\xff\xee\xa4\x1c\x0d\x9c\x15\x6b\x30\x33\x2e\xc4\x2b\xe5\xe1\x05\x84\xbe\x3e\x3d\xb8\x5f\xfd\x5b\x5b\xae\x16\xfc\x87\x6a\x0c\x92\x17\x62\x7d\x84\x01\x12\x23\xfa\xb5\x7d\x17\x6d\xef\x61\xe4\x0d\x91\x2e\x7e\xeb\x2b\xf8\x68\x73\x4a\xe8\xf2\x76\xa9\x6a\xb1\x3d\xe5\x58\xec\x42\x61\x41\x67\xc5\xaa\x4c\x60\x35\x7f\x71\xfa\xc5\x89\x80\xe5\x79\x44\x0f\x69\x96\x8d\x22\x80\xbc\x97\x0d\x00\x66\xb5\xbd\x6a\x6f\x50\x02\x48\x15\x10\x25\x6b\x3e\xb2\x1b\xbb\x92\xef\x2c\xdd", p, q, g, b"\x6e\x6e\xe0\x31\x9a\xf8\xfa\xfd\x7a\xe0\x20\x13\xf4\x22\x7e\x26\x62\x44\xae\x5d\x87\xfe\x15\x6c\xef\xd4\x51\x8b\xcd\x71\xaa\x73\xf9\x36\x4b\xff\x35\xd4\xd2\x3d\x45\xb0\xf4\x7d\xfe\x93\xa6\x07\xd9\xf8\xb3\x99\xb4\x24\xba\x75\x07\x2f\xdc\xed\x6c\x3e\xd2\x11\x06\x06\xfa\x48\xed\x63\x3f\xae\xf2\x06\x4f\xb3\x36\x06\x9e\xec\x7e\xbd\x8a\xe4\x75\x97\x83\x89\xe6\xe4\x33\xd5\xa4\x35\xd6\x52\x9a\x66\xc4\x89\xce\x15\x39\x40\xd2\xb1\xb8\xc8\x86\xc8\x11\x0d\x8b\x0a\xeb\x64\x1a\x40\xe2\x85\xd6\x75\x1c\xe7\x10\x27\xc3\x0e\xc6\x2f\x4b\x1f\xc1\x4f\x4d\xa2\x0b\x1d\x50\x57\x42\xca\xda\x20\x1c\xea\x81\x93\x0c\x38\x1f\x8a\x6f\x13\xdd\x0a\x42\xaa\xc1\xe0\xbd\x7f\xcd\x19\xc6\xbd\xd1\x70\xfa\xc6\xa4\x23\x76\x7b\x83\x1c\x1e\x28\x9e\x0a\x29\xef\x85\xd8\x17\xad\x23\x8d\x91\xac\x3a\xce\x2f\x40\xa1\x63\xb0\xa9\xbb\xdd\xc6\xf0\x5d\x0b\xdc\xd8\xcc\x27\x4a\x74\xd0\x74\x3c\x9f\xb5\x65\x56\xec\x1c\xb8\xe9\xcb\xa9\x82\xc1\x5a\x9a\x66\xfa\x6b\x69\x99\xb8\x48\x5d\xb1\xa8\x6e\xe1\x8b\xe1\x6e\x06\x8e\x12\xa8\xa1\x65\xe3\x59\x9d\xf9\x66\x69\xa1\xb7", b"\x04\x04\x05\x13\x6a\x12\x20\xad\xbb\x64\xab\x75\x1d\xb3\x30\x7f\xaf\xad\x54\x47\xab\x2d\x9b\xcc\x52\xf7\x9b\xe3", b"\x1d\x35\xf3\x26\x9c\x77\xc5\x77\x24\x3f\x1d\xb8\xdf\xdb\xc4\xcc\x45\x31\x57\x42\x76\xf0\xda\x1f\x7a\x44\xac\xd4", ); test::( b"\x34\xc4\x54\x35\xd0\xcc\x29\x26\x92\x72\xa9\x3d\x43\x32\x06\x98\xe4\x54\xa7\xc2\x87\xdb\x9d\x06\x20\x92\xac\xac\xd7\xca\x08\x64\x55\xe5\x83\xba\xee\x12\x76\xca\xba\x06\x8f\xde\xeb\x52\x18\x33\x96\xd5\x44\x4c\x5a\x14\xad\x52\xa5\xc2\xbc\x08\x2c\xd8\x74\x52\xaa\x8f\x9b\x23\x05\x6b\x5f\x8a\xf2\x63\x8d\x96\x5e\xf4\xfe\x6e\x4e\x68\xe8\x8b\x0f\x50\xe0\x12\x48\xfe\x6a\x6a\x1d\x9d\x6d\x93\xb0\x3c\xd5\x5d\x16\xfd\x83\xcd\x4e\x06\x76\x3d\x92\x6f\x7c\x50\xf2\x0f\x0e\xd6\x73\x06\x13\xf0\xf4\xdb\x57\x1e\x22\xd2\x88\xe4", p, q, g, b"\x5e\xbd\x81\x52\x93\x5f\xf2\xa3\xf9\xa6\x1b\x27\x5e\x98\x08\xa0\x41\xaa\xd5\x65\x0f\x59\x3f\x61\x2a\xf3\x3b\xc4\x62\xb8\xc9\x94\x16\x93\x72\xe8\xf8\x0f\x51\xb1\x5f\x5c\xe9\x66\xea\x3e\x76\xa9\x12\xc6\x53\x97\x83\x37\xe9\x62\x21\x9e\x32\x3b\x6e\x92\x2d\xea\x4b\xcc\x23\xc6\x46\xa2\x2e\xec\xde\x02\x43\x31\x26\xfb\xac\xe0\xe3\xa0\x1f\xa6\xd0\xb9\xfd\xea\x92\x45\xd6\x78\x99\xa7\xb7\x45\xb8\x84\x7c\x80\x87\xfa\x7f\x6c\x0f\x3e\xda\xfa\xb4\xc3\xb4\x72\x20\x82\x1f\xe4\x6f\x1b\xcb\x00\xa3\x23\xdf\xf3\xde\xe4\x7e\xe1\xde\x2e\xce\x44\xe1\xfd\xf3\xe6\x4a\xa2\x0c\x9e\x6b\x58\xe5\x34\x48\x2e\x73\x13\xda\xce\x1c\x61\x7d\x8e\xa9\xa6\x5d\xd5\x1f\xd3\x30\x24\xf7\x35\xc3\x84\x4c\x5c\x6b\x4a\x3f\x44\x7e\x71\x4a\xb0\xc1\x7d\xc8\x8e\x33\xf0\x8b\x14\x2b\x72\xe8\x11\xe6\xda\x00\x29\x9c\x82\x89\x8a\xaf\x2b\xed\x5a\xe5\x17\x0c\x1d\xd0\x05\x67\x8d\x2b\x57\x6b\x9c\xe3\xe6\xbc\x6b\x2a\xeb\x04\xc9\xf0\x4e\x44\x4e\x2a\x98\x08\x40\x5f\xf5\x92\x65\x48\xb5\x93\x04\xdd\xdc\xa8\x97\x26\x31\xf7\xfb\x13\x68\x08\xe2\x13\xec\xd9\x3a\xf9\x8e\x2e\x54", b"\x66\x48\x1f\x24\x1f\x6b\x44\x31\x48\xf0\xb1\xf2\x45\x9b\xe5\xca\x16\x41\x3d\x94\x7d\x09\x81\x62\x87\x17\xc1\x08", b"\x2c\xda\xa7\x35\x00\xd0\xad\x29\x12\x52\xd0\x7c\xef\xf9\xcf\xea\xb8\x7a\x73\x97\x52\x29\x1e\xb5\xdc\xef\xea\x87", ); test::( b"\xd7\xac\x5c\xc8\xa4\xc3\xf3\x8c\xfe\x5c\x0e\x10\x68\xea\x28\xf0\xf9\x5d\x32\x50\xd1\xae\xae\x5f\x66\xbd\xc4\xd2\x2e\x23\xe2\x46\xff\x30\x42\x9c\xbc\xba\xd3\xb0\x2a\x62\xa0\xa1\x79\xd4\xd1\x07\x13\x0f\xa3\xa7\x80\xc0\x09\x2c\x32\x9c\x2b\x02\x6e\x12\xe6\x73\x5a\x75\xc4\x95\xb0\x97\xaa\x69\xeb\xe9\x8a\x96\xff\x89\x12\x34\xff\x37\x95\x11\x14\x9e\x07\xc6\xe2\x41\x1e\x58\x97\x6e\xe9\x3f\xba\x7d\x3d\x57\x0c\x91\x1f\x6f\x20\x83\x75\x78\x3f\xf5\xd9\x47\xa3\xaf\x0c\x83\x9d\x21\x0a\x8e\x4a\x8c\x8f\xa4\x1e\xfb\xc5\x7e", p, q, g, b"\x7b\x5f\xb0\x22\xb5\x5f\xb6\x1f\x8e\xf8\xcd\xbf\xee\x46\xc0\xfc\x61\xe5\x9f\xc6\x2d\xee\x5c\x14\xd0\xc3\x13\x4b\x4f\x26\x59\x11\x2e\x3f\x4e\x70\x17\xf9\x57\x4a\x27\x24\x18\x8b\xa6\xa1\xce\x77\x7a\x89\x15\xbc\x11\x71\xd7\x38\x75\x4b\x5a\xc1\xdf\x92\x31\x03\xad\x7b\x19\x85\x11\xed\x36\x27\x26\x68\xae\x0c\x2e\x31\x42\xba\x01\x1c\xb4\x5f\x89\x3d\xdb\xf7\xb3\x86\x25\x81\x8c\xba\x9a\x9b\x78\xae\xf8\xd0\x60\x07\xed\x50\x5e\x6d\xd6\xe2\x0c\x92\xd2\x50\x02\x34\xf1\x04\xc1\x28\x3f\x7c\x00\xcf\x2a\x3a\x32\x45\x8d\x97\xf7\xbd\x17\x09\x0f\x76\x23\x5c\x6c\x4f\x8a\xe1\x94\xd5\x2d\x67\xc7\x4a\x85\x49\x73\xfd\x12\x47\x51\xf7\xf5\x80\x4b\x67\x87\x9b\x02\x3b\xb6\xee\xac\x76\xe9\x6f\xe6\x76\xda\xeb\xbc\xb1\xbc\x94\xd5\xd8\x51\xd7\xbc\x56\xbf\xb3\xd2\xa0\xa6\xd9\x92\x31\x37\x86\xd9\xfb\x38\xad\x29\xb7\x62\x34\x94\x51\xd1\x49\xd0\xe5\xfd\xe6\xad\x49\x71\x83\xe3\x52\x82\x8e\x25\x1b\xcc\x7c\x3a\x91\x8b\xe4\xd0\x3b\x17\xaf\x60\xf3\xf3\xef\x6d\x9f\xb2\x45\x5d\xf7\xe8\xb6\xb1\x69\x47\x5e\x5f\x89\xdb\x99\x08\x54\x1b\x56\x7d\x0f\x29\x9b", b"\x5b\x6b\xe6\xba\xd7\x25\xaf\xa4\x42\xf2\x9a\xb7\xd3\x43\xd2\xf8\xb4\xb4\x94\x1c\xbd\x23\xd6\x91\x64\xb3\xc5\xfd", b"\x3a\x1b\x94\x63\x4e\x31\x3f\xc4\xdf\x82\x92\xe0\x38\xc6\xe8\x76\x33\x6c\xef\x88\xd6\x91\xb8\x94\xc0\xec\xcd\x3f", ); test::( b"\x7a\x96\x87\x3f\x07\x77\xe8\xad\xa9\x86\x75\x32\xae\x5f\x51\x93\x8b\xae\x2d\x56\xfb\x47\x1e\x0f\xef\xa6\x93\xb7\x1a\x2a\xea\x25\x71\xc0\x10\x8b\xa5\x9e\x63\x44\x01\xbb\xaf\x20\xa8\x48\xad\x8c\x30\x58\x48\x42\x0c\xee\x65\x4a\x30\x40\x00\x7f\x05\x5d\x4e\x97\x58\x07\x89\x4b\x56\x18\xb9\x39\x23\x63\xbc\x7f\x8c\x88\xd5\x26\xbc\x49\x1a\xdb\xd8\x92\xa9\x37\x51\xa2\x1d\x13\x7c\xee\xde\x8a\x04\x42\x3a\x4d\x0c\xa1\x55\x7b\xcf\x33\x4e\x4f\x85\x5b\x04\x47\x45\x44\x21\x29\x29\xa8\x1d\xc7\x1f\xb3\xfc\x41\xf7\x0d\x6b\x18", p, q, g, b"\x05\x31\x51\x81\x77\x08\x7d\xff\x8d\x04\xa0\x66\x6c\x13\x01\xa9\xb3\x84\x27\xc2\xea\x1b\x16\x2e\x6f\xca\x52\x01\x81\xef\x22\xa2\xd2\x05\xce\xff\xff\xb1\x54\x9c\x97\x07\x80\x55\x60\xc6\xc4\xb3\x19\x43\xd5\x25\x56\xbf\x30\x1c\x5e\x0e\x75\x92\x4f\xbe\x6b\x5c\x36\x2f\xc9\x80\x17\x53\xe6\x30\x43\x3a\x9a\x34\x8f\x53\xe6\x2c\x07\x46\xb2\x6e\x34\x8d\xfb\x85\x85\x3d\x1e\xf6\xec\xa0\x2c\xf3\xf3\x43\xe7\x7c\x17\x69\xff\xc1\xc1\x09\xb8\x8e\xce\xa1\x6a\xb6\xcf\x47\x6e\x54\x31\x25\x00\x98\x36\x22\xdf\x41\xe6\x95\xec\x27\xa4\x1c\xa7\xa6\x31\x21\xba\x97\xbe\xe7\xb0\xe9\xd5\x47\xbf\x42\x0f\x64\x7d\x0f\x86\x71\xbf\x41\x07\xa7\x12\xa7\xdb\xc1\xaf\x3a\xa8\xd1\x5b\x98\x54\x8d\x39\x09\xf7\x2b\x9a\x27\xf8\x1c\x46\xe3\xde\xfa\x95\xea\xff\x75\x90\xc6\x26\xb9\xba\x10\x97\x4a\xe8\xb9\xf5\x85\x35\xd0\x9c\xa3\x0f\x9f\x52\x35\x39\xcf\x58\x4f\x9b\xc6\xc7\x41\x85\xc2\xff\x12\x50\x4f\x55\x98\xff\xde\x6f\x86\x02\x1a\xe5\x14\x56\x2f\xed\x38\x81\x19\x7f\xca\x22\xdb\x55\x90\xfc\xf9\x52\x2e\xf7\x60\xed\x0e\x36\x31\xa6\xbd\x79\xf2\x90\x00\xb4\x2b", b"\x76\xbd\x6f\xf4\xcd\xc4\xfe\x37\xf6\x70\x5e\x77\xef\xdc\xac\x6f\xbb\x9d\x54\xfc\x0b\x22\x06\x43\xc6\x62\xac\xbf", b"\x8a\x12\x4a\x36\x40\xad\x73\x28\x0f\x30\x5a\xfc\x2b\xc3\xe5\x7f\x7a\x2e\x07\x40\x81\xbe\x7b\xc9\x0b\x5b\x1f\xaa", ); test::( b"\xd6\x96\x94\xbf\x9a\x93\xac\x0c\xc3\x91\x59\x73\xd4\x0e\x35\x12\x47\xc3\xbc\xac\xa9\x80\x69\xcd\x9c\x1e\x7a\x3c\x58\x50\x63\x6a\x59\x2e\xa7\x5f\xae\x7b\xfd\x38\xb1\x29\x0e\x3f\x4d\x0a\xae\x8e\xe6\x89\xce\x41\x37\xea\x86\x8a\xae\xbb\x17\xda\xfb\x25\x5c\x4a\x20\xe0\xfa\xc1\xf4\x66\x66\x12\xf9\x0c\x46\x32\x0a\x62\x00\x2e\xde\x31\x67\xa3\x4d\xff\x74\xa3\x06\xa0\x84\x24\x27\xcb\x9d\x2c\x61\x59\x9b\x05\xc6\x7b\x67\x31\x44\xf6\xc0\x82\x32\xd7\x71\xf2\xe0\xaf\x38\x25\x3f\x36\xe1\x22\x87\x0e\x04\xeb\xc5\x4a\x51\x2f", p, q, g, b"\x9c\x58\x8b\x76\x26\x9b\x2f\x08\x7f\x7e\x7a\xf4\xec\x4c\x0e\xf2\x63\xe9\x63\x6f\x45\xe7\x3e\x60\x45\x02\xd6\x2f\xae\x90\xa2\x51\x01\xbc\x2b\xad\x2a\x00\x21\x27\xd4\xb6\x0f\x5c\x4a\x13\x88\x88\x0c\xad\xe9\x46\x3a\xb5\xf7\x99\x7d\x54\xa0\x2c\x24\xe7\xd5\x1a\x4b\x8a\x7d\x91\xcd\xf6\xaf\xca\x2b\x43\x37\x68\x09\x45\x33\xa0\xde\x08\xde\xc1\xf1\x9e\xcc\xb4\x6d\xf1\x80\x0f\x53\xd3\xdf\xee\xfb\xfb\x76\x9a\x80\xe1\x68\x6e\x8d\x53\xc6\x0e\x8c\x15\x11\xa6\xdd\x4f\x42\xa1\x55\xbd\x85\xf7\x57\x40\xbc\xbb\x7b\x11\x27\x59\x18\x22\x92\x6d\x16\x82\x98\x23\x75\xea\x5e\xc2\x9f\xd1\xef\x4f\x28\x3b\x94\xe0\x24\x23\xa8\x30\xb3\x5e\x97\x3c\xaf\x12\x37\x7e\xe1\x8d\x2c\x6e\xe7\x77\x11\x84\xd7\xa9\x4e\x7a\x0c\x4a\x01\x04\x4a\xfc\x4e\xfb\x2f\xfe\xcb\x69\x5e\x23\x3a\xeb\x80\xc5\x16\xc7\x7d\x1c\x73\x0d\x30\xd1\xaa\x4f\x39\xda\x51\xbc\xc4\x8f\x44\xd0\x7a\xbf\xbe\x75\xf2\x28\xab\xec\x2e\x72\x73\x59\x3c\x98\xf3\x23\xa9\xb0\x03\x56\x2a\x16\x87\x52\xe8\x37\xa1\x23\x2f\x46\x2a\x23\xd3\xb1\x85\xea\x8a\x05\x36\x15\x70\x45\x5a\xad\xd1\x03\x70\x63", b"\x10\x8a\x08\x2d\x2b\xf6\x35\x8a\x73\x74\x65\x62\x43\x20\xc4\xfa\x9d\x37\x19\x74\x4c\x2d\xb6\x9d\x18\x96\x3d\x75", b"\x42\x0f\x35\x37\xfa\x68\x58\x65\x7d\xb7\xa2\x1e\x72\xe1\x1e\xc0\xec\x8c\xc8\x5a\x09\xa0\xd1\xa4\x45\x94\x49\x80", ); test::( b"\x17\x45\x5b\xfb\xb1\x28\xdf\x0f\x96\x54\x4b\xbf\x83\xca\x0f\xf3\x74\xbc\x08\x6b\x2d\xe1\x8f\x74\xf5\x90\x49\xf7\x3e\xff\x3c\x8e\xf3\x2a\x48\x42\x9a\x40\x38\x25\x63\x04\x63\x6f\x30\x32\x19\x27\x95\xba\x28\x07\x40\x7e\xf5\x2b\x8d\x59\xb4\x0b\xfd\x51\x75\x83\xf9\x98\x81\x02\x79\xc0\x21\x17\x71\xd9\xe5\x4f\x2b\x84\xe8\x98\xf9\x89\x2e\xf7\x7b\xeb\xa3\x3f\xf3\x1a\x28\x68\x69\x3f\x1f\x09\x78\xb8\x98\x95\xe3\x50\xd5\xde\xd2\x59\xfb\x13\x97\xe9\xc6\x98\x99\x86\x45\x2a\x0d\x77\xdf\x99\x04\x8f\xff\x84\xb6\xeb\x15\x0e", p, q, g, b"\x85\x0c\x0f\xca\xc0\x73\xc5\x63\x18\xa9\x21\x04\x65\x4e\x6a\x8a\xe7\x67\x8f\xc4\x01\x47\x28\x30\x46\x49\xbf\x10\x70\x27\x77\x06\xfb\xd3\x2e\xa4\xd4\x1f\x77\xf8\x0a\x80\xc8\x8f\x27\x01\xe3\x66\x5b\xe7\x3f\x59\xf9\x14\xa9\x15\xd6\x6b\x41\x1b\xb0\x5a\xe5\xc1\x8b\x00\xbc\x21\x62\x51\x39\x97\x32\xfd\xc2\xa6\x8b\xe6\xa2\x1b\x3b\x08\x87\x97\x41\x6a\xe0\x5c\xe8\x76\xb6\x80\x2e\x4f\x94\x1a\x21\xb1\xc6\x61\xe3\xf0\x6d\x50\x1e\xf2\xa1\x76\x59\xf0\x88\xd2\x19\x5d\xd1\x61\xf0\x64\x04\x48\x7a\x27\xb7\x9d\xf1\xec\x57\x4a\xc3\xab\xc3\x0e\xce\x2a\x14\x28\xc5\xe0\xc1\xd4\xc4\x98\x03\x39\x8d\x07\x14\xca\xcd\x98\x53\x85\x4b\x08\x74\x6f\xa4\x53\x56\x15\x45\xe6\xf0\xd9\x6c\xd2\xc7\xce\x1b\x89\xbc\xac\xe1\xc6\x97\xec\x4d\x61\x6b\xf1\x4d\x18\x89\xa7\x9a\x80\x6a\x36\x99\xf8\x4f\x19\xef\xe6\x90\xfa\x13\xa3\xb4\x38\x3e\xbf\x77\x26\x14\x00\xfc\xbe\x30\x9c\x2e\x5e\xab\x0b\x24\xb1\x97\xcb\x85\x6a\xa2\x7d\x7d\x71\xd9\x2d\x32\xaa\xb6\x56\xfa\xec\x5f\xf7\x92\xec\xe5\x38\x74\xc4\x06\x9f\x54\x0d\x94\x8f\x8b\x2e\x55\x99\x08\x2e\x21\xf0\x2d\x72", b"\x42\x3d\xe9\xe1\x12\xec\x38\xe3\xa0\x34\xf5\xd9\x67\x5c\x76\xf9\xdc\x85\x36\xb3\x0d\x05\x67\x8a\x29\x63\xec\x16", b"\x74\x05\x1e\x79\x69\x9f\xa4\x4d\xe1\x8e\x36\xab\x11\x68\x73\x59\x3a\x31\x0e\x4e\x09\xdc\xe1\x8b\x83\x3f\xc2\xf5", ); test::( b"\xde\x1f\x96\x06\x26\x1f\xf8\x22\x18\xc8\xc1\x45\xaa\x4d\x58\x47\x67\x3b\x45\x9e\xb5\x5f\xe7\xe6\x45\x4c\x04\x43\x26\x6b\xbf\x80\x0c\x1d\x09\x05\x1f\x5e\x31\x41\xc4\x37\x0d\x1b\x99\x0c\xf5\xfe\xa9\xd2\x68\x39\x86\xc3\xbd\xd2\x82\x31\x07\x82\x9a\xce\x6e\xd7\x03\x4c\xae\xb2\xf6\x57\xa0\x7b\x25\xb7\xd6\x02\x40\xa0\x20\x50\x26\xc2\xe3\x01\x81\x41\xd4\x79\xc0\x77\x87\xa1\x4e\x70\x26\x22\xf8\xe6\xdf\x70\x9b\x63\x6c\x6d\x3d\x0b\x5f\xd5\x4f\x55\x16\xdb\xad\x97\x03\x8e\x5c\x0e\xb3\x1f\x54\xdb\x12\x64\xd6\x00\xef\xc6", p, q, g, b"\x4d\x6e\x89\xb0\x22\xc2\x78\xf3\xbf\x89\x32\xe7\x06\xe4\x18\xec\xb2\x0c\x1b\xba\xb1\x3e\xa8\xc9\x0b\x6b\xd8\x43\x84\xf3\x8b\x31\x1e\x8f\xb2\xc4\xc0\xa9\x4b\xa7\xd3\xaf\xca\x1b\xa9\x42\x52\xa4\xc1\xac\x11\x87\x62\x2c\xd9\xc1\x6a\xa7\x3b\xb1\xb4\xa5\xcf\x55\xb5\xaa\x34\xbd\x93\x52\x6f\x18\x7b\xee\xb1\x17\x00\xe4\xaf\xb8\x8c\x81\x6e\xda\x50\xa5\x0e\x81\x86\x0c\x87\xfa\x66\xa1\xb6\x3f\x5f\xfe\xc3\xc3\xae\x39\xbd\xc0\x09\xd3\x8f\xa1\x3d\xa8\x63\xca\x5e\xc1\x34\xa7\xff\xcf\x5d\xc3\xca\x85\xcc\x34\xd6\x1c\x5d\xf8\xf9\xd9\xbd\xbe\x6a\x54\x10\x45\xb4\x5c\xb5\x12\xef\x64\xd1\xad\x3d\xb7\xb3\x7d\xba\x33\xc6\xe3\xc9\x61\x80\xcf\xb2\x6f\x48\xc6\x33\x73\xa0\xf0\x00\x3a\xe6\x58\x26\x79\xda\x48\x50\xad\x2a\x0b\x89\x9e\x0e\x8a\x18\x47\xdf\x07\xfe\xf3\xa4\x33\x0a\x72\xf8\xa8\x02\xc0\x6e\x8e\x95\x70\x7e\x0c\x7d\xc1\x91\x5f\x6e\x17\x31\xfe\x65\x0f\x1a\xe3\x52\xe7\x82\xd2\xdd\x77\xf5\x4e\x5d\xac\x52\x53\x9a\x10\xa2\x2b\xbc\x2e\xea\x31\xef\xb9\x44\x38\xa0\x30\xc4\xb2\x45\x1b\xbf\xf6\x90\x1b\x5f\xb3\x01\x6c\xd1\x62\xaf\x6b\xf0\xfb", b"\x5f\x38\x39\xeb\x66\x3f\x02\x6f\x79\x29\x12\xd1\xcb\x0b\x44\x8f\x5e\x2e\x59\x31\x39\x00\x1e\x83\x9f\x71\xc9\x42", b"\x6b\x07\xed\xb6\xa0\x34\xd0\x84\xa6\x1b\xf3\xc0\xa3\x6e\x7e\xe6\x91\x19\x48\xad\x8f\x6e\x50\xac\x68\x44\xb1\xf3", ); test::( b"\xc1\xed\xd8\x61\x51\xaf\x66\xc6\x22\x3e\x41\x3f\x17\xe7\x34\xb2\xbc\x02\x4f\xf0\x66\x57\x8c\x55\x30\x8f\x13\x88\xa9\x1a\xb8\x72\x70\xcd\x25\xca\x2e\xfb\xc2\x86\x7e\xb7\x15\xeb\xed\x6d\x10\x01\x2b\x6f\x48\x08\xf2\xde\x19\x86\xff\x7f\x4c\x36\x9d\xaf\x46\xc8\x0a\x61\x87\x07\x88\x8a\xe3\xf8\x6e\x38\xe7\xf2\x5d\x6c\xaa\x50\x91\x04\xd4\x85\x1c\xbe\xef\xbb\x75\x69\x2a\xad\x49\x9a\x33\xaa\x35\xb1\x14\x09\x30\x0e\x49\x5f\xe0\x07\x52\x4b\x4a\xf2\xc2\x0d\x33\xf1\xc8\xc0\x45\x16\xb6\x97\x3a\xc1\xe0\x7d\xf3\xf1\x60\xdd", p, q, g, b"\x90\xdb\xbe\x47\x41\xa7\x6a\x5f\xf2\x22\xdd\xc8\x33\xc0\xe2\xdd\x44\x5a\xd0\x17\x26\xbb\xea\x25\xca\xc2\x47\xf9\xef\x9d\xa6\x43\x93\x27\x36\xdb\x07\xcd\x9a\xef\xfe\xb4\x51\x19\x35\x1e\x00\x33\x2d\x9d\xfc\x89\xf5\x90\x3a\x54\x1e\x74\xe2\xe9\x70\x9d\x0f\x85\x2a\xd6\x52\x40\xd0\x61\x59\xfe\x54\x43\x6d\xd8\x20\x1f\x8c\x56\x92\x6e\x8d\x23\xc2\xec\xad\xeb\x8c\xbc\x9a\xeb\xf1\x2d\x52\xbe\x64\x89\xe0\xac\xb0\xe7\x52\x6f\xba\x37\x54\xb7\xec\x16\x3d\xc7\xe2\xfa\x91\x93\x31\x91\x24\xf0\xcb\xb6\x1c\x2a\xb7\xab\x1a\x28\xc1\x4e\x7d\x58\x1d\xfb\x8d\xe2\x3f\x53\x36\x4d\x20\x41\x90\xa5\x8f\xcb\x9e\xa5\xb6\xf6\x1a\x79\x79\xb8\x6b\xb7\xa7\xa4\x26\x3a\x10\x66\xf0\x51\x6e\x58\x70\xde\x42\x3a\x7e\x3b\x90\x6d\x90\x31\x3d\x1f\xf9\x32\x24\x50\xf7\x2d\xdd\xa4\x73\x3a\xc7\x4f\xca\x5d\x4a\xd2\xbe\x22\xc2\x66\x7b\x92\x21\x20\x69\x44\x6b\x42\xa3\x91\x23\x3d\x85\x21\x6a\x88\xc2\x5b\x76\xc9\x47\xd8\xd5\x65\x91\x00\x3d\xf2\x53\x2f\xcd\x7b\x18\xf9\x23\xed\x48\x2d\x46\x4f\xb7\x6f\x2c\x85\x61\x78\x40\xd3\x70\xab\x99\xe3\x20\xe8\x8c\xf9\xef\x8d", b"\x83\x6d\x84\xd8\x62\x71\xe1\x64\x84\x66\xd1\x95\x5c\x2b\x60\xb2\xa0\x4c\xc0\x21\x40\x50\x83\x62\x63\x47\xae\xf9", b"\x63\xc7\xee\xb5\xe0\x6e\x81\xd8\x92\x33\x56\xf7\x99\x81\x0a\x26\xaf\x67\xc0\xfa\xa1\x8b\x39\x22\x58\xe4\xa9\xa0", ); test::( b"\x2b\x5f\xb6\x13\x59\x8c\x02\x91\x6b\xf6\xb4\xb0\xfd\x7a\x6b\x54\x26\xac\x5b\x56\x95\x43\x92\xfb\xa3\x2d\xe0\x0b\xdf\x4b\x70\x95\x3b\xe1\x96\xad\x51\xff\x2c\x09\x7a\x81\xe6\xce\x1d\x17\xcf\x83\x7d\x24\x44\x75\x2b\xe9\x2b\xd4\xa9\xd1\xa8\xb4\x13\x27\x52\x7f\xf6\xbd\xc0\xe5\xc3\xe0\xcf\x46\xf7\xe3\x79\x66\xaa\xe1\x8a\x29\xce\x19\x81\xf2\x12\xd7\x14\xdd\x6c\x0c\xbb\x41\x0d\x3a\x5f\x3d\x00\x6b\xa9\xb5\x93\xda\x15\x0c\xe4\x22\xb5\xcc\x42\x0f\x3b\x56\x1b\xfd\xf1\x1d\xcb\x99\x10\x00\x57\x09\xee\xb1\x29\xe2\x06\x65", p, q, g, b"\x95\x94\x7f\xbc\x50\xd5\xa8\x02\x99\xc9\x0d\xd2\x7c\xf3\x91\x00\x91\x42\x0d\x8a\xf8\x49\x24\x0e\xbb\x54\x1a\x21\xb4\x9e\x52\x8b\x0f\x33\x17\xac\xc1\x04\x93\xd5\x0e\x6b\xce\x67\x6c\x43\x3c\x31\x14\x7f\x81\x28\x67\x89\xe6\xa4\x1f\x4b\x26\x03\xba\xc0\xf6\xe5\xee\x7a\xff\xdb\x44\xcc\xeb\x42\x86\x43\x58\x60\x7d\x45\xf4\x65\x5a\x70\x9d\x7d\x67\xf7\x16\xd7\x36\x7b\xb5\xea\xb3\x34\xf6\x1c\xef\x37\x20\xc0\x80\xca\xb1\x75\x12\x32\x9e\x6d\x99\x92\x5b\x47\xe4\x96\x0c\x85\x03\x1b\xfd\xdb\x13\xf0\xc6\x1a\xf8\x0e\xa4\x6b\x7b\x87\x02\xf8\xad\x34\x8d\x57\xd4\x81\xef\xe8\x21\x05\x4f\xc8\x3b\x52\x66\x78\x27\x56\xa4\x2d\xd4\x31\x88\x1e\xa6\xcf\xeb\x7f\x79\x00\xd8\xf7\x47\xaa\xc9\x97\x6b\xe8\x94\x59\x52\xaf\xb8\xa2\x74\xda\xd0\x34\x28\x08\x83\x10\xa2\x45\x6e\xc2\x54\xd1\xcc\xfb\x63\xee\xde\xa5\xd3\x74\xed\x8c\xc6\x37\xa7\xba\xab\xf8\xf4\x22\xe1\xa1\x2d\x5f\xf3\x16\xdf\xf8\xa0\x82\x06\x89\x31\x49\x0a\x47\x06\x50\x3d\x19\xf9\x35\x54\xf2\x52\x43\x75\x1d\xfe\x62\xcd\x87\xcb\x85\x6f\x64\x4f\xbb\x6f\xc4\x6f\xb9\xcf\x89\xaf\x5a\xea\x1a", b"\x7b\x45\x5f\xae\x10\x02\xfa\x87\xf3\x6c\xf6\xf3\x45\x71\x62\x25\xd4\xaa\x14\x07\x80\x2a\xf4\x08\x2b\xfb\xb1\x4a", b"\x23\x5d\x8b\xe4\xce\xb0\x17\x6f\x5d\x0c\x47\xc1\x19\x9a\xfc\x7e\x30\x41\xc7\xd7\x50\x8b\x9f\xed\xdc\xaa\x0d\x74", ); test::( b"\xbd\x7d\x69\xbc\xc2\xe4\xf8\xa4\x2e\x62\x7f\xa2\x1c\x7f\xa9\xfd\xd3\xe5\x74\xb6\xdc\x5a\xd2\x02\x17\xe8\x0b\xcc\x99\x97\xb4\xc5\xef\xb3\x1c\x7b\x65\xdb\xe8\xa0\xa3\x94\xf0\xaf\x58\x03\x87\xb9\x91\x78\x88\x15\x2d\xc4\xf6\x3c\xe5\x2d\x3e\xc4\xb7\x23\xbf\xea\x81\x14\x82\x5f\x9f\x1e\x25\x9f\x67\xb5\xd1\x3b\xca\xa6\x6c\x97\xde\x72\x5f\xae\x4a\xd2\x47\xbb\x92\x24\x97\xeb\xed\x0f\x09\x2b\xba\xc1\x2f\x2c\xbd\x9b\x71\xb2\x29\x08\x73\x78\xe8\xbe\x06\x26\xb8\xd5\xe8\x95\x0b\x0a\x6e\x69\xe0\x51\x29\xf0\xd3\x84\x2d\x27", p, q, g, b"\x6f\xa6\xde\xdc\x84\xa1\x47\x9b\xe4\x39\x06\xf2\xf6\x8d\xf0\xe9\x32\x34\xca\x22\x30\xc8\x32\xdb\x07\x9d\x9c\xbd\x93\x42\xb2\xdf\x13\xde\x4b\xff\x10\xbd\xd8\x31\x31\x34\x53\xb3\x3b\x72\x5c\xd6\x16\xac\xf1\xfe\x2f\x79\x27\xea\x32\xd4\x6f\xf1\x0e\xf1\x15\x4e\x50\x3f\x71\x16\x5a\xde\xaf\xfd\xd5\x00\xa8\x3b\xf1\x00\x1e\xd3\x6c\xa6\x5b\xb6\x97\x4d\x03\x72\xcb\x0f\x21\x18\x27\x84\x66\xfe\x12\x86\xad\xff\x3c\x7e\xf7\x19\xc2\xa0\x2c\xff\x9e\xd9\x37\x4f\xbb\xe6\x05\x18\x14\xd2\x68\x48\xb7\xd9\x70\xfb\xec\xfb\xbf\xfe\xdf\x40\xa0\x30\x83\xfe\x33\xd3\x06\x78\x38\xac\xe2\x28\x54\xa8\xe8\x8b\xfc\xb0\x2e\xcd\x76\xc3\x78\xbb\x5c\x8b\xab\xd2\x2d\xfb\xe0\x90\x75\x3a\xbf\x9e\x97\xcb\x6b\xa7\x08\xce\x00\xff\xea\x5c\x55\x0b\x09\xf2\x49\x30\x69\x8d\xf1\x15\xc0\x20\xb1\x30\x1d\x57\x1a\x47\x0e\x5a\x8a\x6c\xcf\xc7\x4a\xd1\x89\x49\xa5\x7f\x61\x4f\xcb\x0f\x7e\x8b\xf7\x53\x0a\x73\x1b\xb6\x09\x1a\x73\x01\xaf\x42\x89\x9d\x9e\xe9\xe4\x5a\xa6\x2c\xa4\x90\x3e\x66\x73\x3e\x47\xd0\x1e\x26\xb2\x99\x74\x6d\xa7\x5c\x7a\x57\xdc\x00\xbc\xeb\x4d\x6c", b"\x16\xa2\xa4\x85\x78\xa0\xb5\xb5\x75\x53\xcd\x20\x00\x5b\x7e\x84\x00\xe1\x06\x1c\x4f\xef\x20\xd0\x33\xf7\x2f\x8a", b"\x6c\x34\xd1\x76\xe9\x5d\xd4\x92\x71\xee\x48\xa3\x80\x2e\xdf\x42\x38\x40\x10\x84\xbc\x39\x30\x20\x14\x05\x69\x3a", ); test::( b"\x77\x66\xe1\xab\x76\x38\xbc\xda\x3e\x6f\xdb\xd4\xc8\x5b\x36\x61\xac\xb2\x76\x3d\x41\x13\x76\xb2\xee\xdb\x4b\x2c\x6b\xff\x5d\x8f\xa2\x0c\x0a\xe5\xb3\xcb\xed\x20\x79\x6a\x6d\x8b\x81\xa1\x09\x6d\xc3\x6a\x39\x82\x6a\x18\xff\xb8\x97\xd3\x6b\xfb\x16\x36\x3c\xca\x76\x32\xec\xb7\x1d\x2f\x99\x6c\xf7\xca\xc6\x66\x69\xbf\x4c\x83\x11\x4b\xd5\x3b\xe3\xbe\x33\x05\xef\xc9\x9d\x22\x76\x91\x88\xf8\x42\x89\xcb\x1d\x11\x50\x1f\x04\x0b\x85\xd1\x58\x90\xd2\x9a\xf2\xc8\xea\xe6\x14\xf7\x4b\xee\xee\xb5\xfc\x91\x5a\xfa\x43\x22\xc2", p, q, g, b"\x4c\x2b\x55\x90\x24\xf1\xb3\xff\x5c\x71\x67\x27\x0c\xd1\xf3\x3b\xbf\x0f\x40\xb9\xef\xa2\x5e\x13\x74\x41\xab\x46\x98\x15\x4e\x74\xda\x3c\xad\x34\x23\x6d\xa4\xbd\x1c\x57\xd7\x63\x8e\x42\x77\x27\x8b\x50\x8e\x85\xe3\xa9\x8d\x30\x38\x8a\xb8\x63\x8f\x55\x3e\x2a\x70\x00\x11\x92\x3e\x5d\x15\x4f\x8c\x14\x07\x45\x2d\xc4\xf8\x07\x70\xc9\xc3\x1c\x36\x8a\x21\xe4\x99\xd5\xdf\xb6\xf0\x5f\xd6\x77\x91\xe7\x61\xa4\x94\x20\x07\x10\xaf\x8c\x21\x88\x89\x2c\x2d\x1c\x31\x95\xbe\x4a\x0a\x1d\x67\x55\x1a\xd4\x66\xfe\xe8\x0d\x7e\xdc\x43\x53\x79\xa7\x2c\x3b\xff\xad\x27\x1d\xe3\x1a\xd2\xed\x10\x7d\x78\x4f\x40\xe2\x4c\x5a\x6e\x8d\x5a\xae\x8f\x24\x05\x96\x4f\xe3\xc2\x8c\xc3\x65\x2d\xc3\xc9\x52\x3b\x39\xd4\xb0\x83\xee\x65\xe9\xa0\x7c\xe8\x97\xa1\x7b\x02\xb3\x54\x76\x6f\x1b\x19\xc2\xb1\x22\x9a\xb4\x68\xb0\x14\x8c\xa8\xfe\x89\x48\x4b\x7b\x36\x00\x24\x21\x80\x86\xaf\x56\x40\x37\x07\xbe\xc6\x5c\x52\x28\x1c\xb8\xaa\x53\x46\xcb\x6f\x64\x81\x43\x0e\x8e\x05\x71\x46\xf3\x90\x60\x7c\x57\x2b\x5b\xd8\x42\x6b\x90\xef\x3a\x82\x7c\xb0\xd5\x8b\xd4\x38\xd1", b"\x09\xc6\x18\x78\xa9\x91\x71\x77\x05\x8e\x9d\xff\x27\x10\x6b\xdc\xa7\xd0\x6c\x50\x0e\x09\x09\x93\x06\x66\x8c\xbf", b"\x7b\x8b\x6c\x4c\x56\x15\x97\x6d\x7a\x73\x5a\xc3\xe1\x84\xcd\xe9\x61\x54\xff\xc8\x7b\x45\x89\x24\xd4\x60\x28\x95", ); test::( b"\x84\x09\x52\x78\xf7\xf1\xd5\x78\xe7\x98\x39\x9a\xf0\xbc\x9f\x46\x95\xf9\x30\x2e\xa5\x97\x24\x79\xad\xf9\x0c\x95\xfc\x25\xd5\x9e\x57\x6d\x97\xb8\x9b\x73\xde\xc6\x29\xce\xf0\x5d\x61\x73\xb5\x5d\x01\x5a\x3f\xb1\xd8\x19\x1a\xe5\x40\xd5\x52\x40\x9b\x03\xa7\xa8\xdb\x51\x1b\xad\x09\x51\x89\x6d\xb9\x49\xfc\xc2\x88\x70\xf9\xd1\x73\x14\x73\x4c\xa6\xa3\x47\x26\x83\xd0\x2f\xdc\x8d\xef\xa7\xb9\xd3\x76\x2a\xe9\x35\x7c\xa2\xa6\xab\x62\x3b\x04\x63\x50\xfa\x21\x1d\x52\x13\x78\x71\x27\xd2\x71\x1c\xbd\x91\x40\x5a\xbb\xe5\x0d", p, q, g, b"\x4b\x52\xc5\x6f\xc6\x49\x22\xac\x04\xee\x7a\x80\xfc\x5c\x22\x40\x13\xe2\xff\xda\xa1\x67\x38\x12\x57\xe0\x0c\x59\x7b\x43\x36\x41\xce\xad\xbc\x9b\x16\x56\x8b\xbc\x9c\x6d\x31\xd0\x2c\x8e\x36\xdb\x2e\x39\x87\x52\x0c\xe8\x59\x08\x56\xbd\x4a\x84\x1b\x72\x5e\xc9\x5a\x46\x59\xa6\x1a\x00\x86\xf6\x6a\x6b\xfd\xbf\x1e\x4b\xf9\x2b\x44\x19\x28\xcf\x31\x9f\x92\x9a\x64\x28\xf5\xe3\xba\x7c\x89\x12\x3d\xbb\x0c\xac\xc1\x6b\xb0\xe2\xb8\x08\x54\xb0\xf6\x0d\xfa\xa9\x9f\x9c\x4c\xaa\x41\x2c\x44\x3a\x07\x3b\x7a\x51\x25\x91\x25\xf0\x12\xd9\x8f\x0f\x66\x99\xd7\x0a\xde\x66\xdf\x9c\x5e\x18\x18\x56\x72\xe0\xe2\x83\x0e\x05\x85\x41\x3d\xa2\x95\x6c\x89\xd2\x32\x0f\xaa\xc0\x3a\xaa\x83\xfe\x71\x8a\x0d\x6c\xf7\xfe\xb3\x8a\x19\x4e\x43\x62\xd7\xc8\x9e\x4a\x13\x96\x7e\x3a\x2d\x44\x93\xf4\xec\x09\xac\x2f\xc8\x9d\x56\xa5\x95\x47\x2e\x60\x33\x24\x48\x54\x8d\x91\xcd\x6a\xac\x84\xa2\xf9\xb4\xd7\xa8\x04\x62\xdc\x15\x47\x79\xbe\x5f\x9e\x1f\x70\x9b\x9d\x9a\x15\x62\x73\x03\x3f\xe6\xe4\x84\x2e\xc4\x75\x21\x96\x4d\x2e\x2f\xe2\x62\x28\x0f\xdd\xec\x64\x03\xe8", b"\x0c\x4d\x45\x27\x81\x5a\x94\xbc\x2d\x77\x06\x3e\xa6\x90\x49\xbe\x6a\x2b\x3b\x3a\x3a\x0b\xad\xd5\xe6\x2a\x8f\x9a", b"\x57\x87\xce\xd7\x08\x1f\xad\x3f\xe1\x9a\xb5\xb9\x02\x8e\x9e\x8d\xf1\x86\x39\xe4\x99\x1a\xb6\xe1\xe2\x43\x41\x6e", ); test::( b"\x30\xee\xdc\x9d\x63\x0b\x63\x20\x82\xc1\x96\xb9\x69\xd2\x4f\x6e\xb9\xcf\x1b\x1e\x2c\x53\xd2\x44\xe8\xd8\xb5\x0a\x40\x98\x2a\xb5\x3c\x4d\x57\xff\x99\x5f\xa8\x45\x89\x08\xa7\x43\x89\x03\x82\xda\x65\x13\xcf\xe9\xc1\x99\x18\x24\x87\x36\x15\xa8\xa1\x63\x74\xa5\xe5\xdc\x2f\xab\x3f\x5c\xd2\x56\x52\xec\x8a\xa3\x93\x9f\x48\x84\xf7\x4a\xc7\x37\x98\x9b\x6a\xc2\xe4\x3f\x45\xb8\x85\x20\x6a\x31\xe7\x97\xfd\x85\x76\x35\x7e\x4b\x4b\xaa\x56\x62\x91\x81\x5d\xac\x2f\x54\x6f\x4a\xbf\x8b\xa1\xde\x11\x20\xfd\x80\x42\x84\xe9\x59", p, q, g, b"\x89\x20\xf6\xab\x95\xb1\xdc\x6b\x93\xe0\x8e\xad\x6b\x08\x14\x1c\xc2\xa8\xf1\xff\xbb\x71\xd5\xec\x59\x64\xf6\xb2\xc3\xd7\x2f\xf3\xad\xad\xe5\x22\x54\x37\x0f\x13\x09\x90\xb4\x34\x87\x77\x5c\x2f\xe0\x17\xa8\x20\x0d\x81\x19\x81\x8a\x15\xed\x7e\x56\x36\xbf\xbf\x31\x64\x04\x2f\x27\xbb\x1e\xa4\x18\x69\x8b\x67\x56\xf7\x5a\x8f\xda\xeb\xf0\xf6\xe5\x42\x3e\x46\x02\x87\xf4\xfd\xd2\xa0\xef\x30\x5e\x65\x87\x41\x37\x3d\x3b\xae\xcc\xe7\x90\x63\x96\x2f\x88\x33\x98\xc3\x14\xe3\x62\x30\xba\x8c\x57\x0e\x66\x7c\x30\xca\xc8\xfb\xaa\x4e\x70\x20\x2a\x91\x57\xd2\x27\x08\xca\x60\x54\x03\x06\x6d\x0f\xc8\x48\x45\xbc\xe9\xb8\xc3\xb4\x1e\xc3\x2f\x40\xc8\x45\xa5\x32\xfd\xff\x4d\xd1\x0c\xf6\x2a\x71\x41\x21\xea\x8a\x61\x88\x50\x06\x45\xaf\xa9\x31\x6f\xb3\xe1\x16\x28\xb1\x63\xd3\x5d\x8c\xfc\xc5\x52\x72\xb6\x50\xe8\x07\x2c\x23\x76\x45\x60\x01\x50\xbb\xb6\x6d\x39\x3c\x1c\x97\x34\x5d\x58\x20\xf1\x78\xdd\x40\x5b\x5d\x46\xfc\x4a\xc8\xa5\xf3\x92\x9e\x6b\x16\x27\x94\x40\x93\x17\x8a\x8d\x65\x10\x10\x59\xfb\xbb\xb7\x08\x11\x74\xf2\x30\x8b\x26\x53\xce", b"\x45\x21\x2d\x1c\x8c\x12\x80\x02\xfc\xb3\xce\x35\x58\x3f\xf8\xd0\x83\x63\x71\x1c\x15\x98\x30\x7d\x9e\xc6\xa1\x08", b"\x48\x58\x10\x56\x49\xdb\x59\x92\x76\x4d\xd3\x2b\x10\x2d\x9b\x9d\x2b\xc6\xaf\x64\xc6\xa8\x15\x95\x61\x1e\x3e\x20", ); // [mod = L=2048, N=224, SHA-512] let p = b"\xbf\xeb\xd0\x00\xb2\xd6\xcd\x4a\xb3\x8e\xfb\xa3\x5d\xf3\x34\xdf\x72\x1d\x6c\x2f\x2b\x3d\x95\x66\x79\xcb\xad\x00\x9f\x3d\xfb\xd0\x02\x95\x2c\xc8\x99\xcc\x23\x56\xec\x87\x69\xbd\x3d\x1b\xa5\xa7\x30\x23\x72\x98\x88\xda\x92\xca\x48\xa5\xee\x94\xc9\x7f\x4f\x04\xa2\xe3\xac\xb4\xf3\x3a\x2f\x0f\xb3\x78\x3c\x31\xf2\xc7\x0f\xa7\xc7\x0f\x38\x21\x4a\x27\xda\xde\xc8\xb1\x2e\x67\x99\x6a\x9e\x85\xee\x3b\xb1\x48\x80\x31\x30\x14\x73\x92\xdc\x52\x53\xc0\x4d\x70\x63\x53\x5e\x6c\xd6\x46\xbf\xb1\x86\x98\x4e\x08\xb5\x8b\x74\xa7\xbe\x5b\x33\x3b\xf3\x2b\x0a\xbf\xd5\x66\x53\x60\xe9\xa9\x23\xa0\xc5\x28\xff\x1c\x62\xc7\x25\x34\x58\xf5\x67\x85\x28\x71\x9d\x43\x6e\x50\x14\x87\x41\xf4\x5d\xc7\xdd\x2c\x6c\xac\x71\xc5\x52\x31\xf1\x2a\x83\xfe\xfd\x2e\xd0\xa3\x3e\xde\x1b\x8a\x51\xf5\x66\xfc\xf7\x89\x06\x82\xcd\xc1\x93\x1d\xc2\x07\xc9\x2b\xf2\xef\x4e\x28\xab\x31\x66\x1e\xeb\x77\xf1\x60\x1e\xea\x94\x1c\x95\x91\xf0\x38\xd3\xf0\x0d\x91\x28\x57\xdb\x05\xe6\x4b\x2a\xd5\x69\x32\x00\x61\xc6\xf8\x63\xff\x33\x54\xd8\x42\xe7\xe7\xea\x71\x5a\xfe\xf8\xd1"; let q = b"\xaa\x98\x6d\xf8\xa0\x64\x27\x8e\x93\x63\x31\x6a\x98\x30\xbc\xfa\x49\x06\x56\xfa\xa6\xd5\xda\xa8\x17\xd8\x79\x49"; let g = b"\x81\x95\xad\x9a\x47\x8f\xd9\x85\x21\x6e\xe5\x83\x68\x36\x6d\x2e\xdd\x13\xc1\x2b\x3d\x62\x23\x91\x69\xfa\x04\x2d\x91\x15\x64\x08\xb4\x83\x12\x2f\x44\xed\x62\x36\xb8\x30\x8a\x6c\xdb\x52\xf9\xaf\x3d\xe8\x8e\xc8\x9e\x03\x9a\xfa\xd7\xda\x3a\xa6\x6c\x19\x76\x04\x9a\x8e\x0a\x7d\x18\xd5\x67\xba\xf9\x9f\xce\xfe\x31\x5c\xad\xa0\x15\x48\x38\x6b\x10\xb2\x5e\x52\xf5\x2e\xd7\x8e\xb4\xd2\x80\x82\xe5\xe1\xff\xee\x94\x80\xc4\xfe\x2c\xc4\xaa\xfd\x1e\xfc\x9d\x4f\xd2\xcc\x6d\x15\x59\x68\x93\x12\x71\xef\x15\xb3\x24\x0e\x7f\xb0\x43\xa8\x0c\x8f\x62\x8b\xef\xe0\x9d\x64\x50\x77\xc1\x02\x9d\x21\xe0\xac\x8b\xf0\xba\x9c\x27\x71\x4d\x1b\x58\x0e\xde\x59\x4a\xa0\x1b\x3b\x76\xf6\xe7\x45\xfc\x1e\xc0\x7d\xb3\x7e\x2f\xd7\xe9\x8c\x6c\x8c\x69\x15\x22\x8e\x42\x2c\x30\x9d\xe9\xf5\xdb\x16\x8f\x50\x24\x9d\x1b\xe1\xed\x32\x98\x09\x08\x08\xe2\xeb\xb8\x96\xbb\x79\xb8\xc4\xcb\xf9\x4d\x4c\x20\x64\xe3\x7e\x61\x2b\xa4\x44\x9d\x7a\xc2\x10\xed\xde\x21\x14\x16\xd6\x4b\x05\x1d\xd8\x04\x6a\xb0\x41\x73\x26\x65\x41\x1a\x7f\x15\x4d\x31\xb3\xe1\x1a\x51\xda\x7f\xc0"; test::( b"\xe9\xf5\x9c\x6a\x5c\xbe\x8f\x5b\x0c\xf7\x50\x08\xd0\x6a\x07\x6a\x67\x39\xbd\xdd\xb3\x9b\x82\x14\x3c\xd0\x39\x39\xaa\x47\x38\xa2\x87\xc2\xa6\xf3\x18\x29\xbb\xe1\x5f\x02\xcc\x2e\xe7\xd7\x12\x2d\xbd\x13\x28\x25\x97\x0d\xad\xdd\x8a\x4d\x85\x1d\xa8\x6e\x7e\xdc\x89\x40\xcb\x11\x88\x31\x92\x18\xb8\xe0\x24\x8a\x10\x3e\xae\x34\xbc\x68\xd8\x5f\x5a\x32\x83\x0d\x7e\x5d\xc7\x71\x8f\x74\xdb\x5e\x42\x24\xc0\xde\xbe\x1e\x84\x1e\x1e\xea\x1a\x88\xfe\xe0\xf8\x5d\x9f\xb0\x87\xcb\xce\xe5\x5f\x86\x03\x7a\x64\x6e\x38\x34\x6d\x2b", p, q, g, b"\xaf\x67\x21\xbf\x75\xde\xc6\xa1\xb7\x6a\xd3\x5c\xa3\x75\x0d\xef\x31\x11\x7c\x5b\x44\x1c\x15\xa3\x06\x83\x5a\x1d\xb7\x4c\x00\x3b\x86\xae\x90\x99\xeb\xfb\x74\x5b\x0a\xa9\xcb\x00\x0c\xf4\x3f\xb0\x21\x51\x3b\x8f\x19\x7b\xc8\x65\xb2\x2b\xf9\x49\xb4\x91\x80\x9a\xd7\x52\xff\xc1\xca\x8e\x54\xbe\xa1\x6d\xc7\xf5\x39\xe4\xc5\x5f\xb7\x0a\x77\x43\xdd\x28\xf2\x62\xf6\x0e\xf0\xf2\xfc\xaa\xc2\x9e\x80\x21\xa7\x93\x8c\x18\xff\xe0\x30\x75\xd0\xb7\xe0\xa2\xb4\xdc\xab\xe4\x6e\xd1\x95\x3d\x33\xe3\x7f\x11\x3a\xf5\x19\xab\x0b\xf0\xb6\x18\x6c\x12\xb5\xf6\x48\x84\x37\xf5\x19\x30\x96\xe2\xfd\x6a\x6a\x18\x35\x60\x47\x94\xc6\x6b\x42\xae\x52\x65\xc1\xcf\x1c\xb5\x3a\xe8\x49\x97\x97\x5e\x03\x18\xa9\x3c\xe4\x1e\x39\x02\xe4\xef\x54\xde\x3c\x56\x55\x5b\xd1\x94\x91\xac\xd5\x3f\x3e\x57\x46\x4e\x1f\x46\x03\x89\xdb\xc5\xfa\x80\x64\x8f\xa5\xa5\xa0\xf2\x95\x6e\x9e\xc3\xb8\xdc\x44\x1b\x53\x5c\x64\x1c\x36\x2e\xed\x77\x0d\xa8\x28\x64\x9b\xfd\x14\x64\x72\xb0\xf4\x6a\x4c\x06\x4e\x45\x9f\x88\xbf\xf9\x0d\xed\xe7\xec\x56\x17\x7a\x9a\x71\xd1\x67\x94\x87\x12", b"\x9d\xa9\x96\x65\x00\xde\x9d\x3b\x6b\x7f\x44\x1c\xa5\x50\x23\x3f\xc4\x50\x94\x4b\xc5\x07\xe0\x1c\xd4\xac\xb0\x30", b"\x2d\x72\xf1\xf6\x68\x1e\x86\x7f\x7d\x8b\xea\xeb\xeb\xa4\xbc\x5b\x23\x28\x76\x04\xa6\x4c\xfe\xe1\xc1\x64\x59\x5a", ); test::( b"\x97\x1d\x16\xd1\x11\xc9\x6d\xe0\xf7\x09\x8b\x25\x6a\xf2\x13\xf4\x47\x5a\xef\x31\x00\x7e\x12\xe2\x97\x4c\x5f\x64\xb2\xf3\x35\xe0\x18\x3c\x19\x6c\x33\xd5\x0f\x64\x45\xc5\xf6\x14\x64\x95\x49\x77\x0b\x18\x74\xdd\x07\x56\xa9\xa8\xe3\x99\x71\xdf\xec\xc3\xf2\x67\xeb\xcc\x1f\x53\x01\x70\x3f\x88\x74\x3b\x0f\x37\x64\x82\xcf\xc0\x6d\x59\x48\xbd\x79\x26\xd9\x6e\xc4\xd7\x31\xa4\x4b\x0c\x0e\xee\x5e\x85\xda\x26\x68\x72\x65\xde\x5a\x66\xcb\x1a\x73\xa7\xe4\xf3\x23\x6f\x60\x64\x7b\xee\x5c\x16\x33\x40\xe1\x95\x05\x57\x7c\xf6", p, q, g, b"\x29\x05\x17\x29\x7e\x42\x49\xfc\x32\x12\xba\xd6\x72\x69\xe0\x32\x81\x8d\x76\x0b\x0e\xe0\x52\x5d\xc5\xa1\x7c\x97\x11\x6e\xe2\x9e\xb3\xb4\x50\xb4\x1d\x15\xce\xa4\x05\xd5\xe9\x83\xa8\x55\x81\x84\x06\x7f\x42\x4a\xcc\x49\x86\x76\x41\x5e\x17\x50\x6a\x35\x1c\x12\x4b\x54\x04\xf1\xd1\x71\x53\x27\x26\x19\xdf\x71\x3c\xe3\x4d\x03\xf1\xf9\xee\x28\x59\x2f\x22\xf8\x29\xa3\x19\x93\xb1\x06\xc7\x85\xfa\x6d\xbe\x57\xd0\x04\x9c\x81\x5d\xb5\xee\x2d\xfe\x94\x8d\xde\xdd\x1a\x5e\x2c\xd2\x34\x6c\xf2\xf6\x6f\x04\xfb\xad\x61\x9c\xd9\x83\xa1\xb0\x69\xb4\x71\xef\x9a\xdb\x4d\xf6\xce\xae\xa2\x3d\x09\xf0\xa5\x48\xc3\xc7\x20\x96\x34\xc8\xa0\x5e\x58\x97\x44\x59\x06\xde\xa0\x8a\x52\xe4\x07\x4b\xe2\x2d\x84\x85\xf2\x0e\xaa\xea\xdb\xaa\xb3\x97\x19\x9b\x06\x7a\xa8\x60\x05\x69\x91\xee\x08\x84\x80\xb4\x92\x12\x67\xa6\x98\xa8\xf7\xa0\x37\x77\xf5\x6b\xac\x84\xe5\x09\x03\xe8\x8d\x07\x26\x1f\x24\xd0\xa4\xf3\x17\x12\x8e\x01\xfe\x8a\x92\x24\xf1\x22\x93\x94\x9c\xb6\xc3\xf0\x95\xaf\xd1\x9a\xec\xb1\x6b\x20\x9a\x99\x48\x7d\xcc\x2a\x1b\x83\xc4\x9d\x75\xe3\x51", b"\x1f\x44\xf6\xea\xc2\x18\x23\x6a\x1d\x99\xcf\x76\x25\xab\xcf\x5c\x96\x4b\x0a\x0c\x5d\x88\xb8\xd0\x5d\x74\xa3\xc0", b"\x71\x01\x5c\xbe\x86\x22\xd2\xa3\x4f\xbb\x5e\x7c\xca\x8c\x59\xe8\x28\xad\xee\x71\xf5\x05\x24\x48\x2d\x9e\x79\x04", ); test::( b"\x08\xea\x09\xfa\x5e\xfd\xe2\x15\xbd\x8b\x3c\x4d\x6a\x9c\x90\xee\x93\x87\xff\xb7\xbd\x65\xbe\xcd\xb8\x8b\x40\x13\x2c\x63\x84\x10\x6a\xa6\x19\xb7\xc6\x6c\xa9\x20\x34\xd2\x84\x60\x85\x93\x86\x4c\xe6\xb9\x28\x77\x11\x2a\xa1\x39\x24\x0c\xb4\x4b\x38\x8f\xe6\x8a\x8f\xe0\x50\x1c\xa5\x84\xf6\xa2\xde\x27\xc0\xfb\x65\x8e\x72\xbb\x13\xfd\xdb\x8d\x03\x9a\x6b\xf8\x5d\x63\xa6\xc0\x73\xb2\x66\x80\x13\xce\x8f\xe5\x89\xa0\x15\x0e\x46\xd5\xb1\xd9\xb0\xcb\xb5\xa1\x4c\x10\x0a\xe4\xb2\x0d\x6c\xe8\x1a\x98\x7a\x50\xa9\x49\xf4\x34", p, q, g, b"\xb3\xe2\xb7\xe0\x64\x17\x21\xd6\x96\x16\x67\x95\x96\xcc\x75\x09\x1f\xad\xe2\xda\x05\x58\xe3\x10\xb8\xd1\x4d\xb0\xf4\x68\x6f\x1f\xed\x48\xd0\xfb\x7f\x0b\x3b\x27\xbf\x6e\x19\x81\xea\xfa\x77\x37\xa3\xe6\x51\x82\x8d\x1f\xcb\xf8\x83\x87\xd0\x6f\x78\x40\x4a\x7a\xfa\xea\xaf\x8f\xae\x18\x93\xbe\xa3\xa0\x9a\x11\x88\x93\x93\x7a\xe2\xa8\xfd\xef\x33\x20\x94\x2a\x15\x84\x63\xde\x4f\xdd\xc1\x19\x87\xf2\x3f\xee\x96\x33\xe0\x6a\xc2\x39\xc0\x66\x10\xbc\x45\x31\x9a\xba\xfe\x51\x7c\xe4\xae\xae\x62\x47\xea\x78\x9d\x7d\xa6\x0d\x3e\xed\xdf\xdc\x4b\x23\x2b\x4d\x7a\x06\x9b\xcc\x0e\xac\x7b\x99\xfc\x08\x8f\xb7\xec\x19\x46\x03\x4a\x98\xd7\xe6\x9c\xab\x0c\xb2\xb0\x6b\x3d\x9d\xea\xcd\x1b\x43\x3e\xbe\x94\xf5\x47\xa3\x22\x89\x5c\xca\x9b\x0e\xd3\x19\xb1\xd4\x58\xc3\xbf\xb2\x60\xbe\xb6\x41\xa5\x34\x5d\xbe\x3d\x01\xce\x80\x0e\xc2\xc6\xbd\x43\x0c\xe3\xe3\xf5\xf7\x8f\xca\xbf\x91\xa2\x96\x58\x66\x1c\x57\x3b\x9f\x6f\xd3\x81\x2e\x56\x0d\x88\x8b\x6c\xdf\x3d\x57\x67\x3c\x16\x30\xe0\x0c\xa8\x41\xee\x99\x49\x58\xb2\x50\xda\xfb\xc3\xe8\x3b\xcb\x8b\xe5", b"\x6c\x03\x63\x7d\x25\x3a\x8d\xcd\x09\x07\xd6\xde\x93\x92\x6b\xdb\x3e\x1e\xa3\x13\x5a\x70\x9d\xa2\x30\x9a\x8d\xa6", b"\x23\x6e\x51\x63\xf2\xc2\xeb\xe0\xec\xcd\xbd\x33\x51\xe4\x28\x55\x31\xa4\xf5\x3e\x45\x28\x4e\x41\xdb\x37\xe2\x66", ); test::( b"\x95\x7c\xef\x16\x3b\x16\xd8\x07\x3d\x5d\x3f\xe1\x58\xfa\x0c\x73\x38\xbd\x10\x7c\x6a\x65\x3c\xb0\xf1\x1e\xbe\x41\x40\x26\x07\xb8\x22\xab\xe3\x0e\x36\xca\x9e\xe4\xc9\xde\x00\xcf\x72\xdb\x97\xf5\x7d\x78\xf3\xdb\x49\xa8\xe1\x09\x32\x85\x56\x3c\x68\xb0\xf4\xe1\x24\x83\x0b\x9f\xeb\xfa\x3e\x75\xce\x2e\xa5\x9c\xba\x2c\xc6\xd7\x1e\x90\x8b\x5e\x6d\x8f\x46\x39\x54\x92\x2b\x82\xbb\x55\xa6\x9f\xb2\xff\x14\x3f\xfc\xae\x6b\x56\x56\x14\x3c\x8b\x6c\xc2\x4f\x57\xb1\x7c\xfb\x02\x0f\x6e\x15\xbd\xc5\xf2\x54\x36\xd0\x7b\x7f\x8a", p, q, g, b"\x3f\xcb\x8e\x44\xd6\x88\x0f\x9e\xeb\xae\xdf\xb7\x59\x94\x60\x5c\x9e\xc0\x01\xf0\x59\x5a\xeb\x5f\x2b\xca\xf6\xb3\x98\x7b\xc2\x8a\x7c\xa9\x05\xe1\xfe\xd7\xe3\xc7\x15\x40\x1b\x5c\x60\x8d\x12\x07\x69\x38\xa1\x80\x13\x47\x3d\x8a\x43\x32\x77\xfd\x9c\xe5\xa5\xca\xe0\x38\x28\x1e\x76\x8f\xf9\x09\xae\xbe\x4d\x25\x7d\xcb\x5d\x93\x48\x80\x22\xd0\x7d\x4c\x28\x62\xaf\xb2\xbf\x8a\x2b\x1e\x97\x4a\x8e\x7b\x6e\x17\x6b\x1b\x0b\x7a\xd6\xf6\x3b\xda\x1b\x71\x42\xe4\x6f\x50\x4d\xcc\xcc\xa7\xd1\xe2\xe7\x66\x27\x58\xf7\x60\xe6\x24\xe5\x95\x28\xc5\xa0\xc9\x56\x3e\xd5\x17\xc6\x91\xfb\xa2\xab\xf6\x68\x99\x24\x11\x78\x22\x3b\xa2\x00\x13\xed\x0a\xb2\x1f\x91\xf3\xe6\xbe\xf7\x55\xc8\x10\x0c\x51\xee\x94\x7b\x7a\x9b\xa3\x85\x70\xf8\x80\xb5\xe4\x2f\x24\xb7\x2d\x53\x21\x13\x2e\x03\x1b\x98\x5a\x0d\xb8\x25\xbf\x3b\xb0\x0a\x77\x71\xa0\x30\x07\x38\x7e\x03\xce\x02\x0f\xc3\x58\xe6\x5e\xd3\xde\x8d\x84\x7f\x5b\xe6\x07\x20\x91\x7c\x06\x16\xa4\x50\xaa\x34\x1a\xe0\x0a\xbe\x0a\x80\x9c\x38\xe9\x73\x14\xf3\x03\xfe\x9b\x0c\x6c\xde\x44\x6d\x02\x17\xcc\x4e\xab", b"\x15\x03\x62\xda\x79\x27\x01\x69\x4e\x23\xf0\xb0\xa9\xb7\x03\x54\x37\xcc\x8f\x4f\xaa\x45\xc6\xdf\x8f\x79\x82\xfb", b"\x6d\xf4\x32\x1c\x61\x73\x87\x43\xa9\xfe\x78\xec\x76\xb4\x95\x26\x92\xaa\xa3\x72\xd1\xc8\x53\x0f\xba\x0f\xcd\xec", ); test::( b"\x20\x4d\x9c\xde\x24\xa2\xf0\xde\x02\xaf\xf0\x20\xf6\x36\x3f\xd6\x8f\x70\x42\x0d\xc1\xa9\xb5\x13\x82\x16\x20\x13\x63\xf8\x32\xda\x0a\xa8\x01\x86\x5a\x75\xa2\x43\x42\x7d\x9d\x6c\x78\xdc\x5e\x60\x41\xb2\x7d\x03\x36\x60\xe1\xe4\x05\xab\xe1\xbe\x27\xc9\x09\x99\x4b\xd6\xfb\x57\x18\x0c\x3d\x6b\x49\x8c\xe8\x79\x3b\xee\x8e\xcf\x51\xe0\x6b\x96\x41\x1d\x00\x99\x62\x09\xf4\x4a\x38\x09\x26\xc7\xb1\x95\xe8\x4e\x78\xf0\x1f\xe0\x2e\x0b\xc7\x03\x2c\xa4\x62\xa5\x18\x26\x83\x47\x52\x22\xf9\xdd\x8f\x3a\xde\x1a\xb8\xfe\xa3\x18", p, q, g, b"\x99\xb8\xfc\x6e\x64\xcc\xe2\x62\xed\x74\x1c\x30\xcd\x58\x69\x86\xaa\x2e\x8f\x63\x71\xb8\x48\xa2\x61\x7c\x61\x98\x97\xde\x23\x72\x6b\xb5\x45\x36\xec\xe4\xb4\x60\xcc\x7f\x1f\x39\xe0\xc1\x84\xeb\x19\x29\x1e\x93\x0d\xc9\x14\x0e\x4b\x77\x35\x54\x1e\xee\xf8\xca\x8e\xbc\x81\x79\x0f\xed\x37\xa5\xf0\x8e\x9d\xa9\xab\xc6\x6a\x3a\x2e\x90\x99\x02\xa4\x21\x21\x06\x92\x7d\x08\xab\xec\x01\xf2\x7c\x60\x56\xb6\xe0\x38\x11\x50\xbd\x74\x2d\x40\x9f\x68\x10\xfa\x58\x18\xff\xcb\x3f\x18\x2a\xdf\x89\x4b\xa7\xf8\x06\x78\xce\x88\x3c\x10\x89\xa6\xae\x71\xdb\x3a\x11\x5c\x38\x6d\xd9\x15\x3f\x41\x91\xfc\x36\x54\x61\xac\x86\x83\x8e\xcf\x2f\x3f\x81\xcc\xf2\x83\x29\x7a\x6f\xbc\x64\x4f\x52\xaa\xe6\x64\x90\x1a\xe3\x0c\x96\xfe\x4d\xf9\x30\xcf\x1a\x41\x75\x72\x41\xcc\x4d\x9a\xdf\xcc\xdd\x9a\x6b\xd5\x00\x4b\x05\x75\x74\x43\x59\x88\x56\x40\x0d\xd7\x71\xdc\x08\x90\x95\xc7\xdc\xde\x82\xf7\x21\xf9\x86\xaf\x63\x66\x38\xee\xa2\xc7\x17\x70\x85\x6c\x2b\xa8\x03\x15\xe8\x69\x61\x42\xa1\x1e\x51\xeb\xd7\x55\x9e\x9d\xa6\xa0\x0b\xe3\xf9\xf3\x8c\x61\x4e\xf2\x07", b"\x9c\x02\x33\x31\x75\x1c\x79\xd5\xda\x35\x5b\xb5\x8e\x2b\xbe\x2e\x97\x3e\x3e\x4b\x4f\x52\x74\x3c\xe1\xf1\xee\xc2", b"\x96\xad\x0e\x8c\xa9\x06\x27\xfb\x7a\xc4\x54\x0c\x9b\x58\xa0\x16\xee\x6c\x4e\x0a\x6f\x0a\xa1\xe7\xde\xf8\x1a\x51", ); test::( b"\x1e\x4e\x58\xaf\xb3\x4c\x5d\x6f\x64\x5a\x82\x64\x5b\xe3\x58\xa2\xe2\x28\xcc\x7b\x9c\x23\xdd\x7f\x3a\xa7\x95\x95\x81\x4d\x05\x4b\x92\x3b\x9c\xbc\x6c\x9e\x6c\x6f\x94\x84\x8c\x1a\x4d\x21\x56\x79\x02\x3a\x96\x97\x6a\x44\xe9\xb5\x91\x36\x24\x1f\xdf\x26\xf8\xf7\x1f\xe5\xa9\xbf\x36\x6e\x49\x12\xb5\x93\x1e\x1c\x8f\x63\xc3\x7f\xae\x2b\xf1\xd5\x5b\xa3\x94\x3a\x65\x0b\xb4\x63\xcd\xed\x9a\x7b\x06\x2a\xe5\x5a\xa5\x7d\x9c\x5c\xee\xd3\x23\xfd\x9a\x75\x55\xe4\x8b\x83\x4d\x3a\xd4\x44\x1c\x35\xd9\xe0\x7c\x7c\x6e\x4d\x5d\x0f", p, q, g, b"\xb4\xde\xa0\xd5\xb6\x71\xcc\x81\x53\x82\xd0\xec\x6d\xce\x66\x1c\x30\xff\x93\x71\x9d\xc7\xf5\x6e\x7e\x61\xdf\x6e\xb6\xa3\x20\x7a\x05\x61\x79\x38\xc8\x74\xbc\x3a\xb0\x93\xbc\xdb\xbc\x98\x3a\x4b\x0b\x58\x7d\x60\xfd\xeb\x7b\x87\xf7\xb0\xbe\x4a\x65\x68\x83\xf5\x44\x3c\xa7\x86\x45\x41\xcc\xbf\xe0\xd0\x83\x56\x36\xef\x08\xa9\x36\xb2\x32\x1a\x51\x50\x3b\xe1\xee\xc5\xf7\xbc\xcd\x0c\x73\xc9\xcd\x52\x39\x7c\xc2\x14\x31\x8b\x30\xe8\xbe\x1e\xab\x57\x20\x0a\x4d\x4d\xf7\x8a\xf9\x91\xbd\xe1\x83\xe0\x16\x4e\x69\x4d\x83\x08\xb7\xd2\x0d\x06\x7b\xfc\xab\xdc\xb5\x0f\x7a\x2c\x19\x0c\x66\xce\x3d\xd0\xe1\x89\x60\x93\x9c\xb5\x7f\xc3\xa2\xe5\xa6\x04\xf3\xd9\xbd\x6f\xa4\x40\xd5\x4e\x9c\xc0\x38\x39\x58\xa0\xd6\xaa\x2a\xb6\x70\x97\x0f\x9b\x2c\xaf\x86\x6e\xe5\x07\x06\x73\x43\xf7\x51\x3e\x0a\x98\x1f\x3a\x34\x4f\x2f\x75\x3a\xf4\x4f\xda\x26\xd6\x61\x79\x60\x32\xbd\xa0\xf6\xcc\x30\xa9\xa7\x89\xdb\x8d\x3d\x54\x6f\x02\xf8\x98\x11\x68\x05\x18\x0c\x6f\x0d\x2f\x53\x88\xab\x51\x10\xa5\x21\x07\x7d\x88\xd2\x14\xfb\xb3\x2e\xed\x26\x64\x40\x6c\xde\x9b", b"\x04\x34\xef\x1c\x12\x72\x07\xd0\xc8\x84\x70\x1e\x75\xd8\x01\x72\x5c\x45\x1c\xe6\x7d\x2e\x71\x53\x46\x38\xb2\x31", b"\x0c\x62\x5e\x4a\x33\x4d\xb0\x78\x25\xa4\x6b\x55\xda\x9c\x2e\x8a\x5f\x60\x0a\x36\xb7\x16\x06\x83\x40\x97\xe7\x77", ); test::( b"\x5a\x47\x0a\x38\xb2\xeb\xbe\xad\x08\xe0\x10\xef\xef\x74\x61\xf6\xf8\x59\x25\x7d\x91\xa6\x1e\x2f\x0b\xa8\x09\xe2\x8c\x0e\xa3\xd4\x10\xe4\xf4\x14\x77\xa3\x98\xd5\x93\xdf\x58\x03\x9c\x43\x36\x26\x0e\xa7\xd8\xe9\x8c\x9d\x7d\xaa\xd0\xc3\x1e\xcd\x15\x67\xc7\xdb\x73\x01\x79\xe2\xa9\xa6\x20\x07\xbd\x56\xf9\xd9\xda\x48\xde\xaa\x65\x7a\xc9\x22\x93\xe5\xbf\xaf\xbd\xeb\xad\x1a\xfe\x25\xc4\x1e\x1a\xa0\x9d\xb6\x1f\xcc\x19\x19\x71\xc3\x75\x49\x15\x5b\x3e\x67\x95\x69\x13\xaa\xe3\xa5\xf6\x24\x5c\xfc\xb9\xaa\xd5\xdc\x1e\x15", p, q, g, b"\x06\xa2\x0d\x55\x71\x29\x6e\xeb\x87\xe7\x9e\xb2\x74\x03\x6d\x81\x9e\x86\x23\xb1\x5d\xe4\x4c\x26\x97\xda\xde\xca\xb2\x99\x6f\x51\xa7\x5a\xa0\x88\x49\x0e\x68\x3f\x34\xd5\xe0\xe7\x1d\x9f\xb8\x73\x4b\xcf\xb7\x1e\x9d\x19\xcb\xda\x3c\xac\xa5\xce\xc4\x17\xfa\x37\xa0\x61\x42\xbf\xc0\x68\x2d\xe5\x6f\x0d\xce\x6e\x82\x6e\xe9\xf3\x0d\x01\x27\x98\x59\xd3\xff\xbd\x44\x33\xbf\x4a\x10\x57\xba\x0a\xd7\x50\x60\xd4\x1f\x96\x8f\x6d\xa8\x22\xc3\x3c\xbd\xa9\xf7\x72\xc2\xb7\x7b\xc1\xb2\x93\x05\xcb\x69\x71\x82\xc0\xd3\x9b\x13\x28\x68\x93\x2c\x64\x01\x6b\xc9\x07\x1b\x30\x92\x0e\xb3\x85\xc5\xae\x41\xc5\xd4\xf6\x31\xbf\x5f\x54\xb1\xeb\x4b\x37\x3b\xb3\xe0\xbf\x6e\x44\x8a\xd8\xc9\x88\xfe\xa1\x6e\x64\x37\x90\x30\x7b\x8b\x85\xf0\x09\xfb\x67\x31\x72\x17\xd9\x14\x8c\x6c\xd7\xa4\x61\x36\xee\xce\x19\x50\xa1\x19\xe5\xa4\x16\xa1\x97\xe0\x0d\x0e\x92\x9b\x04\xa5\xbb\xf6\xc9\x88\xd8\x59\x5a\x0b\x2a\x5c\xa7\x19\x26\xba\x35\x1a\x5f\x76\x74\xaf\x41\x83\xb5\xa6\x89\x79\xbe\xdd\x64\x91\x29\x5b\x0f\x17\x2e\x73\x73\xec\xa7\xe6\x2d\x78\xd7\x44\xfd\xcc\xec", b"\x74\xdd\xdf\xa3\x5b\x25\xd0\xc0\xb2\x85\xa5\xd2\x17\x19\xee\x39\xd6\xe3\xf4\x43\x44\x5c\xeb\x90\x55\x6b\x01\x86", b"\x47\x48\x65\xd3\xef\x07\xf5\xdf\x49\xe0\xa6\xeb\xfb\x5a\xb5\xc2\xed\xe4\x7c\x4c\x63\x14\xbe\x4c\xcf\x45\x5e\x21", ); test::( b"\x08\x49\xd6\x7e\xad\x3e\x8c\x44\xad\x3b\x2f\x94\x9b\xe1\xcd\x9f\x9a\x4b\xf8\xb5\x78\x5b\xd0\x0c\xa6\x60\x38\xe9\xa8\xb9\x37\x27\xa6\x52\xa4\x15\xc1\xd8\xa1\xec\xfc\xad\x77\x78\x2d\x87\xd9\x12\x62\x3c\x2f\xef\x45\xb2\x08\x3e\xc0\xf7\x9a\x26\x4e\xf7\xc5\xbf\xb7\x6f\xde\x5b\x22\xb9\x84\x53\x92\xe7\x59\xa1\xec\x05\xfa\x63\x87\xcc\xd2\x94\x3e\xf1\x27\x7c\x2e\x06\x03\x37\xf8\x2a\xa5\x62\xce\xe5\xbd\x7c\x15\x82\x58\xf2\xe7\x79\xd5\x1e\x47\xe0\x00\xa7\xb0\x70\x60\x77\x49\x09\x76\xa0\x77\x63\xe2\xef\xb2\x75\xb5\xbf", p, q, g, b"\xb1\xc6\x14\x42\xd8\xae\xda\xe0\xa0\x4d\xae\xf7\xb6\xf8\xa4\x9c\x6d\x07\xbd\x95\x8e\x8e\xc5\x61\x90\x6d\xdf\x31\xf3\xb4\xff\xd4\x81\xda\x54\x43\xfe\x87\x88\x05\x6c\x4e\xa7\xb5\xdf\xa2\xce\xe6\x47\x4e\x3f\xdc\x83\xfc\x04\x3a\x2b\xba\x33\x3d\x50\x3a\x2a\x93\x88\x65\xec\x3f\x11\x86\x40\xe8\x45\x7c\x7d\x97\x4e\x2a\x65\x65\x9c\xef\x5b\x7a\xe4\xf4\x9a\x05\x4d\x94\xae\x5e\x2e\xb6\x34\x5f\x5b\xda\xf9\x21\x48\xbe\xec\xc1\x09\xc5\x50\x31\xfc\xcd\x90\xce\xf8\x82\x13\xb6\x9d\xdb\x75\x4b\x40\xca\x8d\x8f\x0a\x4b\xfc\x81\xa2\x87\x63\x7a\x38\xc2\x18\x07\xf7\x27\xa6\x70\x25\xff\x67\xb7\xfc\xc5\x44\x18\xad\xad\x40\x8a\x5c\x7d\x1c\xe0\x5a\x1d\xe7\xe3\x09\x88\xd5\x60\xe7\x79\xfd\xea\x1b\x78\x75\x33\x14\xb0\xb8\x0f\xda\xcb\x62\x46\xfa\xa4\xb4\xc4\xee\x8a\xcc\x5a\xe2\x4b\x82\x31\x20\x40\x13\x4c\xd8\xcc\x2f\xd4\xfc\xb1\x91\xfe\x43\xf6\x4d\x14\x06\x24\xa8\xc6\xc2\xac\x5f\xa4\xbf\xdb\xa5\xd6\x25\xd7\xd2\x1e\x3c\x3f\x6a\xcd\x8a\x15\x3a\x04\xfb\x22\xf8\xd3\xb2\x44\xae\x8c\x6a\x1d\xd0\xe6\xe3\xb2\xf7\x3c\x06\x4f\xfa\xbf\xad\x6c\xc4\x61", b"\x2a\xeb\x7f\xce\x1b\x77\x64\xd3\x2c\xfb\x7d\x85\x25\x4c\xee\xd9\xf3\xa6\x33\x7e\xe8\xda\xb4\x2c\x8a\xb7\xa4\x15", b"\x17\xcc\xe1\x3b\xcb\x91\x7c\xdb\xef\xe0\xc5\x66\x31\x8f\xc9\x74\x20\x4b\x70\x0c\x5c\xdd\xc5\xb2\xb4\x99\xa7\x8e", ); test::( b"\xe7\x46\x39\xf2\xba\xd4\x2f\xd6\x39\x3f\x9b\x35\x0d\x6e\x19\xcd\x4c\x1c\xe0\xf4\x1e\x8c\x90\x26\x84\xef\x6f\x86\x79\x0f\xfc\x83\x11\xac\xd9\xb5\x7d\x65\x21\xe8\x03\x39\xb3\x24\x3f\x6e\xc6\xb0\x1a\x06\xea\x89\x9f\xd7\x5d\xa9\x1e\x10\x80\xfd\xf0\x61\x29\xdd\x85\x1a\x89\x5d\x74\xb1\xef\xb9\x83\x72\x89\xc1\x1d\x68\xe1\x30\x8c\x47\xbb\x8c\x59\xd5\xeb\x89\x5d\xb5\x3b\xba\x29\x10\x2a\x5b\x48\xb1\xe7\x5c\x73\x38\x7f\xf2\x2e\x6c\x04\x61\x19\x6a\x7d\x48\x61\x5f\xfd\xb9\xc8\xff\x4e\xc6\x58\x7b\x4f\x68\xd2\x60\xad\x86", p, q, g, b"\x9e\x1b\x77\x24\x3a\xba\x08\x86\xf9\xba\xec\xa6\xc1\x1b\xd2\xc5\xc5\x55\x47\xcc\x50\x2e\x73\x1d\x9c\x47\x25\xda\x87\x77\xab\x60\x50\xe3\x39\x9e\x25\x57\x77\x04\xcf\xc6\x61\x63\xf6\xdf\x8d\x74\x91\x42\xa7\xe9\x74\xe4\x9b\x73\x15\xab\x7c\x8b\x85\xad\x5d\x5c\xb2\x71\xcf\x20\x7e\xb7\x2e\x1c\x34\x76\xb0\xd8\x63\x72\x1c\x96\x7b\xe1\x5e\xcb\xfb\xf0\x6e\xad\xc2\x7d\xe3\x38\xea\xa3\xca\xc1\xdd\xe6\x42\xd5\x2a\xa5\x35\x91\x98\xd8\x90\x9d\x23\xd8\x7d\x82\x70\x90\xa8\xad\xa7\xb7\xa5\x55\x36\x42\xd5\x86\x60\x3e\xa2\x46\x4d\xab\xd2\xef\x5e\x18\xdb\x3a\x62\x3b\xe6\x5b\xe7\xb5\xa4\x69\x89\x0f\x9d\xde\x54\xa2\x7c\xa7\x23\xb4\xe0\x5d\x56\xb7\x18\x1b\x28\xd5\xc1\xf6\x54\x15\x68\x8e\xe4\x1d\x53\x37\xa9\x95\x2d\x92\xed\xe4\xd1\x92\xb9\x09\x16\x39\xca\xaa\x60\x33\xe4\x74\x94\x18\xdd\xe1\x5a\xbe\x4b\xad\x62\xc3\x7f\xab\x05\xe3\xbe\xf4\xcd\x73\x98\xa4\x97\x7e\x07\xe1\x21\xfe\xf2\xaa\xc5\x6b\xe7\xe0\x54\x6e\x40\xfc\xa8\x85\x69\x6a\x38\x50\xc9\xa2\x87\x09\xe6\x99\xd5\x26\x11\xc9\xb7\x92\x6e\x7a\xd1\x81\x49\x04\x05\x82\xc9\x97\xdb\x71", b"\x51\x5b\x9c\xe5\x3e\xb1\x0c\x3e\x47\x89\x05\x56\xe0\xf0\xfd\x19\xad\xb2\x07\xb9\xc0\x1f\x12\xef\x5c\x6c\xaa\xad", b"\x09\x00\xe3\xac\xc4\xc3\x78\xbd\xfe\x9c\xda\x4d\xb8\xf8\xab\x54\x43\x69\x31\xc7\x3d\x8d\x31\x71\xc6\xdc\x8b\xb8", ); test::( b"\x4a\x14\x5d\xd5\xcc\x4a\x12\xea\x43\x61\x7e\xc9\x79\x0f\x10\x38\x19\x0e\xd3\xd8\xaf\x24\xbb\xec\x14\xda\x3e\xcf\x5f\x38\x7c\xa9\x76\x4a\x8b\x9c\xbc\x5f\x62\x92\xa5\x3a\x9d\xa9\x53\x3c\x75\x11\x40\xf8\xda\x5f\xb6\xf3\xd4\x8e\xba\x1e\x7b\x98\x66\x27\x34\xd9\xa8\xb1\x20\xdd\x51\x54\x08\xba\x75\x6f\x75\xa5\x75\x52\x12\x76\x4a\xd9\x2c\x3f\x22\x63\x83\x52\x11\xad\xd5\xb4\xcc\x0e\xca\x8d\x4f\xc7\xa8\x43\xf4\x9c\x38\xce\x80\x86\x8f\xaf\x8b\x49\x8f\xb4\x14\xd3\x08\x0e\xd4\x1e\x36\x74\xe2\x85\xd3\xe4\x0d\x62\xf3\x05", p, q, g, b"\xb3\xf6\xd4\x4d\xa8\x6a\x51\x5d\x71\x85\xb7\x0c\x5a\xda\xa3\xf6\x05\x9c\x0b\xb7\x99\x5a\x53\x91\x07\x61\xfe\xa3\x62\xd9\x84\x3f\x92\xf2\x27\x1d\xdb\x0b\xca\x0d\x45\x19\xe3\x3f\xdb\x13\xaf\x49\xd8\x55\xcd\x0b\x9a\xb0\xb9\x70\x26\x72\x43\xe4\x68\xd3\xc4\x16\x77\xac\x58\x8f\xdf\xcb\x1c\xb9\xaa\x4d\x23\x3f\x7a\xe0\x17\xe6\x70\x94\xf4\xf4\xd9\x04\xe1\x57\x5e\x76\xbd\xc6\xbd\x82\x99\xb4\x2a\x2f\x39\xad\xef\x63\xce\x04\x78\x62\xaa\xa0\xbb\x8b\xa3\x2e\xc2\x73\x34\x93\x64\x84\x06\xf5\x4f\x5d\x8e\x2e\xb1\x9e\xea\x83\x7f\x4d\x59\x63\xad\x31\x92\x91\x7f\x5f\xe3\xb6\xd0\x27\xb2\x2b\xc1\xbf\x0d\xce\x84\x01\xd6\x22\xca\x72\xb1\xd7\x3a\x89\xe8\x88\xde\x1e\x62\xbe\xad\x2e\x4e\x1d\xa6\xb5\xd0\x4b\x2a\x36\x94\xc7\x6f\xe0\x7a\xd3\xc6\x64\x26\x34\x3d\x67\xbe\x12\xb2\xa7\x2c\x3f\x76\x22\x55\x73\xfc\x05\x4f\x3b\x7d\x73\x59\x15\x23\x8d\x7b\xdb\xcb\x03\xba\x6d\xde\x3e\xdc\x00\xf8\xc9\x83\xb0\xb5\x01\x29\xfa\xb4\x26\x00\x4a\x27\xa0\x38\x13\x9f\x2d\x32\x95\xb5\xb0\x32\x70\x1f\xac\xe3\x4a\x75\x23\x55\x94\x85\xfa\x63\x1c\x21\x92\x37\xf6", b"\x5c\xfd\x4b\x9f\x92\xca\x72\x7d\x51\x3a\xc1\x41\x43\xb1\x25\x14\x86\x55\xf1\x64\x2c\x53\xb7\x3c\xc2\x51\x31\xc9", b"\x2a\xde\xf9\x4a\xae\x37\x2d\x57\x9c\x99\x62\x9c\xa0\x78\x63\x62\xcb\x02\x47\xaa\x6d\x99\x95\x70\x74\xcd\x7d\x43", ); test::( b"\x42\x8a\x20\x79\x0c\xad\x1c\x7b\xa8\x21\x18\xae\x58\x41\xbd\x53\x80\xee\x50\xbe\x5b\x64\xb8\x04\x09\x35\xef\x3d\x6d\xa3\x7a\x26\xe6\xf0\x20\x35\xfb\x19\x37\xc7\xa6\xbc\xd8\x8c\x89\x4f\xad\x7d\x8a\xa4\x8a\xbb\x89\xe0\xc6\x42\x87\xcd\xc6\x37\x45\x4d\xb8\x9e\xaf\x0a\x7e\x69\x27\x34\xc8\xa2\x43\x85\x6d\xd7\x56\x90\xbd\xce\xfe\x55\x4e\x39\xa0\xdf\x84\xe6\xe0\xc9\x6b\x2c\x57\x74\xa3\xe4\xe2\xaf\xed\x02\x8f\xb4\x3d\x79\x98\xd3\xcd\xc9\xa6\x40\x93\x22\xcf\x3b\xfa\x4d\x1e\x36\xf5\xe7\x07\x20\x3b\x59\xc4\x9a\x75\x3e", p, q, g, b"\x47\xa9\x34\x0a\xc5\x13\x58\x5c\x83\xbb\x20\xa2\xfb\xa9\x46\x97\x18\x11\x18\x4f\xd2\x00\x65\xfb\x95\xcb\xb2\x06\x25\xb4\x7b\x21\x6f\x75\xe1\xf3\xd8\x97\x97\xf5\x40\xa0\x48\x5c\xfb\xf0\x7b\x17\x16\xa3\xec\xe7\x02\x7d\x86\xf4\x94\x0a\xb9\x0b\xbf\xdd\x8e\xbf\x15\x13\x7b\xcf\x88\x05\xf9\x3c\xea\x25\x9c\x4b\xea\x5a\x2d\x3b\xb3\xdd\xdf\x83\xaa\x29\x0d\x35\x73\xe9\x1a\xa3\x00\xbb\xf1\xaf\xb9\xb5\x25\x54\x2d\x67\xa8\xd8\x60\x51\xae\xd8\xff\x8a\x2c\xfc\x22\x5a\x9e\x51\xeb\x37\x4c\x31\xfe\x10\x3a\xe8\xf4\xa0\xc8\x91\x14\x21\xd2\x25\xc0\x19\xe1\xb5\xc0\x7d\xc1\x49\xba\xbc\x26\xb7\x08\xfc\x0f\xc0\xc1\x3c\x3b\x35\x39\x03\x17\xc4\x09\xfa\xae\x81\xaa\xc9\xab\x5d\x01\xce\x85\xad\xd2\x49\x17\xd9\x4c\xd1\xb2\x14\x1b\x63\x8d\xe3\xa2\x53\xbf\xca\x6b\x7f\x1a\x81\x04\x51\x8d\x15\x72\x21\x1b\xa5\x2d\xd1\x75\x63\x2c\x8f\x3f\x67\x48\x26\x5a\x4b\xf6\xc2\xb8\x36\x3d\x98\x10\xba\x1f\x1e\x58\x47\x94\xf6\x23\x19\xf0\x45\x1d\xa8\x31\xd4\x57\xb5\x26\x9b\xbe\x67\x78\x4c\x47\x4f\xff\xf6\x92\xbb\xe2\xba\xac\xa3\x2d\x3f\x85\xf4\xfe\x39\xe0\x3f", b"\x8a\x96\xc4\x19\xe0\xf3\x91\xda\xa2\x9f\xb1\x62\xa1\xb9\x57\x0f\x48\xa0\x08\x10\xaa\x48\x0c\xde\x0f\x27\xcf\xb0", b"\x02\x8e\xd9\x16\x55\x22\xfc\x59\xae\xeb\x79\xc4\x91\xa9\x5e\xd8\x42\x7f\xd1\xb6\x95\xf3\xde\xdf\x42\x28\xa3\x28", ); test::( b"\x2a\x07\xe2\x8f\xc1\x02\xdf\xe1\x7c\x79\xb9\x36\x8e\x0b\xa9\x24\x14\xd2\xfc\xb4\x07\xd3\x4e\x90\x3a\x0a\x53\x37\x0f\x7d\x2d\x33\xaa\x13\xc0\x2e\x52\x75\x87\x71\x8c\x3b\x39\x66\x61\x25\xec\xa2\xe8\xfd\x4c\x94\xb9\x86\x7f\xb6\xef\x16\xd5\x55\x54\x9d\x8d\xd0\xf6\xe1\x04\x17\xeb\xec\xf4\x8f\x99\x2a\xd8\x4b\x5d\x97\x74\x54\x07\x85\xdd\xcd\x26\x4c\x55\x79\x6b\xc2\x16\x28\x98\xec\xef\x40\x27\xc3\x41\x87\xf8\xc0\xb1\xc2\x0d\x4d\xaa\x10\x8b\x70\xd7\x6c\x40\xdd\xbe\xbc\x1e\x0f\x50\xf4\xdc\x90\x4d\xbf\xbe\x6b\xeb\x9d", p, q, g, b"\x05\xf2\x7e\xc0\x35\x62\x78\x60\xc3\x1a\xa5\x97\xc9\x68\x37\x08\x46\x05\xf2\x70\xd1\x5a\x3f\xbb\xdd\xa1\xc3\x85\x3d\xb2\xea\x6f\x6c\x9d\xe4\xe1\x1a\x6f\xbd\x77\x3c\x30\x0e\xba\xd0\xf9\xdb\xc3\x36\x08\xf9\xc4\xc5\xce\xde\xde\x0c\x26\x79\x1c\xbe\xa3\x5a\xf0\x32\x2a\x60\x77\x39\xe9\x7c\x32\x42\xf0\xae\x7d\x36\xaf\xe2\x69\xaa\xe6\x4b\x5f\xb2\xdb\x26\x5c\xd7\x56\xce\xd4\x5d\x88\x8e\xaa\xb0\x46\x5e\x50\x9a\xb7\xf8\x3d\x62\x3f\x69\xe7\x3c\xdc\x0c\x76\x70\x67\x5c\xe0\xc2\x9f\x49\xa1\x9d\x70\x38\x62\x3b\xde\x36\xe2\x9f\xb8\x54\xe6\xfe\x6f\xfd\xb9\x16\xab\xb7\xd6\x1f\xab\x4b\x62\x0d\xc7\x39\xa5\xcb\xd9\x60\x8a\x45\xe8\x6c\x2b\xbf\xb4\x1b\x86\x99\x16\x68\x22\xe8\x32\xbb\x6c\xac\x66\xe0\x04\xe9\x3d\x19\x0b\x95\x14\x24\xed\xaf\x34\xbf\x6b\xd3\x43\xbf\x60\x15\x4f\x73\x9c\x43\x56\x2b\x03\xae\xb4\xd2\x3d\xe1\xf7\x6c\x18\xf7\x4b\x5f\x7a\x73\xc8\x05\xb2\x2a\xf8\xcc\x6b\xdc\x9b\x55\x77\x9c\xcf\x6d\x44\x1c\xfd\x31\x54\x61\x6c\xda\x18\x80\x7a\x9f\x5e\x2d\x76\x59\xe9\xe2\x13\x29\x75\x51\x57\xda\xbc\x62\x2b\xd1\xae\x2d\x50\x97\xc6", b"\x91\xa4\x57\x69\x31\xed\x62\x1a\x03\x42\xf1\x4e\xe2\xba\x8f\xa8\xe1\xbb\xdf\x89\x4c\x12\x51\xaf\xdf\x72\x14\x6f", b"\x56\x75\x5c\xa1\x63\xf7\xdc\x89\x45\x8a\x7a\x75\xd4\xdd\x3c\xe3\xad\xec\x42\xb4\xaa\x7d\x04\xb2\x85\x8c\x47\xf6", ); test::( b"\x7e\x96\x38\x58\x16\xc9\x7b\xd9\xde\x81\xde\x30\xe6\x7d\xb7\x24\x36\xfb\x42\xfa\xa9\xb6\xcc\xfe\xab\x1f\xa5\x28\xc6\x9e\x63\x51\xb2\x01\x2a\x10\x97\xfb\x86\xd8\xc5\xcc\x60\x25\x6e\xf1\x1b\xe1\x8f\x16\x13\x76\x17\xf8\xcd\xd2\x9e\x3b\xab\x94\x68\xc1\x2a\xe3\x43\x36\xba\x0e\x0e\xb6\xc8\x28\x17\x7d\x1d\x55\xb0\x66\x98\xdd\xf7\x53\x75\x6a\xf8\x30\xa1\x0c\xe9\xc9\x9f\x1d\x13\x68\x26\x68\xe3\xeb\x33\x6a\x80\x61\x8e\x66\x62\x80\x09\x64\x17\xc1\xe2\xb0\x05\xb9\x35\x1f\x5e\xa3\x06\xb8\xc6\x3f\xd1\x84\xa5\x91\x32\xb5", p, q, g, b"\x2b\x69\xbf\x21\xbf\x68\x9a\x1f\x5e\xd7\x09\x6b\x27\xe4\x47\xc1\xd5\x2f\xc2\x47\x3e\x9e\x43\x53\xdb\xf1\x85\x63\x20\x22\xfc\x60\x5c\xef\xe5\x48\x91\x02\xf7\xcb\xe9\x84\xf0\x0c\x1a\xb3\x2f\x2d\xef\x1a\x84\xf1\xbe\xdd\xdb\xc1\x5f\x87\xae\xd0\xa2\xb1\xe9\x12\xe9\xed\xd7\x4e\xdb\xe2\xc1\x5a\x4c\x37\x53\x30\x14\xb9\xd3\x2b\x05\xf5\xa4\x4d\x32\x3d\xef\x1c\xeb\xae\x0e\x21\x6b\xc3\x5a\x1c\xa8\xa4\x26\x5c\x3d\xb5\x57\x4e\xb2\x3e\x17\xf1\x83\x8e\x22\x5e\x46\x7a\x94\x26\xe8\x79\x8c\x5a\x2e\x89\x65\x36\xc4\x8c\x4e\x24\xcd\x2e\xe9\xda\x1b\x61\xae\xd2\xe2\x5b\x98\xe4\xc1\xf4\xee\x55\xe0\xb4\x70\x5f\xeb\x2b\xb1\x69\x4c\xb1\x8a\x64\x14\xbc\xdc\x1a\x74\x89\xb4\xbf\x89\x67\x98\x54\x89\x31\x6b\x3e\x57\xea\x28\x12\x04\xce\xd3\xed\x88\xad\x1b\x20\x7b\xe7\xd2\x94\x12\x7b\xca\x86\xa9\xb8\x61\xcc\xca\x19\x2c\x15\xc8\x15\xe2\x32\x8c\xbd\xaa\x58\x99\xc9\xdd\x27\x1f\xcd\x6e\xea\x0d\x2a\xb0\x09\xa8\xba\x00\x1e\x67\x25\x13\x9b\xe2\x6c\x51\x51\x87\x5c\xdc\xa7\xf9\x14\x34\x44\x3b\x9e\x5e\x47\xa4\x5c\xdc\x8b\x73\x99\xbc\x5e\x8b\xed\x93\x00", b"\x1b\xca\xa2\xca\xf4\x83\xab\xc8\x0b\x75\xf6\x70\x25\x2f\xaa\x2a\x8e\x18\xc3\x23\x01\xba\x6f\xc0\x6f\x37\xc0\x8e", b"\x90\x9a\x78\x52\xb8\xd5\xc8\x81\x3e\x17\xc0\x40\x77\x9a\xd0\xdc\x5e\x9e\x05\x56\x61\x20\x56\x83\x5e\x68\xd2\xb8", ); test::( b"\x24\xed\x7a\x16\x78\x2b\x5c\x34\xbe\xb5\x8b\xab\x6a\x7d\x20\x28\x71\x9f\x97\x38\xe5\xd1\xba\x69\x78\xef\xac\x4b\x53\xb3\x7c\x88\xe7\xea\x02\xe0\xcf\x0f\xd8\x2a\x3e\x50\x04\x60\x52\xa9\x04\x95\x41\xd1\x29\x93\x25\x4a\x46\xfe\x40\x1f\x40\x2d\x38\x94\x3e\x94\x91\x8b\xf7\xa6\xfe\xcb\x08\xed\x13\x09\xb7\xb0\xf2\x18\x59\x67\xef\x28\x9a\x2e\xfa\x6c\x2e\x37\xa7\x4d\x65\x92\xa2\xeb\x74\x01\xca\x5e\x98\xbb\x86\x45\xa9\x4e\x57\x49\x9d\x36\x2e\x0f\x31\x33\xef\x33\x6e\x11\x95\x61\xce\xe1\xb5\x58\xc1\x55\x08\x78\x18\x68", p, q, g, b"\x9d\xcc\xc1\x37\x19\x7b\xb2\x98\x24\xb1\xc1\x0e\x9e\x8d\xed\xd7\x14\xef\xc9\x36\xcf\xf8\x3f\x42\x63\x4d\x64\x39\x1f\x9b\x7f\x4f\xc3\xa2\x31\x95\x4a\x8c\x3b\xfe\x4a\xe0\xf8\x22\x25\xfd\x52\xb5\xdd\xe6\xdc\xd1\x4c\x0c\xe5\x08\x59\x71\xc5\x15\xda\x38\x18\x34\x27\xc7\xe2\xa8\xd7\x6e\x40\xef\xb6\x71\xaf\x79\x7e\x0c\x57\x6e\x38\x81\xd4\x34\xca\x80\x9d\xd5\x53\xcc\xb0\xf7\xcd\x9f\x73\xc7\xae\xa2\x26\x8f\x36\xc8\x41\x70\xab\x0a\xe0\x3b\x2b\x46\xa2\x19\x54\x75\x64\xfd\x21\xc5\x40\xb1\x60\x3a\xd7\x30\x6d\x22\xa9\xeb\x8e\xf3\x7c\xa0\x8c\x2b\x28\xd1\x6c\x5b\x9c\x54\xa3\x28\xeb\xb3\xc0\xf9\x50\x50\x95\xc6\x12\x27\x0d\x52\x63\x7c\xb5\x58\x4e\xd0\x8b\xad\x71\x38\xd3\x38\x8c\x63\x4b\x65\x02\xfa\x64\x73\xa2\xf5\x94\x04\x0b\x9a\xcc\x14\x80\xb3\x43\xd2\x28\x7f\xdc\x70\xd1\x6b\xa1\x4b\x1c\x21\x17\x61\x2d\xcc\x58\x60\xdb\xef\x83\x87\xaf\x9a\xa5\xe1\x62\x1d\x37\xa3\x8f\x6c\xbe\x59\x35\x67\x3e\xa3\xcb\xcd\xe4\xf3\x2a\x24\x9e\xb6\xa5\xee\xd4\x1c\xfd\xca\xa4\xc8\x7e\x8b\xca\xba\xa6\xbd\x1f\xe5\xa8\x79\xd1\x7e\x9a\xe3\x58\x37\xce\x0f", b"\x5f\x4f\x54\x49\xb8\xd0\xdd\xa3\xac\x59\x0b\xa1\x64\x0d\xf9\x77\x2f\xf0\x8c\xec\x08\x52\x8b\xc2\xd7\x0d\x7a\xc9", b"\x5b\xea\x04\xbf\xd3\x32\x48\xf2\x6a\xee\x98\xca\x85\x96\x77\x4e\x95\xce\x68\x54\x65\x17\x4d\x1c\xae\xd7\xd9\x20", ); test::( b"\x49\x06\xdb\xdd\x9d\xa6\xdd\xff\xa1\x52\xfa\x2e\x25\x0e\xea\xd3\xc6\xef\x70\x83\x87\xa3\xad\x64\xd3\x4a\x0e\x05\x74\x59\x47\x1f\x48\x75\x2f\xde\x07\x86\xdb\x28\xa4\xbb\xf5\x81\x14\xd8\xdc\x91\xb6\x9e\x56\xbe\x3c\x49\xec\x1b\x98\x80\xd9\x91\x7c\x73\xab\xc8\x95\x75\x4a\x60\x77\x9b\x18\xbc\x95\x15\x50\xb9\x57\xa7\x7c\x8c\xef\xa1\x59\x90\x81\x26\xcc\x80\x1c\x66\x5d\x1b\x01\x10\x9b\xa6\x04\xbb\x9e\x79\x7c\x7a\x37\x66\x0b\xfc\x05\x93\xba\xb0\x92\x4d\xf5\x80\x6c\xa8\x03\x38\x1b\x24\xb0\x3d\xe3\xd0\x3b\x48\x4d\x49", p, q, g, b"\x07\x2c\xb5\x61\x25\x96\xaa\x71\x61\x42\xf5\xf7\x56\xc9\x54\x20\x13\xf3\xf1\x62\x8c\xfc\x54\x97\xeb\x1b\xa0\xaa\x51\xbd\x5a\xdb\x8e\xb8\xad\xfe\x05\x9c\x0e\x08\x82\xe3\xc0\x9a\x17\xd1\xf5\x1a\xcc\xb6\x87\xb2\x43\xfd\x30\x52\xbb\xcb\x81\xb0\x63\xc1\xe7\xd5\xbe\x06\x65\x87\xeb\xca\x07\x80\x06\xf6\xd6\xee\x71\xa6\x9e\xf5\x9b\x63\x65\xcb\xcf\x64\xd4\xcf\x1b\x92\x99\xe7\x40\x30\x09\x27\x20\x26\xfc\x16\x65\xed\x40\x3a\xb8\xde\xe4\x0e\xea\x4e\xe7\xd5\x62\xaf\x00\x19\x51\x92\x6d\xc8\xbf\x0c\x78\x39\x84\x66\x4f\xfe\xf6\x29\xcb\x59\xd7\x09\xb3\xd9\xaa\x06\x80\x5d\x62\xaf\xd7\x94\x54\x1a\x2b\x4c\xe0\xc5\x90\x43\xac\xf7\x3e\x18\xe7\x44\x53\xe8\x6a\x08\x2f\x17\x91\x4b\xa6\xb2\xb0\xfa\x80\xda\x83\x53\xc7\xed\x91\x62\x60\x95\x75\xed\x41\xf8\xeb\x78\xdb\xaf\xaa\x7b\x51\x8d\xe0\xc8\x5b\x17\x20\xe7\xf4\x93\xb9\x14\xd5\xa3\xd2\xd0\x74\x82\x73\xd1\x69\xd5\x5c\x45\x55\x6b\xca\xe6\x70\x57\x5c\x96\xa4\x44\xfc\x1d\x78\x9f\x5b\xac\xfc\x8b\x24\x13\x2b\xfb\xd7\x5b\x30\x61\xfb\xac\xf2\x93\x5a\x21\x9b\x0f\x2a\xc5\xdc\xad\x71\x85\x16\xa9", b"\x77\x47\x59\x00\xfc\x7f\x3e\x0b\x80\xf3\x88\x4a\xf8\x60\x4e\xef\x60\xff\xe4\x84\xbc\x6c\xd3\xde\x12\x3f\x79\x59", b"\x26\xca\x92\x7d\xa0\xd1\x0b\x43\xdc\x15\x21\xbf\xeb\x58\xff\x34\x7e\xe1\x43\xfc\x38\xdb\x45\x1c\x11\xa0\x35\x10", ); // [mod = L=2048, N=256, SHA-1] let p = b"\xc1\xa5\x9d\x21\x55\x73\x94\x9e\x0b\x20\xa9\x74\xc2\xed\xf2\xe3\x13\x7f\xf2\x46\x30\x62\xf7\x5f\x1d\x13\xdf\x12\xab\xa1\x07\x6b\xb2\xd0\x13\x40\x2b\x60\xaf\x6c\x18\x7f\xb0\xfa\x36\x21\x67\xc9\x76\xc2\x61\x7c\x72\x6f\x90\x77\xf0\x9e\x18\xc1\x1b\x60\xf6\x50\x08\x82\x5b\xd6\xc0\x2a\x1f\x57\xd3\xeb\x0a\xd4\x1c\xd5\x47\xde\x43\xd8\x7f\x25\x25\xf9\x71\xd4\x2b\x30\x65\x06\xe7\xca\x03\xbe\x63\xb3\x5f\x4a\xda\x17\x2d\x0a\x06\x92\x44\x40\xa1\x42\x50\xd7\x82\x2a\xc2\xd5\xae\xaf\xed\x46\x19\xe7\x9d\x41\x58\xa7\xd5\xeb\x2d\x9f\x02\x3d\xb1\x81\xa8\xf0\x94\xb2\xc6\xcb\x87\xcb\x85\x35\x41\x6a\xc1\x98\x13\xf0\x71\x44\x66\x0c\x55\x77\x45\xf4\x4a\x01\xc6\xb1\x02\x90\x92\xc1\x29\xb0\xd2\x71\x83\xe8\x2c\x5a\x21\xa8\x01\x77\xee\x74\x76\xeb\x95\xc4\x66\xfb\x47\x2b\xd3\xd2\xdc\x28\x6c\xe2\x58\x47\xe9\x3c\xbf\xa9\xad\x39\xcc\x57\x03\x5d\x0c\x7b\x64\xb9\x26\xa9\xc7\xf5\xa7\xb2\xbc\x5a\xbc\xbf\xbd\xc0\xb0\xe3\xfe\xde\x3c\x1e\x02\xc4\x4a\xfc\x8a\xef\xc7\x95\x7d\xa0\x7a\x0e\x5f\xd1\x23\x39\xdb\x86\x67\x61\x6f\x62\x28\x6d\xf8\x0d\x58\xab"; let q = b"\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1b\xd6\x2c\x65\xe8\xb8\x7c\x89\x79\x7f\x8f\x0c\xbf\xa5\x5e\x4a\x68\x10\xe2\xc7"; let g = b"\xae\xa5\x87\x87\x40\xf1\x42\x4d\x3c\x6e\xa9\xc6\xb4\x79\x96\x15\xd2\x74\x92\x98\xa1\x7e\x26\x20\x7f\x76\xce\xf3\x40\xdd\xd3\x90\xe1\xb1\xad\x6b\x6c\x00\x10\xad\x01\x5a\x10\x33\x42\xdd\xd4\x52\xca\xc0\x24\xb3\x6e\x42\xd9\xb8\xed\x52\xfa\xfa\xe7\xa1\xd3\xce\x9e\x4b\x21\xf9\x10\xd1\x35\x6e\xb1\x63\xa3\xe5\xa8\x18\x4c\x78\x1b\xf1\x44\x92\xaf\xa2\xe4\xb0\xa5\x6d\x88\x84\xfd\x01\xa6\x28\xb9\x66\x27\x39\xc4\x2e\x5c\x57\x95\xad\xe2\xf5\xf2\x7e\x6d\xe1\xd9\x63\x91\x7c\xe8\x80\x6f\xc4\x0d\x02\x1c\xd8\x7a\xa3\xaa\x3a\x9e\x4f\x0c\x2c\x4c\x45\xd2\x95\x9b\x25\x78\xb2\xfb\x1a\x22\x29\xc3\x7e\x18\x10\x59\xb9\xd5\xe7\xb7\x86\x2f\xa8\x2e\x23\x77\xa4\x9e\xd0\xf9\xdc\xa8\x20\xa5\x81\x40\x79\xdd\x66\x10\x71\x4e\xfa\xf8\xb0\xcc\x68\x3d\x8e\x72\xe4\xc8\x84\xe6\xf9\xd4\x94\x6b\x3e\x8d\x4c\xbb\x92\xad\xbb\xe7\xd4\xc4\x7c\xc3\x0b\xe7\xf8\xc3\x7c\xa8\x18\x83\xa1\xaa\xc6\x86\x00\x59\xff\x46\x40\xa2\x9c\xca\xe7\x3d\xe2\x0b\x12\xe6\x3b\x00\xa8\x8b\x2e\xe9\xba\x94\xb7\x5e\xb4\x0a\x65\x6e\x15\xd9\xec\x83\x73\x1c\x85\xd0\xef\xfc\xb9\xef\x9f"; test::( b"\xde\x36\x05\xdb\xef\xde\x35\x3c\xbe\x05\xe0\xd6\x09\x86\x47\xb6\xd0\x41\x46\x0d\xfd\x4c\x00\x03\x12\xbe\x1a\xfe\x75\x51\xfd\x3b\x93\xfe\xd7\x6a\x97\x63\xc3\x4e\x00\x45\x64\xb8\xf7\xdc\xac\xbd\x99\xe8\x50\x30\x63\x2c\x94\xe9\xb0\xa0\x32\x04\x65\x23\xb7\xaa\xcd\xf9\x34\xa2\xdb\xbd\xcf\xce\xef\xe6\x6b\x4e\x3d\x1c\xb2\x9e\x99\x4f\xf3\xa4\x64\x8a\x8e\xdd\x9d\x58\xed\x71\xf1\x23\x99\xd9\x06\x24\x78\x9c\x4e\x0e\xeb\xb0\xfb\xd5\x08\x0f\x7d\x73\x0f\x87\x5a\x1f\x29\x07\x49\x33\x4c\xb4\x05\xe9\xfd\x2a\xe1\xb4\xed\x65", p, q, g, b"\x88\x0e\x17\xc4\xae\x81\x41\x75\x06\x09\xd8\x25\x1c\x0b\xbd\x7a\xcf\x6d\x0b\x46\x0e\xd3\x68\x8e\x9a\x5f\x99\x0e\x6c\x4b\x5b\x00\x87\x5d\xa7\x50\xe0\x22\x8a\x04\x10\x2a\x35\xf5\x7e\x74\xb8\xd2\xf9\xb6\x95\x0f\x0d\x1d\xb8\xd3\x02\xc5\xc9\x0a\x5b\x87\x86\xa8\x2c\x68\xff\x5b\x17\xa5\x7a\x75\x84\x96\xc5\xf8\x05\x3e\x44\x84\xa2\x53\xd9\x94\x22\x04\xd9\xa1\x10\x9f\x4b\xd2\xa3\xec\x31\x1a\x60\xcf\x69\xc6\x85\xb5\x86\xd9\x86\xf5\x65\xd3\x3d\xbf\x5a\xab\x70\x91\xe3\x1a\xa4\x10\x2c\x4f\x4b\x53\xfb\xf8\x72\xd7\x00\x15\x64\x65\xb6\xc0\x75\xe7\xf7\x78\x47\x1a\x23\x50\x2d\xc0\xfe\xe4\x1b\x27\x1c\x83\x7a\x1c\x26\x69\x16\x99\xf3\x55\x0d\x06\x0a\x33\x10\x99\xf6\x48\x37\xcd\xde\xc6\x9c\xae\xbf\x51\xbf\x4e\xc9\xf3\x6f\x2a\x22\x0f\xe7\x73\xcb\x4d\x3c\x02\xd0\x44\x6d\xdd\x46\x13\x35\x32\xef\x1c\x3c\x69\xd4\x32\xe3\x03\x50\x2b\xd0\x5a\x75\x27\x9a\x78\x09\xa7\x42\xac\x4a\x78\x72\xb0\x7f\x19\x08\x65\x40\x49\x41\x93\x50\xe3\x7a\x95\xf2\xef\x33\x36\x1d\x8d\x87\x36\xd4\x08\x3d\xc1\x4c\x0b\xb9\x72\xe1\x4d\x4c\x7b\x97\xf3\xdd\xfc\xca\xef", b"\x36\x3e\x01\xc5\x64\xf3\x80\xa2\x7d\x7d\x23\xb2\x07\xaf\x3f\x96\x1d\x48\xfc\x09\x95\x48\x7f\x60\x05\x27\x75\xd7\x24\xab\x3d\x10", b"\x49\x16\xd9\x1b\x29\x27\x29\x4e\x42\x9d\x53\x7c\x06\xdd\x24\x63\xd1\x84\x50\x18\xcc\xa2\x87\x3e\x90\xa6\xc8\x37\xb4\x45\xfd\xde", ); test::( b"\x49\x70\x7b\x65\x5b\x6d\x16\x8c\x70\xba\xed\xe0\x38\x66\xb0\xfb\xa6\x02\x39\xad\x4c\xf8\x2f\x53\xb4\x6e\x11\xb2\x6f\xa8\xf6\x27\x6f\xf6\x68\x7d\x09\xe8\xed\x1e\x5d\x96\x3c\x11\xe4\x76\x3b\x2e\x59\xa0\x92\x7f\x01\xe8\xff\xfd\x18\x94\xa6\x26\x23\x27\xc8\x4b\xbb\x42\x98\xd7\xd7\xfb\xca\x66\x06\x73\x12\x8b\xb7\xde\xa4\x61\x78\x14\x64\x85\x53\x9f\x9a\x8f\x88\xda\xc7\x61\xd0\xd5\xd4\x5c\xb5\x57\xcd\xac\x96\x0b\xe2\x3d\xd9\x19\x9a\xcd\x99\xcb\x64\xd1\xfe\xe2\xca\x68\xe4\x23\x46\x1a\x02\xab\xb3\x4c\x1d\xc4\x50\x11", p, q, g, b"\x38\x53\x49\xec\xf9\x9c\xe7\x83\xd4\xe7\xa8\x0a\x7d\xd2\xc5\x33\xa3\x62\x3c\x38\x26\x02\x43\xac\x39\x2d\x4e\xab\x6d\xed\xa5\xb7\x9b\x8f\x91\x67\x92\x2e\x8b\x60\x46\x86\x23\xe4\x60\x3f\xa7\x68\x1f\x53\x5e\x20\xde\x67\x35\x31\x25\x5e\x10\x8f\x54\x2a\x26\xd5\xc8\x7f\x19\xe0\x63\x37\x2d\x14\x28\x69\xc5\xee\xf1\x32\x52\x81\xfe\xe7\xf1\xc7\x4d\x2a\x96\x25\x5d\x42\x0f\x27\x13\x86\x4d\x55\xd3\x6f\x81\x39\x19\x4f\x64\x3a\x6e\x98\xb5\xbf\x97\x32\xc8\x59\x74\x45\xaf\x5a\x71\xe2\x3e\x2a\xc5\xca\xe3\x60\x43\x23\xf7\xbf\x09\x44\x97\x86\x97\x4e\xd5\x3a\x57\x17\xf9\xae\xc1\x4d\xd0\x1b\xd1\xcf\x27\x6b\xf3\xc6\x3d\xec\x43\xc3\xec\x8e\xa6\x55\x7d\xe4\x69\x91\x64\x12\xf0\x45\x6c\x90\xf0\x12\x91\xbb\x71\x25\xe9\xf8\x55\xf4\x55\xb3\x60\xc0\x3d\x4a\x7b\x4a\x8d\x40\x90\xe4\x7a\xaf\x11\x11\xf3\x82\xdd\x26\x05\x73\x4f\xb5\x4f\x4b\x8f\xfe\x23\xc9\xde\xd2\x90\x0b\x31\x21\xb4\x97\xbd\x46\xd0\x45\x8a\x09\xa5\xdf\x4a\xa9\xcf\x1b\xe9\x06\xf5\x54\x23\x13\x38\x4f\x93\xd3\x77\xba\x9e\x0a\x76\x2b\x47\x93\x40\x3b\x91\x4e\x52\x86\x5a\xfa\xbb\x67", b"\x0f\xdc\x5a\x5a\x4a\x2c\x2f\x3d\xf5\x0c\x86\x83\x83\xba\x80\x03\x96\xae\x25\x26\x5b\xe1\xa1\x47\x62\xd3\x11\x0c\xbe\xb3\x48\x19", b"\x4b\x41\x84\x1c\xad\x45\xfe\xde\xa5\xaa\xd0\xa1\x6b\x05\x3e\x88\x35\x3b\x6f\x01\x02\xdf\x74\xc9\xfc\xe0\x9e\x38\xf5\xe6\xc2\x77", ); test::( b"\x76\x3c\x1f\x15\xc5\xdd\x8a\x93\xaa\xc4\xe0\x48\x65\x1c\x4e\xa8\x4a\xf1\x8a\xee\x25\x5b\x56\x95\x9e\xae\xb1\x87\x66\x99\xbe\x75\x27\x1a\xf0\xda\x6c\x3c\xa9\x36\xe9\x9b\xe4\xff\x44\x36\x41\x0f\x69\xae\x70\x18\xb6\xc8\x43\xdc\xe9\xd8\xb7\x1a\x91\xef\xa5\x3c\x39\xbe\x55\xf2\x85\xfb\x8a\xd8\x54\x39\x52\xfd\x3c\xa8\x92\x71\xec\x23\xd3\x42\xcf\xd5\x57\xbf\xb7\x2d\xb4\x3b\x43\x4d\x0e\xd5\xb3\x07\x63\x03\x77\x54\xbb\x0f\x78\x2a\xb0\x82\x35\xa6\x4a\xbb\x7f\x0a\x82\x8f\x89\x2c\xde\x7e\x05\xe3\x01\xda\x7c\x21\xc0\x96", p, q, g, b"\x0b\xec\xd9\x17\xee\xd0\xbe\x9c\xb5\x8f\xf9\xd2\x59\xa8\xfa\x41\x5b\x81\x6d\xa4\xa2\x5d\x3f\x56\x9d\x7b\x9f\x31\x7b\x3f\x47\xe4\x24\x4c\xde\xf3\x57\x96\xfb\x45\x5c\x05\xc1\x56\x45\x2f\x1c\x86\x60\xf5\x34\x6f\xba\x16\x92\x76\x22\x14\x46\xf8\x2b\xbb\x20\x27\xb0\x56\xb5\x37\xcf\xd5\x9c\x57\x29\x91\x66\xa6\xf2\x08\x71\xc7\x4e\x6c\x1d\x3f\x5a\x37\xb7\x5e\x8d\xad\x6c\xad\xcf\x12\xc9\x09\x58\x6a\x32\xf1\x50\xc6\x8e\x33\x23\x06\xab\xef\x8b\xe1\xab\xd5\x6c\x42\xd3\xc3\x69\x36\xcf\x8f\x2a\xca\xce\xb7\x07\x99\x4a\x3d\x4c\x05\x55\xa0\x15\xde\x89\x20\x37\xaa\xc6\x8e\x33\x81\x3b\xf3\x05\x0f\x0f\x3a\x8d\xf5\xe8\x14\x65\x85\x2f\x6a\x19\x5e\xa6\x88\xac\x5d\x25\x8e\xee\x20\x76\xa6\xb2\x36\x36\x2e\x3d\x79\x2e\x7f\x35\x8c\x6b\xa9\x94\xda\x7a\x64\xb1\x82\x63\x96\x96\x55\x47\x3a\xaa\x37\xcb\x3c\xfb\x00\xa2\x7f\x8f\xb2\x4a\x4b\x73\xb0\x25\xc9\x63\x35\x43\x84\x84\xe9\x58\xad\x08\x48\x27\x7d\xf9\x50\x84\x7d\x46\xa9\x87\x4f\x10\x39\xfb\xea\x7e\x08\xbc\x79\x67\x5e\xf1\xdf\x6e\xf2\x12\x30\xa7\x9a\x3b\x16\x13\x08\xa0\xa4\x60\x0b\x53\x47", b"\x76\xe9\xb6\xef\x7e\x8d\x48\xfb\xfc\x43\xbf\x46\x52\x81\x59\x22\x23\xfa\x7e\x0d\x99\x78\x39\x2d\x35\x58\x68\xc8\xa2\x02\x09\xbb", b"\x7f\x9c\x8d\xea\xb5\x1c\x60\xbb\x6f\x86\x6c\x76\x45\x01\x38\xe0\xd2\x94\x6a\xca\x6c\x5f\x88\xdf\xe3\x5a\x0c\x1b\xa4\x93\xee\x47", ); test::( b"\x67\x85\x1d\xe9\x82\xfc\x70\xf9\x69\xd8\x2f\x65\xd8\x5b\x03\x32\xd6\x67\x11\x4f\x27\xb5\x8b\xb9\xe5\x65\xd2\xe4\x0a\xd0\x11\x98\x3d\x93\x60\x49\xcc\x97\xa2\x16\x26\x0f\xa2\xe4\x10\xad\x6d\x6c\x98\xa5\x48\x75\x9a\xa8\xe2\xd0\x22\xc1\xfb\xc1\xb1\x6b\x10\xd8\x3f\xbb\xbd\x12\x6e\xc4\x3d\x5f\xed\xc4\x07\xc8\x31\x46\x1c\x7f\x33\xed\x94\x74\x00\x31\xec\xd0\xf7\x01\xc7\xb1\xdf\x88\xa2\x49\x26\x5b\x3f\x60\xc3\x8f\x42\x85\xbb\xc9\xba\xe1\x64\xbc\x38\xe1\x62\xc2\x35\xc9\xa9\xdf\xc1\xb1\x50\xea\xeb\x14\x82\xeb\xed\x48", p, q, g, b"\xab\x9a\x99\xff\x87\x89\x9b\xd6\x65\x7b\x3a\x9e\x9b\x72\x06\x99\x6b\xbc\x77\x99\xdd\xe5\x7d\xcf\xff\x80\x98\x87\x5d\xc4\x65\x0d\x79\x1e\x90\xbc\x4c\xee\x10\x98\x9b\xf4\x9e\xb5\xe6\x23\x08\x57\xf9\x68\x41\xae\x83\x62\xe4\xee\x5c\xc8\x60\x2f\x6a\x1a\x2c\x6f\x8f\x2f\x68\x0a\xd3\xa7\x2b\x0e\x07\x51\x1e\xad\x30\x1f\x57\x52\x78\xa0\x74\x13\x8a\xa4\xea\xa5\x39\x19\xe3\x4f\x00\x1c\xbe\x2d\xcb\xc3\x45\xc7\x7f\x56\x87\xd0\x71\x98\x1a\x4d\xca\x29\xd0\x26\xbb\x53\xec\x9c\xf0\x3a\x88\xd6\x3c\x52\x20\x6d\x35\x1f\x8f\xca\x10\x23\x9e\x84\xf4\x91\x5c\xe3\x47\xf4\x8d\x65\x0a\xaa\xa6\xb0\x2d\x31\x64\x97\x3f\x82\xfc\x0e\x0f\x83\xa2\xd4\x58\xaf\x65\x73\x6d\x7e\x0d\xbb\x26\x4f\xd7\x79\xff\xd5\xa3\xf0\x66\x58\x44\x94\x59\x85\x26\xcd\x67\xe1\x2d\x6c\x67\x96\x5a\x70\xec\x3f\x09\xe2\xcc\x44\x7f\x17\x7e\xc8\x76\x04\xb5\x31\x48\x66\x83\x02\x5e\x3b\x52\x0a\x26\xe6\x9c\x95\x8c\xf8\x43\x5f\x7c\x6c\xe5\x64\xf0\xa7\x2d\x1f\xc4\x72\x05\xa5\x0b\x39\xd5\x16\xb1\x4a\x47\x6f\x6c\x2d\xca\xce\x50\x33\x9c\xae\x20\xcd\x34\x21\xa7\x5f\x6d\x37\x7b\x8b", b"\x76\x3e\x89\xfc\x8b\x2a\x09\x0b\x75\x81\x2a\xef\xa5\x5d\xe7\xb7\xcd\x61\xec\x3f\xdf\x87\x30\xce\x16\xb0\x5a\x7b\x94\x56\xfd\x2d", b"\x4a\x97\x08\x6b\x67\x17\xa7\x3a\x6b\xe6\xd4\xa9\x5b\x83\x43\xbd\x20\xb0\xd7\xb5\x1c\x3d\xa1\xd8\x6c\x58\x52\x35\x08\x71\x37\x9b", ); test::( b"\x61\x6d\xe9\xdd\x23\xeb\xed\xe4\x28\xe0\x32\xdb\x78\x38\x10\x8a\x22\x4f\x7a\xca\x57\xb1\xdf\x87\xf0\x31\xfe\x1d\x86\x08\x3d\x68\x8c\x5c\x3e\xf0\x78\xe6\x4d\x8d\x5a\x9e\x61\x2d\x39\x83\x46\x0c\xa1\xf8\x16\xf7\x87\xc0\x3c\xa4\x3a\x1f\xd8\xce\x13\x86\x55\xdf\x67\x70\x56\x36\x4c\x0e\xab\x8e\x04\x93\xc0\x7b\xd4\xb2\xb0\x50\x22\x19\x09\x32\xde\x79\x4f\x19\x5d\xbe\xf2\x97\x09\x3e\x7d\xa1\xc4\x30\x4d\xb4\x0b\x63\xca\x53\xe1\xb8\xbc\xda\xd9\x13\xd7\xa9\x02\xaf\x02\x5c\x36\x7c\x48\xde\x38\x7f\x1a\x9b\xcd\x7c\xa4\x2e", p, q, g, b"\x58\x4e\xae\xed\x2d\xc7\x85\xd8\xe2\xb8\xc8\x5f\xd0\xe5\xec\x25\x1f\x13\x49\x58\xbd\x9e\xea\xe4\xf7\x9f\x86\x2b\x62\xcf\x60\x2a\xb1\x0d\x22\xec\xa4\x99\x04\x2f\x2c\x87\x5f\x27\x08\xba\x0d\x69\x7a\xf3\x9f\x23\xf5\xe0\xb7\xde\x4f\xf7\x96\x4b\xab\x12\x79\xef\xa2\xaa\x79\x7a\x2d\x21\xe7\x88\xd2\x49\xf4\x26\x93\xcd\xbf\xd7\x1f\xdc\xb1\xaa\x93\xb7\x9b\xac\x0d\xbc\xb5\x87\xbb\xff\x4e\xf1\x5a\x37\x99\xa5\xfc\xa8\xb1\x58\x98\x38\xe3\x00\x96\x06\x9c\xa7\x93\x1f\x74\x08\x81\x5b\x58\x5d\x14\x0a\x74\x7d\xe4\x3b\xd9\x2c\xac\x3f\x9a\x9b\x18\x62\xfd\x70\x46\x73\xe1\xe5\x87\x10\xc1\x6d\xdb\xe7\xe5\x2d\x31\xa7\xdf\x15\x97\x49\x58\xb1\x28\x81\x16\xed\x98\xff\x24\x7f\x50\x28\xce\xc8\x6d\x9e\xb9\x7b\x12\x6a\x48\xad\xc9\x52\xe9\x0d\xc5\x2f\x2b\xd7\x81\x03\x55\xaa\x90\x75\x05\x1f\x26\x12\x9c\x2d\x2f\xb0\xba\x80\x66\xe4\x14\x98\x9d\x92\xe2\x9e\x68\x99\x60\xe3\x3e\xe5\x6c\xa6\x2d\x71\x4a\x42\xcb\x74\x87\xf7\x0c\x0c\x0b\xa6\x43\xfa\x9d\xd5\xf8\x52\x59\xfd\xec\xd4\x9f\xa9\x70\xc8\x32\x26\x82\xb1\x14\xf2\x64\x78\x37\x63\x7a\xbc\x0e\xd2", b"\x74\x8f\x46\x6b\x7f\xdc\xdf\xa7\x70\x17\xc8\x65\xa3\x3b\x1d\xad\x4d\xb9\x9d\xbd\x63\xef\xa1\xc8\x73\x45\xc4\x83\x3b\x06\x32\xac", b"\x0b\xf9\x93\x8e\x79\x72\xeb\xb0\x0f\xb0\xa3\xc0\xc2\x47\x6d\x25\x09\xdb\x23\xaf\xca\xec\xb1\x7d\xc5\x71\x90\x53\x17\xeb\x8c\xa7", ); test::( b"\x11\x5f\x0a\x8b\xe3\x4e\x84\xd0\x9b\xdc\xca\x69\xd1\x9c\xe1\x7d\xd6\x7d\xf7\x39\xaa\x4f\xc6\xe8\x07\x70\x76\x53\x5f\x39\xaf\x83\x02\x88\x14\x71\xa5\xfb\x0e\x18\x39\xa3\xaa\x76\xdf\xda\x4b\xde\x2f\x9f\xa2\x5f\xa5\x82\xb7\x56\xa4\x96\x6d\x75\x32\x0a\xc1\x99\x54\x72\x27\x16\x66\x15\x6e\xa8\x6c\x19\xa2\x39\x89\x5e\x55\x78\xa3\xc3\x9b\x0b\xa3\x25\x88\x27\xa0\x1d\xf1\xf3\x0d\xb2\x2d\xdb\xc2\x67\xc9\xe2\x90\xd5\xd4\x57\xd0\xa9\x4d\x8a\xa7\x3f\x8e\x79\xf3\xac\xd3\x1b\xde\xee\x7a\xa3\x2c\x79\x2c\x22\xac\xb8\x07\xba", p, q, g, b"\x2e\x06\x07\x3f\x59\x19\x6d\x3e\x29\xba\x71\x8e\x84\x48\x9b\x6f\x44\x7f\xd6\xf6\x7a\x9e\xe6\x35\x7c\x5e\x8a\x58\xfa\x3c\x4f\xb6\xac\x83\x14\xeb\xdc\x3b\x4d\x61\x27\xf2\xb4\xd2\x11\x2c\x27\x79\x9f\x0c\x1a\xc5\xf7\x94\x6b\x56\x07\x21\x2d\x79\x67\x41\xcc\x3b\xe1\x27\x21\x2a\x12\x5e\xdc\x3a\x7a\x91\xa5\x25\xcd\x62\x15\x21\x99\xb1\x8b\x4f\x1d\xc3\x32\x21\x5d\x65\xd6\x4a\xd0\x60\x98\xff\x21\x80\xab\x47\xbb\x57\x28\x72\x0c\x93\x7e\x12\x07\x64\x9e\xd1\x9c\x88\x33\x31\xea\x41\x5f\xaa\x51\xc5\x56\xd1\x26\x49\x66\x5f\x1e\xce\x88\x0d\x05\x5a\x2a\x79\x3a\xdc\x74\xb3\x8f\x15\xf5\x0a\xa9\xb4\x67\x86\xd9\x07\x01\x7b\x1d\x62\x35\xc4\x3b\x37\xc2\x03\x6a\x16\x40\xf6\xbf\xe3\xbe\xc2\xb9\x5b\x43\x00\xa3\xbd\x78\xf4\x71\xf6\xaa\x56\xe5\xe6\x34\x75\x71\x99\x6f\x77\x86\x70\xad\x94\xef\xaf\x20\x99\x1c\x55\x59\x24\xfd\x55\xcd\x51\x8d\xf0\xbd\x55\x8f\xaa\xc3\xf9\x82\x6a\x86\x5a\x3c\xed\x0f\x59\xcb\xea\x45\xc6\x54\x12\xbd\xdf\x8f\x2a\x8a\xab\x3d\xfc\xa1\xdf\xf5\x03\x74\x16\x3f\xa8\x99\xcc\x7f\x7f\x10\x8b\x19\x4f\xc9\x55\xca\xbe\x9c\xa4", b"\x5c\x8d\x76\x44\x07\x35\x05\x5c\x1b\x36\x69\x8d\xa7\x39\x03\xb3\x32\xd6\x4c\xa5\x60\x30\x46\x14\x4f\xb7\x66\x8b\x1a\xca\xc3\x37", b"\x11\xc5\x4e\xfb\xd4\x92\xa7\x14\x7a\x1c\x50\xb2\x87\x37\x7b\x52\xd2\x19\x39\x07\xd5\xbb\x63\x61\x59\xc1\x53\x18\xa4\x80\xca\x6a", ); test::( b"\x3c\x1f\x2b\x92\xdb\x1b\x43\x15\x83\x7b\xaa\x86\x30\x43\xa9\xb4\x49\x6a\x78\x14\x3c\xa7\x4f\x6e\x67\x18\x1f\xac\xf5\x0a\x6e\x08\xd2\x79\x45\xd0\x0e\x7b\x06\xf9\xc5\x7c\x0e\x2f\x15\x27\xc9\x4b\xce\xce\xa6\x99\x31\x75\xd0\xf0\x9b\xab\x4f\x15\xaf\x55\xab\x7a\xa9\xb1\x6b\x48\xc9\x4a\x6a\x99\xc2\xd7\xe4\x77\xb7\x44\xcd\x27\xcd\xb9\xb0\xbb\xf8\x10\x75\x6b\xc6\x37\x6f\xa1\x5b\xfb\xea\x3c\x93\x76\xca\x69\x79\x75\x2f\xdb\x3a\x65\x5a\xff\xd6\xc0\x18\x6d\x1a\x34\x35\x5d\xae\xa8\xcc\x75\xac\xf9\x6b\x88\x47\xdb\xdb\x8d", p, q, g, b"\xa4\x74\x2d\x3c\x7e\x76\x81\xb0\x1c\xd6\xaa\xe1\x74\x23\xcc\x78\x04\x91\xd0\x8d\xf7\x3b\x4a\x71\xed\xf7\xbd\x2e\xe2\x9c\x69\x8c\xd6\x6d\xba\x04\x91\x68\x8f\xc7\xee\xfb\x4d\x70\x91\x47\xbf\xd4\xc8\xc4\xb7\x97\xab\x91\x97\x57\x3b\x5d\x36\x59\x9c\x4a\x59\x2c\x46\x69\x55\xe8\x0a\xe5\xd2\x12\x2b\xca\xa5\xd0\xe1\xd9\x4b\x4e\xd2\xa9\x9b\x1a\xf5\xd0\x8e\xec\x86\xc3\x77\x53\xa3\xc3\x65\x6c\x0f\xef\x0d\x2c\x47\x1e\x4f\xfa\x0f\xb1\x63\x17\x4a\x4d\xf1\x70\x78\x79\xfe\x08\x36\x55\x29\x11\x27\xa3\xbb\xb0\x59\x7e\x23\x80\x2e\x42\x4e\xfe\x40\x16\x36\x03\x64\x50\x6c\x8a\xb4\x08\x1f\x0a\x95\x69\x2c\x26\x29\x53\x7f\x05\x30\x61\x81\xdb\x66\x9b\xcf\xaf\x01\xc1\x53\x95\x61\x42\x38\xa2\x30\x94\x29\x19\x95\x55\x14\x26\x39\xb3\x44\x3e\xf8\x5a\xf7\x4b\x5e\x88\xb7\xc7\x0a\x81\x67\x33\x4f\x27\x29\x4a\x8b\xa1\x26\x66\x95\xa3\x69\x37\x2b\xad\xcb\xa7\x62\x3a\xa5\x8c\xbc\xf2\x5b\x4b\xbe\x66\x3d\x4e\xce\xd1\xa1\x8e\x77\x53\x39\x1d\x6c\x53\x85\x4c\x4a\x8d\x0e\xe1\xa7\x90\xa1\xa2\x10\x71\xf1\x38\x6c\x23\x5a\xc2\x61\x82\xd0\x1a\x1e\x81\xec\xf8", b"\x31\xc1\xc6\xae\xe7\xed\x54\x1a\x28\x1f\x37\x63\x2b\x27\xba\x88\x53\x6f\x36\xbc\xd9\x2f\xcc\x36\x0d\xa0\x41\xf4\x19\x7f\x7f\x95", b"\x45\xe1\x01\x9b\x2a\x17\x02\xb5\xdf\x1e\xef\x4f\xb7\xdf\x6a\x53\xaa\xa6\x6e\xcb\x8b\xe5\xcd\x2e\x28\xb3\x53\xc8\x70\xe0\x1f\x41", ); test::( b"\xad\x38\x9f\x53\x23\x5d\xeb\x06\x8f\x70\x97\x78\x03\x30\x74\x64\x93\x60\x7f\xdb\x7e\x11\x70\xbd\x1f\xe0\xda\x01\x27\x14\xb8\xf1\xb1\x28\xc6\x9a\x53\xd7\xdd\x26\x46\xb0\x97\x20\x88\x3e\x23\x87\xdd\x15\xd4\x65\x64\xad\xff\x66\x42\x37\x2c\x83\x82\x87\xba\xfa\x5f\x43\x43\xa2\x7e\xc8\x06\x97\x70\xe5\xc3\x67\x54\x88\x33\xfd\xdc\xc5\xf8\x61\x7a\xaf\x41\x28\x9d\x96\xdd\x40\xf1\x09\x8d\xed\x9f\xbb\x11\x0a\xeb\x14\xd6\x92\x72\xdf\xb2\xdd\x7d\x75\xe7\xa8\x8d\xc4\x14\x7f\x27\xc6\x4e\xb1\xbf\x0a\xa0\x56\x9b\xbd\xa3\x20", p, q, g, b"\xbf\x4a\xa2\xd8\x67\xb4\x33\xf9\x34\xd1\xd5\x67\x01\x0d\xbe\x06\x79\x05\xf4\xe3\x5d\x7c\xe5\x68\xb5\x5a\xba\x69\x4d\x12\xdf\xba\x95\xc2\x35\x07\x84\x61\xaa\xab\x81\xf1\xe4\xdf\x32\x31\x9e\x57\x59\xc5\x26\x3e\xbf\xbe\xbf\x79\x60\xc5\x7a\xed\x79\xbf\x2d\xe3\x89\x48\xf8\xff\x79\xef\x26\xd6\x6a\x7f\x98\x38\x41\x17\xdc\xe1\xf3\x86\xae\xcc\x43\x69\xaf\xb2\xe0\xde\x77\xcc\xd2\xe7\xde\xc3\x28\x61\x42\x43\xef\xfa\xc6\x07\xc8\xd5\xfc\x5c\x7c\x0b\x11\x43\x96\x35\x73\xd9\xf1\x06\xfc\xec\xf2\xe1\x5c\x67\xa3\xbf\xf6\x90\x8b\x28\x6d\x0e\x41\x31\xfb\x81\x62\x2f\xff\x9e\x10\xf5\x77\x1a\xfe\xde\x22\x76\xe8\x34\x4d\x9a\xe2\xf4\x93\xfb\x48\x56\xd1\xba\x57\x60\xdd\xae\x38\xaf\x7d\xdc\xa4\x09\xe7\x90\x72\x68\x69\x1b\xaa\x33\xdf\xcb\xfd\x69\xe9\xaa\x9f\xaa\x79\xcf\x30\x3a\xc8\xb1\xfa\x07\xc1\xd4\x0d\x1c\xea\x01\xe8\xba\x0d\x65\x26\x5f\x4c\x6a\xab\xb1\x6e\xbe\x2f\x6e\xf5\xaa\xac\x25\xc0\xc2\x73\x0c\xbe\xed\xc1\x77\x66\x7e\xe0\x2b\xf4\x52\x34\x18\xa9\x86\xd5\xb8\x7a\x9b\x75\xec\x20\x1a\xf0\xf1\x96\x1c\xd5\x1b\x85\x87\x91\x47\xe6\x07", b"\x2f\x94\x84\xaa\xed\xa9\xdc\xb8\x8d\x2d\x36\x44\xdb\x2c\x58\xee\xfe\x2e\x76\x95\xa6\xc8\xbe\x9a\xbe\x97\x17\x3e\xfc\x9c\x0b\xc3", b"\x01\x66\xa7\xbf\x4e\x8b\xda\x6b\x86\x39\x69\x43\xa7\x4a\x8e\xbf\xc6\x03\xa8\x5e\xd2\x87\xbf\x3f\x5a\x30\xdd\x0b\xbe\x49\xcd\x8b", ); test::( b"\x12\xf9\x58\x2e\x3a\x1a\x76\xf2\x99\xd7\x2d\x9b\x15\x02\xb9\x90\x60\x80\x26\x60\x22\x6b\xc4\x7b\x71\xe5\x4e\xc9\x38\x8e\xac\x32\x59\x02\xac\xbe\x2b\xd7\x10\x9e\x19\xf3\x77\xc9\xd2\xb4\xd2\x80\xcd\xfa\xa4\x88\x88\xb9\xcf\x4e\xd0\x6c\xcf\x5a\xd8\x66\xd6\x93\x2d\x40\x25\x92\xf6\xbe\x6e\x68\x76\xdb\x5a\x62\xbe\xea\xf3\x73\xb6\x02\x38\xab\x96\x82\x92\x43\x75\x9b\xdb\x58\x6f\x45\xec\x4a\xe2\xcb\x22\x24\x8a\xb0\xb6\xaa\x7a\x75\x83\xa6\x1d\xd3\xb8\xf1\x19\xcd\x84\x04\x79\xa4\xa9\xaf\x8a\x43\x9d\xb9\x04\xac\x14\xec", p, q, g, b"\x72\xd8\x10\x06\x92\xe1\xa3\x0a\x32\xe3\x7c\x90\x9e\xb6\xc7\xba\xea\x72\x58\xb0\xb7\x86\x68\xe7\x59\x15\x07\x00\x37\x47\x9b\x88\x4f\xa9\xf1\x80\x66\xdf\x89\xb4\x90\xf9\xa2\x69\x6a\x85\x05\x03\x69\x77\x60\x4d\xad\x26\x8e\x90\x55\x28\x35\xfd\xca\x33\x39\xb3\x23\x60\xc9\x43\x58\xff\xcd\x0b\x1e\xa1\x10\x66\x12\x2e\xfd\x01\x7c\xd6\xfe\x1e\xcd\x0d\xd6\x67\x80\x81\xb8\x4c\xb6\xe1\x44\x47\x1d\xae\x76\x36\xb4\xa0\x92\x9c\xa7\x1a\xa4\x7b\x40\x86\x66\x5d\x66\xd4\x03\x4c\x18\x8d\x64\xd3\x8b\x69\xf0\xca\x17\x1c\x85\x92\x5c\xad\x28\x40\x27\x7d\x28\x87\xa7\xf7\xb8\x1e\x6b\x12\x87\x0c\xc3\xc6\x9e\x18\xca\x9c\x22\xc3\xd3\xa3\x9e\xe2\x86\xca\x65\xd2\x3f\x3e\x81\x11\xaa\x7c\x6e\xa9\xa0\xd1\x4c\x84\xdd\xf7\x6a\xbd\x44\xdb\x3b\x98\x33\xd6\x9c\xb9\x9b\x52\x4c\x98\xfd\xb9\xd0\xff\x20\xc9\xd2\x68\xe8\xe7\x17\x5f\x13\xc1\x1c\x57\x95\xd0\xfe\x0b\x38\x99\xb7\x4c\x0d\xca\x91\x47\x6f\xeb\xcb\x50\x9f\x7f\xd5\x07\x02\x39\x88\x14\x52\x42\xdf\xc8\x09\xce\x95\xc6\xf1\xb3\x1f\x67\xe0\x16\x50\xdd\x45\x87\x8e\xfc\x7e\xa8\x9c\xf6\xe3\x17\x1e\x43", b"\x38\xcf\x6b\x8c\xba\xe8\x2e\x62\x95\xf8\x33\x16\xa9\xc4\x9d\x2d\xc7\xc9\x2c\xb9\x0b\x19\xa2\xc2\xd4\x56\x49\x94\x93\x54\xd9\x30", b"\x35\x6a\x58\x50\xd0\x7a\xec\x6e\x9d\x4a\x4d\x7f\x79\xd9\xb0\x35\x2b\x08\x7d\x7e\xf4\x83\x94\x12\x8c\x5a\xe4\x99\x3e\x82\x59\xb8", ); test::( b"\xb6\xac\x84\xc4\x9f\x6b\xd6\x01\xd5\x86\x8b\xa0\x6d\x49\xb8\xcb\xa8\x7a\x9d\x6e\x79\x05\x24\x75\x41\xfd\x33\x2c\x2b\x03\x74\xcf\x57\xd4\xa0\xdc\x0b\x5a\x6c\x3f\x8f\x7e\x24\xbe\x3a\x1e\xed\xc4\xa8\xc5\x75\x84\x7c\x02\xe4\xed\xd4\x74\x50\x40\x68\x56\x70\x05\x89\x96\x25\x0f\x73\xe2\x98\xa4\x3b\x39\x1a\x4a\xd5\x67\xf0\xc9\xbc\x4b\x6a\xbf\x6d\x1e\x5c\x56\xb2\x2f\x4e\xab\x36\xaa\x1a\x81\x2a\x1d\xae\x8d\x28\x73\xcb\x2c\x2a\x52\x1d\x32\x00\x19\xc7\xca\xb1\xef\xb1\x1f\xa4\x59\x5c\x53\x4c\xe5\x27\xd4\x3b\xa6\x05\xf7", p, q, g, b"\x06\xda\xb4\x8a\x07\x6e\x8c\xec\x27\xd4\xc4\xfb\x98\xe7\xc0\x0f\x36\xbe\xd7\x3f\x11\xe4\x91\xd9\x13\x86\x4c\xae\x0f\xdf\x88\x34\x68\xd7\x35\xde\xee\x52\x51\xdd\x38\xa1\xf8\xb1\xd2\xbc\x19\xd3\x7f\x31\x87\xa4\xef\x69\xc3\x3d\xc9\x52\x88\x01\xa2\x3a\x98\xd9\x6f\xd3\xf1\x29\xb8\xca\x29\x41\x42\x1b\xa1\x82\x8e\x0c\x4f\x8d\x88\xc5\x31\x93\x93\x02\x92\xa0\xdf\x11\x47\xb0\x7c\x20\xaa\x72\x6c\x71\x77\xef\x66\x0d\xdd\x4e\xcd\xd7\x33\x15\xd4\xb9\x35\x60\x13\xe1\x15\xf0\x67\xe8\x43\xc8\x96\xc1\xa5\x4c\x81\xff\xab\x1b\xfe\x7c\x78\x5e\xde\xc3\x2f\xba\x65\x2b\xab\xfd\xaa\xa0\x39\xb0\x56\x8c\x6b\xeb\x7d\x13\xfb\x4e\x45\x88\x14\x0e\xd6\x26\xb1\x87\x49\xb0\xf7\x9f\x66\x9f\x6e\x70\x45\x73\x8c\xf5\x0a\x6d\x00\x28\xba\x11\xfe\x18\x45\xa2\xdc\xbd\x9c\x1b\x02\x33\x6f\xb3\x0e\xaa\xa3\x97\x41\x8f\xe1\x7e\x14\x98\x29\xca\xb1\x3d\x2c\x2e\x6b\x90\xe5\xcc\x81\x83\x4e\x32\xfc\xa8\xa1\x73\x63\x4e\x01\xf9\xa9\x73\xe0\x29\x64\x4f\x01\x65\xb3\x03\x3d\xfb\x05\x4d\xd2\x1d\x65\xe0\xc0\xe1\x37\xb4\x8c\x34\xd4\x21\x34\xc4\x7b\x97\x24\x33\xcc\xde", b"\x1d\x60\x0a\x74\x5a\x1d\xec\x93\x38\x68\xdc\x53\x5a\x19\xee\x9f\x1a\xf8\xbf\x09\xb5\xab\xee\x15\xdc\x4f\x7c\xbc\xb9\x5a\xc8\xc5", b"\x23\xb8\x10\x97\xd5\x83\x34\x2e\xbe\x4a\xed\x36\x4a\x7a\xf9\x88\x2f\x74\xe6\x45\x18\xaa\xed\xce\x34\x6c\x91\xd6\xd7\xac\x47\x0b", ); test::( b"\xa9\x2e\x2d\xdb\xfd\x18\xcd\x30\x73\x73\xfc\xb3\x9d\xff\xc3\x3e\x0b\x91\xa4\x8c\x62\x07\x1f\x2f\x7a\x8e\x50\xdb\xf2\xc2\x90\x88\x93\x07\x97\x5b\x6a\xcd\x64\x2c\x8e\x3d\x34\x44\xac\xac\x98\xc2\x2e\xd0\x65\x51\xfe\xc5\xdc\x7c\x9f\x22\x43\xb6\x81\xcc\x9f\xa4\xfc\xc1\x2c\x31\x82\x37\xe9\xa5\xdf\x0a\x77\xac\x22\x40\x20\x39\xce\xf3\x1b\x1e\x62\x3a\xf5\x82\x12\xa2\x2e\x7e\x60\x41\x9b\xb3\x6b\x77\x7c\xf6\xce\x65\xdd\x1f\x56\x96\x3e\xb2\x8b\x77\x06\xf1\x37\xc0\xf7\x36\x3a\x00\x2d\x82\x7e\x45\xba\xdc\x20\x23\x3c\x16", p, q, g, b"\x51\x41\x22\x3f\x46\x97\xde\x27\x22\x69\xf3\xd9\x94\x37\xc4\x8d\xba\x5a\xb7\xf1\x37\x3f\xc6\xba\xd8\x16\x10\x18\xc5\xd6\xfc\xe2\xbc\xcc\x40\xca\x78\xe4\xd7\x3b\x6e\xeb\x09\x6f\x17\x5c\x4c\xd0\xc8\xe9\xf3\xe9\x31\x19\x51\xd5\x1e\xa2\x44\xfd\x33\xd9\xe4\x7d\xe7\x5f\x10\x00\x24\x8f\xdc\x00\x3b\xc0\x7b\x50\x1c\xe5\x8f\x6e\xc1\xae\xd1\x75\x4c\x36\x82\x6c\xd9\x19\x76\xb4\x08\xeb\x7a\xa9\xbc\x42\x44\x80\x58\xff\xd3\xb4\xe5\x13\xc6\x58\x9f\x8e\x1b\xc1\x45\xa4\x7b\x24\x70\xe7\x24\x1e\x23\x25\xe5\x43\x02\x25\x5c\x3d\x6d\x97\xab\xc5\xc6\x05\x62\x66\xa9\x52\x3d\x46\x1f\xc7\x44\x14\x6d\xa3\x5c\x04\xa4\xfc\x0b\x09\x58\x81\xcb\x94\xfc\x4c\x03\xbb\x86\x23\x95\x39\x28\x49\x0d\xbe\x7f\x84\xef\x68\x66\x7f\x23\xd4\xcb\x3e\xd8\x87\x44\x9f\x77\xae\xb1\x58\xa2\x6d\x1b\x39\xb4\xe6\x29\x7f\x23\xd4\x9f\x5b\x41\xf1\x70\xe7\x2f\x72\x13\xee\x40\x36\x4c\x1c\x9a\x63\x98\x5f\x69\xe4\x4e\xac\xdf\xdc\xb5\x8c\x35\xda\xce\x8b\x93\x5d\x07\x89\xa8\xc0\x66\x9a\x23\xd6\x73\x92\x9b\x2a\x58\x2d\x6d\x3b\x2f\x9e\x67\xbe\x89\x18\x90\xda\x12\x36\xc6\xf0", b"\x34\xa6\x5e\x99\xbf\x01\x69\x8b\x5a\x68\xf2\x15\xb9\xc2\x92\x11\x5d\x17\xb3\xc2\x02\xea\x1f\xda\x17\xfc\xd8\xa0\xcd\x74\xb6\x36", b"\x7e\x67\xd4\x42\xb8\xf9\xac\x29\x74\xe8\x4b\xa6\x5a\xef\xf0\xdf\x5f\x83\xc2\x71\xec\xe7\x92\xa8\xda\xb9\xc4\xae\xe8\x7b\xfe\xa8", ); test::( b"\xb5\xaa\x1c\xfe\x23\x48\xd5\x7f\x0e\x53\x33\xfc\x70\x27\x6d\x24\x18\xdd\xda\x49\x12\x2f\x4a\x88\xe8\x01\x0f\x6f\x78\xdc\x82\x9b\xa5\xc7\xcc\x68\xdb\x66\x40\x80\x94\x5c\x43\xee\xb7\x05\xc2\xef\x13\xde\x6e\x4b\x8f\x4d\xe1\xd0\x4f\xb3\x3d\x5b\xcd\x78\x93\xd8\xca\x8b\xfd\xe3\x8c\x9f\xec\xa6\xc4\xec\x03\xb2\xce\x7b\x35\xed\x60\xa6\xa4\x3f\x7f\xc9\xed\x08\x06\x1a\x09\x9b\x3e\xee\xae\x7f\x0f\x15\x16\x14\x9d\x17\x5a\x95\x3f\x52\xc8\xc5\x18\xf3\xad\x24\x7c\x9f\xba\x23\xf1\xf8\x29\xd5\xca\xe6\x26\x73\xee\x20\x1a\xda", p, q, g, b"\x0b\x66\xef\x2c\x7a\x34\x20\x5d\x70\xfc\x36\x40\x49\x57\x04\x3c\xf4\x6b\x28\xac\x4f\x08\x3e\xba\xc3\x78\x7f\x55\xe8\xdd\x1f\x75\xd9\x19\x3a\x84\x27\x59\x37\x6f\x05\x08\xc9\x4c\xc7\x52\x8d\x66\x11\xb5\x0a\x73\x26\x1a\x4a\x5c\xff\x73\x0d\x99\x85\xbb\x34\x1d\xfd\x73\x9a\x4e\x96\x3d\x1c\x40\xf1\x14\xd7\xa7\xac\xe8\x9e\x81\xdd\x70\x86\x1e\xfe\xf2\xba\x9d\x1c\x64\x25\xd5\xf8\x58\x09\x05\x9e\x8e\xf3\x1f\x45\x3c\x97\x74\x3f\xcc\x94\xd3\xb1\xbd\x62\x08\x4e\x97\x57\x90\xb3\x71\x93\xeb\x40\x58\x45\x4a\xb2\x83\xfe\x2b\xaf\xaa\xe8\x03\xde\x89\x28\x79\x55\x4a\x34\x0b\x9a\x3e\x25\x32\x93\x1e\xb9\x5d\x3a\xc5\xeb\x3f\x29\x0a\x3f\x56\x93\x69\x51\x28\x8e\x1c\x05\xbd\xa1\xfa\x74\xdc\x78\xd6\x31\xc2\xe7\xa5\x63\x67\xec\x57\x81\x01\x9d\xfe\xe7\x14\x53\xea\x6b\xbd\x90\x77\x8e\x92\xfe\xa8\xc2\x6b\xd6\xa8\x23\xfb\xca\x71\x57\x7b\x63\x35\xf3\xbd\xf4\x0a\x30\x83\x6e\x94\x8d\xb0\x32\xdb\x5a\x46\x03\xdd\x31\xb8\x51\xec\xbb\xdf\x76\xb4\xa6\xc9\x95\x1d\x21\x92\xb9\x7f\xf0\x1d\xaa\x5c\xb0\x30\xe1\x5a\xd1\xd4\xcf\xf3\x67\xf7\x00\xe7\x9f\xfb", b"\x51\x7f\x7d\xf4\x83\x1f\xbd\x01\x90\x8b\x92\x18\xb1\x7a\xe1\xc4\x0e\x00\xc5\x34\x04\xb3\xbd\x72\xb6\x4f\x67\xce\xe7\x52\x15\xf2", b"\x19\x03\x43\x4a\x72\x7c\x8e\xf0\xe8\x0a\x43\xdc\xe2\x83\x4b\x80\x78\x39\xef\x43\xc2\x2a\xfb\x50\x2b\x35\xa3\x81\x78\x2b\xb6\x39", ); test::( b"\x27\xaa\x81\xd2\xbc\x49\x60\x1c\x3f\x6b\xce\xb0\x87\x0b\xb5\x5d\xd1\x0e\x7b\xa6\xd1\xf8\xac\xad\xa7\x0b\x5f\x90\x2a\x0f\x40\x62\xeb\x93\xae\x72\xcd\xfd\x3f\x94\x30\x99\xcc\x2a\x10\xa3\xda\x7b\xdc\x9f\x24\xb0\x0b\xf3\x6a\x29\xd7\x51\x36\xaf\x10\xbb\x71\xec\x9c\x19\x32\x05\x8e\x22\xec\x9c\x06\x00\xd1\x73\xd3\x79\x70\xd5\x8a\xe1\xf6\x6c\xef\xd2\x7e\x29\x05\xaf\xdd\xe4\x22\x39\x79\xb4\x04\x1f\xd7\xd7\x16\x6e\xa3\x26\xbe\xfd\x5d\xd8\x96\xef\x47\xab\xc6\xd0\x45\xc1\xca\x23\xc1\x95\x3a\x6e\x12\xcc\x3c\x54\xb4\xf6", p, q, g, b"\x93\x2b\x9c\x0f\x2d\x31\x0b\x6b\xfe\xe8\x00\xc0\x74\xa0\x96\x9e\xfa\x24\x62\x44\xfb\x06\x2a\x74\x5a\x9a\x3c\xfe\x6f\x53\x36\xa3\x13\x19\x2e\x92\xa2\x02\x7e\x1d\x2c\x3c\xfa\x93\xaa\xc5\x3d\xfe\x05\xcb\x8f\x83\x21\xac\x88\x2a\x63\xbd\x37\x5a\xf0\xf3\xd9\xec\xc7\x3a\xee\xbe\x12\x67\xf4\x73\xa9\xf9\x0b\x94\xf5\xb6\xde\x43\x57\xb7\x4e\xb3\x0c\xd4\x1a\xea\xfc\x25\x9e\x85\xca\xc7\xd3\x65\xee\x33\x38\x2a\x58\x4e\xec\x63\x71\x9e\xa3\x25\xa2\x41\x4e\x11\x6f\x84\xd2\xaf\x96\x54\x26\x8e\xc4\x4d\x6e\xa2\xe9\x81\x58\x1d\x45\xd8\x05\xb3\x83\xd8\x5c\x13\x0d\x2d\xcd\x1c\x71\xfa\x68\xd9\xc7\x6d\x79\xaa\x81\x96\x15\x2c\x1d\x94\x40\xc3\x3d\x99\xde\x45\x1a\x35\x9e\x0d\x2c\x51\xd6\xaa\xec\xb2\x67\x95\x40\x6e\x52\x8f\x5d\xe3\xe0\x09\x47\xd3\xda\xcc\x69\x5c\x08\xa9\x60\x88\x9a\x2e\x94\xec\xf0\xa4\x61\xc0\x2a\xfc\x58\xb5\x1e\x00\x36\x9c\x73\xc8\x14\x0e\x8b\x92\x38\x8c\xaa\xbd\x1f\x37\xa6\x2d\x1b\x21\x0e\x0f\x31\x41\x27\xf4\x6b\x57\x6a\x4b\x8e\xde\xb3\x47\x13\xaa\x41\x36\xb8\xa1\x87\x5b\xba\x8a\x59\x37\x06\x65\x44\xe3\x4c\x20\x6a\xa4", b"\x05\x05\x7a\x98\x2a\xb4\xa2\xe3\x22\x38\xef\x2e\x3e\xdb\xa0\x7f\xd1\x93\xd9\x0c\x5f\x05\x3c\x83\xa9\xf1\x76\xe2\x1a\x9d\x52\x08", b"\x03\xc2\xb2\x6c\xf4\x6b\x7f\x72\x69\x1a\x72\xd7\xcb\xf3\x36\x53\xdf\x34\x7f\x02\xb0\x68\x3e\xbc\x6c\xb7\xea\x7e\x72\xdc\x8a\x0a", ); test::( b"\x75\x27\x53\x3f\x2d\x10\xc1\x80\x78\xf5\xa8\xde\xc3\x50\xcd\xfa\xd0\x6d\x31\x57\x87\x1e\x4f\xf7\xd7\xc2\xb7\xab\x11\xdf\xf2\x32\xd3\x4f\x07\x69\x92\x78\xf0\x75\x44\x2e\x1d\x4e\xe0\x0c\xd6\xe8\x7c\x19\x31\x33\x38\x41\xc3\x99\x57\x6f\x4e\x58\x7a\x25\x16\x84\xe7\x31\xf7\xc8\x36\x9f\x71\x26\x56\xbc\x1e\x6c\x2d\x20\x9f\x51\x11\x79\xda\x09\x36\x8d\x93\x29\x0e\x05\x8e\x0c\xe9\xb6\x53\x0a\xc6\xc5\xe4\xcf\x0a\x1b\x22\xd5\x88\xd9\x8f\x32\xb3\x4e\x85\x20\x6e\x09\xaa\xc0\x4a\x0e\x1f\x2a\xe2\xa5\xcf\xda\xc4\xe6\xe2\xb3", p, q, g, b"\x72\xc4\x65\x05\xe4\xb0\x71\xf4\x6e\xd6\xb6\xd5\x30\x80\x16\x64\xa4\xfd\x51\x8e\x4c\x6b\xe8\x46\x8a\x38\xc2\x2b\xf7\x4e\xd9\x66\xfd\xc7\xbf\xd7\xc5\x72\x21\x89\x98\xfc\x4c\x14\x4b\x59\x46\x2a\xf7\xe2\x94\xbd\xf5\x79\x7e\xce\xa5\xcb\x2e\xdf\x8c\x8d\x2d\xab\xba\x88\xd0\xb8\x4c\xf2\x85\x24\x36\x9c\x50\x40\xb5\x8f\x09\x07\x72\xda\xc0\xfe\x45\x3c\x32\x90\x7e\x9b\x6c\x74\x0f\xb2\x4e\xd4\xda\xcb\x8f\xdd\x25\xe0\x66\x1b\xc0\xd7\x9d\x41\xf1\x03\xfb\xc8\xf9\x6b\x3e\x3a\x47\x08\xa5\xa7\xf5\xdb\xff\xc9\x8f\x34\x4b\xb7\xcc\xf0\xd5\xed\x07\xaf\x2c\x2f\x0d\x5f\x40\x7b\xcf\xef\xb5\x4d\x9b\x94\x76\x04\xe7\xa7\x83\x56\x87\x4c\x01\xb8\xc1\xfd\xd7\x49\xf6\xa3\xd6\x19\xd1\x09\x0c\x83\x72\x5e\x72\x57\x06\x84\x6c\x16\xbf\x9d\xfd\xf3\x9f\x21\x80\x62\x3f\x4f\x58\x54\x02\xcc\x7d\x6e\x2c\x10\xb5\x7c\x83\x00\x54\x36\x86\xa3\x86\x05\x6a\x93\x1b\xe6\x33\x6b\xb6\x17\x3d\x9f\xda\x8b\x10\x2c\xf3\x29\x89\xcf\x09\x78\xf9\x56\xd9\xae\x0d\x8f\x30\x75\x2f\x15\x6f\x9f\x92\xd2\x95\x4e\xf1\x31\x00\xa7\x5d\x9f\x7f\xf9\x6f\xe1\x5d\xf0\x7e\x79\x93\xe3", b"\x6a\xa6\xc4\xd7\xaf\xda\x30\xff\x2d\x71\x78\xb5\x2a\x3e\x43\x7e\xd5\xb0\x74\x5a\x24\x7c\x9c\x9e\x12\x0b\xd3\xe8\x33\xa1\xdf\xac", b"\x26\xe0\x88\x79\x11\xbb\x5e\xdb\x6a\x56\x6a\x2a\x12\x76\x35\x33\x91\xb1\xe4\xab\x8a\xe0\xb2\x59\xc1\xbb\xb3\xaf\x3d\x85\xb4\x39", ); test::( b"\x99\x4a\x49\xe5\xe8\xa5\x69\x8f\xda\xc9\xa7\xfa\xac\x01\xfb\x09\xb2\xc6\x11\x3a\x18\x66\x77\x67\x6d\x11\xe6\x04\x9d\xc9\x8c\x93\xc5\x1e\xb5\x14\x4a\xf1\x81\xe1\xef\xbf\x44\x43\x9a\x13\xd2\x95\x65\x38\x54\x81\x36\x71\xf0\x32\xaa\x62\x25\x8c\x14\x19\x5c\x48\x64\xaf\xae\x0b\x5d\x15\x4f\x97\x56\x5c\xef\x07\x5b\xbb\x6d\x97\xe3\x41\x81\x41\x03\x09\xff\xe9\x8b\x45\xc1\xf8\x74\x32\x63\x43\xc3\x6c\x14\xf5\x5f\xa0\x58\x48\x9d\xff\x3b\x49\xdc\x78\x88\xf4\x5a\x09\x9c\x3c\x91\x9b\x25\xed\xac\x17\x06\xbb\x90\xf1\x64\xca", p, q, g, b"\x05\xe2\x33\xac\x49\xc1\xfd\xa2\xa0\xc3\xc7\x8b\x0b\xc7\x2f\xa3\x96\x74\x05\x5d\x18\x8a\x12\x4a\x58\xab\x38\x50\xd9\xa8\x88\x86\x1c\x2f\xe4\xd0\x46\xc3\xe7\xc7\x5e\xe2\x54\xde\x70\xcd\xb1\xc3\x15\x02\x01\xc2\xe0\x47\x33\xeb\xcc\x25\xb8\x87\x70\xfc\x2a\xa8\x2f\x60\x52\x6b\xc6\x64\x04\x7a\x02\x6c\x22\x90\xfa\xd8\xe9\xf8\x1c\xed\xdd\xde\x7f\xe3\xba\x40\x65\x35\xbf\x27\x10\xd7\x9d\xa0\x1b\xd2\xd4\x2b\xb5\xf4\x09\x9c\x3f\x8b\xc2\xac\x86\x4b\xe7\x89\x2a\xeb\x6a\x1f\x34\x02\xc8\x14\x74\xda\x23\xe0\x79\x5c\xd6\xc2\x13\x67\x50\x9a\x54\x15\x91\xee\x1e\x63\x64\xf7\xe7\x55\xb1\x41\x9e\x90\xaf\x86\x99\x30\x15\x2f\x34\xde\x51\xf0\xf0\x6c\xa3\x07\x6e\x68\xc3\xe3\xea\x7f\x4f\x1b\xf1\xd3\xcd\xe3\xa0\xdf\xf0\xcf\xfa\x1b\x58\x42\x75\x23\x47\x08\x2d\xda\x34\x75\x99\x2f\x15\xa7\x4d\x29\x85\x24\xe6\x36\x22\x0b\xc9\xfa\xed\x08\xaf\x7a\xa5\xe4\x81\xba\x78\xd2\xd2\xfd\x8e\x51\x94\x2c\xfd\x08\x4e\xfe\x0e\xbd\xdd\x75\x00\xef\xc9\x5a\x6c\xad\x37\xfc\x49\x23\xf9\xbf\x65\x29\x78\x05\x84\x08\x76\xc6\x89\xee\x07\x9b\x7f\xa6\x16\x97\x68\xfa", b"\x3c\xc2\x69\xbc\x7b\x89\x58\x64\xa0\x32\x31\x31\x8c\xf3\x93\x79\xae\x33\xc7\x18\x0a\x18\xc0\x8b\x5a\xef\x74\x14\xfd\xac\x05\x8f", b"\x6a\x6e\xb8\x3c\x5f\xab\x10\xe3\x4f\x04\x16\x62\x8c\x82\x1a\x6d\xe0\xad\x0c\x20\x24\x43\xc6\xdf\x03\x2c\xc9\xd8\xe4\x94\x8a\xc6", ); // [mod = L=2048, N=256, SHA-224] let p = b"\xd0\x22\x76\xeb\xf3\xc2\x2f\xfd\x66\x69\x83\x18\x3a\x47\xae\x94\xc9\xbc\xcb\xcb\xf9\x5d\xdc\xb4\x91\xd1\xf7\xce\x64\x35\x49\x19\x99\x92\xd3\x7c\x79\xe7\xb0\x32\xd2\x6e\xd0\x31\xb6\xba\x44\x89\xf3\x12\x58\x26\xfa\xfb\x27\x26\xa9\x83\x33\xeb\xd9\xab\xdd\xe5\x92\xd8\x69\x3d\x98\x59\x53\x6d\x9c\xc3\x84\x1a\x1d\x24\xe0\x44\xd3\x5a\xce\xd6\x13\x62\x56\xfc\x6d\x6b\x61\x5c\xf4\xf4\x16\x3a\xa3\x81\xeb\x2b\x4c\x48\x08\x25\xa8\xec\xcc\x56\xd8\xdd\xcf\x5f\xe6\x37\xe3\x8a\xd9\xb2\x97\x4b\xd2\xcf\x68\xbf\x27\x1e\x0d\x06\x7d\x24\x65\xa8\xb6\xb6\x60\x52\x4f\x00\x82\x59\x89\x45\xad\xa5\x8e\xa6\x49\xb9\x80\x4e\xb4\x75\x34\x08\xc2\xc5\x97\x68\xc4\x6a\xbb\x82\xe3\x29\x5f\x3d\x9c\xa4\x69\xf8\x4c\xc1\x87\xf5\x72\xdc\x4b\x5a\x3b\x39\x34\x6e\xc8\x39\xdf\xad\x6f\x07\xd6\xd1\xf0\xe2\x15\x20\x9b\xb0\xec\xc0\x5c\x76\x7c\xf2\xe7\x94\x3a\xc9\xcf\xb0\x2e\xee\x1e\x9e\xf5\x94\x6e\x8c\xe8\x83\x16\xb5\xe1\x5f\xdc\xf9\x5a\x13\x2e\xf2\xe4\xbb\x08\x17\x13\x65\x28\xcf\xa5\xdd\x96\x53\x2f\x9c\x3a\xbe\x5c\x42\x16\x20\xed\xb6\xbc\xbd\x52\x23\x4c\xa9"; let q = b"\x80\x00\x00\x00\x12\x99\x7e\x82\x85\xe4\x08\x97\x08\xf5\x28\x07\x0c\x6d\x7a\xf8\xa0\xbd\x01\x40\x9e\x7a\x07\x9c\xdb\x6f\xc5\xbb"; let g = b"\x77\x84\x53\x04\x9e\xf2\x62\x14\x7f\xed\x7b\x59\xb0\xee\x67\x64\x60\x7c\x51\xe7\xb5\xb5\xfc\x6f\xea\x7a\x7a\x7b\x1d\xd6\xbb\x28\x3f\x4a\x9a\xe9\x8e\xfd\x39\x64\xb1\x55\x67\x58\xcb\x15\xb2\xa5\x3a\xf8\x61\x9e\x74\xd8\x58\x98\xbe\xc7\x7d\x3b\x3f\x38\x24\x94\xae\x59\x61\xa1\x3f\xfc\x74\x5d\xa3\x86\x18\x22\x91\x51\x98\x00\xf9\x9d\xd7\x10\xe0\x0a\xeb\x15\xad\xee\x08\x8e\x27\x98\xee\x2e\x46\xf5\x98\x52\x6c\xf0\xf4\x66\x70\x55\xd1\xba\x00\x97\x50\x04\x1d\xc5\xcd\xd2\x72\x5f\xf1\xd9\x7d\xd3\x40\xc8\x51\x8a\xf7\x67\x1b\x87\xd3\x9d\x67\xae\xce\xd8\x4b\x66\xf8\x4e\x07\x01\xef\xc8\x2a\x5c\x9e\xf9\x54\xee\x57\x6d\x24\xc3\x85\xb1\x4d\x63\x03\x7f\x0d\x86\x6f\xd4\x24\xb4\x97\x5b\xdd\x54\x85\xed\x74\x0c\xb9\x32\xe8\x43\xf9\x06\x68\x3f\x7c\x7b\x2c\x74\x77\x5d\x90\x1c\x36\x1b\x84\x7b\x51\x9c\x0d\xa6\x99\x63\x8d\xa4\x0b\xd7\x36\xb7\x83\xd2\x71\x0b\x2c\x2c\xc2\x6e\xf9\x12\x71\xbf\x4e\x2c\x19\x29\xf8\x76\xe9\x02\xe2\x05\x71\x64\x22\x3b\xc7\x8d\x6a\x2b\x9f\x6c\x0c\x7a\x7c\xb8\x59\x22\xf7\xd6\xc4\x28\x7a\xe2\x38\x61\xf8\x12\x88\x48"; test::( b"\x39\xf2\xd8\xd5\x03\xaa\xe8\xcd\x17\x85\x44\x56\xec\xfa\xd4\x9a\x18\x90\x0d\x43\x75\x41\x2b\xc6\x89\x18\x1e\xd9\xc2\xcc\xaf\xea\x98\xdc\xa6\x89\xa7\x2d\xc7\x5e\x53\x67\xd3\xd3\xab\xfc\x21\x69\x70\x0d\x58\x91\xcf\xf7\x0f\x69\xd9\xac\xa0\x93\xb0\x61\xb9\xf5\x05\x7f\x94\x63\x6b\xc2\x78\x31\x15\x25\x43\x44\xfb\x12\xe3\x3b\x16\x72\x72\xe1\x98\x83\x8a\x87\x28\xe7\x74\x4e\xa9\xa2\xe8\x24\x8e\x34\xd5\x90\x6e\x29\x83\x02\x47\x26\x37\xb8\x79\xde\x91\xc1\xa6\xf9\xf3\x31\xa5\xcf\x98\xa5\xaf\x29\x13\x29\x90\xd2\x74\x16", p, q, g, b"\x7b\xb3\x1e\x98\xc7\xa0\x43\x7f\x97\x8a\x73\xd5\xdc\xfb\xdf\xbb\x09\xcc\x24\x99\xdf\xaf\x1e\xb5\x25\x6b\xcc\xd6\x35\x8c\xab\xb5\xf6\x7d\x04\xa4\x28\x23\x46\x3b\x7e\x95\x7f\x2b\x92\x13\xf1\xfa\x8e\x5a\x98\xd6\x14\x48\x47\x01\xab\xb8\xc7\xd6\x76\x41\xfe\x6e\xd0\x6f\xa4\x52\x7b\x49\x3d\xda\xb2\xe7\x46\x40\xfd\xe3\xde\x70\xda\x69\x3f\x1d\xb2\xb8\xe2\x64\x17\x04\x0a\xf0\xee\xa6\xca\xb4\x51\xa7\x95\xa5\x2e\x18\x7d\x2e\xe2\x41\xb9\x3f\x65\xc8\x6c\x6d\x66\xf4\x58\x34\xcc\xe1\x65\xac\x5e\xb6\x70\xd4\xf0\x09\x5c\x23\xce\x97\x57\xe3\xbd\xc6\x36\xf9\x91\xee\x00\x73\xd9\x0a\x09\x20\x2e\xdb\x35\xcc\x3e\xa1\xcf\x9a\xdc\xa1\x61\x7f\xa0\xbf\xfd\x9c\x12\x62\x29\xa6\x04\xa1\xd3\xbf\x49\x31\xdd\xf0\xb9\x94\x2d\xfc\x8a\x2f\x8c\x09\xfc\xc9\x70\x32\x56\x4a\x79\xae\x1e\xbe\x1e\x2c\xe4\x9f\xf5\x78\x39\xe7\xc4\x3f\xa6\x0b\x16\x03\xd1\x5a\x45\x08\x98\xaa\x4e\x4a\x1e\xe8\x06\x57\x94\x12\x6d\x64\xf0\x13\x36\x70\x96\xa8\x36\x86\xb9\xf1\x58\xc3\x3b\x10\xf5\xf3\xb3\x6c\xf1\xf6\x35\x8b\x3f\x34\xf8\x4b\x10\x1d\xc2\x6d\x3d\xb6\x8b\xcc\x95\xc8", b"\x05\x9b\xee\x9e\x70\x8b\x7f\x20\xc3\xf7\x91\xa6\x40\xed\xee\x96\x4e\x0a\xa6\x72\x89\x3c\x48\x47\x99\x71\x58\x17\xb3\xa8\xf6\xd4", b"\x4b\xd4\x1c\x84\xa7\x24\xcc\x86\xe4\xf0\x19\x4e\xc0\xfb\xf3\x79\xe6\x54\xd0\xd7\xf6\xa1\xf0\x8b\xd4\x68\x13\x94\x22\xa5\xc3\x53", ); test::( b"\x05\x77\xee\x4a\x9b\x8d\xbe\x3c\x6f\xb9\x72\x51\x74\xe8\x99\x40\xb2\x7e\x8a\x98\x92\x17\xb6\x44\x17\xe6\x6f\x39\x6a\x35\xe5\x82\x4f\x21\xe5\x82\x36\xb2\x79\x10\xa3\xbe\x6b\x57\xd3\x11\xaa\x77\x8b\xef\x63\xdd\x02\x5d\x94\x35\x30\x1a\xef\xc9\x22\x23\xc1\xaa\xbb\x03\xd3\xd5\xd3\x85\xb1\xa3\xd1\xf9\x37\xf0\xf1\xf7\xf8\xba\xba\x91\xa0\x11\x20\x74\x80\xb5\xc2\x3a\x78\xeb\xae\xa6\x9a\xe8\xad\x43\x73\xb2\xb0\x52\xd6\x0c\x54\x61\x11\x14\x79\x59\x1f\x83\x30\x12\x3b\xf7\x43\x70\xfb\xa6\x6b\xc7\xe2\xb4\x00\x19\x2c\x47", p, q, g, b"\xc5\x4a\x57\xb0\x8f\x25\x5d\xb1\xc7\x76\xbb\x21\x26\xea\x3c\x1e\x60\x22\x9f\x1e\x19\x81\xe4\x3f\x1d\x6b\x91\x10\xf9\x50\xed\xd8\x24\x5e\xec\xa7\xd5\x5b\xa0\x64\x68\x04\x08\x55\xb7\x36\xdb\x50\x2f\x01\xd6\xb3\xcb\x2d\x9d\x62\x1c\x4d\xb4\x4c\xf8\xcb\x39\x0a\xb2\xae\x33\x2b\xca\x21\x9e\x09\xbb\xbb\xc2\x25\x54\x1d\x4a\x0e\xc0\xb4\xf1\x1a\x59\x1c\x07\x7f\x23\x82\xf0\x4b\xd9\x3b\x36\x4c\x94\xfb\x1c\x61\x47\xff\x77\x84\xe8\x25\x58\xe5\xfb\x68\x42\x74\x59\xfa\x9a\x69\xd7\x8a\x9f\x60\x51\xbd\x94\x31\x88\x7a\xce\x46\xfa\x49\x70\xf0\xe2\x2d\x75\xd2\xbe\xfa\x5a\x22\x8e\x48\x9e\x00\x9a\xf9\x7c\xe9\x21\x14\x08\xb4\xe5\xbf\xe3\x7d\x3e\x07\x00\xb2\x58\xb5\x41\x74\xa5\x12\x5e\xb6\xbb\xec\xa3\x88\x05\xda\x53\xb1\xf5\x82\x9d\xfd\xec\x8c\x4c\x93\x76\xbf\x23\x5b\x7b\x0e\xb7\x11\x9d\x3d\x69\x76\x8b\x80\xee\x02\x23\x45\x89\xb8\xd9\x5f\xaf\x80\x62\xa8\xe1\xe9\xc3\xa6\x86\xb6\x35\x0e\x30\xfa\x53\x5e\xaa\xe7\x1d\x75\x3b\x7c\x3b\x04\x8f\x8e\x97\x22\x25\x4d\xed\xbc\x22\x0a\xc9\xc9\xaf\x07\x84\x53\x20\x32\xab\x65\xe4\x8c\xcf\xcf\xd6\x23", b"\x33\xc1\x98\xea\x68\xbe\xc4\xa7\xfe\xda\xf0\x30\x9c\x31\x7d\x33\x6b\x97\xd1\xeb\x1f\x1d\xc4\x4e\xba\xf5\xc8\x5c\x5a\x3a\xfa\x98", b"\x5c\x9b\x23\xc1\x3b\xb6\x07\xbe\x54\x73\xb3\x2a\xe2\xb5\xe8\xf2\xa1\xe1\x8f\x59\xdf\x8c\xa7\xfd\x93\x03\xf7\x6e\xd8\xe6\x80\xe3", ); test::( b"\xc6\x43\x69\x5d\x29\xb2\x82\x10\x01\x7a\xa5\xa7\xd1\x6e\xbe\xd8\x1b\xa0\x0a\x86\x9d\x66\x81\xd1\xc0\xfe\x90\xa5\xe8\xbe\x9d\x59\x73\x29\xea\x15\xd2\x4b\xa1\x2d\x77\xe4\xc3\xf2\x16\x0b\xcb\xe8\x08\x84\x0c\x6e\x77\xb0\x52\x8b\xf9\xae\x58\x87\x38\xe2\x2f\x41\x91\x0a\x80\xa7\xc6\xe3\x34\x0c\x12\x7b\x9d\xe1\x79\x45\xe7\xf9\x22\x99\x53\xe2\x85\x02\x17\xb6\xd4\x86\xf7\xcc\x80\x4e\x72\x0d\xe2\x14\xce\xf0\x2d\xf4\xa8\x92\xf7\xe4\x28\x98\xf1\x5c\xaa\xd2\x6b\xb3\x0b\xfa\xf4\xb0\x55\x1a\xee\xa1\x40\x35\xcb\x75\x6b\x11", p, q, g, b"\x17\xff\x2a\x5e\xff\x39\x26\xee\x15\x20\xd5\xa6\x3a\x13\xb4\xf7\x01\xdc\xee\xd2\x5a\x65\x39\x66\xf5\x25\x45\x0b\x3a\x63\xb0\x32\x29\xd6\x15\xec\x54\xcf\x4f\x6d\xdb\x86\x8b\x54\xdf\x36\x3f\xee\xcc\x95\xeb\x8a\x3a\xb2\x58\x7f\xc4\xde\x9c\x93\xdc\x8f\x8d\x7f\x38\xf9\x90\x82\xd2\x86\x7b\x23\xd0\x73\x58\x4c\x83\x1b\xaa\x09\x61\x65\x1e\x07\x1b\x43\xf9\xd5\xda\x97\xb6\x0e\x7b\x5b\x7a\x93\x5f\x6c\x1d\xc8\x82\x79\x60\x8e\x2b\xec\x5c\xac\x61\x62\x48\x80\x85\xd0\x92\xa9\x7c\x6b\x6f\x24\x53\x65\x89\xb8\x01\xb6\xb4\x8d\x47\x87\x96\xb5\x2c\x05\x56\x4e\x90\x4b\xc5\x8a\xc1\x50\x50\x74\xdb\x37\x34\xfc\xf3\x57\x5f\x79\x95\x2b\xa0\xa2\xa0\x69\x7e\x55\xe5\x79\xd5\x08\xa4\x00\xeb\xfb\x2d\x46\x94\xb7\x20\x80\x4a\x9d\x00\xf8\x84\x5e\xf0\xa8\xe6\x90\xe6\x75\xb4\xc1\xce\x07\x99\x6d\x64\xe6\x66\xb0\xd6\xa1\xd6\xfc\x6b\xbc\x3c\xd9\xb5\xcc\x38\x64\xe5\xe8\x88\xe3\xc3\x35\xe0\x5e\x83\xc6\x7c\x00\x33\xba\x5e\xfc\x3d\xcd\xec\x04\x46\xd3\xb4\x07\x93\x23\x6c\xa0\x74\xc5\x4d\x2a\x74\xda\xd2\x96\xd7\xc6\x39\xde\xc9\x38\xe3\xbf\x1c\xa0\x85\xdc", b"\x4d\xdd\x2a\x1f\x41\x1b\x57\x0f\xef\x6d\x91\x84\x40\x9b\x4f\xd5\x5d\x12\xc5\xe4\xbd\xdc\x2a\xc7\x21\x12\x35\x87\x33\x22\x15\x5d", b"\x40\x43\x95\x2c\x10\x8e\xf8\x4a\x25\xa1\x68\xea\x5b\x64\xa4\x38\x6f\x7a\x48\x33\x66\x05\x4c\x5d\xfb\xfc\x5f\xa9\x85\x79\x43\x2a", ); test::( b"\x2f\x64\xd1\x1e\x29\x02\x75\x98\x7b\x7d\x74\x30\x24\x22\x89\xaf\xd5\x4f\x1b\xe0\x28\xcf\x36\xf8\xf5\x5d\xb5\x4b\xe7\x0b\x8d\xd5\xad\x74\xae\x26\xe0\x79\xd0\xed\x31\xa3\x61\xc1\x16\x95\x1b\xde\x94\xd6\x86\xab\xf1\x5a\xc5\xed\x14\x70\xc3\xe9\x02\x46\x1c\xea\x8e\x5d\x58\xf4\x07\xd2\xe0\xc0\x72\xee\x61\x56\x7d\xa7\xb3\x53\xf6\xc4\x7e\x69\x4c\xd6\x07\xf3\xae\x89\x4a\x97\x05\xe8\xea\x2b\xf9\xce\xec\x3a\xcf\xa6\xd2\x0b\x23\x8b\xf0\xa7\xa7\xea\xc7\x6c\x44\x62\xb7\xe4\xe4\xe8\x68\x17\x4a\x88\xa6\xa6\xc9\x47\x6c\xdf", p, q, g, b"\x41\xcd\xb2\xc1\xbd\xfa\x36\x52\xee\x49\x69\x5d\x5e\x5e\xee\xc0\x0f\x64\xb5\x4b\x56\x76\xee\x27\xf0\x43\xb4\x3f\x24\x13\x3f\x61\x42\x5b\x0c\xeb\xaa\x1f\x88\xda\x07\x2c\xc6\x88\x65\xc1\x27\x90\xc4\x32\x85\xb7\xe1\x9c\x38\x44\xfc\x7d\x81\xd0\x64\x42\x3f\xf1\xe1\x92\x66\xf6\x9f\x7d\xcb\x3d\x02\x03\x73\x9f\x84\xd7\x3b\xf0\x0c\x52\xd6\x0b\x28\x75\x17\x12\x16\x67\x8d\x59\xfb\x55\x75\x53\xed\xc9\xeb\xa6\xb8\x41\x27\x16\x9f\xe5\xdd\x2f\x81\xfc\x90\x2c\x97\x0d\x1d\x8d\x9c\x47\x79\xdf\xa1\xb1\x43\x09\xf8\x10\x06\xee\x64\x17\x76\xa6\xfa\x36\x33\x9e\x96\x31\x17\x44\x7a\xce\xb8\x23\xc9\xca\x33\x67\x17\x2e\xdd\xaf\x6e\x36\x18\x29\xda\xe4\x3c\x40\x38\xcd\xb9\x0e\xbb\x68\xb5\x3c\x0a\x22\xd4\x10\xb6\xf1\xbf\xa7\xc4\x74\x96\xea\x3a\xed\xdc\x36\xbf\x24\xf2\x19\xb8\x59\x17\xa2\x4d\x30\x84\x7c\x77\xd8\x7d\x22\xa7\xf7\x48\x6c\x66\x84\x75\x5e\x04\x5d\xdf\x72\xd4\x16\x50\xe9\x7b\x64\xa6\x4b\xec\xad\xfc\x47\xd5\x35\x55\x12\x7f\x8b\x7a\xb7\x8d\x48\x05\x29\x57\x19\x96\xee\xde\x46\x18\x88\x2d\x83\x8b\xd6\x95\xef\xc8\x7e\x74\xd6\x8c\xa5", b"\x4f\xe6\xe2\xa7\x5d\x9c\x72\xe8\x1a\xc6\x0d\xd3\x3d\x31\x18\x0d\xf8\x29\xb3\x1a\x0d\xbd\x5f\xd2\x0b\x7e\x28\xc4\xfe\xe2\x7d\x5b", b"\x3c\xe4\xa0\x6b\xfa\xf7\x0c\xb6\xcc\x93\xf3\x3f\x95\xa4\x3a\xd7\x7e\xd7\xad\x7c\x77\xa1\x67\x4b\xf8\x49\xe9\xeb\xbc\x5e\xda\x29", ); test::( b"\x17\x3c\x4a\x23\x62\x1c\x32\xc3\xe4\xb1\x57\xef\x96\xb0\x2f\xc1\xbb\x46\x6a\x25\x37\xd3\xf6\xe5\x1a\x58\xe5\x10\xc4\xae\xf3\xaa\xe4\xbc\xe4\xc0\xb4\xd5\x9b\xb1\xc0\x0e\x7a\x35\xf9\x89\x45\xca\x9d\x7f\xdf\x1f\x0b\xac\x73\x2d\x42\x50\x43\x06\x2b\xc6\xd3\x20\x15\x23\x3d\xfb\x29\x5a\xe0\x8a\x32\x4a\xc7\xc1\xe0\x2a\x11\x7c\xe4\x36\xd7\x7d\x4e\x46\xd0\xb7\x94\xaf\x04\xb1\xdb\x82\xa2\x70\x9d\xa1\xc4\x44\x9c\x29\xcc\xba\x93\xdb\x8e\xc4\x8e\xb1\x79\x21\xcb\x38\x9f\x6e\x0a\xe3\x29\x95\xd7\xfe\xe1\xfa\x07\x17\x7a\x7a", p, q, g, b"\x67\x3e\x34\x9c\xf6\xd0\x5c\xaa\x16\x75\x1d\x97\xba\x6e\x34\x4e\x40\xe1\x58\xe6\xa7\xfc\x53\xea\x2d\xb8\x78\x91\x34\x1e\x64\x99\x82\x5b\x5b\x9e\xdb\xce\x91\x90\xbd\x87\xc3\xea\xdf\x7c\x6d\x5b\xf0\xa7\x93\xaf\x2c\x3a\x1c\x8d\xed\x79\x0b\xc3\x19\x44\x93\x94\xc6\x43\x84\x30\x58\x64\x72\x3a\x8a\x7b\xfe\xf2\x6c\x08\x20\x30\xab\x36\x0b\xf9\xab\xb1\x11\x17\xe6\x1b\x00\x54\x97\x26\xd7\x72\x22\x1f\x6f\x67\xc4\xa6\xa1\x10\xcd\x9a\x96\x58\x78\x1e\xa8\xf7\xef\x2f\x17\x6c\x6e\x88\x16\xa8\x65\xaf\x39\x6d\xb9\x5d\x84\x15\xb5\x41\xcf\x0f\x83\xe4\x5a\x41\x73\x74\xcf\x3a\xcf\x5c\x6b\x4a\x98\x39\x05\x22\xe7\x14\x0c\xc8\xaa\x3f\x9d\x2d\xd2\x63\x41\xd4\xeb\x79\xe4\xd9\x31\xa1\x78\xe3\xd5\x7d\xc5\x2b\xfd\xf9\x01\x15\xe0\x1b\x76\x09\x4a\xd0\x29\x49\x79\xd3\x5d\x92\xb5\x74\xce\x7b\x0c\x62\x7f\x08\xbe\x66\xf9\x9e\xff\xad\xc3\x3a\xed\x0f\x63\x4f\x6a\x89\x50\x74\x55\xd7\x34\x1e\xe6\x41\x83\xaa\x61\x0d\x8b\xb3\x23\x71\x47\xbd\x90\xdc\xd9\xc1\xa0\x3d\x89\xb2\x6e\xe3\x1d\xbe\xf5\xae\x7e\x76\x4b\xa9\xf7\x7b\x6a\x74\x34\xad\x2a\x8f\x96\x6c", b"\x39\x3d\x68\x1c\x3e\xdb\xa2\x8f\x7c\xb0\xf3\x05\x93\xb9\x4f\xc1\x5c\xca\x65\x9a\x80\xcf\xbc\xb3\xb2\x36\x45\x37\x22\xd5\xb4\x02", b"\x44\xf7\x42\x1b\xce\x1e\x52\x73\xa3\x0e\xc0\x16\xbb\x99\x69\xb7\x57\x19\x79\x87\x54\x8e\x43\x4e\x39\x5a\xb3\xde\x1b\x0e\x7b\xa2", ); test::( b"\x7d\x6f\x2a\x97\xe1\xeb\x08\x5c\xb9\xe8\x3a\xa2\x40\x47\xaf\x9b\xa3\x0a\x05\xd7\xba\xb5\x64\xa1\x49\xb9\xcd\x23\x66\x51\x8e\x8f\x19\x91\x34\xfc\x2c\xa4\x03\x94\x7f\x2a\x61\x4c\x03\x63\xed\x4b\xc1\x34\x9d\xc4\x96\xa8\xec\x74\xd8\x80\x57\x84\x75\xe4\x74\x27\x62\x8b\xb0\x23\xf0\x27\x22\x08\x87\x6a\x3a\x73\x33\x30\x7a\x59\x6c\x15\x8e\xba\x64\xce\x42\xa3\xc7\x90\xe7\x16\x7b\xa4\xa3\x27\xac\x71\xaa\xba\xd2\xf3\x63\x41\xed\xea\x12\xce\x5b\x2b\x73\x58\x07\xb3\x4b\x71\x4a\x49\xa0\xaa\x47\x68\x93\x57\x8f\x06\x45\xdb", p, q, g, b"\x77\x7c\x25\x10\x67\xc8\xab\x16\xcc\xe2\xc4\xa4\xd7\x84\xc7\xe8\x06\xfd\x29\x6c\xbb\xba\xb0\x13\x2e\x2a\xb9\x16\x23\xac\xec\xd8\x30\xe7\xcc\x7c\xde\x03\xe5\x44\xb5\x1f\xb1\xd8\xf0\xb2\xee\xc0\x9f\x55\x95\x39\xaa\x9d\x63\xeb\xc0\xc1\xe3\x25\x79\xf0\x95\x47\x3d\x12\x71\x7c\xe8\x8f\x66\x71\xec\x7e\x3d\x25\x81\xf6\x1b\xfd\xe6\x6c\xf9\xbe\x21\x6d\x6a\x20\x80\x86\xcd\x7b\xea\x77\x01\x50\xa9\xbb\x0a\x5a\x7a\x0d\xac\xe8\x2b\x46\x41\x80\x24\x12\x02\xa3\x0b\x26\xad\x5f\xb9\x33\xc8\x23\x5a\xc2\x91\x8e\x29\xbc\x53\xa5\xc0\x1e\xbc\x1e\x30\xb1\xb4\x6e\x37\x12\x4a\xec\x59\x6f\x8d\x1a\x73\xba\xea\xe5\x88\xce\x7d\x4a\xef\x1a\xe8\x4e\x9a\x97\x66\xc2\x43\x67\x32\x1c\x04\x7c\x3c\xab\xa6\x29\xf5\xd9\x18\x5f\x0f\xfb\x3a\xf7\xe5\x0e\xeb\xd1\xba\x0e\xb7\x7e\xb1\x21\xb9\x80\x73\x79\x4c\xbc\x66\x22\xb6\x78\x26\x2e\xd3\xe2\x29\xc6\xce\xeb\x60\x72\x74\xce\x34\x96\xf3\x70\xb4\x82\xbf\x8f\x68\xc2\x73\x66\x81\x84\x86\xb7\x2a\xdf\xc8\x10\xb2\xf5\x79\x77\x9a\xdc\x9c\x25\x00\x2e\x27\x76\x41\xdd\x9f\xfb\xc5\xdb\x52\x39\xf6\x77\xba\x1a\x9c\x1d", b"\x46\x3b\x1f\xd6\xef\x29\x86\xf7\x5f\x96\x20\x77\x9b\xb6\xf4\x7e\x0b\xea\xfa\x93\x40\xe3\xe5\xee\x58\x9d\x92\x42\x8a\xcd\x4f\x2c", b"\x27\xed\xd3\x39\x17\xe4\x9b\xf7\x71\xf3\xfa\x13\x55\xcd\x39\x28\xd0\xbd\x40\x1a\xa7\xbf\x05\x41\xf3\xaf\x16\x43\xef\xd7\xb6\x77", ); test::( b"\x7f\x87\x85\xe1\xc4\xf8\x2b\xc0\xbb\x75\xf7\x8d\x8c\x41\x13\xe0\x88\x7e\x76\x1a\x86\xb4\x8d\xfa\x43\xa3\x68\x3b\x2b\xb8\x86\xba\x53\xf5\x60\x3c\x8d\x94\xa0\x52\xaf\x36\x71\xc5\xc1\xe7\xc2\x32\x90\x8e\x10\xfa\xa6\xcd\x54\xef\xc7\x9c\xcf\xd6\x48\x11\x13\x1a\xcd\x7d\x60\xa9\x30\x97\x29\x45\x5a\xa7\x04\x43\xae\x8f\x32\xa3\x45\x80\xf9\xa1\xaa\x7d\x89\xe5\xfa\x8c\xd4\xe9\x58\x09\xa5\x73\xec\x6d\xfe\x9f\xe3\x5b\x11\x30\x57\x19\x82\xa0\xdd\x46\xee\xeb\xb6\xa1\x6f\x85\xee\x63\x14\x93\x18\x39\xe3\xa4\xc2\x9d\xc7\x00", p, q, g, b"\x28\xc0\x6e\x5a\xb3\xc8\x60\xbe\x8c\x13\xf7\x4f\x28\xb5\x79\x2b\x39\x48\x7b\x79\x54\x7f\x4a\xfa\xf6\xf7\x7a\x5c\x3a\x43\xe8\x81\x32\xed\xf9\x44\xee\x00\x15\x0a\x78\xb5\x8a\x78\xcf\x92\xed\x94\x15\x78\xec\x67\x9e\x10\x67\x67\x01\x4e\x5b\x27\x9c\x0e\xae\x9c\x40\x8e\x6e\xd6\x06\x87\xee\x14\x64\x98\x8e\xa5\x45\xf5\x5b\xe3\x67\x3e\xcd\xa1\x0c\x63\xfb\x0b\x19\x08\xe7\x96\xd6\x71\x5a\xbd\x54\x51\x84\x3d\xa6\xe6\x3b\xf8\x80\x2c\xca\xda\x32\xc7\xc5\x34\x23\x74\xab\x26\xee\x70\x1f\x9d\xb3\xd3\x4f\xc9\x6d\xe9\xd2\x30\x21\xb9\x8a\x93\xdf\x68\x77\xf8\x4f\xad\x67\x41\x16\x40\x55\x69\x6f\x3b\x72\x05\x03\x43\xea\x3e\x5c\xca\x01\xa3\xd5\x7e\x29\x72\x7e\xbc\xf8\x58\x31\x18\x14\x6c\x27\xf4\x2a\xda\xf6\x23\x65\xb9\x69\x7c\xf0\x3b\xdd\xc6\x9d\x0b\xd1\x51\xf7\x15\xb2\x3b\xfa\xaa\x27\xa3\x68\x11\x4b\x3d\xfb\x54\xc0\x84\xe0\x6d\x43\x43\xff\xde\x1c\xd2\x20\x58\xe9\x62\x3a\x70\xe9\x94\x2e\x09\x0e\xdc\x73\xdb\x06\xdd\x31\x80\xbb\x96\x0f\x0d\x7f\xed\x00\x5b\x14\x9b\x69\xd6\xd4\x5f\x40\x36\x8f\xc2\x5a\xe0\x43\x21\xed\xa4\x6d\x52\xa5\x92", b"\x31\x65\xb1\xcf\x3c\xa9\xbb\x89\x15\x4a\xd6\x84\xe0\x89\x36\x4f\x91\xb6\xe5\xd5\x94\x52\x60\x72\xf7\xb9\xdb\x3b\x23\x58\xe7\x11", b"\x49\xe1\xc8\xc3\x47\x24\xac\x55\x32\xff\xf1\xc7\xd2\x43\xb4\x86\xa2\xcd\xc0\x87\x2a\xb8\x4f\xda\x6c\xf2\xba\x96\xf9\x58\xf4\x6a", ); test::( b"\x3e\x17\xea\x8b\x9f\xeb\x2f\x4e\x55\xc1\x03\xe5\x8c\x4e\xad\x96\xb5\xcb\x89\x2d\x09\x82\xab\x2b\x0c\xb1\xee\xb9\xe1\xdd\xde\x99\x90\x23\x3a\x22\x58\x84\x73\x42\x1a\xad\xf5\x27\x67\xa8\xdf\x52\x4b\xc6\xe6\xed\x85\x7a\x9f\xd5\x94\x2e\xf9\x76\xb1\xfd\x8b\xca\xd3\x1e\x40\x3b\x1f\xeb\xb8\x65\xd2\x87\x2a\x7b\x34\xec\xdb\xab\x8b\x24\x5a\xda\x45\x24\x3a\x49\xc7\xbe\x67\xaa\x09\x78\x80\x29\x77\x9d\x61\x9d\xe3\x0d\xea\xd9\xf7\xd8\xc9\xc4\x21\x53\xb8\x65\xb1\xa9\xe8\x11\x80\x38\x0e\x27\xa3\x05\xa6\x39\x2f\x4b\x2a\x0b", p, q, g, b"\xb7\x1d\x0a\xb2\xd4\x05\xa5\x01\x2d\x69\x4e\x0a\x4a\x82\x76\x92\x56\xcb\xdb\x49\xc1\x81\x12\xef\xee\x81\x53\xc8\xe8\x16\x31\x04\x86\xa1\x7b\xce\x19\x74\x8b\x11\xf3\xd5\xd1\x8c\xb4\x49\x98\xeb\x32\x9b\x95\x1c\x23\xa5\x7c\xac\x47\xec\x99\x73\x83\x9b\x13\x0f\x3a\x98\x0e\x62\x70\x5c\x07\x02\xe4\xd6\x84\x25\x84\x5d\x54\xe1\x52\xe2\xe8\x36\x46\xb5\x6a\x67\x57\xcd\xe0\x6f\x85\xba\x37\x79\xee\xa5\x85\xdf\xe8\x30\x2f\x12\xae\x77\xfa\x58\xcb\xc6\xdc\xca\x70\xb4\x61\x02\x4b\x7d\x17\x65\x10\xa3\x93\xec\x02\x7c\x76\x9c\xfe\x49\xb6\x98\xe5\x75\xfc\xf9\x9c\x60\x29\x3a\xf2\xad\xe3\xdc\x4d\xf2\x3f\xf3\x38\x6f\x13\x77\x73\x06\xc5\x2d\xe9\x7e\xd1\xa8\x86\xb8\x24\x78\x88\x63\xff\x72\x63\xbb\xbb\x5b\x5f\xa0\xd4\x68\x1c\x16\x94\x22\x72\xf5\xe4\x41\xbd\xf4\x9e\xec\x75\x56\xc1\xfd\x40\x9c\x78\xe3\xaa\xff\xeb\x95\xc1\x26\x7d\xee\x12\xc2\x4c\x04\x5e\xf6\x7a\xa7\x0e\x9a\x3d\x92\x44\xf2\xcf\x1a\xc6\x8c\xd9\x18\xdf\x5f\x62\xa3\xdd\x3d\xe7\xbc\xde\xaa\x3f\x61\xde\x51\xcc\x01\xaf\x63\x6b\xd6\x65\xc0\x09\x9d\x13\x93\x8e\xb4\xfc\x28\x9b\x42", b"\x11\xb7\xec\xfe\xb3\x39\xd6\x01\x49\x48\xde\x5a\xd4\xc9\x6f\x4b\xa5\x17\xa2\xcd\xdc\xa6\x11\xc8\x88\x7f\xc4\x4f\x14\xac\x9a\x63", b"\x13\x28\x7a\x22\xcf\xfd\x82\x53\x02\xb0\xfd\xc0\x95\x54\x58\xd9\x18\x72\x70\x92\xc7\xbf\xb3\xec\x4c\x3d\x7a\x83\x8e\xa6\xc4\x91", ); test::( b"\xc3\xe1\x90\x3c\xec\xcb\x2a\xf5\xb0\xdc\x6b\x1f\xba\xaf\x1b\x2e\x96\x47\x7e\x00\x1c\x43\xee\xe3\x04\x6e\xed\x06\x12\x8c\x4c\x81\xeb\x2b\xc9\x17\xaa\x8a\xc3\x0d\x07\xe6\x6c\x9a\x94\x69\x51\x8e\x3c\xab\xc2\x64\xd6\x93\x6e\x5d\x72\x4a\x61\x3b\xf9\xa4\x4d\x60\x79\x7b\x89\x0c\xc5\xce\x0d\x04\x62\x9e\x5f\xaa\x1d\xd5\x3e\x7a\x12\x5a\x14\xa2\x6d\xf3\xcd\xd9\x87\x8d\x9c\x67\xe7\xe1\x8a\x46\x55\xa1\x88\x88\x53\x63\xdd\xab\xd7\x3a\x17\x65\x9d\x19\x1e\x51\xfa\xfb\x6d\x41\x71\xff\x6c\x4b\x65\x11\x68\xce\x16\x7a\xda\x01", p, q, g, b"\x42\x9e\x6b\xa2\x0b\x02\xcd\x69\xa2\x9b\x4a\x97\xa6\xea\x56\x4e\x5b\x88\x74\xad\xa1\x95\xa4\x9c\x3a\x52\x93\xc9\xbc\x8d\x19\xe0\xa3\xa3\xc4\xac\x85\x47\xbf\xdc\x7a\x20\x9b\xf3\xa6\x03\x7e\x5b\x0b\xb7\xaa\x29\x1d\x59\x40\xd2\x35\xc7\x87\xa2\xaf\x79\xa9\xcd\x7f\x83\x08\x4b\xa7\xdf\x85\xc0\x36\xad\x8e\xa2\x3c\x4f\xdb\xf9\x1d\x28\x5c\x7c\xaa\x64\x97\xaf\x38\x80\x17\xbd\x58\x1f\xf3\x08\xd9\xb5\x67\x99\x02\x9e\x21\x40\x0c\x0c\x99\xd1\x03\xa2\xca\xec\x19\x5e\x40\xc9\x0d\x24\x4d\xac\x89\x7b\xd4\x18\xae\x01\x6d\x25\xf7\x1e\x98\x9a\xf5\x16\xd5\xe2\x49\x1e\x1e\x4b\xc2\x59\x14\xec\x3a\xd0\xa9\xf8\x59\x68\xa6\x77\x7f\xbe\xbd\xc7\x3b\x1a\xc6\x81\x44\x96\xd9\x42\x1d\x2b\x7c\xdf\x17\xd5\x3f\x00\x62\x40\x10\xed\x66\x18\xf1\x25\x8d\xa1\x94\xf7\x7c\x28\x28\x62\x25\xd1\xb1\x6d\xa3\xfa\xb7\x6c\x9b\x70\xdb\x1f\x7d\xbc\xba\xcf\x4e\x60\xb6\xb9\x1a\x1f\x47\x50\x07\xee\x4d\x2c\x5e\x37\xfc\x31\xe8\x9a\x0f\xa8\x08\xf8\x9e\x8a\x4e\x54\x6b\xc9\x0e\x69\x6f\x45\x47\x21\xbe\x71\xc0\x73\x1f\x99\xee\x36\x8a\xfc\x69\x98\x76\x1a\xf9\xdd\x9d\x6d", b"\x77\x47\x0f\x0d\x39\x23\xff\x40\x7e\x71\xa8\x6f\x03\x36\x81\x1b\xdd\x63\xe1\x79\x89\x1f\xd3\x0e\x34\x52\xda\xc1\xe5\x17\x50\x81", b"\x4b\x96\x9f\x77\xc7\x0b\x5e\x6f\xf9\x35\x0c\xa2\x5e\x7d\x95\x1a\xca\xae\xe9\x07\xfa\x7b\x83\x0a\x32\xdc\xe4\xf9\x1a\x89\xaf\xa4", ); test::( b"\x4b\x7c\x08\x28\xb7\x15\xec\x2d\xa1\xe0\x92\x20\x4f\x55\xdd\xd6\x5d\x13\xf1\xcd\xd6\x4c\x10\x94\x78\xd3\x84\x74\x87\xbc\x48\xa8\xcb\x02\x99\x22\x2a\x74\x95\xef\xff\xa6\x3e\xa1\x58\x25\x3f\xae\xdc\xb5\x31\x48\x81\xab\x41\xb5\xe7\x73\x33\x76\x62\xcc\x2f\x50\xdb\xcc\xc7\x36\x97\x4e\x31\xb3\xd0\x80\x46\x75\x89\x95\x1d\x51\x10\x32\xe4\xcb\xa6\x64\x7f\x94\xc6\x79\xaa\x26\x9f\xca\x6d\xb9\x27\x15\xa4\xda\x28\xff\x98\x03\xa1\xdc\x61\x67\x5f\xa5\xac\x11\x4e\x37\x6f\xa4\xda\xdb\x37\xc1\xb0\x9e\xd5\xc3\x1b\xc5\xae\xe8", p, q, g, b"\x09\xa1\x6e\x0a\x60\x03\xf4\x5a\xaa\xa3\xc6\x31\x1a\xa9\x86\x62\x17\xd4\xa7\xc8\xcb\x50\x93\x51\x49\x76\xf6\xa3\x41\x26\x0e\x5a\xba\x7c\xb0\x0a\xb2\xad\xb7\x46\x2a\x47\xa8\xcf\xee\x4f\xdc\xae\x5a\xcc\xda\x6d\x42\xa3\x14\x47\x92\xa1\x46\x31\xbb\xe8\x55\x34\xc1\x11\xd2\xff\xcd\xbc\x15\xb6\xdb\x9d\xbf\xc4\xbc\x71\xd3\x00\x32\x4f\xd3\x10\xc4\x65\x44\x3c\xb2\xa6\xf2\xae\x33\x70\x1f\x39\x66\x8b\x11\x8c\x38\xef\x56\x2e\x85\x54\xfe\xa6\x61\xa3\xef\x80\x45\x56\x99\xc2\x34\x30\xd2\x8b\xa6\xdc\xf0\x42\xfc\x92\x0a\x67\x7c\x29\x71\xb2\xdf\x8c\x67\x29\xc5\xb3\xb1\xbe\x6c\x5a\x04\x7a\xc1\xbc\xc8\xcd\x8d\xc5\x19\xad\xa2\x21\xbd\x92\xca\x68\x93\xc1\xcc\x1d\xc1\x58\xf9\xd4\x72\xf8\x9a\x8e\x02\x64\x94\x40\xdd\xed\x0f\x72\x34\x85\x55\x8e\xff\xe8\xcf\x9d\xf1\x21\xc9\x69\xa2\xd1\xb7\x6a\x37\xdc\xbf\xfb\x17\xed\xf3\x12\x1d\x43\x38\xd4\xab\x68\xb1\x54\x22\x6c\x00\x72\xd8\xbd\x51\xf2\x3e\x56\x59\xa2\xaf\xe5\x20\xdd\x5e\x91\x00\x5a\x6f\xc1\x15\x7f\x07\x97\x36\x10\xc5\x57\x78\x24\xbf\x16\x66\xcc\xf8\x51\xd6\x9e\xfd\xe3\x47\xf0\xb9\x96", b"\x1b\x8b\x8d\x67\xb6\x40\xaf\xda\x26\xfb\xe6\x7c\xfd\x4b\xea\x52\x13\x75\x52\x6a\xd5\x8a\x22\xd4\xd9\x7d\x7a\xf1\x34\x38\x4f\x4a", b"\x66\xd6\xc2\x40\x99\x22\x56\xee\xbe\x07\x82\x65\xc3\x02\x9a\x88\xc3\x40\x95\x14\x21\x34\xdf\xc3\x1f\xf0\xa2\xd8\xbb\xd6\x09\xb5", ); test::( b"\xba\xea\x89\xdc\xc1\x02\xcd\x64\x91\x35\xd6\x3a\x5f\x52\xdf\x43\x7a\xf7\x84\x0d\x69\x9a\x9d\xaf\x13\x1e\xaa\xc3\x81\x34\x8d\x45\xb4\xe6\x04\x77\xfe\xa8\x88\x03\xfc\xa3\x1b\x54\x82\x9c\x58\x06\xc7\x03\xeb\x8f\xdf\x41\x23\x06\xff\x7a\x79\xb5\x5a\xab\x90\x64\xbc\x37\xcb\x26\xbf\xfa\xa6\x71\xde\xbb\x74\xc2\x28\xba\x2d\x2a\x06\xda\x36\x2f\x61\x3b\x78\xe5\xb1\xf0\xa0\xb5\xc5\xfe\xbf\x6b\xc3\x26\xb0\x21\xbd\x7f\xc7\x04\x71\xb2\x5e\x15\x3e\xa5\x1d\xe1\x01\x0b\x87\x11\x0e\x01\x49\x7a\x7f\x1a\xc3\x9c\xf4\xd4\x24\xc3", p, q, g, b"\xcb\xd4\x65\xce\x9c\x3d\x0a\x13\x7e\xe3\xd5\x82\xa5\x17\x21\x83\xb8\xa6\x3c\xfe\x41\x40\x70\xb2\x47\xda\x36\x74\x56\x20\x3f\x98\x6e\x67\x86\xff\xb8\x3a\xd7\x64\xab\xa3\x09\xc2\xef\x74\x42\xce\x38\x73\x5f\x49\x2c\x0c\xe6\xd9\x2e\xaf\x9a\xe6\xb1\xcc\x87\x3a\xb6\xff\x58\x31\x7c\xd1\x66\xa5\x10\xc3\xff\xd8\xd4\xe6\x00\x88\x25\xb5\x8c\xae\x21\x7f\xa3\x5c\x94\xc9\xbb\xd1\x2a\x4d\x63\x8c\x20\x11\x63\x98\xb2\x1b\x59\x29\xdc\xa1\xd4\x9a\x7b\x74\x89\x70\xe4\x5d\xe0\xd4\x32\xfc\x91\x2f\x76\x19\x91\x37\xf1\xbb\x0c\x0d\x2c\x95\xbd\xcb\xa0\xd3\x03\xec\xdb\xf4\x89\x84\x9b\xe8\xe6\x30\xff\xff\x06\x03\x94\x8c\x87\xa7\xe5\x81\x31\x65\x5c\x9f\x40\x77\x08\xe8\xa9\xd6\x75\xe2\x8e\x9b\x57\x72\x9f\x03\x46\xc0\x28\x7f\x43\xed\x67\xf9\xc0\xc0\xce\x15\x42\x98\x48\x51\xcc\x3b\x52\x1a\xfa\x5b\x9b\x8f\xa5\x36\x80\xbd\xb2\xd7\x3c\x2b\x6b\x09\x0e\xf0\x85\xa7\xe7\xc6\xf7\x6a\x2e\x50\x10\x64\xc8\x52\x59\x1d\xf6\x04\x39\xa9\x6d\xd8\xd6\x63\xb5\x64\xc9\xe5\xc2\x53\xee\x8d\x8e\xe5\x8a\xb2\x7d\x83\x32\x11\x3b\xdd\x51\xd8\xb4\x1a\xc7\x3c\x14\x3a", b"\x76\x89\xb5\x24\x9f\x19\x43\xe6\x85\x09\x51\x06\xd3\xf6\x83\x59\xcd\xb7\x6b\xe5\xd9\xa5\x0e\xbf\xdf\x36\xe7\x31\x57\x5f\x8b\xda", b"\x04\x9d\xa4\x2d\xe5\x1e\x61\x7c\xdc\xde\xf1\x7c\xdf\x60\x59\x34\x5b\x8e\x18\x1b\xac\x64\xc4\x71\x23\xd4\x7b\x5e\xfe\x10\x5e\xbb", ); test::( b"\xb1\x30\x37\x68\xbe\x17\x4d\x83\x57\x84\x07\xdd\xe1\xab\x91\xcf\x02\x11\x24\xa3\x4c\x4a\x35\xea\xfa\x45\x12\x70\x7a\x36\x60\xd1\xf8\x84\xfa\x6c\x3d\x7d\xf2\x99\x59\x80\x18\xdc\xa2\x2f\x27\x3f\x60\x2b\xab\x37\x15\x92\xb1\x1f\x45\x74\x88\x57\x41\xab\x3f\xe2\xaf\x5b\x71\x23\x7d\x00\x57\xae\x59\xf3\x7b\x61\xdf\xd1\xad\x5e\xa2\x7c\xf8\xf0\x5f\x5b\x69\xf2\x93\x6e\xc7\x9d\x10\x4f\x4a\x46\xc9\x02\xfb\x67\x90\xdf\xdc\x75\xb9\x76\x8c\xc7\xdf\xba\xe0\x11\xc7\x95\xe6\x46\xf9\xa2\x34\x72\x87\x07\xfb\x11\x2c\x46\x10\x07", p, q, g, b"\x56\x02\xdd\x57\x9f\xbe\x37\xf1\x87\xd4\x9d\x76\xfd\x59\x36\xfc\xde\xf2\x36\x9f\x7a\xf2\x9d\xa4\x3c\x64\x56\xa6\xac\x83\x17\xb3\x9e\x4c\xd6\x79\x14\x3a\x4d\x97\x75\x1b\x80\xce\x1c\xb4\x51\x86\xda\x7b\xee\x99\x1e\x25\xeb\x9a\x1a\xed\x14\x90\xfd\x74\xf6\xab\x50\x79\x40\x82\x1a\x1a\xdf\xbc\x30\xe1\x9a\x93\x3c\xc4\xd2\x17\x69\xcc\xdf\xc5\x7c\x96\xf0\xd2\x19\x44\xf8\xa0\xf1\x31\x62\x6e\xd0\x13\xb3\xe5\xc0\x13\x13\xa1\x75\x6b\x67\xb7\xd2\xa2\x1e\xda\xc4\x86\xcb\xc3\xcd\x1d\x2b\x6f\xcf\x20\xc8\x2d\xd7\x0b\x4f\x72\x92\x9c\x14\x99\xad\x79\x6d\xe8\x94\xdb\x8a\xf1\x03\xd9\xb9\x1c\x25\x73\x70\x73\xd9\xdf\x62\xe6\xb6\x24\xb9\x0f\xb3\x52\xdb\x78\x1c\x7f\x2f\xf8\xd3\xa2\x0a\x70\x63\xfb\x51\x27\x23\x95\xcc\x7d\x35\xef\x79\xc2\x7b\x76\x34\xe3\x9f\x74\xeb\x15\x29\x75\xfd\xf3\xb9\x03\xc2\x39\x90\xee\xde\x8a\xa5\x8d\xf9\xa2\x99\x54\x33\x3a\x3f\x52\x5d\x5b\xaa\xfd\x37\x9d\xd5\x7f\xe3\x96\xa5\x18\x76\xf2\x5d\x9e\x82\x65\xcf\x69\x71\xed\xc6\x27\x8c\xe9\x96\xbd\xee\x20\x68\x83\x44\x8a\xf1\x84\xfa\xe2\x3a\xf2\xa6\x95\x72\xb2\x00\x90", b"\x18\x00\xb6\xbd\x5c\x94\xa0\x31\xd9\x77\xb9\xd0\x17\x54\x17\x90\xa9\xfe\x7e\x41\x4c\x90\xfa\x4d\x38\x03\xd5\x6e\xf1\x6a\x64\x79", b"\x07\xec\xe1\xb6\x47\x11\xc9\xb3\xec\xa4\x89\xe7\x5f\x2e\x63\x43\x8e\x09\x74\x98\xe2\x89\x0d\xd0\x27\x37\x29\xa5\x5d\xf0\xd2\xdf", ); test::( b"\x25\xca\x3d\xc8\xe6\xea\x4e\xbb\x93\x6f\xa0\x1b\x1c\xcc\x08\xbb\x1d\xe9\x23\xbe\x62\x92\x42\x1f\xf9\xf7\x73\xaf\x9c\xc7\x39\x35\x10\xdf\x2f\xcb\x6e\xc1\x88\xb2\x7c\x26\x88\xc7\x2f\xdc\x2f\xf6\xc9\x0f\x0a\xb0\xed\x59\xc9\xc3\xa6\x50\x3f\x53\xe3\x27\x78\xb9\x54\xea\xe5\x82\xc9\x58\x03\xc5\x11\xff\x39\x18\xad\xda\x02\xe6\x8e\x2c\x3e\x73\xf8\xa6\xad\x60\x7a\x89\xd8\xeb\xa0\x05\x9e\xb8\x7f\x4d\x9b\x00\x81\xf2\x96\x96\x1e\xc6\xea\x78\x85\x3a\xa5\x3d\x24\xa4\x70\xa7\x4a\xcf\x16\xa2\xf8\x67\x48\xa8\xda\x34\xfb\x90", p, q, g, b"\xbf\x2e\x14\x0f\x8b\x8d\x99\xd2\xdf\x10\x52\xe9\x81\xfa\x0a\xc5\x33\xc0\xd4\xea\x9f\x26\x6f\x92\x67\xcd\xe7\xba\x03\xcf\x10\x01\x5d\xa1\xcc\x13\x61\x2d\xcf\xc9\x20\x30\xb7\xc7\xd1\xc0\x57\xe2\x8a\x6f\xb4\x57\x48\xee\xb9\xc4\xbd\x2e\x6e\x79\xb2\x17\xf4\xb6\x8e\xf0\x3f\x96\x59\xc8\xe8\x4a\x20\xee\x92\x0d\x29\x71\x13\x81\xce\x39\xfe\x0a\xfc\x9a\x7f\xe2\xfb\xdf\xce\x63\x24\x96\x51\x23\x0f\x3e\x72\xee\xd5\x79\xf0\xd3\x65\x9c\x2b\xff\xc7\x0f\xb5\xd8\xbe\x88\x9a\x34\xbb\x67\xf1\xa9\x04\xc3\x18\x56\x83\x94\xb9\x46\xfd\x40\x38\x37\x82\xcb\x5e\x48\x09\xd0\xc6\x01\x9d\x20\xaf\xad\x09\xf2\x9f\xbb\xc9\x94\xd2\x8f\x4e\x41\xda\xf4\x66\x62\x98\xf3\x51\x89\x8d\x8d\xef\x40\x47\x12\xc4\x09\x74\x5a\x88\x96\x2e\x4a\x61\x8c\x23\x49\x76\x64\x55\x59\xc9\x0c\x54\xfe\x76\x4e\xea\x46\xfa\x03\x54\x3e\x4c\x4f\x25\xc8\xd2\xc3\xc1\x97\x9f\x95\x24\x58\x17\x7d\xc6\x96\x3e\x3f\x34\x6a\x7f\xdd\xbe\x0c\xdf\x23\xdd\xc7\xd2\xfa\x8a\x34\x55\xcd\x5b\x54\x6e\x47\x16\x99\x12\xce\x7f\x33\x3a\xc6\xf0\x1e\x64\xae\xc5\x96\x08\x0b\x5d\x3e\x0f\x25\xad\xb9", b"\x7b\x1d\xfc\xf3\x9b\x62\x4d\x64\xdb\x08\xa3\x97\x4c\x8e\x14\x17\x31\x05\x01\x0f\x2b\xd5\x13\x5e\x92\x6f\x28\x84\xe3\x0b\x46\xfa", b"\x69\x7e\xea\xb6\x69\x67\x74\x69\xf6\x2c\xca\x46\xd3\xe6\x8c\x84\x9f\x44\x78\x81\xe2\xc9\xf7\x42\x94\xf4\xe8\xad\xa4\x42\x6c\x7d", ); test::( b"\xd5\x8a\x8f\x5a\xb4\x4f\x9d\xf9\xed\x93\x6a\x13\x18\x65\x7c\x32\x4f\xb1\x39\x9c\x25\x10\x54\x98\x6d\x19\x21\x4c\x15\xce\x95\x1f\x87\xcc\xb3\x51\x0a\xed\x90\x85\x41\x1d\x9c\x5a\x67\x40\xdf\x51\x60\xf3\xe5\x7e\xa8\xc9\x42\xd3\x35\x47\x31\x7c\x7a\x38\x7c\x60\xc7\xac\x2f\x0e\x14\x17\x1f\x0b\x77\x19\xab\xa7\x6a\xc4\x18\xd1\x57\xa4\xe3\xbe\xc6\xb7\x99\xb5\xda\x10\xbd\x3e\xcd\xda\xe0\x85\x7a\x29\x67\x0c\x99\xd3\x78\x10\x34\x9b\x82\xb7\xbb\x37\xc0\x93\x7b\x0d\xd2\x73\x4d\xa0\x8b\x8b\x1c\xb7\xbe\xec\xd4\x3c\xb6\x15", p, q, g, b"\xba\xa1\x36\x52\x64\x2d\x95\x0d\x8b\xce\xc1\x6c\x62\x4a\x07\x99\x9f\xb5\x57\xfb\x40\xa2\x66\x29\x7c\x15\x65\x97\x55\xfd\x61\x5c\xc7\xe2\x12\x5d\x4e\x8c\x8a\xf8\xc4\x33\x35\x53\x90\x05\xe9\xe2\xf2\xd4\x04\x28\xe7\xc8\xcc\x05\x5f\xf3\xf6\xfe\x3b\x3d\xf6\x04\xac\x12\x8d\x99\x5c\xfb\x9c\x86\x7e\x2a\x96\x07\xaa\x3b\x77\xcf\x0f\x69\x17\x38\xb7\x84\xd4\xbe\x2f\xea\x47\x39\xfd\xa1\xf0\x67\x42\x60\xf2\x1f\x66\x6a\xce\xf5\xbd\x56\xa7\x80\x0b\xbe\x95\x07\x92\xba\x05\xee\xe4\x2e\x80\xa2\x57\x8d\x2c\x50\xec\x28\xd4\x4a\xfb\x6b\x68\x76\x52\xbb\x94\x52\x40\x8f\xca\xf2\x57\xc4\xb5\xcd\x56\x4d\xdc\x4e\x63\xce\x9c\xa1\x3d\x4c\x74\x73\xf5\x1b\x01\xac\x8e\x4c\x3f\x79\x9a\xfc\x90\x8e\xae\xac\xca\xd0\x62\xb0\xf9\x7d\x95\x8a\x30\x08\xca\xe2\x20\x62\xbb\x16\x6c\x73\x00\xdf\x0b\x43\x86\xba\xec\xd5\x99\xfa\x8b\x08\x3f\xba\x6e\x7e\x4e\x5b\xa1\x19\x86\x02\x68\x51\x7d\x79\xeb\xdc\xbe\x02\x43\x7b\xf4\xeb\x5d\x91\xa8\x43\x72\x5d\xb0\xed\xa6\x6e\xed\xd4\x6d\x66\xb7\x81\xac\xed\x0d\xcc\x23\x15\x4e\x4b\x8a\x8f\x04\x53\xb2\xf4\x66\x03\x3b\xd9", b"\x18\x76\xb2\x09\x26\xd8\xed\xe7\x8d\x28\x17\x4e\xeb\x4c\xb0\xc1\xaf\x8e\xe2\x06\xfc\x8d\xb4\xa8\xcd\xeb\xb5\xdb\xfb\x0c\x15\xcf", b"\x23\x1a\xf0\x7a\xeb\xa9\x9f\xfd\x00\x65\x93\x94\xab\x6e\xd1\x9a\x5e\x9f\x9e\x60\xe2\x19\x7f\x65\xfc\x88\xc8\x15\xbe\xae\x7f\xe0", ); test::( b"\xaa\x13\x4e\x9d\xb7\x39\x82\xe7\xa3\x7a\x10\x34\xaa\xb8\x2b\x50\xd5\xe5\x8e\x03\x4a\x56\x37\x08\x1d\xc8\x80\xa6\xe2\x65\xeb\xc7\xb3\x53\xdf\x21\x03\x04\xba\x00\x77\x1c\x5b\xab\x44\x5d\xc6\xc2\x49\x99\xfe\x8e\xaf\xde\xfa\xbc\xdd\x46\xf7\xa9\x1f\x30\x72\x1a\x68\x96\x33\x3c\x3f\x30\x1e\x19\x7f\x96\x19\x44\xf5\x45\xe4\xfe\x07\x30\xcd\x96\x77\x90\x50\x4c\x49\xb0\xab\x5b\x89\x08\x09\xbe\x5c\x7c\x1c\x3f\x8a\x2e\x52\xd9\x2a\x2c\x19\x9b\x98\x1b\x64\x8f\xdd\x52\x8e\x76\x8e\x6a\xb3\x92\x57\x9b\x54\xc7\x2c\x41\x61\x7d", p, q, g, b"\x69\x1d\xfe\xa1\x44\xe5\x1b\x9e\x0f\xf7\x53\x65\x57\xb5\x8a\xce\x87\x16\x26\x3a\x70\x55\x4e\x2f\x46\x76\xd1\x72\x33\x2a\xed\xaa\x67\x73\x6d\x72\x66\x7d\x32\x81\x70\xac\xa0\x70\xe1\xbb\x89\x86\x8b\xf4\xcc\x98\x96\x2d\x87\xeb\x05\x99\xf1\x08\x28\xc6\xea\x24\xcf\xfe\xde\x8e\xd7\xb3\x9a\xbb\xa6\x66\xbd\x6d\x0d\x35\x02\x4a\xde\x6a\xaa\x06\xfe\x6a\xe4\x5d\xc4\xb3\xa9\x1c\x21\x9d\x47\x2d\xb0\xef\xed\x46\x9d\x69\xcb\x5f\x11\xd4\x01\x58\xea\x81\x67\x2b\x1a\xe1\x16\xff\x2c\x30\x16\xf2\x45\x25\x4e\x98\x4a\x59\x94\x5e\x4e\x3b\x3d\x37\xad\x12\x05\x8d\x84\x08\x29\x55\xc7\x68\x64\x3e\x7d\x80\xc0\x55\xc1\x70\x3a\x88\x3f\x2a\xbb\x07\x5a\x24\xc2\xe9\x30\x56\x69\x73\x40\x93\x1c\x25\x89\x4d\x1d\x2f\xfa\xc4\xb1\x02\x20\x12\xc1\x5c\xb7\x07\xfb\x35\x96\x83\xad\x04\x08\xb6\x68\x77\x9e\x9d\x9b\xa2\x19\x89\xba\xa6\xa6\xb0\xb2\x56\xa3\x4e\xfb\x47\x51\xbc\xaf\x42\x85\xb1\x56\x35\xd4\x09\xfd\xa9\x93\xc0\x43\x8a\xcd\xdc\x9d\xa0\x06\xc3\x90\x36\x03\x04\xab\x12\xda\x76\xb4\x44\xd6\x4e\x11\xcc\xf0\x5d\x96\x3f\xfb\x7f\x38\x9b\xee\x83\x1d\xc7", b"\x04\x1d\x22\x93\x49\xce\xc7\x5f\xb2\xbd\x8c\x35\xc2\x49\xf9\x19\x6a\x18\x96\x2c\xa7\x5e\xbd\xb4\x2d\xca\x61\xd2\x1c\xb0\xe9\x10", b"\x77\xbb\x79\x75\xa5\x44\xc5\x1b\xf2\x49\xde\xe2\x35\x95\x23\x07\x28\x63\x93\x44\x97\xd1\xa4\x79\xd6\xe4\xb2\x45\xd4\x56\xeb\x2a", ); // [mod = L=2048, N=256, SHA-256] let p = b"\xa8\xad\xb6\xc0\xb4\xcf\x95\x88\x01\x2e\x5d\xef\xf1\xa8\x71\xd3\x83\xe0\xe2\xa8\x5b\x5e\x8e\x03\xd8\x14\xfe\x13\xa0\x59\x70\x5e\x66\x32\x30\xa3\x77\xbf\x73\x23\xa8\xfa\x11\x71\x00\x20\x0b\xfd\x5a\xdf\x85\x73\x93\xb0\xbb\xd6\x79\x06\xc0\x81\xe5\x85\x41\x0e\x38\x48\x0e\xad\x51\x68\x4d\xac\x3a\x38\xf7\xb6\x4c\x9e\xb1\x09\xf1\x97\x39\xa4\x51\x7c\xd7\xd5\xd6\x29\x1e\x8a\xf2\x0a\x3f\xbf\x17\x33\x6c\x7b\xf8\x0e\xe7\x18\xee\x08\x7e\x32\x2e\xe4\x10\x47\xda\xbe\xfb\xcc\x34\xd1\x0b\x66\xb6\x44\xdd\xb3\x16\x0a\x28\xc0\x63\x95\x63\xd7\x19\x93\xa2\x65\x43\xea\xdb\x77\x18\xf3\x17\xbf\x5d\x95\x77\xa6\x15\x65\x61\xb0\x82\xa1\x00\x29\xcd\x44\x01\x2b\x18\xde\x68\x44\x50\x9f\xe0\x58\xba\x87\x98\x07\x92\x28\x5f\x27\x50\x96\x9f\xe8\x9c\x2c\xd6\x49\x8d\xb3\x54\x56\x38\xd5\x37\x9d\x12\x5d\xcc\xf6\x4e\x06\xc1\xaf\x33\xa6\x19\x08\x41\xd2\x23\xda\x15\x13\x33\x3a\x7c\x9d\x78\x46\x2a\xba\xab\x31\xb9\xf9\x6d\x5f\x34\x44\x5c\xeb\x63\x09\xf2\xf6\xd2\xc8\xdd\xe0\x64\x41\xe8\x79\x80\xd3\x03\xef\x9a\x1f\xf0\x07\xe8\xbe\x2f\x0b\xe0\x6c\xc1\x5f"; let q = b"\xe7\x1f\x85\x67\x44\x7f\x42\xe7\x5f\x5e\xf8\x5c\xa2\x0f\xe5\x57\xab\x03\x43\xd3\x7e\xd0\x9e\xdc\x3f\x6e\x68\x60\x4d\x6b\x9d\xfb"; let g = b"\x5b\xa2\x4d\xe9\x60\x7b\x89\x98\xe6\x6c\xe6\xc4\xf8\x12\xa3\x14\xc6\x93\x58\x42\xf7\xab\x54\xcd\x82\xb1\x9f\xa1\x04\xab\xfb\x5d\x84\x57\x9a\x62\x3b\x25\x74\xb3\x7d\x22\xcc\xae\x9b\x3e\x41\x5e\x48\xf5\xc0\xf9\xbc\xbd\xff\x80\x71\xd6\x3b\x9b\xb9\x56\xe5\x47\xaf\x3a\x8d\xf9\x9e\x5d\x30\x61\x97\x96\x52\xff\x96\xb7\x65\xcb\x3e\xe4\x93\x64\x35\x44\xc7\x5d\xbe\x5b\xb3\x98\x34\x53\x19\x52\xa0\xfb\x4b\x03\x78\xb3\xfc\xbb\x4c\x8b\x58\x00\xa5\x33\x03\x92\xa2\xa0\x4e\x70\x0b\xb6\xed\x7e\x0b\x85\x79\x5e\xa3\x8b\x1b\x96\x27\x41\xb3\xf3\x3b\x9d\xde\x2f\x4e\xc1\x35\x4f\x09\xe2\xeb\x78\xe9\x5f\x03\x7a\x58\x04\xb6\x17\x16\x59\xf8\x87\x15\xce\x1a\x9b\x0c\xc9\x0c\x27\xf3\x5e\xf2\xf1\x0f\xf0\xc7\xc7\xa2\xbb\x01\x54\xd9\xb8\xeb\xe7\x6a\x3d\x76\x4a\xa8\x79\xaf\x37\x2f\x42\x40\xde\x83\x47\x93\x7e\x5a\x90\xce\xc9\xf4\x1f\xf2\xf2\x6b\x8d\xa9\xa9\x4a\x22\x5d\x1a\x91\x37\x17\xd7\x3f\x10\x39\x7d\x21\x83\xf1\xba\x3b\x7b\x45\xa6\x8f\x1f\xf1\x89\x3c\xaf\x69\xa8\x27\x80\x2f\x7b\x6a\x48\xd5\x1d\xa6\xfb\xef\xb6\x4f\xd9\xa6\xc5\xb7\x5c\x45\x61"; test::( b"\x4e\x3a\x28\xbc\xf9\x0d\x1d\x2e\x75\xf0\x75\xd9\xfb\xe5\x5b\x36\xc5\x52\x9b\x17\xbc\x3a\x9c\xca\xba\x69\x35\xc9\xe2\x05\x48\x25\x5b\x3d\xfa\xe0\xf9\x1d\xb0\x30\xc1\x2f\x2c\x34\x4b\x3a\x29\xc4\x15\x1c\x5b\x20\x9f\x5e\x31\x9f\xdf\x1c\x23\xb1\x90\xf6\x4f\x1f\xe5\xb3\x30\xcb\x7c\x8f\xa9\x52\xf9\xd9\x0f\x13\xaf\xf1\xcb\x11\xd6\x31\x81\xda\x9e\xfc\x6f\x7e\x15\xbf\xed\x48\x62\xd1\xa6\x2c\x7d\xcf\x3b\xa8\xbf\x1f\xf3\x04\xb1\x02\xb1\xec\x3f\x14\x97\xdd\xdf\x09\x71\x2c\xf3\x23\xf5\x61\x0a\x9d\x10\xc3\xd9\x13\x26\x59", p, q, g, b"\x5a\x55\xdc\xed\xdd\x11\x34\xee\x5f\x11\xed\x85\xde\xb4\xd6\x34\xa3\x64\x3f\x5f\x36\xdc\x3a\x70\x68\x92\x56\x46\x9a\x0b\x65\x1a\xd2\x28\x80\xf1\x4a\xb8\x57\x19\x43\x4f\x9c\x0e\x40\x7e\x60\xea\x42\x0e\x2a\x0c\xd2\x94\x22\xc4\x89\x9c\x41\x63\x59\xdb\xb1\xe5\x92\x45\x6f\x2b\x3c\xce\x23\x32\x59\xc1\x17\x54\x2f\xd0\x5f\x31\xea\x25\xb0\x15\xd9\x12\x1c\x89\x0b\x90\xe0\xba\xd0\x33\xbe\x13\x68\xd2\x29\x98\x5a\xac\x72\x26\xd1\xc8\xc2\xea\xb3\x25\xef\x3b\x2c\xd5\x9d\x3b\x9f\x7d\xe7\xdb\xc9\x4a\xf1\xa9\x33\x9e\xb4\x30\xca\x36\xc2\x6c\x46\xec\xfa\x6c\x54\x81\x71\x14\x96\xf6\x24\xe1\x88\xad\x75\x40\xef\x5d\xf2\x6f\x8e\xfa\xcb\x82\x0b\xd1\x7a\x1f\x61\x8a\xcb\x50\xc9\xbc\x19\x7d\x4c\xb7\xcc\xac\x45\xd8\x24\xa3\xbf\x79\x5c\x23\x4b\x55\x6b\x06\xae\xb9\x29\x17\x34\x53\x25\x20\x84\x00\x3f\x69\xfe\x98\x04\x5f\xe7\x40\x02\xba\x65\x8f\x93\x47\x56\x22\xf7\x67\x91\xd9\xb2\x62\x3d\x1b\x5f\xff\x2c\xc1\x68\x44\x74\x6e\xfd\x2d\x30\xa6\xa8\x13\x4b\xfc\x4c\x8c\xc8\x0a\x46\x10\x79\x01\xfb\x97\x3c\x28\xfc\x55\x31\x30\xf3\x28\x6c\x14\x89\xda", b"\x63\x30\x55\xe0\x55\xf2\x37\xc3\x89\x99\xd8\x1c\x39\x78\x48\xc3\x8c\xce\x80\xa5\x5b\x64\x9d\x9e\x79\x05\xc2\x98\xe2\xa5\x14\x47", b"\x2b\xbf\x68\x31\x76\x60\xec\x1e\x4b\x15\x49\x15\x02\x7b\x0b\xc0\x0e\xe1\x9c\xfc\x0b\xf7\x5d\x01\x93\x05\x04\xf2\xce\x10\xa8\xb0", ); test::( b"\xa7\x33\xb3\xf5\x88\xd5\xac\x9b\x9d\x4f\xe2\xf8\x04\xdf\x8c\x25\x64\x03\xa9\xf8\xee\xf6\xf1\x91\xfc\x48\xe1\x26\x7f\xb5\xb4\xd5\x46\xba\x11\xe7\x7b\x66\x78\x44\xe4\x89\xbf\x0d\x5f\x72\x99\x0a\xeb\x06\x1d\x01\xcc\xd7\x94\x9a\x23\xde\xf7\x4a\x80\x3b\x7d\x92\xd5\x1a\xbf\xad\xeb\x48\x85\xff\xd8\xff\xd5\x8a\xb8\x75\x48\xa1\x5c\x08\x7a\x39\xb8\x99\x3b\x2f\xa6\x4c\x9d\x31\xa5\x94\xee\xb7\x51\x2d\xa1\x69\x55\x83\x43\x36\xa2\x34\x43\x5c\x5a\x9d\x0d\xd9\xb1\x5a\x94\xe1\x16\x15\x4d\xea\x63\xfd\xc8\xdd\x7a\x51\x21\x81", p, q, g, b"\x35\x6e\xd4\x75\x37\xfb\xf0\x2c\xb3\x0a\x8c\xee\x05\x37\xf3\x00\xdf\xf1\xd0\xc4\x67\x39\x9c\xe7\x0b\x87\xa8\x75\x8d\x5e\xc9\xdd\x25\x62\x46\xfc\xca\xeb\x9d\xfe\x10\x9f\x2a\x98\x4f\x2d\xda\xa8\x7a\xad\x54\xce\x0d\x31\xf9\x07\xe5\x04\x52\x1b\xaf\x42\x07\xd7\x07\x3b\x0a\x4a\x9f\xc6\x7d\x8d\xdd\xa9\x9f\x87\xae\xd6\xe0\x36\x7c\xec\x27\xf9\xc6\x08\xaf\x74\x3b\xf1\xee\x6e\x11\xd5\x5a\x18\x2d\x43\xb0\x24\xac\xe5\x34\x02\x9b\x86\x6f\x64\x22\x82\x8b\xb8\x1a\x39\xaa\xe9\x60\x1e\xe8\x1c\x7f\x81\xdd\x35\x8e\x69\xf4\xe2\xed\xfa\x46\x54\xd8\xa6\x5b\xc6\x43\x11\xdc\x86\xaa\xc4\xab\xc1\xfc\x7a\x3f\x65\x15\x96\x61\xa0\xd8\xe2\x88\xeb\x8d\x66\x5c\xb0\xad\xf5\xac\x3d\x6b\xa8\xe9\x45\x3f\xac\xf7\x54\x23\x93\xae\x24\xfd\x50\x45\x1d\x38\x28\x08\x65\x58\xf7\xec\x52\x8e\x28\x49\x35\xa5\x3f\x67\xa1\xaa\x8e\x25\xd8\xad\x5c\x4a\xd5\x5d\x83\xae\xf8\x83\xa4\xd9\xee\xb6\x29\x7e\x6a\x53\xf6\x50\x49\xba\x9e\x2c\x6b\x79\x53\xa7\x60\xbc\x1d\xc4\x6f\x78\xce\xaa\xa2\xc0\x2f\x53\x75\xdd\x82\xe7\x08\x74\x4a\xa4\x0b\x15\x79\x9e\xb8\x1d\x7e\x5b\x1a", b"\xbc\xd4\x90\x56\x8c\x0a\x89\xba\x31\x1b\xef\x88\xea\x4f\x4b\x03\xd2\x73\xe7\x93\x72\x27\x22\x32\x70\x95\xa3\x78\xdd\x6f\x35\x22", b"\x74\x49\x8f\xc4\x30\x91\xfc\xdd\x2d\x1e\xf0\x77\x5f\x82\x86\x94\x5a\x01\xcd\x72\xb8\x05\x25\x6b\x04\x51\xf9\xcb\xd9\x43\xcf\x82", ); test::( b"\xac\x30\xfb\x15\x51\x04\x95\x4b\x9d\x71\x39\xde\x93\x46\xd5\x4c\xa0\x51\x78\x95\x40\x53\xfd\x36\x1c\x97\x19\xce\xa5\x30\xd2\xd2\xe1\x73\x7f\xc4\x6b\x0e\xe2\x73\x57\xce\xcb\xd4\x7e\x0f\xd4\x7a\xda\x0d\x52\x36\xa9\xd7\x7d\xd6\x1a\x1b\x0d\xb5\x2e\x62\x8b\x14\x58\x8f\xdb\xa8\x77\x48\x82\x86\x6b\x04\xb4\x9c\xf5\x20\x5d\xb4\x94\x45\xa8\xa2\x02\xa5\xfc\x3f\xcc\x36\xef\xe0\xbd\x0c\x1e\x51\xeb\x08\x61\x6c\x4a\x7a\xfe\x12\x00\x77\xea\x08\xca\xf1\x67\xe9\x04\x46\x86\x22\x98\x01\x1a\xd9\xa1\xf1\x1c\xef\xb5\xf7\x43\x35", p, q, g, b"\x84\x74\x1b\xef\x3d\x9f\x9d\xab\x0e\x3f\xae\x78\x39\xd3\x9c\x1a\x19\x66\xab\x82\x79\x8d\x71\xaa\x46\xb7\xde\xf4\x65\xe3\x9e\xa5\xe7\xad\xae\xed\x2d\xfc\x92\xc9\xbe\xa7\x2d\x65\x26\x8b\x8d\xf9\x55\xf9\xb7\xe7\xb6\x92\x3d\x2b\xf0\x0e\x7e\x43\xf8\x3a\x0e\x54\xca\x94\x42\x75\xdc\x39\xc0\xfb\x0c\x8a\x00\xcc\xd0\xb2\x9b\x79\x0d\x9d\x8f\x34\x96\x05\x43\x90\x41\x0b\x4a\xe5\xc6\xea\xf2\xe2\x1b\xdb\x52\x42\x11\x79\x97\x0f\xa1\x3e\x09\x48\x28\x0a\x06\xa5\x76\xcd\xff\xae\x6f\xdb\x23\x9e\xbd\x48\x6b\xf4\x69\x92\x70\xe2\xbc\x08\x79\xbe\x25\xa6\xa0\xc2\xf7\x28\x0e\xa3\x3e\xeb\x32\xc5\xd2\xea\x60\x93\x38\x1f\xc4\xc8\x3c\x8f\x9a\x59\x1b\x0b\x0e\x72\xfc\xc1\x49\xc6\x85\xb0\x13\x81\xa7\x4a\xf4\xcc\xb9\x02\xc0\x05\x0e\x05\xba\xf7\x32\xba\xcd\x16\x06\x53\x3e\x2a\xcc\x63\x08\xc7\x77\x20\x1e\xec\xdc\xdc\xbe\x93\x51\x49\xc4\xe5\x72\xa1\x5a\x20\x5d\x2b\x80\xe7\x5e\xf2\x47\x31\x60\xf8\x5e\x64\x2d\x28\x37\x0c\x0f\x19\x46\x41\x25\xc6\x87\xc9\x69\x66\x5b\x13\xb0\x95\xaa\x87\xba\x47\x68\x02\xd7\x2c\x35\x4e\xbc\xbc\xd8\x9f\x28\xef\x00\x1c", b"\x28\xc6\xbf\xca\xdb\x5f\x52\x32\x4e\x39\x90\x3b\xf7\xa0\x4f\xae\xfb\x89\x38\x3f\x47\x3d\xaa\x43\x2c\xab\x91\x78\xf2\x47\x0d\x3c", b"\x4e\x88\xf6\x5f\xf7\x76\x94\x0b\xaf\xbb\xfb\x35\x64\x3b\xcd\xae\xb4\x3b\x25\xb4\x5d\xe2\xde\x3c\x01\x1f\xf1\x44\x9c\x8b\x8b\x32", ); test::( b"\x22\x25\x03\x1f\xd2\x6a\x6b\xb4\xfd\x99\x90\x34\x7b\xc2\xc8\xea\x4b\xa4\x5b\xd7\x5d\xf6\x84\x76\xf9\x83\xdf\xfb\x55\x31\x89\x9f\x13\x17\xd9\x5f\x7c\xbb\x49\x3d\xe4\x5c\xd2\xf1\x19\x04\xcd\x5c\x5d\x5a\x74\x8b\x4a\xa1\x27\xca\x73\x0f\x89\xa9\x28\xdd\xcd\x25\x0a\x65\x51\xc2\xf7\xcc\xe1\x09\xe6\x4d\x3a\xb7\x4a\xfb\x2d\x4f\x4f\x7e\x34\x94\xeb\x7d\x55\x70\x60\xa1\xf2\x9e\xcb\x5b\x75\xf6\x48\x48\x37\x09\x02\xbd\x6a\xe2\xfb\xf6\x80\x2b\x2f\x9c\x37\xf3\x48\x36\xad\x71\xdd\x2e\x2a\xbf\x6a\x0a\x47\xdf\x4f\xd5\x57\x3d", p, q, g, b"\x04\x96\x4c\x09\x3f\xdb\x85\x2c\x97\xb1\x65\xe1\x79\xf7\xef\x3b\x39\x35\x0c\x25\x88\xe6\x0a\x01\x77\xbc\x2e\x89\x0a\xb0\x8f\xfd\x73\xd8\xa5\xa6\x69\x2c\xfe\xbd\x0c\x91\x2d\xe2\xd5\x0b\xf0\x21\x39\xbf\x01\x7e\xc7\x15\xc2\xdd\x7b\xe1\xaa\xd9\xd0\xb9\x6c\x47\xd6\x46\x5d\x4e\xb0\xea\x02\x47\xff\x65\x59\x59\xd9\x4a\x34\x09\xe9\xf9\x26\x2d\x87\x70\x75\xf6\xf0\xc7\x78\x3a\x8d\xf3\xcc\x11\x5c\x52\x87\xc6\x9b\xdb\xf0\xff\xe0\xed\x37\x19\xe4\x18\xff\x99\xb5\xdc\xd5\xf0\xcf\xc1\x06\x5e\x40\x4a\x21\x6e\x09\x50\x86\xa6\xe2\x19\x7a\x69\xc4\x77\x74\x37\x72\x03\xd9\x9a\x23\x4e\x7b\xe6\x1c\xc4\xa9\x5a\x80\x9f\x9b\x9d\xd0\xa5\x50\xb7\x12\xbc\xe5\xd1\xcf\xda\xfd\xa2\x32\xd7\xc8\x31\xec\x52\x88\x47\x01\x15\x5a\x3d\xf2\xb0\x86\xbe\x87\x0a\xf8\xe8\x75\x55\x75\x18\xb0\x35\xc8\x49\x57\xc1\x74\x2b\x8c\x02\xb0\xd4\x6b\x64\xa7\x73\x01\x28\x09\xbf\xa4\xc5\x40\x7c\x3f\xbf\xed\x3b\x96\x08\x16\x60\x4c\xf4\x2b\x2d\xef\xb4\xfe\xea\xbc\x17\x2a\xfb\xfc\xbc\x82\x83\x6b\x44\xb9\x27\xe0\xcd\x4c\xa6\x3a\x1d\xae\xb3\xee\xb3\x0d\x1d\xe6\x08\x12\x7b", b"\x55\x68\xd8\x10\xba\x66\x4a\x08\xb3\x01\x26\x6d\x08\xc6\x9e\xac\xcc\xec\x5a\xae\x87\x0a\x6d\x57\x9e\xda\x51\xa3\x1b\x18\x46\x55", b"\x9e\x81\x88\x68\xe0\x67\x87\xfb\x95\x19\xb5\x05\x46\xee\x21\xd0\x54\x6e\x16\xbb\x1b\x59\x20\x31\x1b\xa4\x47\x69\xdc\x69\xc7\xa6", ); test::( b"\x4b\x1f\x93\x35\xfd\xfe\x88\xc0\x86\x6b\xb6\x48\xc0\x58\x57\xb7\x9c\x2f\xda\x92\xa9\x87\xb3\x59\x28\x2b\xbf\x08\x22\xdb\x74\x7a\x39\x40\xfe\xe0\x5a\xeb\x3c\xc0\x81\x23\x1e\x29\xb9\xd4\x60\xef\x30\xa5\x5f\x0f\x88\x70\x2a\x4e\xcd\xcb\x84\x2b\xee\xb3\x6a\x97\x61\x36\xc9\x24\x1f\x2e\xb5\xc2\xd9\x3f\xe3\x8a\x15\x80\xcd\x58\xfb\x93\xed\x13\x7a\x7d\x05\xea\x22\xd5\xe8\x73\x45\x63\x3a\x0e\x39\x3f\xee\xa6\x16\xea\xf8\x36\x84\xc3\xba\xca\x4f\xc5\xbf\x80\xa8\x7d\xbe\xc3\xa9\x78\x7d\xac\xce\xc4\x79\x66\x1a\xf0\xb9\x68", p, q, g, b"\x57\x76\x7c\x34\x8a\xb0\xc6\x1e\xab\x4f\x2e\x08\x94\xbb\x62\x23\x64\x5a\x33\x1c\x5b\xe2\x49\x0d\x76\x48\x39\xfa\x4d\xac\x81\x4e\x05\xe7\x09\x25\xd7\x20\xd0\xe0\xab\x5f\xaa\x3d\xb6\xdc\x58\xba\x57\x3b\x4e\x0b\x7b\xc1\x3e\x4c\x04\x4b\x96\x25\x93\x85\xfc\xd1\xea\xde\x0d\x7c\x51\x74\x49\x8c\x70\xba\x8f\xb8\x66\x1e\xd5\x24\xfa\x81\x71\x57\x0f\xd5\x2f\xaa\xc9\x91\x5d\x94\x7b\x51\xf6\xcf\x5b\x74\xe3\xed\xfa\x06\x4a\x51\x61\xc7\x62\x3e\xc6\xe8\x0d\x29\x96\x0b\x57\x3f\xb9\x8d\xe9\xe7\x10\xc5\x6e\xe4\x5a\xab\xc4\x02\x23\x57\xf6\xc3\x71\x29\x62\xad\x19\xe4\x3a\x41\x48\x95\x7c\xc6\xb9\xc8\xf6\x91\x87\x7a\x59\xf4\x31\x62\xd8\xf9\x8f\x24\x72\x69\x9e\xa5\x10\x10\x93\x05\xf8\xf9\x8a\xa3\xf3\xf3\x1e\x43\x02\xeb\x05\xe5\xf1\xa4\x62\xd0\xf3\xbf\xdc\xd0\xc8\x4e\x76\xbf\xdd\x14\xb7\xc9\x0b\x98\x2b\x8c\x0e\xc7\xc7\x8c\xf3\xe6\xc2\x16\xed\x1d\x20\xb5\x2a\x13\x2f\x53\xc9\x74\x7c\x7f\xbe\x39\x09\x2d\x5c\xcf\xcc\x01\xa1\x19\xc9\x2f\xaa\x3f\x13\xd4\x64\x3e\x5d\xb2\x2c\xa1\x68\x1d\x65\x36\xbc\x7b\x70\x4b\xb0\x9b\xf6\xc6\x21\xc2\xff\x06", b"\x7a\xc9\x5d\x3e\x09\x36\xcd\xe4\x41\xe4\xa2\x90\x71\x1c\xc0\x44\xe6\xe9\x8e\x8a\x8d\xe6\x82\x98\xbf\x7f\xb9\x0e\xef\x58\x9e\xb2", b"\x14\x0e\x9d\xe3\x7e\xc5\xae\xb3\xfb\x79\x5b\x01\x6f\x51\xea\x3e\x92\xd6\xf1\x98\xc5\xa0\xe5\xa5\xd2\x36\x67\x1c\x91\x04\x2c\x94", ); test::( b"\x3b\x87\x10\x9b\xf2\x15\x71\xfc\xfa\xe9\x2b\x85\x96\x49\xbf\x37\xdd\x23\xd5\x9f\x76\xd5\x0c\xf2\x6f\x4b\x2e\xbf\x7c\x5f\x4a\xe0\xb3\x77\xbf\x3b\xf2\xc7\xe0\x15\xa7\x4e\xfc\x80\x84\x33\x04\x7a\x71\xbf\x1e\xd4\xba\x90\x25\xf4\x56\x1d\xcb\x94\xbe\xf2\xc2\xa2\xc9\x4b\x3f\x55\xed\x61\x1c\x43\x2f\x98\xa6\x83\xab\xad\xc2\xc3\x1d\x00\x2e\xac\xa9\xb0\x70\xf2\xb2\x13\x19\xd0\x72\xdf\x75\xc6\x23\x85\xd7\xd0\x28\x97\xa0\x0f\x86\x3c\x28\x82\xb2\x89\x7a\x33\x13\x32\xbb\x95\x68\xb2\xfd\xfa\xcc\xf5\x0b\x3d\xe4\xb4\x2e\x8a", p, q, g, b"\x7c\x16\xa9\x64\x4c\x18\x25\x79\x11\xb8\x26\xda\x10\xb5\xb1\x01\x15\xff\x77\x67\x5b\xdc\x3c\x9f\x77\x09\x71\x62\xfc\x05\x9e\x86\xb0\x4c\x1f\xae\xed\x3c\x66\x30\x6c\x7e\x5f\xe2\xd5\xc6\x3e\x8f\xa5\xfa\x2b\x82\x56\x5a\xc6\x06\x54\x45\xde\x58\x19\xa2\xe4\xa5\x69\x25\xbd\xcc\xe1\x38\x65\x4d\xfb\x49\x0a\xc6\x24\xa3\x8a\xd6\x58\x49\xbe\x4b\xa7\x4d\x14\xc8\x29\xef\x10\x22\x48\xa1\x81\x93\x93\x33\x35\xea\xf0\xc7\x3b\x7b\xfe\x77\xd6\x69\xf8\x57\xef\x3a\xdd\xb1\xf4\xca\x42\x4d\xbf\xde\xdb\x9e\x2d\xe1\xfc\x0c\xc2\xd9\x77\x7e\xe8\x34\xa0\xac\x7d\x0c\xac\x1b\x2a\x61\x38\x90\x07\x14\x90\xef\xe5\xcb\x20\x97\xac\x83\x0f\xbc\x27\x88\x1f\x9f\xa5\x1d\x3b\x02\x47\xc5\xe1\xb7\xf6\xbe\x13\xc3\x0d\xd3\x1c\x2c\x59\xb7\x68\x3c\xe6\x0a\x0e\xbd\x66\x63\xde\x97\x87\x0a\xf2\xdd\x17\xd9\x14\x31\x32\x3a\x46\x86\xbf\x32\xe1\xe3\x97\x32\xda\xe1\x30\x0c\x57\xbd\x60\x0b\xe7\x90\x59\x3b\x2e\xfa\x04\x5b\xbf\xca\x95\x67\x68\x15\x7b\x47\x24\xca\x0a\x14\x72\xfe\x6c\x8d\xcd\x82\xa3\x80\x24\x76\x63\x41\xd1\xf5\x48\xad\x8f\x36\xdc\x67\x66\x76\xfb\xe3", b"\x1e\x21\x9e\xef\xd6\x16\xca\xac\x54\x9a\x85\x9d\x45\x18\x6b\x5c\x52\x86\x27\x57\x39\x58\xfe\x55\xcf\x57\xfb\xbd\x16\x61\xf7\xb8", b"\xb0\x95\x45\x84\x3d\xc0\xf6\x29\x9b\x48\xf1\x43\x11\x50\x36\x05\x50\x28\x68\x85\x9e\x8c\x43\x86\x7f\x80\xdf\x3c\x23\x91\xc7\x62", ); test::( b"\x04\x23\x65\xb1\x25\x69\x31\xa1\x11\xfa\xcc\x6c\x40\xf6\x18\xc4\x28\x80\x1b\x03\xe4\xf2\x22\xa1\xe1\xb7\x76\x3c\x3b\x02\xa6\x21\x4e\x4c\x51\x7b\xeb\x58\x7a\x4e\xa6\x9f\xdb\xd4\xea\x2d\x5d\x5f\x45\xaf\xde\xd9\x6d\xda\xc8\x7d\xc8\x99\x55\x61\x3a\xef\xf7\x64\x4f\xc6\xa5\x8b\xb8\x59\xa8\x52\x21\x31\x8f\xbc\x5e\x17\x5c\x69\x85\xb1\x9a\x1d\x16\xab\x6a\xd3\xca\x8f\xa1\x90\x3a\xcc\xa4\x2b\xc6\xd9\xef\xbe\x88\xfd\x6f\x2a\x86\x50\x42\x5b\xe9\x7b\xab\x9c\xb6\x70\xb2\xe3\x9f\x36\xd5\x26\x27\x8e\x0b\xcf\xcb\xff\xc3\xc6", p, q, g, b"\x81\x54\x11\xac\x6a\xa1\xb4\x95\xc4\xba\xc8\x02\x80\x6a\x1a\x35\x92\x92\x4f\xd9\xc0\xa3\xcc\xa4\x1e\x07\x6d\xb2\x93\xd8\x15\xc2\xf2\xb0\xa5\x3e\x97\xcf\x65\x7c\x89\x51\xb8\x56\xcc\xa1\x16\x6a\xd4\x33\xbe\x58\x29\xb0\xb6\x36\xca\x9d\xe4\x91\x11\xce\x5c\xec\xce\xde\xdf\x36\xd7\x95\xed\xef\xef\xee\x1d\x55\x32\x50\xfb\xcd\x5b\xd0\x5b\x4d\x99\xde\x55\xf1\x47\x77\x3a\xb3\xa0\xf7\x54\xd0\x90\xca\x7b\x6f\xf7\x5c\x16\x0e\xef\xd1\x70\x9a\x5d\xf3\xcd\x8a\x0c\xae\x3e\x34\x1f\x22\x75\xfa\xae\xe3\xe3\xe3\x17\x37\xe7\xe9\xc7\xe7\x48\x45\x65\x1f\x4f\x83\x9c\x9d\x08\xda\x6b\xfd\x00\xf2\xc2\xb9\xc6\xed\x9a\xcb\x78\xd1\x11\x75\xfa\x6d\xed\x7a\xb9\x5d\xbb\x2b\xfe\xf1\x8f\xeb\x14\x9b\xc9\x4f\x6d\xe0\x5a\x20\x52\x21\xba\x04\x06\xc9\x6f\x63\x97\x2a\xef\xec\x1b\xee\xf0\x30\x13\x70\x11\xe6\x79\x6a\xf2\xe4\xeb\xaa\x10\x01\x50\xd5\x8c\xaf\x40\x82\x17\xac\xb1\x18\x3a\x1a\x46\xe0\x63\x68\xcf\xf6\xfd\x74\x4d\xa7\x01\x9e\x7c\xa1\x09\xac\xf1\x24\x4a\x76\x3c\xc2\xb2\x18\x6f\x49\x27\x2b\xa3\xae\x04\x25\xf2\xeb\xcd\x30\xe7\x7e\x9f\x7c\x95\x7a", b"\xe7\x14\x5c\x70\xe0\x03\x8a\xe7\xe7\xd9\x01\xb4\x88\x28\xb0\xb8\xbc\x96\x0c\xc4\xfa\x29\xa5\x2e\x11\xff\xc9\xab\x08\xee\xe7\x26", b"\xb9\xc5\x4e\xf6\xcb\x3e\x1b\x04\x98\x95\x22\x99\xd1\x46\x5e\xd2\xc5\xd4\xe6\x70\xcd\xfd\x25\x06\x46\x24\x66\xc3\xb0\xfc\xc5\x38", ); test::( b"\x98\xff\xb2\x89\x9f\x17\xc8\x0a\x83\xe8\x2c\xa6\x26\x5e\x6f\x36\x17\x33\xa6\xbb\xc6\x3c\xdf\x88\x80\xdc\x75\x6b\xc7\x68\xb3\x5b\x90\xdb\x73\x90\xcf\xff\x74\x5e\xc1\xb5\x6f\x16\x55\xd8\xd9\xa2\x9a\x6e\x8a\x63\xbe\x0b\x1b\x2f\x9a\xa7\x43\x62\x09\xa1\xfa\x06\x1a\x7a\xec\x28\x62\x2c\x47\x2b\x3d\x02\x85\xa7\x01\x65\x5a\x49\x65\x46\xe8\x91\xa8\xab\x29\xd9\xf4\x0d\x2e\x74\x8d\x0a\xa2\xba\xbc\x06\xcf\xca\x64\x1b\x30\x0b\x7a\x21\x9c\xaa\x9e\x5b\xae\x3b\xf6\x89\xf6\x05\x67\xf9\x22\xe7\x79\x6f\xe4\x7b\xb7\x2f\xfb\x64", p, q, g, b"\x14\x11\x1d\xca\x30\xc0\x13\x87\x61\xfd\x2f\x55\x97\x2b\x98\x46\x04\x1e\x5c\xa8\xb9\xbc\x6b\x2d\xc8\x20\xf2\xa2\xf5\x10\x0a\xba\xab\x33\x7c\x7e\x0d\x1b\xc5\x9d\xe5\xae\x58\x6b\xbd\xcf\x4d\x4b\x14\xaa\x23\xbe\x40\x09\x52\x93\x12\x3b\xad\xbb\x11\x91\x9b\x78\xcd\x64\x12\x54\x8d\x9f\x9d\x15\xf6\x14\xb6\x92\x87\x13\x34\x41\x48\xfd\x7d\x30\x98\x5f\xd2\xc5\x09\xb4\x4d\x39\x6c\x56\x72\xa0\x82\xde\x41\x83\xfe\xe0\x3e\x45\xa9\x0e\xef\x6a\x08\xb0\xd9\xd4\x71\x32\xc8\x2a\x2c\xcf\xef\x05\xe2\xad\x0f\x34\x0d\xcc\x06\xd9\xe2\xe9\x79\xec\xc4\x38\x44\xc6\x05\x4e\x4f\xa5\xfb\x8a\x73\xa1\xe3\x87\x3f\x21\x45\xb0\xfd\x40\xf3\xec\x79\x46\xf1\xf4\x3d\xe8\xb8\x05\x7c\x1b\xe5\xbf\x04\x63\x0a\x12\x45\x3d\x62\x3c\x9b\x8d\x9f\x0e\x30\xc8\x8c\x30\x43\x42\x15\xd4\x8f\x77\x34\x8e\x6b\x04\x7f\x16\x93\x4e\xa0\x97\x43\xdd\x3b\x00\x9c\xeb\xc4\x9d\xbc\x3a\x3d\x35\x67\xc3\x32\x15\x55\xec\x96\xb2\x16\x0c\xaf\x78\x70\x97\x0a\xc3\xcd\x82\x94\x47\x7a\x06\x43\xad\x52\xc2\x3d\x9d\x98\x7d\xbf\xff\x64\xae\xd1\xa8\x83\xc3\x0a\x49\xf1\x4f\xf0\x62\x00\x95", b"\x45\x51\xb0\x96\x44\x6d\xb6\x76\x1b\x70\x8f\x35\x20\x9e\xdb\x91\xcc\x51\xee\x4e\xf9\x6a\x74\x95\x40\x7a\xb4\x16\x7a\x05\xc7\x91", b"\xcf\xe4\xc5\x8b\xdb\xf6\x1c\xaf\x09\xa4\x2a\xdb\x1a\xa5\xd9\x8b\x4c\x45\x9c\x01\x12\xc5\x78\x23\xbc\x15\xb5\xb9\x90\xd9\x2f\xf1", ); test::( b"\x58\x98\xcc\x0b\x42\x2b\xb8\x9f\x06\x6d\xab\xbd\x30\xf5\x9e\x9a\x35\xa3\x92\xbd\xd7\xad\x31\x5e\xc8\xad\x32\xb8\xf0\xf3\xd0\x28\x64\xe7\x0e\xa3\x6e\x90\x76\xc3\x95\xf0\xba\x9d\xe1\xab\x60\x80\xdf\x3c\xf4\xa1\x47\x0e\x2b\x99\x90\xb8\xe7\x61\x4b\xb8\x31\x2b\x07\x5c\x0b\x2a\x13\x2d\x7e\x47\xde\xd9\xe4\xc0\xa1\x36\x84\x55\xb9\xd1\xa6\x7b\xc4\x4a\xf2\xf3\x74\x28\xf4\x8f\x7e\x08\x9a\xb4\x1d\x04\x63\x78\xb6\xd4\x8d\x9c\xb1\x35\xee\xe4\x57\x40\x72\xab\xea\x93\xbd\xa7\xeb\x4f\x15\xa2\x06\xcd\xaf\x3b\xbb\xeb\xd3\x18", p, q, g, b"\x76\x6d\x7e\x4f\x8b\xc3\x25\x4d\x92\xcf\x6a\x64\xab\xd5\x04\xd0\x1c\xdc\xf6\xc2\x39\x17\x8b\x0a\xeb\x3f\x69\xc9\xbf\x20\x2b\xff\x75\x66\xec\xa0\x9f\x29\xcf\x5d\x6f\xa4\x73\x6d\x57\xc0\x82\x05\x50\x0d\x64\x83\x36\x40\x9d\xf0\x6e\x7f\x2c\xf9\x91\x78\xb2\x0a\x7e\xc2\xb5\x12\x4b\xcf\xfc\x61\xad\xb6\x6f\x6f\xaf\xc5\x1e\x32\x52\x1d\xea\x21\x24\xe5\x78\x1c\x38\x3b\x11\x6d\x06\xa6\xa6\xe8\x9d\xec\x46\xb5\xe4\xad\x69\xf5\xa1\xe8\xdd\x7a\xc5\xe1\x60\xda\x33\x6c\x11\x86\x0b\x60\x1e\x7e\x6d\x58\x89\x5e\x67\x97\xdb\x5a\xa9\x2d\xeb\x7b\x94\x2f\x2e\xdf\x58\xd4\x3d\x3d\xac\x92\x09\x55\x7a\x6a\xa0\x7b\x22\x8e\x73\xa8\x0f\xf0\xe9\x2e\x4e\xc4\x60\x3d\x36\x2e\x1c\xca\x7e\x92\x8d\x94\x59\xc2\x14\x05\xaa\x0f\x65\x48\x73\x2c\x0f\xc5\x01\xce\x50\xf0\x89\x6f\x07\x63\xf6\x33\xc8\xc1\xa8\x53\x13\x21\xe1\xa0\xf4\x71\x34\xa0\xd2\xd8\x67\x6f\x45\xf1\x3e\xa5\x76\xe6\x4c\x78\x70\x02\x80\x33\xa4\x26\x1b\xdf\xce\xc9\x48\xeb\xb1\xaa\x25\xb0\x21\x34\xd0\x25\x9d\x73\x02\x4a\x01\xda\x0c\xad\x1c\xe6\x75\x71\xe3\x69\x63\xdc\x13\x04\x96\x16\x0e\xbf", b"\xa2\x37\xd2\xc3\xd2\x37\x06\xca\xf0\x04\xa2\xe9\x4d\xe2\x9f\x04\xc7\x48\x93\x6b\x62\xab\x54\x31\xfe\x73\xc7\x24\x85\x81\x42\x65", b"\xb4\x8b\x9e\xf9\xcb\xd8\xbd\xf7\x99\xb7\x06\x05\xf0\x05\x50\xb8\x1b\x30\x9c\x15\x73\x32\x15\x3b\xe9\x70\x7a\x39\x9f\xbd\xd6\x7f", ); test::( b"\x04\x18\xe0\x12\x36\xca\xed\x0f\x80\x24\x1c\xe8\xc6\x30\x7d\x02\x6f\x5e\x25\xf4\xa9\x22\xbb\xdb\x4a\xaf\xb8\xd9\xdb\x95\xa1\x81\x75\xf9\xdc\xea\x9a\xcb\x4d\x37\x6f\x36\xff\x7b\x7c\xb5\x98\xe0\x73\xde\x95\xad\x20\x12\xeb\x9d\x11\xe1\x5c\xb3\x94\x1c\x6d\xd0\xdd\x69\x42\x2e\x78\x51\x2e\xbf\xfb\x19\xcc\x8a\x40\x3a\x9a\x7d\x1f\x17\x20\xab\x0f\x2d\x25\x62\x75\x80\x36\x60\x93\xe2\x1a\xc1\x53\x7f\x93\xde\x90\xa9\x45\x08\xf1\xd7\xa7\xa1\xdb\x5a\x7b\x13\xc9\xfd\x00\xb8\x2b\xe0\x44\xc3\xa3\x5e\xc0\x45\x1c\x30\x9b\x82", p, q, g, b"\x4c\xf4\xce\xe4\xd5\xab\xc2\xc9\x2d\xb5\x22\x92\x8b\x6d\x7e\x43\x6e\xa0\x08\x84\x00\x94\x97\xed\x58\x8e\x93\x28\x1c\xf0\x5b\x37\x47\xca\x00\x48\xb9\x17\x70\x82\x79\xcd\x02\x77\xce\x85\x60\xc2\x27\x75\xd2\xaa\x0e\x7e\xed\x1b\xba\x77\xbe\x45\x41\x7f\xa7\xaf\xd7\x76\xb8\xe5\x60\x67\x9c\x49\x3a\x52\x0a\x0e\x62\x6a\xcd\xc8\x3d\xf0\x21\x35\x16\x69\xbd\xf9\xda\x19\xb1\x2b\xef\x29\x26\xb5\x25\xfa\x4c\x8e\x3d\x1f\x20\x83\xea\x6b\xbb\x48\x98\x80\xf5\x94\xe6\x79\x34\xd1\xf3\x55\x81\xad\x18\xe0\xdb\x46\x2a\x1a\xc9\x44\x06\x6c\x65\xdd\x74\x3f\x35\x74\x1c\x6c\xf5\x88\x91\x8d\x83\x36\x70\x23\x29\xc6\x21\x13\xe9\x48\x6b\xfa\x49\xca\x54\x25\x91\x45\x26\xa9\x65\xe3\xc1\x97\x58\x24\xf4\xb3\x9f\xa5\xfe\xf8\x9c\xf6\xf9\xea\x51\x2f\x7f\xfc\x91\x38\xe7\x2d\xbd\x0f\x71\xb0\x1a\x70\x97\x53\x12\xea\xca\xb1\x11\x18\x47\x11\x15\xee\x3f\xc8\x10\x52\x29\x36\xc9\xdf\x35\x97\x75\x09\xb1\x96\xd8\x67\xfa\x11\xf6\x07\xb7\xef\x9a\xb7\x8c\xb7\x48\x21\x3a\x67\x63\x43\x9c\xe5\xe7\x64\x1b\x05\x35\x96\x70\x61\x22\x03\xa4\x7d\x4d\xe9\xc5\x38\x84\x05", b"\x83\xee\x96\x0e\x6f\x90\x26\xfe\x24\x54\xd8\x59\x46\x2a\xc3\x34\xa1\x38\x96\xe7\x51\x79\x85\x8e\xf4\x0e\x2e\x9a\x06\x5c\x53\x6a", b"\x7c\xe8\x69\x9c\x6c\xcb\x18\x4d\x42\x40\xb8\x70\x9d\xa1\x14\x51\x32\x8c\xf1\xa7\xe0\xca\xfe\x6e\x1c\x8a\xb5\x3d\x7d\xe6\x7d\x9e", ); test::( b"\x92\xc9\x49\xfe\x23\x42\xf9\x1a\x38\x7b\x67\xc1\xb1\x2b\x1d\x04\xd0\x72\x12\x03\xca\xed\x59\x3c\x9c\x46\x4e\x5f\xda\x09\xfd\xcc\x91\xd3\x32\x1d\x29\x85\xee\xc0\x8a\xb2\x02\x6d\x1e\xc3\xfc\xfa\x83\x8c\xb6\xaf\x45\x29\x0c\x08\xdc\x30\xb9\xc1\x4c\x44\x45\xd7\x83\xb6\xf4\x84\x09\xa0\x04\x90\xf4\xe3\x08\xdb\xc8\x7f\xd1\xb2\xf8\x78\x38\x52\x12\xe1\xf4\xc3\xe1\xcf\x81\xc5\x6d\x71\xe7\x3f\xd7\xa0\x95\xb5\x6b\x4a\xbe\xc1\x5c\x57\x10\x74\x20\xfb\xdf\xa4\x44\x77\x07\x8c\xcf\x45\x19\xf9\xf6\x04\x4f\x07\x44\x05\x20\x35", p, q, g, b"\x25\x6d\x23\x1a\xc2\xba\xe6\x50\xd2\x59\x99\xb2\x70\x6d\x4c\xb6\x3a\x89\xb1\x46\x8e\x0d\xf3\x6d\x67\x75\x35\xfa\x7a\x0e\xa8\x90\x59\x0d\x32\x90\xd4\xb5\x0b\xdb\x39\x9f\x33\xdc\x41\x5e\x44\x69\xc9\x7c\x6c\x0c\xee\x82\x05\xee\xc9\x62\xd7\x15\x3c\x4c\x85\xab\x88\xf7\xcf\x80\x97\x9d\x4a\x1f\xfd\x8c\x74\xe6\x81\xc1\xd2\x8d\xa0\x77\x32\x11\x6c\x32\x10\xee\x4b\x69\x33\x09\x33\x36\x86\x24\x6d\x66\x70\x74\xc7\x17\x20\x35\xfd\x60\x91\xb2\x84\x0b\x11\x39\x70\xb4\x59\x83\xd4\x74\xf5\x4b\x95\xd2\x63\x94\xb7\xa4\x3e\x81\xb4\x49\xa2\xee\x94\x23\xaa\x1c\x27\xf4\x59\x2b\x51\x6c\x12\xd5\x43\x3e\x2b\xa7\x24\xf5\x46\x3b\x41\x69\xa2\xb0\x94\x0e\x1b\xcc\xd6\x0c\xca\xb9\xb5\xa3\x82\x48\xac\xb6\x05\x82\xab\x8b\xbc\x01\xc5\xe7\x5f\x9e\xf7\x47\x42\x73\xfb\x51\xaa\x63\x16\xe6\x49\xf4\xf2\x24\x52\xdc\x70\xbf\xd4\xc3\xda\x07\x2c\x03\xea\x82\xee\x00\x9d\x42\x72\xa8\x49\x61\xc9\x8e\x51\x7a\xb9\x47\x74\x1d\x81\x21\x16\x01\x1d\xec\x03\x73\xca\x8f\xba\xc5\x57\x6c\x20\x69\xb0\x67\xf8\xb0\x05\xd6\x0a\x36\xec\xa4\x4f\x56\x01\x9a\x64\x83\x5d\x76", b"\x84\xca\xce\x71\xa8\x0e\xd4\x74\x94\x57\x0f\xc8\x48\x39\xf2\xe3\x50\x19\x1b\x74\xf0\xee\xff\xf2\xd7\xab\x2c\x68\x9d\xb7\x7b\xae", b"\x9c\xac\x33\x59\x4e\x19\x34\xb6\x8f\x62\xac\xa0\x5c\xa0\x40\xf3\xc8\x21\x10\xc1\x0b\x73\x79\x87\x8b\x78\x94\xb0\x91\x9a\x0f\x2f", ); test::( b"\xdf\x6a\x4e\xb7\xca\xd4\xff\x9b\xdd\x83\x56\xd3\x56\x8f\xcf\x02\x85\xc1\xa4\xe3\xc3\x10\x9f\xaa\x09\x1b\x58\xa9\xbd\x90\x7c\x62\x9d\x54\xaa\x7a\x23\xa7\x48\x70\x54\x5a\x09\x42\xa2\xd2\x39\x14\xf2\xf1\x67\xd9\x65\x73\xf0\x6f\x35\xea\x05\xef\x70\x4c\xac\x80\x14\xdd\x21\xb9\x61\xd3\xda\xcf\x7b\x93\x0b\xbd\x7e\x35\x55\x0f\x72\x10\x94\xc8\x63\x33\xe0\x3e\xd4\xda\xb7\xbc\x1b\x64\x16\xad\xd9\x57\x8d\x27\x9e\xda\xee\x37\x50\x4f\xd2\x5e\xc0\xc5\xe8\xa3\x7a\xc9\xec\x19\xbf\xb1\xe3\x77\x8e\xd6\xd9\xc6\xb6\xe3\x5e\xc7", p, q, g, b"\x2f\x4b\x0c\x01\xe4\xb1\x5e\xb5\xee\x7a\xfa\x98\x24\x09\x33\x30\x73\x8b\xe2\xf3\xf0\x6c\x42\xb2\xb7\xc6\x96\x8f\xa5\x4b\x98\x7c\x18\x4e\x7f\xa8\x9e\xff\x16\xda\x02\xb9\x3f\xf6\x1b\x9c\xe4\x8e\xeb\xe7\xea\xb0\xf7\xe2\x03\xad\x11\xc7\x1e\x7b\x29\x7d\x23\xf2\xd5\xa5\x99\x82\x72\xc3\x0c\x2e\x17\x24\xb5\xe9\x63\xbf\xd6\xf8\x32\x39\xf8\x74\xd8\x8e\xa0\x89\x43\x5b\x89\x6d\xd2\x10\x9b\x6a\x14\xb2\xd8\x48\xf9\xed\x7e\x92\x14\x3c\x06\x49\xf9\x7f\x4f\x2e\xb0\x5b\x8c\x5a\x07\xe9\x9e\x49\x7d\xbc\x75\x2d\x44\x3e\xba\x93\xd7\xf3\xdc\xdc\x32\x40\xa2\x71\x4e\xa0\xe3\xe7\x62\x7f\x21\x6e\x47\x01\x14\x8d\xd2\x11\x92\xf2\x74\xf1\xed\x5d\xf0\x5c\x60\xb1\x57\x6d\x3a\x0b\x7f\x69\xa7\x76\xb5\x01\x04\x04\xac\xd5\xaf\xaf\xd3\xd7\x0f\x57\x76\x3f\x2b\x77\x8d\x0c\x36\x1e\x5f\x7f\x0b\xbe\x17\xaa\xfa\xa5\xcd\x39\x33\x29\x17\x1d\x06\xec\x03\x20\x39\xa9\xff\xb3\x7c\x3a\xb8\xcd\x85\x8e\xa7\x88\xa7\xb9\xf5\x01\x99\x6b\xaf\x95\x9c\xa8\x5c\x7d\xaf\xe0\xcd\x3e\x30\x95\x76\x40\xef\xf1\x05\x89\x4c\x43\xf8\x66\xbc\xc4\x22\x69\x8d\x12\x8d\xca\x08\x87", b"\x1d\xd2\xda\xea\xf3\xe8\x9f\xd6\x44\xc6\xcc\x94\x23\x11\xea\x50\x56\x41\x3d\x8a\x24\x08\x77\x87\x67\x5c\xef\xfd\x3d\x6c\x15\xe4", b"\x3e\x12\x78\x13\x96\x55\x85\x60\x45\x5c\x4e\x70\xf6\x10\x52\x2a\xb2\xb1\x0f\xc2\x53\x43\x29\x68\x18\xef\x7f\xfb\x03\x78\xfa\x47", ); test::( b"\x4f\x16\x68\x1e\xaa\x5d\x97\x67\x3a\x7c\xca\x02\xee\x8a\x73\x74\xb7\x54\x11\xe0\xb5\x70\x4a\x94\x7f\x04\xd1\xa5\xb1\x4b\xe0\xb5\x06\xf3\x1c\x2f\xa3\x29\xe3\xca\x51\x6f\xa4\xf1\x62\x6a\x9b\x5e\x08\x0b\xda\x7f\x35\x3f\x85\x03\x65\xea\xc7\xc3\xd2\x59\x6f\x50\x2a\x5d\x70\xb1\x54\x22\x76\xc1\x2d\x4e\xa4\xa2\x2b\x53\x25\xb9\xeb\x3e\x94\x2e\x55\x67\x69\xb7\x96\xc4\xf5\x24\x59\x5f\x1c\xc6\xce\x17\xf9\x9f\x9d\xbf\x51\x33\x14\x53\x22\x8e\xad\x32\x7b\x61\x4f\x44\x38\xd3\x5d\x61\x42\x84\x29\xf7\x8c\x8c\x93\x77\xaa\xaa", p, q, g, b"\x2e\x33\x60\x4e\xd9\xe6\xc0\xf1\xba\x40\x3a\x8c\x3c\x3f\xe8\xe8\xf4\x88\x59\x18\x13\xaa\x3d\x2f\xcc\xcd\xf8\x8f\xe8\x08\xf7\x0a\xdf\x17\x3f\x0f\x14\x3a\xbd\xaa\xd4\x3b\x80\x76\x9e\x30\xff\xc5\x74\x9e\x8a\xd3\x59\x99\x95\x3d\xef\xf4\xf6\x1f\x4c\xa0\x73\x13\x60\x9e\x23\xac\xae\x7b\x35\xf7\x79\x34\xfd\xbb\xe1\xc3\x80\xb2\x72\x7b\x1c\x38\x99\x25\x0a\xf5\xb4\x39\x9b\x65\x8b\x79\x08\x67\x6d\x64\xd1\x17\x63\x78\x53\x73\xb2\x16\x98\x36\x61\x1d\x72\xa9\x57\x31\x99\x36\xc8\x4e\xfd\x72\xb7\x2f\x92\xbd\xd2\xdb\xe0\x00\x0d\x88\x41\xab\x6d\x8d\x0d\x66\x6e\x79\x36\x1a\xbb\x23\xb6\x00\x73\x48\xdb\xbe\x7a\x94\x93\x6d\xc6\xb0\x26\xf3\xb7\x10\x00\x81\xf5\x47\xb9\x94\xe0\xe0\x77\x8c\xb7\x61\xeb\xd4\x3a\x29\xd8\x76\x4c\x7f\x96\x2a\x74\x7e\xcc\x92\xe4\xa2\xa6\x28\xf5\x2d\x8a\xbf\x43\xf6\xe3\x27\x8a\x0d\x32\xea\x67\xc2\xd7\x9d\x04\xc8\x33\x87\xdd\xc7\x09\x36\x5c\x0a\x0b\xac\xc8\x3d\x75\xc9\x46\xe2\x83\xe0\x73\x92\x33\x58\x14\x41\xae\xdd\xb0\xd7\xd7\x65\x03\xd6\x21\x40\x5d\x27\xef\x66\xfa\x8b\x53\x79\xd1\x78\x61\x7d\x4b\xb5\xad\x59", b"\xe2\xff\x3f\xc4\x41\xdb\x45\x40\x19\x4a\x7f\x5d\xa1\xea\xd8\x49\xc2\xc3\xc4\x8d\xcc\xf8\xb2\xc1\xb3\xb3\x59\xa7\xb1\x6e\x16\xab", b"\x52\xfb\xdc\xd5\xc6\x2a\x99\x9a\xab\x46\x14\x7f\xef\x9e\x18\xcb\xfc\x7d\xaf\x68\x0a\x7d\xdb\x89\x2e\xdf\xa4\x4d\x28\x5e\x21\x58", ); test::( b"\x09\xe4\x8a\x36\x52\x3b\x52\x89\xec\x41\x85\x9f\xaa\x14\x1e\x2a\x29\xb3\xe8\x8a\xb2\xd6\x35\x1e\x20\xde\x00\x1e\x64\x24\xb8\x53\x37\x67\x5f\x0c\xe2\x6b\xe2\x24\xfa\x4f\x8d\xf0\xef\x97\x10\xea\x28\x56\x35\xb2\x7b\x29\x7d\x68\x8e\x33\x8b\x54\x61\x82\x0b\x57\xbe\x4b\xee\x21\x64\x5b\x04\x95\x7c\xa2\xf6\xcd\x7a\xf9\xa6\xa5\x2b\x3c\x97\xc5\xb9\xdb\x1c\x2f\x7e\xa8\x17\xcd\x6d\x3c\x85\x22\xd4\xe6\xa9\xde\x86\x9a\xef\x26\xec\x0d\xbd\xd2\x69\xc7\x9b\x38\x80\x69\x27\xbd\x3a\x51\x00\x73\x5e\x6f\x9f\x65\x5c\xa9\x4d\xae", p, q, g, b"\x7e\x38\xcb\x66\x8d\x64\x7e\xe1\x5f\x71\xac\x5d\x2b\x55\xc1\x1f\xd4\x73\x1e\x1a\x6c\x03\x1d\xd7\x59\x4d\x61\x4f\x2f\x1e\xd2\x56\x23\xff\xfd\xc5\x95\x6f\x52\x56\xe6\x35\xc9\x14\x20\x5a\x29\x37\xa6\x07\x4c\xfe\x1f\x3e\x44\x3b\xbe\xb3\x23\xa2\x3b\x0f\x0f\xbc\xcf\x8c\x17\x70\xad\x18\xba\x97\xd0\xac\xbe\xa1\xe8\x46\xe1\x2c\xf1\x2c\x37\x06\x25\xb1\x55\x5d\x71\x09\x05\xee\xe9\x43\x53\x9f\x22\x41\xb8\xfb\x49\x0c\x9d\x6b\x44\xf3\x61\x39\x22\x6b\x4c\x1f\x00\xe9\x5f\xfe\x59\x50\x14\xf6\x1b\xf5\x79\x83\x6a\x14\x21\x2c\x07\x23\x1a\x5e\x9e\x87\xde\x4a\x9a\xaf\x0f\x46\xf3\x4c\x92\x29\xf2\xea\xbb\x71\xd4\x0d\xe2\x6a\x1c\xbe\x10\xdb\x06\x45\xce\xc3\x7d\x48\x57\x5a\x11\x54\xbb\x5a\xcc\x94\x7b\xec\xb2\xa7\x4b\x07\xe2\xa0\xe4\x5b\x90\x3b\xe3\x75\x02\xf9\x1b\x07\xfb\x4e\xcd\x7f\x21\xfb\x13\x0c\x6d\x63\x9e\xf0\xfd\x84\x44\xfa\x12\xde\x85\x9a\xbe\x95\x54\x88\x01\xf6\xa3\xc4\x0e\x7a\x65\xfd\x15\x18\x22\x1a\x27\x4d\x7b\x65\xed\x41\x75\xf6\x6c\x04\xd9\x19\xc8\x6d\x2a\xe8\xc3\x74\xb1\x47\x09\xe9\xc8\xa3\x9e\x1d\x0c\x4e\x99\x35\x54\x0b", b"\xe5\x50\xdc\x65\xaf\x27\x5e\x47\xbe\x48\x0f\xd6\x47\x36\x6e\x2b\x05\x5c\x79\xea\x33\xde\xd4\xf5\xa9\x55\x71\x21\xe0\x82\xaf\x26", b"\xe2\x6b\x1a\x5f\x27\xcc\x6c\x87\x86\x3e\x31\xef\x7f\x1e\x61\xbe\xa4\x76\xfc\x5d\x7c\x25\xfd\xf2\x2f\xe7\x40\xf2\x3a\xa9\xa7\x52", ); test::( b"\x88\x37\xbb\xce\xef\x57\x75\x11\xf2\xd0\xc0\x8f\x79\x0d\x5d\x2e\x85\x62\xd9\x3d\xf3\xd8\x2d\xd4\xc2\x82\x7c\xd9\xa9\x11\x53\x08\x11\x4a\x18\xc4\x52\xdb\x27\x85\x56\x10\x81\xeb\x52\x36\x85\xae\x2b\x3c\x8b\x09\x0e\x0d\x44\xdd\x40\xd2\xfc\x0c\xdf\xc8\x8d\x6f\x90\x63\xa7\x70\x7d\xf6\x09\xed\xf0\xa8\xc5\x50\x34\x81\x5e\xa9\xf1\xd8\xb0\xbc\xbc\x92\xfb\xa5\x13\xba\x81\xee\x64\x6b\xf9\x8a\xd4\xeb\x22\xbe\x26\xa4\x58\x2b\x1b\xe2\x89\x9c\x91\xee\xbc\xbc\x9f\xba\x58\x25\xe0\x21\xe9\x9b\xe0\xc9\xd2\x86\x42\xd1\x3f\xa4", p, q, g, b"\x77\xd7\xa4\x0a\x7b\xab\x3f\x57\x78\xf8\x5d\x4f\xc4\x8b\x3e\x28\xce\x28\xb2\xdf\x9e\xb8\x7c\xc9\xcf\x39\x4e\xf2\x8e\x80\x64\xf3\x9a\x96\x90\x10\x39\x80\xa6\x6d\xa2\x19\xcb\x50\x22\xc1\x01\xf2\x20\x11\xa8\x15\x7a\x75\x68\xc5\xff\x2e\x97\x8b\xa2\x20\x13\x67\xd1\x7c\x22\xa8\x67\x86\x5d\x00\xc2\xa4\x37\x38\x56\x27\xbd\x08\x8b\xfc\xf7\x21\x92\x51\xbf\x6a\xe1\x58\x26\x9f\x4e\xf3\x5d\xa7\x09\x5a\x53\xc2\x4f\x37\xd6\x1b\xcf\xb7\xc0\x43\xfe\xb6\xe9\x38\x32\x34\x3f\x9e\x90\xee\x71\x04\xc8\x04\x86\xec\xd0\x87\xbe\x1b\x67\xf1\x8c\xda\xaa\x37\x5e\x03\x9c\xb7\xad\x60\x3c\xb0\xcd\x85\x56\x23\xe9\xfb\x48\xe4\xee\xde\x14\xea\x3c\x76\xa0\x36\x4a\xac\x00\x66\x50\xd3\xb5\xcd\x9b\x47\x4b\x56\xf8\x58\x4b\xe5\x8a\x72\x1b\xf3\x4d\xd0\x80\x8d\x33\x4c\xd8\x63\x2e\x80\x85\x36\x79\x1f\xcb\xea\x96\x1f\x71\x63\xda\xd2\x83\x53\xc1\x15\xeb\x3e\x85\x67\x37\xdb\xbe\xe0\x34\x36\x72\x16\x37\xa4\x77\x54\xa8\xa1\xfe\x0f\xed\xf5\x47\xb3\x58\xa7\x3d\x05\xb7\x69\xa9\x5b\xde\x34\x40\x00\x7c\x07\x73\xa3\xc7\xc8\xdc\x97\x14\xe1\x1c\x3a\x10\xee\x01\xd7", b"\x7b\x6b\x3e\xae\xf6\xcd\x5f\xe6\xda\xed\xe8\x6d\x63\x94\x34\x78\xc7\x71\x58\x24\x83\xbe\x0b\x92\x6e\xe3\x02\x2d\x22\xef\x91\x2e", b"\x39\xd9\x28\xb5\x9a\x69\x04\x50\xd1\x33\x59\xa2\x9e\xfe\x20\xcb\x98\xbf\xd3\xfc\x97\x26\xf8\x0e\x51\x48\xf0\x59\x66\x3f\xfd\x08", ); // [mod = L=2048, N=256, SHA-384] let p = b"\xa6\x16\x7c\x16\xff\xf7\x4e\x29\x34\x2b\x85\x86\xae\xd3\xcd\x89\x6f\x7b\x16\x35\xa2\x28\x6f\xf1\x6f\xdf\xf4\x1a\x06\x31\x7c\xa6\xb0\x5c\xa2\xba\x7c\x06\x0a\xd6\xdb\x15\x61\x62\x1c\xcb\x0c\x40\xb8\x6a\x03\x61\x9b\xff\xf3\x2e\x20\x4c\xbd\x90\xb7\x9d\xcb\x5f\x86\xeb\xb4\x93\xe3\xbd\x19\x88\xd8\x09\x7f\xa2\x3f\xa4\xd7\x8f\xb3\xcd\xdc\xb0\x0c\x46\x64\x23\xd8\xfa\x71\x98\x73\xc3\x76\x45\xfe\x4e\xec\xc5\x71\x71\xbb\xed\xfe\x56\xfa\x94\x74\xc9\x63\x85\xb8\xba\x37\x8c\x79\x97\x2d\x7a\xaa\xe6\x9a\x2b\xa6\x4c\xde\x8e\x56\x54\xf0\xf7\xb7\x45\x50\xcd\x34\x47\xe7\xa4\x72\xa3\x3b\x40\x37\xdb\x46\x8d\xde\x31\xc3\x48\xaa\x25\xe8\x2b\x7f\xc4\x1b\x83\x7f\x7f\xc2\x26\xa6\x10\x39\x66\xec\xd8\xf9\xd1\x4c\x2d\x31\x49\x55\x6d\x43\x82\x9f\x13\x74\x51\xb8\xd2\x0f\x85\x20\xb0\xce\x8e\x3d\x70\x5f\x74\xd0\xa5\x7e\xa8\x72\xc2\xbd\xee\x97\x14\xe0\xb6\x39\x06\xcd\xdf\xdc\x28\xb6\x77\x7d\x19\x32\x50\x00\xf8\xed\x52\x78\xec\x5d\x91\x2d\x10\x21\x09\x31\x9c\xba\x3b\x64\x69\xd4\x67\x29\x09\xb4\xf0\xdb\xee\xc0\xbb\xb6\x34\xb5\x51\xba\x0c\xf2\x13"; let q = b"\x84\x27\x52\x90\x44\xd2\x14\xc0\x75\x74\xf7\xb3\x59\xc2\xe0\x1c\x23\xfd\x97\x70\x1b\x32\x8a\xc8\xc1\x38\x5b\x81\xc5\x37\x38\x95"; let g = b"\x6f\xc2\x32\x41\x5c\x31\x20\x0c\xf5\x23\xaf\x34\x83\xf8\xe2\x6a\xce\x80\x8d\x2f\x1c\x6a\x8b\x86\x3a\xb0\x42\xcc\x7f\x6b\x71\x44\xb2\xd3\x94\x72\xc3\xcb\x4c\x76\x81\xd0\x73\x28\x43\x50\x3d\x8f\x85\x8c\xbe\x47\x6e\x67\x40\x32\x4a\xaa\x29\x59\x50\x10\x59\x78\xc3\x35\x06\x9b\x91\x9f\xf9\xa6\xff\x4b\x41\x05\x81\xb8\x07\x12\xfe\x5d\x3e\x04\xdd\xb4\xdf\xd2\x6d\x5e\x7f\xbc\xa2\xb0\xc5\x2d\x8d\x40\x43\x43\xd5\x7b\x2f\x9b\x2a\x26\xda\xa7\xec\xe3\x0c\xea\xb9\xe1\x78\x9f\x97\x51\xaa\xa9\x38\x70\x49\x96\x5a\xf3\x26\x50\xc6\xca\x5b\x37\x4a\x5a\xe7\x0b\x3f\x98\xe0\x53\xf5\x18\x57\xd6\xbb\xb1\x7a\x67\x0e\x6e\xaa\xf8\x98\x44\xd6\x41\xe1\xe1\x3d\x5a\x1b\x24\xd0\x53\xdc\x6b\x8f\xd1\x01\xc6\x24\x78\x69\x51\x92\x7e\x42\x63\x10\xab\xa9\x49\x8a\x00\x42\xb3\xdc\x7b\xbc\x59\xd7\x05\xf8\x0d\x9b\x80\x7d\xe4\x15\xf7\xe9\x4c\x5c\xf9\xd7\x89\x99\x2d\x3b\xb8\x33\x6d\x1d\x80\x8c\xb8\x6b\x56\xdd\xe0\x9d\x93\x4b\xb5\x27\x03\x39\x22\xde\x14\xbf\x30\x73\x76\xab\x7d\x22\xfb\xcd\x61\x6f\x9e\xda\x47\x9a\xb2\x14\xa1\x78\x50\xbd\xd0\x80\x2a\x87\x1c"; test::( b"\x8c\x78\xcf\xfd\xcf\x25\xd8\x23\x0b\x83\x5b\x30\x51\x26\x84\xc9\xb2\x52\x11\x58\x70\xb6\x03\xd1\xb4\xba\x2e\xb5\xd3\x5b\x33\xf2\x6d\x96\xb6\x84\x12\x6e\xc3\x4f\xff\x67\xdf\xe5\xc8\xc8\x56\xac\xfe\x3a\x9f\xf4\x5a\xe1\x1d\x41\x5f\x30\x44\x9b\xcd\xc3\xbf\x9a\x9f\xb5\xa7\xe4\x8a\xfe\xab\xa6\xd0\xb0\xfc\x9b\xce\x01\x97\xeb\x2b\xf7\xa8\x40\x24\x9d\x4e\x55\x0c\x5a\x25\xdc\x1c\x71\x37\x0e\x67\x93\x3e\xda\xd2\x36\x2f\xae\x6f\xad\x1e\xfb\xa5\xc0\x8d\xc1\x93\x1c\xa2\x84\x1b\x44\xb7\x8c\x0c\x63\xa1\x66\x5f\xfa\xc8\x60", p, q, g, b"\x5c\xa7\x15\x1b\xca\x0e\x45\x7b\xbc\x46\xf5\x9f\x71\xd8\x1a\xb1\x66\x88\xdc\x0e\xb7\xe4\xd1\x7b\x16\x6c\x33\x26\xc5\xb1\x2c\x5b\xde\xbb\x36\x13\x22\x4d\x1a\x75\x40\x23\xc5\x0b\x83\xcb\x5e\xcc\x13\x90\x96\xce\xf2\x89\x33\xb3\xb1\x2c\xa3\x10\x38\xe4\x08\x93\x83\x59\x7c\x59\xcc\x27\xb9\x02\xbe\x5d\xa6\x2c\xae\x7d\xa5\xf4\xaf\x90\xe9\x41\x0e\xd1\x60\x40\x82\xe2\xe3\x8e\x25\xeb\x0b\x78\xdf\xac\x0a\xeb\x2a\xd3\xb1\x9d\xc2\x35\x39\xd2\xbc\xd7\x55\xdb\x1c\xc6\xc9\x80\x5a\x7d\xd1\x09\xe1\xc9\x86\x67\xa5\xb9\xd5\x2b\x21\xc2\x77\x21\x21\xb8\xd0\xd2\xb2\x46\xe5\xfd\x3d\xa8\x07\x28\xe8\x5b\xbf\x0d\x70\x67\xd1\xc6\xba\xa6\x43\x94\xa2\x9e\x7f\xcb\xf8\x08\x42\xbd\x4a\xb0\x2b\x35\xd8\x3f\x59\x80\x5a\x10\x4e\x0b\xd6\x9d\x00\x79\xa0\x65\xf5\x9e\x3e\x6f\x21\x57\x3a\x00\xda\x99\x0b\x72\xea\x53\x7f\xa9\x8c\xaa\xa0\xa5\x88\x00\xa7\xe7\xa0\x62\x3e\x26\x3d\x4f\xca\x65\xeb\xb8\xed\xed\x46\xef\xdf\xe7\xdb\x92\xc9\xeb\xd3\x80\x62\xd8\xf1\x25\x34\xf0\x15\xb1\x86\x18\x6e\xe2\x36\x1d\x62\xc2\x4e\x4f\x22\xb3\xe9\x5d\xa0\xf9\x06\x2c\xe0\x4d", b"\x4f\xd8\xf2\x5c\x05\x90\x30\x02\x73\x81\xd4\x16\x7c\x31\x74\xb6\xbe\x00\x88\xc1\x5f\x0a\x57\x3d\x7e\xbd\x05\x96\x0f\x5a\x1e\xb2", b"\x5f\x56\x86\x9c\xee\x7b\xf6\x4f\xec\x5d\x5d\x6e\xa1\x5b\xb1\xfa\x11\x69\x00\x3a\x87\xec\xcc\x16\x21\xb9\x0a\x1b\x89\x22\x26\xf2", ); test::( b"\x02\xbb\x64\xd2\xd5\x03\x2f\x54\xf1\xac\x9e\x9e\xe1\x64\xdb\x83\xaf\x0c\xb0\x36\xd8\x8d\x41\xe9\xb2\x11\x8c\xfc\x39\xd1\xb4\xb4\xdc\x2c\x49\x75\x49\xc7\x98\x2c\xca\xcf\x66\x5d\x1b\x00\x11\x26\x82\x46\xc7\xc1\x7f\x56\x2e\xcb\xa2\x5e\x26\x54\x89\x87\x3e\x0d\xd9\x26\x8e\x9b\x06\x88\x0b\xa7\x4e\x74\xb5\x6f\x50\xc7\x32\x4d\x29\x37\x38\x53\xe3\xa0\xf3\xff\x78\x7e\xba\x4e\x5e\x7f\x94\x37\xf8\xec\x8a\x5e\x86\x83\x24\xe9\xc1\x7f\xb3\xd0\xe1\x2d\xe2\xd3\x1d\x43\x8c\x5b\xf3\x8b\x27\x16\x7d\x43\xae\x43\x11\xb1\x10\x62", p, q, g, b"\x11\xf3\xa7\x16\xfb\xda\x7a\xf3\x5b\xdb\x62\xd1\x28\xaf\x6f\x21\xec\x2e\xd4\x89\x6a\xa8\x1e\x87\x69\xc6\xee\xa9\xc2\x1c\x81\xae\xf2\x3a\xe0\xf5\x25\x26\x9d\xc4\x05\xac\xce\xf0\x98\x37\x7f\x65\x27\x30\x96\x8a\x33\xb5\x0f\x0a\x4c\x77\x84\x34\x52\x80\x65\x1c\xaa\x03\x4d\xf8\x73\x42\xca\x89\x73\xad\x86\xff\x7f\x0f\x87\x73\xa9\x4f\x95\xdd\x2b\xfa\x80\x2d\x26\x8d\xbf\x3a\x21\x03\xb1\x27\x6e\x06\xdb\x2d\x73\x43\x99\xf2\xab\x7b\xdc\xca\x09\x76\x16\xfc\x46\xed\x24\x78\xe5\x2c\xef\x04\x9d\x19\x44\x45\x86\xe7\xb7\x5d\x6a\x56\x74\x1d\xa2\x27\x0f\x54\xd2\xc7\x39\xec\x8d\xb9\x96\xc7\x1f\x06\xa3\x9a\xf2\x38\x3c\x61\x14\x99\xbe\x0f\xb3\x48\x09\xb1\x71\x25\x4e\xf2\x73\x51\x6c\x33\xe1\x7e\x14\x04\x8e\xf2\xd2\x1d\x60\x0a\xa1\x53\xbc\xf7\x37\x7f\xba\x94\x05\xc6\xb2\xe5\xf2\xaa\xf0\xf2\xf3\x46\x7d\x74\x61\xf6\x2e\x81\x4a\x2c\x46\x1e\x8a\xc9\xdb\x0d\xf3\x70\xe1\x8e\xc6\xee\xd8\x21\x2a\xca\xec\xf1\xe7\x24\x1b\xcb\xcb\xca\x67\x10\x60\xe5\x0c\x29\xf9\x66\xf1\xea\x1e\x92\xaf\x69\x03\xf8\x1c\x7a\xb9\xee\x09\xf6\x05\x77\xbf\x30\xc1\x86", b"\x7a\x5d\x20\x16\xaf\xe8\x78\x83\x49\x1b\xd6\xcd\x16\x6e\xdd\xdf\x13\x8c\x1c\x89\x96\x1e\x4a\xf6\x87\x6b\xe0\x8b\x0e\x06\xad\x74", b"\x34\xef\xbd\xa1\x84\x9d\xed\xd0\xd1\xaa\x77\x5d\xab\x2a\xa2\xb1\x4c\x9b\xa0\x20\x65\x92\xfb\xc3\x4e\xb4\x7b\x84\x46\x46\xad\xc2", ); test::( b"\x4f\x1c\x00\x53\x98\x4a\xb5\x5a\x49\x1f\x36\x18\xdb\x1b\xe2\x37\x91\x74\xa4\x38\x59\x74\x82\x5f\xcb\xe5\x84\xe2\xb6\xd0\x70\x2a\xbb\x82\x98\xdd\x91\x84\xee\xf1\x74\x0b\x90\xa5\xea\xe8\x50\xe9\x45\x2b\x4e\x4a\xb2\x19\xe1\x87\x86\x0f\x0f\xb4\xad\x2b\xe3\x90\xef\x2b\xa7\xd7\x6c\xde\xdc\xaf\x10\xae\xaf\x4f\x25\xe4\x97\xb4\xda\x95\x13\x75\xb6\x87\xa8\xd6\x70\x12\xd3\xf9\x9c\x7b\x5c\xa8\x2e\x9b\xd0\x63\x0d\xff\xcd\x63\x5e\xcd\x82\x09\xcd\xdb\x87\x2d\xa5\xbf\x47\x36\x30\x97\x83\x34\x5a\x35\x37\x6b\x4f\xce\x4b\x91", p, q, g, b"\x10\xe6\xf5\x0f\xd6\xdb\xb1\xca\x16\xf2\xdf\x51\x32\xa4\xa4\xea\xbc\x51\xda\x4a\x58\xfe\x61\x9b\x22\x25\xd7\xad\xab\x0c\xea\x3a\xfc\x2d\xb9\x0b\x15\x8b\x62\x31\xc8\xb0\x77\x4e\x0f\x0d\x90\x74\x51\x7f\x33\x6c\xa0\x53\xae\x11\x56\x71\xae\xe3\xc1\xde\x0f\x85\x72\x8c\xff\x99\xde\xeb\xc0\x7f\xfc\x9a\x63\x63\x19\x89\xa9\x27\x7e\x64\xc5\x4d\x9c\x25\xa7\xe7\x39\xae\x92\xf7\x06\xee\x23\x7b\x98\xb8\x70\x0a\x9d\xf0\xde\x12\xd2\x12\x4e\x2c\xfd\x81\xd9\xec\x7b\x04\x69\xee\x3a\x71\x8a\xb1\x53\x05\xde\x09\x9d\x9a\x2f\x8c\xec\xb7\x95\x27\xd0\x16\x44\x7c\x8f\x6f\xe4\x90\x5c\x37\x18\xce\x52\x34\xd1\x3b\xf4\xed\xd7\x16\x9b\x9d\x0d\xb9\xa6\xb0\xfc\x77\xb7\xd5\x3b\xdd\x32\xb0\x7d\xc1\x5b\xc8\x29\x62\x0d\xb0\x85\x11\x45\x81\x60\x8a\xc9\xe0\x93\x77\x52\x09\x59\x51\xd2\x89\x85\x5d\x0b\xcc\x9d\x42\x1b\x94\x5c\xc4\xf3\x7f\x80\xb0\xcb\x25\xf1\xff\xee\x9c\x61\xe5\x67\xf4\x9d\x21\xf8\x89\xec\xbc\x3f\x4e\xd3\x37\xbc\xa6\x66\xba\x3b\xa6\x84\x87\x4c\x88\x3f\xe2\x28\xac\x44\x95\x2a\x85\x13\xe1\x2d\x9f\x0c\x4e\xd4\x3c\x9b\x60\xf3\x52\x25\xb2", b"\x00\x6b\x75\x9f\xb7\x18\xc3\x4f\x1a\x6e\x51\x8f\x83\x40\x53\xb9\xf1\x82\x5d\xd3\xeb\x8d\x71\x94\x65\xc7\xbc\xc8\x30\x32\x2f\x4b", b"\x47\xfa\x59\x85\x2c\x9a\xe5\xe1\x81\x38\x1e\x34\x57\xa3\x3b\x25\x42\x00\x11\xd6\xf9\x11\xef\xa9\x0f\x3e\xac\xed\x1d\xee\x13\x29", ); test::( b"\x42\x19\x91\x86\x43\x4d\x6c\x55\xbc\xef\x26\x9b\xee\x68\x5c\x4e\x15\x80\xe2\x43\x02\x7e\xd1\x28\xca\x99\x49\x20\x33\xa5\x29\x54\xbd\x1c\xa8\xec\xc5\x04\x38\x20\x72\x5a\x3c\x0d\x71\xa1\x81\xa0\x5a\xab\xcb\x4e\xcd\xa7\x18\x0d\x86\x85\x5e\x7b\x4d\xfa\x9a\x44\xc7\xaf\x4c\x98\xfb\xf1\xf0\x62\x40\x58\x80\x4f\xd8\xea\xae\x49\x90\xd4\xd7\xbb\x75\xf0\x17\x41\xce\x36\xcf\xc9\xc1\x37\x25\x4c\xab\x06\x5a\x46\x17\xd0\xd0\xcd\x5f\x58\xea\x56\x86\x8a\x40\xf3\xe0\xba\xf7\xdb\x5d\x25\x57\xf4\xb9\x77\x5c\x18\x20\xdc\x1d\x41", p, q, g, b"\x63\x64\xa3\x5a\xe9\x94\xf2\x77\x03\x31\x9c\x36\xd9\x07\x93\xc8\xf2\x65\x11\x84\x6b\xa0\x60\x38\x99\x5b\x65\x56\xe4\x44\x3a\xa6\x1e\xb0\xf8\xef\xcc\x3d\x47\xf7\xc5\xf8\x52\x76\xea\x92\x1d\xa0\x78\x4a\x67\x99\x82\x53\xc9\x92\x97\x5f\x9e\x13\x84\x7c\xca\xd0\x99\xd9\xc1\xe5\xc9\x4c\xfb\x19\x54\x88\xe1\x29\x3e\x23\xb7\x4d\xb0\x06\x03\xe8\xbd\x68\x14\xc9\x46\x90\xbf\x0c\xcc\xc1\xc0\xe4\x7f\x0c\x66\x09\xa4\x8e\x14\x45\x87\xec\xe1\x78\xf7\x2c\x85\x14\xa4\x35\x90\xbc\x4c\x21\x9d\xa9\x5c\xbe\x89\x66\xf4\x40\x4f\xe9\xc2\x88\xf2\x3c\xd0\xf9\x73\xe7\x7e\xc8\x4b\x4b\x0f\x16\x3b\x50\xa3\xc5\x56\xcd\x1d\x39\x51\xfa\xeb\xd9\x82\xaf\x44\x44\x7e\x60\xd7\x83\x4b\x93\xb6\xd9\xc3\xff\x09\x61\xfc\xcb\x90\x83\x12\xa2\x43\x76\xee\xdc\x50\x8f\x80\x66\x68\xd6\x61\x7b\x77\x49\x1a\x01\xd5\xd0\x69\xd6\xcc\xd5\xf2\x1b\x5e\xb3\xc3\xa3\xd4\xa0\x47\x95\x93\x84\x5c\x72\xf7\x20\x15\x7b\x18\x8d\x2d\xfa\xe4\x40\x1c\x57\xa6\x00\xb1\x42\xb6\xbd\xe2\xa6\x9f\x1a\x0a\xfb\xa2\xf5\x07\xa6\x3c\xd6\xdf\x05\x6b\xb5\xb3\x4f\xdf\xce\xe0\x12\xd3\x41\xb3\xf1", b"\x25\x51\xd4\xf8\x55\x17\x4f\x7b\x28\xa7\x82\xb8\x96\x97\xd4\x8f\xbc\x31\x4c\xfe\xb1\x7e\xc4\xc9\x90\x2a\x8e\x55\x7c\xc6\xf6\xb9", b"\x27\x8b\x78\x6f\x9e\x28\xee\xcc\xd0\x05\x86\xb4\x45\xe7\x5f\x48\xcf\x26\x49\xf3\xf1\xb7\xbf\xf7\x2b\x0e\x76\x7f\x34\x43\xdc\x58", ); test::( b"\x4f\xdd\x88\x87\x56\xac\x68\xf4\xc2\x9c\xd5\xb1\xde\x42\x75\x67\x94\x57\x0c\xa8\xf1\x8f\xf7\x95\xf6\xf0\xfc\x85\x67\x72\xb6\xa2\x18\x9b\x5e\xd4\xa9\xb7\x54\x73\x28\x07\x5b\x56\xc2\x8d\xdf\x50\xb8\x4c\x27\x20\x5c\xee\x57\xb2\x9d\x0b\x38\x79\x70\xe8\x9a\x6a\x22\x36\x29\x3b\xbc\x9e\x39\x90\x13\xd1\xdd\x3b\xd5\xa1\x0a\xb0\xd2\x59\xf7\xfd\xa7\x04\xf7\x1c\xbe\x3b\x8b\x87\x52\x80\x6a\x0c\x84\x66\x8d\x85\xe4\xd7\x39\xce\xc6\x28\xdf\xf6\x33\x71\xd2\x4a\x4b\x14\x13\x73\x82\x75\x9b\xa4\x00\xdf\x0e\x2c\x25\x94\x7d\x18", p, q, g, b"\x5b\x61\x98\x45\xba\x96\x9f\x1c\xa5\x96\x3f\xcf\x04\xc0\x3a\xa4\x0e\x98\x92\x22\x77\x4e\x95\x7a\x54\x19\x1a\xcf\x9d\xdc\x40\x7a\x54\xa1\x61\xe2\x2a\x5a\xc5\x0c\xa5\xd6\x1e\x66\x01\xcc\x79\x95\xbf\x0d\xb3\x8f\xf0\xfa\x1f\x77\xb2\x44\xfe\x98\x14\x8c\x81\xf2\x08\xdc\xa2\x9f\xfa\x30\xf1\x13\x1c\x76\xdb\xbe\x43\x03\x42\x5e\x91\x80\xb4\xa4\x8f\x22\xc7\x57\xed\x8e\x38\x8b\x61\xbd\xc6\xd5\x55\x19\x52\x3d\x00\xc3\x1a\x5f\x83\x76\x64\x0d\x46\x88\xe6\x0d\xcc\x17\x2d\xee\xce\x73\xde\x28\x43\x7e\x90\x0c\xb1\x9a\x53\x11\xa0\xc9\xca\x9a\xf6\xcc\x6e\xeb\x68\x44\xe9\xb8\x35\x9e\x3e\xf1\xcb\xe0\x37\x84\x10\x7d\x2d\x0a\xeb\xec\x7c\x1d\x70\xd9\x38\x5a\x4d\x2b\x80\x33\x85\x1f\x5d\x5b\x7a\xa1\x8e\xf5\x70\xaa\x03\x7f\xcb\xd3\xe3\x0f\x2f\xc2\x01\x3f\xfb\xfa\x07\x87\xbe\x6d\x59\xff\xa1\x61\x6e\xed\x5e\x12\x1e\xe4\xdb\xee\x04\xa9\xed\xe0\x04\x95\x60\x75\x46\x5a\x76\x88\x70\x1e\x04\xec\x9b\x21\x53\xf5\x2c\xaf\xbf\xf7\xff\x92\x26\xe6\x93\x97\xc7\x08\x3c\x3a\xa5\x36\xd7\x10\x9e\xe4\x30\xa6\x54\x48\xb1\x0c\x18\x18\xc7\x05\x10\xa3\x39\xc1", b"\x4b\x90\x99\x3d\x70\x7f\x33\x71\xd0\xa0\xcc\x87\x25\x5e\x99\xa8\xfb\xa1\x8c\x3b\x58\xdd\xdd\xc1\x06\x7c\xd3\x94\x17\x23\x66\xcc", b"\x4b\x26\x12\xd5\x06\xfb\x85\xe5\xaf\xf9\xfc\xd5\x6c\x09\xbd\x12\xbf\x60\xf7\x8a\xb7\xdf\xd0\x21\xa7\x42\xff\x85\xdc\x50\x7a\xe2", ); test::( b"\x85\x07\xdb\x5f\x1d\xf9\xd2\x2f\x44\x7c\x20\xe4\x32\x0f\x90\xd9\xb3\x07\x22\x19\x71\x96\xd1\xa2\x41\x8d\x06\xdc\xa4\x1b\x33\x05\xf6\xfb\xe5\x2a\xb5\x8c\xc0\xb6\x0e\xf1\xa1\xd2\x57\xfc\x2f\xb2\x06\x2f\xe6\xc5\xf2\xa2\x5f\x02\x93\xca\x39\xd0\xc0\x83\xcf\xd5\xe4\xbd\xad\xf2\x16\x9a\xd4\xed\x17\x8c\x88\xec\xb5\x55\x4f\xfa\x2b\x53\xaa\x43\x98\x11\x5c\xde\x62\x7d\x30\x14\x4a\xce\x93\x25\xb2\xd7\x9d\x7d\xce\x95\x15\x09\xd7\x34\xaf\xb0\xff\x6d\x92\x65\xb9\x02\x67\x2e\xb5\x88\x4e\x9d\x8a\xcf\xf0\xea\x22\xc7\x69\x38", p, q, g, b"\x43\x88\x31\xcb\x0e\xb0\x9a\xab\x24\x27\x54\x54\x35\x4c\xe4\x2b\x9a\x2e\xed\xb3\x1f\x42\x12\x19\xde\xf7\x46\x87\xe6\xf9\xc9\x2f\x0b\x19\x82\x35\x5c\xad\xb2\x6e\x09\x5b\x7c\xa2\x5d\xe5\x30\xaa\xba\x63\xe6\x4f\xc2\x3a\xcc\x3d\x1d\x1f\x1b\x70\xcb\x72\x61\x56\xca\x0a\x79\x9b\x59\x09\x4b\xcc\x3b\x89\x98\xa4\xae\x77\x44\xd2\x15\xd6\x3b\x88\x70\x82\xf4\xc8\x41\x28\xe7\x4b\x9b\x99\x99\xc6\x0c\xad\x3b\xc6\xbb\x6f\x72\x72\x84\xb4\x31\x1a\x92\x9b\xbd\x96\x4c\x9a\x70\x74\xe8\x60\x62\x22\x4d\xce\xdb\x58\xb9\xb5\x98\x54\x6a\xc9\x5b\x3b\x43\x4e\xa1\x14\xab\x0d\x67\x85\x41\xd6\xca\xec\x0c\x56\x00\x9b\xc3\x47\xa4\x25\xf1\x67\xcd\x32\xa3\x4e\xec\xb7\x19\x24\x24\xd5\x7b\x0e\x54\xb4\xa9\xe8\x2f\x42\x51\x38\x70\x3c\xe8\x9b\x18\x90\x39\xe9\x2a\x77\x0b\x51\x49\x7f\x8f\x10\xea\xe9\xc3\x45\x9e\xd8\x7e\x51\x01\xf5\xab\x1b\x62\x71\x48\x5f\xdb\x2d\xd3\xdb\xc4\x21\x7f\xcf\x67\xc7\xe9\x2d\x00\x96\xdc\x7d\xa9\x72\x7f\x5a\x43\x4b\x75\x45\x28\x4c\xd8\xa2\x83\x07\x0b\x5a\x49\xd7\x11\xdf\xfa\x85\x90\x43\x11\xe0\x34\x5a\x99\x14\x7a\x16\x8e\xa0", b"\x1d\x27\x81\xf5\xf9\xd0\x8a\xb2\xfe\xb1\x68\x39\x42\xc2\xc2\x9a\x66\x31\x88\x39\xa7\xdf\xef\x9a\xee\x9c\xd7\xa8\x9e\xfe\x2a\xb0", b"\x3a\xdc\x7b\xe9\x68\x50\x2e\xad\x10\xfe\xec\x19\x1e\x21\x2e\xa0\xe0\x7d\x44\x90\x06\xe7\xf2\x2d\xdf\x86\x9a\x9f\xae\x71\x18\x34", ); test::( b"\xc7\x84\x49\x60\x96\x65\x84\xc8\xe3\xa5\x9d\xc3\x7d\xf3\x7b\x7e\xb3\xad\x33\x31\x48\xa3\x2b\x86\xc1\xec\x18\x07\x2f\x3b\x31\x6c\x59\xcd\xef\x98\xba\x4d\xc4\x6f\x53\x2a\x42\x80\x20\x0c\x22\x5f\xac\x6c\xd1\xad\xf0\xa4\x53\x82\xc2\xd8\x80\x54\xe4\x47\x74\x04\x54\x97\x6e\x52\x72\x33\x0c\x74\x87\xeb\x42\xa0\x95\xf7\x31\x41\x39\x93\x8c\x74\x19\x19\x3b\x1c\x12\x80\x54\xc1\xbb\xf1\x0d\x06\x34\xe2\x2c\x6e\x02\xd8\xe1\x22\x79\xca\xc0\xbf\xa0\x1d\x30\x58\xe0\xf8\xd5\x54\x7b\xa0\xf7\x15\x29\xc2\x7e\x00\x84\xd4\xbd\xe7", p, q, g, b"\x2d\xe9\xd2\x7f\x1a\x03\x01\x99\xff\xbb\xa7\x70\xe0\x8a\xeb\x1f\xf3\x70\x8e\xdf\x8e\xbb\x3a\x8e\x66\x4e\x3b\xd1\x51\x1d\xb1\x26\xed\x87\xbc\x44\xc2\xd2\xaf\x40\xb9\xd5\x12\xc5\x0a\x4d\x6c\x10\xb2\x3e\x3c\xa6\x18\x19\xf5\x84\x1c\xbf\x5d\x0b\xd6\xc8\x8d\x46\xf1\xac\x64\x74\xec\x20\xb9\x10\x0b\x32\x8c\xc1\x55\x87\x91\x66\xf4\x6b\x6d\x71\x14\x0b\x0c\xfb\x2b\x07\x25\xb6\x4a\x38\xd7\x0a\x91\xca\x8f\x0e\x3b\xae\xec\x61\x25\x26\x2c\x52\xa9\x5d\x5c\xa5\xd5\xff\x6f\x44\x82\xb1\x82\x50\x06\xcd\x46\x9f\x9e\x7f\x31\x76\x9a\x73\xed\xdb\x5f\x70\x17\xf1\x8b\xc7\x47\xae\x4f\xce\x45\x0c\x42\x74\xf4\xab\xb9\x60\x57\x7d\x13\xb6\xa7\x7d\xd9\x9e\x67\xd1\x1e\xdb\x41\x3e\x42\x8e\x50\x72\x6f\x70\x52\xe5\x35\x65\xfa\x1d\x6f\xde\x91\x85\x95\x73\xc9\x28\x92\x89\xff\xef\x05\x98\x80\x28\x08\xec\xc5\x50\x1c\xb3\x00\xe0\x64\x05\xed\x0f\xeb\xc3\xdf\x23\xf4\x0a\x1f\x65\x32\x41\x0f\x7d\x90\x49\xb9\x20\x21\x6f\x7d\x5c\x7a\x72\x8c\x8d\xd6\x3a\x8d\x00\x60\xfb\x53\xb3\x54\x3d\x62\xa6\x36\x66\x17\x50\xfd\x43\x77\x5e\x80\xb5\x09\x00\x43\x51\x47\x5f", b"\x09\xe6\x54\xb1\x7a\xb7\x75\x95\x96\x28\xe7\xca\xd0\xe2\x70\x53\xee\x49\x5b\xcc\x29\xcc\x2a\x5e\x3b\x02\x96\x60\xa7\x7b\x13\x30", b"\x26\x1a\xd4\x1d\x6b\xce\x6d\x04\xd8\x91\xa4\x3c\x16\xec\x2a\x81\x14\xe5\x1f\x0e\x47\xb4\x8b\x1d\xd1\xf3\xd6\x26\x15\x03\x38\xfb", ); test::( b"\x6f\x3f\x74\x38\x8c\xc9\x0b\x29\xc1\x09\xec\xbd\xa0\x8c\x79\x34\x9d\xff\xde\xb9\x07\x22\x97\x4d\x79\xd6\x40\x62\x09\x49\x44\x8f\x66\xae\x67\x3e\xaf\x4d\x4a\xf8\xc4\x3d\xa6\x73\xa4\x5e\xd1\x52\xea\x66\xfc\x97\x16\x6b\xaa\x7c\xe8\xbe\xb6\x66\xbd\x57\xca\x43\xda\x68\x01\xc0\xee\x5a\x5a\x9b\x50\xc5\x04\x79\x35\xd7\xa8\x55\x2c\x38\x1d\x93\xea\xf0\x3c\xbb\xbb\x88\xed\x0d\x3b\x5a\x25\x21\xb6\x76\x12\xa4\x40\x51\x20\xef\x02\x05\xe8\x9a\xeb\x48\xd5\x77\xbc\xda\x3a\xd2\x0e\x0a\x7c\xd0\x7f\x8c\x9b\x21\x5c\x84\x5d\xd8", p, q, g, b"\x08\x0c\xa4\x12\xbd\x19\x7c\x5a\xaf\xa2\xc6\xdf\x59\x33\xa6\x21\x0f\xa5\x40\x89\x82\x68\x28\xd5\x49\x6b\x45\x36\x09\xa5\x6b\x7d\x55\xd2\x32\xfb\xe6\x50\xdd\x9f\x62\xc0\x5c\x05\x0c\x02\x6a\x87\x17\xa7\x8b\x5d\xb0\x16\x14\xa1\x93\x01\xc6\x10\xd2\xb9\x96\x4a\x7e\x33\x57\xc7\x22\xa4\xc5\x53\x27\x3b\xf2\x7f\x87\x1b\x4b\x92\x41\x67\x8c\x33\x4e\x20\x82\x7a\x5f\x51\x1f\xe9\x31\x9a\x07\x5d\x12\x75\x3a\xc0\x96\x0d\xf6\x08\x70\xa0\x8a\x12\xf0\x9b\x9d\x35\x93\x78\x17\x81\xa0\xcd\x75\xe9\xd8\x1c\xc6\xb9\xb0\xd5\x06\xd1\x00\xfe\x97\x21\x65\xb6\x82\x97\xe6\x07\x0d\xb2\xd8\xb6\xea\x32\x17\x6d\x15\x62\x08\x4f\x6a\x06\xe0\x8e\x29\x29\x15\x5b\x25\x5d\x33\x85\x3d\xe6\x54\x9e\x79\xf8\xb5\x60\x49\xa1\xd0\x2f\x29\x16\x6d\x5f\x91\xcf\xbd\xe5\xaa\xf6\xbc\xae\x56\xf5\xd2\xd9\x0a\x9b\x4e\x8f\x6f\x45\x00\x80\xca\xe8\x25\x6c\x66\x19\xe9\x15\x55\x23\xc2\xb2\x05\x22\x55\xa8\xf6\xd9\xf5\x3d\x8a\x89\x7b\xe5\xb0\x47\x60\x02\x41\x0b\xf7\x98\x25\x6f\x62\xbb\x1a\x81\x82\x7c\x2c\x3f\xc4\xec\xf9\xab\xfd\x77\xe7\x41\x74\x78\x73\x70\x86\x4f\x05\xf9", b"\x43\x99\x3b\x68\xe8\x47\xf6\xba\x61\xd5\xad\x4d\xc8\xf5\xad\x70\xda\xbc\x31\x7a\x7b\x68\x11\xc2\x3e\x7f\x21\x5f\x95\x41\x5e\xd5", b"\x1e\xa7\x27\xaf\xdb\x90\x7d\x1d\x5b\x23\x37\xc1\xec\xea\x46\xc7\x1e\xb0\xfc\x83\x63\xaf\x23\x86\x5a\x34\x52\x02\xa7\x62\xa7\xc5", ); test::( b"\x74\xa4\x33\xc2\xd3\x13\xf6\x62\x32\x32\x4d\xf8\x75\xb8\x25\x63\x80\x5d\x7e\xd6\x82\xb2\x66\xea\xf9\x62\x37\x5e\x42\x2b\x3a\xbb\xfe\x3d\xce\x7f\x3c\x19\x60\xa1\xe4\x10\x0f\x33\x3e\x16\x8d\x02\x19\x68\xb4\x83\x97\xe8\xcc\xe9\x00\x5e\x95\x1f\xdc\xb0\x96\xa9\xab\xea\x34\x2c\xb5\xb0\x8b\xab\x79\xef\x0c\x43\x1d\xd3\xa4\x3d\xe7\xd5\xbd\x6b\x86\xbe\xa8\x87\x2b\xa0\x38\xb4\x3a\x23\x6a\x73\x56\xb0\x3f\x89\xb0\x90\x04\xba\x2d\xef\x66\x3e\x6d\x29\x97\x63\xb6\xca\xfc\xb6\xb1\x50\xa5\x7f\x82\xb8\x90\xff\x6d\x56\xf8\x32", p, q, g, b"\x44\x4f\xaf\xab\x58\xdb\x4d\x6f\x52\x83\xc3\x44\x3d\x64\x78\xb5\xb7\x8d\xaa\x63\x1b\xd4\xc3\xd9\xa2\x8e\xd1\x72\x81\xda\x4c\x1c\x2e\xf4\xd5\xed\x57\x6d\x66\xbf\xe5\x31\x4e\x11\xfe\x68\xab\xff\xe4\xdf\x40\x6f\x60\x33\xed\xb8\x4f\x36\xa3\x8a\x3c\xe6\x14\x60\x1b\xc2\x58\x41\xf9\x41\x9a\xfb\x28\x67\xd9\x91\xe8\x7b\x44\xc4\xb7\x44\xe3\x9b\x64\x07\x9d\x9a\xad\x4b\x58\x5d\x79\xc8\xe2\x1c\x8f\x90\x99\x05\x40\xfe\xc8\xae\x98\x1f\x74\x83\xdc\x55\x23\xd2\x16\x08\x8a\x55\xcf\x23\x80\xea\x8e\xb5\x24\x67\x81\x29\x05\x59\xea\x1b\x20\x8a\xd4\xd0\xf5\x87\x1c\xb4\xd1\x3c\xdc\xa6\xef\x34\xfd\xf2\xde\x63\xe2\x09\xaa\x32\x0c\xdf\x14\x18\x5b\x8f\x5f\x60\xcc\xf9\x3f\x39\x8c\x1a\x6c\xf8\xb3\xce\x3d\x98\xda\xf0\x5e\x4c\xf9\x0c\x39\x80\x1c\xe3\x5f\x01\xec\x76\xa9\xf6\x03\x5c\xe1\xb5\xba\x10\x7a\x5f\x66\xcf\x25\x3b\x71\xfb\xa3\x83\x3e\x99\x69\xc3\x14\xeb\x6d\x50\x00\x05\x74\x92\x31\xf7\x99\xb0\xc7\x9a\x55\x5a\x10\xcd\xd6\x9f\x8e\xec\x4c\x11\x7d\x7c\x8b\x4e\xc6\xf6\x0a\x1e\xe5\x57\xb7\x0c\x0d\xea\x38\x0a\xf5\x3b\x92\xfd\xde\x88\x23\xca", b"\x3b\xda\x5b\x0c\x9e\x3d\xa2\x2f\x0b\x3e\x29\x35\x6a\x2f\x7d\xda\xce\x6e\x9b\x24\xa0\x63\xeb\x3f\x5a\x7d\x75\x5f\x2e\xea\xff\xb5", b"\x4c\xbb\x81\x53\x20\x31\x4a\x06\x53\x8d\x2a\x67\x40\xe6\xbf\x9d\x02\x2e\xac\x9a\xa2\x5c\x75\x08\xf6\x59\xf0\xf7\xc1\xf5\x9c\x45", ); test::( b"\xf4\xea\xdf\xea\x11\x7f\xd3\xd6\x70\xce\xa2\x8a\xa9\xd2\x60\x2c\x95\x1e\xd8\x43\xe2\xe8\xcb\x28\x64\x07\x4c\x8c\x9b\xcc\xb0\x60\x6c\xed\x83\xae\x29\x80\x59\x8c\xc3\xe1\xb0\x47\xfc\xa8\x65\x91\x27\x40\x6d\x8f\x59\xf5\xb7\xbb\xfe\x8e\xce\x6d\x3e\x42\xf8\x7f\x4e\x42\xeb\xe9\x2a\xda\xa1\xe6\xe9\x2c\xed\x3d\xca\xcc\x2e\x0b\x2c\x98\xea\xde\x7c\x9c\x99\xda\x88\x7e\x74\xdb\x5a\x59\x13\x2c\x1d\x7d\xf7\xcd\xe8\x66\xcb\x2f\x3c\xa7\x50\x85\x2b\xa5\x3e\x26\x5e\x62\xbf\x7a\x93\xfd\x69\x3e\x4a\x13\x75\x1e\x18\x6e\x9d\x6b", p, q, g, b"\x10\x4f\x44\xfd\x76\x69\x60\x76\x44\xec\x55\xe6\xca\x40\x96\xc9\xa2\x79\x47\x27\x52\xa1\x75\x3d\xbb\x9f\x2a\x69\x41\xb8\x12\x22\x74\xc8\x7d\x16\xf6\x3d\x75\xdd\xa9\xeb\xcf\xd6\x58\x4b\x0c\xb3\x74\xfd\x17\x58\x13\x53\xd2\xa2\x46\xec\x0b\x37\x8d\xe6\x0e\x96\x13\x13\x16\x83\xc0\x56\x8b\xb5\x4d\x74\x45\x7a\xd7\x3d\xe8\x59\xa4\xf0\x24\x45\x34\x4d\x13\xee\x92\x8f\x3c\xda\x51\x34\x20\x2a\x93\x88\xe6\x4c\xf0\x5f\x81\x90\x04\x9d\xf4\xe7\x77\x70\x98\x38\xd0\xc9\xd3\xbc\xb3\x7e\xec\xdc\x38\xc1\xa5\xd2\xb4\x71\xc4\xb9\x10\xcf\xaa\x9a\x9b\xa8\x1f\x69\xb4\xb4\x5c\x40\x34\x40\x29\x95\x8f\xa4\x00\x00\xe5\x68\x81\xbc\x6a\x14\x86\x43\x30\xd5\xb3\x51\xc1\x61\x20\x86\x76\xcb\x85\x2b\xf4\x79\x70\x26\x8d\x37\xd4\xbf\xe9\x7b\x3b\x26\xef\x5b\x78\x5f\x50\xeb\xc8\xc4\x79\x49\xdc\x9b\xd0\xb2\xe6\x73\xfb\x04\x0e\x26\x78\x9f\x3f\x5c\xdb\xce\x8e\x4b\x78\x38\x99\x92\xbb\x83\xee\xb2\xb0\x63\xe9\xe1\xdb\x06\xa9\xed\xe9\x33\xfa\xef\x7e\x63\x5e\xff\xe5\xe1\xb1\xe2\x11\x53\xdc\x69\x34\x19\x7e\xfa\x1f\xd6\x8f\x18\xa4\x0e\xd5\x69\x74\x6c\x83\x74", b"\x36\xc0\x86\x07\x03\x68\x26\x5f\x73\x6e\x7b\xba\xd5\x4a\xaf\x24\x82\xd2\x61\x61\xf8\x05\x7a\x97\xa4\xb8\xcd\x2b\x4d\xdd\x78\x55", b"\x31\xd9\x9d\x73\x6e\xa6\x70\x14\xfe\x59\xcb\x22\x12\xc4\x7e\xb9\x20\xf2\xaf\x44\xe3\x2b\x65\xdb\x15\xaf\x83\xcb\xe8\xe6\xaa\x70", ); test::( b"\xcb\xc3\x7a\xfc\x75\x17\x7a\x83\x86\xdc\xe2\xc4\x0c\x33\xb8\xf5\xde\xdc\x23\x11\x3b\x45\x12\xcb\x96\x79\x0f\x2d\xd7\x40\x66\x10\x3e\x0c\x45\xa9\xc6\x17\x6f\xf9\x6b\x7d\x71\x91\x62\x00\x3c\xee\x10\xfa\xd6\xcc\xc1\x98\x55\x0a\x38\x92\x75\xd2\x1e\x70\x8b\x69\x61\x52\x32\x72\xec\xd5\xef\xab\x56\x80\xed\x74\x1c\x2d\xe0\x25\xb0\x2b\xbd\xc5\x63\x15\xa4\x42\xe4\x37\xc4\x3e\x3b\x37\x8e\x6d\x62\xea\x88\x78\xfd\x97\x89\x85\x8a\x8c\x68\xa5\x04\xbf\xf4\x95\x16\xe7\x62\xa2\x2a\xe5\x13\xa2\xdc\xeb\xa9\x25\x3b\x36\xf5\x53", p, q, g, b"\x35\x6c\xc7\x37\x0c\x84\x0f\xa2\x6b\x0d\x10\x6c\x47\xa6\x26\xe0\x28\xa0\xc9\x67\xc0\x93\x81\x0b\x52\x06\x39\xbd\xda\x0d\x33\x9b\x7f\xc2\x9a\xdc\x0d\x90\x36\xb9\x71\x03\x58\xef\x9f\x8c\x6c\x05\x25\x2b\x27\x82\x81\xb2\xaf\xe7\x95\x38\x86\x42\x9e\x85\xd2\x28\xfb\x54\x74\xac\xfd\x65\x21\x31\x51\xe9\xda\x0a\xef\x86\xa6\x6f\x9f\x9c\x59\xfa\x88\xfd\x48\xcc\x3a\xdd\xc8\x3d\x7a\xdf\x4a\xfb\x16\x65\x04\x9e\xd0\x94\x02\x02\x19\xc0\x19\x58\xb6\x97\xf2\x2e\x65\x21\x52\xe5\x3b\xf4\xe8\xf6\x8f\x47\x6a\x58\x18\x1d\xdd\x3f\x64\x34\x4e\x9b\x87\xa0\x8c\x5d\x0d\xe4\x9e\x7b\x3c\x29\x95\x84\x0c\x20\x00\x84\xe9\x0a\x76\xd2\xc0\x5f\x8b\x5c\x68\xe7\x71\x92\xd0\x67\x6b\x42\x19\xd4\x57\x9c\xb2\xde\x0f\x2a\x93\xa9\x16\xb4\xf9\xcf\xe0\xd8\x11\x3d\xc4\xbb\xd9\x7e\xd1\x2d\x8c\xe0\x44\x7f\xcf\x9d\xf1\x2e\x92\x2c\x63\x83\xca\x69\xc9\xde\x9a\xd3\x20\xf9\xc5\x33\x1a\xdb\x6e\xb1\xd2\x23\x07\x91\x96\xa2\x93\x9c\xc0\xa7\x25\x9c\x51\x2c\x47\x8c\x94\x3f\xe0\x57\x36\x71\x0e\x27\x3e\x4b\x58\x67\x17\x4d\xe7\x2e\x70\x3b\x5e\x7b\xf7\xaf\xdb\xc0\x64\x27", b"\x56\x45\xef\x65\xe8\xe9\x23\x6d\x87\x4d\x45\x9e\x7a\x58\x09\x92\x3c\x05\xd6\x4b\x22\x75\x7b\xfc\x5b\x56\x21\x07\x9e\x84\x81\x9c", b"\x65\xf4\xc8\xfe\xba\xf3\xe9\xd4\x65\x81\xb1\x76\x85\xc4\xf2\xec\x9b\x95\x64\x21\xd0\x34\xa2\xc1\xaa\xab\xee\x94\xb7\x87\xa4\xf1", ); test::( b"\x8e\xb3\x68\x5c\x3f\x40\x6c\x56\x15\xe8\x8a\xcc\xf4\xc0\xc7\xd2\x07\x1b\x6c\x7b\xde\x52\x44\x99\x4f\x73\xdc\x04\xf3\xcc\x0a\xb7\xe2\xb6\x66\x4a\x19\x94\xe6\xee\xc5\x2b\x62\x79\x0a\x04\x32\x8e\x43\x6a\x2b\x4a\xf3\xcb\xe3\xba\x6e\x4c\x8f\x36\x3a\x39\xb2\x52\x9e\xf5\x54\xc0\xc6\x27\xf9\xf6\xb2\x55\x92\x8a\x39\xa4\x65\xe6\x0a\xc5\x0c\xcf\x01\xf3\x2c\x7b\xa4\x83\x64\x03\x44\xb6\xa8\xf5\x83\xc9\x08\x76\xb8\x4d\x19\x55\x4b\x0a\x4b\xaa\xbc\x2c\x24\x0e\x29\x6b\x12\xc8\x19\x41\x0c\xac\xff\xe7\xa7\x46\x44\x19\xbe\xe0", p, q, g, b"\x94\xba\x48\x69\x77\xf5\x98\x2f\x2a\xe7\x5e\x98\x6b\x7e\x19\x44\x61\xcc\x3d\x65\xcd\xbf\x26\xf9\x36\x80\x5d\x12\xd7\xf8\x50\xaa\xd7\x58\x02\x06\xd7\xdc\x54\x4c\xd1\x2c\xa1\x89\x1c\x9d\xc4\x06\xc9\x49\xe5\x2b\x9f\xeb\xfa\x88\x83\x6f\x15\x66\xd5\x21\xa1\x10\xbb\x54\x5e\x07\xba\x28\xca\xf0\x7e\x1b\xbf\xa3\xb1\x76\xcc\x91\x7c\xc4\xbb\x45\xda\xe7\xf8\x73\xb7\x2d\xfa\x90\x00\xe9\xab\x60\x83\xe7\x05\xc0\x16\x7d\x85\x3d\xda\x11\x4c\x42\x9f\xd8\x12\xa0\x59\x61\xfc\x2e\x78\xba\x9e\x68\xcc\xdb\x9d\xc6\x7b\x11\x6f\x10\x53\x20\x34\xd9\xf0\xf7\xd3\x99\x01\xdc\x64\x31\x27\xc4\x30\x90\x58\xf8\xeb\xf4\x3b\x28\xa5\xce\x53\x4e\x29\xd6\x22\x7c\x4e\xc2\x7c\xcf\x77\x7b\x00\x08\xdf\x5c\xe8\xb8\xa1\x9b\x57\x71\x72\x5c\xb0\xf9\xf2\xa6\x2b\xb4\x1f\x01\x06\xc3\x90\x80\x3a\x30\x7c\x60\xac\xbe\xd6\xc2\xe1\xe0\xdb\x50\x36\xe0\xe7\x9d\xdc\xc3\xf7\x18\xb2\x9c\xa5\xaa\x02\x2f\x2f\x0b\xbe\x81\x5f\x9c\x0e\xb5\x04\xfc\x9f\xf8\xd1\x8a\x2d\xa9\x99\x02\x3a\xf8\x10\x5c\xdd\xfc\x67\x94\xdf\xdc\xc4\x13\x33\xbc\xcd\x44\x6a\xd7\xb8\x2a\x0a\x7b\xfe\x38", b"\x27\xb4\xe3\xc3\xa4\x5e\xfa\x61\x31\xc3\xd0\x05\xca\x92\x4d\xff\x11\xfd\xcc\xf4\x09\xc2\xa6\x99\x3f\xcb\x50\x54\x77\xb6\xe4\x00", b"\x68\xa0\x85\xbd\x13\x0c\x4e\xc0\x8a\xa9\x67\x3c\x49\x5b\xa5\xaf\xd4\x6c\x9d\xda\xd2\x05\x2b\xa7\xab\x39\x63\x29\xd9\x00\xd8\x6c", ); test::( b"\xf2\xb0\x2a\xc6\x27\xb3\xf6\x6b\xaf\x4e\xba\xa5\x2b\x89\x9a\xdf\xd7\x07\x1a\xf5\x3e\x78\x92\x31\x82\xd8\xb4\xd5\xf3\xa9\x47\x42\x51\x30\x8b\x4d\xbd\x15\xfb\x6b\x65\x7b\xe6\x50\x28\xa1\x89\x35\x39\x12\xd7\xc1\x6d\x6d\x49\x89\x98\x5c\x15\xce\xdc\x43\x43\xf0\xce\xb6\x80\x61\x7b\xc7\x27\x85\x11\xf9\x06\x8a\xbd\x61\x37\x18\xa8\x62\x51\x3e\xe5\x14\xfd\xf8\x0c\xd2\x5b\x6f\x84\xc4\x88\x51\xe6\xa7\x85\x0f\xea\xea\x57\xea\x20\xde\xb1\x12\x3c\xa4\x20\x6b\xde\x8a\x93\xff\x99\x9e\xf7\x89\x58\x3e\x2c\x85\x0d\x9e\x06\x35", p, q, g, b"\x4e\x16\x0d\x69\x70\x68\x3f\x4d\x84\xeb\x88\xc5\x5b\xa2\xda\x58\xd7\x7f\x63\x74\xfc\x51\x27\x27\x3d\x65\xe8\xef\x96\xcc\xff\xf5\x1d\xf6\x9b\x0e\x2f\xdf\x3e\x98\xf6\xd3\x5e\x6a\x3d\xd9\xf7\xed\xd9\x0b\xba\xe4\xc6\x58\x1c\xd0\x2a\xd0\x13\x36\xc0\x08\x6d\x42\x48\xeb\x13\x73\x48\x07\x89\xf7\xd8\x33\x3b\x83\x1d\xb3\xba\xe0\xbd\xb4\x97\x89\xaa\xb9\x3c\xde\x1f\xaf\x1c\xe8\x8d\xcd\xc7\xa1\xa4\xf8\x61\x43\xce\x44\xf8\x51\xac\xe4\x59\xa5\x52\x8c\x96\x19\x5f\x44\x38\xee\x7c\x18\x56\xac\x61\xfd\x50\x35\xd8\x39\xd6\x2e\x48\xa1\xab\x6b\xd2\x3a\xd5\x2f\x1f\x6f\xfe\xd1\x98\x26\xb6\xd7\xf6\x49\x1c\xfb\x05\x00\x31\x76\xf2\x90\x79\x45\x54\x43\xf0\xab\x48\x21\x50\xfa\xc8\xe3\x2a\x39\x02\xa4\x09\x67\x75\xf3\x42\xed\xee\x2d\xaf\x4c\x4f\x33\x8d\x45\x5b\x4e\xa3\x5d\x39\x75\xf7\x2b\xe8\x5e\x98\xe8\x71\x58\x48\x6b\x4c\x3d\x6e\xc3\x7a\x37\x03\xf6\x3a\x3e\x19\x27\x2b\xa5\x25\x50\x89\xaa\xcd\x30\xfa\x39\x79\xb4\x58\xdf\x61\x6f\x57\xb7\x50\x2b\x42\x91\x38\x45\x62\x04\x1f\x61\x88\xdb\x50\x3f\x3d\xf7\xf5\x98\x1d\xa5\x70\x5e\xb0\xf1\xd2\x42", b"\x64\x33\xbd\x33\xdb\x0a\xc8\x26\x1c\x69\x1a\xf3\xa2\x7f\x52\xcd\xd4\xa6\x5d\x79\x99\x39\xfa\xf2\x79\xac\x41\x78\x8e\x75\x28\xa6", b"\x04\xcf\xdc\xb9\x93\x38\x2e\x8f\xd2\xdb\x8d\x90\xdc\xa8\x0e\x94\xb1\x7b\x43\x20\x09\x85\x2c\xd3\xf8\x66\x25\x15\x9e\x83\x7c\x19", ); test::( b"\x2b\x43\x65\xa4\xac\x68\x54\xc9\x72\xda\x73\x47\xaf\x1c\xec\xc6\xed\xcb\xae\x9d\x53\x3b\x74\xfb\xe6\xdb\x57\x12\x16\x3a\x6c\xe9\x84\xf9\xd7\xa4\xc5\x4b\x44\xdd\x75\x55\xe5\xc2\xd2\xf3\xd0\x98\xf3\x1d\x51\x7f\x8e\xbd\x33\x01\x99\xa5\x4b\x15\x29\x7e\x5a\xde\xe1\xbd\xf3\x91\x58\x1f\x10\x19\xb1\xad\x72\xdc\xcc\xd5\x48\x4b\x51\xd2\x75\xa3\x68\xc6\x9a\x76\x62\xe7\x9f\x9b\x29\xc9\xa3\x08\x4c\x94\xae\x76\xda\x04\xf9\x58\xc7\xd3\x6c\xec\xc5\xd4\x1d\x77\xf2\x30\x2f\xf2\x8f\x2e\xd9\xc6\x6a\x06\x62\xca\xbf\x51\xc8\x42", p, q, g, b"\x58\xe6\x35\xee\xc8\x0b\xde\x1e\xb7\xbf\x2d\xa2\x06\x00\x61\x7a\xf2\x9f\x0a\x19\x17\x05\x67\x6b\xc1\x0f\x75\x53\xf7\x61\x11\x26\xe4\xc4\xd4\x4b\xcf\x14\xf7\xa9\xf4\x8d\xa6\xe1\xb1\xe5\x4d\x0a\x71\x57\x24\xaf\x5b\xca\x93\x86\x70\x90\xf9\xbf\xc9\x27\x41\xdf\xe1\xdd\x4f\x06\x07\x5e\xc2\xa9\x26\x2d\xa8\x1e\x0d\xca\xbf\xca\xb9\xe6\x94\xdd\xca\x86\xd0\xe1\xcf\xaa\x32\x1e\x2b\x58\x18\x18\x2e\xb6\x20\xbd\x5d\x16\xbc\x27\xa2\xda\x03\x5d\x4b\xc1\x78\x07\xcf\xe8\xae\x30\x38\xc5\xbb\xb8\xa0\x23\xfb\x23\x28\x14\xb9\x1b\x99\x74\x9f\x51\x9d\xe3\x9a\xa0\xf4\x34\x31\x33\x23\xb1\xb5\x82\x02\xc5\x91\x19\xb0\xbe\x21\x76\x17\x04\x7c\x9e\x2e\xa4\x53\xd6\x08\x56\x2c\xb9\x6c\x4f\x08\x51\xa7\x96\x5b\x16\x4f\x9b\xbe\x15\x1f\x9c\x50\x8c\xa2\x09\xf1\xaf\x65\x9e\x36\x38\x04\xc8\xd8\xfa\x1a\xd7\x00\xe2\x08\x66\xec\x9a\x1e\x50\x5b\x74\xbb\xab\x70\xcb\x47\x23\x08\x43\x1a\x3e\x87\x27\x2f\xeb\xf7\xcc\xe2\xc2\x0e\xc3\x7f\x5d\x68\xb4\xe4\x7b\xf3\x74\x10\x13\x72\x39\x36\xdb\x7c\x9b\x0f\x3d\xed\x96\x4a\xcb\x7f\x8a\xc9\xc5\xa6\xb4\xf2\x8d\xe1\x98", b"\x00\xa7\xc6\x64\xc5\x44\xcd\x7b\x61\x74\x94\x10\xdd\xa3\x3b\xb3\xa4\x7c\x3e\xb5\xa9\xa7\xbe\x5f\xba\x20\x1a\x39\x0c\xec\xfa\xef", b"\x6f\xbb\xda\x96\x7b\x58\x4b\xd9\xec\x6a\x0a\xe7\x6e\x0c\x55\x2b\x3d\x42\xbf\x0e\x9c\xf2\x93\x9c\xaf\x61\x23\xf6\xe8\x60\x46\xf6", ); test::( b"\xca\xb1\xd1\x76\x66\xb0\xc9\x65\x8c\xc7\x8c\xfc\xba\x17\xa0\x8e\x29\x89\xd3\xc2\x02\xc8\xb5\x08\x55\x31\x40\x4d\x92\x8c\x61\x8b\x6e\x23\x0b\x25\xc4\x6a\x5b\x58\x43\x7e\x43\x35\xfc\x04\x00\x20\xba\x00\xc8\x63\x18\x23\x25\x94\x0f\x00\xaa\xd3\x30\x14\x5e\x66\x6d\x07\xe9\xe9\xd8\x76\x13\x70\x10\x93\x2a\xe5\x20\xd9\x18\x8c\xa3\xd7\x99\x3c\x90\x53\x95\x21\x9c\x55\x84\x6d\x19\xb8\xfc\xdb\x1d\x0c\x15\x86\xb9\xb5\x10\x97\xaf\xd6\x97\x2a\xe1\x47\x2b\x0e\x20\x45\x3f\x8f\xbd\x5d\x6a\xa9\xe4\xa9\xa9\xb3\xdc\x37\xdd\x8f", p, q, g, b"\x50\x22\xc8\xa6\xfa\x79\xb7\xaa\x11\xa3\xd7\xaf\x5a\xce\xbb\x2e\xf8\xc5\x0b\x28\xd8\xf0\xe3\xa5\x56\x19\x65\x62\xd3\x41\x31\xfb\x44\xf2\x2c\x3b\xe3\xf9\x89\x5e\x35\xee\xe7\x0a\xa5\x3b\x6c\x67\x92\x0c\x54\x0b\xa6\xc1\x08\x5b\x0e\xa8\x18\xb1\x2a\xea\x81\x1f\x2d\xfa\xeb\x6d\xae\xd9\x76\xe3\x62\x43\x07\x98\xfd\xcc\xa3\x91\x2a\x08\x91\xe7\xd1\xc8\x3b\x74\x8a\xf1\xe7\x68\x9e\x03\x8b\x49\x0e\xb7\x3f\x7f\xe6\xe0\x61\x2e\x8f\x23\x85\x80\xe7\x88\x33\xb2\x07\x27\xa6\x02\x76\x8a\xb2\xd5\x9d\xda\x36\xe7\x51\x46\xfa\x4d\x36\x64\xf7\xb0\xce\xf7\xbe\x87\x7a\xfd\xcd\xba\x23\x00\x4e\xe3\x13\xa6\x9f\xd6\x1c\x32\x67\x59\xe7\xe7\x79\xad\x75\x0f\x7a\x5c\xad\x9f\xb2\xdd\x80\xa8\xee\xa6\xdc\xbd\xa0\x19\x5d\xcc\x17\xb3\x8a\xd6\xf0\xe2\xab\x68\xcf\xc6\x9b\x15\xc5\x72\xf8\x5f\x20\xc3\x67\x9c\x15\xa8\x30\x99\xcf\x08\xa3\x79\x05\x5f\x8f\xbd\xd8\xf5\x90\xd4\x3b\xd1\x2f\x75\xba\xf0\xec\xcd\x6c\x07\x7a\xc7\x58\x9a\xab\x81\x71\xe8\x87\x5d\xb0\x12\x2e\x6c\x78\x61\x7c\x13\x58\x61\x43\xa7\xeb\xe9\x04\xa7\x82\x2b\xac\xf4\x8a\x75\x27\xf7\xfa\x4e", b"\x7b\x8b\x75\xac\x85\x14\xc6\x8d\xe0\xca\xa9\x8e\x9d\xe0\xb9\x60\x72\x53\xd8\x08\x8d\x3f\xea\xdf\x92\xb8\x3f\xfc\x26\xe0\x88\xce", b"\x4b\x10\xe1\x7f\xf6\x4a\x0e\xb7\x2f\x70\xa8\x63\xd0\x0a\x9b\xf3\x31\xbb\xb5\x15\xba\x3a\x9f\xef\x72\x75\x3a\xd7\xf0\xdf\x0b\xe5", ); // [mod = L=2048, N=256, SHA-512] let p = b"\xf6\x3d\xa3\xbe\x9a\x96\x16\x19\x6c\x65\x56\xf3\xce\x6f\xd8\xb9\x8b\xdd\xa9\x13\x74\x73\xda\x46\xfe\xd9\x70\xe2\xb8\xd1\x47\x38\x7a\x81\x92\x20\x65\xd5\x28\xa7\xd6\x43\x3e\xbc\x5e\x35\xb1\x5c\x67\xea\x35\xa5\xa5\xbf\xf5\xb9\xce\xf1\xcd\x1e\x6f\xe3\x1d\xda\x52\x83\x8d\xa3\xaa\x89\xb9\xb4\xe8\xd9\xd3\xc0\x73\x2c\xcc\x4f\x23\x8c\xe1\xb4\x16\xc4\xca\x93\xf2\xc6\x80\x0e\x5f\x4e\xd4\x1c\x4f\x76\x15\xce\xc5\x53\x1b\x98\x68\x0b\x20\xdc\x63\xf7\x3e\x70\xd8\x03\xaa\xcf\xae\xce\x33\xd4\x5f\xa0\xe3\x9d\x77\xc8\x50\x82\x09\x52\x8b\x90\x46\xb5\x91\x70\x10\x79\x12\x34\x39\x7e\x41\x2d\x22\xbc\x0b\x8d\x67\xcb\xd1\xcd\x28\xa3\x2c\x24\x60\xa0\xbd\x86\xaa\xba\x0e\xea\x80\xe1\x6e\x32\x45\x64\x31\x71\xe3\x42\x21\x76\x0c\x20\x3a\x56\xb8\x20\x7a\x10\x09\xe6\xc1\xa2\xf6\xcd\xa8\x5f\x85\xc4\xf9\xe4\x10\xb9\x49\x92\x33\xc0\xee\x07\x2e\x46\x5a\xf4\xfb\x4f\xb9\x28\x2c\x5c\x10\xe8\x23\x4f\xd6\x30\xea\x92\xf0\xaa\xe6\xb9\x7a\x52\x0d\xb3\x44\x75\x70\x7b\x79\xa4\xc1\x75\x26\x5c\x03\x56\xcc\xbc\xa8\x27\xe3\x83\x7d\xf3\xd6\xd0\x57\x6d\x90\x79"; let q = b"\x9b\x74\x63\xf8\x26\x9f\x0b\x90\x9a\xbe\xd1\x09\x91\x68\x4f\x36\xa6\x4a\xc8\x64\xe0\xd6\xd7\x17\xc0\xef\x21\x57\x7a\x4c\x39\x07"; let g = b"\x97\x2a\x75\xf6\x06\xe8\xaa\x3a\x91\xff\x08\xfd\x13\x1a\x20\xf5\x96\x32\x51\x30\x4e\x3d\x14\x31\xb7\x12\xfa\x08\x03\xd5\x27\xfd\x71\x0f\xb7\xeb\x27\xe5\x29\x04\x97\x1c\xd4\x3c\xa9\x77\x19\x9a\x24\xdb\xee\xb4\xb7\xbc\x2b\xa0\x75\xd3\xb7\x2e\xb6\xb2\xc5\xad\x8f\x0e\x8b\x8f\x48\xc5\x0b\x55\x4c\x7e\x07\x11\xf4\xc7\x41\x63\x30\x80\x66\x72\x49\x8f\x43\x02\x92\x72\x4b\xf9\x8a\x8e\xa4\x8c\x7f\x53\xd7\xb3\x1d\x8b\x75\x28\xb1\xa6\xf0\x87\xd2\xc2\x7c\x33\x52\x02\x83\x5b\x1e\x31\x42\x25\xb3\x7a\xef\x8b\xfc\xec\x7d\x80\x92\x0c\x4a\x46\x0a\x3d\x68\x34\x4d\xed\x75\xed\x9e\xe8\x67\xfa\x2a\x69\x45\x06\x38\x94\xf5\x63\xb6\x86\x33\xb8\xb3\x9f\x83\xa1\xaa\xaf\x5a\x96\xc7\xf4\x22\x68\x7e\x7c\x84\xcf\x8f\xb8\xcc\x5f\x45\x04\xdf\xf0\x87\xbc\xb2\x6a\x95\xbb\xf8\x58\x3f\x03\xb3\xa0\xe4\x3a\x35\x6b\x2b\xd7\xe2\x5c\xdd\xdf\x7a\x01\x53\x00\xfa\xec\xc6\x79\x3c\x5e\xe9\x9b\x63\x27\xcb\x84\x56\xe3\x2d\x91\x15\x33\x9d\x5a\x6b\x71\x2b\x7f\x9d\x03\x01\xac\xb0\x51\x33\xe3\x11\x5e\x45\x4d\x3a\x6d\xd2\x4a\x16\x93\xc9\x4a\xab\x54\x06\x50\x4b\xf7"; test::( b"\x8a\xb0\x15\x10\xcf\xa3\x3c\xfa\x5b\xcf\xf0\x03\xbb\xa3\x99\x96\xfa\x72\x76\x93\xab\xf6\xac\x01\x0b\xb9\x59\xb0\xb5\x9a\x15\x30\x6c\x0c\x3a\x19\x21\xaf\x2a\x76\x71\x7a\xa5\x5b\x39\xfa\x37\x23\xf4\xc3\x22\x9c\xa9\xac\xf6\xb7\x41\x61\x4b\xb5\x51\xcd\xe8\xa7\x22\x0a\xb9\x7d\x4b\x45\x3b\xec\x1e\x05\xa0\xea\xa4\x2e\x38\x2b\xbc\x7b\x9b\x84\xf8\x23\x7d\xc8\x96\x4e\xe5\xb6\x6e\x9b\x2a\x4c\xa6\x1c\xf6\x75\x14\x0e\xfe\xf5\x4f\xb3\x27\xa6\x65\xde\xf8\xd5\x7a\xb0\x97\xe8\xc5\x3c\x64\x3f\xcb\x58\x20\x9c\x42\x15\xb6\x08", p, q, g, b"\x41\x19\x7c\xe2\x23\x3d\x7e\x48\xc8\x03\xcd\x64\xc7\x8f\x65\x79\x23\xb9\xe3\x6b\x87\x14\x01\xf8\x66\x1c\x21\xd8\xba\x38\xc6\xb9\xb3\x23\x9d\xb7\x67\xb1\x1d\x1d\x40\x1e\x5f\xae\xcb\xf7\xa4\x58\x60\xcc\x5f\x1a\x54\xd6\x02\x86\xb7\xd6\xe1\xc9\x9f\xd5\xb8\xc8\x4e\xd8\x51\xc5\x35\x7d\x41\xad\x60\x16\x3f\x22\x4d\x78\xc9\x96\x14\x3f\xff\x89\xdd\x3a\x8f\xe1\x23\xda\xe1\xf6\x21\x42\x7f\xd8\xcc\xe7\x6e\xd1\x38\xd6\x8f\xa2\x48\xf3\x74\xae\x23\x32\x49\x62\x5b\x93\xf3\xdd\x59\x37\xd1\x5e\x54\x1b\x7e\xff\xa4\xdf\x4f\xea\x7d\x52\xfa\xce\xd6\x15\xbf\xe0\x34\x84\x18\xff\x93\xe6\x9a\x20\xa5\x2e\x55\xc7\x6c\xc3\x0f\x30\x7f\x84\xe7\x1e\x4a\xab\xc0\x82\x5e\xca\x3a\x95\xb4\xbd\x58\xeb\xfb\x00\x29\xd2\x3a\x16\x9e\x9d\x80\xba\x7d\x1c\x5f\xd3\x53\x95\xe6\x60\x2e\x08\x9a\xa9\x91\x8f\x08\xba\xe3\x5a\xe1\xca\xc7\xaf\x33\x69\x41\x29\xe9\x8f\x0d\xad\xad\xd9\x0e\xae\xb6\xee\xd2\x50\x24\x39\x0b\x1a\x60\xaf\x79\x47\x34\xc3\x97\xb0\xf5\x09\x86\x5b\x13\x4b\x28\x67\xc1\x15\xd6\xf4\x89\xb6\xdd\x7e\x3c\x82\x99\x4b\x45\xdc\xe2\xa2\x3c\x6b\xc9\x02", b"\x6a\x47\xea\x57\xce\xae\xcc\x11\x6d\x71\x90\xff\x6c\x6d\xd9\x83\x1a\xb7\x5b\x4b\xf6\xcb\x29\x10\x83\xe4\x26\x8b\x48\x6e\xd2\x45", b"\x01\x73\x55\xf6\x98\xa3\x2a\xbe\x9a\x4d\x4a\x7d\xda\x7c\x85\x95\x0c\xdd\xc3\x48\xab\x8a\x67\x51\xe7\x2f\xdd\xc0\x1a\xa5\xd1\xf0", ); test::( b"\xb2\xf5\x69\x48\xa3\x36\x98\x2a\x5b\xcb\x4b\xb5\xd7\x9e\x3f\xe5\xc3\x60\x81\xbd\x28\x6e\x6e\x02\x1a\xb2\x9b\x52\x2f\x0b\xe5\xff\x5e\x81\xe6\x38\xf2\x3d\x07\x81\xc2\x68\xa8\x9b\x09\x33\x25\x75\xcb\x31\xc0\x80\x4b\xbd\x34\xc8\x05\x89\xfb\x11\x57\x0f\xc6\x5b\x3f\x67\x61\x26\x05\xa9\x41\x1c\xda\xb3\xac\x00\xff\x3f\xce\x33\xab\x22\xc4\x6d\x26\xbf\x9c\x3f\xc5\xad\x2d\x90\x18\xde\xb9\xb6\x69\xb5\x0f\xbf\xba\xf8\xbe\xd6\x23\x0c\x7b\xd6\x21\xd5\x64\xfb\x1a\xf9\x53\xf0\xe8\x2c\x5b\x55\x20\xab\x97\xba\xcc\xf5\x8d\x6e", p, q, g, b"\x72\xb8\x4e\xb6\xa6\x0c\x68\x6f\x74\xf3\x76\xe2\x6b\x2e\x47\xe4\x4a\x6d\x5d\xd9\x2c\x06\xfd\xe4\x9f\xaa\xd0\xaf\x9b\x11\xe4\x31\x47\xce\x93\x08\xef\x35\x01\xa7\x52\xe7\xbf\x18\xe9\xe6\xdf\x3c\x0a\x49\xc4\x4c\xd2\x51\x5a\x05\x50\x8f\x80\x60\xa6\x1e\x6e\x6f\x1b\x2e\xcf\x14\xb3\x38\xcf\x0f\xd8\xb7\xcc\xbe\x67\x8d\x52\xdb\xdf\x20\x35\x2c\x15\x5a\x2b\xd5\x17\xd8\x27\xd6\xce\xfb\xf4\x8c\x56\x79\xc9\x98\x29\x8e\x21\x86\xef\x10\x98\x16\x0d\xfb\x65\x91\x45\x06\xa1\x77\x94\x3a\x4a\x05\x82\x82\x38\x2d\x32\x7a\xd3\x6f\x88\x30\x1b\xe6\x93\xc0\x20\x00\xc7\x24\x63\xe6\x82\x42\x1a\x02\x37\x80\x4d\xbb\x27\x33\x5c\x78\xe8\x49\x5f\xac\x78\x42\xd2\xaa\xfe\xbf\x90\xf3\xc3\x60\x5f\x75\x86\x15\xdf\x98\x9f\xdb\xd0\x6e\x23\xe4\xad\x69\x74\xb6\x23\x84\xf0\xaa\x01\x02\x7d\xb8\x9a\xc3\xdc\xb0\x1c\xb5\x25\x8c\xdb\xd9\xc1\x93\x72\xa6\xc4\xaa\xdf\x27\x29\x80\x62\xac\x9a\x16\xde\x2e\xb0\x76\xe1\x67\xad\x7c\x65\xd0\x50\x5c\x8f\xce\xcf\x35\x9b\xb5\xd0\x5c\xd2\x2e\x7d\x48\x62\x9a\xf5\x39\xfe\x7f\x60\xe2\x3e\x95\x7c\x84\xc7\xa6\x1a\xc9\x2b\xf8", b"\x43\x70\x4e\x96\xcc\x8d\x63\xe6\xf5\xb7\xe1\x18\xcb\x7c\x03\x0d\x0b\xd5\x63\xb8\xf7\xa1\xa3\x04\xb3\x68\xa6\xc6\x6d\x7e\x7f\xa8", b"\x49\x0d\xa4\x3f\xd0\xf1\x9f\xec\x4e\xe0\x81\xcc\xe2\x5d\xf6\xb2\x72\x0b\x1a\x76\xb0\x23\xc1\x57\x04\xdd\x03\xef\x1c\x3e\x48\xa7", ); test::( b"\x9a\xe8\x47\x93\x27\xb8\xb8\xa5\x7f\x57\x0f\x6e\xc7\x6a\x1a\xc6\xf0\x2b\x19\x8c\x60\x48\xa1\xf0\x96\xe6\xce\x56\x30\xb6\xca\xf3\x63\x17\x64\x13\xd8\x80\x33\xb1\xcd\x07\xf4\xd3\x96\x0a\x12\xdb\xae\x8a\x65\x91\x74\xbb\x87\xc3\x7a\xca\x6e\xc5\x6e\xd5\xa6\x61\x9b\x8b\xa6\x76\xb6\x50\xd9\x7c\x6a\x21\xaf\x02\x39\x85\xdc\x36\x1f\xa2\x34\xb2\xb3\xc1\x7e\x77\x70\x3b\xa9\x9a\xe3\x21\x12\x60\xda\x10\xa6\x0f\x24\x0e\xee\xf4\x78\xf2\x64\x11\x84\xa2\x81\x71\x6a\xe5\x78\x88\x11\x7d\xba\x99\x28\x53\xf4\x94\xac\x3c\xaa\x45", p, q, g, b"\xce\x34\x8b\x5c\xb3\xd3\x68\x08\x42\x2a\x50\x16\xdd\x58\x73\xdf\x79\xf3\xcb\xb5\xe1\xb4\x58\xe8\xc1\x11\x02\x26\x04\x75\x43\xd9\x65\x76\x9a\x11\x2a\xdb\x4f\xce\xd0\xd1\x46\x23\x09\x62\xa8\xd4\x13\x22\x5c\xc7\x0d\x81\x0d\x40\xe6\xa7\x2e\x6d\xc8\x0d\xb5\x09\x40\x0c\x09\xd2\x63\xd6\x62\x06\x96\x6e\xd5\x1a\xb6\x59\x30\xa2\xaa\xc9\x9f\xcc\xe3\xa3\x98\xb6\x4d\x59\x09\x76\x83\xd2\xba\xa5\x76\x82\x70\x5a\xbc\x32\xeb\x8c\x32\xd6\xf1\xe7\xd9\x4c\xa1\x7e\xd7\x06\x78\x22\xcd\x20\xfb\xa3\x79\x5e\xd1\x84\x3c\x01\xb0\xd7\x55\x1c\x7c\x4c\x75\x9d\x53\xa4\x19\x14\x83\xbd\xc6\xe3\x12\x1c\x2b\xc1\x26\x07\x70\x1f\x43\xe3\xba\x38\x2c\x67\x66\x81\x9d\xb0\x7e\xf9\xc5\x95\x86\x93\x75\x14\x77\x2c\x2e\xcc\xde\x4c\x54\xd9\x25\x75\x73\x4c\x45\xa8\xe8\x32\xc4\x41\x7b\x43\xa9\x2c\x9a\xbd\x15\x22\x59\xcc\x0a\x96\x9b\xac\x64\xb2\x37\xbb\x3a\x08\x26\xae\x72\x91\x9d\x7c\x2d\xd2\xef\xdf\x03\xe8\x37\x01\x98\x0c\x2a\x8f\x50\xce\x6e\x44\xd7\xcc\x88\x48\x64\x5b\xf4\x0a\xef\xdf\x24\xfa\x7a\x6d\xce\x5a\x3b\x9a\xca\x6f\x01\x76\x18\xa6\x4d\x91\xce\x4b", b"\x00\x91\xd7\x50\xad\x9a\x4f\x29\x57\x3f\xd4\x57\xa5\x89\x1b\x68\xd4\xb6\xc1\x57\x03\xa2\xbc\x19\x2c\x7c\x62\x0c\x4e\x4c\x45\x29", b"\x92\xc4\x09\xc8\x97\x79\x75\xa4\x17\xd9\xf5\xe0\xe2\xdc\x70\x68\x3a\x53\xa9\x56\x62\xad\x27\x0a\xe3\x5d\x49\x65\x67\xa9\xa2\xfc", ); test::( b"\xe5\xa1\xa3\x44\xc2\x5b\xa0\xcb\xbc\xff\xe6\x80\x01\x35\xf2\xed\xe8\x10\x49\x18\x0f\xb2\x75\x9f\xd9\xe1\xaf\x3b\x81\x6a\xd5\x43\x6a\x24\xfa\xf2\x9c\xf3\xad\x91\xcf\x41\x33\x32\xf4\x54\xf7\x4a\x9d\x4f\x5e\xfe\x76\xcf\x02\x51\x2c\x27\x3c\xd5\x25\xf0\x4a\xfd\xb5\xc2\x4b\x05\x88\xd6\x11\xd7\x21\x53\x68\x0d\x1e\x39\x95\xe0\xaa\x75\x0e\x90\x77\xb0\x75\x2b\xd4\x44\x2b\xf7\xbf\xa8\xdb\xa3\x8e\x1c\x5e\x7d\xdd\x68\x7f\x55\xaa\x54\xc1\x38\xc7\xe6\xd5\xf0\x64\xf3\xec\x55\x94\x2d\xc1\x92\xdd\x99\x6e\x55\x36\x33\xaf\xd6", p, q, g, b"\x38\x59\xd4\x73\x5c\x14\xba\xee\xc1\x4b\x79\xcc\x26\x93\xff\xca\xc9\x00\xa2\xc2\x6e\xc6\x34\xa8\xe9\x77\xd2\x06\xad\x6e\xc7\xb1\x3f\x2d\x45\x0e\xf0\x47\x82\xec\x0a\xbb\x0d\xa4\x8f\x00\x06\x28\xce\xc1\xf6\xe9\xa7\x27\xbb\x59\xd7\xc0\xf0\xd7\x43\xf5\x13\xac\x09\x25\xbe\xb6\x1b\xf3\xad\x75\x82\x4f\xff\xae\x1e\xb7\x83\xeb\x1b\x68\xfc\x40\xd2\x87\x70\xe2\x80\xfd\xe2\x38\x44\xa1\x44\xd4\xb1\xa9\x54\x09\xb7\x55\xc7\xff\x2e\x5c\x67\x81\x1f\x3b\x1c\x2e\xb9\x6c\xb1\x59\xa6\x42\xd8\x4d\xd7\xb5\xdc\xcc\x2c\x0a\xef\x06\xd1\xcd\x54\xea\xc9\x4a\x11\x27\x3f\x94\x98\xf1\xe7\xa7\xcd\x79\xc1\x08\xe4\x96\xdc\xf5\x73\xef\x3a\x66\x10\xb7\x73\x1a\xb1\x4c\x16\x2c\xe8\x37\x7c\xb9\xb9\x07\x88\xe3\x56\xf5\x1f\x4b\x51\xa1\xec\x8b\xd8\x6b\xd8\x8f\xd4\xc3\x8e\x62\xca\xd6\x19\xab\x89\x41\xbc\xb9\x8a\x2f\x35\xee\x51\x2f\x4f\x8f\xfd\xd5\xee\x70\xca\xed\x84\x67\x15\x6b\x89\x3b\x35\x32\xa0\xa2\xaa\x51\x99\xce\xae\xcc\x5b\x19\x4b\xc0\x57\x96\x4c\xf4\x50\x66\x8c\x44\xf2\x7e\xc8\x0d\xe2\x1e\xa1\xa4\x15\xee\x6a\x65\x69\x83\x23\x94\xf6\xb4\x05\xd1", b"\x44\x36\x44\xe1\x27\xe3\x81\xb1\x7b\xb6\x6c\x53\x50\x97\x18\xa5\x8a\x30\xf9\x27\x42\x58\x06\xa6\x28\x40\x11\x9e\x78\xc2\x93\xb7", b"\x3f\x01\xe5\xd1\xe9\xfd\xb1\xcf\xda\x25\xef\xf3\xca\xcc\xf4\xed\xf5\x99\xfe\xa2\x77\x20\x1c\xf2\xb0\x1f\xfd\x7c\xb1\xa9\xa7\x27", ); test::( b"\xb8\x8c\x21\x20\x70\xbe\x39\x8a\x1f\x81\xe8\x5d\xfd\x71\xdc\x24\x24\xa3\x8a\xe3\x8a\x9d\x61\x08\x51\x86\x50\x4f\x4c\x2c\xbf\xa4\x92\xb7\x6d\xbc\xc0\x51\xce\xfd\xe0\x61\x6a\x7e\x33\x10\xb4\xbf\x17\x24\x4d\xe7\xd1\x0f\x84\x7c\xe2\xa9\xf6\x65\x94\x8e\x76\x72\x4d\x8f\x1f\x4b\xb3\xa6\x19\x19\xb2\xec\x7d\xc4\x7a\xd8\xa7\x2c\xb5\x99\x8b\x79\xfe\x3a\x15\x63\x95\xe4\xae\x88\xe6\x82\xb1\xdd\x16\xc5\x2d\x64\xcb\x4b\x31\xc3\x9d\x4a\x42\xa2\x1e\x62\x42\xdc\x0c\xdb\xb0\xac\xf3\xd4\x71\x82\x63\x8c\x5f\x21\x6d\xc6\xe8\xb1", p, q, g, b"\x54\x1c\x69\x0f\x4c\xa0\xc4\x2e\x52\x67\x64\x6f\x78\xef\x42\xfd\x68\xc3\x63\x37\x5b\x2e\x98\x3b\xe4\x44\xe4\x81\x9e\x63\xcd\xc1\x29\x01\x8b\xd3\xb8\xc6\xda\x8b\x70\x7c\x19\x6c\x35\xc9\x3e\xab\xee\x10\xe8\x75\xc4\x1f\xd9\x25\xbb\x3c\xe8\x06\x96\x93\x5d\x16\x31\x3f\xd3\xa2\x68\x58\xec\xcf\x2d\x50\x7f\xc2\xa1\x09\x50\x52\x5c\x67\x0d\xad\xc8\x83\xdc\x67\x79\xac\x1c\xe8\x66\xd8\x82\x03\x95\xf3\x54\x1c\x86\x30\x18\x33\x7a\x6b\xe9\x44\xdd\xc6\x44\xaa\xa6\xc0\x07\x19\x7d\x7a\x5f\x9a\xa5\x3a\x5e\x11\x80\xad\x51\xc9\x8b\xe9\xd5\x61\xa8\x5f\xe9\x73\x41\x60\xca\x35\xe4\xfa\xdb\x02\x52\x7b\xa0\xfa\x58\x04\x1b\x4d\x96\x38\x5f\x7f\x8f\xf6\xae\x75\x6a\xdd\x49\x68\xc0\xc2\x79\x9c\x0d\x68\x0f\x66\xc8\xce\x96\xf4\x98\x22\x87\x38\xe3\xe8\x7b\x7c\x86\x63\x44\xdb\x7d\x5a\x4e\xc3\x28\x24\x31\xae\xe5\x95\x1d\x9b\x4c\x83\xec\x2a\x0c\xda\x36\xcb\x2e\x2c\x43\x73\x63\xce\xba\x4e\x8e\x9f\x61\x28\x43\x9d\x12\xc5\x18\x68\xd0\xcb\x1f\x61\xe5\x3a\x68\xd4\xe7\x1c\x5a\x9e\x7d\xe4\x3c\x6d\xfc\xa2\x6f\x17\x41\xac\xa9\x16\xe4\x28\x26\x53\xbf\xc1", b"\x07\x8a\x71\x46\xa2\xc5\x09\xb9\x7a\x6a\x8c\x96\x3b\xaf\x1f\xbf\xbd\x1a\x2a\x5a\xa2\x14\xa1\x5e\xa4\x57\x63\xf0\xe7\x93\x0b\xeb", b"\x29\x79\xcb\xf5\x9a\xdb\x70\xf2\x8a\xc4\xfc\xb6\x92\x97\x49\x8f\x81\x63\x76\x4c\x62\xb3\x19\x63\xda\x9c\x8f\x9c\x0c\x43\xe0\x75", ); test::( b"\x4a\xdf\x1e\xd4\xfb\xb5\xb8\x2d\x7a\x2b\x1a\x29\x38\x43\x07\x53\xa6\x20\x7d\xa1\xcc\x04\x95\x74\xf0\xa1\x93\x14\x27\x2f\x9a\x80\xc6\xa5\x34\x98\xb7\x8e\x5c\x0b\x74\x01\xce\x48\x5f\xd4\xba\xeb\xc9\x66\xda\x6c\x1f\xcb\x02\x58\x16\xcf\xae\x32\xb5\x8a\xa8\x7f\x5e\x88\x85\x05\x47\x35\xf9\x3d\xf1\x9e\xd3\x2c\x81\x97\x86\xd4\x10\x9d\xbd\xa0\x47\xd6\x8c\x05\x89\x33\x07\x15\xe1\x05\x22\x64\x3b\xbe\x27\xe3\x2c\x0d\xc9\xc5\x83\x36\xbe\x30\x5b\x4c\x0c\x98\x1b\x40\xe0\xee\xda\x0d\xe4\x61\xd8\x44\x1c\x02\xc1\x8c\xea\xc5", p, q, g, b"\x8b\x69\x27\xfe\x29\x3a\xc9\x11\x1b\xa4\x06\x12\x5d\x6e\xbf\xbc\x30\xf9\x6c\xbf\xd6\x96\xfc\xac\x7d\xde\xd4\x23\x05\xc6\x10\x54\x53\xac\xcb\x1b\x0c\xa6\xf0\xf3\x16\x01\xf8\xc3\x4f\x96\xbb\x8e\xe4\xcc\xf1\x49\x92\x3a\x12\x82\x1d\xfa\xa2\xa3\x85\x9a\x39\xcf\x82\x56\x76\x09\xb2\x06\x0f\xf6\x09\x23\x2e\x90\x26\x1d\x66\xcf\x31\xfb\x92\x64\x67\x1f\x3f\x1b\xff\x6c\x8a\x95\x8e\x5c\xd0\x15\xdc\xc0\x2d\xfd\x2f\x02\xfb\x6a\x44\x3c\x2b\xf4\x5a\xbf\x13\x86\x20\x59\xdf\x98\x06\x6e\x00\x31\x1b\xb6\x43\x8b\x7f\xe2\xd9\x1e\x28\x75\x53\xd2\x54\x11\xf0\xfb\xa4\x74\x17\xc2\x90\x2f\x97\x8c\x57\x25\x7a\xe4\xea\xa3\xf9\x93\x17\xd5\xad\xee\x0f\x9a\xdf\x4d\x41\xe4\x10\x72\x55\x2b\x3f\x51\xeb\x99\x36\xa7\xf6\x3c\xc2\x8b\x46\x6f\xab\x64\x29\xd0\x68\x68\xd1\x8c\xa0\x9a\xba\x63\x40\x93\x76\x71\x92\x04\x9b\x02\xbc\xb7\x52\xeb\x67\x4c\x98\xa8\x68\x69\xd6\x72\x6f\x74\x2e\x57\xef\x8c\x3d\x45\x31\x17\x1c\x64\xf0\x3e\x10\xa4\xe4\x40\x39\xa4\x4d\x40\x7e\xbf\xc6\xb5\x6a\x7c\xdf\x6b\x17\x39\x4b\x53\xb5\x60\x43\x47\xc5\x1c\xf3\x75\x55\x1b\x73\x06", b"\x5b\x20\x11\x16\xd8\xbb\xc8\x7d\xb9\x90\x01\x70\x7b\x56\x7e\x7c\x34\x51\xd8\x02\xfa\x6c\x67\x9b\xf3\xdb\x34\x56\x71\x1a\x19\x13", b"\x5b\xe7\xe4\xc4\x93\xfd\x5d\x19\xb7\x71\x37\x31\x41\x29\x4d\xaa\xd9\x76\x56\xa3\xdb\xe3\xfd\x2a\xbb\xd3\xb6\xc6\x2c\x16\x61\x26", ); test::( b"\xbd\x49\x1c\xf6\x8b\x34\xf7\xba\x9a\xfe\x0c\x6e\xf5\xf2\xb7\x95\x6e\xf9\x64\x46\x5f\x28\xb2\x79\x7b\xc1\xd6\xe6\x70\xa6\xd8\x17\x30\xee\x29\x93\xd0\xb4\xaa\x96\x90\x51\x57\x02\x5d\x77\x5b\xa1\x04\xe7\xc1\x9b\x3b\x37\x2e\x85\x20\x26\xb1\x28\x6c\xbc\x6a\x48\xa1\x0c\xb9\x37\x8e\x97\xad\x96\x6f\x9c\xf0\x39\x17\xee\x8d\xb7\x5b\x62\x64\xe9\xb0\xa4\x8a\x0a\xe1\x0c\x2f\x46\x44\x47\x10\xd4\x23\x41\x26\xce\x45\x6b\x9f\xd1\x1a\xb7\xa3\x50\x49\x48\xd0\x46\xd5\xf4\x38\xd8\x93\xd9\xb1\x05\x2b\x8f\xac\x95\x47\x41\x54\x72", p, q, g, b"\xa9\x2e\x44\x65\x10\x76\x4e\xe1\xcf\x81\xc6\xb5\x9b\x51\x60\xa7\x60\x8f\xf8\x95\x2d\x04\x5d\xd6\x9f\x03\x4f\xdf\xef\x93\xf6\x33\x60\x7e\xc2\x09\xb1\x06\xc6\xac\x8f\x0c\xc6\xff\xa6\x4b\xb9\xa4\x48\x45\x60\xb8\x38\xd6\xf2\x4c\x99\x3a\x95\x4e\xfc\x9d\x5e\xe1\x66\x56\xaa\xba\x2a\x0d\x5a\x94\xe7\xa3\x46\xc7\xe5\x01\xaf\x83\xf1\x31\xdb\x9e\x0c\xab\x87\x89\xfa\xb1\x9b\xd5\x91\xec\x22\x7f\x39\xb3\x49\xbe\x7f\x8d\x0d\xf5\x8c\xa0\x39\x6e\xfb\x1e\x76\x54\x93\x35\x90\x4b\x88\xec\x21\xcd\x32\x65\xc5\x43\xc4\xe8\x0e\x9d\xde\x7c\xb5\xc9\xea\x8c\xdd\xa2\x3d\x96\xef\x1c\x38\x39\xad\xe8\xed\x4a\x5c\xd5\xfd\x98\xb7\x9b\xce\xee\xd9\xc6\x41\xc5\xa7\x75\x8d\x05\x29\xac\xea\xf2\x7b\x50\x14\xf1\x3d\xfc\xaa\x26\x7a\x14\xa0\x84\x1b\x36\x89\x7b\x6e\x1e\x89\x17\xb7\xf7\xcb\xf7\xcf\xf1\xd1\x95\x3a\xc4\x3c\xc0\x4a\xb0\x6c\xf1\x11\xe0\x06\x49\x7e\xb4\x2f\x28\xcb\xc9\x05\xd6\xf1\xcd\x5d\x83\x94\x85\x79\x83\xe1\xc9\xe5\x52\x01\x5a\x45\x1d\x0c\x13\xa6\x84\x8a\x8f\xc5\x6b\x79\xde\xc1\x72\x3a\x80\x67\xff\x18\x93\x1c\x85\x2c\xeb\x81\xaf\xfe\xc1", b"\x0c\xf5\x26\xd8\xa0\xf9\xc9\x12\xd1\x43\xf3\xf8\xaf\xde\xd4\x59\x8b\x2a\x5a\xaf\x20\x0e\x07\x49\xea\x27\xde\xfe\xb7\xf2\x8f\x3a", b"\x87\x7a\x90\x66\xf6\xc5\xae\x78\x25\x1d\x9d\x14\x0b\xcf\x39\xae\x91\x2d\x18\xbf\x13\x1b\xdc\x7e\x9d\x61\x01\x2d\xaa\xa4\x29\x2c", ); test::( b"\xc0\x0a\x8a\x2f\xff\xd1\x0b\xc2\xea\xb6\x3b\x8e\x37\x5d\x0c\x10\xf9\xdf\xae\x28\x48\xba\x42\xaf\xe6\x08\x5a\xee\xc2\x6e\x21\xaf\x3e\xaa\x49\x3c\xe4\xb3\xd9\x5a\x31\xfa\x50\x2a\x60\xab\x88\xe8\x05\xf4\xfd\xf8\x89\xed\x91\xc1\x54\x21\x71\x80\x84\xcd\x0d\x64\x47\x95\x74\x9b\x1a\x6b\x18\x3d\x74\x78\x2d\x52\xc7\xba\xbf\x74\x00\x39\x3c\xee\x69\x8a\xf5\xdc\x01\x0c\x0f\xf7\xf5\xac\xdf\x02\x08\xf9\x3e\xe7\xe4\xef\x58\xda\x12\x3d\xfd\xe7\xf0\xa3\x4e\x20\x9b\xba\xec\x61\x00\x72\x93\xfd\x11\xaf\xa6\x0b\x65\x22\xc4\x5d", p, q, g, b"\x75\x60\x10\x5b\x85\x86\xc4\x53\x2b\xf1\xb5\x1e\x0d\x2c\xf9\xa7\x13\xa5\xea\x5d\x40\xe2\x62\xce\x01\xeb\xda\xf1\xee\x53\xd8\x57\x12\x9e\x15\x29\xa0\xf8\xdf\xf6\x3e\x86\x20\x2c\x11\x1c\x6e\xb2\x89\x43\x9c\xb1\x5c\xd5\x9f\xc2\x18\xab\xe6\x19\xc9\x51\x62\x50\xf1\x27\xfa\xfe\x9a\x53\x07\x62\x74\xf3\x06\xf0\xb7\x87\x1c\xff\xbd\x15\x6b\x1a\x88\x19\x79\x5f\x0a\x99\x55\x86\x47\x56\x65\x02\x74\xb8\x3e\x67\xca\xa4\xe2\x15\xf8\x33\xaf\xd5\xa7\x7d\x05\x94\xb2\x1b\x4b\x54\x35\x6a\x98\xa5\x6a\x0b\xf6\x17\x7f\xaf\xfb\x9f\xdf\xd8\x88\xd6\x53\x8a\x1c\xe7\x60\x59\x85\x4b\xd1\xf0\xa2\x07\x61\x28\x1d\x7b\x75\x17\x57\xc6\xec\xc9\xb1\xe8\x13\x11\x96\xd0\x66\x95\x97\x21\x3a\xe7\x3e\xdb\x99\x65\xda\x9f\xf3\x72\x42\x08\x51\x15\x50\x11\xf6\x91\xa0\x3a\x7f\x1e\x20\x40\x29\x15\x75\xb8\x6f\x59\x59\x98\xa0\x6e\xf7\x9f\x4e\xad\xba\xe2\xbd\x9e\x2e\x47\x7d\xd7\x26\x84\xd8\xef\xdc\x1e\x83\x5f\x7f\x0f\x5c\x93\x63\x5c\x18\x1b\x96\xcc\x7c\x0e\xaa\x27\xee\x62\xc9\x22\x7e\xd9\x48\x5a\x8c\x82\x2b\x32\x24\xe9\xe2\xb7\xac\xc1\x09\x56\xf3\xd4\x9a\x6f", b"\x98\xfe\xe1\x0c\x85\xab\x46\xd3\x34\x75\x87\x34\x81\x9e\x68\xb5\x04\x64\x39\xcd\x0b\x66\xbe\x26\xd4\x37\x60\x61\x3a\xc7\x7b\x8c", b"\x66\x5f\xab\x98\xdd\x43\x7e\x06\xa4\xf8\x77\xee\x21\x89\x86\xe3\x7c\x2c\xb2\xd2\x37\xe5\x98\xd9\x8f\x1b\x7d\x4e\x82\x9a\x84\x6b", ); test::( b"\x27\xf0\x1b\x47\xd1\x5f\x7d\x19\x6f\x26\x67\xb7\x5e\xd1\x5b\x89\xd7\x44\x3f\xb4\xfa\xb0\x68\xf4\xad\xb6\x71\x75\xca\x70\x07\x1d\x52\xe2\x70\xf6\x89\x64\xf9\xfb\x0e\x0e\x14\xed\x5d\x29\x54\xa3\x3d\x93\x80\x7a\xcf\x3c\x82\x50\x0e\x8b\x9f\x5f\xc5\x51\x0c\xc3\xbd\x6a\xaa\x1d\xaa\xc8\x30\x91\x28\xef\x4c\x0b\x4c\xac\x02\x64\x25\xae\xfd\xd7\xe6\x9c\x22\xc3\x2e\x5f\x8d\x2a\x6e\x8f\x2e\xa2\x91\xac\x33\xda\x6c\x71\xa1\x95\x3e\x44\x3c\x0e\xa2\x06\x56\x8a\xad\xef\x2b\x96\x46\x6c\xbf\x76\xbf\x14\x9d\x89\xd8\x6f\x52\x9f", p, q, g, b"\x38\xfa\x99\x4a\x1f\x61\xab\x79\xee\x7a\x7e\x6f\x68\x9c\x38\xf6\xc2\x82\x6f\x06\x64\x7b\x16\x63\xcd\x81\x2a\xdb\x36\xd7\xfd\x7c\xcc\x50\xe9\xa9\x0d\x02\xbf\x7c\x3f\x12\xa2\x28\xc6\x92\xc0\x56\xfb\x3b\xd6\x08\xf5\x1a\xa4\x01\x02\x2c\x83\x97\x91\xe6\xa6\x78\x18\x5c\xd3\x1d\x88\xcc\x66\x1a\xf2\x9e\x5d\x23\x81\x42\x18\x1d\xd3\xf6\xe7\xc8\xb0\x57\x85\x22\x1e\x62\xfd\xb3\x6c\x71\xe0\x7f\x51\xd7\x32\xe7\xe0\xca\xb5\x20\xa7\xf2\xfc\x5b\x18\x31\xb0\xa6\xba\x28\x0e\x00\x32\x1c\xb9\xa0\x25\xdb\x65\x38\xab\xd6\x72\x46\x3d\xbf\xf5\xca\x81\x99\x36\x76\xbc\xba\xf0\xf6\xe9\xc7\x54\xf2\x4d\x65\x4e\xe7\x87\x9b\xc0\x3d\x7d\x4b\xc8\xe8\xca\x58\xfb\x9b\x39\x29\xa3\xc3\x83\x65\xcd\x2e\x20\x57\x29\xe9\xde\xf0\xa0\x01\x08\xdf\xfe\x94\x07\x27\x1e\x17\xd3\x55\xec\x4b\x29\x00\x3e\x0c\xaf\x0c\x5b\x2a\xcb\x9b\xd8\xe5\x2d\x44\x10\xba\xa9\xb9\x7a\x49\x87\x4c\x14\xbe\xeb\xf0\x3a\xbf\x28\xa9\xec\x59\xbc\x17\x38\xb8\xdd\x42\x23\xd4\x7a\xa3\x36\xac\xbc\xa7\x66\x2f\xc6\x9a\x6f\xef\xee\xcf\xfd\x47\xf6\x73\x7e\xcd\xa3\x31\xd1\xba\x5c\xdf\x02\x3d", b"\x8d\xad\x02\xc0\x2a\xd3\x4f\xe4\xe7\x58\xff\x5c\x81\xd5\x38\x4c\x40\xd2\xc4\x9d\x0a\xc7\x77\xba\xd1\xcd\xeb\xc5\x8e\xc0\x1c\xfd", b"\x0f\xe4\xe1\xf6\x87\x5c\x11\x3f\x1c\x17\xa0\xf0\xed\x22\x8d\x44\x21\x3f\x8d\x7e\x2f\x15\x56\x7e\x57\xce\xb2\xe8\xb1\x09\x8f\x7d", ); test::( b"\x73\xcc\x5e\x4a\x18\x8d\x28\x14\x46\x69\x41\x38\x90\x14\xea\x45\xa1\xa0\x65\x25\xd2\x06\x9c\xf4\x88\x3e\xbc\xb5\xf2\x2a\xb1\x28\xc0\x0f\x04\x1c\xf6\x9f\xd9\x4b\x33\xfd\xad\xe7\x85\x48\xf6\x52\x3c\x83\x8b\x87\xcc\xd8\x68\xf3\xd3\xd0\xa9\xa0\x00\xf2\x78\xba\x54\x04\x8b\x9c\xad\xac\x7a\x99\xd9\x8d\xef\x51\x71\x31\x91\xad\x83\xe5\x23\x2e\x3e\x86\x49\x72\x45\xc8\x0b\xc7\x10\xfd\xd7\xfa\xaa\xd8\x8c\xe9\x2c\x89\x4f\x8c\xad\x3d\xe0\x07\x5c\xab\xa3\x37\xa2\x22\xcb\x7a\x3d\x7c\x2d\x93\x7b\xcf\xe4\xb6\xe6\x9d\x38\x8d", p, q, g, b"\x52\x66\x42\x7a\xd4\xc1\xcf\x3e\xa2\x29\x37\x7a\xd3\x97\xc7\xd5\x61\x35\x12\xfc\x27\xf2\xce\x37\x40\x7d\x2c\xea\x8e\x19\x99\xae\xbb\x8f\x37\x67\xee\x96\xcb\x92\x7e\xbd\xd4\x3b\x8d\xbc\x10\xba\x2c\x47\x84\x3d\x3f\x43\x36\x8d\x9e\x44\x2b\xf5\x1e\xbc\xf2\x0b\x48\xb5\x43\xa4\xc3\x88\xbb\x3a\xe3\xe4\x02\x7a\xcb\x65\x7d\x1b\xf7\x4a\xbe\xb8\xb9\x98\x42\x13\x08\x77\x0f\x70\xb3\xf7\xb1\xd9\x10\x21\x9a\x12\x10\x26\x03\x40\x12\x3b\x95\xdb\xa1\x87\xe0\x0c\xb0\x67\xf7\xe3\x77\x92\x34\x12\x02\x55\x4b\xfc\x8a\x23\x5f\xc0\x1e\xcb\x09\x9e\xc3\x61\x5a\x67\xa3\x61\x0d\x4d\x8c\x2d\xad\x16\x08\x70\x24\xf5\x97\x3e\xb1\x84\x00\xc2\x9c\x05\xd6\x98\x4d\x1c\x15\xc1\x59\x42\x28\x27\xc0\xdb\xb2\xbf\x45\x09\xd7\x10\xc4\x97\x2e\xe9\x3b\xe7\x28\x3a\xad\xd9\x91\xae\x8e\xf0\xe9\x73\x12\x11\x8f\x19\x5d\x30\x4f\xbe\x96\xd5\xae\xbf\xb2\x12\x03\xea\xe6\x11\x78\x31\xf9\xbe\x90\x99\xd3\xd4\x76\xb8\x3f\x65\xab\x22\x5f\x8b\xe4\x93\xa8\xad\x21\x62\x0f\x25\x9d\x8a\x44\x20\x08\x10\xc8\xe5\x62\xae\xa8\xe7\xa6\xbc\x23\x8c\x12\x9b\x19\xf2\x53\x1a\x6a\xf0", b"\x77\x23\x6b\x33\xb0\x42\x85\x42\x57\x75\xee\x3f\x65\x8b\x37\x61\x29\x5c\xbf\xf8\xe4\xbc\x05\xab\xdd\x22\xe3\xd7\x8b\x1b\x6d\xa2", b"\x43\xfd\xbd\x93\x6a\xb4\x04\x59\xf6\x84\x30\x56\xca\x77\xe1\x25\xb6\xec\x5a\xd9\x45\x04\x1c\x1f\x6a\x27\x70\xbe\x9d\xfc\xc6\x82", ); test::( b"\xc0\x74\x6b\xef\xd2\xaf\xc6\xca\x15\xcd\xb1\x45\xc1\x84\x62\xc5\x15\xbd\x42\x79\x4c\x4c\x7e\xe5\x13\xcd\x9a\xeb\x0f\xc6\xfc\x30\x48\xb6\xc7\x23\x16\x34\x98\x4a\x1b\xe8\x24\xc7\x75\xf9\xc9\xb0\x28\x25\x5f\x5b\x3c\x3d\x8f\xa0\x8d\x47\xab\xa0\x77\x55\xb5\xf1\xb5\xb0\x08\x93\x3e\xff\x35\x83\x8f\x15\xa0\x2b\xa9\x36\x6c\x10\x36\xd3\xff\x19\xe8\x81\x99\xef\x86\xa8\x82\x27\x27\x2c\xf4\xe4\xe0\x0f\xfa\xd9\xc3\x6b\xeb\xac\x30\x57\x8b\x00\x21\x4f\xb2\x9b\xae\x43\xcf\x55\x5e\xd4\x31\xa2\xf2\x49\x22\x43\x0b\x14\x96\xfb", p, q, g, b"\x43\x1e\xee\x49\x09\x0a\xd5\x8f\x4a\x87\x4c\x2e\xb5\x89\x79\x69\xfa\xfe\x32\x74\xbd\x74\x86\xb6\x5e\x35\x19\xe4\x30\x9d\x63\x6a\xce\x68\x64\xd5\xca\x4d\x84\x48\xa3\x57\xca\xfa\xc1\x5a\xc3\xcb\x3b\xd7\xb2\x75\x5b\x3c\xb6\xdb\x0a\xf1\xa4\xe9\x1b\x2d\x1f\xcb\x28\x56\x1b\x17\x0f\xaf\x2e\x06\x90\x07\x1b\xc0\xf6\xe4\x2b\x2d\x82\xab\xe5\x64\x6d\xdb\x8f\x9b\x99\xee\x1d\xaf\x59\x06\x03\x6f\x39\x5d\x82\x4d\x08\x0b\xfa\xea\x10\x30\x48\xb3\xf4\x4d\x06\x36\xbc\x7a\x6a\x88\xe9\xb0\x04\xa3\x63\xb9\x9d\x24\xa8\x9b\x6e\x97\x37\x9b\x20\xba\xcf\x48\xc7\xae\x2e\x9b\xf7\xe2\x81\xfe\x3b\x4d\x7e\xb9\x47\xa1\x02\x39\x6d\x52\x3a\x1e\x85\xce\x17\xfd\x25\xf2\x71\xf3\xc2\x21\xa5\x68\x1e\x9f\xb7\x7d\x64\xd6\x24\x10\x39\xac\x8a\x85\xda\x32\x74\x1b\xac\xf0\x06\x60\xe4\x21\xfe\x85\x0a\x0f\xe7\x3a\x08\xee\x3a\x9b\x06\x9c\x6d\x91\x14\xc1\x97\x52\x72\x12\x74\x68\xf9\x00\x85\x52\xea\x4c\xdf\x9d\x96\x56\x1e\xa6\x9a\x64\x66\x95\x24\x25\x00\xf2\x31\x8b\xda\x82\xda\x63\x3e\xf1\xae\x04\x97\x01\x4a\x63\x7b\x15\xa5\x72\xdd\xdd\xec\x07\x0d\x19\xd8\x84", b"\x79\x6d\x7d\xba\x32\x2d\x92\xa0\x83\xda\x7a\x58\x8f\xb6\x23\x8d\xc8\x6b\x1f\xc5\x10\x4e\xd6\x00\xc9\xb4\xc6\x88\xed\xf8\x05\xe9", b"\x01\x2c\x1f\xf4\xde\x8e\xe3\x86\xb9\x51\x27\x5e\x25\x05\x81\xd6\x61\xd0\x30\xa4\xd8\xfe\x11\x54\x32\x28\x8a\xb0\xa4\xbd\x46\xcb", ); test::( b"\xb8\xb9\x15\xcf\x4e\xa3\xb0\xc4\xcd\xcd\x8b\x2a\x06\x47\x9e\x71\xbb\x47\x97\x29\x4b\x6c\x41\xca\x87\x0d\x3c\xb2\xec\x2c\xb5\xa4\x9f\x6b\xfe\x5b\xcd\x10\xbe\x60\x9e\xd3\xe1\x88\x2a\x31\x23\x95\xfc\x99\x13\x45\xab\xa5\xb5\x66\xe6\x79\x60\xb4\x29\x13\xdb\x66\x90\x41\xea\x30\xc2\x99\x47\xed\xde\x7b\xdc\xfc\x08\x96\xb9\x76\x60\x74\x0d\x6c\x79\xf0\x08\x86\x65\xf5\x1d\xad\xcf\xa0\x7f\x7b\xe4\x48\x21\xd6\x0a\x8f\xfd\xe4\xe5\xcb\x1f\x98\x13\x9f\xf9\x1c\x9c\x6f\x31\x26\x59\x63\x44\xc5\xf7\xef\xf4\x00\x49\xd3\xf9\xae", p, q, g, b"\x1b\x37\x22\x76\x42\x64\xe1\x79\x94\xf3\x34\x3b\xf2\x60\xc7\x35\x75\xd1\x06\xf6\x30\x7f\x2e\xaa\x3f\x7d\xcd\x5a\xf8\x04\x46\x3d\xdb\x6b\xbe\x38\xa3\x8f\x5a\xb5\xa8\xae\x67\x01\x31\x7c\xf6\xc2\x67\x04\x9f\xc9\xb8\x40\x78\x24\x1f\x82\xd3\xc6\xb7\xe5\xbe\xba\x5c\x14\x27\x03\x02\x97\xf1\xdf\x25\x81\x48\xe5\xf9\xeb\x41\xeb\x20\xa8\x68\x77\xfc\xc0\x6e\x53\x73\xcd\x50\x56\x26\x13\xd3\x07\x64\x95\x39\xd2\x8c\xb5\x24\x18\xd4\x2f\xd5\x97\x58\xb6\x11\x85\xe7\x92\x99\x2b\x5a\x58\x12\x29\xb4\x34\x03\xd7\x93\xb0\x4d\x87\x8e\xb9\xb9\xd1\x2e\xa1\x0d\x2e\x64\xd1\x53\xd3\xfa\x41\x88\x1f\xe7\x9a\x67\xac\x40\x8a\x53\x48\xd7\x92\x39\x56\x7d\xca\x96\xe1\xea\xd3\xc6\xac\x22\xdb\xcd\xbc\xb5\x18\x5b\xf8\xac\xe5\x76\x60\xa4\x25\x21\x04\xe5\x04\x7c\xac\x87\x85\x1d\x28\x15\xb1\x2a\xe8\xae\x96\xab\x2f\x33\x34\x5e\xa1\xcf\x5f\x2e\x58\xa4\xdd\xcb\xa2\x62\x65\xc0\x6d\xf6\x5a\xfc\xc6\xe8\x52\xb3\xf9\x10\xc8\x77\x8d\xe2\x8a\x9f\x09\x81\x58\xed\x0e\xca\x65\x2d\xda\x2f\x9f\x4a\xc8\xa1\x7a\x9b\x25\x24\x10\xec\x59\x73\xa6\x06\x3b\x64\x25\x68\xf1", b"\x6b\x4b\x0e\x1e\x7c\xbd\xef\xed\xb1\xdf\x1f\x52\x9e\xce\x47\x89\x1f\x7b\x9e\x95\x9a\x3f\x85\x56\xba\x4b\xef\x7b\xb9\x85\x65\x60", b"\x7e\x93\x3b\x44\xed\xe6\xb2\xe9\x41\xb6\x0c\x37\xdc\xd1\x56\x82\x84\xde\xf2\x29\xc0\xa2\xbb\x90\x93\xf4\x82\x90\x00\xc4\x40\x9a", ); test::( b"\xdf\xfd\x45\x8a\x80\x8f\x18\x89\xd7\xf3\xd6\x19\x7f\x0e\x41\x92\x0a\xd7\x31\x12\x4c\xee\x30\x8c\xb9\x0d\x23\x61\xb2\x3f\xee\x96\x9c\x0e\x10\x58\x35\x54\x9e\x5d\x0a\x3f\x76\x90\xd5\x86\x2d\x4c\xd6\xcc\xb3\x3a\xd1\x80\x94\xc8\x5c\x96\x50\xd7\x5b\x24\x84\x96\x39\x0a\x0b\x89\xe7\xdc\x7d\xc0\xd3\xa6\x13\x0d\xd9\x77\x89\xeb\xf1\x05\xf8\xe5\x5d\x8f\x0a\x11\x62\xfb\x3c\x6b\x52\x9e\x2a\x80\xdd\x51\xe9\x04\x5e\xf8\xec\x42\xca\x4b\xc4\x6a\xbb\x65\x39\x58\x8b\x53\x1c\x97\x99\x56\x0c\xf4\xea\x80\x6c\x3d\x93\xd0\x43\xe5", p, q, g, b"\xea\x43\x7a\xd0\xee\x92\x64\xde\x87\x92\xb6\x77\x20\x7e\x54\x70\x90\xb3\x2d\x6a\xb4\x60\xb4\xd5\x89\xd8\x42\xed\x0a\x0b\x4f\xb4\xc6\x35\xe4\x44\x3b\xf6\x0e\x46\xcb\xa8\xd2\x26\xf6\x59\xc7\x6d\x2c\xa0\x1c\x69\x70\x7b\xa6\xd9\x77\x25\x5c\x45\x84\xb7\x47\x40\xa7\xcd\xec\x4c\x97\x3e\x3d\x16\xab\x6a\xf6\x0c\xd3\x12\x3c\xa1\x2e\xd5\x97\x1e\x69\xea\xff\xa3\xda\x07\x70\xd8\xe1\x22\x88\x89\xcd\x68\x25\xe1\xb8\x58\x46\xf4\xf7\xec\xdb\x33\xf1\xe5\xc7\xac\xd6\xb2\xad\xd1\x30\x8c\x5c\xec\x43\x97\x28\xd0\xcc\x62\x5e\xb8\x9d\xf3\x4f\xb9\xc0\xdd\x45\x68\xf9\x79\xde\xea\xd2\x86\xc5\x01\x45\x90\x3a\x0d\xcc\xca\x72\x39\x87\x4b\x46\x83\xd3\x67\xed\x31\x69\x6e\xec\xad\xa9\x0d\xce\xd8\xa9\xb1\xe0\x13\x64\xb8\x79\x46\x60\xc6\x0f\x40\x59\x07\x94\xc9\x5a\x61\x4c\x04\x56\x3c\x92\xd4\x44\xb5\xec\xf0\x12\x86\xb1\xbf\xfe\x9e\xd9\xef\x91\x5b\x4d\xb8\x20\xea\x5c\x9a\x5b\x3d\xed\xcf\x89\xa3\xe2\xc3\x78\x71\xd2\x1b\x76\x39\x90\xc7\xbb\xf4\x44\x18\xf9\x1c\xdb\xce\x43\x61\xee\xb2\x27\x51\x6c\xb3\x44\x40\x9d\x2c\x65\x1f\x0d\xc2\x9e\xc8\x26\x23", b"\x31\x52\xfc\x28\x6f\xed\x44\xf2\x8b\x1a\xf2\xd5\x37\x59\x2c\x56\x91\xd6\x79\x8c\xae\xd9\x05\x91\xb5\x88\x8b\x0d\x6f\xe6\xbb\x07", b"\x7b\xff\x61\xa8\x67\x6f\x0d\xf1\x89\x65\x4f\x25\xc5\x81\x2b\x34\x1d\xd1\x7f\x4f\x44\x66\x77\x89\xcc\x88\x7c\x19\x1b\xf4\x72\x02", ); test::( b"\xa6\x51\x60\x19\x72\x7d\x95\x63\x9d\xb0\x38\xf9\x03\x06\xa8\xd9\x4f\xac\x52\x43\xdc\x7b\x67\xc3\x56\x8d\x63\xd8\x5d\xea\xd1\xcf\xdd\xbb\x2b\x33\x0b\x61\x95\x89\xbd\x58\x2a\xf1\x5f\x08\x11\x17\x75\x04\xfd\x5b\x7a\xad\x7b\x29\x86\x47\xa3\xf6\x47\x97\xe3\xda\x5f\xe5\xbf\x87\xb6\x5c\x2d\xde\xc5\x76\xa8\xf4\x06\x60\x68\x6b\x80\x8b\xa4\x2e\x54\xbf\xd0\xe9\xe4\x80\x82\xd6\x90\x4f\x8e\x19\x05\x0e\x54\xea\x47\x97\xa2\xf4\x01\xff\x7c\x9f\x3d\x21\x7b\x52\x6c\x03\xbe\x92\x01\xc0\xdc\x1b\x0e\x8e\x05\x4b\xbb\x32\xc3\x82", p, q, g, b"\x97\x79\xeb\x53\x38\xdc\xae\x73\x77\xb1\x84\x70\x18\xce\x72\xc1\xed\x4c\x55\x29\x2a\x96\x3f\x81\x60\x8e\xf3\x32\x05\x0f\x0a\x48\x45\x19\xaa\x96\xb1\x8b\xcc\xe8\xe1\xb4\x9c\x11\xa2\x00\xc1\xab\x4a\x75\x72\x6b\xcc\x84\x24\x85\xdf\x63\x14\xe5\xc3\x9f\xec\x62\x2d\x81\x94\x34\x29\x4d\xbe\x1e\xb6\x47\x88\x5c\xe8\x41\x52\x7c\x03\x48\x1b\x7f\x22\xee\x58\x6d\x8c\x2b\x1a\x84\x71\xa2\x75\x7b\xff\xbd\xd9\xc2\x6f\x12\x50\x65\x68\x55\x09\xff\x0e\x4c\x8b\x82\x6d\x73\xc6\xe1\x2f\x6d\x4b\x93\x19\xcd\xfa\x72\xc0\x69\xe0\x7b\x2d\x2c\x25\x4b\x33\x0c\x06\xf4\x88\xd6\x59\x8c\x74\x76\xce\x0f\x33\x30\xc9\x7e\xc3\x6b\x7c\x10\x87\x13\x88\x47\x24\x51\xa3\x4a\xfb\x7b\x4d\x4e\x25\x1f\x9f\x72\xa4\xa3\x8a\x68\x51\xaa\xb8\x65\x07\xb2\x83\xe8\x90\xc3\x1b\xa9\x6d\x0a\x1e\x55\x72\x63\x7b\x2d\x84\x67\x06\x0c\x07\x36\xd1\x1d\x07\x44\xe3\x32\xa1\x9f\x59\xae\x29\x20\x89\x4e\x9c\xff\xac\xfe\xda\x64\xae\x1f\xf4\x86\x98\x82\xdf\x3b\x69\x0c\x7c\xe8\xfe\x0e\xb8\x81\x71\xe4\xf2\xab\x86\x24\xe6\xac\x77\xdc\x89\x07\x61\x32\x35\x16\x3e\x0a\x2c\x7d\x9f\xd6", b"\x72\x22\xd5\xeb\x39\x24\x60\xde\xfe\x8f\xe3\xdf\x18\xfa\x53\x4f\x30\x60\x23\x5f\x1e\x8d\xce\x53\x70\x76\x2e\xc6\xfc\x11\xe6\x90", b"\x43\x51\xc4\x28\x03\x1c\xd9\xaf\x56\x7b\x11\x63\x03\x7a\x4e\x37\x69\x62\x62\x0c\x4e\xc2\x3c\x43\xb7\x10\x58\x79\xf9\x5b\xf6\x14", ); test::( b"\x1f\xfa\x7c\xf5\x5f\x92\xf2\x34\xa2\x4b\xd3\x29\x67\x44\xd5\x43\xa4\x33\xc9\x07\xc1\xf7\x7d\x8b\x70\x6f\x4b\x62\x62\xd0\x96\xe2\xdf\xe7\x13\xfa\x9c\xa8\x0e\x68\x57\x93\x96\xfc\x11\xa1\x2c\x03\x31\xcf\xb7\x74\x5d\x96\xb0\x05\x20\x4e\x48\x3f\xbf\x8f\x9f\xdc\x45\x8e\x2c\xa8\x61\x34\x06\x06\x9d\xf5\xf4\x49\x18\xef\xf8\xc5\xf5\x4b\x8b\x4d\x97\x2e\x07\xa4\xb8\xe0\x6d\x84\x26\xa7\x08\x74\xce\xfe\x6e\x93\x40\x4c\x1e\xb3\x81\xc2\xd0\x70\x1c\x37\xf8\x5a\xfb\x16\x01\xa0\x9f\xff\x8e\xcf\xda\xf6\xcb\x64\xad\x9b\xd8\xb7", p, q, g, b"\x18\xe2\x98\xe6\x30\x13\x89\xd4\x86\x44\x67\x4f\x83\x39\x48\x7a\x86\x51\xb0\x76\x8d\xee\x42\x59\x05\xe8\x03\xab\x35\x7c\x7f\x9f\xa0\x5d\xd5\xe2\xee\x84\xbf\xe1\x05\xa0\x92\x71\x62\x74\x55\x7e\x06\x3d\x08\x6e\x78\xb7\x81\xa4\x3c\x56\xa4\xe0\xea\x11\x5c\x5c\xfe\xac\x57\xa4\xc9\xb7\xe1\xef\xfb\x89\x41\x36\x89\x92\x8f\x15\x46\xfe\xb3\x07\x38\x58\x6d\x36\xff\xe3\x38\x08\x3e\xe2\xbf\x5c\x5b\xd3\x44\xbc\x3d\xb2\xa7\x97\x7d\xe2\xb1\xab\x5b\xa0\x06\xd9\xee\x93\xef\x86\x88\xa7\xd1\x0c\xaf\xe2\x7a\xf3\xe6\x71\x01\x3a\x81\x69\x84\x19\x6b\xfa\xcf\x00\x23\x35\xfe\x74\x14\x42\x3e\xd8\xbd\xc8\x03\x27\x37\x2b\x0d\x46\x08\x66\x48\x0b\xdf\x07\x3c\x9d\xef\x79\x77\x13\x1b\x06\xe2\x8d\x14\xae\x1a\x81\x6d\x32\x22\xeb\xaa\xdc\xc8\xd7\xc3\x00\xaa\x82\x0e\x03\x28\xaf\x66\xf7\x42\x06\x1a\xff\x5d\x4b\x71\x76\xa9\x94\xad\x69\xb3\x90\xbb\xdd\x61\x9f\xce\x04\x7d\xc7\xd1\x5a\x48\xea\x71\xaf\xa7\x20\x40\xbb\x14\xee\xaf\x4a\x2b\x23\xd9\x9b\x4d\x97\x7b\xeb\x6d\x80\x61\x01\x02\x1e\xb0\xc3\xa0\xe3\x1e\x54\x57\x9e\x58\xc9\x53\xb5\x5b\x6e\x32\x45", b"\x21\xd7\x0e\xd9\x55\xb0\x9e\xa3\x02\xfb\x79\x29\x78\xd1\x25\x01\x07\x1a\x2e\x8e\x2c\xc8\xf6\x59\xde\xcd\x3d\xf2\x4e\x37\xc4\x66", b"\x2c\xda\xae\xe2\xa5\xa3\xdd\x74\xa6\x77\x95\xf9\x3a\xc1\xd8\x41\x62\x23\x83\x6c\x76\xf7\xfe\x31\xc7\x2e\xc6\x17\x09\x25\xfd\x73", ); // [mod = L=3072, N=256, SHA-1] let p = b"\xfd\x5a\x6c\x56\xdd\x29\x0f\x7d\xd8\x4a\x29\xde\x17\x12\x6e\xb4\xe4\x48\x7b\x3e\xff\x0a\x44\xab\xe5\xc5\x97\x92\xd2\xe1\x20\x0b\x9c\x3d\xb4\x4d\x52\x8b\x9f\x7d\x22\x48\x03\x2e\x4b\xa0\xf7\xbf\xc4\xfa\xfc\x70\x6b\xe5\x11\xdb\x22\x76\xc0\xb7\xec\xff\xd3\x8d\xa2\xe1\xc2\xf2\x37\xa7\x53\x90\xc1\xe4\xd3\x23\x9c\xba\x8e\x20\xe5\x58\x40\xec\xb0\x5d\xf5\xf0\x1a\x1b\x69\x77\xad\x19\x06\xf2\xcb\x54\x4c\xcf\xb9\x3b\x90\x1a\xd0\x96\x6b\x18\x32\xad\x2d\xab\x52\x62\x44\xa3\x15\x6c\x90\x5c\x01\xac\x51\xcb\x73\xb9\xdc\xd9\x86\x0d\x56\x17\x5a\x42\x5d\x84\x64\x85\xd9\xb1\xf4\x4a\x8a\x0c\x25\x78\xe6\xcf\x61\x94\x7b\xc1\xa1\x39\x2f\xdd\x32\x0b\x16\xa9\xd7\x04\x55\xfe\x43\x6f\x2d\x47\xde\xd8\xe8\xe6\x05\xf7\x48\x6e\xb5\x78\xea\x7f\xc4\xff\xd1\x3c\x07\xf9\x99\x6a\xf1\x59\xfd\x41\x1e\x94\x51\x40\x32\x78\xdd\x11\x41\xa8\xc9\x26\xb3\x5c\x96\x38\x4b\xbd\x6b\xee\x09\xc4\x6f\x44\xc3\x6b\x1f\xfc\x71\x97\xf5\xe9\x25\xdb\xe0\x54\x4a\x68\xe6\xab\x8c\x18\xe4\x26\xa4\x66\xb3\x92\xf9\xc2\x7d\xd7\x9f\xef\xa9\xca\x16\x3c\xc5\xa3\x75\x53\x9a\x85\x59\xf2\x77\xf6\x57\xa5\x35\xd1\x96\x4c\x6a\x5e\x91\x68\x3e\xf5\x69\x8e\xba\xa0\x1e\xf8\x18\xdb\xf7\x2c\xb0\x4c\x3f\xf0\x92\xd1\x88\x86\x6f\x25\xcd\x40\x51\x08\xf5\x66\xb0\x87\xf7\x3d\x2d\x5b\xeb\x51\xfa\xc6\xde\x84\xae\x51\x61\xa6\x6a\xf9\x60\x2c\x7e\x4b\xfc\x14\x6f\x48\x20\xbd\xfc\x09\x2f\xae\xac\x69\x13\x3e\x4a\x08\xa5\xb2\x02\xa1\x24\x98\xa2\x2e\x57\xba\xd5\x46\x74\xed\x4b\x51\x01\x09\xd5\x2b\x5f\x74\xe7\x0e\x1f\x6f\x82\x16\x17\x18\xcd\x4c\xf0\x0c\xc9\xf1\x95\x8a\xcc\x8b\xdd\xcd\xfb\xd1\xfb\xe4\x6c\xd1"; let q = b"\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x33\x4a\x26\xdd\x8f\x49\xc6\x81\x1c\xe8\x1b\xb1\x34\x2b\x06\xe9\x80\xf6\x4b\x75"; let g = b"\x99\xab\x03\x0a\x21\xa5\xc9\x81\x81\x74\x87\x21\x67\x64\x1c\x81\xc1\xe0\x3c\x9b\x27\x4c\xfb\xc2\x7b\xc4\x72\x54\x29\x27\x76\x6d\xe5\xfa\x05\x39\xb3\xb7\x3f\x3f\x16\xac\x86\x6a\x9a\xec\x8b\x44\x5d\xed\x97\xfb\xff\x08\x83\x4e\xd9\x8c\x77\xe7\xfc\x89\xe5\xdc\x65\x7b\xef\x76\x6f\xf7\xfb\xf8\xe7\x68\x73\xe1\x7b\xee\x41\x27\x62\xd5\x6f\xe1\x14\x17\x60\xab\x4d\x25\xba\xfd\x4b\x6e\xf2\x5b\x49\xa3\x50\x66\x32\xd1\xf8\xe1\x07\x70\x93\x07\x60\xec\x13\x25\x93\x2c\x5a\x4b\xaf\x9e\x90\x15\x42\x64\xdd\xf4\x42\xec\x5c\x41\xfe\xd9\x5d\x11\x52\x51\x51\xdb\xcf\xb3\x75\x81\x49\xba\xd8\x1c\x62\xb9\xcf\xf7\x81\x6b\x8f\x95\x3b\x8b\x7c\x02\x25\x90\xd1\x58\x4e\x92\x1d\xc9\x55\xf5\x32\x8a\xc7\x29\x83\xed\x5c\xf0\xd0\x40\x56\xfe\x0d\x53\x1e\x62\xf8\xf6\xc9\xab\x3c\x0f\xcd\x44\xe1\x48\x60\xb7\x31\x1d\x25\x61\xc7\x7c\x1d\x32\xf6\xc6\x9d\xc8\xf7\x79\x68\xc9\xd8\x81\xad\x9d\xb5\xe0\xc1\x14\xfd\xa8\x62\x8b\xca\x03\x35\xeb\x7f\xb9\xe1\x5e\x62\x5a\xab\xab\x58\xfc\x01\x19\x4c\x81\xbf\x6f\xb2\xce\x54\x07\x7b\x82\x25\x0e\x57\xc6\xa7\xb2\x5d\xeb\x6e\xe3\x9d\x4b\x68\x6a\x5c\x30\x7a\x76\x12\xb2\xd8\x5e\xe9\x25\x12\x41\x3d\xea\x29\x7e\x44\xf3\x17\xbe\x7c\xeb\x70\xa3\x32\x8a\xf0\xb4\x01\x00\x1a\x41\x85\x62\xb8\xff\xe4\xe9\x77\x1b\x4b\x4a\x8e\x0b\x40\xc7\x91\x34\x9d\x5d\x4e\x45\x9f\xe6\x20\xa1\xa2\xfc\x72\xe2\xf6\xca\x28\x56\x7d\x4c\x26\x32\xbb\xde\x1b\x49\x86\x4c\x06\xbb\x12\x61\x9f\x13\x2c\x1d\xa8\xf5\x71\xef\x61\x3e\xac\x73\x9f\x66\xab\x39\x14\xcb\x3f\xa1\xab\x86\xe0\x5e\x50\x82\xeb\xaa\x24\xeb\xee\xa4\xcf\x51\xbe\xef\xc2\x7d\xf5\x12\xfe\x3f\xee\x7d"; test::( b"\xca\x84\xaf\x5c\x9a\xdb\xc0\x04\x4d\xb0\x0d\x7a\xcf\xb1\xb4\x93\xaa\xb0\x38\x8f\xfb\xad\x47\xb3\x8c\xd3\xe9\xe3\x11\x1c\xfe\x2c\xda\x2a\x45\xf7\x51\xc4\x68\x62\xf0\x5b\xdc\xec\x4b\x69\x8a\xdf\xd2\xe1\x60\x6e\x48\x4c\x3b\xe4\xac\x0c\x37\x9d\x4f\xbc\x7c\x2c\xda\x43\xe9\x22\x81\x1d\x7f\x6c\x33\x04\x0e\x8e\x65\xd5\xf3\x17\x68\x4b\x90\xe2\x63\x87\xcf\x93\x1f\xe7\xc2\xf5\x15\x05\x8d\x75\x3b\x08\x13\x7f\xf2\xc6\xb7\x9c\x91\x0d\xe8\x28\x31\x49\xe6\x87\x2c\xb6\x6f\x7e\x02\xe6\x6f\x23\x71\x78\x51\x29\x56\x93\x62\xf1", p, q, g, b"\xe7\xc2\xee\x18\xc3\xaa\x36\x2c\x01\x82\xc6\xa5\x6c\x25\x84\x62\x80\x83\xc7\x3e\x04\x5b\xed\xa8\xd6\x53\x69\x0c\x9c\x2f\x65\x44\xed\xf9\x70\x2c\x57\xc4\x55\x27\x39\x05\x33\x6a\x5f\x51\x71\x10\x7a\x31\x3c\xd7\xd0\xb0\xf5\x0f\x8d\x33\x42\xc6\x02\x19\xf2\x2a\x90\x23\x39\x40\x59\xd0\x5f\x46\x4c\x44\x96\xd5\x5d\xab\x6e\xb0\x89\x85\x27\xff\x4c\xf5\x67\x8e\x7b\x5b\xfb\x5e\x18\xd9\x2c\x4a\x9d\x73\x28\x8c\xce\x14\x53\x0f\xc4\x70\x2f\x6d\x03\x97\xec\x39\xa8\x80\xc4\xa7\x2d\x35\x87\x30\xc5\x66\x33\x38\x6e\xde\x02\x80\x23\xc1\x79\x1f\x31\x64\xd1\x57\x4e\x78\x23\xc7\x9b\x8a\x3c\xa1\x34\x3e\xa1\x66\xba\x6f\x02\xb7\xff\x7e\x9e\xf2\x19\x8d\xb1\x07\xf7\xcc\x15\x9f\x3b\x6a\x1c\x00\xa7\x8c\x35\x5c\x56\x6d\xeb\x0a\xc6\xfd\xe3\xf6\x33\xcb\x91\x77\xa1\xfb\xc6\xc1\x76\x6c\xa0\x21\xd5\xfe\xc4\x70\x10\x1a\xbb\x44\x0d\x2f\x06\x98\x21\x81\xa8\xc9\x2b\x7c\xdd\x76\x53\x36\xb9\xa1\xe1\xab\x70\x28\x3d\x6d\xb0\xa9\x63\xfb\x64\x8c\x37\xc4\xe2\x9a\x74\xc3\x75\x77\x29\x10\x49\xab\x47\xcd\xbc\x10\x4c\x04\xdb\x96\x66\x81\xea\x8e\xbb\x9f\x00\xcf\x4c\x4a\x54\x62\x11\x73\x79\x57\x5f\xbd\xa4\xb8\x01\x97\x94\x51\xfa\x94\xb1\x9b\x4e\x93\x65\x67\x05\xc0\xf7\x34\xf3\xe0\x91\x4b\xb9\x6c\x1e\x2b\x8a\x0f\xb6\x8f\xaf\x14\x29\x6e\xfd\xf3\x30\x0a\xd9\x5b\xcd\xe8\xb6\x7c\xc4\xb2\x6e\x64\x88\xee\xf9\x25\xcf\xae\xac\x6f\x0d\x65\x67\xe8\xb4\x13\x55\xf8\x9d\x1c\x2b\x8f\xe6\x87\xbf\xa2\xdf\x5e\x28\x7e\x13\x05\xb8\x9b\x8c\x38\x8c\x26\x19\x60\x90\xac\x03\x51\xab\xc5\x61\xaa\xdc\x79\x7d\xa8\xcc\xea\x41\x46\xc3\xe9\x60\x95\xeb\xce\x35\x3e\x0d\xa4\xc5\x50\x19\x05\x2c\xaa", b"\x21\xca\x14\x8c\xdf\x44\xbe\x4a\xe9\x3b\x2f\x35\x3b\x8e\x51\x2d\x03\xad\x96\xda\xfa\x80\x62\x3f\xde\x49\x22\xa9\x5f\x03\x27\x32", b"\x73\xe4\x8b\x77\xa3\xaa\x44\x30\x74\x83\xc2\xdd\x89\x5c\xb5\x1d\xb2\x11\x21\x77\xc1\x85\xc5\x9c\xb1\xdc\xff\x32\xfd\xa0\x2a\x4f", ); test::( b"\x3c\xca\xd0\x01\x85\x19\xa8\x98\xf8\x7d\x8c\xe5\xf2\x8c\x0d\x93\xab\x16\xc5\x1a\xdd\xf4\x17\x33\x22\xcb\xc4\x9d\x48\xca\x9e\xa3\x7e\xbe\x8b\xc9\xd8\xc1\xb3\xf7\x83\xf8\xcf\x59\xcf\x3f\xcb\xa1\x0a\x39\x3e\xb2\xdd\xd9\x89\xce\x25\x8e\x73\x78\x8c\xe7\x4b\x0c\xe8\x22\x3d\x24\xe9\x93\xcf\xea\xfa\x49\xcc\x8e\xc1\xb8\xec\xee\x01\x7d\x83\xa1\x1b\xb7\x03\x4c\x77\x92\x06\xc3\x64\xac\x46\x3c\xfe\xd3\x04\x7e\x1a\x2b\xf5\xc5\x91\x77\x3b\x1d\x88\x2b\x31\x0b\xfb\xa2\xdb\x87\x89\x3c\x89\xa5\x44\x2c\x08\x45\xbf\x64\x4e\x21", p, q, g, b"\x37\x50\xd3\x63\x53\xbf\xd2\xe9\x97\x3e\x26\xa5\x55\xbc\xf0\xd8\x34\xd3\xd6\x62\x0c\xb6\x65\x79\x19\x9e\x04\x0c\xe8\xec\xcf\xae\xe6\x60\x04\x6e\x78\xdf\x66\xe8\xff\x64\x15\x23\x04\x6a\xdc\xf4\x25\xb8\x31\x9d\xb2\x44\x76\x80\x19\x4c\x3a\x38\x6b\x52\x01\xdd\x1a\xc6\xbf\x3e\x66\x39\x4e\x93\x9e\xaa\xac\xa4\xfd\x3f\x38\x6f\xcf\xe1\xd5\xef\x45\x24\xb0\x6c\x5e\xd9\xa1\x57\x46\xf2\x4b\xae\xf1\xee\xc4\x1e\x68\x3b\xf3\x53\x71\x08\x44\x95\xd4\xda\x8e\x72\x7a\xeb\xa3\x07\xfb\xa0\x00\xa7\x69\xa2\x34\xe3\xc4\x60\x97\x04\xb3\xba\x4d\xfd\x6a\x86\x44\xfb\xa5\x60\x83\xda\xc8\x48\x75\x1b\x52\xa8\xc2\xcd\xc4\x79\x46\xcd\x21\xea\x24\x38\x3c\xc6\x24\x4f\x00\x09\x18\xe9\xa2\x32\x76\xb6\x06\xc5\x68\x85\x65\xc4\x4d\xdf\x77\x88\x18\x1b\x78\x95\x65\xa6\xbe\xcd\x25\x71\x23\xbb\x81\xa2\xcb\xf9\xdb\x7f\xa3\x84\xe0\xca\x41\x80\x4e\xd7\xcd\x3c\x9c\xa0\xe1\xf8\xbb\x39\x0b\xff\x50\x21\x3b\x06\x29\x68\x24\x09\x93\x37\x70\xf6\xe0\x3a\x5c\x4e\x7e\x89\xad\xe9\x02\x55\x60\x97\x86\xf6\xb2\xfc\x5a\x7a\xa7\x56\x6b\xcf\x7f\x72\x5a\xea\xd4\xcf\x45\x6c\x5f\x5e\xd7\xdc\x3e\x91\xe2\x0d\x94\xd1\xaa\x2f\x65\x68\xc9\x7a\xbd\xf2\x1e\x0b\xa8\xcb\xfb\x65\x61\x30\x5c\xb4\x51\x75\xb1\xab\xd7\xf3\x9b\x9a\x11\xc7\x97\x92\x6b\x94\x4f\x5d\x13\xc3\xd7\x0e\x0b\x2a\x8c\xa1\x8e\x1f\x5c\xda\x8c\xe6\xac\x43\xec\xbc\x1f\xef\x88\x1f\x5e\xef\x5a\x84\x2f\xd5\x98\x4a\xd1\xe3\x21\xa3\x17\x00\x5a\xd4\x78\xcb\x47\xc9\xcf\xf6\x12\x67\xf1\xd4\x96\xfd\xed\x0a\x48\x32\x8d\x62\x9b\x7b\x20\x0c\x44\x16\x34\xee\x90\x88\x79\x01\x17\x45\xbc\xab\x66\x60\xe1\x55\x83\x74\x80\x14\xd6\xde\x2f\xe2", b"\x1e\xf7\x72\x33\x45\xb2\x01\x3b\x71\x10\x4c\xee\xdb\xe7\xa9\xca\xd4\x30\x01\x89\x68\xbb\x29\x5b\x67\x2c\x2b\x57\xb9\xa1\x08\xb9", b"\x72\x85\x2d\xa4\x85\xc0\x83\x6a\x8e\xbd\xbc\x4c\x99\x6f\x7f\x6c\xb6\x5e\x99\x39\x1c\xe0\x6b\x19\xa7\x18\x76\x18\xe9\xa9\x55\x84", ); test::( b"\x1f\xc9\x82\x88\x85\x7f\xb3\xa8\x3a\xb5\x07\x46\x5a\x53\xc0\x79\xed\x66\x67\x9c\xaf\xdf\xb8\x65\x3b\xfd\xeb\xb0\x30\x20\xfe\x86\xa9\x43\x18\x2d\x4f\x13\x77\xd5\x8e\xca\x3c\x77\x10\xd3\x2e\x21\x0d\x8d\x03\x72\x8b\xc6\x9e\x1b\x80\x03\x94\x4f\xfe\xda\xa1\xb6\x9a\xe6\xcc\x50\x63\x02\xbd\x69\x17\x01\x9f\x58\x8c\xc2\x95\x01\xcc\x82\x63\x57\x2e\xbc\x0f\xeb\x15\x38\x77\x17\x4b\xcf\xdb\xad\x4a\x58\x65\x91\x75\xd2\xde\x71\xd5\xf5\x01\x9c\x46\xd1\x12\xb6\x63\x1c\xf0\xc3\xf9\x12\xaa\xc8\x31\x40\xcd\x56\xcd\xf9\x03\xee", p, q, g, b"\x33\x53\x72\x77\x0c\x0e\x8e\x59\x1a\x36\x7d\xe9\x98\x33\xbd\xe6\xf0\x12\x40\xbc\x6e\x23\x6a\x5b\x4e\x36\x23\x3e\x12\x0b\x8e\xe6\xd1\xc1\x9c\x77\xf4\xcd\xbc\x29\x4d\x32\x78\xc3\xd4\xcf\x73\xed\x9e\x8e\xa5\x03\x2b\x05\x24\xa3\x91\xcf\x29\x3b\x35\xee\x7e\x02\x34\x30\x22\x22\x16\xd9\xf1\x8b\x45\x02\x2f\x4d\x5f\x93\x85\xf6\x38\x4d\x9f\xaf\x1a\x0f\xfa\x4a\x80\x0d\xa2\x3b\x93\x76\x51\xa0\x9e\x82\xc2\x22\x85\xb9\xde\x6a\x40\x8e\x23\x38\x6f\xfa\x67\xab\xb9\xd1\xc7\x1c\xda\x7b\xc0\xc9\x35\x25\xfc\xd7\x9e\x83\x15\x3e\x74\x60\x70\x78\x24\x67\x85\x8b\x69\x7a\xd1\x49\x14\x67\x30\x33\xfe\xdb\x2d\x7a\x10\x5a\xd2\xd4\x38\xda\xaa\x35\xb5\x03\xb5\x18\x31\x4a\xc3\x70\xfc\x5b\x11\x12\xd4\xfe\x51\x4e\x58\x35\xd9\xa8\x6d\xe2\x5e\x6b\x35\x69\x13\x92\xd1\xcd\x04\x83\x6d\x41\x26\xb2\x95\xb8\xa8\x9f\x21\x7d\x58\x12\x58\xaf\x95\x27\x7b\x8b\x91\xc3\x1e\x6b\x0d\x23\xa7\xc5\x2b\x0c\xe2\x64\x1c\xf1\xa2\x52\x83\x8b\x6e\x28\xe2\x26\xcf\xc4\xfa\x9d\xc9\x14\xc5\xf6\x75\xfc\x90\x0e\xd6\x80\xdc\x1a\xa9\xe1\xd1\x71\x93\xc4\x32\xaf\x40\x32\xeb\xab\x95\x41\x91\x32\x70\x83\xc5\x9a\x5f\x64\xc1\xea\x18\x10\x7c\xe4\xd7\x21\x1d\x1c\x22\xf0\x48\x05\xed\x54\x8f\xc2\x2d\xf4\xb1\x62\xf3\x0b\x6f\xf3\xa7\xf7\xc3\x8a\x5a\x95\xfe\x82\x4d\x29\x61\x18\x0e\x98\xb3\x02\x08\xdc\x7e\xa7\x07\x1f\x79\x22\x61\xd4\x5c\x7b\xb7\xb9\x11\xf3\xb1\x9c\x3e\xe0\x17\x1a\x32\x6c\x03\x3c\xf5\xfc\x2b\xf7\x9d\xe7\xd5\x11\x5a\xc5\x68\xe0\x47\x89\xcb\x44\xe0\x8f\x3a\x86\x27\xa1\xb1\xf3\x76\x23\x42\xb4\x9b\x76\x79\xbd\x7e\xdb\xe4\x7b\xc3\xee\x9c\x3f\x02\xdb\x15\xd5\x32\x56\xa5\xea\x28\x47", b"\x5d\xd0\xc7\xe8\xa3\x99\x3b\x9d\xe0\x67\x6a\x57\x9c\x89\x7e\xa3\x99\x43\xa4\x3d\xbe\xc5\x99\x6e\x58\xc1\x98\x5b\x54\x1d\x7c\x1a", b"\x67\x97\x10\x01\x82\x2a\x08\xa2\x14\x8a\x6b\x1a\xdb\x50\x27\x4a\x57\xda\xfe\x89\x6f\xb0\x4a\x12\xa6\xf9\x97\x07\x55\x53\x06\xac", ); test::( b"\xfd\xa9\x76\x5c\xc9\x1a\x9d\xb9\x22\xae\xc7\xb1\x3f\xc3\x2a\xc4\xec\x4e\x3b\x85\x34\xf9\xe9\x5a\xf9\x6e\x8e\xbe\xab\x89\xd8\x47\xdc\xd1\x50\x44\x48\x68\xcf\xaf\x42\x13\xf8\xd8\xba\xa6\xb1\xd0\x88\x62\x24\xe2\xaf\xd0\xae\xb9\x3d\x59\xb8\x86\x57\x20\x88\xd0\x5b\xf7\x21\xc7\xad\xfb\x54\xda\x47\xc6\xc4\x85\x12\x04\xa7\xa9\x2a\x11\xde\xb3\x9b\xa1\x7c\xf6\xc0\x7f\xb7\xce\x8b\xa3\x50\xa9\x9d\x01\x8d\x4e\xa6\x4b\xd5\x6d\x1d\x9f\x8f\x7d\x88\x15\x7f\x19\x0f\xcb\x37\x2a\xcf\x6f\x8d\x31\xcf\x7b\x79\x5b\x36\xc1\x0f\x5e", p, q, g, b"\x05\x39\xcc\x99\x2c\xa7\x0f\x91\x35\x37\xb1\x21\x1d\xd3\x26\xd8\x5f\x75\x31\xba\xa6\xbe\x05\x83\xba\x45\xb9\x57\x1b\xaa\x81\xcd\x58\x28\x05\x0d\xcd\x9a\xb7\xa2\x03\xbc\x4f\xe1\xd8\x74\xf7\x6e\xc1\xf3\x4d\x93\x55\x79\xed\x21\x32\x25\x57\x89\xd7\xe6\x01\x0c\xf5\x04\xb4\xc7\xf5\x86\xd4\x4a\x71\x66\x00\xac\xf8\xa0\x4a\xd3\x0c\xb7\xca\x05\x5d\x72\x23\xf9\x76\x1c\xda\xeb\xfd\xf7\xef\x72\xbd\xea\x3d\xfc\xd0\x20\x06\x9a\x96\x9c\x56\x01\x60\xf0\x53\x46\x76\xbe\xff\x5e\xa6\x11\xfc\xbc\x0f\xd4\x7c\x86\x7f\x31\x63\xe1\x37\x1e\x1d\xe6\x7a\x1a\x3c\x3e\x37\x16\x8b\xf0\xbe\x79\xc0\x9f\x45\xf2\xbc\x43\x51\x7a\xee\xa0\x10\x0a\x2a\x25\xd1\x48\xff\x19\x90\xc0\x61\x43\xfa\x25\x3d\x83\x06\xf4\x8d\x77\x36\x22\x24\xbc\x3e\xfe\x93\x38\x9e\x92\x2d\xef\x0f\xd1\x1d\x19\x92\xf5\x50\xed\x82\x94\xb6\x13\x65\x47\xff\xd6\x12\xb0\xbc\x8e\x4e\xe9\x0b\x31\x00\xbb\x89\x92\x21\x77\x14\x7b\xe0\x08\x32\x81\xbf\x66\x3f\x83\x70\x41\x7f\xa7\x90\xd4\x10\x5e\xb9\x8c\xc1\x26\xf5\x00\x5b\x7c\x08\xbc\x21\x1d\xea\x28\x98\xaa\x65\x3c\x3d\x2b\x51\xfc\x67\x73\x2b\xff\x56\x44\xe8\x04\xaa\xe6\x92\x00\xc4\x16\x03\x5a\xa0\xba\x5a\x14\xcc\x43\x9b\x56\x9f\x46\x21\x17\xb7\xdf\xcf\x3f\x2c\xc1\x3e\x72\x3a\x93\xff\x95\x33\x20\x8f\x20\x24\x1d\xaf\x36\xcd\x16\x06\x6b\xe3\xdb\xa2\x01\x17\xcb\x14\x5d\x75\x6f\x5a\x6f\x79\xce\x23\x56\xa0\x51\x64\x7a\xed\xd6\x45\xbf\xa6\xfa\xf8\xf8\x0a\x6f\xdf\x3e\xec\x42\xdd\xd4\x2b\xb2\xe7\xb7\x73\x82\x96\xe2\x39\x78\xc8\xbd\x63\xb8\x04\x59\x53\xe0\x6c\xef\x12\x63\xbf\xe0\x3b\xe2\xf6\x1b\x16\x00\x7d\xf1\xeb\x19\x85\x67\xa7\xbc\x6b\xff\x27\x4e", b"\x55\xc2\xb2\x7e\x76\x9f\xac\x99\xb4\x7b\xc0\xa5\x4f\xf1\x82\x1c\x7a\x46\xbe\x60\x01\xab\x66\x4f\xb6\x8f\xb1\xba\xfc\x04\x44\x6f", b"\x30\x59\xdb\x42\xa3\x99\xc4\x28\xf3\xcf\xbb\x10\x2d\x6c\x04\x09\xb0\x6f\x20\x06\x8d\x1c\xa8\xcb\xea\x48\x58\xac\x6e\x5d\xe1\xd3", ); test::( b"\xe4\x9a\x12\xb8\xd7\x61\xef\x7a\xfb\xcb\x1c\x37\x7e\xed\xf6\x29\xd0\x8c\xc5\x09\xa8\x75\x3a\x5b\x92\xe2\x6a\x23\x97\x36\x51\x56\xe7\xc0\x81\xbc\xb4\x68\x66\x95\x57\x5c\x6a\x64\xf5\xd7\x7d\xfd\x55\x0b\x04\xdf\x39\x0a\xa5\x5e\x0d\x05\x1c\x75\x9f\x19\x7a\x75\x1a\x60\x41\xe2\xdd\x09\x59\xf9\x02\xf2\xe3\x59\xa1\x67\xd8\x80\xc4\x9c\xfa\x81\xe7\x19\x6f\xa1\x60\x4a\xd3\x2a\x80\x17\x07\x1f\x09\x8d\x4c\xb3\x46\xb3\x92\x66\xfb\xe7\x56\x59\xdf\xc6\x60\x7b\xf0\xd8\x29\x64\x07\x82\xcf\x3e\x12\xe3\x83\x76\xc5\xa9\x92\x82", p, q, g, b"\xee\x7f\xff\x18\x82\x2f\xf4\x54\xa2\x07\xf9\xdb\x54\x2d\x24\x29\x8b\xb5\xed\xb1\x1d\x80\xdd\xc6\xdd\xb9\xbf\xae\x0c\x95\x2d\x4f\xe8\xd9\xdb\x0f\x1a\x86\xe8\xa0\xf2\x19\x3a\xf7\xca\xae\xe7\x26\x4d\x74\x10\x6d\xe5\xaf\x0a\x6c\x14\xf7\x10\xbb\x86\x3e\xb7\xdc\x16\x7a\x1e\x43\x78\xb6\xcd\xb7\xab\x68\x41\xc6\x64\xe9\x82\x45\x29\x11\x97\x73\x57\x8e\xf5\x5b\x7c\x35\xed\x22\x1e\xf0\x70\xdd\x46\x90\xb4\xc1\x2f\x27\x67\x3e\x5d\x1f\xe9\x64\xff\xe2\x9d\xa5\x7e\x2d\x1a\xcd\x21\xef\x13\xe0\x66\x9f\xa9\x76\x68\xbb\x19\x9b\x56\xa3\xa5\x3e\x10\x46\x91\x33\x02\x20\x81\xcd\xf6\x26\x48\x10\x0d\xca\x26\x7c\x4f\x6a\x3c\xa3\xa7\x5b\x57\x3b\xb1\xb3\x9c\x8a\x4e\x1f\xcf\x81\x26\x9e\x9e\x1b\x10\xc6\x3f\x5b\xa4\xfe\x75\xcf\x71\x39\xd0\x38\xd0\x2f\x5f\x53\x4a\xa0\x81\xfc\xe7\x32\xcd\x50\x51\x60\x9b\xc0\x6f\x18\x87\x4d\xd0\x11\x21\xd3\xc1\x79\xf0\xc3\xf0\x39\x9c\x18\x5e\xeb\xdc\x34\x63\x5b\x31\x39\xf1\xca\x50\xfb\xff\xb3\xb0\xad\x12\xe4\x81\xc1\xa6\x46\x82\x14\x37\x93\xf0\x72\xc7\xdb\x8b\x5b\x9e\xef\x41\xcc\xdd\x66\xb9\x04\x13\x9d\x64\x44\x42\xa9\x2f\x62\x55\xed\xb9\xbc\x12\x34\xe2\x7d\x07\xa6\xba\x32\xb1\xf1\x4c\xdf\x98\xa2\x2c\x6a\x12\x30\x0d\xff\x50\xac\x1b\x65\x56\x8b\x6e\x91\x55\x41\xbb\x38\x6e\xc7\x25\xda\x44\x44\x67\xca\x25\xe8\x14\x48\xcb\x78\x37\x51\x46\xad\x20\x78\xa8\x30\xe7\xd9\x05\xde\x9a\xd7\xd8\x95\x59\xc9\xd4\x30\xcf\x5f\x41\x9c\xe9\x45\x70\x4a\x42\x6a\xb2\x64\x01\x6e\xd8\x7c\x90\xd9\x7f\x51\xa7\xd6\xe1\xee\x2f\x51\xbb\xb3\xa8\xde\x81\x39\x16\x97\xb0\xe4\x22\xdf\x9e\x5d\x35\x51\xe9\x33\x74\xe5\xf3\x80\x16\xb2\x96\xd5\x3b\xc2", b"\x21\xd3\x4d\xf6\x05\x23\x79\x75\xdb\x31\xb8\x64\xf9\x8c\x9a\xb6\xe4\x65\xdb\xf0\xb3\xfc\x58\x68\xd6\x7c\xd6\xcb\x3a\x13\x96\x3b", b"\x70\xc4\x88\x07\xd6\x2d\x1f\xe7\x4d\x58\x95\x93\x47\xab\x12\xc9\x7b\x50\x0d\x20\x60\x7e\xd2\xa9\x5d\x8a\x38\x8f\xee\x26\x58\x12", ); test::( b"\x28\xf7\xa0\x67\xa0\xea\x7f\x0a\x4d\x79\x7c\xea\x39\x39\xf6\x6b\x28\x1e\xd1\x9c\xc9\x8b\x85\x63\xef\x37\x57\x98\xb4\x06\x14\xf4\xdd\x85\xac\x2f\xcf\xcc\xbc\x5e\xbf\x0a\xc9\x32\x28\xc0\xb7\x29\x37\xa4\x81\xca\x4f\x9d\xf7\xa7\xe5\xd2\xe5\xda\x9a\xf0\x48\x74\xdc\xec\x35\x03\x5f\x6a\x7d\xb4\x93\x79\x3a\xa2\x36\x1f\xb6\x6e\xf2\xee\xdb\x75\x74\xd0\x4e\x21\x47\xc3\x57\x29\x8a\x2a\xdf\x99\xac\xa1\xee\xbe\x00\xce\xfa\x44\xb3\x91\x57\xeb\x1e\x94\xaa\x8a\xa9\x8d\x54\x51\x51\xfb\xb4\xde\x67\x07\x0b\x39\x04\xcc\xe9\x30", p, q, g, b"\xcd\xb9\x92\x2d\x69\xe9\x9c\x7f\x34\xa9\x21\x0e\x2a\xfc\x5b\xe0\x11\x5d\xa4\xaa\xf6\x82\xd9\xea\x37\x78\x8e\x0b\x6c\xaa\x6f\xde\x13\xc8\x8e\x51\xf5\x58\x82\x06\x68\xb5\x9d\x14\xc0\x6d\x2c\xbe\x65\x49\xd3\xf0\x6d\x10\xdb\xee\xe4\x6f\x59\x15\x4c\xd4\x67\xae\x19\xe1\x6b\xe2\x5e\x6f\x6c\xd2\x38\xcc\xd1\x94\x7f\xc5\x81\x56\x2d\x30\xca\x32\x9b\xb3\x27\x25\x8c\xa4\xae\xb9\x01\xf8\x14\x41\x40\x58\xb6\xf1\x69\xa4\x5f\xf5\x5e\x40\x23\x2d\x78\x70\x49\x9a\xe7\x8c\x05\x13\x77\x71\x40\x75\x2d\x55\xf0\xa4\x70\x76\x1b\xdc\xff\x5a\x66\x09\xcc\xa2\xd1\x80\x9f\x18\x4b\x29\x87\x18\x07\x1d\x21\x6a\x14\xad\x01\xf5\x6c\xcc\xce\xd2\x39\x69\x60\x7b\x62\xd4\xd1\x40\xc9\xef\x28\x50\x76\x74\xf5\x9f\xec\xc7\xe7\xce\x8a\xd2\x63\x6a\x5c\x53\xf0\x70\xad\x31\x7c\x8c\xd0\x23\x1f\x50\x0a\x79\x0e\xf6\x9a\xc7\x86\x00\x0f\xaf\x68\xe7\xb7\x85\x4d\x6e\xb2\x64\x99\xa9\xd5\x24\xcb\xf8\xf3\x73\xca\x41\xdd\x6a\x2f\xa5\x19\x8e\xba\x2a\x8e\x22\x8f\x5a\xb2\x9b\xe9\xf6\xd4\x50\xf7\xf5\xa1\x49\xae\xb2\x0d\x8a\x27\x79\x71\xfa\x6e\x64\xa0\xde\x36\xc8\x75\x0a\xfc\x38\x19\x61\x75\x69\x75\x62\x1f\x28\x7a\x39\x50\xf8\x84\x02\xc5\x08\x1f\xe0\xc5\x4f\x44\xf9\xfa\x7c\x50\xdf\x90\x6b\x26\x40\x98\x85\x36\x46\xb3\xd0\x5a\x4f\x04\xc6\xf1\xbb\xc6\xc4\x40\xf7\xe7\x35\x8d\x3a\x72\xb2\x9f\x76\x43\xf4\x40\x6b\x7d\xb1\x73\x69\x0d\x40\xaa\x29\x38\xea\xf0\x18\x74\xd2\xba\x80\x94\xcc\x5b\xe1\x14\x5b\x2b\x2e\xe9\xe7\xcf\x15\xbf\x39\x8e\x50\x83\x2d\x95\x01\x74\x30\xb1\x86\x99\x38\x73\x2c\xdd\x1d\xf5\x93\xf5\xdb\x2b\x2b\xd7\x13\x08\xd8\xc2\x53\xd2\x54\xef\x39\xb4\x75\xe2\x49\xd8\x90", b"\x12\xde\x25\x2d\xa2\x59\x3c\x59\x69\xa6\x49\x6a\xe8\x08\xd8\x51\xca\xd1\xde\xd2\x95\x9e\xa8\x90\x57\xa9\x2e\x5e\xc9\x1c\x5f\x95", b"\x16\x53\x38\x07\x5e\x6a\x4f\xea\x0b\x23\x8f\x9f\xac\x90\x4b\x7b\x33\xdb\xee\x5a\x55\x26\x46\xdf\xbe\xd8\x27\xf6\xd2\x8d\x64\x92", ); test::( b"\x0e\x15\x6b\x0b\xd8\x45\x95\x15\x5e\xf4\xfc\x21\x3d\xfc\x7e\x46\xbf\x27\xa8\x9c\x27\x57\x23\xe0\x98\x40\x76\xb0\x27\xc4\x9c\xb2\xee\xe6\xac\x86\x6d\x75\x33\x35\x81\xcc\xa6\xf8\x97\xe1\x14\x18\xfb\x37\xba\x5c\xab\x13\x91\xcd\x23\x7e\x2c\x6a\xb3\xf1\x1a\x05\x5d\x3b\xd0\x3f\x42\x5b\xaa\xab\xe5\xa6\xa3\x4e\xba\x4b\x11\x8a\xf7\x3e\xdd\x61\x07\x87\xcb\x8e\xaf\x47\x6b\xd2\x17\x04\x82\x08\xea\x4c\x1d\x05\x91\x37\x29\x47\xa1\xc0\xef\x94\x69\x65\x68\x98\x34\x24\xfd\x1d\x80\x2f\xc9\x11\xe7\xbf\x71\x22\x4a\xfd\xbd\xd9", p, q, g, b"\xd0\x97\x36\x41\xd5\x6d\x8b\xaa\xa2\xc2\xd4\x30\x50\x1d\xff\x44\xea\xf9\xa3\x65\x74\x78\x79\x91\x34\xb0\xf3\x35\xae\x94\xff\x27\x91\xdf\xd4\x94\x40\x13\x32\x48\x6b\xa6\x37\x68\x3e\x70\x4b\xd9\x85\xf5\x26\x91\x9e\x66\x1a\x22\x80\xd9\x9b\xd4\x82\x62\xb6\xc9\x30\x5e\x0c\x8f\xd8\x79\xcd\x0a\x83\x61\x28\xd8\x8e\xdd\xae\x51\xfc\xfb\x51\xf7\x44\xb2\x3d\x2d\x2d\x27\xa2\xcc\x1e\xa5\xa9\xd5\xe0\xa7\xfa\xf4\x22\x7a\x2a\xdb\xfb\x7e\xd4\x5d\x6a\xa9\xc3\x37\x98\xab\xf0\x7b\xc6\x9e\xfc\x5f\xdd\xe5\xdc\x5c\x78\x01\x96\x25\x70\x93\xec\xa7\x54\x68\xb1\x61\xcb\xa4\x4b\xcd\x14\x2b\x21\xfa\xe9\xed\xc6\xab\x32\x78\x30\xc2\x8e\x1b\x3d\x2d\x7c\x81\x2d\x8a\xec\x3a\x19\x52\x62\x7a\x04\x01\x10\x87\x2e\x14\x8e\x15\xde\x5c\x7b\x4c\xa2\x4f\x08\x63\x36\xda\xec\xbb\xf9\x81\x6c\xdb\x9d\xc7\x30\xdb\x8a\x66\xa1\x92\x9a\xbe\xcd\x4b\x09\xa0\x39\xa1\x9b\xff\xa4\x5f\xfc\x85\xdd\xf0\xbe\x32\x77\xbf\x07\x5b\xbb\x46\xf0\x7b\xf0\xda\xea\x24\x89\x7e\x07\x04\x4b\x5e\xe3\x7f\x9f\x44\xfe\xe7\x57\x18\x81\x70\xda\x22\x92\x4f\xa1\x5e\xd9\xc0\x7f\x11\x3c\xdf\x37\xa8\xc4\x86\x48\xe5\x86\xfb\x55\xa0\xc3\x5f\x3b\x63\xa6\x96\x67\x24\x41\x93\xc7\x0d\x94\xbb\xe3\x6d\x04\x3b\x25\xa0\x41\xfb\xa9\x2a\x20\x42\xe2\xee\xf7\x67\xe7\xcd\x18\xdd\x1c\x1b\x5c\xa4\x87\x8f\xe7\x74\xc8\x33\xcb\x5c\x5a\xff\x9f\x67\xbf\xd6\xcf\xbf\x2d\xfc\x63\xb8\x84\x2a\xd2\xd4\x9c\xeb\xca\xff\x4c\x39\x27\xf3\x19\x9c\x10\x6d\x0c\x14\x9a\x9b\x1b\x49\xbe\xf1\xd6\xf8\x14\x3d\x93\xd2\x5d\xf9\xdb\x1b\x5b\x37\xd5\x22\xe7\x23\xff\x64\xd9\xee\x52\xe4\x76\x20\x67\x12\xa3\x82\x46\xdd\x92\x62\x71\xf5\x59\x0e", b"\x5e\xf5\xd7\x8c\x42\x1a\xe5\xa6\x39\x78\xbc\xbf\x7d\x20\x37\xb5\x02\x2b\xc4\x7b\xe7\xb2\x93\x80\x65\x80\xad\x5b\x4d\xe2\x7a\x4e", b"\x67\xcc\xb2\x83\x3c\x1d\x32\xc6\x8e\x91\xae\x38\x90\xb4\xc9\xa6\xe5\x22\x9b\x22\xa5\x79\x91\x68\xc0\x04\x6e\xad\x92\x57\x3c\x85", ); test::( b"\x84\x9c\x53\x37\xd8\x8b\x3b\x24\x7d\xf5\x73\xeb\x0d\x66\x55\x48\xb6\x42\x37\x63\xd5\x57\x1f\x8a\xcb\x5e\x61\xe3\x16\xd7\xcd\xc2\x08\xcd\xa5\xb3\x9a\x19\x44\xa7\x17\x58\x7e\x58\xe2\x1b\x86\xed\x22\x2b\x8e\xe2\x65\x10\x5a\x32\xba\xff\x36\x92\xdc\xf7\xb8\x71\x3d\x0b\x53\x92\x62\xa5\xbd\x9a\x95\x4c\xb7\x14\x3e\xe6\x6f\x87\x64\xdb\x62\x36\x13\x6c\xb1\xcb\x3b\x34\xa8\x7c\xbd\x3f\xee\x3b\x11\x28\x8b\xc9\x4a\xc9\x91\x79\xc6\x81\xa4\x69\xd6\x2d\x9b\xcd\x91\xd4\x03\x32\xa6\x50\xa5\xbc\xe3\x3b\x60\x26\x88\x4e\xf9\x4a", p, q, g, b"\x1e\x8d\x4d\x6f\xef\x99\x05\xd6\x39\xe2\x56\x4d\x87\xdc\xbe\x0d\x8f\x99\xbd\xe3\x80\x82\xff\x09\x1a\x97\x7f\x2a\xff\xca\xb8\x65\x05\xae\xff\xe6\xef\x1d\xdb\xac\xf1\x5d\x91\x65\xb0\x06\xac\x05\x17\x43\x4a\xaa\x65\xdb\x21\x04\x52\xfb\x2f\xf4\xc9\x90\xb8\x7f\x25\xfe\xe7\xad\x5b\x26\xad\x87\x74\x95\x75\x19\x00\x89\xa5\x6c\xdb\xce\xee\x67\x82\xce\xaa\xf5\x69\x81\x4b\xb9\xe6\x58\xff\x50\xae\xbf\x6f\x3c\x97\x91\x89\x3e\x5d\x6a\xda\x5f\xdf\x8c\x47\x20\xfa\xfa\x18\x4c\xc8\x4a\x84\xf5\xfc\xa7\x9d\x89\x96\x36\xe0\x07\xbd\x0e\x1a\x89\xda\x09\x4a\x37\x8e\xdb\x6d\x72\x24\x0c\xc2\xd1\xd7\x09\x8b\x53\xba\x48\x37\xa5\xd0\xd7\xd0\x20\x19\xb9\x52\x71\x2e\x4f\x14\x20\xe5\x8a\xf2\x3d\x13\x77\xcd\x6d\x5f\x39\x89\xb3\xd6\x0b\x5f\xc5\x72\x04\x3b\x96\xc4\xf7\xbe\xb7\x13\x7c\x08\x94\xfa\x99\xd7\x27\xa5\xa8\x8a\x5d\x5d\xcb\xf2\xda\x7b\x0b\x2d\x83\xdb\x88\x74\x7f\xb0\xcc\xaa\x89\x91\xd2\x4f\xcc\xde\xf4\x21\x11\xff\x40\x2e\xd0\xd9\xbd\xb8\xa4\xad\x13\xf8\xfc\xff\x6a\x1d\xf5\x6c\x82\xa5\xf8\x8f\x57\x5f\x49\xa0\x62\x75\xa9\xe6\x60\x67\xf1\x5d\xae\xc4\x02\xed\x87\x70\x48\x49\x99\x09\xb9\xe7\x6e\x5f\xde\x52\xfe\xac\x94\x4e\x1d\xe7\x89\x4c\xf1\x3c\x51\x52\x99\xac\xc6\x44\x2d\x90\xf0\x27\x31\x7b\x07\x13\x80\x5a\x95\x12\x25\x6b\xca\xa7\x96\x3b\x94\x29\xa5\x10\xc5\x86\x97\x92\xc1\xe2\x90\x82\x92\x1d\x0e\x7d\x0c\xef\xff\xc3\x4d\x30\x76\x2f\xb8\x3e\x2a\xbb\x78\x21\xfa\xb4\xca\x89\xd0\x8b\x49\x7f\x75\xe3\x14\x9a\x5c\xd3\xd2\x3b\x29\xbc\x52\x13\x7d\x8b\xe9\xc4\xa9\x5c\x63\x76\xf6\x2e\xd6\x4f\xdc\x15\x9b\x1b\xb6\xc8\x42\xbd\x07\xf8\xcf\x03\xf7\xf2\xeb", b"\x11\xb1\x63\x51\xf8\xf7\x20\x31\xba\x2a\x77\x20\x00\xac\x87\x26\xa4\x79\xe1\xbe\x45\x23\xa9\xee\xfa\xbe\x23\x94\x7a\x1d\xf0\xd9", b"\x26\x60\xfb\xb4\x4e\x29\xe7\x68\x7c\x10\xe2\x9d\xe9\x6f\xa1\xab\x03\xc0\x87\xcc\xce\x08\x6c\xdd\xab\x48\xec\x63\x77\x41\x41\xc1", ); test::( b"\x4c\x37\xa4\xc8\xb4\x11\x09\x24\x0c\x4f\x53\xd8\x72\x77\xd3\xc7\x90\xb2\xf0\x71\x10\x5d\x15\xaa\x10\xbd\x0f\x77\x09\xda\x27\x4c\xce\xa1\x96\x1e\x0b\x99\x63\x5b\x31\xac\xd2\xc8\x05\x30\xd2\xb4\x03\xd7\x11\x0a\xd7\xcd\x0e\x35\x72\x51\x89\x09\xc1\x36\xe7\x3e\x57\xd3\x8c\x1c\x74\x43\xe5\x8a\x25\x7f\x07\x36\xb9\xf6\xf5\x1d\xa8\xfd\x1a\xe9\x21\x3e\x81\x93\x00\x3d\x69\x58\x33\x81\xf0\x20\xcc\xe7\xfc\x59\xba\x1b\x1e\xd5\x54\x1d\xbe\xf6\xb5\x99\x25\x75\x0d\x50\xb6\x51\x5a\x97\x7a\xa4\x32\x5d\x5f\xad\xe4\x2f\x82\x87", p, q, g, b"\x88\xa4\xdd\x59\x3b\x64\xa4\xeb\xcb\x27\xff\xea\x3d\xe9\xa7\xed\x78\x01\xf9\x67\x2b\x5c\x8d\xc2\x7b\x38\x3d\x6c\xba\x58\xb4\xf0\x01\x81\x63\x4d\x05\xeb\x49\x02\x82\xce\x4e\x57\xf0\x94\x03\x73\xd3\xa7\xbd\x7e\x9c\xca\xa9\xbb\x29\x65\x32\x2a\xb5\xfb\x21\xb4\x32\x7b\x47\xef\x4e\x2b\x42\x42\x4c\x13\x83\xbb\xd8\x55\x8b\x50\x6a\x7b\xf5\x53\x7b\x04\x9f\xff\x35\xc5\x58\xbc\xc7\x39\xb7\x60\x44\x37\x28\xc0\x90\xc3\x4d\x6d\x4e\xba\x81\xe2\x4e\x42\x39\x4f\x8f\xb8\x26\xf7\xc9\x2c\xa7\x1a\x9d\xab\x16\xe9\x99\x27\x47\x26\xb0\xc5\xd8\xf7\x2f\xb9\x14\x18\x70\xda\xc0\xbb\x9e\xc0\x42\x98\x02\xb6\x29\xad\x71\xae\x05\x60\xe5\x86\x2e\xcf\x3e\xab\xa9\xc2\xa5\x84\x88\x5b\x32\xc6\x84\xf6\xd5\x5f\xd1\xb0\x90\xd9\x3d\x03\x6a\x4e\x98\x58\xa4\xd8\x9b\x9b\x57\x50\x84\x9d\x92\x6c\x51\x91\x20\x13\x1d\x45\x6f\xce\x9d\x24\x73\x41\xeb\x17\x33\x6c\xa9\x72\x9a\x90\x80\xac\x5b\x12\x72\xfb\xf7\x07\x52\x6a\xfc\x8a\xe6\xa8\xc6\x61\xef\x3c\x15\x18\x45\xf6\xee\x09\x02\xde\x9a\xbb\x43\x22\xaf\xe5\x85\xe5\x9d\x6d\x41\x8e\x87\xd7\xcd\xce\x48\x97\xcc\xac\x81\xd0\x13\xfd\x72\xda\xe1\xa5\x55\x77\x62\x52\x73\x12\x58\x7c\xa6\x76\xf0\xe0\x67\x60\x00\xfc\x0c\x76\xb8\x26\x58\x42\xf2\xdb\x7e\x18\xe6\x21\xc0\xe3\xc2\xca\x92\x95\xe9\xe3\x6e\xc8\xce\x1c\x85\x09\x7c\xa5\xff\xfa\x62\xe7\xb8\x96\xbb\x16\x83\x6d\x06\x33\x86\xb1\xe6\x63\xef\x29\xec\x17\x02\x96\x5a\x7e\x05\x62\xd2\xd2\x82\xf8\x09\x52\xd7\x47\x6b\x32\x2f\xfa\x79\x29\xa4\x53\xa6\x38\xea\x3b\xed\xe8\x02\xff\x5f\x8f\x56\x60\x85\xa6\xe2\xa2\x41\x4e\xf7\xa6\xf1\x17\xac\x86\x28\x48\x6b\x23\x60\x3b\x14\x08\xfa\xae", b"\x23\xe1\x3a\x35\x77\x7c\x18\x9a\xe5\x65\x09\xc7\xaf\xb4\x11\xb3\x13\x07\x73\x7e\x2f\xfc\x8d\xb3\xf2\x08\x94\x0c\x5e\x76\xed\xb3", b"\x05\x44\x75\x83\x62\xcb\xb6\x1d\x66\xb6\x68\x26\x95\x8a\xca\x63\xaf\x1b\x8a\xd6\x15\xa4\x9b\xa5\x57\x92\x39\x59\xb6\x8f\x82\x28", ); test::( b"\x44\x34\x73\xd6\x15\xbe\xdc\xba\x2c\x8d\x9a\x9a\x45\xa2\x8c\x42\x8d\x7f\x1a\x26\xab\x14\x70\x56\x27\xd9\xad\x13\xf5\x3b\x76\x7c\xbb\x60\xbe\x52\x3f\xc2\x1a\x99\xc3\x73\xbd\x77\x61\x81\x7b\x31\x42\x90\xf2\xf6\xa8\x0e\x06\xe1\x2c\xce\x23\x89\x54\xc6\x48\xac\xe5\x0f\x3b\x0d\xfd\xf7\x1d\xc3\x08\xe1\xa8\xee\x11\x59\xfc\x1f\x19\xb7\x3a\xb6\x01\x5d\x18\x6d\x9b\x6b\xad\x96\x5a\x9a\xd6\x2e\x44\x0a\x9c\xed\x13\x55\x0a\x44\x4b\x5f\x04\x00\xb9\x6e\x2d\x23\x8e\x9e\x3d\xc6\xe6\xde\x12\xf4\x42\x05\xd4\xfd\x57\xf6\x0e\x9d", p, q, g, b"\x0f\x4e\xc6\xe2\xba\xae\xa9\xc8\x1e\x90\x70\x05\x19\xf2\xf0\x5f\x54\x5d\xdc\x0a\xe9\xbd\x3a\x09\x1e\x8b\x6b\xa5\x25\x5c\x15\xfc\xe5\xef\x3c\x04\x67\x71\xc5\xf3\x1b\xb0\x1d\xe4\x37\x7e\x14\x28\x31\xac\x17\x49\x90\x3f\x93\x17\xc7\xb0\x1a\x99\x07\x14\x98\x5f\x92\x51\x19\x8c\x82\x90\x73\x20\x59\x24\xc5\x68\x05\x0a\xcd\x6d\xcc\xa7\x57\x61\x8c\xd2\x80\x9b\xb7\xaa\xb6\x4d\xb1\xe8\x6c\xa9\x2e\xeb\x85\x41\x20\xc9\xd8\x9f\xb9\x36\x35\x96\xbe\x9c\xbb\xaf\x8e\xac\xae\x2f\x18\xf3\xed\x48\x35\x89\xeb\x46\x6a\x51\x44\x82\x4f\xeb\x1f\x88\xc3\x0c\xfc\xbb\x76\x28\xf7\xcb\x41\x59\xce\x32\xe7\xc2\xed\x04\xd0\xff\x04\x81\xc9\x58\xe5\xff\x74\x45\x22\x94\x4c\xf3\x20\x20\x38\x9b\x32\x95\x9b\x5e\x12\xf8\x0f\x08\x06\x49\x08\xa2\x70\xf8\x69\x5a\x3f\x99\xe7\x5e\x7e\x85\xba\x3b\x3c\x77\x3f\x04\xef\x9e\x09\xe7\x6b\x6c\x47\x30\x2e\x41\xd5\x0e\xad\x04\x54\x1e\x0f\xca\x4a\x42\x50\x27\x22\x26\x5f\x82\xff\x60\xef\x46\xaa\x75\x47\xf9\xde\x24\x91\x35\xdd\x07\x7f\x24\xa4\xe7\xe0\x3b\xe2\xe3\x09\x47\x72\x76\x7a\x97\x60\x88\x3c\x52\x08\x16\xfa\xe6\x37\xc0\x30\x95\x6e\xa2\x5f\x0a\x86\x9e\x4a\x00\xa4\xa8\x01\x7b\xcb\x72\xb2\xf2\xfd\x83\x64\x3b\xdc\x01\xd8\xff\x28\x68\xd3\xca\xf1\x00\xae\x8b\x81\x8b\x92\x6c\x96\xa8\x50\xbd\x69\xd8\x93\x1d\xbf\xdc\xff\x31\xc6\x7c\x53\x7c\x4f\x59\x59\xd0\x4b\x74\x4a\x34\x66\x47\x06\x6d\xcc\x61\xf6\x3b\xe6\x25\x1b\x59\x0d\x68\x8a\xe3\xc9\xb5\x3f\x39\x20\x07\xd8\x58\x4e\x46\x24\xff\xd2\x94\x16\x50\xa3\x1d\xcd\x5a\xbf\xae\x7c\xa1\x20\xb1\x1c\x8d\x01\x94\xbe\x96\xe8\xdd\x09\xb6\x43\xd5\x68\x5d\x10\x65\xd9\x8f\x39\xb6\xed\x7c", b"\x76\xbb\x0e\xcb\x9f\xae\xc7\xc9\x71\x13\x7e\xa6\xfe\xac\xf1\x79\x20\x73\xae\x80\xbe\x1c\xa8\xed\x9c\xec\x2a\x5c\xa6\xcd\x51\x0f", b"\x34\x92\x02\x46\x73\x0e\x09\x74\xfb\x0f\xaa\x57\xe7\x7f\xc5\x0a\xb7\x87\x26\xc8\xe5\x15\x79\xa0\xef\x5e\xbe\x3f\xce\x3b\xa7\xcb", ); test::( b"\xce\xe0\x6f\x79\x23\x32\x08\x0d\x6e\x73\xb3\xf0\x2f\x5e\xc1\x69\x96\xb6\x69\x95\xbe\xab\x4a\x2b\xa0\x92\xf4\x0d\x85\xc8\xac\x1a\xcc\xf5\x4f\xba\x06\x81\x28\xc8\xcd\xba\xda\x20\x93\x60\x77\x6a\x77\x06\x45\x50\x15\xe7\x3e\x92\xc6\x24\xad\xa1\xdf\xa6\x2e\xc7\x94\xcf\x2a\x1a\x92\x94\xf3\xfb\x55\x99\x4b\xc5\x21\x1a\xdd\x1c\x68\x5d\x9a\x54\xac\xd5\xbc\xd8\x30\xd9\xa4\xfc\xff\x29\xae\xc5\x00\x1c\x3b\x2b\x2a\x97\x06\x04\x6f\x38\xbf\xe4\x8e\x85\x22\x76\x8f\x1c\x6f\x08\xa8\xe2\x40\xe1\x23\xed\x30\xe2\x0f\xc4\x6c\x19", p, q, g, b"\x5c\x92\x05\xfb\x64\x9d\x3b\x4b\xa2\xd4\x4c\x80\xa9\x25\xe3\x0d\x27\xb0\x5b\xd3\x39\xf1\xce\x35\xe0\xd0\x41\x9a\x91\xed\x31\xfd\x10\x8c\x51\xa2\xa6\x2c\xf9\xd0\xad\xfd\x87\x7d\x27\xcf\x55\x75\xe4\x3a\xc7\xbf\xcf\xce\xec\x56\x73\x73\x6c\xae\x08\x95\x16\xdf\x8e\xb1\xea\x6b\x56\x31\x98\xb2\x4a\x6e\x25\x22\xf3\x20\xb1\x23\xbf\xb2\x50\xd4\x3b\x60\x0d\xf9\x29\x8e\x12\x1b\x6c\x5d\x2e\x63\x7a\x98\x92\x15\xe0\x95\xe6\x03\xee\x6d\x4e\x8a\x2d\xcd\x17\xb9\x08\x91\x8a\xa5\x14\xc8\x6a\x33\xd8\xc7\x17\x57\x8d\x86\x12\x61\xda\x43\xf7\x32\x50\xff\x2b\xe7\x46\xc6\x91\x6f\xc7\x28\x71\xfb\x42\xa2\x79\xd2\x25\x95\x05\x1b\x8a\xc0\x4a\xfb\xf2\x01\x30\x63\xe3\x16\x61\xb1\x17\xc5\xd0\x94\xb4\xc2\x32\xb2\x2f\x21\xd2\xc6\x5d\x63\x61\x29\x0c\x08\xf1\x2b\xef\xd1\xf5\xa2\xb9\xb5\x25\x9a\xf0\x43\x5b\x97\xb4\x32\x82\x97\xc2\x52\xd8\x13\x49\x9f\x52\x09\xdf\xa3\x5e\x91\x98\xde\x68\x50\x1a\xf4\xca\x86\x58\x94\x2d\x05\x9b\xb6\x2b\x8e\x55\xa3\xce\x61\x20\xa7\x8e\xe0\x98\x13\x2e\x8d\x2d\xc3\x75\x7f\x7e\x60\xf8\xc0\x8c\x4e\x43\xfe\xac\x67\xab\xcd\xdd\x1e\xa2\xf0\x16\x83\x9f\xb1\xa0\xf7\x97\xb8\xb1\x37\xab\x43\xb6\x45\x08\xef\x69\xf6\xae\x0f\x3a\xbc\x4e\xd6\x82\xaa\x7e\x38\xfa\x51\x46\xfe\xc6\x2e\x01\xe0\x95\x1a\x6e\x81\x15\x2d\xe4\x31\x71\xca\x88\x69\xfa\x1a\x42\xa4\xfb\x2d\x8a\xe5\x12\xc0\x05\xfd\x97\xd1\x2b\xb1\x3f\x29\x9a\xb9\xf5\x32\x1e\xe2\xfc\x39\xb2\x8e\x61\xc9\xeb\xcb\x91\xec\xd2\xb6\x10\xfd\x82\x91\xf5\x38\xa0\x0d\x06\xd0\x57\xc3\xe7\x94\x22\xa9\x31\x27\x9f\xed\x9d\x93\xb0\xb6\x53\x3f\xae\x44\x1e\x98\x41\x30\x25\xfb\x4f\xa7\x3c\xde\xfa\x80", b"\x6d\x02\x53\x6d\xb5\x46\xf2\xbb\x1f\x65\xff\x0b\x91\xb9\x64\x80\x2b\x38\xd1\x71\xe6\x78\x05\x4e\xe4\x1f\x2b\x85\x63\x80\x9c\xfa", b"\x6b\xc5\x11\x20\xe3\x5c\x95\x5a\xb8\xf7\x17\xf8\x93\x0d\x8c\xc8\xde\xf8\x50\x54\x15\xcf\x15\x9d\x25\x16\xf9\x65\x78\x84\x2f\x31", ); test::( b"\x58\xab\xa2\x4e\x94\x81\xd1\x15\x1b\x57\x4b\x14\x6a\xc2\x1b\x17\x11\x0e\xd0\xb9\xbf\xaa\x55\xa4\xe2\xe0\x6d\xcd\xc1\x8b\xd1\x0c\xdf\xaf\xac\x04\x71\x89\xf5\xba\x9f\x10\x37\x7a\xff\xb4\x0a\x51\x4d\x52\x8a\x34\x83\xfe\x8e\x64\xb8\x31\xea\x0c\xd0\x76\xce\x58\x39\x42\xb9\x38\xa4\xb2\x57\xd0\xb5\xa9\x24\x12\xe0\x1d\xfd\xa8\x21\x7d\x5f\x80\x54\x59\x6a\x61\xd5\x73\x7d\x8a\xd8\x11\x2a\xe2\x28\x22\x0e\x3b\xff\x60\xe2\xe8\x91\xd0\x3d\x53\xfb\x14\xf1\x4d\xd9\x19\x75\xdc\x15\xd6\xb7\xbd\x62\xe9\x9d\x74\xef\x38\x39\xfd", p, q, g, b"\x2a\xdb\xc0\x7d\x8a\xee\x28\x4e\xc9\x82\xc4\xb9\x5e\x1e\xc3\xec\x3f\x5f\xd5\x17\x23\x68\xdd\xf8\x3f\x9a\x3c\x69\x65\x52\x91\xde\xe6\xb9\x9e\xd7\x13\xe5\xa1\xfe\xc3\x38\x23\x9b\x81\x99\xc5\xa3\xbb\x2b\x5e\x2e\x7f\x23\xfc\x79\x50\x58\xa9\xac\x70\xeb\xdf\xf2\xb3\xda\xaf\xfa\x38\x9e\x97\xfe\xe3\x5f\x17\x49\x61\xf1\x2d\x63\x4e\x8b\x82\x50\xb8\xb7\x70\xb8\xd7\x11\x3d\x0f\xbc\x02\x0b\x7b\x10\x8f\x8d\x6b\x2d\x7c\xb6\xc5\x9e\x2e\x15\x10\x15\x14\x5a\x8e\x37\x4f\x9b\x73\x96\xe9\x70\xd9\x1e\x3c\x1f\x85\xce\x23\xdc\xae\x12\xb2\xf5\x37\x41\xcf\xc2\x35\x0b\x58\x2c\xa8\x7f\x0f\xf9\xab\x50\xad\x0c\xa2\x87\x9e\x21\x6e\x61\xa5\xc3\x58\x97\x0a\x3c\x35\x28\xdc\xd9\xec\xe6\xb8\x3d\x52\x5b\x31\xfe\x68\x76\x96\xa2\xa2\xc6\x5e\x34\xf2\x85\x4f\xea\x6f\xf9\x22\x44\xd2\x75\x00\xf7\xda\x94\x6c\x37\x16\x97\x56\xf4\xa4\x66\x4b\x29\x09\x61\x15\x49\xad\x2b\x93\xeb\xac\xeb\xfc\x27\x0e\xcf\x42\x04\xe6\x64\x1d\xbc\xe0\x5d\xa2\xc0\x00\xa4\xca\x5a\xc8\x85\x40\x6b\xa1\x55\x80\x74\x94\x70\x61\x80\xd5\x4c\xc0\x12\xce\x06\xe7\x34\x02\x4f\x4c\xcd\x88\x2b\xdd\xd2\x25\x7a\xfb\x5c\x28\x7b\xc3\xa8\x57\x0e\xdf\x21\xa2\x0a\xfe\xda\x0c\x76\x2a\xd6\x96\xfb\xa1\x77\xa5\xf2\xf9\xd6\x09\x35\x5c\xb9\x1d\x72\xcc\xac\x8b\xb9\xe7\xc3\xcf\xf1\x83\x4d\x86\xb0\x77\x2a\xec\x74\x1d\x7b\x4b\x3c\x3e\x43\xbb\x26\xec\x9f\x5e\x86\xb8\x68\x5e\xa5\xc6\x25\xb6\xae\xa4\x50\xa4\x6e\x85\xe3\x80\xb1\x58\xde\x6a\xaa\x27\x01\xff\xad\x0c\x7d\x1e\xd0\xdf\x35\x5d\x09\xd0\x6f\xe1\x75\x8b\x2f\x27\xa5\xd0\x2a\xa2\x83\xae\xc9\xfd\x12\xd3\xb6\x2d\x50\x4d\xca\x0b\x66\x32\xe8\x9f\xc5\x5f\xb0\x83", b"\x2c\x46\x2d\x49\x34\x4f\x3a\xd0\x3b\x67\x98\xf9\x64\x52\xf7\xd6\x63\x51\xce\xad\x91\x9e\x82\x01\xb7\x66\x5c\x87\x7f\x82\x55\xbb", b"\x50\xe8\x90\x8a\x1c\x66\x84\xa2\xca\xa8\xaa\xfb\x43\x2c\xda\x4b\x76\x99\x00\x8c\x72\xd8\xd6\x22\xc3\xda\x41\x71\xe5\x1c\xfd\xbf", ); test::( b"\xe1\x06\x04\xca\x00\x72\x8e\x53\x36\x21\xdb\xb6\x61\x8b\x0c\x87\x7c\x49\x02\xa2\xed\x79\xaa\xf4\x0a\x4d\xaa\x34\xd6\xcc\x21\x6a\xd4\x64\x8d\xaa\xb6\xcc\x1e\x18\x45\x1b\xb9\x4e\x6a\x1c\x0c\x6f\x9d\x0d\x88\x39\x62\xee\xbd\x50\x7d\xa0\x99\x78\x80\x08\xda\x23\x20\x5e\x3b\x4e\x90\xfa\xd9\xae\x85\x70\x74\xff\xea\xc6\x34\x30\xc0\xfa\xcb\xae\x48\x9c\x54\xc9\x57\xdb\x09\xd5\x3e\x12\xb6\x56\xcc\x27\x86\x15\xa3\xa5\x61\x2a\xf4\xc2\xf1\x68\xbd\xeb\x11\x8a\x42\xa2\xa6\x71\x03\xfa\xc3\x21\xad\xf5\x68\x8b\x05\x84\x8f\x7c", p, q, g, b"\xb0\x44\x8d\x43\xc5\x20\x37\x7b\x7d\xf2\x14\x96\x9f\x59\xff\xd4\xe0\x01\x0c\x12\xd7\xe5\xfa\x8f\x24\x1e\x9c\xe1\xc6\x34\x43\x9c\x94\x70\x0e\xd5\x74\x2a\x83\x22\xd4\x05\xdd\x05\xde\x99\x53\x44\x78\x31\xc7\x67\x4e\x5a\xe1\xb8\x90\x41\xfb\x8f\x2e\xc1\x05\x4b\x92\x8c\x64\xab\x86\x2f\x02\x1a\x55\xeb\xce\x83\x8d\x2a\x3d\x2c\x76\x45\xec\x7c\x0a\x1a\x46\x03\x61\x7e\x4f\x50\x89\x29\x14\x4c\x1e\xf2\xb0\x39\xbc\x78\xb5\x93\x62\xd5\xba\x95\x37\x90\x6e\x66\xc8\xe9\xc9\xa3\xc6\x8e\x71\xb3\x5d\x88\xb8\xba\xc8\x6c\xac\xbe\xbd\x96\x2c\x66\xe1\x81\x29\x63\x7f\xad\x2d\x98\xd2\x1e\x45\xa3\x26\x72\x64\x94\x92\xf1\x31\xba\xe8\x8c\x99\x89\xbd\x63\x72\xe1\x74\x92\xbe\xdf\xf4\xd9\xb0\x91\xb3\xdd\x00\xeb\xca\x6b\xcc\x49\x14\x84\x80\x58\x9f\x95\x93\xe3\x27\x95\x29\x9f\x3d\xe7\xe0\x9d\x88\xbc\x0e\xd2\x7b\x7e\xf2\x2e\xf7\xd2\x02\x20\x7f\xb5\xce\x8c\x91\x71\x2c\x3b\xd5\xe7\x58\xd2\x82\x28\x09\xea\x5d\x2c\xb2\x88\x33\x2a\xa0\x76\x03\x68\x25\x92\x81\xa3\x44\x47\xff\x5a\x98\xc9\xc9\x7c\x1d\x58\x38\x3c\xd1\x4f\x6d\x59\xbb\x5e\x57\x63\x21\x7b\x23\x37\xec\x23\x21\x26\x81\x97\xf0\x2c\xec\xd0\xd9\xfd\x93\xdb\x39\xf8\x05\x9a\x38\xbb\xb3\x57\x92\xba\x0d\x4e\xd1\xba\xd9\x5a\x05\xb4\x81\xc3\x9f\x6a\xdc\x90\x17\xde\xc1\xd6\x62\xb0\x80\x3f\x2e\xcf\x08\x45\x93\x57\x65\xf9\x35\x6d\xb5\x36\xc8\xc1\x18\x87\xd9\xe4\x4b\x73\xb6\x99\x6a\xe7\xac\x24\xfc\xad\x9c\x23\x01\x7e\x5c\x2a\xca\x88\xb5\xa1\x36\xb6\x30\x72\x98\xb8\x5f\xf0\x10\xf9\x64\xb7\x47\x7a\x4f\x98\x08\x00\xe6\x9d\x3c\xc0\xf4\x38\xaf\xf7\xf2\xdf\x8a\xc6\x1d\x64\x43\x5f\xfa\xf5\xe4\x66\x33\x60\x9e\x87", b"\x56\xab\x99\x47\xac\x94\xfe\x3d\xf7\xe3\x58\x01\x66\x0f\x68\x75\x3b\x0b\x62\x0a\x26\x59\x4c\xb8\xfd\x37\x5b\xe3\xea\x4d\xbf\x05", b"\x60\x8e\xd1\x83\x51\x39\xaf\x29\xa2\xe3\xd8\x74\xdf\x46\x5e\xdd\x8d\x64\x28\xf4\x03\x57\xd9\xae\x49\x04\xef\xe8\xbc\xcb\xd0\x35", ); test::( b"\x8a\xf3\x1f\x66\x77\x2f\xb0\xc3\x1a\x8c\x5b\x28\xe5\x68\xe6\x36\x8c\xb6\x6b\x59\x1e\xdf\xb0\xdb\x86\x7f\xd9\x9e\x83\xfe\xb3\x63\x8b\xc8\x0f\x0b\x14\x48\x3d\x06\x9e\x8f\x2e\x16\x7c\x8b\x0f\x10\xcd\x6b\x45\xd0\x39\xb7\xd6\xf8\x33\xbd\x58\xd9\x9b\x00\x59\x7a\xee\xf8\x2f\xa3\xaa\xe2\xe5\x5d\xed\x62\xab\x66\x08\x10\xde\x0f\xe1\xc9\x2d\x53\xad\xf9\x8c\x83\x8c\x18\xfd\x76\xa2\x73\xea\x12\x11\x9d\x67\x5a\xf7\x27\x01\x18\x69\x94\x3d\x76\x5b\x96\xef\x26\x62\x70\xb4\xf8\x9a\xc7\x2e\xda\xdc\xf7\x07\xa4\xa2\x1b\x75\x33", p, q, g, b"\x22\xf3\xdb\x9e\xa3\x69\x93\x8e\xd7\x50\xd5\xed\x37\x81\x36\x8d\x59\x4e\x62\x63\x5c\x6b\x6e\x10\x3d\x6d\xb4\x89\xa9\x97\x2f\x39\x82\x03\xab\xb9\x73\xd5\xad\x9c\x0d\xc1\x10\x58\x69\x78\xd2\x06\x14\x83\xc0\x20\x27\x38\xce\xb0\x1a\x66\x5d\xd2\x2f\xc5\x68\xcb\xdf\xf2\x14\x8a\xe6\x64\xdf\xfb\xf8\x88\xe4\xdd\xa5\xa0\x4f\xd3\xe8\x93\x98\xb4\xf1\xff\xc3\xa3\x81\x3a\xe9\x4d\xa1\xf8\x96\x5e\xfb\xe7\xf3\x00\x94\x87\x49\xe9\x75\x7c\xc7\xc0\x5f\x6e\x53\xfd\xbf\xf9\x94\xc2\x23\xab\xa2\xc1\x37\x15\x1b\x6a\x32\x0f\x5b\x7f\x8c\xdd\x60\x03\xba\xa6\x60\x20\x16\x29\x90\x62\x40\x99\xf3\xcf\x56\xd6\x8b\x74\xe9\x6e\xe0\x92\x40\xf2\xcf\x11\xe3\x95\x4e\x75\xb2\x61\xef\x9e\x8e\x35\x51\xc6\xc0\x0f\x41\xe9\xeb\x17\x42\x12\x03\xa4\x56\x53\x88\xc3\x21\xc1\x32\x5f\x72\xeb\x10\xc2\x8a\x9d\xee\xdd\xcb\x48\x06\xf6\x25\x38\x2b\x37\xf0\xbe\xcf\x77\x93\x6b\x7f\x83\xd2\x6b\xf1\xee\x1f\xe0\x5e\x8a\x00\x05\xa4\x05\x8c\x67\x8e\xb5\x69\xe3\x39\x42\x3e\x7c\x84\x43\x05\xf4\xa1\x8b\x11\x60\xa0\xc4\x30\x51\x3f\xad\x71\x58\x96\xb6\x2b\x9d\x6e\x24\x68\x23\x2a\xe3\x75\xf5\xf3\xc0\x05\x62\x45\xeb\x46\x16\xba\x11\xa6\x02\x94\x10\xa9\x55\xaf\x09\xf0\x75\x95\xfe\xfa\x03\xe5\x51\x6c\x95\xa4\xcf\xcd\x66\x04\x6b\xe2\xa4\xf7\xb3\xab\x27\x4b\x21\xc0\xa4\xf1\x26\xc4\x82\xc9\x34\xc7\x9d\xcb\xbd\x69\x16\xf3\xb8\x87\xb2\x60\x04\x72\x49\x5c\x83\x35\xde\x12\x1c\x77\x20\xf2\x9a\xe5\x6f\x5c\xcf\x9b\x99\xc9\xce\x56\x55\xc5\xe1\xd1\x5d\x67\x89\x5a\xf0\xde\xe5\x86\xbc\x49\x1a\x97\x24\x1f\x7e\xff\x43\x4b\xb7\x9a\xad\x83\x1d\xb0\x69\x57\x81\xe6\xb5\x12\xe8\x70\x24\x07\xa7\xd7\x48", b"\x0f\xda\x7a\x8a\x3e\x5d\x32\x4f\xc0\xa1\xc2\x84\x1c\xd2\x2f\x98\x75\x7a\x0c\x6a\x2a\x46\x5b\x0d\x9d\x65\xbd\xa9\xb2\x3b\x3c\x1a", b"\x40\x86\x02\x65\x22\x90\x85\x45\x3f\xe5\x84\x87\xa9\x33\xed\xf3\xc2\x84\x33\x69\x4c\x7b\x85\xf6\x37\x0d\x9a\x47\x83\x16\x82\x37", ); test::( b"\xe2\x45\x6e\xf5\xd4\x65\x73\x1b\x97\x6f\x2a\xd1\xfc\x94\x63\x4c\x05\x69\xa0\xff\x75\x66\xa4\x9d\x47\xd6\x9e\x60\xb3\xb6\xd7\xeb\x2a\xb2\x5c\xd4\x9c\x93\x12\x99\x79\x6b\xff\x7e\x97\x74\x07\x5e\xa2\x0a\x97\x2e\x39\x49\xa2\x9d\xfb\x50\xb2\xb5\x61\x3b\x45\xc5\x96\xca\x5d\xab\x28\x2f\xf1\x83\xf5\x64\xa0\x63\x11\xa4\x96\x01\xa1\xe8\x56\x0d\x43\xc6\xa4\x81\xce\x71\x3f\x46\xc6\xea\x85\xbf\x4c\x16\x48\x9f\xbd\x72\xcf\x55\x2b\x26\x51\x62\x98\xbc\x66\x94\x2a\x05\xd5\xa8\xe6\xd0\xf6\xa8\x8f\x3e\x67\x8d\x31\x0e\x29\x7b", p, q, g, b"\xdc\x9d\x68\xb5\x3f\x35\xc2\x9f\x7c\xa0\x03\xa2\x58\x3e\xc8\xf8\xef\x5d\x78\xa0\xe4\x5d\xb3\xc8\x84\xd3\x5d\xf4\xfb\x53\x1a\x08\x0e\xe3\x83\x1b\xff\xd3\xc7\x56\xea\x50\x42\xc7\x61\x45\x70\xfb\xa2\xf6\xca\x48\x70\xdb\x4a\x45\x3d\x0f\x79\x3f\xb4\xd0\x22\x5d\x94\xf2\x74\x12\xdb\xdf\x43\x43\x2f\x52\xcb\x8f\x86\x7f\xe5\xf4\x92\xa8\x87\x6d\x7b\xd8\x50\xd8\x99\xba\x2f\x0a\x53\x82\x0c\x44\x08\x41\xfe\x0c\xb7\x6f\xe0\x44\x4b\xd6\xc3\x23\x57\x85\xa3\xda\x30\x81\xfe\xf9\x9f\x53\xa1\x95\x31\x4a\xef\xe9\x55\xf2\x96\x4c\x56\x50\x6f\xcc\x96\x9b\x67\xb3\x23\x76\x6d\x29\x9c\x0b\x02\x98\x1c\x72\xa2\xce\x3d\x75\x24\xae\x6f\x08\x45\x87\x95\xfd\x32\xe3\x1b\x47\xaa\x1f\x97\x4e\x35\x60\x81\x16\x3c\xb2\x3e\xfd\x73\xa9\xe6\x55\xde\xef\xe5\xe7\x34\xce\xb5\x8e\x88\xa9\xdb\xb5\x24\xef\xf7\xe1\x1c\x3e\x30\x68\x07\x02\xd8\x56\x0d\xd8\xb6\xad\x9f\x61\xe7\x24\x6c\x6d\xde\x16\x4e\x91\x49\x51\xd6\xa0\x57\x31\x52\xec\x8b\xde\xa6\x79\xdc\xa1\x98\x5b\xcf\x26\x73\x04\xd5\xf1\xbc\xe2\xf3\x2b\xb9\x94\x6a\x05\x68\x57\x35\x9a\xfb\xaf\xfa\x59\xbe\xe6\x1a\xd9\x60\xc5\x67\xef\xe3\xf1\x14\x5a\x8a\x87\xc2\x49\x1f\xa6\xb3\x3f\x7e\x71\xfc\xdd\x8f\x1f\xfb\xcd\x2b\x89\x92\x09\x07\xd1\x14\x4a\x8c\xf0\x57\x3f\x5b\x89\x21\x7b\xc0\x59\x8c\x6e\x17\x54\xf1\xae\x7d\x9d\x42\xa6\x08\xa0\x51\x62\x14\x19\xda\x91\xd1\x1b\xda\x9b\xb9\xdf\xa7\x11\x8e\x4b\x66\x3e\x7b\xff\xe6\xe9\x94\x6c\x77\xce\x9f\x80\x86\xdf\xc8\x22\xa7\xef\x72\x88\x88\xb3\x16\x54\xa1\x9b\x6d\xeb\xd2\xca\x62\xf5\xe3\xb4\xe2\x89\x81\x04\x35\xb3\x63\xec\xab\x51\x1f\x47\xe9\xe1\x57\xf0\xf4\x19\x88\x62\xca\x13", b"\x77\x86\x40\xce\x75\xda\x58\x4a\x6a\x83\xf9\x79\x4c\x4f\xfd\xbe\x30\x41\x1b\xe4\x30\x27\x75\x8c\x74\xf8\x9f\x7c\xcc\x7f\x39\x83", b"\x61\x25\x48\x1e\x10\x3f\x78\x03\xb2\xf1\x6d\x9a\x4d\x00\xf8\x81\xe0\xb3\x67\x02\x4d\xf5\x82\x2f\x7c\xbe\xb5\x71\x1e\x0e\x44\x01", ); // [mod = L=3072, N=256, SHA-224] let p = b"\xf6\x3b\x3c\xdd\x64\x6d\x8e\x7d\xdb\x57\x21\x6a\xa6\xee\xc2\x13\x4d\x70\x74\x88\xa1\xf2\x9c\xfa\x99\x70\x64\x5f\x12\x27\xea\x5d\xb2\xe3\x18\xee\xa5\xda\x16\x87\xc7\xed\x90\x50\x96\x69\x34\x5e\xd6\x13\x4c\xff\x32\x20\x3a\xb7\x2a\xec\xbf\xa6\x93\xd2\x16\xae\xb5\x5d\x8d\x28\xa9\x81\xf4\xab\xff\x07\xd1\x31\x9a\x79\x9b\xe5\xdd\x74\x6f\x84\x84\x28\x17\x92\x9c\x30\x5b\x40\x85\x98\xaf\x12\x04\x5d\xaa\x2f\x1c\xcc\x8b\xe4\xd8\x1b\x51\x3c\x63\x0f\x01\x7f\xec\x16\x58\xac\xa1\x08\xa1\xaf\x61\x20\xec\x05\xe3\x01\x8c\x42\x53\xc9\xdd\x35\xbc\xe0\x62\xb7\x3d\x0f\x2a\x93\xd4\x1c\x48\x1a\x5c\x43\xbb\x97\x90\x96\x82\xd3\x9a\x9a\x60\xdc\x3c\x35\xe3\x63\x75\xde\xc6\xce\xd0\xd2\xdb\x3b\xa0\xd1\x11\xbe\xde\xa7\x01\xa0\xe4\x75\x36\x24\x97\x7a\x9e\x75\xb7\x0a\x74\xe2\xb8\x1e\x38\xa5\x2a\xb2\x2d\xa1\x31\xb3\x54\x16\xd3\xce\xc9\x66\x30\x79\x74\x6a\x76\x34\x76\xe5\x75\x98\x14\x2e\x39\x86\x15\x45\xda\xaf\x8d\x38\xa1\x76\xf2\x6c\x71\xf5\xaf\xeb\xd9\xc5\x62\x0d\xa8\x0c\xf3\x45\x2b\x55\xc3\x7c\x66\x1b\x4a\x1e\xc0\x35\x17\x10\xb9\xde\x4a\x3c\xbe\x0b\x98\xb4\xd9\xec\x89\x12\x8d\x97\xaa\x7e\xfb\x19\xdb\x8b\xa4\x3c\xc0\xbe\x25\xc2\x00\xf9\x0e\x15\x06\xcb\x78\xec\x0c\x33\x6d\x7a\x95\x61\x3d\x42\x04\xe8\xed\x68\xd0\xf0\xa6\xc7\x84\x20\x10\x5a\x8d\x2d\x43\x8f\xbd\x25\x51\xa6\x4a\x1a\x0b\x03\xff\xb8\x78\x74\x2f\x8c\x99\x79\xcf\xa8\x73\x94\x15\x02\x81\x99\x8d\x51\x70\x1d\x5f\xcf\xa9\x69\x6a\x49\x89\xfd\x25\xf4\x00\x95\x5e\x62\x6b\x1a\xbe\x92\x6c\x0a\xfa\x69\xaa\x69\x81\x90\x0e\xff\xcd\xd0\x30\x59\x2f\x82\xb2\x04\x2a\x47\xa9\xa5\xa8\xcb\x02\x83\xdc\x4d"; let q = b"\x80\x00\x00\x00\xba\x46\x34\xb5\xfa\x4d\xa0\x54\xbd\x0c\xa4\x8a\xe4\x90\xe5\x77\x11\xf3\x81\x19\x38\x42\x42\x91\x59\xba\x7c\xa1"; let g = b"\x8a\xd4\x55\x3c\x4e\x49\xaa\x24\x72\x8a\xb5\x02\x44\x17\xb1\x32\xd2\xca\x53\xa5\x5d\x95\x94\x58\xf2\xf7\x59\xad\xb0\x43\x5b\xee\xef\xa3\xa2\xcf\xcd\x00\x38\xe2\x42\x06\x43\xfc\x4a\x4d\xee\xb5\xd9\xfe\xaa\x1e\xdf\x21\x19\x3b\x40\xe1\x4b\x42\x98\x2a\x94\xf3\x5c\x58\xb8\x11\x47\xd7\x18\x9d\x26\x3c\x9b\x12\xfe\x63\xab\x9f\xa5\xf6\xf0\x3a\x28\x60\xc1\x86\x43\x2e\x3a\xb0\x4f\x2a\xb0\xf2\xfb\x61\x47\xbd\x9b\xf7\xed\x5d\x20\x71\x3b\x9d\xa2\x13\x83\xe2\xc3\xa1\x68\xe7\xd0\x9d\x3d\x8a\x5a\x05\x8f\xd2\x30\x95\xb5\xac\xfe\xb8\x64\xa3\x30\x6b\xe2\x42\x5f\xa1\xad\x32\xad\x6d\x93\x82\xe6\x03\xb0\x3c\x68\xaf\x4a\xf0\x24\x63\x97\x10\x2c\x41\x55\xcb\xa8\x11\xab\xf9\x9d\xa7\x83\x9e\x77\xb2\xea\xc9\x97\x05\x88\xca\x1d\x0a\x23\x61\x72\x3a\x16\x4a\xc9\x22\x9c\x2e\x80\xdc\xfa\x8d\xb4\xf9\xe2\x98\x03\xef\xfb\x31\x68\xc7\xfe\xd7\xa3\xa6\xde\x40\xdd\xa1\x9a\x05\x36\xaf\x9b\x5b\x7a\xfa\xef\xb9\xc7\x0d\x6a\xe8\xdf\x12\xda\x65\x8f\x62\x36\x04\x3a\xea\x87\x3d\xb2\x9c\xeb\x6f\x07\xd1\x08\xf5\x22\x56\x87\xbd\x0c\x30\xe3\x08\x4e\x20\x90\xb4\x5a\xe2\xf9\x2a\x97\xb8\xec\xb7\xa9\x70\x5c\x49\x56\xb8\xb3\x1c\x4a\x3d\x61\x10\x7c\x84\xe4\x7a\xdd\xa6\xc8\x0d\x5d\x22\xda\xb3\xd8\x59\x22\x0f\x9d\x5a\xab\x13\x67\x7a\xe3\xdf\x16\x8f\x0c\x17\x6d\x17\x6b\x54\x50\x6c\x63\x98\x53\xf0\x4d\xde\xf2\x72\x2f\x39\xc1\x8e\x5c\xe4\x26\xe1\x45\x62\xad\x8f\xf2\x62\x47\xaf\x88\x87\x0e\xfb\x72\xc0\xcc\xe8\x36\xde\x8f\xee\x67\xa6\x62\x37\x82\x45\xb5\x02\xbf\x1f\x83\x09\x99\x88\xa0\x93\xce\x7c\xdc\x81\x36\x4c\x78\xb1\xf4\xa5\x1b\x80\x0d\xf6\x13\x7c\x71\xd6\x5e\x6b\x08\x9a"; test::( b"\x95\x79\x73\xfc\x3f\x3f\xe3\xf5\x59\x06\x5b\xe5\xd4\xa0\xc2\x81\xcf\x17\x95\x90\x18\xb9\xa6\x70\xd2\xb3\x70\x6d\x41\xd5\x81\x2e\x37\x30\x10\x05\xf8\xb7\x0e\xbd\x2f\xba\x3c\x40\xa3\xf3\x77\xa7\x51\xb6\xcb\x96\x93\xe3\xcb\x00\xd9\x28\x88\x24\x7d\x07\x92\x1d\x3c\x1e\x92\x57\xce\x08\x73\x3b\x89\x26\xe0\xdf\x7b\xdb\x6e\x85\x5f\x1f\x85\x10\x75\xd4\xe6\x28\xd1\x10\xd4\x2b\x64\x3b\x54\x87\x6e\x5f\xaa\x36\x11\x47\x7e\xe6\x83\x71\x56\x25\x55\x26\x9e\xd6\x2a\x92\x71\xba\xd5\x0c\xc4\xd4\x60\x38\xde\x2d\xd4\x19\x20\xc2", p, q, g, b"\x42\x24\x35\x39\xe4\x9d\xb9\xea\x19\xd9\x8d\x97\xf6\xf2\xa9\x4b\x23\x52\x98\x12\xdf\x88\x9e\xaa\xbc\xfe\xda\x01\xce\x4c\x75\x94\x87\xfb\x89\xbc\x82\xda\x75\xfe\x1c\x91\x34\x36\x1f\x86\xde\x47\xd1\x6d\x8e\xee\x80\xe5\x6a\xc5\x02\x17\x8e\x8e\xd8\x12\x94\x77\xaf\x8b\xfb\xd8\x26\x2c\x5e\xdd\x93\x7e\x1a\x86\xc0\xf0\xe7\xb2\xaf\xe7\xbc\xbd\xdf\xcb\x58\x14\xce\xd0\xb7\x56\xa7\x6c\xa1\x78\x42\x3b\xb4\xd5\x78\xc5\xda\x18\x37\x12\xd9\x68\x58\x26\x40\xaa\x0e\xc7\xe9\xfb\x56\xbf\xd9\x60\xd7\xa5\x75\x49\x74\x7d\x8f\xb7\xad\xe4\x7c\xfe\x81\x6c\x1e\x57\xda\x66\x33\xda\xcc\x53\x7d\xe0\x60\x81\x39\x64\xbb\x5b\x27\x57\xa3\x12\xf9\xda\x3d\x84\xe6\x0a\xff\x98\x17\x00\x51\xd3\xd9\x0e\x38\x0b\x8b\xcc\x19\x86\xc5\x8f\xf9\xdc\x91\xe8\x82\x7d\x4f\x9f\x5f\xc4\xb2\xb2\xe7\x43\xcf\x93\x89\xff\x02\xde\xc0\x1f\x5d\x43\x4b\x43\x0d\x16\x2e\x89\x1c\x33\x55\xf9\x18\x55\x33\x9f\x8d\xf5\x83\x00\xe4\xc9\x93\xae\x4d\xf8\xc4\x31\x8b\x5c\x4b\xd0\x52\x83\xca\x4b\x46\xb7\xd2\xfb\x0f\x64\x76\xbf\x15\x90\x7f\x50\xdd\x41\x41\xaa\x7a\xca\xc9\xda\xa6\x2e\xcc\xd3\xa6\x73\x57\x12\x20\x60\xb6\xce\xce\x04\x46\xa9\x3e\xb2\x30\xad\x93\xbc\x9a\x4d\x1b\x1e\xfe\xec\xa1\xe3\xfc\x83\xc1\x19\x78\x50\x35\xb4\x39\x50\x9f\xfb\x79\x68\xb1\xa4\x48\xb7\xbd\x83\x15\x75\x3f\xdf\x04\xa2\x56\xec\xa1\x56\x2a\x11\xb0\x96\xc9\x0a\x36\xb3\x53\x65\x9c\xbd\xe4\x42\x0e\x17\xe9\x0b\x94\xc4\x3c\x75\x19\xc6\x06\x41\xce\xec\x05\x6f\x89\x7b\x97\xd6\xbb\x18\x61\x26\x8e\x0d\xc7\x9b\x7c\x3b\x6b\x76\x39\xc2\x55\xbf\x06\x86\x57\x37\x45\x91\x26\xcb\x46\x5b\xc1\xda\x4a\x04\x3a\x19\x63\xda\x7d\x63", b"\x2e\x59\xd5\xf3\x0f\x73\x78\x1d\x38\x25\x5b\x70\xde\xde\xeb\x38\xae\x78\xdf\x4f\x00\x2c\x1f\x74\x7c\x08\xde\xad\xc6\x53\x01\x55", b"\x61\x5c\x55\xb2\xdf\x0c\xa2\x8c\x60\xa6\xb3\x85\xc5\x8f\xa0\x36\xdf\x8c\x4b\x2f\x4f\x19\x35\x73\x0b\xf8\xf4\xf0\xbe\xd1\x36\x10", ); test::( b"\x54\x07\x1a\xca\x28\x96\x97\x49\xce\x2e\x2d\xc8\x55\x05\x20\x19\xbe\xc2\x7d\x0d\xd6\xa3\x10\x21\x93\x11\xb4\xb6\xd8\x22\x46\x7b\x22\xb3\xf0\x2f\xb8\x31\x39\x93\xfc\x77\xc4\xaf\x1d\x76\xab\x9d\xb9\x9b\x0b\x2b\x78\x20\x4a\xa4\x5f\x40\x32\xa7\xd9\x45\xf9\x3d\x55\xbc\xb8\xa6\xbb\xd4\x7f\x98\x29\x9a\x09\x29\x71\x04\x61\x41\x9e\xdb\xe1\x13\x2d\xc2\x25\x75\xf5\xaf\xbe\x70\x78\xcf\x5f\x05\xb2\x31\x00\x0f\x4a\x0f\x9f\x36\x7d\x90\x25\xed\x3a\xe1\x78\x6e\x01\x83\xea\xc9\x3e\xa9\x6b\x55\x30\x4a\x8c\x2d\xbf\x69\x08\x21", p, q, g, b"\xef\x78\x15\x2e\xfd\x88\x13\x0a\x4f\xec\xfe\x23\x50\x37\xde\x23\x09\xb1\xe2\xf3\x22\xd4\xf4\x15\x47\x56\xca\xa8\xf0\xb3\xe4\x1b\xe4\x5c\x80\xd8\x95\xde\x56\x38\x92\x57\xc3\x91\x30\x72\x86\xbe\x8e\x87\x09\xb8\x01\x86\xe2\x72\x41\x72\xb0\xf2\x97\x4b\xe5\x91\x58\x49\x16\xfc\x0e\x75\x0c\x0c\xaf\x83\xd8\x39\xb5\xc2\x48\xf5\xde\x65\x86\x68\x66\x5f\x00\x4b\xab\x8a\xd3\x10\x11\x88\x35\x95\x7c\x02\xda\x6a\xe9\xa2\xa7\x9d\xa0\x39\xad\xc8\x84\xf9\xeb\x8b\x62\xe3\x79\xe2\x7f\x54\x9e\x7f\x8a\xff\x8a\xd2\xfc\x27\x6e\xce\x15\xf0\x42\x35\x28\xa0\x9e\x31\xb2\x64\x21\xdf\x93\x57\x3b\xec\x7a\x4d\x6c\x2c\xbf\xbe\x5c\xe0\xfc\xe0\x70\x20\x88\xfb\x38\x4a\xd1\xdc\x35\xbb\x2c\x1c\x74\x2d\x43\xd7\x9a\xd1\x36\xe7\x10\x57\xcb\x9f\x22\xca\x04\x2e\x61\xd2\xc5\xcc\x4c\xcf\x5b\x75\xa7\x37\x99\x22\xbc\x4f\xd8\x83\x72\xd2\xa8\xf6\xa2\x75\x08\x65\xf9\x1c\x14\x34\x12\xa3\xfc\x61\xe4\xad\x4a\xbd\x03\xdc\x1c\xa0\xfc\x42\x97\xab\x10\x7a\x19\x63\x53\x3a\x3d\x80\xa2\x4a\xe2\xec\x41\x46\xe8\x26\x5a\xcf\xd4\x44\x6f\xc2\x81\x03\xc5\x04\x7c\x17\x79\x6c\x41\x48\xb8\xe6\x58\xe4\x4e\x9b\x1c\x25\x9d\x63\xc9\x7f\x0e\x76\x6f\xba\x8d\x9a\x73\x94\xcd\xb7\x34\x50\x8b\xfa\x09\xae\x42\xd2\xda\x30\x68\xe2\xc8\x5a\xf2\x06\x5f\x61\x8e\xc3\xf3\xc7\x3d\x73\xa7\x50\xc1\x36\x44\xc9\x6e\x3d\xbb\xb7\x47\x43\x25\xaf\x48\xd1\xd1\x45\xc2\x8d\x69\xf2\x2c\xbb\x4a\x90\x73\x05\x9a\x9c\x40\x89\x18\x04\xc7\x3a\x22\x9f\x01\xce\xf0\x67\x8c\xf4\x85\x5d\x18\xf9\x00\xf0\x25\x3a\xcd\x6b\x3e\xe5\x3d\xd9\x6c\x4c\x92\xaf\xff\x1f\x30\x87\xee\xb4\xfb\xa8\x6d\x2e\x94\x95\xc5\xf7\x34\xa4\x6c\xa2", b"\x0d\xeb\xcf\x6c\x88\x50\x4a\x88\x2a\x01\x91\xe6\xfa\x4c\x77\x4c\x10\x85\x83\x62\x62\x94\x28\xaf\xf2\x4c\x22\xe3\x36\x4b\xaa\x15", b"\x53\xd8\xc1\xdb\xb3\xa2\xc1\x02\x35\x21\xb7\x05\x00\x5c\xe6\x35\x0b\xcf\x66\xc0\x93\x58\x8c\x35\xd7\x68\xfc\xa2\x95\xa4\xa9\xce", ); test::( b"\x49\xd5\xf2\x0a\xcf\x1e\x9d\x59\xa6\x56\xbd\x16\x3f\xe4\x6f\xc8\x68\x47\x6c\xcd\x92\x63\x77\xa4\x0e\xd3\xd7\x47\x6e\x9e\xb7\xa8\xa7\x0c\x4b\x88\xb1\x6e\x79\x91\x48\xd2\x5f\xa2\x3b\xd0\xc9\x16\x11\xb7\x6c\x96\x65\xf5\x72\x2f\x40\x4f\xd9\x0e\xfd\xb8\xad\x14\xb7\x59\xc3\x49\xff\x6c\x83\x06\x42\xd5\x10\x76\xcc\xbd\xc5\x7f\x15\x2f\xba\x41\xc6\xa7\xf3\xcd\x39\x05\xfa\x7c\x85\x72\x65\xff\xc7\x59\x6a\x64\xdc\x69\x49\x0a\x93\x2b\x95\xad\xbc\x79\xa3\xb4\xf2\x1b\x2c\x6f\xb5\xd5\x83\x5d\x8b\xca\xe5\xd4\x4d\x91\x2a\x0a", p, q, g, b"\x8f\xf1\x30\x22\x08\x03\x16\xbe\xa4\x9b\x89\xa0\x6d\xd5\xa9\x71\xd8\x6e\x0c\x9a\x3a\xf4\x14\x25\x8a\x8f\x48\x50\x88\xb6\x6c\xc3\x8c\xde\xa0\x2c\xdd\x62\x09\x6c\x00\xeb\x0d\x1c\x2e\xe6\x62\xcf\xf1\x6f\x6d\x2d\x30\x44\x0b\x2a\xd9\xe8\x97\xb9\xeb\x93\x9b\x12\x99\xff\x87\x95\x57\xf1\x63\xf1\x7c\x8a\xc6\x0d\x0c\x6e\x99\x8b\x3a\x04\x4b\x43\xfb\xfa\xc7\xb0\xcc\x30\xa5\x79\xa6\xbd\xa1\xb4\xff\x59\x8a\x53\x1f\x9e\x37\xcc\x19\x01\xa7\xb0\x8e\x79\x4a\x74\x01\xd0\xf8\xca\x4b\xe5\x5b\xff\x7b\x17\x63\x21\x82\x85\x75\xa4\x77\x68\x6a\x98\xb4\xb1\x72\x66\xe1\x01\x60\x1f\x43\x6e\x55\x4b\x9e\x42\x88\x05\x79\x70\xfa\x34\x63\x34\x3e\x7e\x52\xa5\x8c\xa1\x45\xec\x9b\xef\xd7\xbe\x31\xea\x76\x6e\xd7\x4a\xc1\x78\xbc\xcd\xfe\xe9\xd2\x95\x65\xe7\x93\x5e\x8d\x70\xc3\xeb\x09\x1e\x3e\x3b\x3e\x6e\x77\x71\x69\x31\xed\x72\x9c\x49\xb9\x64\x43\x60\x60\x98\xbd\x08\x10\x98\x9e\x0e\x6f\x25\x3c\xf3\xec\x38\x29\x42\x31\xb7\x11\xb0\x9a\x94\x16\x09\xac\xc8\x97\x68\x19\x07\x65\x43\x92\x6e\xc4\xe0\x6f\x3e\x4d\x7f\x12\x3c\x2b\x87\x71\xe5\x45\x89\xe0\x45\x24\xe3\xb4\xf9\x50\xda\x56\x0a\x25\xd1\x21\x72\xd4\xeb\xda\xdc\x17\x19\x40\x0d\x91\xcf\x02\x64\x70\x87\x14\x47\x92\x00\xc5\x0e\xf0\x0e\xc0\xe6\x04\x90\x9a\x54\x6c\x95\xeb\x2f\xa5\x3c\x65\xee\x72\xad\x53\xf1\x49\xc9\x38\xdc\x21\x93\x49\x6d\xb0\x7a\xf3\xb3\x0a\x1f\x43\x97\x08\xaa\x11\x5c\x8d\xd4\x7c\x81\xc1\xbc\x68\xea\x3a\xbd\x90\x26\x11\x3c\x01\xeb\x05\x55\x8b\x8a\x2b\xe9\x09\x34\x76\xf0\x12\x47\xbf\xbe\xb3\xf2\x85\x8b\x13\xe6\x22\x8b\x98\x20\x5f\xa7\x10\xb6\xaf\x1c\x5f\x71\x48\x0d\xee\x40\x1d\x74\x72\xd7", b"\x19\xa7\x3b\x04\x9b\x16\x4d\xbf\x7f\xb2\x82\x6f\x42\x53\x61\x7c\xf1\xc5\xbb\x46\xff\xc5\x20\x4e\xfa\x00\x00\x2a\x79\xe2\x3c\x0b", b"\x7b\xe1\x37\xc1\x09\xe6\x8f\x33\x7b\x5a\x21\xcb\x59\x1a\x87\xaf\x1c\xb8\x68\x14\x19\xf8\x75\xff\x8f\x04\x1e\x82\x99\x91\xfe\x28", ); test::( b"\x11\x90\x85\x3e\xfb\x7e\x04\xcd\x49\x47\xc1\xea\x5b\x1b\x5d\x9e\x0a\xc5\xe6\xdf\x1d\xd0\x50\x87\x73\x08\xf1\xb2\xc7\xe0\xa4\x91\x7e\x58\x81\x03\xd2\x8c\x0f\x6e\x8b\x72\xd9\x67\xaa\x06\xac\xa6\x8a\x98\x6d\x80\x77\x40\xf2\xdd\xdd\xe7\x28\x1e\x55\x0a\xf4\xf6\x37\xea\xdf\x61\xf8\x80\xc7\x35\x1b\x48\x66\x15\x09\x6f\x6b\xa5\x0d\x87\x54\xbb\xf9\xba\x1c\x49\xa3\x48\x58\x15\xef\x06\xb3\xcd\x76\x1b\x55\x86\xc3\xfc\x2b\x46\x4c\x6f\xe1\x2c\x16\x0a\xb0\xf6\xf4\x46\xfa\xbf\x74\x21\x24\x30\xce\xc1\x5e\x75\xa5\x7b\x10\x2e", p, q, g, b"\x9b\xb8\x1c\x80\xd2\xb8\xa6\x01\xa0\x9e\x22\x47\x5d\x70\xd1\xdc\x55\x13\x40\x9f\xb4\x66\x8b\x17\x6c\x76\xb3\xaa\x1a\xf8\x63\x0a\xc7\x79\x0a\x44\x44\xab\x82\x37\x87\xf6\xf5\x69\xbd\xf0\x2b\x9e\xef\x5e\x7b\xb2\x1a\x88\xe3\xd3\x29\x68\x57\xe9\x19\x19\xf3\xc4\x73\xad\xd1\x6b\xcd\x76\x3f\x31\xa2\xf9\x84\x4d\x7c\xbd\x8d\x48\x06\x72\xa0\x36\xc4\xb1\x04\xbe\x66\xac\xd6\x6e\x6e\xf0\xe8\xa7\x44\xb3\xd8\x78\x09\x0d\x1d\xe9\xf1\x05\x56\x02\x47\xc6\x21\x53\xe1\x17\xef\xa5\x5e\xc6\x1c\x17\x7c\xd8\x2f\x8d\x72\xc5\x1d\x25\x3f\x4d\xc7\x33\x6f\x79\x82\x60\x25\x61\x9f\xb2\x10\x3f\x91\x14\x4f\x90\xf6\xa6\x89\xab\xcc\x51\xc6\x8a\xff\xd2\x84\x62\x57\x8b\x18\x3e\xec\x94\x20\x58\xf4\x8a\xbf\x54\x6f\x73\x89\x40\xa6\xc2\x6d\x30\x1c\x4b\x90\xca\x40\xea\x49\xc1\x17\xd6\x11\x47\xe8\x68\x39\x89\xba\xed\x7a\x22\x1c\x4f\x22\x09\x2f\x72\xb1\xed\x60\x4b\x6a\xa9\x4f\xf6\xa5\x74\xb4\x21\x5b\xd6\xf8\xe9\xd7\xb6\x38\xaf\xa4\x35\xa3\x34\x65\x89\xa6\x1b\x1d\x1d\xb2\x98\x9d\x7b\x45\xf3\x23\x45\x45\xe8\xa2\x2d\x60\x5a\xd6\xcb\x03\x6e\xf7\x91\xf6\x25\xd2\xc6\xa9\x95\xed\xa3\xe0\xca\xfc\xe7\x04\xa2\xbf\x15\xab\x5d\xfa\xd0\x16\x21\x04\x59\x2d\x23\xf5\x2a\xa0\xfe\xa1\xf4\x32\xf0\xa3\x08\xd1\x6a\x45\xe1\xf4\x1f\x82\x32\x62\x07\x4e\x91\x73\x75\x4c\xeb\xa7\x0c\xd8\xa3\x70\xdb\xab\x1a\x14\xf8\x41\x59\x11\x6d\xa7\x3d\x3a\x9c\xf8\x25\x94\xcb\x3a\xf9\x57\x97\xcf\x44\x42\x72\x85\x05\x89\xac\xc6\xbc\xa4\x71\xd0\x76\x33\x5d\x67\xc4\x61\xdb\x60\x23\x95\xbf\xb1\x7c\x39\xbf\xa2\x4d\xf1\x40\xc0\xac\x43\x88\xdb\x05\x34\xa5\x0d\xfd\x26\x13\x74\xf8\x1b\x31\x0f\x75\x1d\x16", b"\x58\x7d\x7f\x44\x54\xd5\x94\x18\xa7\x52\x75\x70\xf2\x8f\x1b\x07\x45\x1f\x3b\xaf\x28\xf5\xca\xbe\x03\x10\xc4\xd7\x9e\x42\x53\xa5", b"\x18\x83\x94\x04\xaa\xad\x59\xff\x24\xd6\xac\xce\xc3\xb7\xcc\x6a\xc7\x00\x3d\xd4\xad\xf9\x6b\x77\xba\xb0\x68\xae\x72\xf2\x5f\x61", ); test::( b"\xb1\xcb\x43\x0c\x5a\x1d\x72\x78\x8c\x79\x5a\xb5\x67\xa8\x4c\x7f\x59\x77\x96\x59\x33\xa5\xbf\x23\x80\x58\xf2\xfc\x81\x88\x80\xd2\x5b\x4d\xde\xf9\x63\x54\x81\xfd\x9f\xdd\x45\x98\xae\xce\xc3\x76\x4f\xa7\x30\x93\xa2\x25\xd4\xe4\xeb\xcf\x01\xe4\xb7\x5b\xdc\x18\x41\xdc\x01\x65\x2c\x4d\x99\x16\xaf\xa2\x4b\x89\xc2\xd6\x85\x4b\x72\xea\xa7\xb1\xf3\x08\x9d\x1a\x91\x92\x10\x83\x1a\xc8\x0f\x99\x83\x57\x90\xce\x64\xab\xc3\x42\x70\xcd\x45\x51\xd3\x1b\x8f\x53\x48\xce\x8a\x70\xdf\x60\xb8\x8e\x08\x5a\x98\x4a\xca\xc6\x65\xa7", p, q, g, b"\xa8\x1a\x54\xbe\x06\x85\xf3\x35\x05\xae\xd9\x59\x1f\x33\x3a\x74\xa8\x42\x99\x5d\xa5\x13\x5f\xa4\x8f\x50\x53\xfa\xc2\x9f\xff\x08\xaf\xd9\xb9\x01\xc3\xdf\x13\x47\x20\x4a\x3f\x13\x3a\x7d\xff\x6b\x1a\xdb\xab\x07\x75\x26\xb6\x38\xa6\x38\x37\xd7\x84\x43\x39\xd4\x8f\xe1\x07\xaf\x08\xed\x62\xe8\x7d\xe5\x47\xce\xd8\x4d\xf9\xa2\xcc\xc4\x58\x76\xb2\x9b\xc5\x36\x1c\xe8\xa9\xa2\x1b\x81\xd4\xf8\x5d\x3b\x67\x1c\x9b\x44\xb5\x48\x3f\x26\x10\xef\xa0\x17\x51\xd3\xa0\x7f\xd6\x94\xe4\x66\x53\xac\x47\xac\x64\xa9\x10\xb7\xfc\x42\x1f\x07\xe5\xde\x54\xe8\x98\x78\x99\x89\x09\x1e\x9e\xd5\x8b\x7c\x04\xe9\xe1\xdc\xed\x60\x47\x5d\xc6\x93\xa0\xeb\x40\x15\xed\x65\x81\x10\xb8\x2f\x8e\x72\x0d\xc7\xaf\xff\x69\xce\xa7\xb8\xe5\x6b\x8a\x97\x55\xbf\x1e\x29\x33\xd0\x83\x60\x83\x77\x50\x4c\xab\x52\xd3\x8c\xce\x1b\xa8\x2f\x84\xc2\x62\x65\xe6\x93\xf1\x8c\xf5\x2e\x93\x0d\xc0\xd8\xbc\x9d\x41\xf4\xd2\x8b\x32\xb7\x40\x5c\xb1\xfc\xe8\x8a\x55\xbe\x40\xdc\xa1\xb1\xa3\x51\xaa\x7d\x77\xfa\x6e\xf8\x4c\x77\x6f\xa3\x01\xdb\xa2\xe2\x36\x93\x3d\x89\xc8\xb9\x44\xf5\x34\x03\x41\x4d\xf0\xd4\x34\xdb\x72\xca\xa7\x49\xfb\xcd\x56\x6d\x76\xf4\xf6\xf0\xbc\x40\xe4\x2a\x29\xae\xbe\x62\x10\xe8\x9f\xa0\xca\x8b\x6a\xc0\x8a\x4c\xac\x65\xc5\x90\x50\x35\x33\xc3\xe4\xf1\xb3\xc5\xbd\xe8\x68\xe7\x9d\x9d\xa9\x18\xb7\x2d\x1b\x09\x8a\x72\x78\x76\x95\x46\xb7\x84\x50\xe0\x0e\x46\xdd\x40\x0e\xfe\x97\xc8\x84\xdb\x96\x12\xba\xaa\xee\xe2\x48\x6f\x64\xcd\x83\x02\xa4\xc3\x2d\x8f\xdb\x87\x3f\xe0\xaf\xff\xd7\xbb\x74\x81\x12\x20\xb0\x13\x39\xdf\xc5\xe5\x67\xc7\x66\xaf\x28\x05\xec\x1c\x30\x12\x63\x99", b"\x60\xd2\x76\x3f\x01\x38\x07\x6e\x9e\x0e\x20\xf8\x3e\x4a\xa2\xe9\xaa\x35\x2c\x19\xca\x79\xe3\x72\x63\x03\xfe\x89\xb1\x2e\x27\xf2", b"\x07\xe0\x8d\x91\x6c\x8a\x10\xba\x26\x9d\xc4\x60\xee\x9d\x83\xf8\x6a\x7b\x3d\x98\x62\x1b\xb7\x32\x4a\x6a\x7e\x60\x72\x38\xba\xa3", ); test::( b"\x3b\xb9\x43\x0e\xea\x69\x79\x12\x9b\xe7\x45\xd5\xae\x6b\xab\xd4\x96\x6e\x3a\xbf\x7d\x9e\xe5\x85\x6f\x2c\xaa\xe6\x01\x4c\xb3\x40\xee\xbd\x28\xbd\x9f\x39\x1e\xb4\x6b\x3a\x2b\x8a\x4c\xdc\x22\x4e\x55\x08\x53\x2c\xa0\x8c\xb1\x04\xaf\xf6\x77\x13\x3c\xf4\x39\x3a\x20\xfe\x44\x99\x96\x7d\xfa\x64\x51\x54\x55\x93\x0c\x65\x9d\x43\xbb\xee\x23\x40\xb1\x4a\x3b\x33\x42\xd4\xb9\xa4\x66\xb8\x89\xe8\x50\xdf\xf4\xb2\xa5\x1d\x38\x9c\xa3\x2f\xb6\xa5\xf4\x33\xed\x93\x03\x2b\xe4\xe5\x63\x69\x57\x97\xb8\xc1\xe1\xe0\x19\x18\x41\x72", p, q, g, b"\x75\xb7\x65\xec\xa4\xeb\xde\x0b\x65\x64\xc3\x13\x7f\x16\xcd\xae\x00\xee\xad\xd2\xd0\xb2\xcb\x83\xcd\x15\x00\xcd\x05\xed\x0d\xd1\x67\x30\xc9\x50\x1c\x8a\x35\x3a\x64\x63\x4d\x06\x5f\x61\x37\xff\xcf\x95\x63\xd9\x61\x27\x90\x6f\xb1\x7d\x5a\x79\xad\x29\x10\x24\xa4\xa6\xfb\x7e\x7d\x08\x02\x19\xa6\x23\x1c\xa1\x58\xb6\x5f\x52\x02\x91\x2d\xdc\xb8\xdd\x1f\x01\x8c\x9b\x0e\x76\xb3\xa4\x76\x33\x6c\x50\x41\xbc\x50\x2f\x8a\xcb\x74\x8f\x13\x6c\x3d\x78\xcb\x2c\x42\x9c\x8f\x1a\xc1\x7b\x63\xdd\x7e\x9e\x57\xb6\x07\xf9\xde\xbe\x57\x14\x59\xdf\x36\x88\xcf\x4c\x11\xfa\x1e\x84\x53\x3a\xec\xda\x2d\xfe\xce\x05\xf4\xbd\xb2\x68\xcc\x7b\x0c\x8f\xe7\xaf\x5a\x63\x3a\x83\x51\x5a\xda\x95\xf3\x18\x24\xd6\xa3\xc7\x12\x2f\xdc\xd1\x2f\x54\x99\x2c\xbe\x64\xd1\xd6\xbd\xbd\x0a\xb5\xae\x4d\x19\xaa\x52\x60\x97\x50\xa1\xde\x18\x6a\xfa\xb5\xa1\x63\x98\xda\x47\x3d\x12\x88\x82\xb0\x65\xe8\x73\x80\x9f\xae\x0b\xbd\xc0\x1a\x9c\x73\xb5\xc6\xee\x65\x85\x7f\xa7\x94\xa1\x50\x58\xdd\xfb\x24\xa9\xa1\x7a\x04\x08\x64\x6f\x20\x09\xdd\xa6\x10\xc8\x29\x1a\xe1\x48\xa1\x8c\x17\x3f\x83\x6b\x19\x7c\x78\xed\xe5\x65\x48\x95\xb4\x5a\x34\x19\xe9\xc3\x17\x7f\x25\x03\xa9\x3c\xe5\x26\xbe\x14\xad\x91\x99\x39\xeb\xe3\xf2\xd0\x7f\x00\x6a\x0b\x02\x2d\x6a\x62\x3c\x60\x17\xf0\xc7\x66\x19\xf0\x78\x05\x31\xd5\x39\x0d\x42\x39\xb2\xf9\x00\xef\xb4\x4c\x95\x30\xc7\xd9\xb3\xe8\x4a\x70\xc9\x04\xb1\x79\xad\x0c\x4f\x90\x92\x50\xf7\xcc\xf8\x3c\x5f\x42\xd6\x43\x7c\xbc\x9f\x03\xfb\xae\x81\x31\xa1\x2d\x33\xe0\x17\x21\xe6\x50\xae\xe9\x1e\x1c\x89\x3f\x5e\x7e\x03\x9e\x0d\x58\x5c\xd7\xcd\x74\x95\xc4\x0d", b"\x74\x16\x72\x9a\x1f\x60\x20\x8b\x7f\x83\x74\x80\xfb\xa8\x18\x40\xe4\x5b\x33\x8a\xb9\x84\x6e\x9b\xbb\x91\x68\x22\x9f\x64\xbc\xea", b"\x58\xeb\x90\x40\x76\xa3\xac\x69\x07\xd7\x50\xff\x6c\xdf\xaa\x46\x54\x35\xe9\x98\x2e\xcb\xdf\x72\x19\x7b\x09\xbb\x6d\xf1\x37\x3a", ); test::( b"\x55\xa6\x9f\xc1\x6f\x6b\x75\x3d\x0b\xf6\x5e\x84\x4d\x06\x78\x59\xf5\x1d\xd3\x29\x27\x99\x80\x19\x60\x63\xfb\x59\xf8\x9b\xd7\x78\xa9\x24\x4f\x93\x2c\x2a\xdb\x68\x11\x18\x36\x12\x10\x5d\x1c\x52\x7e\x83\x02\xdf\xee\x50\x42\xcf\xce\x5d\xbe\xab\x16\x5a\x39\x6f\x5a\x4c\x21\x33\x9b\xe1\x02\x1b\x7e\xce\xc6\x6f\x21\x77\xf9\x42\x43\xef\x62\x61\x60\x8c\x56\x91\x96\x79\xd4\x48\x63\xcf\x9d\x2a\xfc\x60\x10\xfc\x2b\xf8\x21\xb9\x31\xca\x39\x70\xd6\x9b\x1e\x62\x2a\x90\x83\x89\xdb\x50\x49\xd7\x18\xe3\x57\x07\x10\x63\xae\xf8", p, q, g, b"\x61\x46\xa5\x1d\xeb\x79\x95\x7a\x83\xb2\xc7\xa3\x20\x4b\x5c\x34\xae\x4f\x8e\x0d\xb6\x0f\x0c\x07\xe7\x08\x03\xf2\x2b\xf9\x9a\x39\x64\x72\x63\xdb\x9e\x28\x5d\x72\xf6\x27\x0e\xe1\x0f\x18\x58\x4c\x39\x08\x1d\x25\x44\xd4\x05\x02\xc5\x0d\xf1\xe3\x5a\x45\x76\x00\xb5\x56\x9d\x61\xe8\x12\x6c\x05\x5f\x7b\x96\x45\x72\xe9\xf3\x28\x2e\x4d\x97\x45\x00\x69\x55\xc2\x42\x61\xc6\x8d\x7c\x0c\xb3\xf0\x8b\x0b\x0d\x8e\xaa\x97\x1e\x1a\x63\x1c\x68\xa3\xa9\x14\xd3\x5e\xfe\x89\xf7\x6b\x9c\x21\x16\xaf\xb7\xbd\x19\x89\xe2\x02\xe0\x92\xb5\xb5\x70\xea\xef\xcc\x93\x35\x42\xe6\x50\xd9\x2c\x03\x3b\x59\x73\x82\x1d\x6d\x77\xcf\xc2\x43\xf7\x44\xda\x80\xb5\x6e\xae\xa7\x65\x0b\xf5\x08\x02\x51\x62\x28\xad\x6d\x5b\x0d\x4e\x88\x9c\x57\x5e\x36\x78\xff\xdb\x1c\x28\x9e\x59\xd9\xff\x7f\x84\xa3\xd6\x3d\x39\xd6\x88\x8d\xbe\x21\x3e\x2c\x3b\x31\x14\x08\x5e\x00\x6a\xd7\x45\x05\x73\x9f\xce\x82\x6f\x96\x32\x84\xdc\x4e\x2b\x01\xec\x2f\x92\x33\xd3\x47\x0e\x82\xd8\x72\xed\x94\x4e\x62\x96\x1f\x64\x13\x4e\x80\x80\xda\xf2\xdf\x49\x4a\x76\x24\x0a\xc0\xcd\x22\xf9\xaf\xae\x7e\x80\xd3\xcf\x3e\xfb\xe0\x55\x14\x7f\x62\xff\x8c\x61\x92\xe3\x88\xb4\x9e\x47\xd9\xfe\xaf\x19\xec\xcd\x65\xdc\xa9\x99\x16\x38\xeb\xd7\xb0\x48\x07\x77\x07\xad\xab\x1c\xb2\xa4\x35\x8e\xef\xc4\xaa\xb8\x25\x1f\xb0\xf9\xd5\xf0\xb0\x9f\x29\x9c\x72\x0d\x3a\x8c\x00\xa5\xa4\xd8\x4f\xee\xc0\x40\x05\x70\x40\xb7\x09\xcc\x0e\xd1\x85\xa8\x32\x53\x7b\xc4\xb2\xdf\x0e\xc1\xf7\x71\x69\xac\x96\xe9\x12\x82\xde\x21\xf3\x42\xd5\x42\x9e\xc3\xd6\x6a\xd9\xd3\x36\xc4\x40\x94\x9a\x12\x11\x21\x7b\xf5\x4a\xad\x93\xbb\x4b\x0a\x43", b"\x13\x6f\x93\xdc\xc7\xd3\x3e\x55\x9b\x8d\xb0\xaf\x13\xe0\x0c\x71\x90\x92\x8b\xff\x50\x86\xee\xdf\xd1\x17\x06\xe6\xf2\x34\x9a\xd0", b"\x32\xb9\x5b\x9b\x14\x7c\x7d\x1a\xc2\xa2\xf0\x05\x7f\xc0\x53\x8a\x4b\x7c\x9c\xd4\x65\x2e\x67\x83\xe5\xd7\xe3\x53\x46\x55\x63\x1a", ); test::( b"\x15\x67\x89\x0c\x69\xe5\x78\xa2\x7d\x62\x08\x91\x3d\xfb\xc2\x0e\xdd\xc6\x1f\x5f\xee\xd4\x57\x40\x06\x93\xdd\x17\x0f\x80\x67\xbf\x29\x0b\x11\x15\x07\x80\x68\x4c\x20\xd5\xcf\xd2\xbf\x1d\x53\x6d\xd3\xb7\x00\x25\x88\x3f\xb4\x17\x03\x43\x6f\xd0\x9c\x0a\x14\x11\x25\x78\x4f\x90\x91\x15\x13\x03\xef\x80\xcd\x34\x5e\x5a\x7d\x28\x54\x33\x5c\x29\x84\x53\x8c\x5c\xd7\x39\xb0\x07\x24\x8c\xd9\x9f\x1d\xbc\xd3\x14\x8c\xb0\xff\x0d\xb6\x33\xf8\xca\xfc\x7a\x0b\x99\xc6\x1e\x78\x4d\x03\x03\xa5\x12\x03\x07\xd3\xfb\x3c\x4c\x21\x9e", p, q, g, b"\x5c\x53\xd1\x3a\x1b\xee\x17\xa2\x87\x20\xb7\x08\x96\x46\xd0\x7a\x3f\xd5\x8b\x9b\x2b\x23\xec\x94\xaf\x31\x44\x83\x07\x46\x17\x7b\x0d\x20\x73\x70\x7b\x6b\x84\x90\x1f\xfa\xa7\xa4\x16\x5c\xef\xf2\x42\x56\x40\xfc\xfe\x5d\x17\x65\x0a\x44\xa1\x68\xeb\xd7\x69\xc8\x33\x44\x5f\x1b\x2d\x26\x43\x4c\x22\x8c\x1e\x2e\xdf\x17\x04\xd7\x11\xa8\x62\x57\xbe\x25\x23\x5a\x7c\xea\x1e\x5c\xba\xc4\x12\x23\x5b\x75\x96\xd1\xdf\xa0\x39\x80\x81\xa4\xf1\x81\x51\xcb\xb5\x1d\xc6\x2c\x22\x6a\x2a\xbc\xaf\x33\x35\xe8\x6a\xb5\x46\x08\x04\x0e\xe8\x14\xe4\x43\xb6\x43\x98\x21\x3b\xa6\x0d\x7b\x5a\x3c\x8e\xa7\x8e\xc6\xb9\x89\x34\xc8\x9a\xca\x05\xb9\x7d\xf5\xf6\x5b\xc5\x74\xa3\x0a\xcd\xdd\x09\xf7\x3c\xec\x14\x52\x8b\xe4\x9a\x2f\xbe\xca\x70\x29\x1b\x1b\x29\xf7\x04\x2c\x59\x49\x94\xda\x12\x8f\xda\x22\xb3\xed\x3a\x93\x5a\x1a\x00\x57\x5f\xf1\xff\xd1\x93\xc4\xca\xc5\x3a\x2a\x2d\x4b\x0c\x51\x02\x28\xa7\x6a\x74\x33\x36\x07\xd1\x5b\x56\x86\x14\x42\x71\x44\xb4\x17\x4d\xa3\x58\xe3\x83\xf6\x58\xc6\x0b\x45\x71\x00\x36\xf5\x4f\x93\xf1\x7b\xc8\x08\xb3\x02\x67\x4e\x83\x8c\x1d\xfd\x7f\x81\x6f\x7e\xa4\x4b\x0d\x97\x38\x6e\x4e\x16\x34\xc9\x53\x95\x68\xdd\x6a\xe1\xc2\x8f\x25\xb2\x7a\xa9\x44\x99\xae\x38\x9a\x09\x26\xc8\xfa\x62\x95\x6c\x6e\x24\xdc\xed\x0a\xfb\x04\x91\xdd\x9f\xac\x05\x16\xd2\x7f\xd4\xd2\xdd\x01\x50\xee\x6b\x4c\xff\x7b\xfd\x57\x50\x43\xd7\x01\xda\xad\x0f\x1b\x94\x2a\x0e\x4c\x61\x95\x6b\x32\xa6\x8c\x90\x78\xf6\x07\x7f\xa9\x94\x51\x98\xd4\x47\xa5\xbf\x3c\x47\xb7\x28\x84\x27\xed\xc6\xf9\x96\x55\xae\xad\xf8\xde\x18\x51\x57\x14\xc6\xb9\xc0\xd4\xce\x5a\xb0\x92\xc2", b"\x49\x47\xd3\x6e\x74\x26\xf1\x44\x1b\xe5\xa7\x5d\xc9\xcd\x84\x54\x50\xc6\x11\x04\xf1\x9e\xd4\x0c\xe3\x3e\x25\x2f\xa2\xc2\x62\x68", b"\x35\x68\x79\xde\xb1\xda\xef\x01\xda\x04\x75\x0d\x58\xe5\x98\xdb\x47\xaa\xaf\xf5\x0b\x1c\xf4\x2d\x87\x33\x4a\x61\x57\x80\xff\x8c", ); test::( b"\x4f\x7d\x89\x4d\xfb\x7d\x82\x04\x0a\x9f\xed\x6c\x26\xa7\xd2\x7a\x9a\x15\x11\x38\x8c\x11\x3c\x64\x71\x5a\x06\xdc\x46\xfc\xf4\xf9\x04\x07\x0a\x6e\xd9\x5b\xdd\x8d\xc1\x73\x0a\x27\x64\x5d\x37\xeb\x3b\x02\x84\x7c\xb1\xc6\x31\xec\x0c\x67\xb2\xee\x07\xb8\x80\x5b\x34\xdd\x9b\x84\xe6\xab\x3f\x9a\xfb\x92\x46\x99\x4e\xa5\x79\x56\x7a\x8f\x4a\xf7\xfe\xb8\x68\x98\xcc\x9c\xb5\x34\xc3\x87\x99\x3c\x6e\xc1\x65\x84\xac\x85\xbe\xd3\x6b\xbc\x2c\x30\x57\x70\xf2\x11\x63\x68\x61\x67\xdd\x53\xfe\x56\x23\x62\xff\x54\x9d\x90\x35\x39", p, q, g, b"\x00\x96\x74\x78\x35\x8d\x7c\x16\x96\xce\xb9\x2b\xe8\x50\xf5\x53\x8a\xd8\x54\x3e\x15\x1a\xad\xd8\x4c\xab\xa1\xb7\x2f\x36\x36\xa2\x09\x2a\x86\xb6\x46\x28\x73\x90\x3d\x5b\xf1\x7f\x61\x2b\x45\xb5\x13\x3e\xac\x16\x30\xbf\x07\xc0\x37\x14\x23\xd2\xe5\xd7\x14\x7c\xea\xcc\x9b\xaa\x8c\xb3\xb0\x4c\xbc\x3c\xbd\xa4\x29\xab\x40\xd7\xe5\x92\x73\x0d\xc4\x77\xb0\xa9\x5f\x1f\xb5\xed\x5d\x91\xe1\x4b\x9d\x5a\x1a\xc8\xd4\x03\xa5\x5a\x65\x8d\x1c\x38\x3b\xb5\x98\x05\x3b\xe2\x38\xcd\x82\x38\x69\x68\xae\xdb\x81\x15\x86\xfa\x2a\x14\x11\x93\x24\x89\x6f\x21\x11\xb9\xbc\x7c\xff\x66\x6d\x37\xaf\xfe\x76\x04\x1d\x98\xf3\x62\xda\xa0\x9f\xf6\x5e\x82\xe8\x65\xeb\x29\xc5\xd4\x71\x0c\xa7\x80\x08\x86\x88\x7d\x38\x3d\xa0\xcb\x59\x9b\x22\x5f\xdd\x21\x0a\x3d\x70\x92\x9d\x35\xfb\x9c\xa8\x07\xe5\x6c\x91\xc0\x85\x12\x52\xb9\x5c\x07\xb6\xb1\x20\xb3\xb6\x50\x41\x8e\x0f\x54\xf4\x57\x36\xf8\x20\x18\xd0\x92\x94\x46\x2d\xde\x6e\xea\xfc\xb1\x5a\x2a\x72\x85\x77\xfa\xf3\xef\x3e\xb1\x3d\xb0\x44\x96\x5e\xa3\x89\x2f\x7e\xb0\x88\x4e\x47\x76\x60\x89\xd2\xa4\x3a\xbc\x62\xa3\xc3\x75\x83\x1c\x20\x84\x8d\xfd\xe8\xf8\x3c\x24\x9a\x8e\x27\xf2\x89\x7c\xaf\xcf\x5a\x06\xb7\xc3\x59\x1e\x09\xb4\x2f\x82\x84\x9d\x49\x86\x64\xf4\x85\xde\x26\xc7\x88\xe5\x59\xad\x5b\x15\xf9\x99\xdb\x92\x7f\x81\xf5\x4b\x96\xe9\x97\xb9\x09\x6b\x2a\x7e\x3e\x75\x6f\x5a\x9a\xab\x54\xc1\x60\xcf\xc2\xe6\x44\x92\x17\x94\x87\xc9\x8d\x0a\xa3\x83\x08\xd6\x74\x28\xf3\xa1\x13\x22\x8b\xc6\xdc\xdf\x7a\xb9\x3c\xbb\x1d\xa2\x25\xc7\x2c\x63\x6f\x49\xd2\x74\x42\xcf\x3c\xf2\xf9\xc4\x9b\x90\xac\x8b\xaf\xe7\x40\xdb\xbf\xd5", b"\x09\x40\x72\x48\x55\xa0\x67\x1d\x60\x14\x7d\xc6\x1f\xd2\x83\x19\x01\x34\xa6\x8c\x17\x81\x14\xd5\x9a\xb5\x8d\xa7\x3a\x1c\x81\x82", b"\x43\xf1\x94\xb9\x70\x78\xdc\x9b\x84\xc8\xe8\xe8\x67\xa7\x4b\xaf\xdc\x22\x11\x70\x6a\xe1\x10\xb5\xae\xc0\xb9\x9e\xde\x1f\xfe\xd8", ); test::( b"\x9b\x62\xa7\x4b\xc4\x9e\xf4\xff\x5c\x62\x16\x5e\x7d\x25\x52\x1f\x13\x5c\x83\x6b\xc4\xef\x02\x3f\xb4\xbb\x1d\x6b\x42\xc6\x29\x10\x71\xea\xe0\xb4\x65\xc5\x92\x31\xcb\x29\x7c\xac\x6d\x14\x58\x75\xfd\x84\xf5\x72\x9f\x79\xf9\x22\x18\x52\x2b\x9e\x55\xcb\x70\xd4\x71\x03\x0d\x36\x29\x1a\x24\x92\x5a\xb7\x31\xa2\xd4\x45\x8c\xff\x67\x70\x79\xd2\x07\xce\x86\x5b\x3d\x55\x26\x00\x92\x38\x86\x1d\x64\x50\x6a\x92\xb7\x6b\xaf\xf5\x9b\x37\xb8\x63\x08\x75\x58\xd5\x96\x5d\x76\x68\x5f\x0f\xbd\x1f\xab\x1b\x1f\x95\x61\xf8\xf6\x9c", p, q, g, b"\x75\xd7\xd9\xa5\xdb\xdd\x47\xce\xcd\x12\xf6\x9a\xb2\x12\xdf\xe0\x8a\x96\x56\xe2\xbc\xa9\x2c\x81\xdb\x2d\x26\x8a\x29\x3a\x32\x5e\x51\x1c\xd5\xaa\x1b\xa5\x9d\xee\xf2\xab\x63\x11\x66\x5d\xda\x58\x23\x0d\x48\xf1\x41\x63\x71\xde\x1a\x83\x64\xb3\x8f\x5a\xd5\x99\xc4\x72\xd3\x63\xa1\x8a\x2c\x13\xd5\x72\xcf\x84\x9b\xe2\xfe\xf9\xa1\x66\xe8\x38\xaa\x58\xb7\x21\xec\xfc\x4b\x36\x1f\xda\xb1\xd0\x87\x6b\x78\xe2\xe8\xf2\x3e\xf1\xc8\x2c\xc0\xe1\x70\x0f\xa0\x15\xa4\x00\x7b\x1d\x7b\x53\x5c\x82\xd2\x3c\x12\x9d\x1d\x1c\x9c\x4a\xfe\x87\x5a\x06\xc0\x5f\x71\xf0\x78\xcb\x8d\x90\x60\xf4\xd9\x36\x67\x1f\xae\xe2\x17\xd4\x04\x55\x25\xd5\x70\xb0\xc8\xca\x0c\x4e\x8b\x55\xdf\xe9\xb7\x80\xba\x69\xc9\xd8\xcd\xa1\x0c\x50\xfd\x61\xc4\xe7\x21\x4b\x94\x3c\x1c\x29\x79\x7b\x09\x9f\x57\xa4\xc6\x48\x59\x7c\xed\xd9\xd9\x09\xbc\x58\x4a\x9b\x75\x4b\x20\x95\x15\xdb\xfa\x0f\xec\xce\x2a\xd0\x5c\x84\x8e\x99\xdc\xa2\x1a\x6d\x0d\x5f\x2d\xac\x23\x61\xe4\xc0\xea\xf9\x6d\xf1\x99\xad\x28\x88\xd6\x71\x97\x4e\xf0\x5d\x65\xc9\x27\x88\x43\x4a\xb4\x2f\x1f\x1f\x79\xed\xc4\x9e\xc1\xfa\x92\x13\x95\xbd\x0f\xeb\x6a\x9e\x6a\x06\x22\xe8\x25\x5b\x0e\xf6\x93\x7b\x89\xd0\xcc\xcd\x58\x52\x87\x2d\x2b\x0a\xb5\xd7\x9c\x2f\x19\x8b\xff\x6b\x8a\xa3\x8a\xce\xe2\x1d\x6c\x3a\xdd\x55\x62\xd8\x4d\x96\x87\x58\xd9\x3e\x8c\x1d\x61\x1f\x7d\x61\x82\xb6\x2e\x44\xf5\x7d\xf3\x42\x89\x9b\xb5\x64\xa7\x94\xd1\x39\x15\x88\x21\x43\xd9\xdf\x45\xf8\xf2\x1c\xc0\x30\xaf\x33\x97\xe9\xe9\x49\x68\x3d\xdd\x8d\x8d\xa9\x90\x9c\xc1\x13\x96\x19\xe4\xb7\xb2\x52\xaa\xdd\x02\xc6\x6a\x5e\x20\x10\x5a\xdf\x26\xf2\xf0\x21", b"\x01\xe3\xde\x39\x8b\x01\x8a\x69\x47\x80\xdd\xc6\xca\x12\xb7\x8d\xc5\x5e\x7a\xd9\xfd\xdd\xb5\xa3\xf5\xb2\xca\xd0\x10\x32\x53\xdd", b"\x03\xc9\x82\x80\xab\xe3\x05\x0a\x67\xf8\x8e\xf2\x9f\xb2\x14\xa8\x01\x24\xf4\x73\x21\xc6\x2e\x41\xe3\x90\x5b\x85\x32\xf4\x93\x6c", ); test::( b"\x6c\x66\x05\x1e\x04\xc2\xe6\xaa\xa4\x3d\xe9\xaa\x42\xcd\x9f\x61\xe8\x32\x9c\x12\x4e\xd3\x03\x1b\x67\x45\x2d\xb4\xc4\x35\xdb\x29\x1d\x75\x6b\xa6\xef\x90\xab\x06\x30\x7c\xb8\xd7\x0f\x34\x96\x79\x2e\x63\x3b\xf5\xac\x98\x5c\x37\xc4\x3b\xdb\x4e\x45\x5c\x7f\x76\x1a\x5e\xe4\x50\x56\x7f\x85\xcc\x97\x7e\x96\x8e\x7f\xa4\x2a\x42\x8c\x1a\x7e\x91\x5c\x82\x87\x48\x65\x63\x1d\x80\x78\x89\x93\x77\x25\x59\x47\xc3\x44\x61\x82\x97\xb8\x3c\x96\x11\x4d\x11\xd7\x4d\x8c\xd5\x79\xb5\x53\x66\x7c\xac\x1d\x97\xae\xa4\xd1\x68\x49\x87", p, q, g, b"\xed\x2e\x10\xa4\x43\x16\xd6\x77\x46\x7d\x79\x94\x7b\xec\x9e\x40\x5d\x30\xf3\x2d\x86\x0a\x1c\xe4\x6b\x36\x68\x45\xdf\x9a\xd2\x22\xb0\xf9\x92\xf5\x84\x45\x71\xb1\x96\xa3\x10\xd5\x87\xff\xfa\x74\xbd\x51\x02\x15\xf3\xbd\xaf\xa1\xc9\x3d\x1b\x13\x15\x24\x6f\xd2\xf7\x94\xc4\xda\x07\xbd\x72\x2a\x98\xdd\xa9\xa0\x2a\xd4\x25\x5b\x6d\x52\x67\x73\x82\x56\xcb\x86\x39\xa1\x45\xc2\x84\x04\x56\x2a\xdd\x2b\xc7\x69\x1d\xac\x12\x60\x0b\xa9\xf8\xeb\xe0\x06\x14\xee\x3f\xc6\xe6\xb2\x48\x4d\x9c\x5c\x70\x90\xb3\xf3\xb1\x34\xba\x19\x90\x98\x64\x56\x30\x40\xfe\x87\x52\xd6\xc6\xab\x95\x11\x1f\xe1\x01\x4b\xf7\xbb\xe4\xe6\x74\xc9\xd0\x3b\xb8\xd2\x29\xe4\xb5\xf6\xa6\xe4\x71\xc6\x78\xb0\x26\x5e\x88\xcc\xad\x79\x60\xff\xfa\xe7\x00\xf3\xa7\x5e\x61\xa2\x4e\xa8\x82\xb9\x70\x53\x5e\xb7\x01\x7e\x16\xc4\x8c\xe9\xe2\xbc\x83\x57\xf7\xf0\x88\x9c\x87\x1d\x0b\x4c\xe2\x9d\x27\x9a\xfd\x1d\x11\x49\x98\xd1\xeb\x6f\xe4\xa5\x66\x1e\x42\x9b\x13\x27\xf0\xa3\x9e\x9e\xf0\x0a\x41\xa7\x4f\xe4\x79\xb9\x0f\xdd\xa2\x1d\x93\x15\x55\x5a\xfe\x22\x72\x74\xc1\x1a\x71\xc0\xd1\x0c\x9e\x5d\xfc\x89\x75\x0e\xda\x53\xc6\xa8\xb5\x2a\x52\x72\xc7\x55\x26\x37\x5e\x5f\xb9\x1f\xf7\x5d\x02\x8d\xf7\xaa\x2b\xce\xb5\xfd\xf6\xf8\xe3\xbc\x1e\xc3\xf1\xe2\x26\xd0\x4d\xf1\xd8\x42\xe4\xc8\xf4\x58\x98\x8c\xb7\x41\x5f\x0d\x2c\xa4\x49\x8b\x0c\xd6\x7e\x8b\x08\x5b\x00\x8f\xc4\xca\x06\x43\x93\xa0\xdf\x51\x7f\x0b\x48\x33\xea\x40\x51\xac\x3f\x1d\xe5\x68\x6d\xcc\xb7\xbb\xa8\xbd\x93\x90\x92\xd6\xd7\x8f\xa0\x8f\x5b\xf9\xbf\x6f\x13\xd7\xae\xf7\x2f\x04\x7f\xcc\x47\xa8\x82\x23\xdf\x6e\x1a\x62\xd2\x18\x16\x9f", b"\x31\xf2\xc8\x62\x87\xe5\x72\xff\x4d\x07\x42\x1a\x58\xdc\x7b\x3d\x72\x7d\xe1\x13\x76\x99\x52\xb6\xd8\xd7\x36\x08\x8b\x36\xa8\x25", b"\x30\xac\xbd\x1c\x4c\xd6\xaa\x66\x6e\xe5\x2b\x0b\xdc\x41\xfc\x3b\x23\x9b\x60\xd5\x7e\x27\x9b\x3f\x54\x83\xc4\xd5\x4b\xdd\x97\xa6", ); test::( b"\x5f\x8d\x7f\x28\x3a\xf0\x03\x84\xa5\x19\x76\x90\x29\xd2\x08\xb6\x1e\xee\x0e\x1c\xb2\x1c\xe9\xfb\x80\xe9\xd8\x59\x6b\x89\x45\x80\xda\x7a\xb3\x45\x74\x29\xe7\x2d\xfa\x64\xe7\xcb\x83\x94\x14\xde\x34\x4d\xa2\x1c\xff\x55\xb1\xb3\xa8\x31\x89\xd2\x08\xad\x20\x89\xb3\x5a\xbd\x78\xe2\x41\x6b\xce\xb6\x64\x66\x76\x2f\xd7\xab\x9c\x23\x4c\x4a\xec\x38\x72\xcb\xc8\x44\x3c\x92\xb8\xce\x4e\xe4\x59\x54\x25\xe7\x46\xe4\xb6\xf7\x97\x2e\xbd\x5d\x06\x5f\xb3\xfd\xc5\xe3\x29\xe8\xa8\x7e\xd3\xcd\xdb\xe2\x79\xd5\x72\x27\xae\x4b\x13", p, q, g, b"\xaa\x4d\x06\x52\x70\xc3\x8b\xdf\x99\x6b\x1f\x5f\x1e\xe4\xb6\x7a\x76\xef\x1e\x7b\x13\x4e\xa2\x1f\xd0\xa6\x13\x75\x21\x24\x50\x52\xe7\x49\x54\xb9\x65\x44\xc7\x00\xd4\x0f\x36\x24\x8f\xf2\x9a\x71\x2a\x09\x8d\x80\xca\x12\xe2\x8f\xdd\x79\x01\xa6\x22\xdd\x09\x88\xe1\xc4\xd6\x7d\xe4\xc4\x97\xa9\x57\x88\x2c\xe9\x92\xfc\xb0\x8c\x5b\x85\xc6\x85\x84\x47\xed\x6f\xcb\xad\x26\xd8\xc4\x04\x85\xf0\xa8\x9d\x9d\x02\x0f\xe2\x33\xe8\x93\x19\x03\x84\x55\x64\x4c\x82\x8d\x60\x8d\xf9\x70\x7c\x63\x17\x0d\xd0\x61\x8c\x0b\xae\xf3\xec\xa8\xd1\x45\x54\x60\xa2\xeb\x25\xfa\xff\x44\x4f\x80\x3b\xca\x29\x7b\xb6\x80\xe5\xf0\xfd\x06\xe8\x87\xed\x50\xc8\x06\x0f\x55\xd0\x16\x0e\xc6\x45\x17\x08\x6f\x4e\x1d\x62\x4a\xb7\xd1\x2d\xf1\xb5\x94\x70\x17\xe6\x22\xeb\xbc\xd6\xf4\xed\xdb\x0a\x41\xdc\xba\x82\x74\x3e\xfd\xc5\x80\x42\x88\xd2\x86\x3f\x54\x00\x3e\xea\x12\x75\x32\x46\xe6\xe0\x35\x7d\xf0\x55\x01\xb1\x95\xfd\xf3\xa7\x76\x1c\x4c\x3a\xcf\x26\x53\x7b\xf9\x8b\x32\xf2\xe7\x2f\xf1\xe0\x15\x9d\x04\x6b\xbc\x05\x31\x71\xe3\xd5\x18\x34\x4f\x05\x37\xf2\xe7\x20\x0b\xcd\xd9\x57\xec\x96\x36\x5c\xaf\x55\xfc\xd2\x46\xaf\xe7\x71\x70\x9e\xce\xc2\x83\x48\xa3\x56\xa1\xd4\xeb\x13\x6a\x17\x6a\xdb\x5f\xa1\x02\xf5\xfa\x5c\x96\x9f\x90\x89\x64\x62\xe0\x67\x7a\xfc\x60\x6a\x94\x8b\x25\x58\x7c\x10\x31\x6d\x22\xe1\x26\x9f\xc6\x4f\x91\x5a\x79\x6c\x96\x5b\x8b\xe9\x7e\x5b\xea\xb0\x47\xca\x51\x98\xbf\x2f\xf8\x56\xdf\x74\x0a\xfb\xbc\x1a\xef\xaf\xef\xb1\xed\x47\x27\x8b\x15\x0e\x6a\x72\x22\x41\x7d\x3a\x86\x49\x4b\xdb\x51\xed\xd0\x61\x68\x99\x52\x6c\x27\xac\xc2\xa8\x18\xe8\x3b\xaf\x57\x9b", b"\x71\x87\xca\xe8\x36\x82\x36\x18\xf9\xa6\xe8\x47\x05\x5c\xa2\xbc\x38\xc8\x6e\x72\x6d\x02\xd3\x8f\x49\x50\xeb\x6b\x71\xb3\x6b\xcb", b"\x21\xf6\xff\x41\x75\x76\x54\x30\xe2\xdb\xed\x34\x2a\x85\xd3\x00\x56\xb2\x89\x05\x74\x4e\xce\x5d\xad\x79\x75\x5e\xe3\xd7\xbb\xbd", ); test::( b"\xb2\x16\xa0\x35\xb0\xff\x29\xfe\xaf\x7d\x4c\x34\xee\xb1\x60\x41\x55\xc9\x03\x38\x00\x67\x53\xee\x2b\x36\x06\x2d\x72\xf6\x2b\x52\x45\x04\x65\x9f\x70\xb9\x76\xc6\x89\x52\xa6\x2c\x2b\x9a\x2a\x00\xcf\x00\x66\xa5\xe5\x09\x8a\x63\x2d\xf2\xee\x56\xdd\x1a\x14\x0a\x98\xf7\xb3\xac\x12\xdb\x35\x76\xb6\x10\xd7\x65\x63\xe4\x62\x16\x37\xda\x10\x98\xaa\x20\xf3\xc8\x32\x47\xb7\x27\x88\x60\x41\x7c\xec\xf7\xe1\x37\x19\x4c\xf1\xba\xe1\x2b\xbc\x63\xa7\xba\xe0\x2c\x90\x6d\x50\x3f\x69\x4d\xea\x3b\xd5\x34\x71\x8e\x37\x70\x49\x62", p, q, g, b"\x7d\x6b\x3b\x71\xb1\x41\x58\x07\xd1\x59\x01\x42\x7e\x6a\xb0\x02\xee\x98\x5c\xe7\xc8\xd8\x44\x96\x9c\x6e\x72\x94\xa2\x16\x7b\x4c\x26\x17\x1b\xcd\x64\x6f\x0d\x1b\xce\x14\xdf\x05\xe4\xce\x58\xa3\xae\x50\xb2\xab\xa5\xfb\x74\x45\x52\x33\xfa\x6d\x17\x9a\x07\x94\xcb\x26\xe9\x2c\xa9\x10\xcd\x1c\x16\xe5\x46\x4e\x8f\xa7\xba\x93\x63\x41\xd3\xac\x21\x1a\xc1\xf8\xa2\xf2\xa1\x9c\x14\x8a\x1c\x3d\x6b\x00\xac\x44\xc3\x5e\xa3\x45\xa3\xff\x73\xae\x9d\x5a\xbc\xc6\xab\x65\x16\x2a\x53\xda\xab\xdf\x6d\xa2\x5f\x96\x95\x8e\xaf\x89\xf5\x59\x89\x5c\xbe\xc5\x23\x51\x39\x4f\x91\x32\xc9\x56\x4d\x61\xaa\xc7\x92\x64\x0f\x11\xe0\x9a\xa6\xf6\xcd\xe9\xee\x9c\xa5\xe0\x5f\xd9\x02\x91\x11\x63\x81\x71\x77\xbf\x05\x4c\xf2\xea\xbf\x7c\xe8\xf3\x4b\xb1\xc4\xad\xed\x8d\xad\x93\x41\x1f\xb2\x76\xd2\xd0\xa2\x96\x79\x96\x61\x30\x7d\xe5\x79\x64\x1e\x60\x7f\xda\xd0\x58\xd9\xa3\xf1\x94\x57\x4e\xa7\x6f\x4b\xec\x46\xbe\xf8\xad\xc5\xd6\x2c\x73\x90\xda\x1c\x45\xf6\xfc\x5d\x9a\x78\x4f\x69\x6f\x24\xae\x7e\x6b\x27\xa8\x09\x02\x94\x18\xdd\x18\xa4\x20\x45\x5c\x2c\xc9\x69\x5e\x7c\x0f\xe0\x02\x19\xa1\x71\x14\x68\xe2\x86\x6b\x71\xf3\xf9\xc5\x38\x78\x9e\xd2\x84\x3f\x44\xf2\xa8\x21\x77\x3c\x52\xd2\x11\xdd\x13\x33\xb5\xf1\x64\xec\xdf\x6c\x3f\xfd\x71\xde\x66\x78\xb0\xc2\x72\xf9\x23\x55\xd5\x97\x4e\xb2\x1c\x3c\x8f\xbd\x0b\xca\x75\x38\xbb\xd9\x89\x47\x50\xb1\xdd\x01\x42\xbe\xa8\x51\x04\x35\x6f\x9a\x51\x5e\xf1\xab\x69\xda\xed\x98\xd9\x48\x03\xac\x91\x2c\x77\x0e\x26\xef\xa2\xfa\x0b\x04\xe1\x10\x51\xce\xd2\xf7\x0f\x06\xf2\xf0\x5e\xac\x80\x29\xd6\x8e\x12\x26\x16\x57\xcf\x4d\xbc\xc1", b"\x67\xdf\x1d\x51\x0d\x06\x3c\x90\x67\xe9\x75\x91\x80\xbe\x47\x0c\x71\xfe\x09\xc4\xf1\x33\xac\xa1\x81\xbd\xb4\x7b\xb8\x7b\x20\x97", b"\x73\x28\xb8\x87\xbf\x0d\x52\x0a\xbe\x6f\x24\xaf\xf2\x15\x3f\x40\xde\x00\x9e\x27\x06\xae\x04\x3d\xd3\xaa\x55\x52\x1d\x95\x72\xd6", ); test::( b"\x6c\x67\x11\x6f\xbd\x21\xa0\xe3\xed\x16\xb3\xc4\xca\x58\xac\x49\x66\x19\x18\xbf\xc6\xa7\xc3\xa6\xac\xdb\xcd\x53\xdd\x40\x87\x03\x4f\xca\x16\x4d\xf8\xd3\x8f\x7e\xf7\xdb\x03\x36\x37\x01\x40\x92\x46\x38\x2e\xe0\x53\xc6\x9c\x84\xfa\xfa\x3c\x77\xad\x2c\xe0\x8d\xc7\xf4\x1c\x34\xa3\x1d\xa4\x96\xd0\x70\xa9\x94\x35\x79\x9f\x26\x9d\xc8\xef\xfd\x06\xd3\x1f\x85\x87\x9c\x29\x9c\xf7\x24\x1b\x37\xb9\xa4\xcf\xd5\x45\x08\x63\x93\x15\x67\x37\xcd\x9d\xa2\xd2\x82\xe7\xd5\x69\xfc\xfa\x5c\xbd\xe4\xbb\xa5\x1b\xd8\x9f\xdc\xc9\x13", p, q, g, b"\x6a\x50\xd1\x12\x5f\x9f\x3f\xc2\xf7\xe0\x23\xc0\x93\xb3\x60\x8e\x69\x72\xac\xef\xe2\x9c\x0c\x6b\xa0\x7a\x2f\x61\xed\x74\x71\x53\xad\xa4\xa9\xb6\x80\x62\x2a\x84\x2b\x9a\x82\x01\x19\x67\x56\x20\xc1\x16\x88\x70\x0b\x85\x5d\x4b\x8d\x13\xbf\x72\x6c\x36\xac\xf9\x23\x25\x6f\xef\x1b\x53\x09\x36\x22\xd1\xbc\xbc\xf0\x23\x84\x8b\x8b\x8f\x4a\xbf\x43\xbb\x6e\x87\xb8\x4d\x06\x1d\xeb\x75\x23\x62\x24\xce\xda\x91\x4b\x18\xf7\xce\xb7\x27\x08\x78\x9d\xfb\x94\x07\x04\x13\xb0\xe6\x5c\x12\x31\xad\x02\xdb\x42\xde\xcb\xe0\xe5\x58\xae\xa0\x6c\x31\x0a\xa1\xa8\xd1\x13\xbe\x1f\x07\x14\x82\xfc\x61\x91\x32\x25\xf0\x07\xb5\x69\xb6\xe8\x67\xcf\xb3\x92\x72\x57\x76\xad\x71\xf5\x0d\xc9\x7b\x83\x4a\x71\x37\x5b\xac\x18\xfa\xbf\x78\x11\x26\xd0\x6d\xf6\x21\x24\x06\x4e\x6a\x72\x3b\x48\x63\x5e\x67\x54\xfc\x76\x7a\x50\x94\xd0\x64\x59\x74\x04\x15\x91\xd0\xad\x48\x28\xf6\x37\x83\x35\x66\x96\xaf\x7f\xf7\x7c\xd0\x01\x07\x94\x9f\xbf\xf4\x70\x9d\xff\x8a\x66\x0a\x41\x3f\x5b\x6c\x0d\xf3\x7a\xde\x84\xfc\xbc\x1d\x32\x53\xba\x61\x72\x65\xa1\x0c\xc0\x87\x60\x61\x30\x29\x09\x09\xa4\xf8\x13\x34\x1e\xfd\xb6\x11\x69\x6f\xeb\x5b\xea\x3d\x7d\x00\xa5\x3a\x81\xf3\xa2\x04\x3b\x88\x7a\x77\x60\x75\xd2\x50\xc1\xa0\x10\xec\x47\x66\x00\x87\xf3\xef\x05\x78\x2d\xd2\x1d\x29\x8d\x6d\x37\x55\x9c\xd4\x73\x00\x8f\x47\x4d\x8d\xec\xa6\x81\x7c\x13\x90\x18\x02\x76\x09\x7a\x81\xf4\x62\xc0\x52\x79\x28\xf9\x3a\x46\x1f\x4a\xc2\xd6\xed\x8c\x9d\x6d\x10\x1a\x2a\x9a\x29\x20\x1a\x83\xd0\x58\x9f\x57\xbe\x28\xa7\x27\x48\x45\x18\xc7\x42\x5c\xf5\x74\x4d\xf3\x96\xa0\xe1\x4a\x4d\x26\x0a\x5c\x8d\x29\xbf", b"\x7d\x48\x9a\xb0\xd4\x4b\xc7\x32\x71\xef\x42\xe2\x8a\x60\xe1\xb7\xef\x7d\xd2\x7a\xf4\x04\x55\x46\x04\x70\x85\xda\x40\x8b\xcc\xc7", b"\x31\x01\x51\xd9\x43\xf0\x88\xbb\x7d\xfd\xcd\x52\xd8\x28\x84\xa7\xf1\xee\x64\xd4\x6f\x9d\x60\x0d\x23\xf5\x2f\x4c\xea\x4d\x28\x62", ); test::( b"\xc8\xd4\x16\xc1\xef\xe6\x86\x63\x70\x78\x12\x2f\x79\x8d\x88\x04\xf6\x4a\x6e\x85\xe0\x5f\x7e\x8e\x07\x63\x4a\x30\x9a\x98\xe9\x2a\xbd\x54\x06\x1c\xcc\xc3\x19\xf1\xac\xd4\xa0\x87\xb1\xd7\xdb\xf0\xb6\xbf\x2a\x09\xc5\xdc\x50\x8e\xd1\x4d\xcd\x54\x42\x05\x6e\xad\xe7\x69\x1b\x7f\xb6\x5b\x67\x8e\xc2\xe1\x37\xb5\xfb\xe8\x75\x20\x8a\x42\x7c\x2a\x7a\xd9\x06\x65\x42\x6f\xbc\xbc\x76\x55\xe4\x8a\x89\x65\xd2\x3f\xde\xf1\x1c\xa8\x09\x2f\x51\x12\x07\xa6\x07\x35\x9f\x94\xe9\x1b\x19\x7f\xcc\x99\x3e\xe6\xce\x3c\x37\xad\x3b\x71", p, q, g, b"\xcc\x9b\x9d\x02\x92\x91\x5d\x63\x1a\xa0\xd9\xeb\x61\x61\xf9\x24\x70\x5c\x56\x6e\xe0\x9e\x74\xe4\x18\xd8\x8e\x6b\x67\xb7\xf5\x7a\xff\x51\x70\xf6\xc4\x2a\x83\x9b\xa8\x39\x40\x2b\xfe\x51\x7c\x28\x77\x81\xdc\x97\xdf\x2e\x05\x50\xb3\x86\x24\x84\xd2\x53\x15\x2f\x6c\xff\x89\x5f\x09\x23\x58\xb5\xc4\x45\x90\x48\x58\x13\x09\xef\xf2\xf6\x89\x23\x0b\x4c\x49\x51\xdb\x84\x13\x57\x3b\x6e\xae\x85\xc2\xdc\x50\xfd\x61\x34\x46\x13\x28\xe5\xb6\x43\x9f\x41\x44\x2b\x91\xe3\xa3\x42\x04\x42\x8d\x1e\x2c\x22\x41\x2b\x01\x22\x42\xb1\x4f\x92\xe2\xd1\xba\xd6\x26\xaf\x95\x05\x1b\xf0\x6c\x74\xda\x40\x81\xb0\xd6\x19\xe1\x36\xa9\x9c\x8d\xa3\xa9\x1a\xdb\x3b\x8c\xf8\xbc\x59\x64\xff\x65\x5d\x45\xc7\x5a\xda\x25\x3a\xba\x91\xc6\x40\x95\x39\x4c\x70\x1c\x53\xdd\xc1\x1f\x38\x8d\x61\x98\x4c\x32\xd4\x32\x6a\x8c\x62\x7d\xf8\x45\xb4\x10\x0f\x17\x1b\xbd\xb2\x52\xd3\xe2\x84\x94\xac\x17\x34\x32\xdd\x55\x31\xe0\x30\x40\x30\x2a\xac\x8c\x07\xc9\xea\x92\xa9\xab\x67\xfa\xf0\xc7\x8b\x3a\xd8\xd4\x54\xdc\xd4\x28\xf9\x42\xd8\xce\x6e\x29\x87\x30\x49\xfd\xbf\xa1\xdf\x0e\x6e\xc2\x24\xc9\xdd\x06\x6b\x98\x1a\x40\x0b\x1f\x51\x94\xfe\xe1\x3c\xc5\xca\x7f\xfb\xec\xa9\x8e\xd0\xa0\x22\x13\x77\xa1\xae\x61\x27\x40\xfc\xe7\x74\xee\xed\x68\x38\x2b\x32\xb6\x86\xa2\x5f\xfc\x01\x66\x82\x18\x64\x48\x20\x7c\x4d\x97\x83\xe8\x3d\xa2\x0a\x5e\x8b\x22\x8a\x13\x4d\xc3\xf4\x4e\xcc\x56\x5a\xb9\xae\x16\x2b\x85\x5e\xcd\x37\xe6\x40\x7e\x71\x40\x45\xf4\xe8\x3b\x97\x1a\x5f\x4e\x30\x4c\xd7\x78\xf3\xd3\x41\x37\x74\x5f\xc6\xea\x15\xb4\xb7\x4d\x60\x17\x6e\xf8\x07\x41\x0b\x1b\x26\xf6\x8e\xa1\x4f\x8f\x91", b"\x7f\xa5\x12\x31\xbc\x84\x5f\xa8\xb6\x68\x39\x3b\x78\xa7\xb0\x40\x81\x13\xfb\x77\xc1\xe3\x6f\x3c\x78\xc6\x7d\x65\x71\x5a\x8b\x58", b"\x73\x0c\x9e\x34\x83\x81\x1c\x52\xcf\x29\x5b\xad\x04\x2a\xcb\x5d\xd6\xee\x90\x08\x38\x57\xbe\xe9\x5b\x63\x92\xb0\x80\xb5\x04\x1d", ); // [mod = L=3072, N=256, SHA-256] let p = b"\xc7\xb8\x6d\x70\x44\x21\x8e\x36\x74\x53\xd2\x10\xe7\x64\x33\xe4\xe2\x7a\x98\x3d\xb1\xc5\x60\xbb\x97\x55\xa8\xfb\x7d\x81\x99\x12\xc5\x6c\xfe\x00\x2a\xb1\xff\x3f\x72\x16\x5b\x94\x3c\x0b\x28\xed\x46\x03\x9a\x07\xde\x50\x7d\x7a\x29\xf7\x38\x60\x3d\xec\xd1\x27\x03\x80\xa4\x1f\x97\x1f\x25\x92\x66\x1a\x64\xba\x2f\x35\x1d\x9a\x69\xe5\x1a\x88\x8a\x05\x15\x6b\x7f\xe1\x56\x3c\x4b\x77\xee\x93\xa4\x49\x49\x13\x84\x38\xa2\xab\x8b\xdc\xfc\x49\xb4\xe7\x8d\x1c\xde\x76\x6e\x54\x98\x47\x60\x05\x7d\x76\xcd\x74\x0c\x94\xa4\xdd\x25\xa4\x6a\xa7\x7b\x18\xe9\xd7\x07\xd6\x73\x84\x97\xd4\xea\xc3\x64\xf4\x79\x2d\x97\x66\xa1\x6a\x0e\x23\x48\x07\xe9\x6b\x8c\x64\xd4\x04\xbb\xdb\x87\x6e\x39\xb5\x79\x9e\xf5\x3f\xe6\xcb\x9b\xab\x62\xef\x19\xfd\xcc\x2b\xdd\x90\x5b\xed\xa1\x3b\x9e\xf7\xac\x35\xf1\xf5\x57\xcb\x0d\xc4\x58\xc0\x19\xe2\xbc\x19\xa9\xf5\xdf\xc1\xe4\xec\xa9\xe6\xd4\x66\x56\x41\x24\x30\x4a\x31\xf0\x38\x60\x5a\x3e\x34\x2d\xa0\x1b\xe1\xc2\xb5\x45\x61\x0e\xdd\x2c\x13\x97\xa3\xc8\x39\x65\x88\xc6\x32\x9e\xfe\xb4\xe1\x65\xaf\x5b\x36\x8a\x39\xa8\x8e\x48\x88\xe3\x9f\x40\xbb\x3d\xe4\xeb\x14\x16\x67\x2f\x99\x9f\xea\xd3\x7a\xef\x1c\xa9\x64\x3f\xf3\x2c\xdb\xc0\xfc\xeb\xe6\x28\xd7\xe4\x6d\x28\x1a\x98\x9d\x43\xdd\x21\x43\x21\x51\xaf\x68\xbe\x3f\x6d\x56\xac\xfb\xdb\x6c\x97\xd8\x7f\xcb\x5e\x62\x91\xbf\x8b\x4e\xe1\x27\x5a\xe0\xeb\x43\x83\xcc\x75\x39\x03\xc8\xd2\x9f\x4a\xdb\x6a\x54\x7e\x40\x5d\xec\xdf\xf2\x88\xc5\xf6\xc7\xaa\x30\xdc\xb1\x2f\x84\xd3\x92\x49\x3a\x70\x93\x33\x17\xc0\xf5\xe6\x55\x26\x01\xfa\xe1\x8f\x17\xe6\xe5\xbb\x6b\xf3\x96\xd3\x2d\x8a\xb9"; let q = b"\x87\x6f\xa0\x9e\x1d\xc6\x2b\x23\x6c\xe1\xc3\x15\x5b\xa4\x8b\x0c\xcf\xda\x29\xf3\xac\x5a\x97\xf7\xff\xa1\xbd\x87\xb6\x8d\x2a\x4b"; let g = b"\x11\x0a\xfe\xbb\x12\xc7\xf8\x62\xb6\xde\x03\xd4\x7f\xdb\xc3\x32\x6e\x0d\x4d\x31\xb1\x2a\x8c\xa9\x5b\x2d\xee\x21\x23\xbc\xc6\x67\xd4\xf7\x2c\x1e\x72\x09\x76\x7d\x27\x21\xf9\x5f\xbd\x9a\x4d\x03\x23\x6d\x54\x17\x4f\xbf\xaf\xf2\xc4\xff\x7d\xea\xe4\x73\x8b\x20\xd9\xf3\x7b\xf0\xa1\x13\x4c\x28\x8b\x42\x0a\xf0\xb5\x79\x2e\x47\xa9\x25\x13\xc0\x41\x3f\x34\x6a\x4e\xdb\xab\x2c\x45\xbd\xca\x13\xf5\x34\x1c\x2b\x55\xb8\xba\x54\x93\x2b\x92\x17\xb5\xa8\x59\xe5\x53\xf1\x4b\xb8\xc1\x20\xfb\xb9\xd9\x99\x09\xdf\xf5\xea\x68\xe1\x4b\x37\x99\x64\xfd\x3f\x38\x61\xe5\xba\x5c\xc9\x70\xc4\xa1\x80\xee\xf5\x44\x28\x70\x39\x61\x02\x1e\x7b\xd6\x8c\xb6\x37\x92\x7b\x8c\xbe\xe6\x80\x5f\xa2\x72\x85\xbf\xee\x4d\x1e\xf7\x0e\x02\xc1\xa1\x8a\x7c\xd7\x8b\xef\x1d\xd9\xcd\xad\x45\xdd\xe9\xcd\x69\x07\x55\x05\x0f\xc4\x66\x29\x37\xee\x1d\x6f\x4d\xb1\x28\x07\xcc\xc9\x5b\xc4\x35\xf1\x1b\x71\xe7\x08\x60\x48\xb1\xda\xb5\x91\x3c\x60\x55\x01\x2d\xe8\x2e\x43\xa4\xe5\x0c\xf9\x3f\xef\xf5\xdc\xab\x81\x4a\xbc\x22\x4c\x5e\x00\x25\xbd\x86\x8c\x3f\xc5\x92\x04\x1b\xba\x04\x74\x7c\x10\xaf\x51\x3f\xc3\x6e\x4d\x91\xc6\x3e\xe5\x25\x34\x22\xcf\x40\x63\x39\x8d\x77\xc5\x2f\xcb\x01\x14\x27\xcb\xfc\xfa\x67\xb1\xb2\xc2\xd1\xaa\x4a\x3d\xa7\x26\x45\xcb\x1c\x76\x70\x36\x05\x4e\x2f\x31\xf8\x86\x65\xa5\x44\x61\xc8\x85\xfb\x32\x19\xd5\xad\x87\x48\xa0\x11\x58\xf6\xc7\xc0\xdf\x5a\x8c\x90\x8b\xa8\xc3\xe5\x36\x82\x24\x28\x88\x6c\x7b\x50\x0b\xbc\x15\xb4\x9d\xf7\x46\xb9\xde\x5a\x78\xfe\x3b\x4f\x69\x91\xd0\x11\x0c\x3c\xbf\xf4\x58\x03\x9d\xc3\x62\x61\xcf\x46\xaf\x4b\xc2\x51\x53\x68\xf4\xab\xb7"; test::( b"\xcb\x06\xe0\x22\x34\x26\x3c\x22\xb8\x0e\x83\x2d\x6d\xc5\xa1\xbe\xe5\xea\x8a\xf3\xbc\x2d\xa7\x52\x44\x1c\x04\x02\x7f\x17\x61\x58\xbf\xe6\x83\x72\xbd\x67\xf8\x4d\x48\x9c\x0d\x49\xb0\x7d\x40\x25\x96\x29\x76\xbe\x60\x43\x7b\xe1\xa2\xd0\x1d\x3b\xe0\x99\x2a\xfa\x5a\xbe\x09\x80\xe2\x6a\x9d\xa4\xae\x72\xf8\x27\xb4\x23\x66\x51\x95\xcc\x4e\xed\x6f\xe8\x5c\x33\x5b\x32\xd9\xc0\x3c\x94\x5a\x86\xe7\xfa\x99\x37\x3f\x0a\x30\xc6\xec\xa9\x38\xb3\xaf\xb6\xdf\xf6\x7a\xdb\x8b\xec\xe6\xf8\xcf\xec\x4b\x6a\x12\xea\x28\x1e\x23\x23", p, q, g, b"\x45\x6a\x10\x5c\x71\x35\x66\x23\x48\x38\xbc\x07\x0b\x8a\x75\x1a\x0b\x57\x76\x7c\xb7\x5e\x99\x11\x4a\x1a\x46\x64\x1e\x11\xda\x1f\xa9\xf2\x29\x14\xd8\x08\xad\x71\x48\x61\x2c\x1e\xa5\x5d\x25\x30\x17\x81\xe9\xae\x0c\x9a\xe3\x6a\x69\xd8\x7b\xa0\x39\xec\x7c\xd8\x64\xc3\xad\x09\x48\x73\xe6\xe5\x67\x09\xfd\x10\xd9\x66\x85\x3d\x61\x1b\x1c\xff\x15\xd3\x7f\xde\xe4\x24\x50\x6c\x18\x4d\x62\xc7\x03\x33\x58\xbe\x78\xc2\x25\x09\x43\xb6\xf6\xd0\x43\xd6\x3b\x31\x7d\xe5\x6e\x5a\xd8\xd1\xfd\x97\xdd\x35\x5a\xbe\x96\x45\x2f\x8e\x43\x54\x85\xfb\x3b\x90\x7b\x51\x90\x0a\xa3\xf2\x44\x18\xdf\x50\xb4\xfc\xda\xfb\xf6\x13\x75\x48\xc3\x93\x73\xb8\xbc\x4b\xa3\xda\xbb\x47\x46\xeb\xd1\x7b\x87\xfc\xd6\xa2\xf1\x97\xc1\x07\xb1\x8e\xc5\xb4\x65\xe6\xe4\xcb\x43\x0d\x9c\x0c\xe7\x8d\xa5\x98\x84\x41\x05\x4a\x37\x07\x92\xb7\x30\xda\x9a\xba\x41\xa3\x16\x9a\xf2\x61\x76\xf7\x4e\x6f\x7c\x0c\x9c\x9b\x55\xb6\x2b\xbe\x7c\xe3\x8d\x46\x95\xd4\x81\x57\xe6\x60\xc2\xac\xb6\x3f\x48\x2f\x55\x41\x81\x50\xe5\xfe\xe4\x3a\xce\x84\xc5\x40\xc3\xba\x76\x62\xae\x80\x83\x5c\x1a\x2d\x51\x89\x0e\xa9\x6b\xa2\x06\x42\x7c\x41\xef\x8c\x38\xaa\x07\xd2\xa3\x65\xe7\xe5\x83\x80\xd8\xf4\x78\x2e\x22\xac\x21\x01\xaf\x73\x2e\xe2\x27\x58\x33\x7b\x25\x36\x37\x83\x8e\x16\xf5\x0f\x56\xd3\x13\xd0\x79\x81\x88\x0d\x68\x55\x57\xf7\xd7\x9a\x6d\xb8\x23\xc6\x1f\x1b\xb3\xdb\xc5\xd5\x04\x21\xa4\x84\x3a\x6f\x29\x69\x0e\x78\xaa\x0f\x0c\xff\x30\x42\x31\x81\x8b\x81\xfc\x4a\x24\x3f\xc0\x0f\x09\xa5\x4c\x46\x6d\x6a\x8c\x73\xd3\x2a\x55\xe1\xab\xd5\xec\x8b\x4e\x1a\xfa\x32\xa7\x9b\x01\xdf\x85\xa8\x1f\x3f\x5c\xfe", b"\x53\xba\xe6\xc6\xf3\x36\xe2\xeb\x31\x1c\x1e\x92\xd9\x5f\xc4\x49\xa9\x29\x44\x4e\xf8\x1e\xc4\x27\x96\x60\xb2\x00\xd5\x94\x33\xde", b"\x49\xf3\xa7\x4e\x95\x3e\x77\xa7\x94\x1a\xf3\xae\xfe\xef\x4e\xd4\x99\xbe\x20\x99\x76\xa0\xed\xb3\xfa\x5e\x7c\xb9\x61\xb0\xc1\x12", ); test::( b"\x06\x61\xc1\xbf\x79\xee\xd7\x8a\xd4\x87\x9e\x24\x0a\x46\xb9\x5a\x0d\xb2\xb2\x9b\xf8\x12\x63\xb9\xb1\x67\x6d\xaa\x25\x54\xaa\xd7\x22\x2c\x9e\xb7\xa8\x93\x04\x8e\x46\xfb\xd2\x82\x6a\xb6\xe8\xcf\x42\xab\x0c\xd6\x31\xc4\xc4\xa1\xa8\x19\x56\x0f\x73\xcc\x86\x1a\x5b\x64\x65\xcf\x28\x80\xa7\x30\x63\x5e\xd7\xf4\x9e\x28\xf7\xb5\x65\x76\x8f\x02\x9d\xb2\xa4\x43\xba\x0a\x1b\xd1\x07\x73\xf2\x6f\x75\x2c\x83\xda\x40\xfc\xd3\x3f\x32\xf7\x8d\x24\xac\x98\x20\xd0\xbf\x70\xda\xe5\x68\xa1\x25\x38\xaf\xfa\x86\x71\x60\xc8\x1e\x39", p, q, g, b"\x54\xb6\x81\x80\x54\xcc\x00\x0c\x3a\xf6\x1b\x62\xef\x41\x89\xba\x35\xe0\x48\x45\xde\xe0\x01\x5b\xe6\x27\x33\x92\xc6\x73\x32\xe2\xe0\x45\x10\xcd\x5b\x2b\xbf\x47\x23\xcd\x81\x96\xe0\x25\x51\x1f\x66\x23\xf0\x36\x07\xe5\x66\x48\x4c\x33\x07\x51\xd0\x3c\x71\x30\x68\xa7\x7e\x08\xbd\xe9\x07\xfc\x57\xb3\xc0\x21\xe3\x73\x03\x37\x3d\x9d\x81\x1e\x38\xf1\x4b\x54\x7d\x2b\xd8\x7d\x98\x12\x69\xc6\x77\xda\xc6\xad\xe6\xac\xbb\xae\x30\x14\xeb\xd3\x81\xb4\x00\x86\x37\x03\x1c\x9b\x6d\x49\xca\x90\x87\x65\x47\x2b\x05\x96\x2f\x55\xaa\x36\x1f\x7d\xd5\xa4\x26\x07\x05\xff\x5e\xcf\x7b\x31\x7d\xb1\xfe\x5d\x33\xfd\xbf\x48\xe6\xa3\x3b\x3c\x78\xb1\x4e\x62\x0d\x93\x80\x6b\x52\xe8\x6e\x08\x2f\xe4\xf5\x4d\x52\x65\xe8\xdf\x62\x3b\x0c\x9a\x25\x9f\x61\xb7\xfa\x2c\x04\x55\xfa\xdf\x39\x69\x3e\xf3\x97\x74\x40\xf3\x02\x06\x7c\x3a\xff\xbc\x45\x74\x22\x4d\x5a\x22\x04\x4e\x9b\xfe\x11\xd0\xd6\xed\xe2\x73\x9c\x7f\xfe\x92\x77\xc8\x64\x4d\x46\xbe\xec\xb9\x46\xf8\x17\x75\xc1\x16\x38\x8f\xd6\xc2\x4a\xf0\x2e\xc5\x9f\x62\x12\x33\xef\xe8\x79\x2d\x6d\x0c\xd2\xc8\x43\x33\xb1\x1f\x07\x65\x73\x33\xda\x4e\x27\x4b\x8c\xd3\x91\x4d\x97\x77\x06\xe7\x86\xf3\x25\xe1\x8a\x33\x9b\x80\x5c\x51\xb4\x5e\xac\xb3\xce\x24\x18\x45\x97\x0a\xcb\x9f\xd1\xa4\x82\xa5\x64\xb2\xae\xec\xda\xeb\x0a\x0d\xb3\x9f\x33\xad\x29\x91\xf2\x5c\xf6\x22\xbf\x22\xf0\xc4\x43\x0c\xf9\x4d\xf1\xdb\x59\xaa\x2d\x7c\x20\x04\xb5\x17\x7b\x9e\xa6\x9f\xf5\x56\xdd\x4c\x07\xed\xec\x62\x59\xee\x13\x9b\x42\x15\x73\xa1\x1c\xf8\x5d\x11\xe2\x45\xe2\x51\x19\x0b\xa8\x69\xc9\xcb\x4d\xaf\x9f\x49\x45\x1a\x85\xf3\x8b\x9b\x90\x3e", b"\x51\x9f\xe4\xc5\xf9\xb7\x70\x7a\xe4\xb3\x62\x17\xea\x17\x07\xa1\x87\x1d\x8f\xce\x98\xee\xe9\xe6\x43\xc4\x5c\xd3\xeb\x50\xc5\xd3", b"\x1d\xf2\x24\xaf\x0b\x51\x51\x9e\x11\xd8\x42\x29\x99\xb1\xd3\xab\x09\x72\x06\x41\x80\xff\xc3\xf1\x11\x4c\x9f\x87\x6a\x1d\xe3\xb1", ); test::( b"\x15\x97\x35\x3f\x24\xaa\xf5\x15\xfd\x7c\x0b\x0a\x74\x53\x44\x4d\x5f\x32\x9d\x6c\x3f\x09\x91\x13\xbb\x3a\x13\x30\x9b\x05\x3e\x6c\x12\x3a\x56\x22\x7a\x81\xe8\xb1\xa0\xc8\xab\x4b\x46\x16\x0c\xc5\x38\x0d\xf5\x91\xb1\x9d\x8a\x38\x6d\x29\xa8\xe4\x3c\xca\xb5\xd8\xc0\xe5\x47\xfb\xa2\x1b\xff\xcf\x5e\xf4\x2e\xfb\x9f\xb2\xe9\xbe\x62\x97\xc0\x3d\x57\xda\x0b\x58\x89\xb3\xb9\x74\x2d\xdc\x2c\x54\xb8\x37\x3f\xed\x1f\x21\x95\xf5\xbb\x23\x29\xa8\xf1\xf3\xf8\xaf\xce\xc2\x5e\xb1\x52\xe7\xfa\x81\x9e\x5d\x36\xcf\xd3\x62\x52\x39", p, q, g, b"\x50\x62\xaa\x1f\xdc\x67\x29\x4c\xd5\x76\x23\xce\xdd\x28\x08\x30\x3c\xeb\x43\x53\x7e\x3a\xbf\xa1\xbd\xbc\x49\x2b\x1a\xee\xce\xe6\x1b\x1f\xd9\x6c\xc0\x55\xd1\x45\x9a\xb5\x2d\xdc\x3f\x23\x44\x38\x9e\x5f\x21\x44\x8a\x90\xcb\x36\xe4\x48\xe6\x07\x87\xb1\xff\x5a\xb6\xe5\x54\x9a\x39\x21\x49\x6e\x83\x54\x64\x6b\xc1\xfd\x6c\xd5\xf2\x35\x9a\xe2\x99\xc0\xa0\x47\xfa\xc3\x92\x05\x12\xa1\xf4\x11\xc4\x38\xba\xfd\x03\xe9\x5e\x53\x8c\x6e\x21\xd1\xdd\x1f\x15\xa8\x9d\x38\xd4\x8f\x26\x30\x5c\x25\x34\xfa\x8e\x31\xd0\x54\xdc\xb0\x07\x74\x13\x8f\xb8\xfc\x61\xc6\xa8\xd4\xae\x1c\xa4\x64\x30\xd0\xe3\x1b\x4b\x92\xdf\xb1\x5b\xd6\xb8\x73\x9f\xd5\x37\x10\x1e\x77\x33\x4e\x6f\x3c\xe5\x46\x9e\x82\xa8\xdb\xc5\x8b\x3b\xe5\xca\x37\x03\x59\xf4\xa6\x13\x2f\xe0\x33\x60\xb8\xf6\xbe\x24\x8c\x34\x22\x0a\x80\x03\x77\x26\x48\x66\x40\x59\xf1\xf6\xa3\x22\xe0\xc1\x22\xf4\x27\xef\xdb\x7d\x64\x0e\xb5\xbb\x7f\x3d\xb2\xd9\x67\xa2\x15\x90\x92\xd8\xf8\xdf\x33\x3f\xf5\xba\x13\x56\x02\xb9\xee\x7e\x9d\xb6\xae\x0b\x95\x88\x6d\xf3\x8d\x4b\x4a\x26\xa4\xb2\xd7\x90\xc2\x4f\xa2\x14\xcd\x68\xd0\xa7\xed\xe6\x3e\x7d\xfa\xca\xea\xe1\x4d\x97\x85\xbe\x69\x3a\xd7\x8d\x88\x24\x2d\xfa\xd9\x88\xb7\x12\x2a\xdf\x5a\xfa\x9e\xfd\xd0\xc2\x04\x74\x70\xc6\x07\xd4\x7b\x30\x08\x9f\xf8\xbf\xc4\xcf\x5d\x7a\x8b\xa6\x9a\x7d\x0a\xb6\xc5\x4c\x05\x28\x0d\x66\xaa\x40\x19\xf6\x36\x2e\xa2\x4a\x1d\x3f\x8f\xcd\x80\xc3\xeb\x20\x83\x1b\x6e\x0d\xb0\x10\xfa\xf8\x26\x48\x8f\x01\x5f\x63\xf0\xb9\xac\x6d\xf7\x28\x83\xef\xd2\x86\xf0\x53\x2b\x5b\xef\xf1\xb9\xe8\x10\xff\x6a\x2b\x2d\x32\x8a\xf6\x75\xea\xfc\x2f\x56", b"\x05\x02\xa6\xe1\xd8\xc8\xdf\xdf\x56\xeb\x67\xf9\xa6\xf6\x60\x57\x35\xe4\xd1\xb0\x07\x6c\x8b\x08\xb6\x1d\xaf\x8e\x7c\x2b\xf2\xd6", b"\x7c\x67\xab\xdc\xf4\xe5\x80\x81\x2b\x13\xd0\xa4\xed\xba\xe8\xa2\x78\x6d\x66\x12\xbc\x86\x6e\x3c\x13\xbc\x09\xf3\xe9\x66\x16\xe0", ); test::( b"\x71\x5f\x29\x69\x30\x31\x23\x68\xa2\xa9\x8d\x3f\x42\x81\x0d\xa5\x71\x15\xf0\x0f\xfc\x4a\x12\x02\x9c\x27\x6b\x10\x62\x9e\x6b\xdd\xd6\x0b\xca\x2c\x53\x5b\x79\xa5\xf4\xa0\x06\x81\x77\x91\xf7\xf3\xad\x2e\x01\xa0\x02\x16\x67\x2e\xe5\xad\xec\x57\x9d\xeb\x07\xe9\xd2\xb0\xdb\x22\x2c\x4e\x01\xe1\xf8\x19\xc1\xa5\x2d\x10\x1b\x1e\xf6\x78\xcf\xca\x85\x65\x5d\xd6\xb2\x42\x6f\x1a\xc3\x79\xa9\x2a\x9c\x69\xb0\xf8\x98\x74\x32\xd1\x09\xcd\x9a\x7b\xc0\x4e\xf2\x87\xc2\xaf\xb6\x63\x44\x46\x88\x60\x1c\xe3\xc5\x5f\xd9\x0d\x0f\xa3", p, q, g, b"\xb6\x33\x40\xd6\xa1\x95\x57\x31\x28\x30\x64\xf6\xf2\x2a\xd7\xf0\xe2\x81\x99\xf6\xa5\x8c\x57\xdd\xcb\x44\xa0\x26\xc6\x1e\x44\x13\x18\xc4\xf8\x75\x5d\xfd\x71\xb2\x95\xe9\xe7\xba\xbe\x00\x08\x49\xc9\x72\xf6\x8d\x4b\xe0\x09\x54\xa3\xc2\x9c\xd4\xb4\xe8\x3a\xd5\x18\x30\x08\x0e\x29\xe7\x61\x9e\x45\xd3\xab\xbf\x9d\x82\xfd\x87\xe9\x75\x81\xfe\x90\x9d\x3d\xa1\xe3\xe9\x6c\xb3\xf0\xc8\x93\xaf\x9d\x07\xf4\x18\xdf\x90\x2e\x76\xb0\xbb\xc1\xc9\x71\x39\xcb\xd5\x12\x26\xac\x44\x2b\x3d\x0b\x05\x25\xc7\x84\xba\x13\x81\x31\x42\x1c\x60\x54\x3e\x6e\x29\x60\x69\xf6\x11\xb9\xc3\x7c\xf6\x03\x06\x36\xee\xca\xf4\x1c\x3b\x48\x38\xf5\x06\xc0\x2c\xc8\x4c\xde\x6b\x99\xca\xbd\x2c\xa5\x78\x44\x9c\xc1\x71\x8a\xa4\x18\xca\x12\xa2\xb7\x6f\x78\x25\x9c\x16\x91\xe0\xb4\x9f\x09\xdb\xda\xf5\x85\xf6\x26\xcf\x74\xd7\x32\x12\xb3\x42\x78\x45\xc6\x6f\x22\x83\xb6\x07\x03\xad\xf1\xa2\x62\xbb\x8b\x10\xac\x7a\xc5\xd1\xec\x73\x61\x4f\xdd\x37\xee\x51\xb7\x1c\xd1\xfb\x4e\x6d\xb8\x93\x83\x82\x64\x3c\x72\x1f\xbc\x4c\xfc\x98\x7b\xc5\xef\xbc\x81\x29\x9b\x37\x5a\x56\x0c\xde\x5a\xda\xe6\x28\x31\xca\x41\x38\xc3\x99\xd8\x2f\x1f\x8b\xc6\x80\xf9\xc6\xb4\x7e\xb4\x64\xa1\xe0\xaa\xc4\x48\xfe\x3b\x5c\x25\xbd\x8c\x0b\x7a\xfb\x70\x1b\x06\x80\xdb\x87\xab\x51\x73\x8f\x19\xf5\xb9\x65\x37\x5d\xd4\x8d\xac\xa0\x7b\xff\x38\x85\x63\x21\x75\x70\x0c\x67\x86\x19\xf1\x94\xe4\xee\x5f\x55\xaa\x44\x8a\xec\xa7\xf7\xb3\x32\x2f\x64\xa5\x47\x31\x5c\x5c\xee\x04\x51\x22\x54\x9f\xb3\x8b\x8a\xcc\x95\xda\x5e\x83\x30\x22\xb3\xb8\x94\xf0\x3c\xcb\x7f\x73\xb9\x1c\x1f\xe8\x2c\xe4\x14\xe1\x21\x94\x11\x78\x0e", b"\x4c\x5e\x99\x0a\x6e\x24\xfe\xdd\xab\x48\xd0\xaf\x4a\x08\xb4\x5a\xe8\x09\x25\x94\xbf\xb3\xc0\x12\xfa\x1c\x32\x5c\x97\x7a\x3c\xc0", b"\x82\x0b\x6c\xaf\xa8\x9b\x41\xc4\xcc\xbe\xc8\x42\xd7\xc4\x08\xc6\x5d\x49\x98\xab\x1a\xc6\xb6\xbc\xe8\xd4\xd5\x69\xcd\xf0\x47\x26", ); test::( b"\x1f\xe5\xad\x49\xe1\x1c\x20\x7d\x3d\x5e\x19\x23\x06\x08\x32\xaf\xbf\xc0\xaa\x0c\xb2\x9f\xc0\xb2\x2b\x3b\xe5\x9a\x59\x8f\x8c\x70\x3b\x9b\xf2\xc7\x34\x7f\x8a\xbd\xe2\x56\x77\xea\x9c\xc6\x0a\xf9\x30\x7d\x21\xd3\x01\xfd\xd2\x3c\x28\x27\x7f\xce\x11\x40\x03\x10\x03\x39\x62\xc0\x4e\xcd\x37\x7f\xd4\x46\x35\x8a\x34\x49\xef\xd6\xbc\x05\x72\x1b\x78\x4d\xdf\x0e\x23\x8f\x28\x60\x8e\x86\xbd\x4c\x3d\x7a\xc6\x31\xff\xf8\xbe\x06\x78\xd3\x7b\xfb\xac\x16\xb7\x5b\xc1\x5a\x50\xce\x13\x97\xdd\x4b\xa3\xbf\xfc\xf9\x4d\x34\x12\x74", p, q, g, b"\x53\xfc\xd0\x73\x99\xe4\xd3\x1b\x09\xab\xef\xf2\xf0\x96\xa7\xb2\xcc\x5c\xf4\x17\xde\xe1\x20\x7d\x8a\x5a\xab\xf9\xe8\xf9\xfb\x0f\x66\xbe\x48\x82\x6a\x3d\xc1\x1e\x39\xbe\xba\x2f\xf4\x7b\x76\x54\x4b\xcf\x55\x48\x5a\xcf\x1e\x3d\x49\xe1\x90\x57\x01\x5e\x49\xed\x01\x2a\x48\x77\xbe\x74\x16\x07\x74\x9b\x6f\x4b\xf9\x5c\x44\xec\x3c\x9e\x8b\x89\x3a\xae\x8d\x80\xe3\x69\x97\x8a\x35\x80\x37\x1c\xc1\x3d\xe8\xe7\x14\x09\x2b\xb8\x92\xe4\xa9\x56\xad\x36\x54\x03\x2f\x77\x58\xfb\x94\x54\xa1\xcb\x56\x40\x6e\x1b\xf4\x58\x55\x10\x8e\xe9\x60\x10\x7a\x65\xd4\x54\x53\xcb\x48\x2d\xc1\x90\x49\xb6\xc8\x3b\xac\x11\x17\x56\xca\xf6\x5b\xdb\xe5\xe6\xb2\x70\xd5\x87\x5b\x99\x7a\x17\x22\xee\x9d\x58\x38\x49\x41\xaa\x40\xe8\x10\xb6\x0b\x83\x41\x2e\xaf\xd0\xa7\x42\x8a\x0a\xbb\x55\xdf\x45\x68\x0c\xf2\x26\x56\x71\x1d\xb6\xbf\xce\x8b\xdc\xbb\x4c\x08\x3a\x40\x1c\xdb\x68\x28\x4e\x0c\x7e\xc0\x0f\x7d\xe7\x4e\x57\x14\x6a\xda\xe2\x21\xe5\x4c\xc4\xa5\x66\xb0\x5a\x11\x3d\xdb\x22\xcb\xc1\x9d\x88\x1a\x41\xcd\x75\xde\x8c\xf6\xc7\xb8\x9a\x5f\xae\x65\x0d\xf5\x85\xaa\x70\xc0\x45\xb8\x4b\x2c\xbb\xcc\xd0\xe7\xab\x72\x0c\x58\x96\xab\xfd\x35\x6a\x66\xf3\xdc\xbb\xb5\x38\x6b\xe6\xd0\x2e\xa9\xb3\x19\x1c\xa2\x75\xd2\x22\x48\xae\xdc\x36\x0e\xcd\x40\x57\xae\x06\xab\x2c\x2a\xaf\xb5\x06\x57\xa9\x1c\x62\xe0\x38\xea\xc9\xf5\xc4\xd8\x81\x06\xdb\x4c\x69\x26\xfb\x5d\xd2\xde\x1e\xc7\xe4\xe0\x05\xce\x18\x45\x70\xe7\xe9\x7d\x76\x42\x2f\xa0\x37\x62\x1a\x6f\x6d\x46\xcb\x83\xab\x6f\x4d\x43\x4b\x6a\x8f\x07\x39\x00\xcb\x03\xa7\x81\x04\x55\xd1\x9e\x77\xd4\xdf\x62\x4d\x08\xe7\x82\x09\x0f\xfa", b"\x41\xa2\xc9\x55\xf4\x14\x13\xa7\xab\x06\x7b\x4f\x50\xc6\x1e\x39\x6f\x9f\xeb\xff\x61\xc1\x50\x0b\x1a\x4b\xc6\x9e\x50\xa5\x19\x35", b"\x79\xed\xd7\x51\xa9\xdc\x23\x72\xb4\x05\x80\xfa\x4d\x53\x8f\xbe\x2c\xda\x41\x49\xf6\xb1\x19\x39\xdd\xad\x92\xc5\x74\x74\x08\x83", ); test::( b"\xa3\x26\x97\x30\x93\xce\x50\x2c\x16\x47\x3d\x89\xba\x19\x65\x07\xd9\x22\x81\x50\x47\x59\xcb\x34\xc6\xcc\x35\x3d\x45\x19\x7f\x91\x5b\x5e\x73\x6b\x8f\xf8\x57\xa8\xb2\xec\x99\x64\x9a\x32\x24\xf8\x57\x40\x18\x98\xc9\xea\x60\x7e\x6a\x2c\x1d\x32\x0f\x27\x56\x4c\xcf\xf5\xdb\xda\xcf\xd8\x7a\x14\x5f\x1a\x02\x94\x25\xd7\x65\x02\xc0\x81\xac\x0f\x6a\x14\xde\x5b\x2c\xad\x1c\x23\xa6\x1d\x4e\x9e\xc6\xa0\x4e\x1a\x45\x5f\xd7\x10\xc3\xc7\x8c\x09\x67\x53\xc0\xb7\xf1\x51\x1e\x8b\xa5\xf5\xf1\xaf\x4f\x07\x41\xfe\xe8\x8b\x77\xeb", p, q, g, b"\x92\x91\x5d\xb2\x1c\x2c\x3e\x57\xfc\xcc\xb7\xdf\xdc\xe2\x8a\x12\xaa\xf6\xdd\x10\x58\x11\x93\xb9\x8b\x7d\x51\xa7\x28\xc3\x85\x16\xe3\x9e\xf5\xcf\xb1\xff\x9f\xa1\x65\x9c\x9b\xee\x56\xd4\xeb\xc1\xcd\x69\x64\x6c\x3c\xc3\xf7\xca\xae\x0c\x42\xd9\xcc\xa9\x21\x91\x48\xe4\x99\x8c\x2d\xdc\x89\xeb\x9a\x3e\xdc\xfa\x6f\x45\x71\x29\x00\x7a\x93\x44\x01\x3d\xd1\x23\xaf\xf1\x97\xbf\xcd\x3d\xb1\xd9\xe2\x19\x9b\xce\xa1\x61\x65\xa4\xc3\x4e\xd2\xac\x32\x16\x7a\xbd\x16\x77\x04\xea\xd3\x1d\x5f\xc2\x86\x0b\x83\x4d\x44\xf8\x6c\xb5\x30\xda\xd9\xe8\x87\x01\x3c\xa4\xd6\xe8\x83\x00\x8c\x28\x6d\x20\x6b\x6c\x7c\xb2\x52\xd1\x32\x8b\x50\x3a\xe0\x67\x9b\x50\x2e\xc1\x64\x6f\x69\xf2\x60\x2d\x5e\x3d\x63\x1d\x4a\x5a\x63\xfc\x7a\x5d\x06\xf2\x79\x26\xa4\xd6\xb1\xef\x2f\x77\xdd\xff\x3d\x85\x0d\x3d\x9f\x58\xa9\x58\xc3\xf4\xf1\x2c\xf0\x29\xf1\x48\x38\x6c\x5b\x8a\x71\xba\xe9\x09\x4d\xec\x85\x27\x9b\x1e\x38\x77\x99\xd2\x6b\x2a\x6a\x0e\x0d\xbf\x06\x49\x73\x66\xe4\x90\x3e\x55\x9e\x70\x97\x5d\xed\xc7\xd4\x93\x4d\x4e\x2d\x3d\x2c\xd3\x05\xab\x82\x64\x02\xea\x8f\x27\x78\xe2\x66\x25\x11\x9e\x7b\x0c\x24\xc4\x5d\xd9\xc0\x5a\x38\x90\xdd\x1d\x9d\x93\x0b\xd0\xbb\x40\x93\x66\xb0\x7a\x47\xce\x57\x2e\xd5\xbc\xd5\xf6\x3c\x46\x7d\x49\xc5\x68\x11\xfc\x3e\x40\x13\x41\xb9\xa4\x53\x1f\x77\x6d\xeb\xde\xa5\x40\xa3\x4c\x7c\xca\x3c\x3f\xb2\xea\x99\xc5\xfa\x9f\x9f\xdf\xde\x91\x8a\x94\xf7\x4e\x08\x0d\x19\x86\xb6\x8f\xc1\xe3\xfb\x97\x80\x54\x87\x2c\xed\x97\xba\xfd\x96\x73\x1e\x6d\x4f\x1c\x4a\x91\x27\x8c\x38\x3d\x47\x61\xc9\x74\x10\x09\x74\x52\x2f\x7b\x6e\x8a\x28\x84\xd5\xb3\xbb\xf6", b"\x73\xf1\x92\x2e\x26\xd9\xb8\x06\x8b\x68\xf8\x3c\x2b\xd5\xdb\xbb\x59\x60\x40\x3b\x49\x22\x3c\x02\xa4\x2c\xe6\xcf\x38\x10\xdb\x66", b"\x3a\xd3\x0b\xe9\xa6\x0f\x6d\x42\x27\x03\x94\x56\xc9\x82\x7d\x54\x24\x85\x8a\x02\xa8\xe6\xd3\x89\x17\x72\xcf\x80\xa5\xe4\xee\x21", ); test::( b"\x75\x04\x38\x2f\xb7\xfb\xa1\xda\xb3\xc9\x3b\xd3\x1b\x16\xe7\x3d\x9a\xe1\xd0\x27\xdd\x23\x16\x6b\x3b\x94\xc7\x12\x41\x83\xfa\xf3\x96\x3c\x42\x0b\xe5\x20\x5a\x1f\x44\xa9\xa9\x02\x6c\x6e\xf7\x7e\x7c\x4e\xf1\xec\x48\x45\xfe\xf6\xe5\xea\x24\x87\xce\x01\x2f\xf5\x3f\x94\x50\xfc\xeb\x0d\x3a\xc6\x2f\x21\x02\xd7\x17\xe3\x28\x7d\xb3\x71\x47\x17\xa2\x8c\xd8\xb7\xfc\x64\x55\x6a\x86\x17\x3e\x6e\x7f\x47\x9f\x8a\x8d\xcd\x89\x54\x29\xcd\x7f\x0f\x53\x04\xef\x6a\xaf\x27\x5d\x94\xa7\xf4\xb3\x0a\xcc\x10\x71\x78\x7c\xa5\xf0\x62", p, q, g, b"\x20\x55\xbb\xe8\x9d\xa0\xa0\xc4\x88\xc3\xdb\xf2\x95\x31\xf1\xf7\xcd\x3f\xb5\x5a\x26\xef\xc5\x40\xc2\xed\xdc\xcc\xea\x16\x15\xdd\x92\x3f\xea\x4c\x8d\x0c\x95\xa5\xaf\x7e\x1e\x78\x16\x04\x8f\x2a\xe8\x53\x23\xa9\x64\x11\xe7\xd1\xad\x62\xc4\xca\x67\x5b\x63\xdf\x9d\xba\x31\xc1\xc7\x68\x03\xfb\x1c\x82\x92\x46\x5a\xd0\xa7\xe4\x9b\xa3\x75\x6a\x8a\xd4\xc6\xce\x86\xfd\x30\xb8\xb2\x8e\x08\xc4\xb4\x77\x7e\x07\x9f\xaf\xf1\x0f\xf8\x52\xf7\xd8\x91\xa9\x84\x19\x8d\xd0\x49\x77\x97\x21\x08\xc5\x2c\xe8\xbd\xb1\x15\x64\x62\x24\xa7\x93\x37\x74\x6e\x36\x47\x21\x31\x98\xf1\x12\x74\x30\xf5\x60\x87\x33\xd8\x82\x04\xa6\x2b\xe6\xea\xee\x84\x62\x9f\xc7\x28\x2a\xce\xf4\xc4\xf5\xd3\xad\xbe\x72\x41\x0b\x1e\xdf\xb7\x4b\xe1\x6b\x2d\x67\x5c\xca\x89\x1b\xd8\xce\xf2\x05\x17\x89\x02\xb9\x92\x71\xb4\x80\x41\xab\xe3\x3a\xc1\x19\xad\x6b\x75\x6a\x47\x7a\x63\x06\x3a\xae\x8a\x17\xcc\xfb\xe2\xac\xae\x3c\x0a\x3c\x63\x0c\x13\xad\xe1\x97\xcf\x3d\x05\xa9\xfa\x9d\x68\x99\xc0\xa3\xf9\x48\x7e\x61\x48\x73\x2d\xc6\x3e\x90\x7e\xf7\x94\x88\xdf\x33\x73\xb8\xa2\x13\x70\x5d\x69\xdc\xce\x6e\xd9\xa2\x20\x9f\x59\xeb\xc5\x8b\xbb\xeb\x08\x05\x45\x10\xb5\xa6\x51\x69\xd0\xfc\x1d\x4d\x10\xbd\xa6\x8a\xa7\xec\xea\xe2\xe7\x2f\x03\x39\xa2\xea\xae\xa0\x83\x03\x06\x4d\xd6\x58\x84\x14\xee\x77\x05\xdf\x3a\xb9\x74\xde\xbe\xf5\x88\xf4\xe3\x1f\xd6\xa8\xf2\x59\x79\xc9\xf5\x21\xd2\x34\x31\x20\xe4\x07\x94\xf4\x1a\x46\x01\xbe\x57\x91\x83\xb8\x77\xe6\xa8\xf6\xc0\xab\x7c\xe8\x48\x0e\x7f\xbf\xf4\x67\xa5\x81\xdf\x57\x0a\xf8\x99\x29\xbc\x4b\x56\x39\x7b\x78\x7d\xf4\xd7\x29\xe6\x5f\x9b\x98\xee\x7e", b"\x56\xe2\x1a\x7a\xb6\x1f\x9e\xab\xbf\xf4\x7c\x75\xe5\xf6\x8c\x31\x87\x3a\x9e\x1f\x2e\x1d\xb6\x62\x73\x11\x82\xf9\xa0\x29\xb8\xf6", b"\x2f\x24\xc5\x2f\x7b\xaa\xe2\x9c\x0b\x46\x33\xa3\x85\x52\x33\x18\x0e\xba\x80\x61\x1d\xbc\x7e\x88\xe2\x35\x48\xa5\x20\xb6\x0f\x66", ); test::( b"\x0c\x0f\x7b\x0f\x99\x55\xbb\x54\xf1\x6e\x4e\x39\xad\x9b\xfd\x1d\xeb\x04\xb8\xe8\xb3\x8e\x67\x4d\xa4\x55\x69\x6b\xdf\x7c\xf2\x8e\x24\x11\x4a\xd0\x05\x13\xd8\xdd\x4e\x5c\x89\x5d\x35\x1e\xa9\x13\xfe\xe5\x16\xb6\x46\x82\x00\x87\x72\x1d\x9a\x0b\x5e\xcd\x76\x9b\x38\x25\x73\x91\x23\x54\x4e\x70\x58\xb6\x6d\x23\x42\xb0\x44\x62\xd5\xd1\x73\xcd\xb0\x0e\xf6\xac\xa6\x04\xaa\xa4\x38\xb8\x86\x8d\x15\xdd\x66\x24\xab\xb8\xd1\x93\x84\xdb\x48\xbd\xaa\x66\x47\x14\x13\xa8\x94\xd3\x61\x0b\xc9\x7d\x84\x8a\x59\xe2\xc6\x9c\x0c\x0a", p, q, g, b"\x45\xef\x38\x4e\xd8\x17\x38\x66\x68\xe1\xb9\x0b\x42\xf1\xd4\x23\xad\x9b\x17\xea\x87\x01\x19\xc0\x93\x2a\xc2\xf5\x15\xf5\x46\xa3\xb6\xb8\x0a\x61\x2e\xe6\x6d\xfc\x00\xcc\x4d\x9e\x3b\x5d\xd1\x53\x03\xd5\xeb\xc0\xaa\x40\xcb\xcd\x77\x46\xf5\x4a\x3f\xfe\xa2\x3a\xea\x07\x04\xae\x9c\xf5\xad\x61\x45\x62\x9c\x61\xd1\x58\xdb\x6e\xe3\x9a\xc8\x99\xbb\xda\x59\x79\x4b\x17\x69\xa9\x29\x82\x08\x2b\x77\xa1\xd4\x88\x56\x42\x7b\x78\xbb\x6e\x07\x7e\x27\x33\x5f\x11\x5b\xb8\x42\xe5\x32\x51\xf6\x99\xf0\x44\x88\xbe\xaf\x83\xa6\xc4\xaa\x6a\x4b\x76\x37\x0c\xef\xc9\x09\x9c\x0a\x45\xbc\xf9\x73\x24\x2d\xf2\xa0\x1e\xf6\x8e\x66\xc8\x7e\xff\xd7\xf9\x8f\x44\x1e\x94\xa0\x9a\x28\x30\x07\x6c\x28\x95\xf9\x97\xaf\xd0\xa9\x09\xb4\x5b\x3c\x05\x91\x77\x00\x02\x36\xc5\x01\xbf\xaa\x56\xda\x80\x0e\xcf\x08\x70\x1d\x21\x20\x16\xb5\x25\xf3\x0d\x63\xcc\xf3\xaf\xea\x09\xdf\x39\xe1\xcf\xab\x7b\xf4\x5d\xe1\xa3\x9a\xc7\xf2\x8d\xe0\x03\x7e\xc5\x52\xe2\xea\x10\xc6\xb5\x6a\x5d\xb8\xc1\x3f\xcb\xf7\x3d\x2e\x50\xd5\x8b\x4f\x3c\xf2\x78\x50\x6f\x1e\xaf\x08\x73\xe9\xee\x94\x65\xcb\xaf\xf4\xae\x62\x6f\x3a\xa1\x09\xfc\xe4\x9e\x55\xd5\x7f\xe8\x81\xc5\x0f\x72\x79\x26\x26\x21\x28\x2a\xdc\xf3\x79\x14\x1c\x9b\x2c\x39\x81\x3f\xaf\x82\x3a\x7e\xc0\x77\xc6\xe6\xbf\x95\x3f\x13\x0a\xca\x58\xf3\x6e\x7a\x87\xab\x1a\xae\xea\x5e\xeb\x44\x02\xfa\x9e\x26\xef\x89\x38\xc8\xf3\x8a\x6c\x04\x08\x09\xf4\xd0\x4c\x81\xe2\x94\x83\x87\xd7\xbe\x81\x3a\x97\x3a\x9c\x95\x17\x67\x00\x11\x7d\xe2\xf3\x3e\x61\x94\x03\x87\xf8\x51\xa7\x3d\xfa\x4a\xc5\xc9\x84\xec\x97\x91\x8c\x96\x7b\xfe\xdd\x88\x6d\x1b\xb7\x05", b"\x77\x56\x3b\x3b\x48\xfc\x9e\xe0\xdb\xea\x79\xfc\x74\xdd\x6c\x69\xb7\x2c\x42\x70\x91\x8e\x6a\x1b\xe2\xc9\x98\x17\x70\x23\xb4\x0f", b"\x09\x9c\xdd\x62\xdc\x04\x4a\x57\xea\x25\xd1\xb5\xc1\xf6\xed\x84\xd1\x1b\xac\xbb\x09\x75\x97\x6d\x58\x21\xc4\x14\xb5\x41\x6b\xde", ); test::( b"\xc6\x77\x35\x69\x8a\xe7\xbb\xae\xb6\xf3\x21\xa1\x08\x86\x17\x38\x2a\x5c\x92\x09\x21\x51\xec\x36\x45\x82\x96\x2c\x9c\x0e\xd9\xed\x8f\xc7\x90\xcd\xe0\xd9\x74\x4d\x4e\x38\x97\x0a\x84\x82\x40\x1c\x0f\x61\xe9\x18\x05\xf4\x98\x4b\x8c\xfd\xf9\xdc\x80\x93\xa5\xc6\x68\x1d\xac\x13\x80\x9b\xc4\x1d\x16\x7d\x3e\x11\xbc\x99\x69\x8a\x4b\xc0\x7f\xd2\x48\xa6\x74\x91\xe8\x64\x10\x81\xff\x1e\x97\x87\x17\x45\x15\x7c\xf9\x30\x19\x5a\x35\xa1\x4d\x08\x83\xa2\x6d\xb4\x42\xe4\xed\xb9\x62\xaa\x61\x87\xb8\xd1\xc7\x79\x1d\x61\xbd\x25", p, q, g, b"\x0d\x3b\x3c\x3d\xf0\x72\xb5\xf5\x12\x91\x18\x13\x2b\xb7\xbc\xa3\xc5\x2f\x51\xdf\x36\x76\x7f\x11\x52\x38\x7e\xc0\x0d\xf6\x5c\x72\x8f\x0c\xff\xc1\xcb\x6f\x22\x42\x58\xcb\x6d\x3e\x90\xf7\x9d\xd9\x76\xb5\xa1\x80\xb8\x39\x03\xd2\x10\xf0\xc4\xda\xb8\x2e\xb7\x2a\x1f\x89\x97\xbf\x09\x30\x1d\x0f\x7c\x89\x07\x5d\x55\x2c\x81\xfd\x95\x85\xb0\xb1\xb1\x29\x17\x44\xd2\x1b\xd1\xed\xcb\x51\x12\x17\xc2\x96\x2e\x1a\x6d\xe9\xbb\x01\xc2\xb9\x69\x8f\xf5\x5e\xa7\x5d\xcf\xe4\x56\xbe\x48\x1c\xb6\xf0\x64\xfe\xd4\xbf\xf8\x74\xeb\x1c\x9b\x74\x51\x97\x9f\x7d\xe7\x01\x1b\xaf\x5a\x47\xc9\x76\xa1\x79\xae\xe9\x09\xd2\x5c\xa8\x7f\xd5\xe3\xc7\x5d\xf7\x78\xe2\x12\x72\x93\x7c\x5b\xa7\x80\x6a\xef\xa7\x06\x47\x22\x1e\x5f\x7c\xc3\x2a\xb8\x01\x59\x21\xa5\xa9\x5e\xcb\xb3\xca\x4b\x66\x72\x49\xd0\xf3\x4d\xd2\xd8\xba\x86\xdc\x15\x8f\x9e\x84\x25\x17\x6e\x98\x80\x48\xef\xd9\xf7\xb7\xcc\x53\xe9\xfc\xdb\x29\xad\x24\x12\xab\x4c\xa6\xeb\xbd\xe6\xf4\xef\xca\x59\x45\xb5\x3b\x27\x53\xbf\xc4\xea\xbe\x62\x80\x23\x56\x20\xc4\x46\x4f\x69\x40\xac\xca\x1a\x94\x65\x9a\x52\x7a\xa1\x4c\xc7\xc5\x46\x73\x82\xa5\x4f\xe4\x79\x65\x6d\xfb\xc1\x19\x23\x09\x4f\xe8\x01\x9a\x08\xc3\xce\x7e\x99\xa2\x8f\x08\x6b\xda\xaf\x0f\xaa\xc6\xee\x16\x19\x0d\xca\x8e\x94\xbf\x87\x65\x70\x58\x49\x5a\xd0\x79\x31\xc8\x90\x08\xca\x1e\x56\x50\x76\x25\x6a\x93\xcb\x24\x68\xaa\x71\x22\x75\x8b\x8e\x17\x4f\x6a\x80\xf4\x1a\x90\xfc\x92\xf0\x5b\xf1\xf1\xf4\x7d\xa1\x85\xb2\xf2\x5a\x1a\xbf\x5e\x0c\xcc\x66\x13\xe3\xae\xf8\x71\x93\x40\x0d\x75\x1b\x4c\x87\xb4\x4d\x9b\xdf\x5c\x0e\x20\x7f\x0f\x6a\x7d\xc2\x11\x37\x99", b"\x42\xc9\x02\xc5\x82\x68\x74\x77\x45\x50\x46\x4c\x4b\xb7\x36\xf2\xaf\x7f\xd2\xa3\x47\xf2\x7c\x65\xba\xe1\x18\x20\xee\xb7\x52\xaa", b"\x64\x11\xb4\x59\x47\xa4\x3c\x5b\x01\xc2\xf6\xce\xfc\xd4\x1c\xab\x73\xfc\xb6\xea\x0f\x2a\x35\xa2\x14\x75\x56\x30\x55\x31\x6e\x3e", ); test::( b"\xeb\x6a\x03\x59\xc6\xe4\x6e\x09\xa4\x2c\x55\x47\x05\xbc\xfc\x5c\x0c\x02\x26\x70\xb2\xf6\xc1\xa5\xbf\xe1\x4e\xa8\x05\x75\x9c\xa2\x25\x61\x53\xfd\xf8\x15\x05\x7c\xa9\xbd\x5f\x4c\xf8\x37\xe1\x4f\xdb\xa3\xad\x17\x61\x2c\xcd\x19\xfd\xe0\x07\x64\xba\x2e\x8e\xcd\x8f\x5a\x18\x5c\xb2\x65\x12\xf7\x45\x72\x59\xc2\xf0\x67\x08\x52\x74\x1e\x73\x93\xb4\x0c\x8b\xab\x67\x3b\xe2\xfa\x51\x9b\x48\xa9\x5d\xee\x65\x52\x36\x5f\xdb\x7d\xdb\x63\x2b\x1b\x33\xf1\xa5\x29\x0b\x82\x8d\xa5\x96\x5e\x82\xd8\x74\xf7\x9c\xdb\x92\x88\x14\xfb", p, q, g, b"\x6d\xb8\x3b\x06\xc6\x98\xed\x80\x12\x2e\xc4\xa2\x18\x33\x70\xed\x7d\xbd\x6e\xa4\x4d\xbb\x45\x42\x14\x95\x68\x57\x0c\x53\x52\x1d\x33\x99\xab\x44\xfe\x2b\xab\xd4\x90\x68\xe1\x19\x53\xc5\xd3\x8f\x7f\xfe\x3b\xcb\xe4\xcb\xce\xb9\x1c\x15\x5a\xc8\x74\x1d\xcf\x22\x6a\x59\xed\xe1\x0b\x05\x0b\x9f\x37\x43\xf2\x96\x89\x26\x6c\xe6\xee\x02\x0c\xa1\x7f\x9f\xa0\xe7\x5b\x3f\x71\x58\xa6\x5c\xef\x9f\xac\x76\xc8\x87\x86\xb5\xe3\x77\xaf\xea\xcb\x9b\x3d\xda\x55\xbe\x92\x2d\xa0\xef\x95\x8a\xa5\x56\xab\xfb\x43\x06\x7a\x41\x4e\x91\x5e\x31\xaf\x5f\x53\x70\x88\x1e\xd9\x7b\x25\xb4\xbf\xec\xbe\x08\x2a\x14\x5d\x02\x71\x7a\xf8\x00\xe7\x7e\x28\x96\x3c\xc0\xa6\xa1\xc1\x1b\x02\x83\x5e\x14\xbd\xba\x1a\x8c\x9c\xe4\xbf\xeb\x06\xaa\xeb\xd7\x60\xd7\xc4\x3c\xf5\x6b\xa2\x12\xd0\xc7\x5d\xa0\x26\x17\x65\x35\xf9\x82\xe8\xd7\x49\xf2\x0c\x2a\x8d\x5f\x53\x87\x5d\x89\x33\x74\xd8\x59\xb7\xce\xe5\x8b\x0e\xb3\x19\xd3\x31\x3c\xb8\xd1\x76\x02\xf4\x7e\x12\x0d\x1a\x24\xa0\xf8\xa6\x3c\xfe\x45\xa5\x02\x8c\xc0\x93\x7b\xbe\x89\xf6\xb3\xb7\xcd\xca\xa7\xdc\xd5\xec\x5f\x3e\xd2\xaa\x9f\x3a\xa8\xe9\x1a\x49\x6a\x8b\xad\x78\x74\xdd\x34\xbd\x8f\x2a\x95\x91\x99\x7d\x54\xf9\x2d\x58\x64\x21\x6c\x95\x36\x46\x84\x0b\x37\x8c\x7a\x05\x21\x5e\xcd\x97\xb6\xba\x94\x4c\xa1\x85\x97\xb7\xa5\x48\x32\xec\x98\xc1\xca\xc0\x00\x3d\x50\xd5\xa0\x53\x12\xcb\xc8\x52\xd5\x07\xcc\x97\x3e\xcb\x56\xf4\x24\xe8\xa1\xc1\x98\xbc\xdb\xaf\xaa\x6f\x92\x8f\xd2\x7a\x7c\x91\xf8\x4b\xc2\x34\xf2\x53\x26\x39\xa8\xaa\x21\x96\xf8\xfc\x2b\x71\x11\xb3\xd0\xb1\x15\x31\x65\xa0\xe0\x52\x5d\x4e\xa5\x95\xf8\x9a\xec\x33\xb6", b"\x04\x93\xdb\x0c\x18\xa3\x88\x27\x09\xb3\xcc\x9f\x8d\xbe\x05\x45\x45\x06\xc0\x4c\x3a\x12\xa4\x1d\x59\x9d\x20\x1d\x76\x15\xb6\xd8", b"\x74\x94\xb4\xd1\xb2\xf3\xae\x22\x79\x72\x55\xa1\xd0\x66\x27\x46\x35\x2a\x3d\x05\x32\x29\x04\x02\x06\x85\x94\xcf\xe4\x8c\x23\xa3", ); test::( b"\x5c\x59\xb2\x09\xbb\xc0\xa1\xe0\x10\xcb\x10\x8d\xb4\x10\x1b\x8e\x2d\x04\xce\xd9\x12\x99\xa8\x74\x23\x22\x10\x2e\x0d\x57\x8c\x36\x98\x42\x2b\x43\xd1\x9d\x33\x16\x08\x18\x8b\xed\x4c\x7e\xdc\x03\xa4\x42\xf8\x9a\xae\x60\xf4\xe7\xee\x9b\x63\x25\xde\x3a\x8b\xb7\x02\x91\x8c\x21\x34\x3b\xc9\xb2\x66\xf2\xeb\xcf\x5a\x62\x03\x36\xa7\xbc\x99\xae\x36\x85\xf1\x90\x80\xdb\x46\xf2\x4a\x50\x12\x28\xc5\xbb\xfd\x9c\x0b\x4b\x0a\xbe\xcb\xfb\xd6\x76\xc3\x59\x60\x7c\xe2\x92\xcf\xfd\x52\xd2\x6a\xf8\x0b\x22\xe3\xc4\xd5\x16\xba\x0f", p, q, g, b"\xbe\x31\xfd\x5d\x62\xdb\x69\x0b\xcd\xbc\x09\xe4\x53\xd4\x41\x7f\x82\xe8\x62\x1a\xd7\x17\xca\xb9\x46\x48\x20\x1a\x74\xf6\xff\xdf\xab\x96\x53\x11\xe8\xff\x35\xc4\xa0\xb5\xdd\xa3\x39\xb4\x35\xf1\x73\x17\x17\x5a\xc6\x42\xf7\x85\x12\x9e\x15\x16\x94\xea\x8b\x24\x46\x27\xe3\x00\xce\xb0\xf3\xbe\x08\xf9\x1c\x0f\x52\x7f\x2e\x0d\xf7\xc9\xf5\x54\x92\xd1\x32\x9b\x7d\x96\x89\x63\x4c\x8a\x4f\x52\x10\x15\x7e\x24\x19\xe6\x15\xd9\x43\x17\x36\xf8\x04\xb1\x64\x11\x03\x37\x1e\x7f\xfe\x72\x00\xe7\x42\x96\x12\x7d\x59\xa8\xf9\x7d\x41\xaf\x11\xd7\x0c\x3f\xd0\x25\x31\xf7\xb8\x11\xda\xa7\x51\x6a\xa2\xf2\xa9\xba\x70\xdc\xb7\x04\xf3\xfe\xe4\x7f\x2c\xbe\xd6\x5c\x1e\x3d\x06\xc8\x81\x4e\x1b\x28\xab\xe2\x9f\x3d\x05\x67\x92\xef\xdf\x9a\xc9\x30\x7e\xd0\x10\x6c\x5a\x32\x87\x21\xaf\x0e\x20\x2b\x6d\xf7\x37\xec\x4d\x82\x14\x3d\xd2\x50\x5e\x10\x3a\xd8\x45\x86\x3c\x45\x86\x9e\x69\xab\xd9\xe0\x2c\x7b\x6e\xaa\xff\x9e\x2e\x12\xbc\x18\x81\x38\x68\x8c\x0b\xe3\xe6\x94\x1c\x37\xc7\xdd\xc9\xb6\xd2\x89\xf7\xcc\x8f\xde\x42\xbc\x3c\x14\xe3\xee\x52\x16\x35\xf3\x2f\x54\x28\x0d\x11\x9c\xce\xdf\xc5\x10\x90\xa0\xad\x00\x6b\x24\x27\x60\x40\x14\xea\x4d\x0e\x0c\xd1\xef\xbc\xe0\x9c\x7f\x8e\x99\x81\xf9\x69\xae\xd6\xd4\x81\xca\xfb\x32\x9f\x99\x53\x43\x54\x1d\x36\x68\x6d\xe6\xcb\x8e\x4b\x1e\x7e\x37\x27\xab\xd5\xc1\xe3\xff\xa6\x93\x6a\xd4\x4b\x92\x60\x63\x56\x15\x12\xc0\xe9\xac\x78\x7f\x8e\xb7\x91\xf9\x63\xf7\x90\xba\x1b\x21\xdf\xe1\xb8\xd3\x1d\x4c\x16\xb1\x52\xa6\xde\x65\xbf\x54\xab\x0f\x0d\x1e\x3d\x45\x03\x17\xb1\xcf\x0c\x4e\x33\x1d\x18\x58\x7a\xcc\xb6\x96\x0c\xcd\x04\xdd", b"\x7f\xc9\xba\xb3\x50\x5a\xdc\xd1\xb1\xc8\x12\x7e\x2d\x1f\xbc\xd0\xe1\x5e\xaa\xc3\x14\x25\x0d\xc1\xc6\x84\xfc\xc4\x7f\xda\x29\x93", b"\x70\xf2\x00\x7e\xdd\x68\xfb\x9d\xfe\x19\xa6\x3e\xee\x4d\x5a\x97\x72\x91\xab\xd2\x35\xed\x26\xe4\x29\x14\x76\xca\x5d\x0c\x81\x71", ); test::( b"\xc8\x05\xd1\x8c\x0b\xb5\x3d\x32\xb5\x7c\xb6\x52\xf5\xb0\xe5\x29\x3b\xe4\x92\xa1\xc8\x8d\xfb\xec\x5b\xaf\x47\xee\x09\x3e\x2d\xf0\x69\x18\x99\x4e\x5c\xac\xbc\x3d\xff\xf2\x29\xab\xd3\x1f\xab\x7a\x95\xad\xe2\xfb\x53\xad\xaa\x7d\xff\x51\xf6\xc8\x58\x1c\x69\xeb\x5b\x09\x0b\xae\xc3\x86\x07\xee\x94\x35\x44\x7a\xd8\x13\x74\x55\xb6\xba\x17\x9f\xc5\x3a\xc0\x94\xf9\x7e\x3e\x29\xd0\x72\x4c\xd1\x08\x11\xf1\x42\xd6\x7d\x1c\xfc\xd5\xc3\xd1\xe9\xb4\x11\xda\xc3\x8f\x6e\x1c\x0c\x14\xdc\x9a\x50\xd8\x4b\xcf\x00\xec\xe8\xa6\x03", p, q, g, b"\x2b\x6e\x1a\x8d\x44\x82\xb4\x16\x97\xbb\xbe\x50\xb5\x5b\x3d\xcd\xec\xea\x8d\x2e\x2e\xb5\xcf\x27\xb8\x92\xbc\xbc\xab\xfb\x25\x3c\x19\x48\x6f\xa7\x7c\x98\xc1\x5a\xdd\x41\x49\x92\x5b\x55\x01\xe5\xa5\xef\x45\xb3\x2a\xd0\x9a\x87\x24\x62\xa0\xf4\x1d\x04\x8a\xf4\xe5\x30\x66\x0a\x38\x64\x93\x7b\xa6\xa9\xeb\x07\x34\xe9\x0f\xda\x3c\x9b\x6f\xcd\x30\xc9\x07\x87\x71\x29\x5a\x93\x80\x2d\x9e\x19\x92\xa4\xee\xe9\xaf\x7a\x04\x13\x88\x0f\x33\xbc\x0b\x62\x03\x62\x03\x28\x68\x44\xbc\x38\x41\x87\xec\x51\xa3\x3d\x39\x0e\xaa\xc0\xcc\x33\x28\x09\x8a\x84\x75\x09\x12\x9b\xda\x73\x59\x09\xfc\x7a\x11\x89\x3a\xd0\xec\x61\x27\x6b\x7a\x5d\xcd\x4e\x62\x6d\x9b\xa6\x76\x10\xea\xf0\xaf\x87\x6a\xfc\x04\x19\xfa\x4f\x00\x9a\xa5\xf9\x13\xa1\xc7\x37\x98\xc2\x70\x7e\xeb\x8f\xa7\x7f\x4e\xe0\x58\x22\x9a\x0a\xd3\x7e\x84\x57\x39\x66\x8d\x95\xde\x22\x67\x60\x89\x8c\x02\xd0\x6f\x15\x5f\x82\xdc\x16\x36\x0c\x3a\xbc\xa3\x78\x0b\xcd\xb7\x94\x46\xc8\x34\x35\x83\xdc\x0f\x69\x25\x43\x4b\x0d\xae\x7b\x59\xcb\x26\xb1\x00\x08\xf8\x65\x70\xca\x03\x50\xde\x34\x0b\x27\x55\x24\xf0\x05\x51\x31\x0f\x1d\x09\x5d\xb8\x48\x0b\x4a\xcc\x48\x9c\xf5\xe2\x94\x7e\xb9\x29\x04\xeb\xfd\x0d\x97\x8b\xbf\xb5\xd0\xc6\xa1\xa9\xdb\x50\xcc\x69\x17\x94\x9c\x71\x85\x46\x32\xb4\x40\x8b\xad\xe5\x19\x5d\x40\xdc\xaf\x61\xfe\x95\x0e\xff\x0c\x89\x97\xc3\x74\xf1\xd4\x65\xc8\x0b\xc6\x5a\xdd\xa6\x36\x43\x3e\x94\xf2\x2c\x5f\xbc\xf0\x9e\x99\x66\x6a\x53\x59\x19\xee\x6f\x88\x15\x49\x34\xf1\x13\x77\xa9\xa9\xe0\x21\xf2\xd7\xec\xab\xa3\x25\x10\xe9\x2b\xf5\xad\x67\xfa\x8b\x3d\x70\xdd\x20\x92\xb1\x38\x9e\x31\x93", b"\x38\x20\x8c\x09\x85\x62\x4b\xb9\xd6\x27\x13\xbc\x71\x50\x94\x2c\xbc\x92\xb8\xe8\xa3\x6e\xf6\xd1\xec\x4d\x08\xd1\xd9\xa5\x71\x5f", b"\x65\xd2\xba\x78\x7e\xd4\xc0\x8b\xea\xbf\x24\x34\x3d\x06\xed\x61\x87\x2d\x6d\x68\x4a\x3b\xc7\x03\x07\xfc\xb7\xe2\x0d\xf9\x31\xda", ); test::( b"\x9e\x0c\x66\xa4\xf1\x20\xe8\x5a\xea\x06\x4e\x7a\x8b\xa1\x32\xcf\x30\xa4\x5d\xe2\x88\x9f\x35\x47\x38\x4e\x4e\x84\xf4\x5b\x35\x72\xbb\x04\x23\xb8\x34\xde\x9f\x2c\x96\x36\xfa\xff\xdb\x63\x31\x92\x4f\x0d\x2f\x5b\x68\x76\x14\x5d\x9c\xae\x11\x0a\xb0\xcf\x6f\xc9\x0c\x2e\xef\xf9\x8c\x61\xfa\x18\x6c\xc3\x95\x2b\x57\x29\x9a\x73\x67\x8f\x45\x85\xbb\x18\xfb\xb8\x4e\xf4\x16\x67\x79\xff\x10\xee\xd1\x4d\x47\xae\x52\x8e\x03\x29\x8d\xbb\x97\xcf\x4f\x88\xb7\xe6\xd0\x95\x9b\x58\x94\x55\x0a\x3e\x2e\x35\x69\x47\xd2\x5f\xfe\x73", p, q, g, b"\xa6\x2a\xdb\xda\xa5\xa5\x5a\x2d\x1e\x43\x9b\x54\x89\xcd\x6c\x8f\xcb\x23\xe9\xc6\x4f\xbf\xae\x7c\x83\xe9\xd5\x59\x93\x19\xbf\x3f\x06\xc3\xc2\x90\xb9\x89\xa6\x38\x94\x0b\x1d\x0b\x7e\x8b\xf6\x74\x13\x19\xab\x4c\x38\xd4\x6e\x77\xeb\xd4\x94\x5e\x25\xcb\x89\xcb\xb6\x4e\x44\xb9\x47\x4b\xc7\xc9\xd9\xf6\x1a\x36\xe5\x7e\xb6\xaf\xab\x6c\x7a\x14\x9a\xfe\x02\xc1\xcd\x68\x54\x83\x20\x8c\x55\xfe\xec\xb0\xd0\xbd\x96\x69\x7b\x43\x79\x91\x05\x92\x67\xd7\x6a\x48\x84\x65\xfa\xab\x4a\x7e\x17\x59\x23\x29\x56\x70\x05\xfa\xa4\x21\xe0\x11\xd6\x7f\x4d\xa7\x5a\xcc\xb6\x27\x53\x7e\x93\x3e\x9e\xf0\xbe\x3c\x70\xf2\x1e\xd3\xf8\xc3\xb3\xd7\xd7\x69\xbb\x61\x1f\x82\xf2\xba\xa1\x0f\xbc\x73\x13\xad\x08\x19\x04\x8d\x35\x3d\x67\x97\x36\xc4\xd1\x4b\xca\x99\x85\xec\xd3\x70\x41\xaf\xff\xb2\x91\xa7\xd9\x09\xc7\x45\x81\x81\xd0\x15\x92\xe6\xc9\x0c\x0e\x34\xb4\x94\x61\xed\xe6\x6c\x5a\xc0\x02\x67\x1a\x49\x85\x54\x6a\x60\x75\xdf\x95\xb5\x23\xf1\x66\xd2\xe0\xd1\xf5\xda\x77\xba\xff\x5a\x24\xdf\x77\x5c\xc9\xd3\x67\xf2\xa0\x72\x8c\x48\x02\xd7\x97\x04\x17\x88\xc5\x6c\xb8\x71\x29\x03\x32\xc1\x36\x1f\x8d\xa8\x89\x7b\x5b\x8e\x25\xd4\xa9\x35\x94\xac\x64\x8b\xc5\x3c\x9d\x85\xb4\xfc\xdd\x7a\xb0\xf5\xa3\xee\x9c\x25\xcc\x14\xba\x65\x43\xb0\x78\x85\x95\x24\xec\x7f\x0b\x61\xcd\xb2\x09\xcc\x51\xc4\x0a\xa9\xaf\x08\x2e\xa9\xc1\xd4\xb9\x1b\x2c\x1f\x6d\xc1\x1c\xd8\x79\xfb\x38\x65\xd8\x79\xfe\x00\x0f\x0e\x0b\x4b\x23\x3d\xbd\x01\xc9\xc9\x8d\x01\xa6\x64\x74\x65\x77\xa6\x4b\xf2\x8d\x88\x25\x6b\x76\xde\x2b\xab\xf1\x49\x61\x11\x37\x33\xb1\xbb\x55\x53\x25\xc0\x9d\x8e\xc9\x18\x9f\xca", b"\x4e\x35\xf5\x86\xfa\xd4\xf5\x12\x86\x3c\x48\x5e\xc6\x1e\xd0\x16\x29\xaa\x13\x99\xb1\x6f\xef\x4d\x80\xcb\x33\x27\x52\xb1\xda\x92", b"\x26\x2d\xfe\x6a\xc7\x2a\x2f\x60\x44\xf6\x26\x98\xe4\x2d\xd2\xf9\x2b\x1f\x9a\x91\xbe\x42\xb5\xfd\xd2\x93\xb1\xbf\x9a\x14\x5f\x00", ); test::( b"\xed\x88\xd7\x07\x6c\x5f\x6a\x5e\x0f\x94\x75\x43\xd5\xfe\x74\x6a\xfc\xa9\xb2\xc4\xd0\x66\x55\xda\x46\x07\x68\x5c\x79\x9c\x21\x0b\xe4\xaa\xee\x0e\x6e\xd1\x97\x13\x81\x41\x82\xc7\xf7\xd5\x84\xdd\xbe\xd4\x88\xc8\xe3\x23\x9d\xdd\x81\x05\x55\xad\x63\x16\xd1\xdb\x37\xfd\x95\x53\xad\x74\xe3\xce\xef\x9e\xee\xfa\xf5\x45\x63\x60\x2f\x55\x47\xaa\xd4\x16\x1e\x93\x84\xed\xab\x65\x5a\x89\x84\x16\xdb\x53\xf7\x12\x37\xac\x5a\x14\x85\x71\x11\x82\xbc\x5b\xff\xf7\x24\x60\x25\x27\x84\xab\x1b\xba\x23\x63\x4a\x36\xbe\x77\x53\x3f", p, q, g, b"\x3e\x1c\xe8\x78\x0f\x39\x44\x4c\x21\x30\xdb\xf9\xd8\x0c\xa4\xb2\x58\x17\xdc\x16\xd0\x8e\x2c\xda\xca\x0b\x56\xcd\x2a\xbd\xb9\xef\x5a\xdb\x74\x1c\xcc\x1a\xbe\xcf\x62\x80\x6a\xd7\xe8\x76\x36\xf5\x28\x31\xc6\xde\xa4\x8e\x07\x29\xb9\x04\xe5\xa0\x61\x5d\x7a\xb4\x45\x01\x04\x20\x8a\x5d\xdf\xdb\x2f\x25\x69\x14\x6e\xe8\x3a\xc9\xaa\x27\xb4\xd0\x66\x35\x5f\xc5\x3d\xc1\xa3\x68\x32\x11\xad\x3e\xfa\xd1\xae\x69\xb8\xa7\x73\x7b\xbd\x89\xf5\xff\x48\x48\x2e\x2c\x56\xed\xaa\x77\x6e\x43\xb2\xa0\xba\x62\xe5\x13\x86\x2d\xa2\x90\x28\x8f\x07\xf8\x4c\xa5\xa0\x68\x37\xd1\x9e\x9b\x18\x6d\xc8\xd3\x69\x52\x96\x6e\x08\xf7\x21\x33\x40\x18\x6d\x31\xfd\x41\xa2\xd1\x45\x5a\x08\x3a\xee\x62\x12\x7a\x28\xdf\xe4\xda\x6c\x87\x6a\x5a\x6f\x36\xc4\x52\x45\xde\xe6\xf6\x56\x6b\x83\x18\xd3\xd0\x19\x43\xb2\xad\xf8\xce\x94\xea\x01\xa0\x1b\xa4\x1a\x6e\x28\x68\x20\xa9\x67\x07\xcb\xd4\x00\x28\x75\xb7\x9d\x9f\xe2\xdb\x6c\xc3\xf8\x08\xef\x0f\x71\x38\x0e\xa9\xa7\x3f\xc7\xe3\x68\x50\xd0\x22\xff\xac\x13\x16\x36\x36\x78\x86\xa6\xe9\x96\x57\x59\xd7\x3f\x03\xac\xe6\x97\x04\xb5\x21\x44\xf6\x7b\x67\x8e\x2f\xa2\x01\xc1\x9b\xb3\x7b\x00\x37\x7d\xaa\xbc\x93\x77\xad\xcb\xdd\xea\x28\x16\xcb\xb5\x0b\x26\xad\x2e\x42\x9e\xa0\x57\x6e\x77\x21\xb3\xb7\x5c\x4f\xed\xb3\x1f\xdf\x1f\x0c\x6c\x2e\xaa\x13\x5f\x52\xc9\xa9\x7f\x0d\xf5\xfb\x25\xef\x28\x84\x8b\xdd\x73\x90\xcd\x05\x40\x03\x72\x25\x82\xd9\x4e\x90\xa3\xbb\xe8\x5b\xeb\x34\x70\x12\x71\xb4\xbb\x48\xbd\xf9\xb3\xd0\xe1\xbb\x56\x23\x44\x5c\x78\x28\xc9\x37\xa4\x23\xbe\x51\x2c\x11\x77\xc9\xc0\xb5\xb0\xb6\xb0\xe1\xf6\x39\xd3\x30\xe0\x51", b"\x2e\x7c\xb4\x04\xa6\xda\xaa\x8e\x00\x76\x0d\xaf\xc9\x5b\x4e\xb5\x54\x56\x83\x22\x4a\x61\xa1\xbc\xd6\x12\x8b\xc4\xe7\xac\x53\x5e", b"\x3a\x70\xb3\xa9\x7e\x06\xe6\x3b\x89\xd5\x6e\xd5\x23\x23\x46\x46\x1c\x1a\x3b\x6b\x14\x5d\x89\x04\x3a\x48\xd6\x66\xde\x02\x56\xd5", ); test::( b"\x9e\x44\x00\x52\xed\x92\x73\x21\x94\x83\x88\x77\x6d\x37\x19\xbe\x06\x87\x39\xdc\x2d\x6c\x64\xc5\x93\x71\x76\xb2\x00\x5c\x2d\x70\xa9\x38\x9e\x6a\x65\x56\x63\x36\x6c\x09\x70\xa8\xe2\xe3\x11\x7e\xce\xf2\x57\xe9\x51\xac\x81\xc0\x73\x1d\xfc\xd4\xfb\xdb\x12\x41\xbc\x24\x9a\xdd\xe9\xcb\x39\x8c\x7d\x15\xe3\x81\x36\x8a\xd3\xd2\x4e\xde\xe2\x33\x97\xc1\x5a\x5a\x35\x6e\x78\x7d\x8f\x2f\xe9\xbe\x76\x26\x0b\xd3\x63\xe1\x70\x06\x28\x1c\x19\x9f\xe5\xb7\x10\xf9\xdf\xca\xc5\x28\x95\xe3\x92\xf7\x38\x4d\x71\xbb\x83\x05\x3f\xfc", p, q, g, b"\x89\xe8\x59\xfc\x63\xa2\x63\xbc\xc0\x51\xbc\x2e\xf5\x8c\xc9\x19\xee\x53\x73\x85\xcb\x36\x36\xd8\x3a\x62\x4a\x42\x30\xd4\xb0\x02\x4e\xc5\xe2\x8b\xcb\x88\x46\x67\xcd\x2b\xf8\xc2\x84\x51\xb6\x4d\xe0\x97\xf2\x19\x4c\xbb\x8c\x6e\x1c\xec\xbd\x6f\x9f\xbd\x57\x64\x81\x55\x5d\x0f\x0e\x8f\x13\x75\x2f\x24\x72\xf7\x61\x9d\x05\x23\x18\x42\x43\x10\xf6\x9d\x50\xde\x78\xad\x6c\x45\x7b\x98\xc6\x11\xf8\x48\x1d\x45\x43\x03\x1a\x73\xf8\x3d\x1e\x85\x2c\x1f\x20\x38\xa6\x43\x5e\x57\x1f\x77\x6b\xbb\x5c\xf9\x78\xa9\xb2\xc8\x8f\x05\xd1\x34\xfd\x5f\xf4\x65\x6a\x69\xd6\xfe\x6b\x66\x7d\xa6\xda\x54\xbe\x48\x38\x62\x50\x39\x4c\x75\xb4\x95\x68\x9f\xd4\x62\x8f\x66\x64\x24\xeb\x08\x00\x94\x44\x8d\x41\xb7\x06\x29\x2e\x51\xe7\x53\x86\x54\x3e\x5f\xcc\xe6\xa6\xf3\xaa\xc0\x3a\x7d\x6d\x5c\x25\x51\xca\x6b\x5b\x85\xfa\xdc\x86\xbf\xf1\x4c\x79\xa1\x60\x2f\xb0\xc1\xd4\x3d\x88\xd5\x67\x90\x21\xe8\x26\x06\x2e\xcf\x18\x6a\xaa\xae\xfc\x31\x2e\xab\x9f\x9e\x2d\xa1\x20\xa8\xd7\xd0\x8b\xa0\x9a\xa9\xab\xf4\xe3\x4f\x6d\x88\xc4\xc3\x14\xc5\x9c\x36\xba\x57\xf9\x28\xd8\x8d\x5d\x70\xfe\x48\xac\x67\x00\xf5\xcf\x60\x7a\x55\xe3\x64\x6d\xd0\x3d\x47\xe9\x6a\xd8\x69\xf7\xba\x2b\xcc\x7d\x65\xa9\x9c\x32\x21\xd4\x90\x9d\x1f\x22\xe4\xcc\xba\x81\x5f\xa5\xb7\x20\x57\x0e\x42\xf8\x62\x6c\x31\xd9\x9f\x60\xcd\x6a\x01\x53\x91\xfa\xb3\x53\x74\x46\xf7\x47\xc0\x11\x12\x93\xc5\xbd\x6b\x5d\xab\x2b\xc3\xd5\x13\x7d\x21\x24\x02\x9e\xed\x12\xdb\x71\xbd\xf7\x94\xde\x1a\x2e\xc5\x07\x0d\x83\xf8\x71\x95\x26\x4f\xf0\x9c\xb4\x8c\xdd\xb5\xe8\x52\xb2\x33\x57\x0f\x1b\x70\xcd\x45\x7c\xf8\x64\xe2\xef\x3b", b"\x37\xc3\x4f\x9c\xce\x91\x6d\xf3\xde\xff\x26\xbe\x08\xa4\xe6\xbb\xae\x06\x61\xfb\xbb\x5d\x81\xd6\x03\x9f\x00\xb1\xe5\x63\x2b\x67", b"\x3f\x4a\x29\x32\x91\x7e\x6b\xb0\x88\x59\x9a\x26\x9d\x7b\x59\x07\x69\xac\xf9\x80\x7d\xc5\xa9\x42\x0a\x95\xe1\x2c\x73\x64\xc5\xfa", ); // [mod = L=3072, N=256, SHA-384] let p = b"\xa4\x10\xd2\x3e\xd9\xad\x99\x64\xd3\xe4\x01\xcb\x93\x17\xa2\x52\x13\xf7\x57\x12\xac\xbc\x5c\x12\x19\x1a\xbf\x3f\x1c\x0e\x72\x3e\x23\x33\xb4\x9e\xb1\xf9\x5b\x0f\x97\x48\xd9\x52\xf0\x4a\x5a\xe3\x58\x85\x9d\x38\x44\x03\xce\x36\x4a\xa3\xf5\x8d\xd9\x76\x99\x09\xb4\x50\x48\x54\x8c\x55\x87\x2a\x6a\xfb\xb3\xb1\x5c\x54\x88\x2f\x96\xc2\x0d\xf1\xb2\xdf\x16\x4f\x0b\xac\x84\x9c\xa1\x7a\xd2\xdf\x63\xab\xd7\x5c\x88\x19\x22\xe7\x9a\x50\x09\xf0\x0b\x7d\x63\x16\x22\xe9\x0e\x7f\xa4\xe9\x80\x61\x85\x75\xe1\xd6\xbd\x1a\x72\xd5\xb6\xa5\x0f\x4f\x6a\x68\xb7\x93\x93\x7c\x4a\xf9\x5f\xc1\x15\x41\x75\x9a\x17\x36\x57\x7d\x94\x48\xb8\x77\x92\xdf\xf0\x72\x32\x41\x55\x12\xe9\x33\x75\x5e\x12\x25\x0d\x46\x6e\x9c\xc8\xdf\x15\x07\x27\xd7\x47\xe5\x1f\xea\x79\x64\x15\x83\x26\xb1\x36\x5d\x58\x0c\xb1\x90\xf4\x51\x82\x91\x59\x82\x21\xfd\xf3\x6c\x63\x05\xc8\xb8\xa8\xed\x05\x66\x3d\xd7\xb0\x06\xe9\x45\xf5\x92\xab\xbe\xca\xe4\x60\xf7\x7c\x71\xb6\xec\x64\x9d\x3f\xd5\x39\x42\x02\xed\x7b\xbb\xd0\x40\xf7\xb8\xfd\x57\xcb\x06\xa9\x9b\xe2\x54\xfa\x25\xd7\x1a\x37\x60\x73\x40\x46\xc2\xa0\xdb\x38\x3e\x02\x39\x79\x13\xae\x67\xce\x65\x87\x0d\x9f\x6c\x6f\x67\xa9\xd0\x04\x97\xbe\x1d\x76\x3b\x21\x93\x7c\xf9\xcb\xf9\xa2\x4e\xf9\x7b\xbc\xaa\x07\x91\x6f\x88\x94\xe5\xb7\xfb\x03\x25\x88\x21\xac\x46\x14\x09\x65\xb2\x3c\x54\x09\xca\x49\x02\x6e\xfb\x2b\xf9\x5b\xce\x02\x5c\x41\x83\xa5\xf6\x59\xbf\x6a\xae\xef\x56\xd7\x93\x3b\xb2\x96\x97\xd7\xd5\x41\x34\x8c\x87\x1f\xa0\x1f\x86\x96\x78\xb2\xe3\x45\x06\xf6\xdc\x0a\x4c\x13\x2b\x68\x9a\x0e\xd2\x7d\xc3\xc8\xd5\x37\x02\xaa\x58\x48\x77"; let q = b"\xab\xc6\x74\x17\x72\x5c\xf2\x8f\xc7\x64\x0d\x5d\xe4\x38\x25\xf4\x16\xeb\xfa\x80\xe1\x91\xc4\x2e\xe8\x86\x30\x33\x38\xf5\x60\x45"; let g = b"\x86\x7d\x5f\xb7\x2f\x59\x36\xd1\xa1\x4e\xd3\xb6\x04\x99\x66\x2f\x31\x24\x68\x6e\xf1\x08\xc5\xb3\xda\x66\x63\xa0\xe8\x61\x97\xec\x2c\xc4\xc9\x46\x01\x93\xa7\x4f\xf1\x60\x28\xac\x94\x41\xb0\xc7\xd2\x7c\x22\x72\xd4\x83\xac\x7c\xd7\x94\xd5\x98\x41\x6c\x4f\xf9\x09\x9a\x61\x67\x9d\x41\x7d\x47\x8c\xe5\xdd\x97\x4b\xf3\x49\xa1\x45\x75\xaf\xe7\x4a\x88\xb1\x2d\xd5\xf6\xd1\xcb\xd3\xf9\x1d\xdd\x59\x7e\xd6\x8e\x79\xeb\xa4\x02\x61\x31\x30\xc2\x24\xb9\x4a\xc2\x87\x14\xa1\xf1\xc5\x52\x47\x5a\x5d\x29\xcf\xcd\xd8\xe0\x8a\x6b\x1d\x65\x66\x1e\x28\xef\x31\x35\x14\xd1\x40\x8f\x5a\xbd\x3e\x06\xeb\xe3\xa7\xd8\x14\xd1\xed\xe3\x16\xbf\x49\x52\x73\xca\x1d\x57\x4f\x42\xb4\x82\xee\xa3\x0d\xb5\x34\x66\xf4\x54\xb5\x1a\x17\x5a\x0b\x89\xb3\xc0\x5d\xda\x00\x6e\x71\x9a\x2e\x63\x71\x66\x90\x80\xd7\x68\xcc\x03\x8c\xdf\xb8\x09\x8e\x9a\xad\x9b\x8d\x83\xd4\xb7\x59\xf4\x3a\xc9\xd2\x2b\x35\x3e\xd8\x8a\x33\x72\x35\x50\x15\x0d\xe0\x36\x1b\x7a\x37\x6f\x37\xb4\x5d\x43\x7f\x71\xcb\x71\x1f\x28\x47\xde\x67\x1a\xd1\x05\x95\x16\xa1\xd4\x57\x55\x22\x4a\x15\xd3\x7b\x4a\xea\xda\x3f\x58\xc6\x9a\x13\x6d\xae\xf0\x63\x6f\xe3\x8e\x37\x52\x06\x4a\xfe\x59\x84\x33\xe8\x00\x89\xfd\xa2\x4b\x14\x4a\x46\x27\x34\xbe\xf8\xf7\x76\x38\x84\x5b\x00\xe5\x9c\xe7\xfa\x4f\x1d\xaf\x48\x7a\x2c\xad\xa1\x1e\xab\xa7\x2b\xb2\x3e\x1d\xf6\xb6\x6a\x18\x3e\xdd\x22\x6c\x44\x02\x72\xdd\x9b\x06\xbe\xc0\xe5\x7f\x1a\x08\x22\xd2\xe0\x02\x12\x06\x4b\x6d\xba\x64\x56\x20\x85\xf5\xa7\x59\x29\xaf\xa5\xfe\x50\x9e\x0b\x78\xe6\x30\xaa\xf1\x2f\x91\xe4\x98\x0c\x9b\x0d\x6f\x7e\x05\x9a\x2e\xa3\xe2\x34\x79\xd9\x30"; test::( b"\xed\x9a\x64\xd3\x10\x9e\xf8\xa9\x29\x29\x56\xb9\x46\x87\x3c\xa4\xbd\x88\x7c\xe6\x24\xb8\x1b\xe8\x1b\x82\xc6\x9c\x67\xaa\xdd\xf5\x65\x5f\x70\xfe\x47\x68\x11\x4d\xb2\x83\x4c\x71\x78\x7f\x85\x8e\x51\x65\xda\x1a\x7f\xa9\x61\xd8\x55\xad\x7e\x5b\xc4\xb7\xbe\x31\xb9\x7d\xbe\x77\x07\x98\xef\x79\x66\x15\x2b\x14\xb8\x6a\xe3\x56\x25\xa2\x8a\xee\x56\x63\xb9\xef\x30\x67\xcb\xdf\xba\xbd\x87\x19\x7e\x5c\x84\x2d\x30\x92\xeb\x88\xdc\xa5\x7c\x6c\x8a\xd4\xc0\x0a\x19\xdd\xf2\xe1\x96\x7b\x59\xbd\x06\xcc\xae\xf9\x33\xbc\x28\xe7", p, q, g, b"\x1f\x0a\x5c\x75\xe7\x98\x5d\x6e\x70\xe4\xfb\xfd\xa5\x1a\x10\xb9\x25\xf6\xac\xcb\x60\x0d\x7c\x65\x10\xdb\x90\xec\x36\x7b\x93\xbb\x06\x9b\xd2\x86\xe8\xf9\x79\xb2\x2e\xf0\x70\x2f\x71\x7a\x87\x55\xc1\x83\x09\xc8\x7d\xae\x3f\xe8\x2c\xc3\xdc\x8f\x4b\x7a\xa3\xd5\xf3\x87\x6f\x4d\x4b\x3e\xb6\x8b\xfe\x91\x0c\x43\x07\x6d\x6c\xd0\xd3\x9f\xc8\x8d\xde\x78\xf0\x94\x80\xdb\x55\x23\x4e\x6c\x8c\xa5\x9f\xe2\x70\x0e\xfe\xc0\x4f\xee\xe6\xb4\xe8\xee\x24\x13\x72\x18\x58\xbe\x71\x90\xdb\xe9\x05\xf4\x56\xed\xca\xb5\x5b\x2d\xc2\x91\x6d\xc1\xe8\x73\x19\x88\xd9\xef\x8b\x61\x9a\xbc\xf8\x95\x5a\xa9\x60\xef\x02\xb3\xf0\x2a\x8d\xc6\x49\x36\x92\x22\xaf\x50\xf1\x33\x8e\xd2\x8d\x66\x7f\x3f\x10\xca\xe2\xa3\xc2\x8a\x3c\x1d\x08\xdf\x63\x9c\x81\xad\xa1\x3c\x8f\xd1\x98\xc6\xda\xe3\xd6\x2a\x3f\xe9\xf0\x4c\x98\x5c\x65\xf6\x10\xc0\x6c\xb8\xfa\xea\x68\xed\xb8\x0d\xe6\xcf\x07\xa8\xe8\x9c\x00\x21\x81\x85\xa9\x52\xb2\x35\x72\xe3\x4d\xf0\x7c\xe5\xb4\x26\x1e\x5d\xe4\x27\xeb\x50\x3e\xe1\xba\xf5\x99\x2d\xb6\xd4\x38\xb4\x74\x34\xc4\x0c\x22\x65\x7b\xc1\x63\xe7\x95\x3f\xa3\x3e\xff\x39\xdc\x27\x34\x60\x70\x39\xaa\xdd\x6a\xc2\x7e\x43\x67\x13\x10\x41\xf8\x45\xff\xa1\xa1\x3f\x55\x6b\xfb\xa2\x30\x7a\x5c\x78\xf2\xcc\xf1\x12\x98\xc7\x62\xe0\x88\x71\x96\x8e\x48\xdc\x3d\x15\x69\xd0\x99\x65\xcd\x09\xda\x43\xcf\x03\x09\xa1\x6a\xf1\xe2\x0f\xee\x7d\xa3\xdc\x21\xb3\x64\xc4\x61\x5c\xd5\x12\x3f\xa5\xf9\xb2\x3c\xfc\x4f\xfd\x9c\xfd\xce\xa6\x70\x62\x38\x40\xb0\x62\xd4\x64\x8d\x2e\xba\x78\x6a\xd3\xf7\xae\x33\x7a\x42\x84\x32\x4a\xce\x23\x6f\x9f\x71\x74\xfb\xf4\x42\xb9\x90\x43\x00\x2f", b"\x76\x95\x69\x8a\x14\x75\x5d\xb4\x20\x6e\x85\x0b\x4f\x5f\x19\xc5\x40\xb0\x7d\x07\xe0\x8a\xac\x59\x1e\x20\x08\x16\x46\xe6\xee\xdc", b"\x3d\xae\x01\x15\x4e\xcf\xf7\xb1\x90\x07\xa9\x53\xf1\x85\xf0\x66\x3e\xf7\xf2\x53\x7f\x0b\x15\xe0\x4f\xb3\x43\xc9\x61\xf3\x6d\xe2", ); test::( b"\x4b\xfd\x28\xa0\xa7\x9c\x94\xdb\xd6\x67\xc2\x75\xef\x77\xa2\x35\xd8\xea\xd7\xc6\x98\xd4\x2f\xb7\xf7\xc1\xfd\x3c\x8c\x2d\xc4\x8d\x0d\xda\x24\x08\xde\xa5\x63\x25\xd6\x92\x83\x69\x2a\x52\x3d\x28\x1f\xfe\xa8\x56\xff\xd9\xf8\x41\x7e\xaf\xbe\xa6\x06\xd8\x62\xdc\x58\x97\xbd\xf2\x41\xf3\xe8\xe4\x9a\xde\xd5\xea\xdc\x72\x95\xe5\xaf\xbf\x96\xb3\x97\x5d\x0e\x25\xda\xa2\x43\x36\x12\xe1\x20\xf6\x59\x03\x6b\x80\x7c\x18\x53\xc0\x3c\x90\xfa\xde\x2c\x19\xdc\xd9\x23\x49\x2e\xcc\x90\x6c\xaf\xc5\x7a\x95\xda\x6f\x20\xdd\x59\xd6", p, q, g, b"\x6c\x77\x8b\xcb\x14\x65\x82\x27\x76\x33\x93\x1b\xfd\x02\x9e\x69\xc9\xe8\xc0\xae\x9e\x24\x91\x3f\xa7\x34\x55\x4f\x24\xf6\x4a\xa6\x4f\xd9\xbc\x60\x8e\xf6\x77\xa1\xd4\x82\x9a\xa8\xa8\x56\x4c\x2f\xf0\xff\xa2\xfa\x6a\x0c\x1a\x2c\xcb\x60\x6d\xda\x01\x8b\xf0\x95\xf8\xc8\x97\xd7\xa4\x33\x49\xbe\xb9\x80\x7b\x7b\x11\x8f\x8d\xe8\x85\x6b\x16\x4b\x8d\x8b\xab\xdc\x17\xb4\x8f\x3a\x2b\x97\x2c\xe5\x37\xab\x4e\x7a\x7d\x9b\xa5\xd7\xe6\xfa\x36\x98\xac\xa9\x19\x73\xcd\x17\x87\xef\x7b\x6b\x4d\x04\x10\xde\x59\xcd\x31\x43\xe0\xf3\xac\xfd\xaa\xbe\x56\xb3\x71\xb4\x35\x4d\x0d\x32\xdb\xd1\xb5\xca\x6a\x87\x20\x54\xf3\xe6\x56\x63\x19\xd5\xd5\x0b\x2c\xf5\x4c\x12\x3f\xfc\x92\x90\x07\xad\x18\x57\xba\x13\xb7\xc4\x03\xf5\x51\xc2\xfa\x41\x09\xc4\x4e\x19\xef\x97\xaf\xb6\x2a\x61\x03\x35\x6f\xcc\x2e\xf4\x51\xe7\x36\x26\x10\x10\xb0\xef\x58\xae\x07\xa0\xc8\x01\xff\x75\xeb\xaf\x6c\xdd\x76\x3f\x8d\xf2\xf8\x3f\x0e\xbb\xda\x40\x84\x5b\x2f\x42\xd3\xfe\xea\xc0\x71\xfc\x62\x6e\xe5\xb5\x1f\x9b\xc1\xa1\x30\x51\x4f\x22\x04\x97\x1b\x4b\x72\x61\xb4\xbd\x78\x3f\xf7\x57\x75\xaa\x73\xa6\x3d\x7e\xbe\x99\x0b\x93\x9b\x0f\x44\xa9\x09\xec\x39\x00\x36\xf2\x97\xc3\x56\x3f\x64\xd1\x42\xc1\x4e\xa4\x3c\x5d\x3c\x6d\xef\x4a\x3a\x9c\xcf\x62\x74\x18\x2b\x93\x9b\x88\x65\x01\xae\xb4\xef\xb2\x3d\x00\x73\x43\x4c\xec\x6a\x91\x5a\x67\xe2\x4c\xbb\x23\x54\xc9\xbb\x10\x89\xaf\x48\x7e\xab\x5d\x8e\x49\x9a\x63\x2e\x6c\x61\x49\x2e\xa1\x5d\x2c\x44\x4c\x26\x9d\xe3\x32\x71\xa9\x00\x42\x46\x8d\xe2\x76\x7f\x0d\xcf\x7a\x66\x42\x4a\x3a\x40\xa6\x3e\xeb\xd1\x9c\xb8\x9c\x8d\x74\xc5\x85\x04\xc4\xe1\x03", b"\x37\xc3\xf7\x55\x6d\x6e\x5a\xcf\x79\x89\xf0\xba\xa7\x70\xc2\x45\x0d\xee\xbd\x4d\x5f\x58\xb6\x1e\x17\xb4\xb2\xb9\x26\xb5\x80\x31", b"\xa6\x1d\x86\x36\x5f\x10\xca\x5e\x1e\xe2\xc4\xbf\x27\x6f\x23\x74\xe8\x8b\x5a\x2d\x1a\xcd\x8e\xcc\x11\xe9\x77\x85\xb4\xfd\x99\x31", ); test::( b"\xe3\xfc\x75\x1b\x69\x78\xfc\xf4\x0f\x09\x60\x6e\xe4\x26\x3e\x16\x60\xff\x20\xe9\xc6\x3a\x71\x38\xf0\x78\xae\x3e\x3e\x60\x3d\xfc\xad\x17\x2f\x3c\x7c\xb3\xf3\x54\x5f\xc2\x3b\xc3\x0c\x37\xc8\x43\x9c\x7b\x23\x83\x41\xf2\x91\x48\x27\x6e\xa2\x12\x2e\xa8\xed\x0f\xea\xcb\x14\x9d\xe1\x7c\xfd\x33\xb8\xc9\x40\x8a\xee\x8a\xb0\xea\x8b\xa4\xa2\xb2\xea\x23\x74\x18\xbc\x31\x65\x36\x9c\x8c\xd4\x20\x24\x2f\x8d\x32\xbc\xab\xe0\xc3\x52\xe2\x1f\x65\xde\x80\xd5\x87\xba\x27\x13\xce\xa6\xe5\x3c\xa5\x24\xae\xc3\x65\xbd\xf2\x1a\xdc", p, q, g, b"\x13\x49\xbb\xf1\x6d\x37\x5c\x39\x2a\x9a\xcd\x5b\xdc\xe6\x55\xf1\x4d\x61\x62\x74\x38\x8a\x45\xcd\x37\x29\x25\xc5\x07\xac\x12\x9f\xe6\x1b\x99\x8e\x25\x12\x7f\x21\x09\x26\xad\x11\x91\x58\x3e\xee\x8c\x41\x90\x02\x6b\xa0\xa9\x58\x94\xbe\x3f\x0a\xd5\xd0\x58\x86\xc5\x9a\x3c\x7a\x00\x44\xf7\xe2\xbd\x9b\xbe\x28\xbf\x93\x66\xd0\x34\xdb\x42\x4f\x34\x96\x0e\x30\xa8\xe7\x88\x8f\x92\x7d\x0b\xf9\x84\xb0\xff\x99\xea\x27\x18\x71\x12\x4a\xa1\x2e\x0c\x0e\x19\x62\x4e\x53\x3c\xb4\x14\x9c\xed\xb3\xe1\x1d\x32\x16\x00\xdc\x07\xb3\x2e\x53\x1a\x61\x5c\x8f\x7f\xd7\xf3\x3a\x07\x1c\xaa\xa7\x64\x33\xd1\xaa\xb0\xb7\x10\xfa\x7b\xa3\xdd\xb0\x17\x5c\xed\x4e\x55\x8d\x51\x17\xaf\xc7\x54\x2b\x9b\x07\xa8\xfe\x8e\x4b\x08\xa1\xde\x45\x64\x43\x55\x3f\xe8\x7a\x4c\x24\x55\xde\xd7\x2f\x98\x54\x4d\x6c\x41\xd6\xef\x66\xb7\x14\x2a\x4a\xa9\xaa\x1d\x3d\x20\xf7\x00\x01\x03\x89\xe4\x17\x84\x07\x82\xfa\xd6\x82\x15\x3d\x56\x9f\x94\x4d\x3d\x3a\xd1\xd8\x8d\xb5\xbf\xba\x34\x99\xe4\xc3\x66\x0b\x76\xb4\x4d\xa4\xb0\xe6\x72\x7e\xbc\x3f\x22\xb2\xa0\xaa\xf6\x2d\xc2\xa2\x9d\xb8\xba\xbc\xac\xc2\x16\x9c\x2b\x86\x74\x05\x4c\x89\xfd\x77\x0d\xb9\x8b\x12\xaf\x2d\x93\x3b\xec\xbe\xca\x9f\x22\x44\x4b\x52\x7a\xa8\x94\xb3\x76\x52\x92\xdc\xff\xaf\x34\x08\xe6\x99\x49\x5d\xf7\x9b\x98\xd9\x57\xfd\xba\x7e\x4c\x8e\x7a\xce\x3f\x98\x7a\x95\xdc\xb2\xe7\x77\xfa\x2d\x13\x04\x47\x9a\x6d\x13\x7e\xfc\xb0\xc4\x04\xe6\xd8\xed\x39\xd6\xaf\xba\x25\x49\xf3\xee\x2b\x9a\x45\xf3\x24\x56\x7c\x02\x27\x31\x9d\xc5\x9b\xca\xdf\xcf\xdf\x15\x66\xf3\x56\xf7\xc2\xba\x6d\xb2\x1c\xca\x2a\x8f\xb2\xfb\xea\xf3\x1c\xb7", b"\x2d\x3f\x3c\x60\x5e\xca\x8f\xec\x37\xa7\x6d\x60\x6d\x20\xfd\xe8\x9c\xb6\xf9\x71\xa4\x47\x96\x09\x5a\x01\xdc\xf8\xe9\x00\xf5\xb2", b"\x6a\x43\x16\x83\x34\xe5\xb0\xea\x07\xcf\xa5\x97\x86\x09\xe8\x6f\x96\x9d\x10\x05\x52\x8e\xbb\x3e\xe9\x07\x3d\x56\x55\xd5\x4b\x44", ); test::( b"\x45\xf6\x56\xa1\xef\x0e\x61\xde\x46\xdf\x2c\xa2\xd8\xea\x26\x64\x0a\x99\x4c\x30\x38\x0c\x0c\xfd\x66\xbe\x39\x98\xd8\x98\x49\x16\x1b\xbc\xf3\xbe\xe7\x7a\xd3\x0e\x76\x9f\x10\xe2\x3a\xad\x5b\x4d\xf4\xed\xc1\x9a\x86\xfb\xb5\xab\xde\xec\x87\x79\xb7\x6b\xe2\x79\x53\x2d\x76\x92\xbc\x58\x6c\x62\x69\x2f\xa1\xe3\xdb\xcc\xe3\x3f\xfd\xdc\x9f\x97\x58\x91\x72\xf6\x4a\x48\x53\x56\x93\xde\xd6\xbc\x73\xb2\xca\x32\x46\x9d\x0e\xaf\x67\x06\xd2\xa5\xf5\x8f\x8d\x28\xa7\x45\xdc\x32\x8b\xcc\x75\xb3\x41\x5c\xa9\x3e\x29\xea\xbb\x1e", p, q, g, b"\x31\xa9\x89\x60\x1f\x32\xb2\x05\x94\x3a\x84\x18\x87\xdf\x3c\x68\x14\xcf\xb2\x25\x8e\x52\x04\xd0\x4d\x39\x28\xdd\xfa\xba\x0d\xff\xad\x43\x15\x1e\x27\xd6\x66\xd2\x92\x8b\xed\xc6\x72\x75\x44\x0f\xb5\x02\xed\x3e\xaf\xc3\xad\xc1\x10\x09\xee\x70\x3f\x01\xea\xa0\x34\xaa\x72\x4f\xcc\x63\xc5\x9a\x8a\x59\x63\xf3\x35\x2f\x72\x93\xea\x24\x25\xea\x89\xbb\xf1\xe4\x17\x24\xb6\x9f\x38\x3b\xf1\x0a\x97\x31\x46\xed\x02\xf5\x52\x08\xb0\x48\x33\xd1\xbb\x53\x99\xa6\x7f\x04\x08\x15\x90\xac\xfc\xfb\xb1\x21\x05\x42\x3e\x26\x09\x1d\x09\x07\x8c\x45\x00\x7d\x43\x6e\xb1\x9f\x95\x2f\x87\x98\xb0\x01\xa3\xc6\x4a\x3b\xaa\x54\x96\xc9\xdb\xe6\x58\x07\x81\xd4\x02\x0b\xb7\xe4\xe7\xae\x23\x80\xce\x79\x65\x8c\x10\xa2\xe5\x7b\xbb\x8c\xac\x12\x08\x77\x28\xce\x43\xba\x2b\x9f\x38\x0e\x3a\xbc\x2d\xd1\x2a\x68\x24\x88\xc6\xb4\xfb\x2f\x8d\xd7\xf3\x84\x6b\x6a\x26\xf9\x13\xac\x15\x68\x79\xee\x6a\x1a\xe0\xad\xa9\x56\x85\x21\xa4\x42\x8e\xd9\xf7\x41\xe0\xe7\x9a\x84\x28\x80\x01\x9c\x01\xb3\x4e\x98\x8a\x7c\xf7\xe6\x35\x24\xe8\xcd\x02\x54\x53\x22\x3a\x26\x60\x27\x3e\x49\x19\x68\xaf\x7f\x4b\x1d\xc2\x12\x39\x61\xde\x37\x53\xab\x16\xec\xa5\xb1\x85\x9a\x4f\x71\x17\x25\x38\xf0\x5a\x2a\x82\xa3\x4f\x98\xba\x07\xc1\xe5\x31\xd8\x2e\xf5\x92\xe5\x49\x35\x33\x41\x6b\xd6\xc6\xa4\xc7\xca\x3b\x0d\x2a\x2f\xff\x88\xa8\xf0\x73\xa7\x6c\x69\x18\x02\xaa\xae\xce\x4e\x85\x2d\x66\x50\x87\x1a\x17\xcc\xa0\xf5\x25\x1e\xf2\x2d\xfc\x8e\x3b\x26\x1b\xfc\xbd\x5a\x22\xb2\x73\x2a\xa1\x7d\x7d\xf1\xf7\xb8\x2f\x6b\x22\x2e\x5f\x60\x65\xbf\x80\xd0\x4c\x2e\x57\x74\x09\x40\x84\xe4\xd5\xce\x0d\x3e\x89\x17", b"\x3c\xed\x0e\xa5\xf7\xfd\x58\x86\x68\xa4\x1e\xfe\x0e\x90\x95\x4c\x09\x30\xaf\xb6\xbe\x18\xd9\x07\x52\x83\x1f\x68\x3c\xd9\x2a\x9c", b"\x9e\x46\xca\x12\x94\x17\x45\xea\x1a\x12\xc5\xa2\xd6\x09\x88\x4c\xb5\x79\x2f\x46\xaf\xaa\xcf\xf0\x72\x37\x13\x74\x00\x36\x68\x68", ); test::( b"\xc7\x37\xd5\xae\x24\x8a\x96\x06\x2d\x6a\xfa\x8d\xca\xcc\x03\x84\xc5\xfb\xfb\x9d\x8b\x60\x52\xb5\x24\x93\xc6\x0d\x3e\xdf\xc5\x24\xb5\x67\xb1\xf8\x96\xe7\x44\x7d\x0e\x24\x01\x94\x03\xed\x83\xe4\x88\x9c\x0c\x4d\xe5\x7c\x70\xfa\xda\x6c\x8b\x5a\x09\x90\x43\x50\xa4\x4d\xfa\xf7\x7d\x60\xaf\x62\xde\x3e\xdf\xd8\x76\x0d\x07\x74\x73\xf2\x6d\xf2\x83\x7c\xfc\x20\x15\xf2\x27\xdd\x7d\x35\x1a\x53\x50\xf1\x42\x8f\x26\x99\xfd\x3f\x51\x83\x26\xfe\xa8\xae\xf9\x8f\xc4\xea\x67\x31\x30\xc8\x07\x9f\xac\x38\x95\xfe\x85\x6c\x77\xf8", p, q, g, b"\x61\x12\xd3\xcd\x31\x91\xd1\x7d\xee\x77\x88\xf5\x68\x81\x5a\x0a\xab\x50\x00\x60\x02\xc9\xde\x2b\xd1\xa9\xbb\xa2\x45\xba\x02\x89\x4b\x02\xe9\x24\x75\x17\xac\xe6\x98\xae\x0a\x05\x17\x6b\x62\xb3\xa0\x25\xa5\x63\xdd\xa8\xde\xb7\xf2\xfc\x3e\x17\x7a\xe3\x47\x74\x48\xd3\x9a\xe4\xeb\xe7\xae\x8e\xc6\x5a\x44\x21\xf7\x54\x66\x7f\xd6\xd7\xc2\xeb\x93\xf1\xa1\x8d\x3d\x1a\x62\x35\x73\x6b\xcd\xb7\x47\x46\xf4\x6d\x88\xe6\x5d\xc0\x7c\x25\x91\xe1\xf9\x5d\xda\x5e\x5e\x20\xe1\x05\xee\x8b\x4d\xdc\xaa\xf3\x60\x21\x29\x0d\x6b\x64\x93\x67\x1d\x8a\xaf\xae\x14\x5d\x9b\x90\xbe\xc3\xcc\x60\x17\x9b\xb8\xfc\x30\xf1\x43\xc5\x75\xd5\xd8\x61\x62\x37\x21\xb6\x54\x7d\x3a\xaa\xad\xe4\x55\xf0\x5f\xef\x93\x18\xab\xcd\x29\xbd\x19\xb1\x2c\x35\xca\x75\x6d\xe5\x10\x8c\x18\x5e\xce\x4a\xa1\xbf\x1a\x8e\x38\x80\x97\x97\x06\x7b\xd1\xf5\x2b\x6c\xf2\xc4\x15\xe7\x3f\x92\x46\xbd\x5b\xfa\xdd\x7b\x9a\x9d\x2b\x53\x69\x70\x1e\x72\x14\x7e\x22\xda\x7e\x09\x2d\x9b\x57\x8f\xb0\xc0\x44\xa3\x6e\xff\xcb\xd7\x09\x25\x85\x00\xa0\x0c\xff\x23\x09\x62\xc4\x42\x25\x71\x2f\xc4\x3f\x9e\x80\x2b\xae\xad\x7f\x9c\xb4\x6a\xb4\x93\x1f\x66\x3c\x6e\x3e\xd4\x08\x2d\x59\x61\x0f\x01\x74\x1b\x5f\x24\x56\x6b\x01\xb3\xe3\x93\x3b\x29\xe0\x28\xc5\x4b\xd2\xfc\x75\xb5\x49\xfd\x05\xe6\x4c\x58\xc9\xae\x0b\xa4\x17\xa9\xe9\x85\x81\xdb\x77\xbe\x75\x23\x3a\x42\xf7\x71\xc9\x9f\x0a\x49\xb4\x94\xf0\x95\x52\x02\xb1\x9d\x6c\x74\x0e\x86\x60\x66\x10\x4e\x46\x3e\x65\xe4\xba\xd9\xa0\x81\x63\x6d\x05\x36\x74\x26\x15\x3f\x04\xbc\xb2\x71\x21\x86\xdc\xa6\x83\x43\x88\xe8\x25\x20\xd3\x4e\xfd\x8a\x89\x31\x3b\x2c\x7e\x60", b"\x00\x41\xb1\xc7\x56\xdd\x2e\x42\x71\x4f\x9e\xe7\xed\xce\x21\xea\x33\xef\x49\xdb\xf4\x52\xcc\xd9\x35\x7d\x5f\x45\xff\xab\x08\xf9", b"\x10\x2c\x6e\xaa\xd3\x8d\x39\xc0\xd0\x36\x33\x5a\xe1\x9d\xd0\xd7\x5e\x8d\xca\xba\xe5\x9b\x12\x0f\x69\xcb\xd2\xb5\xcf\x48\xab\xdb", ); test::( b"\xa6\xfc\x89\xa2\x23\x02\x2e\xe9\xe5\x08\x72\x52\x78\x58\x2f\x56\xdb\x9c\xd2\x4c\x0d\x75\xd0\x72\xa5\x28\xd0\xc6\x0f\x27\x17\x1e\xa3\x76\xe2\xdc\x28\xa9\xdc\x0b\x12\xe6\x68\xaf\x77\xdc\xbb\x38\x17\x37\xe1\xba\x7d\x9e\x80\xb9\xbe\xc8\x0b\xf9\x06\x1b\x8f\xa1\x0e\x43\xa7\x40\x3a\x29\x16\x24\xa6\x00\xdd\x4f\x5c\x2b\x50\xc5\x2d\x5c\x61\x55\xd5\x2b\xe5\xa3\x25\xf6\xad\x81\x3f\xb3\xec\xaf\x6d\x1f\x92\xe9\x8c\xc8\x7c\x26\xc6\x8c\xbd\x15\xd5\x48\xa3\x78\x2b\xff\xdd\x11\x16\xc7\xc1\x1f\xca\xbd\xe4\x02\x5f\xec\x51\x54", p, q, g, b"\x6c\x1d\x4d\x6b\x52\xaa\x4b\xff\x35\xf4\x30\x23\x30\x05\x27\x77\xf5\x1f\x6a\x08\x49\x16\x1f\x90\x6e\xf2\x17\xb0\x4b\x18\x54\x5c\xe5\x2a\xe4\xae\x42\x3a\xd1\xb4\xf8\xb1\x73\x5a\xe0\x0a\xb0\xc0\x44\xa5\x6f\x94\x5d\xa8\x4d\x1c\xdc\x26\xe0\x82\xd7\xac\xd7\x72\xdf\xab\xcd\x18\xb5\xe1\x3c\x05\xc2\x79\x1a\x8d\xc1\x61\x46\xe1\x51\x32\x3e\x4e\xf2\xce\x5d\x64\x38\x9f\x69\xd9\x34\x7a\xa2\xa5\xbd\x01\x14\xde\x0e\xec\xdf\x99\x0a\x44\x0d\x1b\xf9\x89\x0d\xd9\x5f\xd6\x40\xd2\xfb\x17\x89\xca\x6a\x6d\xbe\xe1\x83\x6a\xd7\xcb\x47\x37\x0b\x74\x56\xe4\x9f\x3b\xac\x03\x31\x0f\x8c\xbe\x61\xdd\x1c\xc0\x6d\x78\xc7\x6f\xec\x63\x97\xe6\x08\xa4\xca\xc4\xe2\xc3\x89\x83\xce\x5a\xa9\xdc\xba\x07\x4a\x20\x6f\xa6\x08\xdb\x35\xf2\xad\x3d\x63\xd9\x5b\x2c\xb7\xa0\x1c\x33\xd4\x98\x76\x7e\x8e\x68\x57\x8e\x4e\x99\x53\x8b\xf3\xd7\x03\xe6\x38\x63\xa2\x50\x91\x45\x2e\x73\xb9\x6a\x37\x16\xe9\xcc\x10\x9b\x66\x00\x8f\xa5\xca\xfd\xbf\x96\xb7\xfc\x10\xc3\xbb\x89\xd7\x9d\x45\xff\xef\xc0\x19\x08\xd2\x47\xef\x1d\x4f\xcb\x90\x3b\xf5\xe7\x91\x7a\xf8\x86\x18\xa5\x2a\x12\x00\x47\x98\x89\x05\x40\xa5\xa7\x5c\x65\xfb\xc0\x57\xd8\x60\xf4\xb6\x5d\x8b\x08\xb8\xd2\x15\xf0\x56\xd8\xe5\xe3\x8b\xf0\xb3\x19\xe2\x94\xdb\x24\x2a\x4f\xc7\x9b\x2e\x10\x6f\xec\xa2\x55\x6d\x14\x6f\x52\x03\xfd\x72\xad\xc7\x3a\x48\xe3\xa5\xaa\xdb\xb2\x93\xa2\xef\x58\x62\x65\x4c\x31\x53\x9a\xd8\x56\xa1\x6e\x57\x16\xc4\x37\xb4\x74\xf3\x33\x9c\xd8\x4f\x0a\xc9\x2b\xc2\xca\x6f\xac\x10\xc7\x51\xd0\x99\xa9\x04\x08\xde\xf6\x10\x6c\xa8\x38\x93\xd8\x7e\x32\x81\x8d\x76\x34\x53\x7a\x4e\xf6\x67\xce\x7f\x26\xa5\xcb", b"\x48\xbd\x01\x0c\x1a\xf7\x7b\x3c\x40\xdb\x50\x34\x97\x06\xd6\x4d\x16\xcb\xb7\x2d\xb5\x19\x43\xd3\x45\x15\x1d\xea\xcd\x4a\x41\x33", b"\x0f\x1c\x4b\xdb\x47\x58\xab\x3b\x55\x18\xd4\x60\x5b\x98\x64\x80\x57\x23\xd3\x3a\x36\x11\x6e\xa6\x50\x54\x6f\xee\xf1\x1c\x4a\x5e", ); test::( b"\x2a\xe4\xac\x7c\xe2\x9a\xe7\xd3\x24\x90\xd3\xa5\x4b\x71\x5d\xb3\xf4\x73\x06\xf8\x4b\x59\xb3\x3b\x21\x62\x2a\x18\xaa\x2c\x06\x0a\x44\x34\xad\xfa\x01\xff\x16\x86\xb5\xd1\xdd\x30\x35\x30\x8e\x92\xf7\xac\xc7\x6d\xea\x96\x9d\xee\xfb\x98\xc2\x97\x2b\x42\xa5\x96\xe1\x05\x5a\x5a\xa2\xc6\x61\xf0\xb7\x34\xba\x4f\x0b\x34\x1c\x77\x82\x7d\x88\x91\x5a\x5e\x89\xf9\x5a\x98\xd6\x3d\x77\x29\x87\x4f\xce\x4f\xf7\x5d\x7a\xdd\x74\xf4\x31\x3d\xff\x78\x4e\x41\x7b\x2e\xe1\xfc\xd2\x70\xc0\x38\xdb\xbb\xb9\x6a\x77\x68\x48\x4b\x88\x54", p, q, g, b"\x0a\x84\x29\x8f\x47\x68\xe9\xd7\xbf\x79\x6d\x06\x58\x5e\x8b\x75\xfb\xde\x65\x83\x98\xa2\x24\xa8\xac\x3a\x49\xfb\x91\x23\x5e\xaa\xa1\x83\xaa\x88\x27\xcc\x2a\xf7\x9e\xa3\x34\xdc\x8b\xe4\xcc\x72\x90\x29\xab\x5f\x81\x61\xf7\x18\xf7\xbf\xbe\x90\xad\x2a\x15\x98\x88\x52\x39\x82\xb6\xd4\x93\x2d\x81\x59\x49\x5b\xa8\x4d\x0a\xb3\x5d\x7e\x39\x5d\x14\xdb\xa9\x06\xa1\x67\x9a\xe3\xcb\xb7\x2c\x10\xed\x6f\xa1\x4d\xa4\xd6\x00\x77\xb0\xbf\xb5\x91\xa3\xde\xc6\x43\x99\x6c\x39\x63\x38\xa5\x1d\x44\x6b\xde\x62\x24\xae\xa1\x6a\xef\x41\xf3\x54\xe0\x9a\x9d\xce\x9f\x3a\x00\xcb\x44\x5a\x5c\x9c\xae\x4a\x6c\x3c\x19\x19\xc9\xe0\xc5\x30\x82\x17\x3d\x0e\xc0\x0a\xe5\xe1\x5a\xa7\x26\x07\x50\xb6\xa0\x3e\xf0\x5a\x51\x8a\x48\x61\x53\x40\xac\x20\x98\x40\x73\xce\xa5\xfc\x99\x0d\x48\x98\x58\x94\x9a\xaf\x6e\x9e\x34\x7b\x48\x02\xaf\xbe\x25\xa0\x66\x94\x72\xbd\x93\x16\xba\x2c\x23\xa6\x1c\xc3\xaa\xdf\x1b\x70\xd9\xfd\x97\x61\xbb\x03\x5f\x0c\xa5\x1e\xdb\x2b\x12\xfc\xfd\x65\x1c\xb9\x23\x63\xef\x48\x00\x5a\x26\x83\xfd\x2e\xd8\x66\x5d\x70\x58\x8f\xd9\xa1\xbe\x3a\xa5\x1c\x95\x8b\x81\xf1\x3e\x4a\xcf\xaf\x0d\x2a\x90\xaa\xae\xf2\x1b\x2c\xc9\xef\x2e\xd3\x7b\xce\x3c\x47\xc8\xbc\xbf\xc1\xfb\x9f\x94\xe4\x9b\xd2\xf1\xa3\x0a\x88\xdf\x22\x73\x5a\x0f\xdf\x0a\xc6\x02\x8a\x00\x8b\x06\x2c\x95\x60\xc4\x2a\x47\x69\x97\xdd\x21\x10\x06\x92\xef\x63\x96\xd5\xf3\xfb\x2c\x15\x53\x28\x25\x7e\x7b\x7d\x2b\xc0\x5f\xab\xd5\x4a\x81\xa2\x27\x29\x93\xd3\x42\xbe\xc8\x57\x7c\x64\xd5\x1b\x4c\xdb\xe3\x65\x4d\xae\x56\x8c\x4d\xa0\x18\x61\x8c\x30\x47\xae\xe0\x6b\xf2\x62\x1e\x05\x6b\x33\x5d\x04\x4b", b"\x6b\x7e\xd3\xa4\xc2\xa4\xf7\x85\x00\xc7\xe9\x47\xe6\x17\x5c\x5c\xa8\x57\xc9\xd6\x13\xe7\x79\x0b\x9b\xe0\xd1\x4e\xc8\x40\x3e\x5f", b"\xa1\x16\xf3\xde\x16\x62\x60\xd1\x10\xe2\x0e\x84\xeb\x8c\x97\xc3\xf0\x18\x17\x86\x08\xa2\xea\x3e\x3e\x2f\x5e\xd9\x1d\x43\xde\x11", ); test::( b"\x3e\xad\xe9\xa1\x0f\xb5\x9a\xf3\x6a\x54\x01\x70\x73\x7f\xbc\x53\x6e\x4c\x52\x30\xb8\xf6\xc4\xb2\x16\xed\xdd\x3e\xa9\x23\x42\x12\x3a\x33\x74\xd0\xc7\x51\xb2\x4b\x62\x7f\x9e\xad\x4d\xe2\x6e\x9a\x78\x97\xd9\xbc\x5d\x58\xa6\xa3\xac\x74\xcd\x45\x75\xb3\x28\x6e\xc1\x5f\x84\x53\x22\x4f\x37\x17\x9e\x51\xd9\xc4\xad\x8a\x60\xbf\x37\xd7\x1c\x62\xad\x7f\xc5\x3e\x5c\x7b\x12\xf4\xaa\xa2\xd4\x28\xe5\xc8\x89\xfd\x7f\x06\x2c\x91\x3d\x9b\x57\x4f\x4b\x5d\xb5\x16\xc9\x76\xba\xd5\x88\x30\x2f\x21\x9f\xd8\x3e\x18\xbe\xe8\xe6\x8e", p, q, g, b"\x08\xa1\x5b\x23\x84\xdf\xf4\xf3\x03\x3c\x87\x16\x86\x73\xc5\x67\x05\x98\x70\xc8\xe7\x8d\x2f\xdd\xc7\x54\x0a\xfd\xa8\x05\x8d\xf3\x84\xd3\x18\x2a\x42\x61\x54\x32\xff\x93\x77\x7d\x3f\xce\x49\xc1\x17\xc7\xbb\xe8\x21\xe6\x78\x9b\x51\x37\xdd\xf0\x84\x65\x60\x98\xaa\x7b\x05\x16\xfd\x30\xa4\x2c\x8c\x86\xd9\x4e\x6b\x26\x8b\x6e\x13\x01\x1d\x25\xeb\xa0\x18\xca\x40\xcf\x8a\x35\xe1\x96\x31\x35\xd5\xcd\x65\xa5\x7a\xca\x8b\x00\x79\x88\xa5\xea\x75\xad\xb4\xd0\x1c\xc0\xf0\x83\x8a\xb4\x2d\x3d\xf6\x43\xa7\xd2\x56\x1c\xfd\x1f\xde\xbe\x3a\xd8\x6a\xd0\x3d\xe3\x17\x02\x75\x33\xd5\x23\x35\x1b\xe5\x32\xbc\x73\x1a\xaf\x43\xb8\x64\x2a\x7d\xa8\x08\x73\xb8\x0d\xc6\x1b\x7a\x24\x9e\x58\x60\xfd\x1a\x3e\xae\x0f\x8f\x0c\xf2\x1e\x20\x5d\x6f\x40\x3c\xb0\xa1\x03\x29\x0c\x9e\x69\xd3\x8c\xbe\xd9\xe0\x92\xb6\x9f\x71\xf9\x17\x2b\x36\x76\xf2\x9a\x97\x13\x3f\xc3\xe1\x87\x46\xfe\xdc\x65\x3f\xbf\xb6\x2c\x5e\x0a\xfe\x89\xa8\xe1\xb8\x72\x4b\x1a\x33\x14\xc4\xca\xcc\x4b\xb8\xf3\x90\x43\x97\x01\xa6\x14\xae\x9b\xcd\xaf\xd4\x72\xb0\xab\x13\x16\x67\xdb\xbf\x1c\x79\x0f\x73\xab\x90\x46\xa5\x89\x32\x69\x1a\x93\x0b\x3c\x42\xe9\x08\xb4\xd1\xf4\x7e\xd6\xe2\xff\x18\xd6\xb7\x0b\xb1\x6d\x1a\xf7\x99\x3b\xdb\x2c\xa3\xcb\x35\x9a\x0b\x43\xf8\xdc\x84\x4d\xea\x6a\xeb\xaa\x34\xb8\xd2\xb6\xfc\x28\x84\x19\x78\x0f\xf9\x80\x90\x89\x26\xc4\x6c\x3b\x0e\x59\x5f\xa3\x08\xf4\xe8\x94\xec\xb6\x83\xc8\x04\xc9\x31\x40\xd9\x17\x69\x13\x2d\x37\xe9\x37\x91\xb9\xf8\x9d\x59\x5e\x69\x8f\x04\x9b\x3a\x95\x02\xab\xc4\x88\xbd\xd9\x47\x2f\x11\x31\xa7\x57\xf3\xd5\x4b\x14\x90\x67\x50\x7d\x1b\x04\xa9\x76", b"\x9e\x83\x3e\xc3\xde\xd9\xd8\x1e\xa7\x42\x2b\xda\xc7\x84\x22\x27\x4f\xa3\x53\x48\xe3\xfc\xe3\xbb\xc9\x3b\x3c\x10\xd7\x0b\x4f\x1e", b"\x65\x37\x56\x59\x4e\xac\x68\x1d\x48\xa2\x35\x8a\x0f\x82\xa1\x0f\xaa\x79\x29\xb0\x0f\xd9\xcd\x43\x94\xc3\x26\x79\x06\x0f\x96\xe3", ); test::( b"\x33\xde\xcf\xc1\xe0\x6b\x92\xed\x81\xcd\x30\xee\x37\x71\x47\x0b\x59\xe2\x2c\x15\x64\x64\x7f\x1a\xae\x85\x10\x72\x97\x15\xa8\xce\x94\x62\x4a\x11\x55\x4a\xc9\x09\xc9\x24\xae\xc8\x53\xdf\x64\x32\x75\x46\xdb\x85\xd3\xdf\x59\x79\x16\xa3\x93\x53\x38\x8a\x8b\x33\x63\x76\x52\x81\xa4\x35\x27\x01\xff\x1a\xf4\x3f\xba\x6d\x03\x66\x41\x27\xc1\x5d\xa7\xb8\x4c\x04\xd5\x40\x9c\x36\x40\x94\xdc\x62\xe3\x79\x83\xa8\xeb\x06\x68\x80\xde\x81\x36\x70\x14\x06\xe6\x72\x50\x67\x93\x00\xd2\xb9\x7d\x22\x83\x27\xc1\x51\x4c\x0b\xc1\xea", p, q, g, b"\x16\xea\x2e\x79\x5c\x63\x6c\x9d\x31\x21\x59\xa5\x79\xb8\xdf\x32\x9f\xfc\x28\xfe\xcc\x4a\x4c\x13\xb1\x6a\x29\x0b\xd1\x52\x5a\x53\xa9\x7d\x72\x31\x5b\xe2\x51\xd1\x1d\x23\xca\x78\xbb\xec\x45\xc0\xe2\x43\x27\x9b\x1e\xb6\xe2\x06\xa9\x27\x3c\x1e\x76\x6e\x21\x36\x48\xbd\xf9\x0c\x40\x47\x9d\xf4\x8a\xcf\xd9\xc2\x09\xa5\x23\xc8\xb4\xa9\x9a\x48\x1c\xa8\xdf\x47\x74\xb3\xbb\x29\xf8\x25\x26\x52\x0c\x2d\xc2\x8a\xb3\x14\xfe\x14\x14\x0f\x2b\xe1\x79\x2e\x1a\xc3\xc7\x59\xad\x44\xf7\x84\x5a\x20\x12\xf6\x4e\xca\xb0\xb1\xfe\xc0\xed\x16\x6b\xd1\x75\x95\x57\x04\xf6\x2d\x94\x01\x11\x1f\xfc\x04\xf8\x04\xe4\x8f\xe7\x74\xdf\xd3\x46\xbb\x41\xf4\xbe\xca\x2b\x34\xa8\x31\x34\xa3\x88\x4a\x01\x72\x9c\xce\x1a\xbc\x5b\x8d\x0d\xe3\xfe\x26\x54\xc3\x74\xde\xb2\x46\xd9\x6f\xfa\xff\xc7\xaa\x20\x55\xb7\x4e\x81\x9b\xbe\xec\x13\x7e\xb3\xca\xed\x1f\xc7\x1f\x12\x9c\x8e\xa8\xb7\x63\xf2\xf5\x7e\x88\xde\x08\x45\xf7\x6c\xeb\x18\x41\x55\x90\x19\x87\x2a\x5b\x5a\x96\x9c\x9c\xf3\x85\xd6\x57\x8b\x4f\x27\xb5\xb7\x6b\xe3\xef\x0a\x8f\xd3\xee\x47\xee\xd6\x95\xe1\x6f\x14\xe2\xa3\xb7\x91\xf2\xa0\x16\xd6\xb8\x6f\xf8\xec\x23\x43\xc6\xa5\xc8\x0a\xb6\x22\x4b\x65\x02\xeb\x37\x4c\x8f\xa6\x51\x0b\xce\x99\x0d\x70\xef\xdf\xa9\xa0\xb7\x02\x58\x55\x95\x18\x45\x14\xc7\x8f\x7e\x90\x5b\x6f\xd6\xc2\x37\x33\x3d\x56\x0f\xcc\x06\x30\x36\x37\xac\x0b\x2c\x7f\x7c\x4d\xa5\x59\xe3\x1f\x53\x1d\xf2\xe5\xd6\xc6\x51\x59\x17\x71\xd7\xea\x45\x75\x88\x8a\xfc\x40\x11\xfa\x11\x24\xfb\xd1\xa2\x82\xa4\x1d\x93\x39\x89\xef\xf9\x1a\x51\xcd\x39\xbc\xe7\xfb\x0d\x56\x9f\xed\xcc\x42\xde\x48\xbf\x18\xee\x75\x5f", b"\x6f\x77\xa5\x21\x69\xa2\xe8\x80\xa3\xb5\x5a\xa2\x78\xf6\x46\x30\x32\xdc\x5f\x81\xc3\x84\x68\x22\x4d\x55\x32\xf6\xa6\x01\xf2\xd9", b"\x96\xb7\x53\xef\xb4\xab\xbc\x8c\x17\x9d\x03\xcc\x2a\x1a\x0c\x12\x56\xe2\x3d\x1f\xa2\xe9\x7c\xfb\xf5\x5d\x2b\xb6\x98\x12\xd1\x00", ); test::( b"\x6a\xe5\xa6\xda\x79\x4f\x92\x3f\x6d\x80\x32\x54\x9b\x81\xd0\x4a\xe7\xaa\x35\xc2\x09\x9d\xff\xbd\xd8\x3b\xb9\x4d\xb5\x74\xfa\xf8\xf9\x5c\x71\x26\xdb\x2d\xb6\x0f\xed\x50\xf7\x40\xe8\x7c\x35\x95\x44\xdc\x2e\xbf\xbc\xaf\xb0\x94\xdd\xca\x69\xc9\x14\xd2\x7e\x5f\x3d\x10\xfa\x0c\xe3\x2d\x2a\x13\x55\xbc\xf6\x1a\x25\x74\xc7\x55\xd7\xc3\x24\xa2\xe0\xed\x6f\x77\x19\xba\x2f\x2c\x9f\x11\x3d\xf8\xd0\x40\x25\xf4\xab\xd2\xe1\xc4\xb7\xbc\x18\xd8\xac\xec\x9f\x6d\x8d\x79\x7c\xd7\xb0\x42\xf5\x03\x48\xee\xb3\xf7\xa2\x92\x2d\xa7", p, q, g, b"\x93\x10\x6f\xb0\x00\xc6\x7f\x11\x11\xc6\xfd\x3d\xa0\xf4\x4b\x4a\xe4\xcb\x36\x95\xde\x2e\x35\xb2\x41\xdf\xe8\x8d\x32\x69\xb8\xfd\xa2\x5b\xf3\x48\x00\x87\x25\xfd\x61\x3c\xd6\x1a\xa8\x26\xbd\x8f\x1a\xaa\xee\x22\xb4\xdc\x0a\x02\x84\x22\x90\xbb\x7d\xad\x91\xaf\x0b\x28\x54\xff\xab\x16\x93\x22\x08\xd2\x72\xf2\xc0\x81\xc1\x38\x89\xdb\x3e\xd0\xb2\x46\x46\xc6\x65\xaf\x9f\x4b\x72\x38\x98\xeb\x1a\xc0\x05\x3f\x2a\x0f\x4c\xf2\x2f\xd4\xe1\x29\x40\xb5\xb5\x22\x69\x48\x4e\xbb\x8a\xbc\x48\x4c\x06\xed\xdb\xd9\xb1\xa4\x26\x13\x2f\x40\x2e\xfd\xcd\x88\xab\x29\xe7\xe5\x10\x96\x1a\xf8\xec\x83\xa6\x42\xe3\x40\x15\x85\x8a\xc3\xf3\x21\x97\x60\x1a\x88\x8e\x16\xc7\x59\xc9\x4e\xc5\xb8\xde\xc0\xda\x30\x64\x3b\x9d\x9d\xb2\x57\x4a\xf2\x9e\x78\xf9\xd3\xf6\xa7\xb4\xc7\x6f\x45\xcd\x0b\x2a\xb5\xe8\x52\x49\x35\xb8\x86\x91\x8b\x5d\x9e\x9c\xcb\x5a\x68\x53\xe6\x2e\xfa\xd2\xdf\xf8\x3a\x85\x20\x98\x5e\xe8\x44\x2f\x2b\xdd\x1c\x5f\x9d\x48\x06\x2a\xde\x6b\x28\x8c\x8a\xd8\x2a\x41\xdb\x6c\x34\xe2\xde\xba\x54\x1a\xaa\xc3\xcd\x31\x56\xc9\x75\xef\xbb\xc7\x18\xeb\xd4\x96\x19\x96\xb3\xed\x1c\xc5\xc2\x98\x7a\xb7\x79\x05\x2c\xdb\xec\xf5\x1d\x17\x66\x1b\x49\x8e\x84\x37\x1f\xf8\x59\xf8\x99\x06\xf4\x26\xf5\x63\x57\x2f\x66\xc2\x79\xef\x3d\x03\x6a\x42\x77\x78\x46\x3f\x67\xf8\xd4\xde\x62\x3f\xb4\xb2\x80\x30\x07\x87\x1d\x0a\x34\x9e\xc2\x02\xa9\xaa\x1c\xff\xef\x70\x13\x7e\x00\x93\x03\x49\x72\x14\xad\xa7\x86\x35\x7a\x4d\x80\x46\x25\x5e\x40\xf8\x9e\xa5\x88\x00\x06\x34\xe7\xf0\xaa\xf6\x4d\x92\xaa\x21\xff\xf8\xfb\xe0\x78\xba\xa9\x69\x61\x69\x97\x38\xb2\x68\x23\x7e\xab\x60\x6c", b"\x86\x36\xd4\xd3\x20\x3a\xa0\x91\x2f\xbf\xc9\x38\xbe\x43\x70\x07\x7e\xa9\xc7\x51\x95\xcd\x2f\x67\xe6\xee\x42\x7c\xde\x53\x1c\x40", b"\x93\x02\x3d\x97\xef\xb4\x32\x7e\x9e\x88\x6e\x7b\x78\x37\x41\xe9\xd2\xc3\x97\xaf\x9c\x67\xb9\x1c\xdb\x8a\xa2\x7f\x83\xbb\x02\x5d", ); test::( b"\x86\xe0\x3b\xc3\xf4\xdd\xea\x6a\x93\x88\x8e\xe3\x89\xb1\x5e\xb6\x90\x82\x2c\x71\xf9\xb8\x5e\xfa\xaf\xfc\x52\xe4\x86\xb1\x14\x4a\xd7\xfc\xff\x3f\x53\xbf\x97\xda\x24\x81\xe8\x5e\x09\x83\xee\x1d\x52\x79\xe2\x7a\x36\x4d\x0e\x69\x0f\x58\x7a\x31\x53\x5f\xb9\x4e\xec\xe7\x47\xf8\xb6\x05\x72\x4a\xdf\xb2\x58\xc9\x98\x3c\x90\x02\xe0\xc1\x1b\x79\x76\x62\x76\x90\xd5\x82\x81\x30\x5e\xa9\x30\x8d\xb7\x4c\x49\x1a\x28\x19\x2e\x35\x4b\x60\x0e\x83\x76\x81\x1c\xce\xfb\x75\x1b\xb1\x0c\x7d\x97\xb4\x2f\xfe\x30\x4b\xee\x97\xec\xaf", p, q, g, b"\x23\xed\x54\x45\x39\x1a\x5b\xb9\x4e\x00\xc7\x6e\xc8\x0d\x83\x72\x8d\x5d\x46\x1b\xe4\x25\xda\x79\xf9\x21\xbc\xa2\x7d\x62\x5c\xb4\x2b\x32\x39\x71\x02\x2a\xd4\xc3\xf0\x5b\xca\x10\x99\x10\xfd\x06\xba\x39\xe9\x5b\xeb\xe7\x94\xed\x10\x8d\x2e\xad\x29\x7a\xd7\x94\xf9\x9c\x32\xc2\x19\xe6\x5f\xb7\x26\x53\x27\x15\xb1\xbc\x20\x75\xdd\x4b\x69\x49\x29\x77\x12\xf9\x1d\x5b\xa0\x61\x19\x6f\xb2\x57\x54\xc3\x43\x77\xbb\xbe\x6a\x37\xf6\x17\x87\xea\x84\x4d\x35\x92\x85\xc7\x8e\x73\x3e\xb6\x5f\x66\x5a\x6b\x15\x7f\x83\x2b\x56\x38\xd7\x4e\xbe\x1d\x5d\xce\x66\xd5\x28\x92\x5e\x44\xee\xf1\x3b\xf2\x3f\x80\x7d\xa3\x5f\x34\xd1\x69\xa6\x87\x75\x82\x29\xb9\x9a\x31\x3a\xce\xcf\xb2\x0b\x14\x2b\x53\x49\x26\xd5\x9a\xaa\x76\x43\xa7\x90\x30\xe9\x33\x5e\xf2\x8a\xbe\xdd\xac\x8a\xc9\x47\x1d\xa4\x99\x7e\x33\xf3\xe4\x91\xdb\x86\x68\xa2\xc3\x92\x0a\x3b\x3a\x37\x22\x51\x79\x36\x1d\x55\x39\xbe\xb3\x3f\x32\x52\x24\x42\x67\x46\x5e\x48\xfa\xf5\x75\xcd\xac\x93\x81\x33\xef\xfe\x9d\x1f\x69\xf1\x9f\x1b\x44\xb2\x45\xa4\x47\xb1\xfc\x2b\x85\x92\x44\xe2\xe3\x90\x53\x59\x5c\xf7\x97\x89\x33\xc3\xd4\x68\xc6\x5c\x23\x16\x63\x07\x0a\xea\xf2\xec\x23\x13\x8d\x16\x60\x08\x1a\x55\xbd\xc3\xdd\x3f\x24\x46\x17\x6b\x1d\x6d\x99\x77\xa1\x4e\xbd\x0e\xd4\xd8\xdf\xcd\xfc\x4a\x43\x31\x18\x40\x1f\x2c\x26\x32\x09\x5c\xe7\xae\x62\x00\xc7\x4b\xda\x5d\x2f\xd3\x85\x45\x24\xc3\x08\x17\x41\x97\x5a\x07\x6a\x1b\x4f\x93\x3e\xc3\x2a\x2b\xac\x91\x71\xbe\xbf\xdf\x3b\x35\x5e\xdd\xb1\xf4\x55\xec\xaf\x73\x39\x6e\x85\xfb\x04\x79\x75\x58\xba\x4f\x2b\xbc\x49\xd9\xf2\x32\x9a\x23\xb3\x93\x30\x1a\xe0\xdb\x92", b"\x68\xef\xaa\x05\xeb\x90\xc4\x8c\x6a\x7a\x45\x33\x7c\x29\x17\x5f\x8e\xe5\xb1\x9b\x53\xdb\x4e\xbd\x83\xa0\x2f\x53\xc5\xb2\x10\x4b", b"\x14\x5f\x13\xf1\xae\x36\x75\xc5\x21\xb3\x34\xce\x6a\x49\xfc\x6f\x50\x2e\x3a\xc6\xb2\xb5\x14\x3b\xe0\x64\x1d\x0d\x57\xb3\xc7\x22", ); test::( b"\x1d\x09\x54\xee\x0d\xe1\xe9\xce\xee\x05\x32\x59\x7e\xe4\x34\xc7\x3f\xe4\xf6\x66\x35\xf7\xe7\x2d\x38\xb6\x77\x63\xc6\x68\x17\xf5\x3c\xf3\x6c\xa0\xf6\x13\xe0\x18\x96\xce\xbc\x9f\x77\xa7\x72\x60\x7f\x4a\xee\xdd\x38\x56\xc7\x3f\xc2\xf1\x91\x00\xaa\x7b\x54\x0c\xcd\x05\x7f\x26\xcd\x95\x64\xd6\x73\x22\x8c\x68\x08\x8e\x5f\x1a\xbf\x12\x54\xa9\x7e\xd1\x45\x3e\xe5\x58\xe0\x62\x71\x1c\xeb\x76\x43\xb3\x45\xad\x33\xb6\x49\xaf\xfb\xe8\xa6\x20\x67\xf9\xd8\x4e\xd4\xc8\x50\x6f\xcf\xf5\x78\xd2\xeb\xa5\x96\xa2\x05\x26\x73\x87", p, q, g, b"\x2f\x0d\x89\xac\x78\xa6\x1f\xb7\x4f\x81\x14\x2b\x17\x76\x66\x56\xd1\x78\x89\x40\x07\x78\x08\xe3\xd8\x80\xce\x10\xec\x60\xe2\xbb\xb1\x58\xd5\x4e\x02\x0d\xbc\x5f\x67\x86\xc0\xb4\x3c\xca\x2c\xb0\x02\xc8\xce\x13\xb2\x91\xb2\x50\xf3\x99\xe8\xe0\x2f\x19\x59\x26\x97\x8f\x6c\x5b\x00\x7d\x4f\x0a\x66\x04\x89\x96\xa9\x93\x2a\x91\x8b\x23\x63\xc4\x00\x8f\x54\x7a\xdc\xaa\x7d\x12\x69\x4b\xae\xe4\xfb\xca\x34\xbc\x6d\x7e\x29\xc5\x04\x9c\xda\x13\x69\x8f\xcc\xe6\x1b\xd3\xb3\xdb\x05\xd2\x15\x81\x32\xdd\x38\x0c\xf6\x53\xcc\xcd\xf2\x79\xaa\x16\x41\x34\xbf\xbd\xdd\x7e\xa3\x47\x76\x00\x41\xf9\x2c\x3a\x4c\xfd\xe0\x09\x2d\x5c\xb9\x6b\xb8\xc2\x4e\x98\x25\x94\x75\x59\x6f\x33\x77\xd5\x9f\x11\x66\x1b\xcc\x0d\x47\xe8\x3c\xb3\x1a\xae\x9d\xcb\x4a\x6f\x25\x61\x9a\x29\x05\x4b\x62\xaa\x8b\x42\x1e\x52\x9e\x61\xac\x95\xa0\xde\x01\xc5\x0b\x09\xe1\x19\x51\x6c\x2c\x5b\x35\x63\xd4\x7e\xed\x67\x9a\x1c\xf8\x0b\xa7\x0a\x50\x25\x4d\x85\x1a\x13\xa7\x78\xe1\xa0\x8d\xa8\x66\x7e\x46\xe3\x59\x79\xc1\x5d\xf4\x5c\xf7\x88\x6d\xde\x5a\xf9\xd7\x44\x62\x4b\x98\x1a\xcd\x25\x2e\xc5\xba\x46\x87\x0b\x8e\xe4\xb3\x2b\x1b\xe1\xb9\x44\x80\x2d\x91\xd8\x14\x8d\x38\xf5\x43\x15\xa7\xad\x4e\x38\x07\x9e\xa2\xbe\xd9\xdf\x8f\xa5\x94\x14\xdd\xde\xd3\xa1\xd2\x30\x8b\xa7\x69\xae\x2a\x65\x2f\x10\xc2\xd9\x69\x17\xed\xfe\x58\x74\x88\x5f\x3c\x99\xd6\x91\x2f\x69\xae\x3f\xc3\xb4\xde\x82\xde\xcc\x30\xed\xc9\x31\x4f\x7e\xc9\xe5\x67\xb7\xe0\x0d\xe2\x19\x59\x48\x6a\x88\x7d\x74\xa5\xb2\x18\x02\x93\xdf\x5d\xbe\xae\x1e\x35\xa6\xe9\x37\xb2\x50\x6d\x20\x50\x92\xcc\x4c\x35\x95\xdb\x92\xfc\x25\x5a\xf5", b"\xa6\x72\x10\x34\x1a\x04\xcd\x3a\x4b\x63\xeb\xc7\xe6\x20\x8f\x37\xe4\x87\xa8\xc6\xf1\x13\x4c\xd2\x60\x1b\x84\x4d\x69\x03\x20\x3f", b"\x6b\x97\x2c\x62\x2c\xab\x48\xd8\x5a\x2d\xde\x35\x5f\x94\x7a\x81\x51\xa1\x7a\x0a\xcf\x06\xb7\xf3\x65\x9f\x86\x8d\x5e\xce\x92\xd9", ); test::( b"\x14\xf5\x66\xc5\xfe\x44\xaa\xad\x6e\x8b\x3c\x62\x75\x70\xaa\xbd\xd4\xef\xb7\xfc\xfa\x1a\xb1\xbb\x74\xf2\xc6\xd8\x79\x5e\x88\x23\x3d\xac\x4e\x7d\x24\x0a\xbd\x5e\x9b\xbd\x8e\x1f\xb0\x3a\x3b\xf5\x0c\x0c\xa9\x2c\x9a\xef\x18\x94\xf2\xae\xd6\x00\xfc\x58\x73\xd2\x34\x51\xd3\x20\x4d\x75\xab\x95\x81\xcb\xcf\x82\xae\x8c\x0d\xf0\xdf\xbd\x3a\x1f\x14\x9f\x70\x66\x08\x65\x72\x6c\xdc\x73\xc0\x15\xd5\xdd\xbf\x75\x13\xee\xdc\xd1\xef\x17\x57\x8d\x27\x19\xfe\xa1\xe5\xba\x39\xae\xf3\xfa\x6f\x00\x84\x6f\x0f\xb8\xd9\xa1\xa4\x36", p, q, g, b"\xa3\x6a\x33\x39\x00\x03\x5d\x34\x53\x13\x9b\x28\x35\x6b\xf0\x12\x4e\x57\x1f\x55\xa5\xe4\x25\x9b\x8b\x2e\xe1\x45\x7c\xc3\x58\x80\x56\xd6\xc6\xa6\x45\xd4\x22\xca\xc7\x24\x74\xc5\x90\x1d\x0a\x7f\x41\x0d\xf7\xf9\xb4\xe2\x2f\x86\x84\x86\x7d\x93\x32\xe2\xd4\x26\x6a\x6e\x59\x5e\x51\x5b\xec\xff\x7f\xb9\x4d\x21\xa8\xa9\xad\x72\x11\x57\x2e\x44\xce\x84\x48\x31\x7b\x34\xc3\xc0\xb8\x9b\x30\x97\xab\x2e\xc1\x34\xec\x7c\x17\x8c\x22\x78\x30\x9c\xf9\x15\x2b\x22\x3b\xb9\x37\xe6\x86\x82\xf1\xf6\x80\xc1\x7e\xe5\x9e\xcd\x06\x98\xa0\x5c\x24\xc1\x35\xd2\xb0\x23\x8e\x71\xf8\x07\xe0\x79\xf1\x75\xe1\x16\x71\x30\x8f\x5b\xd9\xe5\xa6\x97\x12\xa9\xc5\x08\xb3\xb5\x09\x25\xd1\x27\x6d\x55\x2b\xda\x51\xce\xf3\xbd\x0f\xbd\x00\xa9\xd2\xdd\xdf\x0e\x5e\xcb\x6b\x32\x83\x78\xea\x63\x7b\x49\x38\x46\x48\x0e\xd7\x5a\x31\x52\xd9\xe6\xa4\x88\x4e\xeb\xad\x12\xb0\x7c\xad\x8d\x10\x1b\x3d\x00\x1b\xc9\x9f\xb1\xee\xe4\xe9\x8f\xd6\xfc\x92\x0c\xb5\x76\x5e\xc2\x4e\x62\xab\xd3\x2f\x97\x5a\x47\xd5\x0f\x61\x55\x3e\x1c\x14\x77\x51\x93\xb5\x3b\x05\xb7\xd0\x20\x24\xaa\xce\x81\x8a\xb6\x59\xd7\x17\xd1\x1d\xea\xcc\x98\x77\xb8\x18\xa5\x16\x89\xd2\x39\xb6\x0f\x7f\x9e\xd4\xca\xf7\x32\x5a\xc0\xb3\x1b\x31\x6c\x03\x65\x99\xea\x66\x95\x9d\x52\x5f\xd1\x6f\x5c\x1a\x2a\x80\x9f\x28\x66\xee\x9e\x99\xf6\xd8\xa3\xc4\x2b\x58\xd3\x3d\x0e\x5d\x38\x05\x5c\x55\xc7\xbc\xcd\xef\x31\x0c\xcd\x34\x26\x20\x7d\xbb\xc6\x0f\xaf\x9f\x2a\x21\x9a\xb3\x67\xce\x84\x62\x3b\x81\x10\x48\x22\xe2\xc7\x7e\xc5\xb1\x33\xce\x70\x50\xca\xed\x09\x09\x46\xc1\xf1\x35\x5d\x87\x8a\x13\x17\xde\x69\x4e\x68\x6c\x62\xff\xdf", b"\x12\xb4\x0b\xd1\xc8\x66\xce\x38\xe7\xda\x07\x64\xd8\x07\xae\x82\x51\x2b\x33\xb5\x1d\xc9\x08\xe5\xa5\xb3\xd7\xc1\x6f\x0d\x08\xa5", b"\x5c\xac\xce\xe2\xbc\x85\xe2\x8d\x50\x6a\x9b\xc6\xd2\x60\xdb\xd0\x82\x05\xb7\x5d\x20\x69\x0e\x26\xaa\x6b\xed\x30\xd7\x32\x70\x99", ); test::( b"\x60\xc2\x9d\x99\x75\x3d\x08\x47\xbb\x52\xe9\x06\xc8\x62\xa1\xb0\x62\x84\x96\x41\x6c\x14\xdf\x5d\xcf\xbb\x5e\x28\x04\xf5\x02\xcb\x0a\x2d\x16\x3e\x9b\xc2\xd8\x41\x22\xc0\xb3\xf5\xd0\x60\x9b\x82\xac\x16\xaa\x15\xef\xd5\x5f\x55\xc8\xca\xa3\xd1\x11\x4a\xc0\xcb\x83\xe5\xff\x3d\xb1\x2a\x24\xb8\x9a\xca\x5f\x05\x14\xd2\xce\xb0\x9b\x14\xfa\x91\x60\x00\xc0\xf4\xde\xb0\x16\xdb\x75\x5e\x88\xb3\x26\x17\x21\x44\xe4\xf1\xa7\x05\xa8\x00\x55\x9b\x3d\xa3\xc2\x7a\xf5\x5c\xb3\x2b\x11\x47\x46\x0c\x31\x18\x6d\x99\xdc\x1c\xf2\xe5", p, q, g, b"\xa3\x73\x97\xe6\xea\xfb\xdc\xf1\xe0\x15\x8f\x1f\x4e\xa1\xcb\x3a\x1e\xbd\x73\x9c\x85\x59\xa5\x00\xde\xf3\xb7\x55\x17\x99\xd6\x52\xb3\x27\x10\x1c\xfe\xa0\xb8\x70\x16\xdb\x59\x15\x22\xb9\xb3\x4e\xd2\x67\x13\x2c\x52\x55\xe7\x76\x53\xc4\xeb\x93\x5c\xe0\xc8\x22\xb4\xb1\x0a\x5e\x8f\x3c\xce\x39\xad\x1b\x96\x06\xde\x5b\xe2\xb2\xd3\x6e\x1c\x54\x11\xf0\x6a\xba\x04\x61\xea\x8d\xc4\x8b\x64\x9f\x10\x8e\xba\x88\xde\xf4\x4d\xaa\x2a\x5c\x65\x3d\xcc\xf1\xd8\xae\x29\x20\x5d\xd5\xc3\x40\xe3\x4b\x7b\xd6\x98\xec\xcd\xcd\x34\x5b\xd4\xaa\x5e\xee\x3c\x08\xb9\x16\x2c\xa1\x80\x48\x72\xde\x3c\x57\x5d\x57\x2f\x34\xdd\x48\xb4\x1f\x82\x35\xd0\xf5\x11\xc8\xdc\x65\xda\xeb\x07\x09\x5c\x3b\x5d\xbd\x3a\x07\x6f\x8e\xb2\x44\x12\xf3\x62\x1f\x49\x21\x26\x73\x7a\x9d\x73\x01\x4d\xef\xa5\xf5\xd5\x7b\xdc\x6f\xaf\x53\x14\x2e\xb1\x91\x60\x6f\x2f\xd3\xdc\x03\x5f\x4b\x8a\xe8\x4d\x65\x5c\xb6\xda\xaa\xf8\x89\x00\x5c\x3c\x33\x4f\xfd\x7e\x3b\x04\x98\xfa\xe2\xa6\xf8\xdc\x1b\xc6\x2f\x37\x04\xc8\xf8\xc0\x05\xc8\x01\x9e\x0b\xf4\x5b\x7a\xa8\xe0\x80\x3b\x93\xa9\x92\x67\x5e\x38\x1f\x61\xa8\x98\x58\x29\x50\xb9\xce\x40\xe7\xcd\xb0\x30\x0f\x4b\x26\xf9\xb4\x44\x84\xe8\x9c\x92\x34\x17\x9b\x60\xa3\x72\xfe\x94\x76\xf8\x4d\xe0\xed\x4b\x93\x49\x72\x16\xfb\x96\xba\xe4\x32\x97\xdc\xdc\x84\x96\xc6\x34\x10\x0c\xf0\x66\x40\x2c\x7d\x29\x0a\x7c\xd2\x8c\xbc\xf8\xb0\x8a\xd4\xc1\x36\xdb\x2f\xe9\x92\xff\xa0\x45\xbf\x8c\xb2\x49\x23\x4f\x29\xa6\x74\x76\x2a\x56\xd2\x08\x97\xea\x55\x38\xc6\x74\xa1\x43\x53\xdb\x64\xba\x60\xfe\x40\x52\xa0\x52\x8e\xb0\xb2\x58\x87\xe3\xc5\xea\x69\xb4\x1f\x68\xb3", b"\x72\xcf\x0e\x18\xe4\xbc\x37\x49\x64\x7c\xdf\xa6\x2d\xcb\xd2\x51\x3c\x7c\x2b\x1d\x39\x7c\x1f\xcb\xc7\xf6\xa4\x25\xeb\xb8\x97\xce", b"\x7b\x7d\x0a\x9e\x93\x34\x09\x41\xbb\x55\xf6\xaf\xa6\xcd\x63\xf7\x36\x49\x63\x67\x10\x08\xed\xe4\x57\xd0\x5b\x65\x45\xfa\xb1\xf1", ); test::( b"\xb3\xde\xa6\x2a\x20\xa9\xed\x9d\xa9\x90\x46\x5b\xeb\xe1\x8a\xa7\x1f\x08\xf9\x3f\xba\xee\x4f\xe5\xd5\x81\xff\xaa\x6f\xd5\x5c\xbe\x27\x2a\x11\x5d\x7f\xa1\x8f\xb9\xcf\x56\x62\xf5\x95\xb7\xcb\x9b\xdb\x97\xa8\x1b\xdc\x07\x8e\xe3\xbd\xce\xb2\xc0\x37\x22\x61\x01\x34\xc3\xbb\xfd\x7a\x6f\x8b\x79\xec\xc6\xa9\xa7\x70\x92\x65\x68\x7f\x9c\x23\x6f\xc6\x8b\x02\x20\x3b\xa6\x66\xe9\xec\xed\x51\x61\xde\x90\xc1\x10\xee\x7a\xf9\xbf\x54\xd8\x4a\x22\x18\x1f\x17\xb4\x32\x93\x48\xbd\xee\xfb\xb3\x24\x96\x2e\x63\x56\x9f\x07\xc2\x85", p, q, g, b"\x45\x01\x33\x18\xb9\x41\xa7\x10\xb8\xab\x10\x10\xd8\x18\xc3\x10\x36\x34\x65\x8d\x2e\x3e\x2f\x41\x31\x65\x86\x08\x05\xe0\x8d\x5c\x1e\x80\xad\xd9\x96\x9a\x3d\x3a\x0d\x23\x43\x2c\x8a\x48\xcc\xe8\x36\xb2\x4a\x41\x08\x92\x09\x9b\xbf\x53\xcc\x5a\x84\xa9\x5e\x1e\xb3\xb6\x82\xd2\x75\x4e\x72\x1e\xfc\x86\xd3\xf4\x24\x8b\xaa\x33\x7d\x6f\x6e\x5d\xac\x47\x59\xb2\x96\x16\x59\x18\xa7\x1b\x31\xce\xd2\x5b\xf1\xb0\x5d\x67\x5b\xfa\x22\x29\x80\x60\x8f\xda\x8f\x9d\x0e\xba\x9a\xa0\x84\x75\x51\x2d\x04\xc6\x12\x13\x3c\x88\x25\x3b\xf3\xe2\x7e\x9f\xfe\x3a\x85\x70\xbe\x20\x4f\x54\xbf\x8f\xf1\xc7\xfe\x42\xae\xce\x83\x20\x50\xaa\xbd\xd9\x41\x57\x64\xb8\xc8\x72\x69\x7f\x9c\x8e\x78\xe2\xf5\x6b\xd2\x35\xeb\xbb\xb4\xb9\xcf\x8f\x05\x4b\x60\x29\x29\x63\x76\x45\x36\xd6\xfd\x4c\x6c\xfa\xa1\xba\xea\x53\x54\x6c\x6f\xfb\x56\xa0\x4f\xbf\xae\xe0\x01\x22\x82\x80\xae\xc4\x0e\x66\xd9\xdc\x19\x2f\x9b\xa7\x43\xbd\x3f\xfc\x0e\xaf\x27\x7b\x6b\xa3\xd3\x3c\x36\x97\x02\x48\x92\xb0\xb3\x54\x19\x53\x48\x73\xfb\x7a\x3d\x59\x4d\xd6\xae\x07\x51\xa2\xfa\x43\x0b\xa4\x62\x37\xf4\xa5\x5e\x4a\x67\x80\x72\xc6\x51\xfe\x6a\xd3\x14\xa0\x10\xfd\xfe\x8f\x8b\x53\x42\xbd\xab\xe9\xae\x59\x10\xc6\xf4\x4a\x51\xf4\x75\x24\xa6\xfe\x82\x16\x83\x0c\xca\xed\xed\x26\xce\x1f\x13\xf7\xf2\x16\xe0\xb7\x80\x9e\x92\x72\x56\x3c\xab\x33\x52\xb8\xed\x76\x66\x50\x22\x7b\xfe\x16\xe9\x81\xb5\x05\x60\x9c\x41\xf0\x3d\xca\x98\xe2\x19\xd0\x2a\xa7\xd9\x19\x21\xed\xb3\xa8\x92\x29\xe7\x8c\x30\x16\x1c\xc1\x39\x73\xb3\x5d\xe3\xc8\x77\x79\x37\x8b\x8d\x60\x7a\x19\x32\x04\x05\x66\x13\x12\x43\x2d\xd8\xd0\x7a\xf2", b"\x3e\xc6\x77\xe9\x1c\x63\xe6\x5a\xaa\x17\x4a\xee\x27\x91\xdc\x40\x92\x44\xcb\x80\xc0\x22\x09\x91\xdc\xb4\x97\x39\x7a\x3c\x5e\x9b", b"\x1d\xe0\xec\x46\x6b\x2a\xd4\xed\x1a\xdc\xe3\xbc\x38\xee\x52\x18\x03\xdc\x87\x08\x5e\x2f\xbf\xc5\x61\xd6\x38\x44\xc1\xa9\xa2\xe6", ); // [mod = L=3072, N=256, SHA-512] let p = b"\xc1\xd0\xa6\xd0\xb5\xed\x61\x5d\xee\x76\xac\x5a\x60\xdd\x35\xec\xb0\x00\xa2\x02\x06\x30\x18\xb1\xba\x0a\x06\xfe\x7a\x00\xf7\x65\xdb\x1c\x59\xa6\x80\xce\xcf\xe3\xad\x41\x47\x5b\xad\xb5\xad\x50\xb6\x14\x7e\x25\x96\xb8\x8d\x34\x65\x60\x52\xac\xa7\x94\x86\xea\x6f\x6e\xc9\x0b\x23\xe3\x63\xf3\xab\x8c\xdc\x8b\x93\xb6\x2a\x07\x0e\x02\x68\x8e\xa8\x77\x84\x3a\x46\x85\xc2\xba\x6d\xb1\x11\xe9\xad\xdb\xd7\xca\x4b\xce\x65\xbb\x10\xc9\xce\xb6\x9b\xf8\x06\xe2\xeb\xd7\xe5\x4e\xde\xb7\xf9\x96\xa6\x5c\x90\x7b\x50\xef\xdf\x8e\x57\x5b\xae\x46\x2a\x21\x9c\x30\x2f\xef\x2a\xe8\x1d\x73\xce\xe7\x52\x74\x62\x5b\x5f\xc2\x9c\x6d\x60\xc0\x57\xed\x9e\x7b\x0d\x46\xad\x2f\x57\xfe\x01\xf8\x23\x23\x0f\x31\x42\x27\x22\x31\x9c\xe0\xab\xf1\xf1\x41\xf3\x26\xc0\x0f\xbc\x2b\xe4\xcd\xb8\x94\x4b\x6f\xd0\x50\xbd\x30\x0b\xdb\x1c\x5f\x4d\xa7\x25\x37\xe5\x53\xe0\x1d\x51\x23\x9c\x4d\x46\x18\x60\xf1\xfb\x4f\xd8\xfa\x79\xf5\xd5\x26\x3f\xf6\x2f\xed\x70\x08\xe2\xe0\xa2\xd3\x6b\xf7\xb9\x06\x2d\x0d\x75\xdb\x22\x6c\x34\x64\xb6\x7b\xa2\x41\x01\xb0\x85\xf2\xc6\x70\xc0\xf8\x7a\xe5\x30\xd9\x8e\xe6\x0c\x54\x72\xf4\xaa\x15\xfb\x25\x04\x1e\x19\x10\x63\x54\xda\x06\xbc\x2b\x1d\x32\x2d\x40\xed\x97\xb2\x1f\xd1\xcd\xad\x30\x25\xc6\x9d\xa6\xce\x9c\x7d\xdf\x3d\xcf\x1e\xa4\xd5\x65\x77\xbf\xde\xc2\x30\x71\xc1\xf0\x5e\xe4\x07\x7b\x53\x91\xe9\xa4\x04\xea\xff\xe1\x2d\x1e\xa6\x2d\x06\xac\xd6\xbf\x19\xe9\x1a\x15\x8d\x20\x66\xb4\xcd\x20\xe4\xc4\xe5\x2f\xfb\x1d\x52\x04\xcd\x02\x2b\xc7\x10\x8f\x2c\x79\x9f\xb4\x68\x86\x6e\xf1\xcb\x09\xbc\xe0\x9d\xfd\x49\xe4\x74\x0f\xf8\x14\x04\x97\xbe\x61"; let q = b"\xbf\x65\x44\x1c\x98\x7b\x77\x37\x38\x5e\xad\xec\x15\x8d\xd0\x16\x14\xda\x6f\x15\x38\x62\x48\xe5\x9f\x3c\xdd\xbe\xfc\x8e\x9d\xd1"; let g = b"\xc0\x2a\xc8\x53\x75\xfa\xb8\x0b\xa2\xa7\x84\xb9\x4e\x4d\x14\x5b\x3b\xe0\xf9\x20\x90\xeb\xa1\x7b\xd1\x23\x58\xcf\x3e\x03\xf4\x37\x95\x84\xf8\x74\x22\x52\xf7\x6b\x1e\xde\x3f\xc3\x72\x81\x42\x0e\x74\xa9\x63\xe4\xc0\x88\x79\x6f\xf2\xba\xb8\xdb\x6e\x9a\x45\x30\xfc\x67\xd5\x1f\x88\xb9\x05\xab\x43\x99\x5a\xab\x46\x36\x4c\xb4\x0c\x12\x56\xf0\x46\x6f\x3d\xbc\xe3\x62\x03\xef\x22\x8b\x35\xe9\x02\x47\xe9\x5e\x51\x15\xe8\x31\xb1\x26\xb6\x28\xee\x98\x4f\x34\x99\x11\xd3\x0f\xfb\x9d\x61\x3b\x50\xa8\x4d\xfa\x1f\x04\x2b\xa5\x36\xb8\x2d\x51\x01\xe7\x11\xc6\x29\xf9\xf2\x09\x6d\xc8\x34\xde\xec\x63\xb7\x0f\x2a\x23\x15\xa6\xd2\x73\x23\xb9\x95\xaa\x20\xd3\xd0\x73\x70\x75\x18\x6f\x50\x49\xaf\x6f\x51\x2a\x0c\x38\xa9\xda\x06\x81\x7f\x4b\x61\x9b\x94\x52\x0e\xdf\xac\x85\xc4\xa6\xe2\xe1\x86\x22\x5c\x95\xa0\x4e\xc3\xc3\x42\x2b\x8d\xeb\x28\x4e\x98\xd2\x4b\x31\x46\x58\x02\x00\x8a\x09\x7c\x25\x96\x9e\x82\x6c\x2b\xaa\x59\xd2\xcb\xa3\x3d\x6c\x1d\x9f\x39\x62\x33\x0c\x1f\xcd\xa7\xcf\xb1\x85\x08\xfe\xa7\xd0\x55\x5e\x3a\x16\x9d\xae\xd3\x53\xf3\xee\x6f\x4b\xb3\x02\x44\x31\x91\x61\xdf\xf6\x43\x8a\x37\xca\x79\x3b\x24\xbb\xb1\xb1\xbc\x21\x94\xfc\x6e\x6e\xf6\x02\x78\x15\x78\x99\xcb\x03\xc5\xdd\x6f\xc9\x1a\x83\x6e\xb2\x0a\x25\xc0\x99\x45\x64\x3d\x95\xf7\xbd\x50\xd2\x06\x68\x4d\x6f\xfc\x14\xd1\x6d\x82\xd5\xf7\x81\x22\x5b\xff\x90\x83\x92\xa5\x79\x3b\x80\x3f\x9b\x70\xb4\xdf\xcb\x39\x4f\x9e\xd8\x1c\x18\xe3\x91\xa0\x9e\xb3\xf9\x3a\x03\x2d\x81\xba\x67\x0c\xab\xfd\x6f\x64\xaa\x5e\x33\x74\xcb\x7c\x20\x29\xf4\x52\x00\xe4\xf0\xbf\xd8\x20\xc8\xbd\x58\xdc\x5e\xeb\x34"; test::( b"\x49\x41\x80\xee\xd0\x95\x13\x71\xbb\xaf\x0a\x85\x0e\xf1\x36\x79\xdf\x49\xc1\xf1\x3f\xe3\x77\x0b\x6c\x13\x28\x5b\xf3\xad\x93\xdc\x4a\xb0\x18\xaa\xb9\x13\x9d\x74\x20\x08\x08\xe9\xc5\x5b\xf8\x83\x00\x32\x4c\xc6\x97\xef\xea\xa6\x41\xd3\x7f\x3a\xcf\x72\xd8\xc9\x7b\xff\x01\x82\xa3\x5b\x94\x01\x50\xc9\x8a\x03\xef\x41\xa3\xe1\x48\x74\x40\xc9\x23\xa9\x88\xe5\x3c\xa3\xce\x88\x3a\x2f\xb5\x32\xbb\x74\x41\xc1\x22\xf1\xdc\x2f\x9d\x0b\x0b\xc0\x7f\x26\xba\x29\xa3\x5c\xdf\x0d\xa8\x46\xa9\xd8\xea\xb4\x05\xcb\xf8\xc8\xe7\x7f", p, q, g, b"\x6d\xa5\x4f\x2b\x0d\xdb\x4d\xcc\xe2\xda\x1e\xdf\xa1\x6b\xa8\x49\x53\xd8\x42\x9c\xe6\x0c\xd1\x11\xa5\xc6\x5e\xdc\xf7\xba\x5b\x8d\x93\x87\xab\x68\x81\xc2\x48\x80\xb2\xaf\xbd\xb4\x37\xe9\xed\x7f\xfb\x8e\x96\xbe\xca\x7e\xa8\x0d\x1d\x90\xf2\x4d\x54\x61\x12\x62\x9d\xf5\xc9\xe9\x66\x17\x42\xcc\x87\x2f\xdb\x3d\x40\x9b\xc7\x7b\x75\xb1\x7c\x7e\x6c\xff\xf8\x62\x61\x07\x1c\x4b\x5c\x9f\x98\x98\xbe\x1e\x9e\x27\x34\x9b\x93\x3c\x34\xfb\x34\x56\x85\xf8\xfc\x6c\x12\x47\x0d\x12\x4c\xec\xf5\x1b\x5d\x5a\xdb\xf5\xe7\xa2\x49\x0f\x8d\x67\xaa\xc5\x3a\x82\xed\x6a\x21\x10\x68\x6c\xf6\x31\xc3\x48\xbc\xbc\x4c\xf1\x56\xf3\xa6\x98\x01\x63\xe2\xfe\xca\x72\xa4\x5f\x6b\x3d\x68\xc1\x0e\x5a\x22\x83\xb4\x70\xb7\x29\x26\x74\x49\x03\x83\xf7\x5f\xa2\x6c\xcf\x93\xc0\xe1\xc8\xd0\x62\x8c\xa3\x5f\x2f\x3d\x9b\x68\x76\x50\x5d\x11\x89\x88\x95\x72\x37\xa2\xfc\x80\x51\xcb\x47\xb4\x10\xe8\xb7\xa6\x19\xe7\x3b\x13\x50\xa9\xf6\xa2\x60\xc5\xf1\x68\x41\xe7\xc4\xdb\x53\xd8\xea\xa0\xb4\x70\x8d\x62\xf9\x5b\x2a\x72\xe2\xf0\x4c\xa1\x46\x47\xbc\xa6\xb5\xe3\xee\x70\x7f\xcd\xf7\x58\xb9\x25\xeb\x8d\x4e\x6a\xce\x4f\xc7\x44\x3c\x9b\xc5\x81\x9f\xf9\xe5\x55\xbe\x09\x8a\xa0\x55\x06\x68\x28\xe2\x1b\x81\x8f\xed\xc3\xaa\xc5\x17\xa0\xee\x8f\x90\x60\xbd\x86\xe0\xd4\xcc\xe2\x12\xab\x6a\x3a\x24\x3c\x5e\xc0\x27\x45\x63\x35\x3c\xa7\x10\x3a\xf0\x85\xe8\xf4\x1b\xe5\x24\xfb\xb7\x5c\xda\x88\x90\x39\x07\xdf\x94\xbf\xd6\x93\x73\xe2\x88\x94\x9b\xd0\x62\x6d\x85\xc1\x39\x8b\x30\x73\xa1\x39\xd5\xc7\x47\xd2\x4a\xfd\xae\x7a\x3e\x74\x54\x37\x33\x5d\x0e\xe9\x93\xee\xf3\x6a\x30\x41\xc9\x12\xf7\xeb\x58", b"\xa4\x0a\x6c\x90\x56\x54\xc5\x5f\xc5\x8e\x99\xc7\xd1\xa3\xfe\xea\x2c\x5b\xe6\x48\x23\xd4\x08\x6c\xe8\x11\xf3\x34\xcf\xdc\x44\x8d", b"\x64\x78\x05\x09\x77\xec\x58\x59\x80\x45\x4e\x0a\x2f\x26\xa0\x30\x37\xb9\x21\xca\x58\x8a\x78\xa4\xda\xff\x7e\x84\xd4\x9a\x8a\x6c", ); test::( b"\xc0\x1c\x47\xbf\xa2\x08\xe2\xf1\x9d\xdd\xa5\xcd\xe5\x83\x33\x25\xd1\x6a\x83\xfb\xda\x29\xe6\x66\xfe\x67\xff\x34\x89\x80\x3a\x64\x78\xa5\xac\x17\xff\x01\xed\xc7\x97\x3d\x15\xfe\x49\x98\xf6\x3b\xbc\x09\x5f\xc1\xac\x07\x53\x42\x41\xc6\x43\xa4\x44\x44\xdc\x9a\x35\x6f\xa8\x12\xd5\xca\x19\x1a\x2f\x6e\xd1\x62\xa2\xd5\xfd\x6d\x0a\xa8\x98\xa2\x05\x63\xd9\x93\x83\x02\x54\xdb\x8a\x4b\xf6\x5b\xa8\x60\x99\xcc\x6b\x58\xa1\xbf\x6e\xbb\x01\xa1\x9c\x79\x30\x43\x08\xac\xeb\xe1\xda\x09\xf1\x75\x3a\x19\x5e\x9e\xf5\x86\xc7\xe1", p, q, g, b"\x97\x0d\x38\xcd\x8b\x3f\x16\x65\x9e\xc4\x2a\x46\xa1\x9f\xf0\x6c\xe8\x49\x5b\x9f\x47\x7d\x9b\x7e\x35\xae\x10\x35\xb0\x8b\x0e\xe1\x7a\x0c\x3c\xee\xdf\x02\x98\x46\xe3\xae\xb9\x12\xf8\x50\x88\x1c\x22\x77\xf8\x22\x81\xe7\xc0\x74\x1d\x2f\x87\xe9\xfa\x5c\x30\x67\x7f\xe7\x26\x8c\xc5\xfd\x9a\xed\x29\xf3\x08\xd9\xbe\x8d\xe9\x2b\x96\x1e\x39\xc1\xdb\xc4\x67\x90\xc9\x9b\x7e\x29\x57\x9d\xaf\x88\x81\x76\xd5\xce\x16\xdb\x5c\xab\xfc\xbe\x42\x09\xac\x47\x53\xb0\xe9\x6b\x15\xd0\xb8\x2c\x7e\xef\xb4\x2a\x10\xde\x88\xf8\xa7\x72\x34\x92\xa2\xbe\x54\x51\xc1\xc6\xec\x68\xca\x75\x9d\x8b\x4e\xe4\x18\x82\x6e\x71\xf3\x9c\xd0\x76\x54\xd0\x0d\x0e\x0f\x88\xd0\x92\x4b\xdb\x97\xaa\xca\x5a\x63\x46\xad\x69\xfc\x22\x3c\xd5\x7f\x5b\xb0\x30\x04\x77\xb5\x94\xaa\x44\x5e\x5e\xa8\x89\x6c\xdf\x3b\xc8\x82\xe8\xfa\x55\x23\xb8\xa3\x32\xfd\x98\xe9\xd0\xa9\x24\x57\x89\x44\xd2\x4a\x41\xcb\xea\xe3\xed\x7b\x37\xdf\xfb\x2f\x60\xc0\x08\x4e\xaf\x00\x5c\x12\x51\x82\x3d\xa4\x1d\x2a\x5d\x97\x7d\x8e\x48\x3d\xdb\x33\xf7\x3f\xbc\x27\x25\x4a\x81\x4b\x61\x6d\x6a\x39\x05\x13\xf0\x56\x7a\x56\x3a\xc0\x53\xa7\x66\x67\x19\x7b\x45\x58\xf8\x71\xb6\x9c\xbf\x2c\x11\x6c\xe4\x57\x51\x3f\x60\xb4\xf5\x28\xe2\xdc\xda\xa7\x1a\x9a\x3a\x4c\xcc\xb3\x73\x8a\x22\x93\x7b\xca\x2a\x04\x2b\xef\x8a\x74\xa6\x00\xac\xd2\x69\x75\xc8\x91\x46\x6d\x7e\x57\xcc\x93\x09\x84\x21\x2e\xe0\xea\xf1\x74\xeb\xcb\xaf\xbe\xb8\xcc\x12\xbc\x43\xbf\xdb\x00\xfd\x11\x57\x6c\x43\x95\x13\xef\x5b\x59\xa8\x8f\xa5\xa9\xae\x96\x3d\x94\xda\xfd\x78\xf8\x1e\xe7\xb0\xd7\xfa\xb5\x3e\x41\xbb\xf6\x5f\x84\x49\xa4\xf5\x8b\x44\xf9\xe3", b"\x5b\xb5\x0e\x4f\x53\x8a\x6e\x46\x38\x20\x6b\xe1\x19\xdb\xf7\x12\x77\x61\x54\xac\xfb\x4c\x06\xd6\x5d\x66\xc8\x02\x12\x34\x17\x39", b"\x7b\x7e\x64\x0c\xd7\x60\x86\xd3\xf6\x40\xd1\x8c\xeb\x26\xbb\x53\xe3\x02\x82\xaf\xb1\x74\x01\xe7\xb4\x8a\xa6\x81\x89\x34\xdc\x5c", ); test::( b"\x47\xe7\xaf\x22\xc9\x29\x8a\xd3\xbf\xef\x9b\xee\x50\x86\xbe\xdb\xdc\x51\x3d\x67\x41\x6d\x5f\x4e\x79\x81\xcd\xdb\x10\x02\xcb\xa2\x47\x00\xc4\x5d\xd6\xd4\xdc\xef\x4f\x81\xd0\x03\xf0\x51\x3d\xab\x4e\x04\xeb\x4c\x70\xd9\x44\x04\x2e\x1b\x72\x6d\x8a\x33\x05\x0d\x0e\x4f\x70\xc0\xa8\x34\x1b\x75\xfd\x4e\x27\xc7\x94\x87\x54\xe4\x41\x20\x8e\xb9\x3f\xc7\xb7\xc3\x73\x54\x25\x2f\x73\xb8\x38\xfd\x02\xd0\x78\xc6\xa1\xae\x07\x3e\xf1\x23\x3a\xa1\xc8\xaa\x27\x81\xe1\x93\xba\x28\x97\xcc\xdd\x8c\xf6\x17\xca\x23\x54\x1c\xe1\xc5", p, q, g, b"\x75\x16\x3a\xf1\x5c\xd6\xb2\x28\x25\x15\x04\xba\x02\x4d\xf5\x1d\xf3\x2f\x63\x8e\x37\xf0\xf2\xf9\xd0\x88\x37\xf8\xc6\xec\xfb\xa4\x3e\xb5\x15\xcc\xba\xbe\xa1\x1b\x01\xe1\xe1\xfd\x3c\xfe\x7e\x40\x5f\xc7\xf8\x14\x2b\x07\x31\x5e\x1d\xc3\x7b\x08\xc7\x86\x68\x42\x1e\x2a\x21\xfc\x5d\x81\x1d\x26\x55\x8c\x50\x4a\xbc\x4e\x6f\xdd\xf0\x37\x40\xb8\xa2\x7f\xa2\xeb\xcd\xa5\x46\x0a\xd7\x85\x70\x6c\x53\xcd\x2d\x14\x09\x3d\x92\x3d\xf9\x42\x05\x1c\xbb\xa2\x58\x6b\x4d\x54\x70\x9d\x24\xba\xbe\x2f\x7c\x61\xa5\x0d\xa8\x45\x18\x95\x99\x91\x66\xe8\x0c\x0f\xab\x89\x2a\x37\xeb\x67\x82\x74\x55\x96\xb4\x9f\x96\xe1\x1e\x9a\x95\x7c\x8e\xc6\x50\xd2\xd9\xa4\x0a\xa4\xb0\x14\xd2\xe9\xa4\xc0\x8b\x9d\x7b\xfe\xaf\x1e\xcd\x42\x78\x5b\x95\xc0\x17\x2a\xe2\x1c\xf2\x5c\x4d\x36\x8b\xb5\x10\x0b\x6e\x6d\x92\x31\x0b\x28\xb7\xb1\xaf\xe6\x4d\x49\x6b\x9c\x60\xb7\x63\xca\xc0\x8a\xc4\x6a\x6b\xce\x1b\xbd\x3a\xc8\xbb\x76\xbb\x55\xb6\x49\xb7\x59\x48\x20\xab\x6e\xf7\xdd\x1b\x09\xbb\x12\x85\x28\x16\xb6\x1e\x6d\xbe\xfa\xb7\x42\xe0\xea\x2c\xda\x47\xea\xc7\xd9\xd9\x13\xdd\xd4\xbf\xd8\xb2\xeb\x5f\x01\x95\x1c\xaa\x4f\x41\x3e\xb5\xe7\xa4\x1a\x06\x85\x69\x5f\x83\x31\xa3\x94\xe0\x6b\x14\x95\xc1\x70\xf3\x0a\xc2\x94\x66\x0e\x89\x09\x84\x3f\x9f\x11\xc4\xbf\xa6\x4e\x87\x92\xdf\x67\x7d\xa0\xa0\x8a\xae\x32\xa8\xa4\xe7\x06\x7f\xc3\x5e\xee\x03\x96\x4e\x8a\xfb\xdb\x6a\x42\x1b\x82\x48\xad\xd2\x84\x78\x9e\x4e\xd3\xca\xce\x71\x06\xc2\x3f\xe6\x66\x6c\x4b\x12\xb8\x36\xe7\x30\x7a\x55\xab\x24\xd9\x2d\x58\xac\x84\xe7\x1f\x81\xdc\x9b\x0b\x74\x36\xad\x07\xf7\x49\x94\xaf\x7d\x0b\x04\x9b\xd0\x9a", b"\x61\x75\x47\x3d\x7a\xa7\xd5\xce\x55\x59\x0c\x95\x2a\x19\x89\x72\x06\x08\x68\x87\xfd\x84\xbf\x2b\x56\x69\x26\xe4\x79\x81\xc2\xa3", b"\x71\xd7\x85\x7b\x6f\xf0\x6c\xa6\x78\x85\xfa\x9c\x9c\x71\xb8\xcc\x24\x6d\x03\x39\xb6\xc2\x72\x52\x47\x17\x2a\x29\x7e\x26\xa7\xb5", ); test::( b"\x93\x11\xd8\xf9\x51\x14\x17\x13\xf4\x59\xeb\x65\xf0\x18\x80\xb9\x61\xc0\xa5\x90\xb3\x6f\x78\x5f\x1a\xeb\x88\x0e\xe7\x13\x00\xc0\xcb\xc6\x01\xb3\xa6\x07\x21\x93\xda\xd6\xdd\xf2\x02\x8e\xca\x4c\x8b\xd7\xb8\x57\x51\x87\x92\x8f\x84\xbd\x69\xc5\xdc\xfb\x0b\x9d\x32\x00\x03\xc3\xa8\x63\xc0\x9e\xe5\x03\xe3\x8a\xbe\x07\xce\x2e\x0d\x46\xb3\xce\xc9\x26\x23\x1a\x57\xde\xfa\x0a\xeb\xd1\xa6\xe0\x1e\xef\x4f\x9b\x53\x7a\xe1\xfc\xdf\x64\xe0\x14\x34\xd4\x0a\xb5\x01\x9f\x39\x65\xc7\x35\x41\x1a\x5c\x19\x94\x1f\x41\xfe\xbf\x4f", p, q, g, b"\x28\x7d\xdc\x19\x69\x15\x6c\x18\x42\x07\x43\xad\xe0\xfa\x12\x71\xea\x34\x6c\x33\x29\xf9\xca\x9b\x5d\x54\xeb\xfa\x21\xf6\x76\xf9\xe0\x13\x61\x62\x39\xf4\xbb\xe6\x0e\xaf\x8e\x19\x02\xed\x9a\xc7\x42\xd8\xdf\x91\x88\x76\x77\x08\x94\xb5\x12\xaa\xa2\x5c\x06\x8b\xde\x96\x1f\x56\xc9\xb5\xb8\x78\x06\xd7\xd0\xa9\xde\x78\x43\xd3\xcb\x07\x97\x90\x31\x26\xa4\x7b\xd9\x42\x23\x37\xe3\xb4\x6b\xb1\xf4\xf4\xa7\x9f\xdf\x9c\xf6\x76\x21\x57\x11\x8a\xee\xe1\xe7\x11\x16\xf3\x4d\xaf\xce\x00\x47\xf0\x5d\x43\xc7\xf2\xcb\xd4\xcd\x52\xd6\x14\xb7\xa9\x45\xd4\x8b\xe4\x4c\xfe\xbf\x78\x43\x32\xfe\x99\xc1\xee\x1a\xa8\x31\x08\x67\xdf\x20\xb2\x80\xda\x85\x5b\x19\x02\x9f\xa7\x9e\xcd\x6d\xd6\x91\x9a\x4d\x22\xb5\xa1\x40\x0c\x30\xe6\x2c\xe7\xac\xc4\xb2\x8e\xfb\xdb\x94\xea\x23\xaf\xbb\x64\xd6\xe5\xf7\xb3\x97\x5d\x2a\xc6\x3b\x1d\x04\x8f\xee\xa8\x35\xc7\xf5\x0b\x42\x5c\xe3\xcb\x41\x8a\xfd\xf4\xdc\x84\x00\x84\x73\x60\x65\x74\xe2\x0d\xb5\xeb\xf8\x6c\xb1\xad\x27\x73\x7d\x46\x49\x4b\x2e\x48\x5b\x26\xb8\xc9\x5d\x82\x9c\xf6\x56\xf8\x0f\x96\xb1\xa6\x2e\x7c\x03\xc8\xf2\x0f\x18\xdc\x58\xbf\x59\x91\x66\x82\xe6\xdc\xc6\x8d\x34\xc8\x9c\x1b\x1b\xd6\xe6\xb1\xe1\x5a\x7d\xc3\x25\xe2\x3f\xd7\xa3\x50\x99\x83\x1d\xbd\x75\x98\x9c\x73\x80\x20\xbf\x4d\xc4\x07\x9c\xcb\x0b\xf1\x2f\xaf\x3b\x9d\x64\x94\xa3\x79\xaa\xcb\x1b\x66\xd0\x7c\xbc\xeb\xbf\x77\xa6\xe2\x9a\xef\x22\xf4\xba\xa3\xdf\x40\xd2\x70\xb4\x57\xdd\xe6\x4f\x00\xb5\x37\x59\xae\x57\x81\x1b\x64\xe0\x40\xcb\xd4\x2e\xa9\x0f\x4e\x28\x08\xbc\x81\xdf\xd6\x63\xb2\x85\x84\xcd\xb8\x19\x9d\xa9\x6d\x3e\x03\xd0\x3f\xb4\x13\x3e\x2f", b"\x66\xf7\x29\x71\x64\x56\xa2\x78\x1b\xdb\x85\x78\xfa\x18\xd1\xe6\x4a\xf0\xed\xf8\xec\x1d\xee\x0a\x50\xd2\x59\x81\x91\x2f\xc4\x5a", b"\x8c\x3c\xcc\xfe\x6f\x0c\xfd\xc0\xac\x3a\x54\x2c\x8e\x8c\x85\x21\x0b\xbd\x7f\x95\x13\x4c\x8f\x03\x5d\x1c\xe1\x6f\x44\xab\x7a\x06", ); test::( b"\x80\x86\x03\xf7\xf8\x43\x94\x41\x27\x79\x13\xb2\x1b\xef\x4e\x01\xc8\x9e\x41\x13\xe0\x7c\xac\xc3\x3f\x65\xac\x98\x49\xdb\x1a\xd1\xa1\xcb\x7d\xd2\xfe\xcd\x88\xee\x41\x39\xb1\x63\x83\x55\xc6\x23\x82\x13\x09\xf3\x26\xc1\x6b\xc6\x58\xbb\x48\x21\x51\x82\x38\x98\x2e\x52\x51\xf7\xcd\x37\x80\x72\x92\x15\x3d\x2b\x07\xdd\xdc\x06\x6e\x00\x3c\x60\x69\xc3\x71\x15\x5d\x2d\x19\x1f\x15\x11\x1f\x20\x89\xce\x42\x3f\x5c\x2a\x1f\x85\x34\xe3\x01\x31\x3c\x69\x62\x3f\x62\xba\x63\x5a\xdc\xe8\x55\x17\x33\xa8\x2a\x8f\xac\x1a\x66\xb1", p, q, g, b"\x38\x96\x72\xec\x6d\xe0\xb8\x66\x55\xcb\x10\xf1\x19\x9f\x85\x70\x13\xb6\x32\x0d\x52\xc8\x72\x8f\xbb\xb5\x36\x0a\x97\x01\xb1\xd6\xca\x4f\x9e\xec\xb8\x48\x7f\xb8\x79\x69\x0f\x85\x43\x0c\x58\x2d\x3d\x91\xef\x18\x4c\x82\x47\xd1\x62\xb9\x4d\x6d\xfd\xfe\x7c\x4a\xe8\x67\xac\x16\x72\x82\x79\x70\x41\x5a\xa6\x7a\x14\x06\xac\x1a\x6e\x2c\x6c\x13\x16\x77\x19\xe1\xd1\xa5\x36\xd1\x00\x78\x42\x7c\x21\x1c\xf6\x82\x05\x1a\x75\xee\x83\x22\xc1\x40\x8b\x89\xd9\x63\xbd\x8e\x85\xf9\xef\xf7\xbb\x8c\xe0\x5c\xa4\x22\x25\xb4\xbd\xfe\xad\x6b\x89\x7b\x0f\xea\xb7\x6c\x22\x72\xb4\x87\xd2\x7d\x4e\x8d\xcd\xe0\xf1\x9e\x46\x15\xf7\xe1\x11\x45\x41\xf6\x1d\x43\x53\x3c\xe7\x88\xcc\x45\x05\x60\x0b\x83\x26\x6b\x1b\xea\x66\x59\x12\x19\x6c\x2c\x84\xc3\x6a\xa9\x3b\xaf\x5b\x74\x64\xa6\xdd\xf5\x47\x18\x3e\x2c\xd0\x58\xbb\x50\xa1\x27\x65\x53\x6f\x0a\x4d\x35\x24\xaf\x4f\x31\xac\xc6\x09\xfc\x44\x7e\x17\x29\xaa\xb9\x7b\x5a\x36\xb0\x17\x64\xb8\x4b\xc5\xf7\x7f\x6c\xc5\x84\x86\x6d\x1a\x6c\xfb\x3a\xa8\x43\x78\x95\xf7\x77\xf2\xdc\x68\x97\x49\x9f\x6c\x5f\x02\xfa\x1e\x6c\x1e\xad\x68\xf3\x38\x5b\x73\x33\x87\xc6\xb5\x8f\x2d\x11\x28\x4a\x63\xae\x7c\x7c\xfe\xe4\x2c\x3f\x44\xa3\xc9\x26\xad\xad\x81\x07\xcc\xa1\xc3\xf9\x44\xf9\xb9\xe2\x37\xd9\xab\x35\xc8\x13\x91\xd7\xc5\xf5\x29\x2d\x1a\x32\x2f\x7a\x12\xce\x10\x8a\x86\x23\x7b\xa4\xde\x3c\x61\x2f\xa7\x38\xf5\x31\x94\xba\x67\xbe\xd8\x43\xcd\x2d\x43\x30\xa5\xd1\x94\xd6\x7c\xf4\x5f\xa0\x51\x83\xe0\xcb\x46\xc2\xd2\x3a\x1b\xae\x76\x75\x5c\x30\x9f\xa1\xc3\x16\x05\xc8\x8a\x92\x14\x22\x7c\xe0\x2f\xe9\x15\xbc\xf0\xd3\x4b\xce\x8c\x8e", b"\x98\xfe\x58\x7e\x43\xaa\x96\xf9\xa9\xbb\xe8\xaf\x40\x4a\x08\xb0\x23\x07\xb3\x60\x53\xdb\x87\xf6\xdb\x25\xa3\xaa\x36\xfc\xc3\xdb", b"\x5c\x94\xea\x70\xf9\x9f\x9f\xf1\x4b\x8e\x5d\xd4\xa6\x68\x83\x98\x26\x09\x07\x17\x6e\xa8\x0e\x19\xc3\x9b\x14\x62\x11\x49\xf0\xd6", ); test::( b"\xce\x2a\xa3\xed\x12\xc1\xb8\x84\x3a\x3e\x11\xb0\x6b\x5f\x0e\x5e\x63\xfe\x8e\x19\xc1\xa3\x8a\xc4\x46\xa4\x8e\xec\xa8\xda\xc6\xd8\xb7\x69\xd7\x80\x94\x42\xc3\x2a\xc8\x2e\x93\xf6\x86\xec\x64\x34\x7e\x94\x44\xc3\xf4\x52\x82\x3c\x84\x0e\x8d\x0c\xd3\x34\xb4\x15\x20\x02\x14\x8d\xa1\x6a\xc8\x85\x9d\x18\x9d\x87\xd6\x71\x64\xc5\xdb\x16\x19\x5c\x08\x1d\x2e\xdd\x7d\x81\x57\xe2\xbf\x3b\x97\xa9\x0b\x4b\x47\x84\x32\x4e\xb8\xce\xac\x42\x61\x80\x9f\x67\x42\x56\xda\xf0\x07\xc4\xab\x1f\x22\x2f\x5f\xd2\x83\x98\xa5\xb8\x24\xde", p, q, g, b"\x58\x4f\xe0\xeb\x31\x4a\xfb\x86\x6c\x04\x66\xc3\x98\x0a\x2d\xf5\x45\x98\xd8\xa7\x05\xdc\x2d\x1b\xf5\x10\x2e\xac\x86\x31\x27\x84\xee\xbd\x01\x9b\x81\xa7\x64\x2d\x4a\x3c\x4c\xc6\x5d\xbe\xdd\x81\x87\xe3\x59\x3f\x0a\x9b\xcc\x06\xea\x36\x70\x09\xb7\xeb\x4d\x29\xb0\x45\x00\x61\x37\x8e\xdb\xe1\x63\xef\xd3\xf3\x44\xbb\x36\x23\x4f\xc8\x6f\xe1\xc3\x2f\x2c\x99\x95\xa0\x7c\x6e\x95\x7d\x19\x5e\x81\x05\xf5\x17\x9c\x2b\xd9\x76\xb3\x12\x70\x67\xc8\x0c\xa9\x34\x56\xc1\x6b\x98\xdf\xcc\x7d\xe3\x55\x79\x0f\x0b\x15\xcf\xd2\xff\x91\xdb\x09\x34\x55\x32\xd4\x60\x96\xc0\x6b\x40\xa2\x30\x46\x81\xd6\x28\x57\x67\x5a\xc5\x0e\x22\xc7\xd1\xab\x47\x58\x92\x35\x41\x9c\xbe\xdd\x4b\x7d\x24\xb9\x05\x31\xe5\xbf\xd8\x53\xe8\x8a\x28\x83\x6a\xc4\x6b\x6d\xf2\x67\x60\x98\x5b\x96\x2c\x6a\x24\x45\x80\x98\x66\xb4\x61\x26\x21\x2a\xa2\x63\xab\x2a\x46\x03\xff\x41\xa8\x52\xc7\x98\x8c\x2d\x43\x86\x24\x16\x55\xa7\x22\x2f\xa4\xe9\xf6\xea\xc6\xa1\x44\xa1\x6b\x05\x9e\xa2\x5b\x71\xa2\x13\x84\x91\xd5\x4e\xe9\x5a\x9d\x68\x19\x97\x7f\x90\xfe\x6a\x59\xe0\xca\xd8\x1b\x32\x9e\xba\x3e\x68\x27\x7d\xf0\x4f\x98\x28\xef\x6f\x08\x16\x10\xb4\x59\x5a\x92\x11\x3e\xc6\xd0\x69\xff\xe9\x71\x96\xd9\x56\x19\x1d\xaa\xbe\x98\x77\x37\x7a\xd0\x41\x6b\x0e\xe0\x65\x86\x63\x37\x7e\x07\xad\xb2\x46\x44\xe8\xa0\xe3\xce\x5f\xc1\x78\xf1\x52\xbe\x0c\xd9\xb0\x40\x71\x89\x04\x27\xc6\xb0\x01\xd5\x92\x62\xf3\x8f\xe8\x97\xce\x32\x04\x0d\xaa\x78\x07\x82\x1c\x40\xac\x8c\x63\x50\x5b\xed\x0a\xf0\x70\x44\x33\x37\xc9\xe9\xa6\x4e\x44\x20\x3c\x36\xa8\xca\x50\x64\xd8\x7a\xa0\xd3\xcd\x1d\x40\x3a\xa6\xa2\x4e\xcc", b"\x54\xc9\x9b\x21\xf2\x8f\xee\xe2\x7f\x0e\x99\x9a\xac\x6b\x49\xb6\xb0\x76\x33\xe1\xdb\x18\xa4\x59\x52\xfc\xf7\xe7\x3b\x16\x6b\xdb", b"\x7a\x18\x58\x8e\xa1\x45\x6f\x67\x56\x2d\x67\x78\x78\x34\x6f\xb3\x4b\x68\x4b\x9a\x8a\x61\xa7\x21\xb3\xdb\x0e\x95\x69\x5a\xb4\x3a", ); test::( b"\x17\xb9\x25\xe2\xa1\xa5\x1c\x20\x36\xe2\x25\x71\x5f\x2f\x77\x1d\x8f\x0a\x6d\x98\xc7\xed\x9c\xac\xf5\xaa\x4c\xd3\x0a\xb1\x6a\xfb\x94\xe2\x1a\x7c\x95\x3e\x01\xca\x21\x1c\x28\x78\x2a\x06\x07\x3f\xda\xd2\x77\x13\xaa\x8c\x26\xae\x9e\xc4\x49\xaa\xaa\x8c\xcf\xda\x8c\x94\x71\x72\xde\x94\xb3\xf2\x0b\x54\xaf\x98\xdf\x15\x2d\x5d\x3a\x63\x6c\x73\x6f\xf0\x1b\xfa\x69\x9d\x62\x14\x00\x2d\xc7\x6d\xbb\x3f\x38\x60\xd9\x4e\x0e\x34\xed\xab\xa5\xf2\xbf\xd6\xb2\xbf\x66\x00\x86\xbe\x87\x64\x51\xa5\x0f\x6a\x2d\xc7\xc2\xb0\x98\xb7", p, q, g, b"\x42\xa9\x3b\xf4\x4e\xc7\xd2\xfb\xd6\x51\xcc\x1d\x1a\xc3\x91\xd6\x3c\xab\x00\x97\x1a\x7f\xf7\xa5\x61\x66\x76\x8b\x22\xe6\x11\xdc\x4d\x72\x9f\xaf\x8c\x94\xe7\xed\x4d\x6f\x82\xb7\x02\x0b\x7b\x4d\x2f\xb3\x59\x1c\xf2\x29\x5c\xc6\xe1\xb4\xbe\x2c\x25\x6c\x2f\xdd\xa4\x3e\x00\x05\x11\x14\x64\x5d\xa9\x1c\xbe\xd5\xcc\x08\x70\x85\xf7\xce\xcd\x8b\xac\xe6\x78\x89\x10\x0b\xcc\xe7\x92\x82\x20\x26\x6f\xd3\xfa\xf2\xea\xd9\xc2\x1e\x42\x3c\x99\x48\xec\x70\xc2\xd3\x1b\x66\x8c\xdc\x36\x0d\xdc\xeb\xdf\x42\x97\x20\x60\x7f\x96\xd8\x51\x23\x55\x15\xd6\xdb\xdf\x16\x3f\x7e\xa5\xdd\xf3\x51\xba\xa7\x6f\x38\x66\x3f\xdb\xfb\xd5\x87\x1b\xb2\x15\x7d\xf0\xa4\x34\x20\x64\x8c\x10\xe4\x82\x7f\x54\x06\x56\x14\x62\x3e\xd3\xab\xad\x10\xd3\x17\xbe\x9d\x49\xa4\xc6\x65\x64\xf2\x0d\xca\xc1\x76\xb6\x60\x5a\x2e\x3c\x3c\x01\xc3\x62\x22\x0f\x35\x2e\x47\x74\x19\xf2\xb4\xb2\x38\xaf\xfb\xc3\x92\x0e\x5b\xb5\x7c\xeb\xb9\xa7\x47\x46\xd6\x2c\xdd\x07\x0f\x4a\x13\xaf\x00\x1d\x26\x2d\xef\x01\x4f\x29\xb7\xf7\x54\xfa\xc8\x4e\x02\xd2\x92\x85\xb7\x3b\xb2\x0a\xc0\xc8\x62\x41\x23\xa5\x77\xbe\x8d\x6a\x6b\x97\x39\x18\x5e\x44\x58\x09\x0d\xdb\x42\xb0\x05\xea\x4f\xa8\xb5\x10\x07\xbd\x9c\xa5\xb4\xcf\x2a\x3d\xca\x44\x6a\x87\xec\x83\xc9\x54\x8d\xab\x46\xcf\x3d\xaf\x86\xdb\x3b\xc6\x9a\x99\xba\xed\x45\x9d\x6a\x19\x7f\x9b\xf5\x03\x2c\x1d\xc3\xa8\x77\xdd\x7e\x5c\x11\x61\x12\x4a\x6d\x70\x13\x24\xe9\xa9\x71\x2b\x82\x4a\x4f\xc3\xb1\xb3\x53\x25\x9a\xf2\x25\x81\x3c\x27\xe8\x20\xb0\xba\x72\xfb\x4e\x78\xf5\xc7\x86\x73\x92\x4e\x7f\xa2\xf4\x86\x03\x02\x84\xf2\x6c\xb6\xfa\x31\xda\x56\xf4\x9d\x3f", b"\x72\x6e\x4d\x3b\xaf\x00\xb2\x59\xf4\xbd\xca\x8b\x0a\x5e\x1c\xbf\xd3\x78\x27\xc4\x83\x73\xef\x50\x29\xf7\x60\x1a\x77\x69\x47\x8c", b"\x90\x30\x79\x43\x9e\xbd\xe1\xf7\x66\xd1\xa8\xff\x33\xe0\xf7\x78\xd7\x7b\x5e\x8b\x7b\x0d\x68\x74\x43\xc2\x71\xe8\xa6\x3b\x59\x75", ); test::( b"\x1c\x11\x69\xf0\xe7\x90\x05\x3c\xd7\xdf\x78\x0b\x5c\x83\x2c\x64\x14\x76\x94\xb4\xa6\x44\x8b\xa1\x4a\x42\x6d\x9d\xef\x7d\xdc\x78\xe3\xed\x36\xa1\x2d\xa8\x1c\xf9\xc3\xf2\x45\xd6\x4c\x85\x9b\x6b\x4d\x81\x21\xd1\x12\x85\x19\x74\xdf\x17\x8d\xef\xc9\x77\xdb\x69\x12\x34\xd1\x42\xdf\xf9\x9b\xea\x19\x57\x89\x1b\x5d\x6f\xe8\xa7\x87\xe9\x63\x69\xd9\x3c\x24\x68\x2d\xeb\xd1\xcf\x3f\xdb\x64\x37\x9b\x8c\x1b\x3b\x73\xe1\xbc\x24\x67\xdc\xb0\x8b\x86\xcb\xd4\x94\xc0\x14\x77\xbe\x24\xd7\x90\x0f\x5a\x57\x89\x30\xf4\xbd\xdc\xb6", p, q, g, b"\x7f\xca\x22\x68\xfb\xa3\x3b\xf9\x4e\x76\x41\x6a\x9e\x38\x69\xf8\xa9\x0c\x3b\x0d\x2d\x37\xaa\xce\xcd\x3f\x67\x85\xb9\xa9\x5a\xee\xfe\x93\x24\xc3\xab\x09\xce\x61\xff\xde\x37\xb5\x0f\x82\xb6\x99\x41\x3f\x3b\x54\xf2\x4d\x6c\x52\xec\xa6\x23\x25\x02\x95\x23\xde\xb0\x5d\xb1\x38\x77\x84\x47\xbc\x3d\x0d\x05\xaf\xf7\xd8\x5b\x55\x25\xf2\xb8\x63\xd2\x64\x86\xe8\x4c\xde\x13\xe2\xe2\x11\x7d\x3f\xa3\x8a\x38\xd1\x07\x3a\xaa\x79\x4e\xd8\xea\xa7\xb3\xd1\xda\xa4\xac\x3e\x80\x8c\x37\x38\xa9\xcb\xef\x35\x46\xcd\x79\xec\xcb\x4f\xaa\x28\xb5\x0f\xce\x57\xcd\xc2\x40\x15\xfe\xc3\x90\xf0\xe7\xa7\xdc\x9f\x9c\x47\x1d\x22\xb3\x0c\x3e\x41\x74\x35\x8f\x1a\xd0\x73\x4c\xf7\x9a\x09\xa6\x39\xbd\xf3\xf3\xea\xbd\xa2\xb4\x7b\x81\xf9\x2e\x2a\x4f\x90\x04\xdd\x64\x13\x70\x33\x8c\x02\x02\x9b\xbf\x49\x71\xaa\x67\x48\x3e\xea\x7a\x4b\xf7\xdf\xf3\x88\x9f\x84\xfa\xa5\x76\x56\x17\xcc\xab\x37\xd1\x90\xa9\x4c\x57\xf9\x9d\x79\x28\x07\xa6\x96\x5e\x21\x13\x58\x6c\x6c\x5d\x1a\x81\xab\xfd\x37\x2e\x1c\x79\x54\xe2\xe0\x90\x64\xdf\x4d\x2d\x82\x88\xf5\xcd\xd8\x10\x6e\xd8\x4f\xfa\x79\x88\x19\xa0\x9a\x73\x2b\xc2\x04\xa8\x12\xc0\x35\x2e\x4e\x39\xd2\xce\xb8\x8f\x8e\x7d\x36\x24\xa5\xa5\xf3\xdc\x56\xea\x0f\x9c\x52\x90\x78\x8e\x12\xdc\x46\x31\x61\x60\x1f\xf3\xab\x68\x1b\xd0\x40\x3e\xe0\x3a\xf4\x5d\x5e\x58\x6d\x84\xd9\xc9\x01\x98\x67\x18\x19\x3e\x66\x12\x56\xf4\x02\xde\x73\x5d\x2c\xa6\x96\xef\x6b\x59\x48\x68\x95\x0a\xe1\x73\xf2\x2d\x95\x85\x66\x56\xa9\xd0\x06\x10\xfe\x8c\x2b\xd7\x25\xae\x55\xd7\x91\x27\x7b\x13\x17\x08\x5b\x67\x18\x8d\xa0\x06\x45\xce\x91\xbb\xe6\x2e\x32\x43\x11", b"\x10\x26\xec\xee\x0a\xc3\x1b\xdc\xdb\xd6\x10\x3b\x13\x43\xf8\x4b\x44\x1f\xc3\x26\xe1\xd8\x6a\xd0\x90\x3d\x0b\x17\xcf\xb2\xff\x9c", b"\xa5\xd3\xcb\x2e\x7c\x39\xd8\x76\x40\xc4\x54\x7a\xc6\xc3\x3a\xfc\xcb\xfc\x18\x20\x90\x5b\xa1\xe5\xbe\x5b\x26\x23\x13\x27\x7c\xb9", ); test::( b"\x80\x5b\xaa\xbd\xd0\x18\xd9\xe5\xeb\xb4\xdc\x51\x43\x5b\xe6\x32\xd2\x38\x78\x69\x75\x6d\x74\x37\x88\x44\x27\x90\xd5\x5b\xb1\x83\xe2\x66\x55\xae\x3a\xac\x86\xdc\x16\xa4\x8d\xdd\x26\x8d\xd1\x5e\x18\xd8\x32\x0d\xf9\xa1\xa0\xa6\xcb\x2b\x49\xbc\x70\x1d\x7a\x15\xe3\xfe\x8d\xdd\x58\x4a\x75\xc8\xc9\xaa\xae\xcd\x1e\xfe\x17\x32\x4d\x62\x61\x88\x1f\x3d\x34\x68\x5b\x04\xf6\x2e\x96\x85\x05\x96\x6c\x9a\x5f\xeb\x0c\x39\xb5\x09\x5e\x55\x68\xe4\x0f\x20\xaa\x21\xcb\x25\x05\x35\x6d\xc9\x04\x9c\xe5\x61\x82\xd9\x4a\x2d\x94\xa9", p, q, g, b"\x43\x4d\x06\x12\xb2\xa8\x33\x2b\x0a\xb1\x56\x14\xe3\xee\x9f\xa2\x45\x13\x17\x12\xfb\x2b\xa8\x4f\x71\x39\x6f\xff\x94\x88\xdc\xa3\x40\xa3\x7e\x82\x0f\x44\xc1\x3a\xa8\x7f\xc9\xdf\x0b\x7a\xab\xea\xe2\xed\x85\xa9\x62\x2b\x8d\xef\xad\x47\x4a\xc3\x62\xa7\x03\x9a\xbd\xe3\x3d\x1d\xf7\x32\xa0\x52\x44\x6a\xff\x78\x57\xbc\x24\xd8\xf6\x1d\x25\x80\x15\xed\x2a\x30\x60\xa8\xbf\x9d\x44\x7e\x7d\x83\xd7\xb4\x97\xa8\xe6\x54\x73\x19\x69\xe4\x37\xb3\xf4\x6f\x83\xeb\x58\xf7\x88\x4f\xf2\xa2\x39\x0f\x5d\x82\x1e\xca\xa7\xfd\x09\xa1\x46\xc5\x5f\xc1\x18\x00\x73\xcc\x5a\xaa\x60\x7c\xab\xb9\x44\xf6\x07\x8a\x44\x86\xcf\x20\x6d\xdc\x56\x35\x24\x2d\xef\x2d\x3e\x2e\xdc\xbc\x02\x6b\xb8\x4e\x84\x95\x18\xf1\x97\x39\x9c\x22\xa9\x00\x9d\xde\x9a\xfc\xd8\x76\x9b\x24\x1c\x75\xd4\xcc\xce\x7f\x93\x90\x0b\x5f\x48\x83\x33\xdf\x47\xc0\x26\xc4\xf2\xb2\x76\x7e\x70\xd2\xd9\xdd\xe7\x84\x05\xe2\x26\xc9\x95\x2f\x6d\xb1\xa2\xe5\x58\x29\xbc\x8a\x76\xc7\xde\x5c\x2b\x58\x8f\x3f\x3e\x93\xce\x72\xfa\xda\xba\xcb\x75\xc7\xc1\x46\x69\x70\x1e\x0a\x2b\xa1\x27\xba\xc5\x68\x63\xc8\xc4\xe7\x20\x5c\xc0\xa7\x3c\x42\x9a\x80\x1e\x97\x97\xda\x4f\x26\xe8\x48\x98\x23\x06\xcc\x3c\x34\x39\xf9\xe3\x94\xdd\xc8\x0b\x0f\x13\xe0\xd5\x28\x19\x06\x38\xd8\xb9\x6b\xba\x3a\xf8\x89\xde\x37\x3b\x35\x49\xfc\x90\xa6\x82\x29\x64\xc2\x21\x71\xe7\x60\x1f\xde\xfb\xe5\x70\x89\x88\xb8\x4f\x3e\xa5\x54\xd6\x21\x60\x0a\x87\x64\x15\xd5\xbc\x1e\x55\x7e\x94\x8c\xaa\xce\x56\x3b\x37\x02\xf0\x91\x5a\x90\xa1\x3a\xad\xa7\x77\x09\xee\xba\x8c\x50\xa8\x62\x93\x51\xa4\x78\x7d\x0d\x58\x80\x8f\xfb\x8b\x21\x7c\x1d\x16\x4f", b"\x2d\x63\xe6\xd2\x56\x85\x71\xac\xfe\x4a\x93\x15\x80\xa0\x4b\x97\x4c\x7a\xae\x4c\xa9\xaa\x96\x10\xd8\x7b\xe1\xa9\x1c\x65\x7c\x31", b"\x57\x4b\x10\xd1\x4d\xcb\x8f\x07\x94\x61\xb2\x9a\xe1\xb9\x1e\xd6\xc5\xef\x32\xf9\x3c\xba\xd3\x06\x69\x75\x52\xc1\x17\x48\xfe\x0c", ); test::( b"\xbe\x8c\xa5\xed\x4c\x22\xa0\x50\xd8\x30\x9c\x7a\x31\xac\xf6\x67\xf0\xc0\xfb\xaa\xdc\x64\xa3\x4d\x2b\x63\x07\x4a\x76\x3a\x2b\x8d\xb7\x3b\x24\xcd\xba\xad\x26\xcc\x6f\x2c\x3e\x90\xdf\x4b\x25\xbf\xa7\x24\xfc\xe5\x87\xfa\xa0\xfd\x65\xff\xb7\x19\xf0\xa0\x35\x16\x48\x23\x0d\x53\x54\xd7\x21\xd8\xfa\x6d\x0d\x68\x6c\x37\xf2\x57\xd7\xd9\xdb\xd1\x5f\x55\x5d\x50\x73\xf8\xbc\x71\xc9\x21\x39\xd1\xf6\x27\xd7\x43\xf7\xd6\x58\x6d\x51\x0d\x19\xd0\xd8\xa5\x55\xd0\xbf\x79\xec\x70\x59\x6e\x71\x21\x83\x88\x0c\x89\xca\xf6\x9d\x6f", p, q, g, b"\xaf\xaf\xf7\xa4\xd4\x38\xb4\x64\xf2\x74\x15\xd2\xe0\x3e\xd9\xc4\x16\xdb\x2b\xeb\xfb\xe0\xab\x34\xf1\x4e\xe1\x06\x44\x88\x5b\x5a\x45\x88\x87\x71\x50\xf4\x63\x27\xc2\xc7\xa6\xf7\x12\x67\x0b\xfd\x62\x37\xa2\x94\x52\x49\x48\x59\x94\x8f\x5e\x37\xc0\xe5\x86\x65\x6b\x11\x9a\x0e\x01\xc8\x1a\xce\xe5\x7c\x17\x75\xa3\xa1\x46\xe8\xfb\xaf\xc9\x9c\xd2\x03\xfc\x98\x19\x56\x87\xfb\x94\xa8\x8a\x4f\x44\x28\x0b\x03\xf0\x89\x5e\x0e\xca\x84\xdb\x08\x7c\x1b\xf7\xc4\x84\x3c\x85\x59\x73\x68\xe8\x39\x84\x11\x31\xe0\x27\x10\x9d\xaa\x7b\x81\x72\xa2\x5e\x11\x35\x5f\xa9\xa9\x20\x5a\xc3\x24\x94\x1a\x9f\xe4\x92\xc4\x84\x21\xf0\x68\x1a\x47\xe2\x80\x80\x3e\x8b\xd9\x1b\x11\x3e\x0f\xa1\x59\x76\x07\x43\x0b\xcb\x0a\xd5\x0b\x94\x08\xde\x00\x66\xd6\xa2\x32\x4d\x09\xcf\x6e\x99\x13\x36\x54\xdd\x64\xe8\xc8\xf7\x0c\xd6\x44\x53\x43\x75\x8b\x5c\xd5\xa0\xe7\x7e\x2d\x3f\xa1\xcb\x3f\x7e\xfe\xd7\x61\x24\xb2\x88\x1d\xfd\x20\x28\xab\x59\x18\xc3\x89\xb9\xc3\x97\x82\x71\xdb\x54\xa5\x17\x15\x15\xab\x2e\x85\xee\xb1\x0a\xb3\x07\x13\x01\x59\xbc\xa5\xfe\x13\xcc\x4a\x95\x9e\x88\xe9\x26\x72\x21\xac\x8d\x14\xee\x69\x38\xe1\x49\xf5\x2e\xc5\x91\x25\xb4\x49\xcb\x55\xc5\xa0\x02\x9f\x01\x87\x70\xb3\x1f\x08\x44\x0c\xe6\x87\x6e\x66\x00\xa3\x24\x11\x72\x2f\x58\xe6\x26\x33\x39\xbd\x9d\x34\xe1\x7a\xa5\x74\xb9\x21\x22\x89\x26\xff\x66\x8c\xe9\x03\x62\xc4\x39\x1e\xcd\x0c\x03\x74\x54\xe1\x2f\xdf\x80\xc9\x6b\xb7\xa8\x40\xcd\x86\x6e\x85\x70\xbb\x7d\x65\x86\xfb\xe3\xd1\xea\xe5\x33\x29\x31\x19\x8b\xa1\xd5\xd9\x02\xd6\xb7\xa1\x22\xdf\xa7\x70\x18\x55\x3a\x2d\xd3\x68\x0a\x80\x9b\xb0\x60\x53", b"\x9c\x7d\x40\xe2\x14\x08\x2b\xd5\xe7\x1f\x3b\xf4\xbe\x99\x78\x93\x03\xf3\x8e\x85\x1a\x76\xf8\x8c\xb9\x0a\xff\x71\x30\x80\xc5\x87", b"\x24\xca\x23\xbe\x94\xc6\x24\xb9\xd7\x36\x32\x8b\x53\x78\x2b\x5f\xeb\x38\x4d\xc9\xfe\x63\x70\x01\x6c\xc3\xf9\x7d\x8f\x48\xb6\xd0", ); test::( b"\x62\xf0\xcb\x1b\xb0\x7f\x64\x97\xa1\xdc\x7a\x66\x95\x57\x65\xa9\xcc\x40\x3b\xde\x03\xfe\xf4\xe1\x6b\x09\xd7\xec\x54\x5b\x4c\x75\xd0\x8b\x6e\x9c\x4c\x5a\xf7\x23\x25\x48\xd4\x54\x45\x63\x8d\x71\x94\xa1\x99\xef\x15\x34\xe8\x12\x41\xea\xa9\xc7\xe7\x67\xfd\x54\xe2\xca\xce\xea\x4d\x2f\x72\x15\xd3\x7b\xaa\xd6\xb0\x5e\x28\xea\x09\x34\x97\xe2\xe8\xe1\xdb\x6e\x41\xa5\xeb\x13\xff\xa4\xca\xa2\x71\x08\xf2\x26\x3a\x74\xcf\x54\xbd\x5b\x6a\x6b\x62\x28\x4b\xac\x99\xfd\x79\x77\xaa\xa8\xff\xff\x18\xfa\x8a\x70\xab\x0d\xeb\xdf", p, q, g, b"\x73\x55\x4a\x69\xe1\xa0\x9f\x61\x91\xf0\xad\xed\x54\x2a\x07\x7e\xe8\xc8\x14\x26\x5d\x74\x5d\x9a\xe5\xc7\x92\xf4\x42\xc5\xfa\x47\xb3\x46\x43\xd3\xba\x1d\x51\x47\x16\x18\x98\xde\x51\x88\xa8\x07\x14\xee\x36\x51\x2a\x61\x8a\x33\xe4\x03\x00\xff\x11\x87\xe5\x53\xf5\x44\x33\xe1\x74\x66\xaf\x48\x64\x72\xbc\x07\x78\xaf\x55\xba\x73\x46\xc9\x61\xd7\xf1\x3a\xc6\xd8\xd6\xac\x9a\x42\x09\x2c\x01\x57\x9e\xe2\x17\x05\x90\xcb\xc3\xb4\x5e\xef\x79\x5b\x5d\x9e\x5d\x0a\x84\x49\x43\x9a\xb3\x07\xc1\x4c\x56\x74\xc4\xa7\xa3\xea\xf8\xb2\x40\xef\x36\xdd\x21\xf4\x3c\xce\xd5\x8c\x2d\xcf\x23\xc3\x14\x36\x4e\x8e\x31\x4e\x96\x71\xe8\x08\x13\xd1\x85\x80\x13\x58\xd5\xdf\x61\xd7\xe7\xec\x0d\xd6\x9e\x90\xc2\xcc\x75\xc1\xc3\x54\x3e\xfe\xca\x82\xb2\xec\x6e\xc5\x9e\x6c\x99\xbc\xd1\xa8\x63\x1c\x62\x28\xe2\x16\x88\x40\x82\xda\x11\x91\x25\xcb\x0a\x80\xc8\xfe\x34\x4a\xfe\x66\xe0\xf2\x06\x46\x43\x24\x65\xf3\xe0\x09\x6a\x17\x72\x5a\x88\x67\xb3\xbd\xba\x3c\x69\xa1\xaa\xcb\xb8\xd6\x47\x55\xb7\xf2\xa3\xdf\x0a\x49\xba\x0b\x21\x14\xe1\x12\xd4\xca\xe0\xad\x6d\x8d\x0f\xd6\x18\xe5\x4d\x53\xf0\x7b\xa1\x09\xb7\x5a\x54\xa9\x89\x61\x8b\x28\x63\xe4\x41\x5e\x17\x6e\x0b\xfd\x88\xdb\xf3\x65\x53\xca\x85\x3b\xb3\x63\x16\xc6\x6e\xb9\x3d\xa3\x4f\xf3\xae\x74\xcd\x5f\x18\x7f\x49\xbf\x38\xaf\x0f\x39\x3b\x2d\x7f\x85\x4d\xf1\x92\xad\xe2\xdf\x6b\x39\xa1\x76\xd2\x15\x2c\x91\x2b\xba\x24\x8d\x84\xa5\xb0\xaa\x40\x84\xa1\x8b\xb6\x4f\xd1\x36\x97\x3f\x73\xb4\x13\xd7\x7d\xb2\x75\xea\x5e\xce\x93\xce\x2f\xa0\x0d\x7c\x88\x87\xb7\xe5\x0b\x00\x64\x9d\x03\x53\xa7\xf5\x8c\xc6\x3f\x6b\x5f\xbd\xfc", b"\x54\xff\x5d\x3d\xc8\x76\x78\x56\xa1\x0f\x54\x08\x88\x82\xe2\x8c\x11\x09\x80\xef\x9b\x20\x4e\xb5\xf1\x62\xdb\xef\x73\xa3\x7c\x73", b"\x57\xed\x07\x48\x42\x7c\x08\x9d\x63\x95\x52\x8b\x2b\x45\x55\xc0\x1b\x4c\x13\x41\xab\x5f\xb9\x9c\x64\xd1\xcc\x24\x7a\x41\xc3\xa8", ); test::( b"\xba\xeb\x12\xa1\xeb\xd8\x05\x7a\x99\xa0\x13\x7e\xe6\x0f\x60\xee\xd1\x0d\x26\xf1\xea\xb2\x2a\xe2\xd9\xad\xbc\x3e\x5f\xfc\x32\x52\xab\xf6\x2b\x61\x47\x07\xad\x25\x46\x14\x1b\xed\x77\x9f\x0c\xfa\xd9\x54\x4a\x74\xe5\x62\xda\x54\x9e\x2f\x7b\x28\x6e\xfb\x61\x54\x49\xb0\x94\x6d\xc7\xc4\x98\xd8\xf1\x21\x50\xb2\xea\xcb\xd2\x71\x57\x96\x6f\x59\x2a\xd5\xf3\xe4\x3a\x24\xc6\x0b\x7e\x06\x63\x0b\x82\xa4\xfd\xb6\x99\x11\x9d\xbd\x87\x8b\x13\xa9\x8b\xf2\x2a\x7b\x3d\xc7\xef\xdd\x99\x2c\xe6\xb8\xa9\x50\xe6\x12\x99\xc5\x66\x3b", p, q, g, b"\x00\x72\x8e\x23\xe7\x4b\xb8\x2d\xe0\xe1\x31\x5d\x58\x16\x4a\x5c\xec\xc8\x95\x1d\x89\xe8\x8d\xa7\x02\xf5\xb8\x78\x02\x0f\xd8\xd2\xa1\x79\x1b\x3e\x8a\xb7\x70\xe0\x84\xac\x23\x97\xd2\x97\x97\x1c\xa8\x70\x8a\x30\xa4\x09\x7d\x86\x74\x01\x53\xee\x2d\xb6\xab\x63\x43\xc5\xb6\xcc\x2c\x8a\x7f\xa5\x90\x82\xa8\xd6\x59\x93\x1c\xc4\x8a\x04\x33\xa0\x33\xdb\xb2\xff\xf3\xaa\x54\x56\x86\xf9\x22\xc7\x06\x3d\xa1\xd5\x2d\x96\x88\x14\x2e\xc6\x4a\x10\x02\x94\x8e\x5d\xa8\x91\x65\xd9\xdf\x8e\xed\x9a\xa4\x69\xb6\x1e\xe0\x21\x0b\x40\x33\x56\x23\x33\x09\x7b\xa8\x65\x99\x44\xe5\xf7\x92\x4e\x04\xa2\x1b\xc3\xed\xc6\xd5\x51\xe2\x02\xe4\xc5\x43\xe9\x75\x18\xf9\x1e\x0c\xab\x49\x11\x10\x29\xb2\x9c\x3a\xa1\xbe\xd5\xf3\x5e\x5c\x90\xfe\xb9\xd3\xc7\x45\x95\x3d\xbf\x85\x9d\xef\xce\x45\x37\xb4\xa0\x98\x01\xfd\xc8\xfe\x69\x99\xfb\xde\x39\x90\x80\x79\x81\x1b\x4b\x99\x2c\x2e\x83\x33\xb9\xf8\x00\xea\x0d\x9f\x0a\x5f\x53\x60\x7e\x30\x89\x42\xe6\x8e\xfe\xf0\x1e\x03\xd7\xcc\xa6\xf1\x96\x87\x2b\xf0\x1f\x43\x6d\x4a\x8e\x05\xfc\x59\xd8\xfb\xc6\xb8\x8a\x16\x6f\x57\xa4\xe9\x9d\x67\xdd\xae\xce\x84\x46\x53\xbe\x77\x81\x97\x47\xdd\x2e\x07\xd5\x81\xc5\x18\xcb\x97\x79\xe9\xf7\x96\x0c\x17\xff\x0b\xae\x71\x0e\xcf\x57\x5b\x09\x59\x1b\x01\x3b\x48\x05\xc8\x8b\x23\x5d\xf2\x62\xe6\x1a\x4c\x94\xf4\x6b\xf9\xa0\x82\x84\x61\x1d\xf4\x4e\xad\xd9\x4f\x44\xce\xf6\x22\x5a\x80\x8e\x21\x1e\x4d\x3a\xf5\xe9\x6b\xce\x64\xa9\x0f\x80\x13\x87\x4f\x10\x74\x9a\x83\x82\xa6\x02\x6a\x85\x5d\x90\x85\x34\x40\xbf\xce\x31\xf2\x58\xb3\xa2\x58\xf7\xb5\xe6\x59\xb4\x3e\x70\x2d\xee\x7c\x24\xc0\x2d\x22\x84", b"\x8d\x35\x7b\x0b\x95\x6f\xb9\x0e\x8e\x0b\x9f\xf2\x84\xce\xdc\x88\xa0\x4d\x17\x1a\x90\xc5\x99\x7d\x8e\xe1\xe9\xbc\x4d\x0b\x35\xff", b"\xab\x37\x32\x9c\x50\x14\x5d\x14\x65\x05\x01\x57\x04\xfd\xc4\xfb\x0f\xd7\x20\x7e\x0b\x11\xd8\xbe\xcb\xad\x93\x4e\x62\x55\xc3\x0c", ); test::( b"\x18\x4e\x59\x9a\x4c\x1d\xe8\x6c\x41\x51\x20\x57\x54\xdf\x0b\x19\x12\xc2\xb3\xc5\x32\x55\x2c\x51\xa6\x1c\x64\x59\xdb\x98\xc8\x3e\x59\xd4\xa4\x08\x06\xc6\xa2\xc6\xb3\xfe\x74\xe3\xbb\x9e\x72\x0d\x7d\x0a\x3c\xc1\x1e\xf8\x89\x59\xa8\x99\x0c\x0f\xa0\x57\xa3\x91\x5f\xe0\xdd\x9a\x13\x8a\xa0\xec\x1c\xb1\xab\x69\xd9\x39\x10\xd8\xd6\xf9\xe1\x4f\x3b\x8a\x13\x5d\x3f\x03\x1a\x56\xc7\x6a\x9d\xc3\xae\xd1\x96\x2b\xdf\x05\x81\x5c\x24\x92\xd1\x4f\x23\x24\xd2\xda\x49\x18\x10\xd1\x67\x2b\x63\x3f\x24\x19\xda\x4e\x7e\xbd\xef\x24", p, q, g, b"\x60\x15\x97\x20\x02\x1f\xd2\xd5\xa2\xf5\x75\xb3\x22\x09\x05\x78\x8d\x32\x8d\x0c\x46\x89\x5a\x46\xbb\x98\x59\x42\x46\x72\x09\xec\x28\xd8\xdd\xfd\xc9\x7e\xc3\x4d\xa6\x5b\x16\x4c\xf4\x86\x52\xac\x47\x5d\x89\x78\x95\x9c\xfc\x43\x30\x74\x3e\xd9\x81\x37\x55\x93\x91\xb1\x20\x4d\xa6\xb2\x6b\x45\x12\x11\x40\x7e\x8f\xc7\x7d\x81\x99\x34\xc4\x87\x09\xc8\xea\xdc\x62\x0f\x6d\xb2\x59\x2b\x65\x48\x32\x65\x14\x9a\x32\x44\x67\xd9\x3c\x37\x5d\x97\x23\x0f\x2b\x1a\x68\x28\x97\xcf\x6d\x28\x0d\xf6\x1a\x34\xf2\x0f\x0c\x7c\x72\x9a\x40\x14\x19\x58\x04\x48\x76\xc4\x4e\x59\x5d\x23\x78\xa7\xd2\x2c\x6c\xda\x9a\xb8\x16\x48\x6c\x29\x4e\x4e\xdd\xea\x7a\xda\x88\xb1\x5e\xca\x53\x71\xda\x16\x44\x71\xed\xaf\xcd\xef\xc6\x54\xe6\x4a\x1f\x99\x50\x68\xfa\x85\xdb\xbb\x55\x16\x13\x7b\xc4\x42\xf6\x07\x17\xfe\x59\xc6\x29\x08\x1c\x23\x4f\x27\x19\x5d\x5f\x9c\x2b\xf8\x5c\xdc\x1e\xa4\xca\xe5\x7a\xa9\x08\xcb\xff\x9b\x2a\x53\x35\x3b\x13\xe9\xf6\xfe\x45\xda\xa5\x17\x4c\xd9\x56\x23\x6d\x44\x7b\x52\x01\x1d\x68\x8c\xd2\x2f\x23\x01\x84\x09\xb3\x9a\x36\x07\x9c\xb5\x3e\x03\xb6\xd3\xa7\x52\x73\x32\x97\xfe\xa4\xca\x27\xc6\x39\x5b\xec\xef\x40\x81\xd2\x01\xf4\x1d\x4a\x00\xe9\x9d\x95\xf4\x22\x81\xdc\xf4\x4b\x9e\xf6\x75\x49\x98\xd9\x42\x31\x93\x7c\x82\x59\x42\x18\xa7\x84\x63\xcc\x83\x71\x93\xde\x6b\xf1\xd3\xc3\xec\x31\xd8\xdc\x54\x68\xcb\x56\xde\xfc\x9c\x70\xd0\x8b\x95\xb0\x29\xd9\x7a\xa0\x43\xd5\x57\xf6\x28\x6b\x87\xee\x40\x98\x44\x2d\xf4\x95\xc0\xad\x8a\xe4\xd4\xae\x03\x73\x12\xc5\xf7\x23\x90\x32\xc0\x3b\x08\x8c\x10\x36\xfa\xd7\x77\x4b\x15\x19\x70\x92\x42\xc9\x51\x1e\x6e", b"\x07\x9d\x4d\xf1\x4a\xd7\x03\xa4\x35\xb2\x1b\xc7\x0a\x03\x45\x6c\xa8\x22\xb8\x76\xc9\xac\xcb\x01\x8b\xdd\xd6\x74\xbd\x63\x92\xd7", b"\x6c\x77\x65\xe1\xf1\xed\xdf\x91\x5a\x56\xa5\x73\x90\xdb\x45\x63\x6e\x52\xf0\x83\xce\x44\x07\x66\xad\x4f\x32\x58\x0f\x72\x24\x83", ); test::( b"\xb1\x89\xdd\x34\xf5\x8f\x3e\xfa\x85\xb6\xf9\x76\x77\xed\xfb\x82\x66\x4c\xbe\x43\xa2\x55\x0c\x33\x6f\xfa\x08\x70\x5b\xbd\xa2\x54\x5e\xf2\x44\xa2\x75\x01\x4c\x6a\x26\x59\x71\xf4\xc3\x65\x8e\x5e\x8d\x6a\x3f\xaf\xc8\x89\xf3\xc4\xed\xa6\xb5\x61\x60\x92\x95\x4b\x15\xc6\x04\x35\xef\xd7\x68\x06\xe2\x85\x57\xc0\x5f\xaa\xaa\x8a\x05\xc2\x62\x65\x78\x40\x86\x5f\xf6\x9c\x51\x1a\x68\xd1\x30\x22\xa7\x12\xd3\x5b\xde\x13\x8e\xb7\xa2\xf8\xf1\xa8\x7b\x34\x2c\x7c\xaf\x38\x8c\x1a\x8b\x95\x07\x9b\xc4\xa8\x00\x3e\xef\x84\xb8\x99", p, q, g, b"\x05\xe2\x80\x31\x08\x10\x71\x5d\x29\xea\x1c\xa0\x0a\x70\x03\x78\xbd\x59\x79\x49\x3b\x98\x03\x17\x4c\x93\x2b\x7d\xad\xb7\x02\x9a\x9a\x9f\x9c\x91\xcf\x8f\x93\x8a\xf2\xbc\xea\xa0\x52\xf2\x27\x3f\x0d\xe3\x93\xb0\xf7\x54\x44\x90\xd6\x93\xf5\x29\xa6\x8b\x81\x2e\x2e\x58\x9c\xc0\x92\xb8\x3e\xf8\x47\xc5\x30\x60\x39\xaa\x8e\xaf\x22\x51\x28\x92\x61\x45\x89\x3a\x51\x55\x1d\xb3\x82\xfd\xa4\xb6\x3e\x5a\xbc\x10\xfd\x07\x61\x00\x68\x4d\x4c\xa6\x57\xc8\x9b\x22\x65\xde\x6e\x0f\x04\x73\xf0\x1b\xb2\x22\xb2\xbc\x50\xec\x1c\x5f\xcd\xe9\x16\x18\x31\x01\x8a\xab\x30\x14\xa9\x56\x03\x3b\xb0\xa8\x38\x66\xdf\x11\x91\x58\x08\xf9\xe7\x46\x16\x45\xc8\x9c\x6e\x17\xab\x65\xdb\xf9\x7c\xbf\x4a\xc1\x16\x4d\x67\x1a\x15\x16\xca\x81\x64\x5b\xc3\xe0\x99\x13\xa0\x3f\x30\x64\x1b\xd0\x92\x00\x83\x57\x8c\xa8\x4d\xf7\x1f\x62\xeb\x75\x6b\xa4\x45\xa0\xdc\x44\xf8\x5a\x9e\x4f\x72\xce\x5f\x6b\xf8\x2c\xcb\xd6\x74\xd2\xce\x3c\x4a\xfc\x30\x05\x62\xa7\xdb\xd3\xe8\xab\x83\x89\x93\xf9\xde\xcc\x99\x33\xdc\x07\xdc\x01\xb5\x02\xfe\xe5\xb3\x90\x46\x1a\x8c\x82\xc4\xe6\x96\x15\xf1\x21\xb3\xf9\xfd\x4f\x0c\x8b\x76\x20\xa2\x59\x96\xdf\x43\xd7\xcf\x35\x5f\x15\xbe\x09\xe2\xc8\x21\x78\xc6\xf8\x83\x6c\x36\xc1\xd3\xef\x26\xad\x05\x21\x9f\xb5\x7e\x85\xef\x16\x2c\x8d\xd8\xf0\xe5\x50\x14\x76\x9d\x53\xcb\xa4\x78\xa2\xaa\x66\xd9\x0d\x8a\xcd\x6c\xb0\x48\x9d\x1e\xea\x46\xc2\xc4\x1b\xd5\x49\x5a\xb8\xde\xf4\x3b\x2c\xd5\xbb\x26\x73\x94\x5c\x21\xc8\x0a\x48\x33\xfd\x75\xd8\x84\xc7\x67\x5c\x09\xe7\x19\x1f\xb2\x6e\x92\xc5\x4c\x7c\x82\x08\xd0\xa0\xe8\xde\xe7\x5c\x29\x68\xe9\x62\xde\x44\x93\xe8", b"\x9f\xd1\x05\xc7\x4a\x0d\x36\x97\x37\x40\x86\x7c\xcc\x1c\x73\x1c\xf1\xc5\x0c\x79\x35\xd5\xc0\x9e\x92\xf5\x74\xd7\xa5\x69\x15\x7e", b"\x50\x1f\x50\xc3\x2b\x02\x88\x67\x2e\x02\xac\xa7\x8f\x90\xf4\x46\xac\xf9\x26\x26\x36\x59\x57\xa3\x75\x55\x0c\x77\x98\x0c\x3c\x17", ); test::( b"\x42\xc0\x65\xfa\xdd\x56\xd6\xa1\xfe\x68\xdd\x4e\x86\xc1\x7e\xfd\x76\xd0\xf9\xdb\x87\x03\x6b\xd7\xb6\x09\x15\x9d\x66\x84\x7f\x46\xde\x01\xb8\xae\x43\x59\x03\x60\xfa\x32\x45\x59\xa2\xd7\x09\xd4\x5c\xf0\x10\x34\xf5\xfa\xcb\x7f\x52\x32\x4e\x60\xdd\x46\x4a\x58\x3d\x42\xe4\x12\x65\x9d\x84\x20\xf7\x26\x5e\x30\xcf\x82\xbb\xbc\xb2\xc9\x9b\x0f\x00\xca\x6a\x46\xd2\x85\x56\x42\x87\x89\xf4\x15\x00\x0d\xc3\x1b\xab\xbd\x67\xcc\xc8\xfb\xaa\x84\xa8\x80\x46\x6b\xca\x47\x83\xea\xf0\x0b\x7f\x78\x23\x1c\x66\x71\x26\x43\x3e\x6a", p, q, g, b"\xb2\x65\xed\xfe\xd7\x7b\x3a\xd5\x11\xe5\x6d\x58\x31\x29\xb1\x2e\x57\x96\xd6\x59\xd4\x84\xa2\xfc\xe3\x50\x66\x1f\x79\xe5\x45\xdd\x0a\x06\xc2\x37\x74\xc8\xba\x2f\xb5\x10\x1a\x28\x48\xc4\x13\xdf\xc5\xb3\x74\xa7\xc5\xff\x3a\xcc\x73\x32\xf0\xff\x8b\xd6\xf5\xfa\x88\x2c\x0a\x67\x68\x93\x08\xbe\x71\x54\xc4\xef\xc5\x18\x35\xf3\x49\x52\x54\x19\xed\x72\x2a\x90\xbf\x26\xdd\xde\xd6\x5b\xc8\x96\x2b\xa1\x1d\xe9\xe7\x34\x44\x25\x71\xaf\xfc\x2d\x42\xb9\xf3\xf5\x4a\x46\x53\x5a\xe9\xeb\x01\x36\x1a\xdf\x03\xfc\x28\x41\x0a\xbf\x41\xdb\x3a\xe4\x11\x3d\xa4\xc4\x0e\x9a\x36\x8f\x9c\xd0\x29\xbe\x4d\x98\xc6\x6d\x83\x5d\x03\x4e\x3c\x86\x54\x4b\x60\xbc\xb0\x1f\xeb\x38\x3b\x2a\xdd\x9a\xfe\x7b\x62\x51\xa1\x7a\xd4\xe5\x43\x9a\x9c\xd2\xd1\xbf\x62\xb6\xcf\x53\x77\xc0\x97\xb7\x26\x8b\xd7\x36\xcc\xa9\xce\xb8\x22\xe5\xd1\x84\x4a\x09\xfa\x69\xc7\x82\x17\xc3\xd6\x73\x7f\x0b\xf4\x5e\x32\x36\x50\x8b\x5a\x3f\x5c\x46\x6d\xd0\xd7\x5a\xce\x95\xd4\x47\xf9\xbd\x7a\xa9\xee\x57\xbd\x10\xee\x3c\x5e\x83\x89\xa0\x6c\x00\x85\x7e\x69\x97\x94\xf5\xca\xcc\x7d\xc5\xbb\x15\x04\x42\x1d\xc9\x20\x56\x56\x18\xbe\xf0\x5d\xc1\x71\x3b\x6f\x08\xbc\x00\x68\x1c\x5a\x1c\x06\x85\x35\x97\x29\xfe\x4b\x54\x40\x90\xcc\xce\xaa\x82\xf4\xfe\xfa\x9f\x11\x17\xbf\x1e\x37\x1b\x99\xfe\x4e\xd7\x16\x35\xda\xd4\x15\x01\x7a\x62\x34\x1d\x70\x42\x27\xee\x7c\xfb\x64\xa8\xde\xae\x90\xd8\x6c\x0c\xfd\x37\xed\x36\x3d\x91\xa4\xa0\x6f\xd0\x6f\x64\xdb\xd8\x14\x2c\x12\x50\x3f\x49\xee\xb1\xb9\xa9\x71\xae\xb3\x43\xf1\x5c\xd2\x7d\x27\x9b\x99\xd4\xcf\xa5\x1f\x12\x12\x59\xb3\xc1\xb5\x5d\x28\xd9\x94\xbb\x32\x99", b"\x6e\xd8\x2a\xf8\xe8\x9e\x38\xc4\x9a\x58\x01\x0f\x05\x64\x16\x5a\x16\xa7\x6a\x2b\xfb\x34\x84\x66\xd9\xb4\xa9\x1e\x5c\xe5\x3a\xb2", b"\x8c\x46\x6a\x8b\x3e\x4c\x90\x88\x6f\x29\x98\x6a\x4d\x51\x39\x04\xf3\x1d\xb4\x3a\x68\xce\x88\x03\x11\x40\x3c\xc7\x55\x46\x66\x04", ); } } nettle-7.1.0/src/dsa/signature.rs000064400000000000000000000034530072674642500150660ustar 00000000000000use nettle_sys::{ __gmpz_set, dsa_signature, nettle_dsa_signature_clear, nettle_dsa_signature_init, nettle_mpz_set_str_256_u, }; use std::mem::zeroed; use crate::helper::convert_gmpz_to_buffer; /// (EC)DSA signature. pub struct Signature { pub(crate) signature: dsa_signature, } impl Signature { /// Create a new signature structure. /// /// Both `r` and `s` need to be big endian integer. pub fn new(r: &[u8], s: &[u8]) -> Signature { unsafe { let mut ret = zeroed(); nettle_dsa_signature_init(&mut ret); nettle_mpz_set_str_256_u(&mut ret.r[0], r.len(), r.as_ptr()); nettle_mpz_set_str_256_u(&mut ret.s[0], s.len(), s.as_ptr()); Signature { signature: ret } } } /// Returns `r` as big endian integer. pub fn r(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.signature.r[0]) } /// Returns `s` as big endian integer. pub fn s(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.signature.s[0]) } } impl Clone for Signature { fn clone(&self) -> Self { unsafe { let mut ret = zeroed(); nettle_dsa_signature_init(&mut ret); __gmpz_set(&mut ret.r[0], &self.signature.r[0]); __gmpz_set(&mut ret.s[0], &self.signature.s[0]); Signature { signature: ret } } } } impl Drop for Signature { fn drop(&mut self) { unsafe { nettle_dsa_signature_clear(&mut self.signature as *mut _); } } } #[cfg(test)] mod tests { use super::*; #[test] fn new_signature() { let r = &['r' as u8; 12]; let s = &['s' as u8; 12]; let sig = Signature::new(r, s); assert_eq!(sig.r().as_ref(), r); assert_eq!(sig.s().as_ref(), s); } } nettle-7.1.0/src/ecc/curves.rs000064400000000000000000000041440072674642500143550ustar 00000000000000use nettle_sys::{ ecc_curve, nettle_ecc_bit_size, nettle_get_secp_192r1, nettle_get_secp_224r1, nettle_get_secp_256r1, nettle_get_secp_384r1, nettle_get_secp_521r1, }; /// Elliptic curve for ECDSA. pub trait Curve { /// Returns a pointer to the Nettle curve structure. unsafe fn get_curve() -> *const ecc_curve; /// Returns the size of the underlying groups prime in bits. unsafe fn bit_size() -> u32 { nettle_ecc_bit_size(Self::get_curve()) } } /// NIST secp192r1 a.k.a. P-192. pub struct Secp192r1; impl Curve for Secp192r1 { unsafe fn get_curve() -> *const ecc_curve { nettle_get_secp_192r1() } } /// NIST secp224r1 a.k.a. P-224. pub struct Secp224r1; impl Curve for Secp224r1 { unsafe fn get_curve() -> *const ecc_curve { nettle_get_secp_224r1() } } /// NIST secp256r1 a.k.a. P-256. pub struct Secp256r1; impl Curve for Secp256r1 { unsafe fn get_curve() -> *const ecc_curve { nettle_get_secp_256r1() } } /// NIST secp384r1 a.k.a. P-384. pub struct Secp384r1; impl Curve for Secp384r1 { unsafe fn get_curve() -> *const ecc_curve { nettle_get_secp_384r1() } } /// NIST secp521r1 a.k.a. P-521. pub struct Secp521r1; impl Curve for Secp521r1 { unsafe fn get_curve() -> *const ecc_curve { nettle_get_secp_521r1() } } #[cfg(test)] mod tests { use super::*; #[test] fn curve() { unsafe { assert_eq!(Secp192r1::get_curve(), nettle_get_secp_192r1()); assert_eq!(Secp224r1::get_curve(), nettle_get_secp_224r1()); assert_eq!(Secp256r1::get_curve(), nettle_get_secp_256r1()); assert_eq!(Secp384r1::get_curve(), nettle_get_secp_384r1()); assert_eq!(Secp521r1::get_curve(), nettle_get_secp_521r1()); } } #[test] fn bit_size() { unsafe { assert_eq!(Secp192r1::bit_size(), 192); assert_eq!(Secp224r1::bit_size(), 224); assert_eq!(Secp256r1::bit_size(), 256); assert_eq!(Secp384r1::bit_size(), 384); assert_eq!(Secp521r1::bit_size(), 521); } } } nettle-7.1.0/src/ecc/mod.rs000064400000000000000000000003030072674642500136160ustar 00000000000000//! Types for ECs in Weierstraß form. mod types; pub use self::types::{Point, Scalar}; mod curves; pub use self::curves::{ Curve, Secp192r1, Secp224r1, Secp256r1, Secp384r1, Secp521r1, }; nettle-7.1.0/src/ecc/types.rs000064400000000000000000000166700072674642500142210ustar 00000000000000use nettle_sys::{ __gmpz_clear, __gmpz_init, ecc_point, ecc_scalar, nettle_ecc_point_clear, nettle_ecc_point_get, nettle_ecc_point_init, nettle_ecc_point_set, nettle_ecc_scalar_clear, nettle_ecc_scalar_get, nettle_ecc_scalar_init, nettle_ecc_scalar_set, }; use std::mem::zeroed; use crate::errors::Error; use crate::{helper, ecc::Curve, random::Random, Result}; /// Secret scalar. pub struct Scalar { pub(crate) scalar: ecc_scalar, } impl Scalar { /// Creates a new private scalar based on the big endian integer `num`. pub fn new(num: &[u8]) -> Result { unsafe { let mut scalar: ecc_scalar = zeroed(); nettle_ecc_scalar_init(&mut scalar as *mut _, C::get_curve()); let mut mpz = helper::convert_buffer_to_gmpz(num); if nettle_ecc_scalar_set(&mut scalar as *mut _, &mut mpz) == 1 { __gmpz_clear(&mut mpz as *mut _); Ok(Scalar { scalar: scalar }) } else { __gmpz_clear(&mut mpz as *mut _); nettle_ecc_scalar_clear(&mut scalar as *mut _); Err(Error::InvalidArgument { argument_name: "num" }) } } } /// Creates a new random scalar between 1 and the group order of `C`. pub fn new_random(rng: &mut R) -> Self where C: Curve, R: Random, { let bits = unsafe { C::bit_size() }; let bytes = if bits % 8 > 0 { 1 } else { 0 } + bits / 8; let mut buf = vec![0u8; bytes as usize]; loop { rng.random(&mut buf); if let Ok(sc) = Scalar::new::(&buf) { return sc } } } /// Returns the private scalar as big endian integer. pub fn as_bytes(&self) -> Box<[u8]> { unsafe { let mut mpz = zeroed(); __gmpz_init(&mut mpz as *mut _); nettle_ecc_scalar_get(&self.scalar as *const _, &mut mpz); let ret = helper::convert_gmpz_to_buffer(mpz); __gmpz_clear(&mut mpz); ret } } } impl Clone for Scalar { fn clone(&self) -> Self { unsafe { // XXX: no nettle_ecc_scalar_copy() let buf = self.as_bytes(); let mut mpz = helper::convert_buffer_to_gmpz(&*buf); let mut ret: ecc_scalar = zeroed(); nettle_ecc_scalar_init(&mut ret, self.scalar.ecc); assert_eq!(nettle_ecc_scalar_set(&mut ret, &mut mpz), 1); __gmpz_clear(&mut mpz); Scalar { scalar: ret } } } } impl Drop for Scalar { fn drop(&mut self) { unsafe { nettle_ecc_scalar_clear(&mut self.scalar as *mut _); } } } /// Public point. pub struct Point { pub(crate) point: ecc_point, } impl Point { /// Creates a new point on `C` with coordinates `x` & `y`. /// /// Can fail if the given point is not on the curve. pub fn new(x: &[u8], y: &[u8]) -> Result { unsafe { let mut point: ecc_point = zeroed(); nettle_ecc_point_init(&mut point as *mut _, C::get_curve()); let mut x_mpz = helper::convert_buffer_to_gmpz(x); let mut y_mpz = helper::convert_buffer_to_gmpz(y); if nettle_ecc_point_set( &mut point as *mut _, &mut x_mpz, &mut y_mpz, ) == 1 { __gmpz_clear(&mut x_mpz as *mut _); __gmpz_clear(&mut y_mpz as *mut _); Ok(Point { point: point }) } else { nettle_ecc_point_clear(&mut point as *mut _); __gmpz_clear(&mut x_mpz as *mut _); __gmpz_clear(&mut y_mpz as *mut _); Err(Error::InvalidArgument { argument_name: "x or y" }) } } } /// Returns the points coordinates as big endian integers. pub fn as_bytes(&self) -> (Box<[u8]>, Box<[u8]>) { unsafe { let mut x_mpz = zeroed(); let mut y_mpz = zeroed(); __gmpz_init(&mut x_mpz as *mut _); __gmpz_init(&mut y_mpz as *mut _); nettle_ecc_point_get( &self.point as *const _, &mut x_mpz, &mut y_mpz, ); let x_ret = helper::convert_gmpz_to_buffer(x_mpz); let y_ret = helper::convert_gmpz_to_buffer(y_mpz); __gmpz_clear(&mut x_mpz as *mut _); __gmpz_clear(&mut y_mpz as *mut _); (x_ret, y_ret) } } } impl Clone for Point { fn clone(&self) -> Self { unsafe { let (buf_x, buf_y) = self.as_bytes(); let mut mpz_x = helper::convert_buffer_to_gmpz(&*buf_x); let mut mpz_y = helper::convert_buffer_to_gmpz(&*buf_y); let mut ret: ecc_point = zeroed(); nettle_ecc_point_init(&mut ret, self.point.ecc); assert_eq!( nettle_ecc_point_set(&mut ret, &mut mpz_x, &mut mpz_y), 1 ); __gmpz_clear(&mut mpz_x); __gmpz_clear(&mut mpz_y); Point { point: ret } } } } impl Drop for Point { fn drop(&mut self) { unsafe { nettle_ecc_point_clear(&mut self.point as *mut _); } } } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; use crate::ecc::{Secp192r1, Secp224r1, Secp256r1, Secp384r1, Secp521r1}; #[test] fn random_scalar() { let mut rng = Yarrow::default(); let sc1 = Scalar::new_random::(&mut rng).as_bytes(); let sc2 = Scalar::new_random::(&mut rng).as_bytes(); assert!(sc1 != sc2); let sc1 = Scalar::new_random::(&mut rng).as_bytes(); let sc2 = Scalar::new_random::(&mut rng).as_bytes(); assert!(sc1 != sc2); let sc1 = Scalar::new_random::(&mut rng).as_bytes(); let sc2 = Scalar::new_random::(&mut rng).as_bytes(); assert!(sc1 != sc2); let sc1 = Scalar::new_random::(&mut rng).as_bytes(); let sc2 = Scalar::new_random::(&mut rng).as_bytes(); assert!(sc1 != sc2); let sc1 = Scalar::new_random::(&mut rng).as_bytes(); let sc2 = Scalar::new_random::(&mut rng).as_bytes(); assert!(sc1 != sc2); } #[test] fn clone_scalar() { let mut rng = Yarrow::default(); let sc1 = Scalar::new_random::(&mut rng); let sc2 = sc1.clone(); assert_eq!(sc1.as_bytes(), sc2.as_bytes()); } #[test] fn clone_point() { // From ecdh::tests::nist_p_192 { let point1 = Point::new::( &b"\x42\xea\x6d\xd9\x96\x9d\xd2\xa6\x1f\xea\x1a\xac\x7f\x8e\x98\xed\xcc\x89\x6c\x6e\x55\x85\x7c\xc0"[..], &b"\xdf\xbe\x5d\x7c\x61\xfa\xc8\x8b\x11\x81\x1b\xde\x32\x8e\x8a\x0d\x12\xbf\x01\xa9\xd2\x04\xb5\x23"[..]).unwrap(); let point2 = point1.clone(); assert_eq!(point1.as_bytes(), point2.as_bytes()); } #[test] #[should_panic] fn point_new_not_on_curve() { let _ = Point::new::( &b"\x00\xea\x6d\xd9\x96\x9d\xd2\xa6\x1f\xea\x1a\xac\x7f\x8e\x98\xed\xcc\x89\x6c\x6e\x55\x85\x7c\xc0"[..], &b"\xdf\xbe\x5d\x7c\x61\xfa\xc8\x8b\x11\x81\x1b\xde\x32\x8e\x8a\x0d\x12\xbf\x01\xa9\xd2\x04\xb5\x23"[..]).unwrap(); } } nettle-7.1.0/src/ecdh.rs000064400000000000000000005732050072674642500132300ustar 00000000000000//! Diffie-Helman over ECs in Weierstraß form. use nettle_sys::{ ecc_point, nettle_ecc_point_init, nettle_ecc_point_mul, nettle_ecc_point_mul_g, }; use std::mem::zeroed; use crate::{ Error, Result, ecc::{Point, Scalar}, }; /// Derive ECDH shared secret. /// /// Computes the shared secret for our private key `scalar` and the other parties public key `point`. /// Results an error if `scalr` and `point` are not on the same curve. pub fn point_mul(scalar: &Scalar, point: &Point) -> Result { if scalar.scalar.ecc != point.point.ecc { return Err(Error::InconsistentCurves); } unsafe { let mut ret: ecc_point = zeroed(); nettle_ecc_point_init(&mut ret as *mut _, scalar.scalar.ecc); nettle_ecc_point_mul(&mut ret, &scalar.scalar, &point.point); Ok(Point { point: ret }) } } /// Derive ECDH public key. /// /// Computes the public key for a given secret `scalar`. pub fn point_mul_g(scalar: &Scalar) -> Point { unsafe { let mut ret: ecc_point = zeroed(); nettle_ecc_point_init(&mut ret as *mut _, scalar.scalar.ecc); nettle_ecc_point_mul_g(&mut ret, &scalar.scalar); Point { point: ret } } } #[cfg(test)] mod tests { use super::*; use crate::ecc::{Secp192r1, Secp224r1, Secp256r1, Secp384r1, Secp521r1}; #[test] fn nist_p_192() { { let cav_pub = Point::new::( &b"\x42\xea\x6d\xd9\x96\x9d\xd2\xa6\x1f\xea\x1a\xac\x7f\x8e\x98\xed\xcc\x89\x6c\x6e\x55\x85\x7c\xc0"[..], &b"\xdf\xbe\x5d\x7c\x61\xfa\xc8\x8b\x11\x81\x1b\xde\x32\x8e\x8a\x0d\x12\xbf\x01\xa9\xd2\x04\xb5\x23"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf1\x7d\x3f\xea\x36\x7b\x74\xd3\x40\x85\x1c\xa4\x27\x0d\xcb\x24\xc2\x71\xf4\x45\xbe\xd9\xd5\x27"[..]).unwrap(); let iut_pub = Point::new::( &b"\xb1\x50\x53\x40\x1f\x57\x28\x56\x37\xec\x32\x4c\x1c\xd2\x13\x9e\x3a\x67\xde\x37\x39\x23\x4b\x37"[..], &b"\xf2\x69\xc1\x58\x63\x74\x82\xaa\xd6\x44\xcd\x69\x2d\xd1\xd3\xef\x2c\x8a\x7c\x49\xe3\x89\xf7\xf6"[..]).unwrap(); let z = &b"\x80\x3d\x8a\xb2\xe5\xb6\xe6\xfc\xa7\x15\x73\x7c\x3a\x82\xf7\xce\x3c\x78\x31\x24\xf6\xd5\x1c\xd0"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\xde\xb5\x71\x2f\xa0\x27\xac\x8d\x2f\x22\xc4\x55\xcc\xb7\x3a\x91\xe1\x7b\x65\x12\xb5\xe0\x30\xe7"[..], &b"\x7e\x26\x90\xa0\x2c\xc9\xb2\x87\x08\x43\x1a\x29\xfb\x54\xb8\x7b\x1f\x0c\x14\xe0\x11\xac\x21\x25"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x56\xe8\x53\x34\x9d\x96\xfe\x4c\x44\x24\x48\xda\xcb\x7c\xf9\x2b\xb7\xa9\x5d\xcf\x57\x4a\x9b\xd5"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc0\x0d\x43\x57\x16\xff\xea\x53\xfd\x8c\x16\x27\x92\x41\x4c\x37\x66\x51\x87\xe5\x82\x71\x65\x39"[..], &b"\xab\x71\x1c\x62\xaa\x71\xa5\xa1\x8e\x8a\x3c\x48\xf8\x9d\xc6\xfa\x52\xfa\xc0\x10\x8e\x52\xa8\xa0"[..]).unwrap(); let z = &b"\xc2\x08\x84\x75\x68\xb9\x88\x35\xd7\x31\x2c\xef\x1f\x97\xf7\xaa\x29\x82\x83\x15\x23\x13\xc2\x9d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x4e\xda\xa8\xef\xc5\xa0\xf4\x0f\x84\x36\x63\xec\x58\x15\xe7\x76\x2d\xdd\xc0\x08\xe6\x63\xc2\x0f"[..], &b"\x0a\x9f\x8d\xc6\x7a\x3e\x60\xef\x6d\x64\xb5\x22\x18\x5d\x03\xdf\x1f\xc0\xad\xfd\x42\x47\x82\x79"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xc6\xef\x61\xfe\x12\xe8\x0b\xf5\x6f\x2d\x3f\x7d\x0b\xb7\x57\x39\x45\x19\x90\x6d\x55\x50\x09\x49"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe1\x84\xbc\x18\x24\x82\xf3\x40\x3c\x87\x87\xb8\x38\x42\x47\x74\x67\xfc\xd0\x11\xdb\x0f\x6c\x64"[..], &b"\xf9\xd1\xc1\x41\x42\xf4\x0d\xe8\x63\x9d\xb9\x7d\x51\xa6\x3d\x2c\xce\x10\x07\xcc\xf7\x73\xcd\xcb"[..]).unwrap(); let z = &b"\x87\x22\x91\x07\x04\x7a\x3b\x61\x19\x20\xd6\xe3\xb2\xc0\xc8\x9b\xea\x4f\x49\x41\x22\x60\xb8\xdd"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x88\x87\xc2\x76\xed\xee\xd3\xe9\xe8\x66\xb4\x6d\x58\xd8\x95\xc7\x3f\xbd\x80\xb6\x3e\x38\x2e\x88"[..], &b"\x04\xc5\x09\x7b\xa6\x64\x5e\x16\x20\x6c\xfb\x70\xf7\x05\x26\x55\x94\x7d\xd4\x4a\x17\xf1\xf9\xd5"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xe6\x74\x7b\x9c\x23\xba\x70\x44\xf3\x8f\xf7\xe6\x2c\x35\xe4\x03\x89\x20\xf5\xa0\x16\x3d\x3c\xda"[..]).unwrap(); let iut_pub = Point::new::(&b"\x2b\x83\x8d\xbe\x73\x73\x5f\x37\xa3\x9a\x78\xd3\x19\x57\x83\xd2\x69\x91\xe8\x6f\xf4\xd9\x2d\x1a"[..], &b"\x60\xd3\x44\x94\x22\x74\x48\x9f\x98\x90\x3b\x2e\x7f\x93\xf8\xd1\x97\xfc\x9a\xe6\x0a\x0e\xd5\x3a"[..]).unwrap(); let z = &b"\xee\xc0\xbe\xd8\xfc\x55\xe1\xfe\xdd\xc8\x21\x58\xfd\x6d\xc0\xd4\x8a\x4d\x79\x6a\xaf\x47\xd4\x6c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x0d\x04\x5f\x30\x25\x4a\xdc\x1f\xce\xfa\x8a\x5b\x1f\x31\xbf\x4e\x73\x9d\xd3\x27\xcd\x18\xd5\x94"[..], &b"\x54\x2c\x31\x4e\x41\x42\x7c\x08\x27\x8a\x08\xce\x8d\x73\x05\xf3\xb5\xb8\x49\xc7\x2d\x8a\xff\x73"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xbe\xab\xed\xd0\x15\x4a\x1a\xfc\xfc\x85\xd5\x21\x81\xc1\x0f\x5e\xb4\x7a\xdc\x51\xf6\x55\x04\x7d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x1f\x65\xcf\x6e\x89\x78\xe1\xc1\xbc\x10\xbb\x61\xa7\xdb\x31\x1d\xe3\x10\x08\x8c\x8c\xf9\x76\x8b"[..], &b"\xf7\xd4\x38\x16\x8e\x7f\x42\xab\x14\xb1\x6a\xf5\x3a\x7a\x2f\x64\x6f\xf4\x0b\x53\xd7\x4c\xbc\xc7"[..]).unwrap(); let z = &b"\x71\x6e\x74\x3b\x1b\x37\xa2\xcd\x84\x79\xf0\xa3\xd5\xa7\x4c\x10\xba\x25\x99\xbe\x18\xd7\xe2\xf4"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\xfb\x35\xca\x20\xd2\xe9\x66\x65\xc5\x1b\x98\xe8\xf6\xeb\x3d\x79\x11\x35\x08\xd8\xbc\xcd\x45\x16"[..], &b"\x36\x8e\xec\x0d\x5b\xfb\x84\x77\x21\xdf\x6a\xaf\xf0\xe5\xd4\x8c\x44\x4f\x74\xbf\x9c\xd8\xa5\xa7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xcf\x70\x35\x42\x26\x66\x73\x21\xd6\xe2\xba\xf4\x09\x99\xe2\xfd\x74\xc7\xa0\xf7\x93\xfa\x86\x99"[..]).unwrap(); let iut_pub = Point::new::(&b"\x5f\x48\x44\xff\xcc\xe6\x10\x05\xd2\x4f\x73\x7d\xb9\x86\x75\xe9\x2f\x7b\x65\x43\xae\xb6\x10\x6c"[..], &b"\x54\x24\xf5\x98\x13\x92\x15\xd3\x89\xb6\xb1\x2b\x86\xd5\x80\x14\x85\x7f\x2d\xda\xdb\x54\x0f\x51"[..]).unwrap(); let z = &b"\xf6\x70\x53\xb9\x34\x45\x99\x85\xa3\x15\xcb\x01\x7b\xf0\x30\x28\x91\x79\x8d\x45\xd0\xe1\x95\x08"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x82\x47\x52\x96\x0c\x13\x07\xe5\xf1\x3a\x83\xda\x21\xc7\x99\x8c\xa8\xb5\xb0\x0b\x95\x49\xf6\xd0"[..], &b"\xbc\x52\xd9\x1e\x23\x43\x63\xbc\x32\xee\x0b\x67\x78\xf2\x5c\xd8\xc1\x84\x75\x10\xf4\x34\x8b\x94"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xfe\x94\x25\x15\x23\x7f\xff\xdd\x7b\x4e\xb5\xc6\x49\x09\xee\xe4\x85\x6a\x07\x6c\xdf\x12\xba\xe2"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe6\x36\x9d\xf7\x9b\x20\x7b\x8b\x86\x79\xf7\xc8\x69\xcf\xc2\x64\x85\x9d\x1a\xb5\x5a\xa4\x01\xe8"[..], &b"\x1f\x99\xc7\x1f\x80\x1a\x30\xb5\x2f\x74\xda\x6e\x5e\x6d\xbb\x62\xee\x4c\x5d\xa1\x09\x0c\xc0\x20"[..]).unwrap(); let z = &b"\x75\x82\x29\x71\x19\x3e\xdd\x47\x2b\xf3\x01\x51\xa7\x82\x61\x9c\x55\xad\x0b\x27\x9c\x93\x03\xdd"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x10\xbb\x57\x02\x02\x91\x14\x19\x81\xf8\x33\xb4\x74\x9e\x56\x11\x03\x4b\x30\x8e\x84\x01\x1d\x21"[..], &b"\xe1\xca\xcd\x6b\x7b\xd1\x7e\xd8\xdd\xb5\x0b\x6a\xee\x06\x54\xc3\x5f\x2d\x0e\xdd\xc1\xcf\xfc\xf6"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x33\xfe\xd1\x04\x92\xaf\xa5\xbe\xa0\x33\x3c\x0a\xf1\x2c\xac\x94\x0c\x4d\x22\x24\x55\xbc\xd0\xfe"[..]).unwrap(); let iut_pub = Point::new::(&b"\xef\x0b\x28\xaf\xc4\x16\x37\xd7\x37\xf4\x2e\x4c\x8a\xac\xea\xdc\x84\xba\x2e\x0b\x84\x9c\xa1\x8c"[..], &b"\x57\x79\x79\x42\xe5\x52\x17\x3b\xba\x17\xf7\x32\x78\xe0\x29\xf4\x23\x35\x06\x8b\xd7\x70\xdd\xf2"[..]).unwrap(); let z = &b"\x67\xcb\xa2\xcb\xb6\x9e\xe7\x8b\xf1\xab\xaf\xb0\xe6\xfb\xe3\x3f\xa2\x09\x4c\x12\x8d\x59\x65\x2d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x51\x92\xfc\xe4\x18\x5a\x77\x58\xea\x1b\xc5\x6e\x0e\x4f\x4e\x8b\x2d\xce\x32\x34\x8d\x0d\xce\xd1"[..], &b"\x20\x98\x99\x81\xbe\xaa\xf0\x00\x6d\x88\xa9\x6e\x79\x71\xa2\xfa\x3a\x33\xba\x46\x04\x7f\xc7\xba"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf3\x55\x7c\x5d\x70\xb4\xc7\x95\x49\x60\xc3\x35\x68\x77\x6a\xdb\xe8\xe4\x36\x19\xab\xe2\x6b\x13"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd7\x01\x12\xc5\xf0\xf0\x84\x43\x86\x49\x4a\xc1\xad\x99\xdc\xe2\x21\x41\x34\x17\x6e\xbf\xb9\xaf"[..], &b"\xd3\xc1\x87\xa0\x38\x51\x0a\xb3\x1d\x45\x9e\x2b\x7a\xf1\xa3\x80\xdd\x75\x76\xaf\x06\x26\x75\x48"[..]).unwrap(); let z = &b"\xcf\x99\xa2\x77\x0a\x38\x6c\xa0\x13\x7d\x1e\xca\x0a\x22\x6e\x48\x42\x97\xac\x3c\x51\x3f\x36\x31"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x26\xd0\x19\xdb\xe2\x79\xea\xd0\x1e\xed\x14\x3a\x91\x60\x1a\xda\x26\xe2\xf4\x22\x25\xb1\xc6\x2b"[..], &b"\x6c\xa6\x53\xf0\x82\x72\xe0\x38\x6f\xc9\x42\x1f\xbd\x58\x00\x93\xd7\xae\x63\x01\xbc\xa9\x44\x76"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x58\x6c\xfb\xa1\xc6\xe8\x17\x66\xed\x52\x82\x8f\x17\x7b\x1b\xe1\x4e\xbb\xc5\xb8\x33\x48\xc3\x11"[..]).unwrap(); let iut_pub = Point::new::(&b"\x58\xb3\xc6\x3e\x56\xbe\xc9\xd6\x96\xbf\x9a\x88\xdf\x28\x73\x73\x83\x91\xf7\x63\x68\xaa\x2b\x49"[..], &b"\x57\x76\x77\x3b\x26\x1f\xaf\x7b\xa2\xfd\xc4\xfe\x43\xb9\x2c\x0b\x1c\x7a\x2f\xd0\x54\xa4\x36\x50"[..]).unwrap(); let z = &b"\x57\x63\x31\xe2\xb4\xfb\x38\xa1\x12\x81\x0e\x15\x29\x83\x4d\xe8\x30\x7f\xb0\xa0\xd2\x75\x68\x77"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x53\x9b\xc4\x0f\xe2\x0a\x0f\xb2\x67\x88\x8b\x64\x7b\x03\xea\xaf\x6e\xc2\x0c\x02\xa1\xe1\xf8\xc8"[..], &b"\x69\x09\x5e\x5b\xb7\xb4\xd4\x4c\x32\x78\xa7\xee\x6b\xec\xa3\x97\xc4\x52\x46\xda\x9a\x34\xc8\xbe"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xca\xd8\x10\x06\x03\xa4\xf6\x5b\xe0\x8d\x8f\xc8\xa1\xb7\xe8\x84\xc5\xff\x65\xde\xb3\xc9\x6d\x99"[..]).unwrap(); let iut_pub = Point::new::(&b"\xb7\xfc\xc0\xf5\x2c\x7a\x41\x1e\xdb\xed\x39\xe1\x0b\xf0\x2b\x6a\xe0\xf2\x66\x14\xc6\xb3\x25\xa2"[..], &b"\x47\x48\x3b\x26\xeb\x67\x77\x6d\xe2\xb9\x3a\xb7\x11\x9d\x54\x47\x57\x37\x39\xe3\xd5\x5e\x72\xfb"[..]).unwrap(); let z = &b"\x90\x2f\x45\x01\x91\x6a\x0d\xd9\x45\x55\x4c\x3a\x37\xb3\xd7\x80\xd3\x75\xa6\xda\x71\x31\x97\xc4"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x5d\x34\x3d\xdb\x96\x31\x8f\xb4\x79\x4d\x10\xf6\xc5\x73\xf9\x9f\xee\x5d\x0d\x57\xb9\x96\x25\x0f"[..], &b"\x99\xfb\xdf\x9d\x97\xdd\x88\xad\x41\x02\x35\xda\xc3\x6e\x5b\x92\xce\x28\x24\xb8\xe5\x87\xa8\x2c"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x1e\xdd\x87\x9c\xc5\xc7\x96\x19\xca\xe6\xc7\x3a\x69\x1b\xd5\xa0\x39\x5c\x0e\xf3\xb3\x56\xfc\xd2"[..]).unwrap(); let iut_pub = Point::new::(&b"\x6c\xe6\xad\xb2\xc3\x08\x08\xf5\x90\x04\x8c\x33\xdf\xfa\xd4\x52\x4e\xbf\x7a\x5f\xd3\x9b\x74\x7b"[..], &b"\x49\x66\xbd\x2f\x3d\x00\x56\x9b\x4d\x4c\x04\x09\xfb\xd7\xa2\xdb\x75\x2f\x6d\x09\xbc\xa8\xc2\x5f"[..]).unwrap(); let z = &b"\x46\xe4\xde\x33\x50\x54\xd4\x29\x86\x32\x18\xae\x33\x63\x6f\xc9\xb8\x9c\x62\x8b\x64\xb5\x06\xc7"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x8d\x3d\xb9\xbd\xce\x13\x7f\xfb\xfb\x89\x13\x88\xc3\x7d\xf6\xc0\xcb\xc9\x0a\xa5\xe5\x37\x62\x20"[..], &b"\x13\x5d\x30\xb5\xcb\x66\x0e\xef\x87\x64\xff\xc7\x44\xf1\x5c\x1b\x5d\x6d\xc0\x6b\xa4\x41\x6d\x37"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x46\x0e\x45\x22\x73\xfe\x18\x27\x60\x21\x87\xad\x3b\xeb\xee\x65\xcb\x84\x42\x3b\xb4\xf4\x75\x37"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd1\xbd\x3a\x3e\xfa\xbf\x47\x67\xfe\x63\x80\xbd\xf0\xdb\xf4\x9d\x52\xd4\xcf\x0c\xbb\x89\x40\x4c"[..], &b"\xc1\x50\xc2\xb4\xc8\xb3\xaa\x35\xf7\x65\xf8\x47\xe4\xf7\xf8\xfd\x87\x04\xd2\x41\xa1\x81\xee\x99"[..]).unwrap(); let z = &b"\x1b\xfe\x9e\x5a\x20\xac\x7a\x38\xd8\xf6\x05\xb4\x25\xbb\x90\x30\xbe\x31\xef\x97\xc1\x01\xc7\x6c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x9e\x0a\x69\x49\x51\x9c\x7f\x5b\xe6\x8c\x04\x33\xc5\xfd\xf1\x30\x64\xaa\x13\xfb\x29\x48\x3d\xc3"[..], &b"\xe1\xc8\xba\x63\xe1\xf4\x71\xdb\x23\x18\x5f\x50\xd9\xc8\x71\xed\xea\x21\x25\x5b\x3a\x63\xb4\xb7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xb9\x70\x36\x50\x08\x45\x6f\x87\x58\xec\xc5\xa3\xb3\x3c\xf3\xae\x6a\x8d\x56\x81\x07\xa5\x21\x67"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc1\xb8\x61\x0c\x8c\x63\xf8\xd4\xab\xda\x09\x3b\x9a\x11\xa5\x66\x04\x4b\xf6\x5c\x6f\xaa\x89\x99"[..], &b"\xa5\xbc\x4b\x3c\xa0\x95\x38\x2e\x97\x38\xae\xe9\x5f\xe9\x47\x9b\x17\x87\x9b\x3a\xd5\x29\x55\x59"[..]).unwrap(); let z = &b"\x0e\x8c\x49\x3a\x4a\xdc\x44\x5d\xc9\x28\x8a\x3b\x9b\x27\x25\x99\x22\x40\x54\x59\x2d\x72\x65\xb3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\xbe\x08\x82\x38\x90\x2e\x99\x39\xb3\xd0\x54\xee\xeb\x84\x92\xda\xf4\xbd\xcf\x09\xa2\xab\x77\xf1"[..], &b"\x58\xd6\x74\x9a\x3a\x92\x3d\xc8\x04\x40\xf2\x66\x1f\xd3\x5b\x65\x16\x17\xe6\x52\x94\xb4\x63\x75"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x59\xc1\x5b\x8a\x24\x64\xe4\x1d\xfe\x43\x71\xc7\xf7\xda\xdf\x47\x0a\xe4\x25\x54\x4f\x81\x13\xbd"[..]).unwrap(); let iut_pub = Point::new::(&b"\x1f\xe7\x76\xf7\x35\x67\xb6\xac\x0b\x0d\x67\x64\x16\x4d\xe6\xc5\xbe\x75\x1b\xa8\xd1\xff\x45\x5e"[..], &b"\x4c\x16\x0b\xf3\x8a\xfb\x2b\x71\xf6\x84\x26\x16\x64\x11\x5c\xe8\x74\x55\x3e\x8b\x05\x94\x32\xd2"[..]).unwrap(); let z = &b"\x0f\x19\x91\x08\x6b\x45\x5d\xed\x6a\x1c\x41\x46\xf7\xbf\x59\xfe\x9b\x49\x5d\xe5\x66\xeb\xc6\xbf"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\xbf\x5a\xe0\x50\x25\xe1\xbe\x61\x7e\x66\x6d\x87\xa4\x16\x83\x63\x87\x3d\x57\x61\xb3\x76\xb5\x03"[..], &b"\xe1\xe6\xe3\x8b\x37\x2b\x6b\xee\x0f\xf5\xb3\x50\x2d\x83\x73\x5e\x3b\x2c\x26\x82\x5e\x4f\x0f\xcc"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xa6\xe9\xb8\x85\xc6\x6b\x95\x9d\x1f\xc2\x70\x8d\x59\x1b\x6d\x32\x28\xe4\x9e\xb9\x8f\x72\x6d\x61"[..]).unwrap(); let iut_pub = Point::new::(&b"\x63\x2b\xb7\x65\x1d\xbf\x49\xdd\xe9\xdd\x12\x5d\x13\xfb\x23\x4e\x06\x61\x77\x23\xbe\xed\x3d\x1b"[..], &b"\xf4\xad\x52\x09\x63\x84\x88\x39\x7c\x5f\x44\xf9\x94\xdd\x74\x79\x80\x7e\x79\xf4\x88\x7d\x2e\x71"[..]).unwrap(); let z = &b"\xb3\x0f\x21\x27\xc3\x4d\xf3\x5a\xaa\x91\xdb\xf0\xbb\xe1\x57\x98\xe7\x99\xa0\x3e\xd1\x16\x98\xc1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x6c\xc4\xfe\xed\x84\xc7\xab\x0d\x09\x00\x5d\x66\x0e\xd3\x4d\xe6\x95\x5a\x94\x61\xc4\x13\x8d\x11"[..], &b"\x31\x22\x5f\x33\x86\x4e\xd4\x8d\xa0\x6f\xa4\x5a\x91\x3b\x46\xcf\x42\x55\x77\x42\xe3\x50\x85\xe6"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xbd\xb7\x54\x09\x6f\xfb\xfb\xd8\xb0\xf3\xcb\x04\x6c\xcb\x7c\xa1\x49\xc4\xe7\x19\x20\x67\xa3\xee"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd9\xc0\x98\xd4\x21\xd7\x41\xf6\xfa\xab\x11\x6f\x3e\x47\x31\xd2\x8c\x55\x58\xe1\x9f\xe1\x12\xa1"[..], &b"\x38\xd4\xdc\x48\xcc\xdb\x1d\x3e\xd8\xd3\x1f\xd0\x67\x84\xa4\xf8\x7a\x68\xae\xc1\xcb\xd5\xb0\x8f"[..]).unwrap(); let z = &b"\x64\xa5\xc2\x46\x59\x9d\x3e\x81\x77\xa2\x40\x2a\x11\x10\xeb\x81\xe6\xc4\x56\xab\x4e\xdb\x51\x27"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x36\x15\x73\x15\xbe\xe7\xaf\xed\xde\xd5\x8c\x4e\x8b\xa1\x4d\x34\x21\xc4\x01\xe5\x11\x35\xbc\xc9"[..], &b"\x37\xc2\x97\xca\x70\x3f\x77\xc5\x2b\xb0\x62\xd8\xce\x97\x1d\xb8\x40\x97\xba\x0c\x75\x3a\x41\x8f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xd5\xbc\xf2\x53\x4d\xaf\xc3\xd9\x99\x64\xc7\xbd\x63\xab\x7b\xd1\x59\x99\xfe\x56\xdd\x96\x9c\x42"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfd\xa1\xd5\xd2\x8d\x6f\xe0\xe7\x90\x9d\x6a\x8b\xaf\xa7\x82\x4d\xb5\x57\x2a\xb9\x2f\xfe\x7d\xe6"[..], &b"\x13\x4a\x29\x7c\x1d\x9c\x8b\xba\xb2\x49\xab\xac\xd9\x51\xed\x11\xe5\xa9\x9f\x92\xe7\x99\x15\x72"[..]).unwrap(); let z = &b"\x01\x7b\x8c\xa5\x3c\x82\xfa\xb1\x63\xda\x2a\xb7\x83\x96\x6a\x39\xe0\x61\xb3\x2c\x8c\xfa\x33\x4d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x98\x46\x4d\x47\xf0\x25\x6f\x82\x92\xe0\x27\xe8\xc9\x25\x82\xea\x77\xcf\x90\x51\xf5\xce\x8e\x5d"[..], &b"\x44\x95\x52\xef\x75\x78\xbe\x96\x23\x6f\xe5\xed\x9d\x06\x43\xc0\xbb\x6c\x5a\x91\x34\xb0\x10\x8d"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x43\xd4\xb9\xdf\x10\x53\xbe\x5b\x42\x68\x10\x4c\x02\x24\x4d\x3b\xf9\x59\x4b\x01\x0b\x46\xa8\xb2"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc3\x02\x0b\x70\x91\x46\x3d\x78\x8f\x1f\x1d\x76\xf7\xcf\xee\xc8\x2e\xcd\xb3\xb7\xd9\x9c\x34\x5c"[..], &b"\x9a\x77\x10\xd5\x17\x95\x91\xd8\xf3\xdf\x0a\xa1\x22\x30\x17\x68\xae\x7d\xb7\xee\xe2\xd7\xf5\x83"[..]).unwrap(); let z = &b"\x34\x0e\xf3\xdb\x3d\xbe\xbd\xd9\x1c\x62\xc3\xd4\xe1\xa3\xda\x2c\x7c\x52\xa3\x33\x8b\x86\x52\x59"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x56\x3e\xb6\x6c\x33\x4c\xf6\xf1\x23\xbf\x04\xc7\x80\x3b\x48\xa3\x11\x02\x14\x23\x7e\x98\x3b\xf5"[..], &b"\x0f\x35\x11\x04\x81\x91\x99\xef\x07\xc9\xa6\x05\x1d\x20\x75\x8f\x3a\xf7\x90\x27\xea\x66\xa5\x3f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x94\xca\xc2\xc2\xca\x71\x47\x46\x40\x16\x70\xd9\x4e\xdb\xf3\xf6\x77\x86\x7b\x5a\x03\xbe\xe7\xad"[..]).unwrap(); let iut_pub = Point::new::(&b"\xb1\x85\x54\xa2\xe7\x43\xef\x0a\xa2\xf0\x40\x98\x7c\x4c\x45\x10\x04\xe0\x96\xdf\x3d\x80\xdd\xae"[..], &b"\x6e\x3e\x2c\x61\x8f\x89\x6e\x36\xba\x62\x00\x77\x68\x4b\x70\xa0\x5f\xfb\x79\xbf\x5e\x6c\x76\x40"[..]).unwrap(); let z = &b"\x21\x62\x14\x49\x21\xdf\x51\x03\xd0\xe6\xa6\x50\xfb\x13\xfd\x24\x6f\x47\x38\xd0\x89\x6c\xe9\x2f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x86\x82\x8c\x4a\xc9\x2b\x55\x07\x61\x8a\xec\x78\x73\xa1\xd4\xfc\x65\x43\xc5\xbe\x33\xcf\x30\x78"[..], &b"\xb2\x2c\xa7\x24\x37\x54\x5e\x10\xd6\xd4\xf0\x52\x42\x2e\xb8\x98\xb7\x37\xa4\xb8\x54\x3e\xe5\x50"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x2a\x3a\x9e\x33\xc8\xcc\x31\x07\xa9\xf9\x26\x5c\x3b\xde\xa1\x20\x65\x70\xe8\x6f\x92\xac\x70\x14"[..]).unwrap(); let iut_pub = Point::new::(&b"\xa7\xba\x38\xbe\x1b\xc6\x69\xdd\x23\xcc\xfc\xee\x06\x45\xb1\xf0\xdb\x8c\xf9\x42\xde\xaf\xae\xb6"[..], &b"\xb8\x2d\xb7\x9d\x80\xcd\x0e\x37\xf2\x8d\x41\x63\xad\xc3\x89\xde\xe8\xfc\x77\x97\xb5\xc9\x83\x1b"[..]).unwrap(); let z = &b"\x4c\x69\xe7\xfe\xed\x4b\x11\x15\x9a\xdf\xc1\x6a\x60\x47\xa9\x25\x72\xea\x44\xe0\x74\x0b\x23\xaf"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x67\x00\xa1\x02\x43\x77\x81\xa9\x58\x1d\xa2\xbc\x25\xce\xd5\xab\xf4\x19\xda\x91\xd3\xc8\x03\xdf"[..], &b"\x71\x39\x6c\x9c\xf0\x8b\xcd\x91\x85\x4e\x3e\x6e\x42\xd8\xc6\x57\xce\x0f\x27\xab\x77\xa9\xdc\x4b"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x4a\x6b\x78\xa9\x8a\xc9\x8f\xa8\xe9\x9a\x8e\xce\x08\xec\x02\x51\x12\x5f\x85\xc6\xfd\x0e\x28\x9b"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe7\x69\xdb\xbc\xd5\xce\x2d\x83\x51\x4b\x76\x8d\x3d\x2d\x5a\xa0\xbc\xd8\xf6\x6a\xf1\x5f\x55\x00"[..], &b"\x2f\xc6\xd0\xb0\x39\xe0\xf2\x8f\x74\xfb\xef\xfe\x9e\x88\x3d\x4d\xd7\x22\x96\xe4\xe9\x5c\xae\x71"[..]).unwrap(); let z = &b"\x46\x07\x2a\xce\xfd\x67\xbf\xf5\x0d\xe3\x55\xca\x7a\x31\xfa\x6b\xe5\x9f\x26\xe4\x67\x58\x72\x59"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\xa8\x2f\x35\x4c\xf9\x7b\xee\x5d\x22\xdc\x6c\x07\x9f\x29\x02\xea\xd4\x4d\x96\xa8\xf6\x14\xf1\x78"[..], &b"\xa6\x54\xa9\xaa\x8a\x1a\x08\x02\xf2\xce\x0e\xe8\xa0\xf4\xeb\xe9\x6d\xee\x1b\x37\x46\x4b\x1f\xf2"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xc5\xa6\x49\x1d\x78\x84\x4d\x66\x17\xef\x33\xbe\x6b\x8b\xd5\x4d\xa2\x21\x45\x08\x85\xd5\x95\x0f"[..]).unwrap(); let iut_pub = Point::new::(&b"\xdb\x1b\x24\xf7\x46\x6b\xc1\x54\xe9\xd7\xd2\xc3\xca\x52\xdc\xfe\x0b\xfc\x95\x63\xc5\xfd\xb6\xf3"[..], &b"\x1c\x74\xfb\xbf\x5b\xd9\x99\x21\xf1\xa9\xa7\x44\xf8\xe1\xcf\x77\x0b\xd6\xa7\x6a\x77\x2b\x30\x03"[..]).unwrap(); let z = &b"\xec\x55\x80\xea\xbc\xa9\xf3\x38\x9d\x2b\x42\x7d\xdf\x6e\x49\xe2\x6d\x62\x9a\xfd\x03\xfa\x76\x6e"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x3c\xec\x21\xb2\x86\x68\xa1\x2a\x2c\xf7\x8e\x1a\x8e\x55\xd0\xef\xe0\x65\x15\x2f\xff\xc3\x47\x18"[..], &b"\x10\x29\x55\x7b\xeb\xa4\xff\x19\x92\xbd\x21\xc2\x3c\xb4\x82\x5f\x6d\xae\x70\xe3\x31\x8f\xd1\xca"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x2b\xa2\x70\x3c\x5e\x23\xf6\x46\x3c\x5b\x88\xdc\x37\x29\x2f\xab\xd3\x39\x9b\x5e\x1f\xb6\x7c\x05"[..]).unwrap(); let iut_pub = Point::new::(&b"\x75\x43\x14\x89\x06\xce\xf9\xb3\x7a\x71\xa7\xc0\x83\x63\xcd\xd3\xbb\xa5\x01\x42\xd6\x52\x41\xaa"[..], &b"\x8b\x3a\x69\x73\xde\x8d\xc2\x71\xe2\x7c\x1e\xad\x1e\x96\x2f\xda\xae\x37\x10\xc7\x24\xda\xac\x38"[..]).unwrap(); let z = &b"\x7f\x39\x29\xdd\x3c\xbf\x76\x73\xbc\x30\xd8\x59\xd9\x0b\x88\x03\x07\x47\x5f\x80\x06\x60\xea\x32"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::( &b"\x70\x82\x64\x47\x15\xb8\xb7\x31\xf8\x22\x8b\x51\x18\xe7\x27\x0d\x34\xd1\x81\xf3\x61\xa2\x21\xfc"[..], &b"\x46\x46\x49\xd6\xc8\x8c\xa8\x96\x14\x48\x8a\x1c\xc7\xb8\x44\x2b\xb4\x2f\x9f\xb3\x02\x0a\x3d\x76"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x83\x61\x18\xc6\x24\x8f\x88\x2e\x91\x47\x97\x6f\x76\x48\x26\xc1\xa2\x87\x55\xa6\x10\x29\x77\xd5"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfc\xd3\x45\xa9\x76\xc7\x20\xca\xaa\x97\xde\x66\x97\x22\x68\x25\x61\x5e\x12\x87\xa9\xef\xf6\x7e"[..], &b"\x58\xea\x42\xed\xbe\xea\xfc\xa9\xff\x44\xcf\xd7\xf2\x9a\xbd\x2c\xbd\xe7\x62\x6d\x79\xe4\x22\xc9"[..]).unwrap(); let z = &b"\x72\xe8\x8f\x3e\xa6\x7d\x46\xd4\x6d\xbf\x83\x92\x6e\x7e\x2a\x6b\x85\xb5\x45\x36\x74\x1e\x6d\x2c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } } #[test] fn nist_p_224() { { let cav_pub = Point::new::(&b"\xaf\x33\xcd\x06\x29\xbc\x7e\x99\x63\x20\xa3\xf4\x03\x68\xf7\x4d\xe8\x70\x4f\xa3\x7b\x8f\xab\x69\xab\xaa\xe2\x80"[..], &b"\x88\x20\x92\xcc\xbb\xa7\x93\x0f\x41\x9a\x8a\x4f\x9b\xb1\x69\x78\xbb\xc3\x83\x87\x29\x99\x25\x59\xa6\xf2\xe2\xd7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x83\x46\xa6\x0f\xc6\xf2\x93\xca\x5a\x0d\x2a\xf6\x8b\xa7\x1d\x1d\xd3\x89\xe5\xe4\x08\x37\x94\x2d\xf3\xe4\x3c\xbd"[..]).unwrap(); let iut_pub = Point::new::(&b"\x8d\xe2\xe2\x6a\xdf\x72\xc5\x82\xd6\x56\x8e\xf6\x38\xc4\xfd\x59\xb1\x8d\xa1\x71\xbd\xf5\x01\xf1\xd9\x29\xe0\x48"[..], &b"\x4a\x68\xa1\xc2\xb0\xfb\x22\x93\x0d\x12\x05\x55\xc1\xec\xe5\x0e\xa9\x8d\xea\x84\x07\xf7\x1b\xe3\x6e\xfa\xc0\xde"[..]).unwrap(); let z = &b"\x7d\x96\xf9\xa3\xbd\x3c\x05\xcf\x5c\xc3\x7f\xeb\x8b\x9d\x52\x09\xd5\xc2\x59\x74\x64\xde\xc3\xe9\x98\x37\x43\xe8"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x13\xbf\xcd\x4f\x8e\x94\x42\x39\x3c\xab\x8f\xb4\x6b\x9f\x05\x66\xc2\x26\xb2\x2b\x37\x07\x69\x76\xf0\x61\x7a\x46"[..], &b"\xee\xb2\x42\x75\x29\xb2\x88\xc6\x3c\x2f\x89\x63\xc1\xe4\x73\xdf\x2f\xca\x6c\xaa\x90\xd5\x2e\x2f\x8d\xb5\x6d\xd4"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x04\x3c\xb2\x16\xf4\xb7\x2c\xdf\x76\x29\xd6\x37\x20\xa5\x4a\xee\x0c\x99\xeb\x32\xd7\x44\x77\xda\xc0\xc2\xf7\x3d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x2f\x90\xf5\xc8\xea\xc9\xc7\xde\xcd\xbb\x97\xb6\xc2\xf7\x15\xab\x72\x5e\x4f\xe4\x0f\xe6\xd7\x46\xef\xbf\x4e\x1b"[..], &b"\x66\x89\x73\x51\x45\x4f\x92\x7a\x30\x9b\x26\x9c\x5a\x6d\x31\x33\x8b\xe4\xc1\x9a\x5a\xcf\xc3\x2c\xf6\x56\xf4\x5c"[..]).unwrap(); let z = &b"\xee\x93\xce\x06\xb8\x9f\xf7\x20\x09\xe8\x58\xc6\x8e\xb7\x08\xe7\xbc\x79\xee\x03\x00\xf7\x3b\xed\x69\xbb\xca\x09"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x75\x6d\xd8\x06\xb9\xd9\xc3\x4d\x89\x96\x91\xec\xb4\x5b\x77\x1a\xf4\x68\xec\x00\x44\x86\xa0\xfd\xd2\x83\x41\x1e"[..], &b"\x4d\x02\xc2\xca\x61\x7b\xb2\xc5\xd9\x61\x3f\x25\xdd\x72\x41\x3d\x22\x9f\xd2\x90\x15\x13\xaa\x29\x50\x4e\xee\xfb"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x5a\xd0\xdd\x6d\xba\xbb\x4f\x3c\x2e\xa5\xfe\x32\xe5\x61\xb2\xca\x55\x08\x14\x86\xdf\x2c\x7c\x15\xc9\x62\x2b\x08"[..]).unwrap(); let iut_pub = Point::new::(&b"\x5b\xca\x45\xd7\x93\xe7\xfe\x99\xa8\x43\x70\x4e\xd8\x38\x31\x5a\xb1\x4a\x5f\x62\x77\x50\x7e\x9b\xc3\x75\x31"[..], &b"\x43\xe9\xd4\x21\xe1\x48\x6a\xe5\x89\x3b\xfd\x23\xc2\x10\xe5\xc1\x40\xd7\xc6\xb1\xad\xa5\x9d\x84\x2c\x9a\x98\xde"[..]).unwrap(); let z = &b"\x3f\xcc\x01\xe3\x4d\x44\x49\xda\x2a\x97\x4b\x23\xfc\x36\xf9\x56\x67\x54\x25\x9d\x39\x14\x97\x90\xcf\xa1\xeb\xd3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x0f\x53\x7b\xf1\xc1\x12\x2c\x55\x65\x6d\x25\xe8\xaa\x84\x17\xe0\xb4\x4b\x15\x26\xae\x05\x23\x14\x4f\x99\x21\xc4"[..], &b"\xf7\x9b\x26\xd3\x0e\x49\x1a\x77\x36\x96\xcc\x2c\x79\xb4\xf0\x59\x6b\xc5\xb9\xee\xba\xf3\x94\xd1\x62\xfb\x86\x84"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x0a\xa6\xff\x55\xa5\xd8\x20\xef\xcb\x4e\x7d\x10\xb8\x45\xea\x3c\x9f\x9b\xc5\xdf\xf8\x61\x06\xdb\x85\x31\x8e\x22"[..]).unwrap(); let iut_pub = Point::new::(&b"\x2f\x96\x75\x41\x31\xe0\x96\x81\x98\xaa\x78\xfb\xe8\xc2\x01\xdc\x5f\x35\x81\xc7\x92\xde\x48\x73\x40\xd3\x24\x48"[..], &b"\x61\xe8\xa5\xcd\x79\x61\x52\x03\xb6\xd8\x9e\x94\x96\xf9\xe2\x36\xfe\x3b\x6b\xe8\x73\x1e\x74\x3d\x61\x55\x19\xc6"[..]).unwrap(); let z = &b"\x49\x12\x96\x28\xb2\x3a\xfc\xef\x48\x13\x9a\x3f\x6f\x59\xff\x5e\x98\x11\xaa\x74\x6a\xa4\xff\x33\xc2\x4b\xb9\x40"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x2b\x36\x31\xd2\xb0\x61\x79\xb3\x17\x4a\x10\x0f\x7f\x57\x13\x1e\xee\xa8\x94\x7b\xe0\x78\x6c\x3d\xc6\x4b\x22\x39"[..], &b"\x83\xde\x29\xae\x3d\xad\x31\xad\xc0\x23\x6c\x6d\xe7\xf1\x45\x61\xca\x2e\xa0\x83\xc5\x27\x0c\x78\xa2\xe6\xcb\xc0"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xef\xe6\xe6\xe2\x5a\xff\xaf\x54\xc9\x8d\x00\x2a\xbb\xc6\x32\x8d\xa1\x59\x40\x5a\x1b\x75\x2e\x32\xdc\x23\x95\x0a"[..]).unwrap(); let iut_pub = Point::new::(&b"\x35\x5e\x96\x29\x20\xbd\xe0\x43\x69\x5f\x6b\xff\xb4\xb3\x55\xc6\x3d\xa6\xf5\xde\x66\x5e\xd4\x6f\x2e\xc8\x17\xe2"[..], &b"\x74\x8e\x09\x53\x68\xf6\x2e\x1d\x36\x4e\xdd\x46\x17\x19\x79\x3b\x40\x4a\xdb\xda\xac\xbc\xad\xd8\x89\x22\xff\x37"[..]).unwrap(); let z = &b"\xfc\xdc\x69\xa4\x05\x01\xd3\x08\xa6\x83\x96\x53\xa8\xf0\x43\x09\xec\x00\x23\x39\x49\x52\x29\x02\xff\xa5\xea\xc6"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x45\x11\x40\x3d\xe2\x90\x59\xf6\x9a\x47\x5c\x5a\x6a\x5f\x6c\xab\xed\x5d\x9f\x01\x44\x36\xa8\xcb\x70\xa0\x23\x38"[..], &b"\x7d\x2d\x1b\x62\xaa\x04\x6d\xf9\x34\x0f\x9c\x37\xa0\x87\xa0\x6b\x32\xcf\x7f\x08\xa2\x23\xf9\x92\x81\x2a\x82\x8b"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x61\xcb\x29\x32\x52\x40\x01\xe5\xe9\xee\xed\x6d\xf7\xd9\xc8\x93\x5e\xe3\x32\x20\x29\xed\xd7\xaa\x8a\xcb\xfd\x51"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd5\x0e\x4a\xda\xbf\xd9\x89\xd7\xdb\xc7\xcf\x40\x52\x54\x6c\xc7\xc4\x47\xa9\x76\x30\x43\x69\x97\xad\x4b\x95\x36"[..], &b"\x5b\xea\x50\x34\x73\xc5\xea\xef\x95\x52\xd4\x2c\x40\xb1\xf2\xf7\xca\x29\x27\x33\xb2\x55\xb9\xbb\xe1\xb1\x23\x37"[..]).unwrap(); let z = &b"\x82\x7e\x90\x25\xcb\x62\xe0\xe8\x37\xc5\x96\x06\x3f\x3b\x9b\x5a\x0f\x7a\xfd\x8d\x87\x83\x20\x00\x86\xd6\x1e\xc1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x31\x4a\x0b\x26\xdd\x31\xc2\x48\x84\x5d\x7c\xc1\x7b\x61\xca\xd4\x60\x82\x59\xbe\xd8\x5a\x58\xd1\xf1\xff\xd3\x78"[..], &b"\x66\xe4\xb3\x50\x35\x2e\x11\x9e\xec\xad\xa3\x82\x90\x7f\x36\x19\xfd\x74\x8e\xa7\x3a\xe4\x89\x9d\xfd\x49\x63\x02"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8c\x7a\xce\x34\x71\x71\xf9\x2d\xef\x98\xd8\x45\x47\x5f\xc8\x2e\x1d\x14\x96\xda\x81\xee\x58\xf5\x05\xb9\x85\xfa"[..]).unwrap(); let iut_pub = Point::new::(&b"\xb1\xa8\xdc\xac\x89\xac\xa2\x79\x93\x20\xb4\x51\xdf\x1c\x7f\xf4\xd9\x75\x67\xab\xb6\x81\x41\xc0\xd9\x5f\xc2\xaa"[..], &b"\x35\x24\x95\x09\x02\xb1\x51\x0b\xdc\x98\x7d\x86\x0a\xfc\x27\xad\x87\x1c\xea\xea\x66\x93\x5a\xbd\x3c\x0a\x99\xa8"[..]).unwrap(); let z = &b"\x33\x5b\xa5\x12\x28\xd9\x4a\xcb\xed\x85\x1c\xa7\x82\x1c\x80\x1d\x5c\xb1\xc7\x97\x5d\x7a\xa9\x0a\x71\x59\xf8\xfa"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xab\xe6\x84\x3b\xee\xc2\xfd\x9e\x5f\xb6\x47\x30\xd0\xbe\x4d\x16\x54\x38\xce\x92\x2e\xd7\x5d\xd8\x0b\x46\x03\xe5"[..], &b"\x6a\xfe\x86\x73\xa9\x6c\x4b\xa9\x90\x0a\xd8\x59\x95\xe6\x31\xe4\x36\xc6\xcc\x88\xa2\xc2\xb4\x7b\x7c\x48\x86\xb8"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x38\x2f\xeb\x9b\x9b\xa1\x0f\x18\x9d\x99\xe7\x1a\x89\xcd\xfe\x44\xcb\x55\x4c\xec\x13\xa2\x12\x84\x09\x77\xfb\x68"[..]).unwrap(); let iut_pub = Point::new::(&b"\xab\xb6\xf1\xe3\x77\x3f\xf8\xfc\x73\xae\xa2\xa0\xb1\x07\x80\x9c\xe7\x0a\xdc\xef\xed\x6e\x41\xfc\x5c\xb4\x30\x45"[..], &b"\xa9\x63\x89\x7a\xe9\x06\xc1\x0a\x05\x5e\xea\xdb\x97\xff\xdd\x6f\x74\x8d\x3e\x56\x21\xe5\xff\xf3\x04\xe4\x8b\xa7"[..]).unwrap(); let z = &b"\x8c\x2e\x62\x75\x94\x20\x6b\x34\xf7\x35\x6d\x34\x26\xeb\x3d\x79\xf5\x18\xef\x84\x3f\xbe\x94\x01\x4c\xce\xac\xe3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x13\xcf\x9d\x6d\x2c\x9a\xae\x82\x74\xc2\x7d\x44\x6a\xfd\x0c\x88\x8f\xfd\xd5\x2a\xe2\x99\xa3\x59\x84\xd4\xf5\x27"[..], &b"\xdc\xbe\xe7\x5b\x51\x57\x51\xf8\xee\x2a\xe3\x55\xe8\xaf\xd5\xde\x21\xc6\x2a\x93\x9a\x65\x07\xb5\x38\xcb\xc4\xaf"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xe0\xd6\x20\x35\x10\x1e\xf4\x87\xc4\x85\xc6\x0f\xb4\x50\x0e\xeb\xe6\xa3\x2e\xc6\x4d\xbe\x97\xdb\xe0\x23\x2c\x46"[..]).unwrap(); let iut_pub = Point::new::(&b"\x88\x53\x77\x35\xe9\xb2\x3e\x3e\x0e\x07\x6f\x13\x5a\x82\xd3\x3f\x9b\xff\xb4\x65\xf3\xab\xce\x83\x22\xa6\x2a\x62"[..], &b"\xb4\xc8\xc1\x23\x67\x31\x97\x87\x5c\x0b\xd1\x4e\xd0\x97\x60\x6d\x33\x0f\xba\x2b\x92\x00\xef\x65\xa4\x47\x64\xd3"[..]).unwrap(); let z = &b"\x63\x2a\xbb\x66\x27\x28\xdb\xc9\x94\x50\x88\x73\xd5\xc5\x27\xca\x5e\xf9\x23\xc0\xd3\x1f\xa6\xc4\x7e\xf4\xc8\x25"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x96\x5b\x63\x7c\x0d\xfb\xc0\xcf\x95\x40\x35\x68\x6d\x70\xf7\xec\x30\x92\x9e\x66\x4e\x52\x1d\xba\xa2\x28\x06\x59"[..], &b"\x82\xa5\x8f\xf6\x1b\xc9\x00\x19\xbb\xcb\xb5\x87\x5d\x38\x63\xdb\x0b\xc2\xa1\xfa\x34\xb0\xad\x4d\xe1\xa8\x3f\x99"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xb9\x6a\xde\x5b\x73\xba\x72\xaa\x8b\x6e\x4d\x74\xd7\xbf\x9c\x58\xe9\x62\xff\x78\xeb\x54\x22\x87\xc7\xb4\x4b\xa2"[..]).unwrap(); let iut_pub = Point::new::(&b"\x37\x68\x29\x26\xa5\x4f\x70\xa4\xc1\x74\x8f\x54\xd5\x0d\x5b\x00\x13\x8a\x05\x5f\x92\x4f\x2c\x65\xe5\xb0\xbb\xe4"[..], &b"\x59\x6a\xfe\xfc\xdd\x64\x0d\x29\x63\x50\x15\xb8\x9b\xdd\xdd\x1f\x8c\x27\x23\x68\x6d\x33\x2e\x7a\x06\xca\x87\x99"[..]).unwrap(); let z = &b"\x34\x64\x11\x41\xaa\xb0\x5e\xf5\x8b\xd3\x76\xd6\x09\x34\x59\x01\xfb\x8f\x63\x47\x7c\x6b\xe9\x09\x7f\x03\x7f\x1f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x73\xcc\x64\x53\x72\xca\x2e\x71\x63\x7c\xda\x94\x3d\x81\x48\xf3\x38\x2a\xb6\xdd\x0f\x2e\x1a\x49\xda\x94\xe1\x34"[..], &b"\xdf\x5c\x35\x5c\x23\xe6\xe2\x32\xeb\xc3\xbe\xe2\xab\x18\x73\xee\x0d\x83\xe3\x38\x2f\x8e\x6f\xe6\x13\xf6\x34\x3c"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xa4\x0d\x7e\x12\x04\x9c\x71\xe6\x52\x2c\x7f\xf2\x38\x42\x24\x06\x1c\x3a\x45\x70\x58\xb3\x10\x55\x76\x55\xb8\x54"[..]).unwrap(); let iut_pub = Point::new::(&b"\x39\x98\x01\x24\x3b\xfe\x0c\x2d\xa9\xb0\xa5\x3c\x8c\xa5\x7f\x2e\xee\x87\xaa\xa9\x4a\x8e\x4d\x5e\x02\x9f\x42\xca"[..], &b"\xaa\x49\xe6\xd4\xb4\x7c\xee\x7a\x5c\x4a\xb7\x1d\x5a\x67\xda\x84\xe0\xb9\xb4\x25\xce\x3e\x70\xda\x68\xc8\x89\xe7"[..]).unwrap(); let z = &b"\x4f\x74\xac\x85\x07\x50\x1a\x32\xbf\xc5\xa7\x8d\x82\x71\xc2\x00\xe8\x35\x96\x6e\x18\x7e\x8d\x00\x01\x1a\x8c\x75"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x54\x65\x78\x21\x62\x50\x35\x4e\x44\x9e\x21\x54\x6d\xd1\x1c\xd1\xc5\x17\x42\x36\x73\x9a\xca\xd9\xce\x0f\x45\x12"[..], &b"\xd2\xa2\x2f\xcd\x66\xd1\xab\xed\xc7\x67\x66\x83\x27\xc5\xcb\x9c\x59\x90\x43\x27\x62\x39\xcf\x3c\x85\x16\xaf\x24"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xad\x25\x19\xbc\x72\x4d\x48\x4e\x02\xa6\x9f\x05\x14\x9b\xb0\x47\x71\x4b\xf0\xf5\x98\x6f\xac\x2e\x22\x2c\xd9\x46"[..]).unwrap(); let iut_pub = Point::new::(&b"\xdf\x9c\x1e\x0e\xf1\x5e\x53\xb9\xf6\x26\xe2\xbe\x1c\xbe\x89\x36\x39\xc0\x6f\x3e\x04\x39\xee\x95\xd7\xd4\xb1\xe3"[..], &b"\x7a\x52\xa7\x38\x6a\xdd\xa2\x43\xef\xdf\x89\x41\x08\x5c\x84\xe3\x12\x39\xca\xb9\x2b\x80\x17\x33\x67\x48\x96\x5e"[..]).unwrap(); let z = &b"\xad\x09\xc9\xae\x4d\x23\x24\xea\x81\xbb\x55\x5b\x20\x0d\x3c\x00\x3e\x22\xa6\x87\x0e\xe0\x3b\x52\xdf\x49\xe4\xde"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x1d\x46\xb1\xdc\x3a\x28\x12\x3c\xb5\x13\x46\xe6\x7b\xae\xc5\x64\x04\x86\x86\x78\xfa\xf7\xd0\xe8\xb2\xaf\xa2\x2a"[..], &b"\x0e\xc9\xe6\x5e\xc9\x7e\x21\x83\x73\xe7\xfc\x11\x5c\x22\x74\xd5\xb8\x29\xa6\x0d\x93\xf7\x1e\x01\xd5\x81\x36\xc3"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x3d\x31\x2a\x9b\x9d\x8e\xd0\x91\x40\x90\x0b\xba\xc1\xe0\x95\x52\x7e\xbc\x9e\x3c\x64\x93\xbc\xf3\x66\x6e\x3a\x29"[..]).unwrap(); let iut_pub = Point::new::(&b"\xb4\xa0\x19\x8d\xc8\x81\x0e\x88\x44\x25\xb7\x50\x92\x8b\x0c\x96\x0c\x31\xf7\xa9\x96\x63\x40\x0b\x01\xa1\x79\xdf"[..], &b"\x81\x2b\x60\x1b\xfc\x07\x38\x24\x2c\x6f\x86\xf8\x30\xf2\x7a\xcd\x63\x2c\xa6\x18\xa0\xb5\x28\x0c\x9d\x57\x69\xf7"[..]).unwrap(); let z = &b"\xef\x02\x9c\x28\xc6\x80\x64\xb8\xab\xd2\x96\x5a\x38\xc4\x04\xfb\x5e\x94\x4a\xce\x57\xe8\x63\x8d\xab\xa9\xd3\xcd"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x26\x6d\x03\x8c\xc7\xa4\xfe\x21\xf6\xc9\x76\x31\x8e\x82\x7b\x82\xbb\x5b\x8f\x74\x43\xa5\x52\x98\x13\x65\x06\xe0"[..], &b"\xdf\x12\x3d\x98\xa7\xa2\x0b\xbd\xf3\x94\x3d\xf2\xe3\x56\x34\x22\xf8\xc0\xcf\x74\xd5\x3a\xaa\xbd\xd7\xc9\x73\xba"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8c\xe0\x82\x2d\xc2\x4c\x15\x39\x95\x75\x5a\xc3\x50\x73\x7e\xf5\x06\x64\x1c\x7d\x75\x2b\x4f\x93\x00\xc6\x12\xed"[..]).unwrap(); let iut_pub = Point::new::(&b"\xdf\xc7\xec\x13\x76\x90\xcd\x6d\x12\xfd\xb2\xfd\x0b\x8c\x53\x14\x58\x21\x08\x76\x9c\x2b\x72\x2f\xfb\x39\x58"[..], &b"\x5e\xef\x3d\xa4\xba\x45\x81\x27\x34\x6b\xb6\x40\x23\x86\x8b\xdd\xb7\x55\x8a\x2e\xcf\xc8\x13\x64\x5f\x4c\xe9\xfe"[..]).unwrap(); let z = &b"\xf8\x3c\x16\x66\x1d\xfc\xba\xd0\x21\xcc\x3b\x5a\x5a\xf5\x1d\x9a\x18\xdb\x46\x53\x86\x6b\x3f\xf9\x07\x87\xce\x3e"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xeb\x0a\x09\xf7\xa1\xc2\x36\xa6\x1f\x59\x58\x09\xec\x56\x70\xef\xd9\x2e\x45\x98\xd5\xe6\x13\xe0\x92\xcd\xfd\xca"[..], &b"\x50\x78\x7a\xe2\xf2\xf1\x5b\x88\xbc\x10\xf7\xb5\xf0\xae\xe1\x41\x83\x73\xf1\x61\x53\xae\xbd\x1f\xba\x54\x28\x8d"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x0f\xf9\xb4\x85\x32\x5a\xb7\x7f\x29\xe7\xbc\x37\x9f\xed\x74\xbf\xac\x85\x94\x82\xda\x0d\xee\x75\x28\xc1\x9d\xb2"[..]).unwrap(); let iut_pub = Point::new::(&b"\x7e\x60\x3e\x69\x76\xdb\x83\xc3\x60\x11\x50\x8f\xa6\x95\xd1\xb5\x15\x24\x9e\x2e\x54\xb4\x8f\xcb\xcf\xb9\x02\x47"[..], &b"\x01\x79\xa6\x00\xce\x86\xad\xfc\xa9\xb1\xb9\x31\xfa\x51\x73\xd6\x18\xda\x09\xe8\x41\x80\x3d\x19\xb0\x26\x42\x86"[..]).unwrap(); let z = &b"\xf5\x12\x58\xc6\x3f\x23\x2e\x55\xa6\x6a\xa2\x5e\xbd\x59\x7b\x20\x18\xd1\x05\x2c\x02\xee\xb6\x38\x66\x75\x80\x05"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x6b\x2f\x6b\x18\xa5\x87\xf5\x62\xff\xc6\x1b\xd9\xb0\x04\x73\x22\x28\x69\x86\xa7\x8f\x1f\xd1\x39\xb8\x4f\x7c\x24"[..], &b"\x70\x96\x90\x8e\x46\x15\x26\x6b\xe5\x9a\x53\xcd\x65\x55\x15\x05\x6f\xf9\x23\x70\xa6\x27\x1a\x5d\x38\x23\xd7\x04"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x19\xcf\x5f\xf6\x30\x64\x67\xf2\x8b\x9f\xe0\x67\x5a\x43\xc0\x58\x25\x52\xc8\xc1\x2e\x59\xce\x7c\x38\xf2\x92\xb1"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfc\x20\xe9\x06\xe6\x09\xc1\x12\xcf\xc2\xe0\xfe\xa6\x30\x38\x82\xc5\xdb\x94\xe8\x7e\x02\x23\x73\xab\x2c\x08\x2a"[..], &b"\xae\xcd\xf1\xda\xa7\x17\x82\xbc\x5a\x26\xbb\xbd\x8d\x7e\x8a\x76\x49\x0e\x26\xab\xc1\x7d\xff\xc7\x74\xbd\x73\x41"[..]).unwrap(); let z = &b"\x7f\xdc\x96\x9a\x18\x6f\xf1\x84\x29\xf2\xa2\x76\xda\xc4\x3b\xee\xa2\x11\x82\xd8\x2c\xe2\xe5\xa0\x87\x65\x52\xb1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x32\x81\x01\xba\x82\x6a\xcd\x75\xff\x9f\x34\xd5\x57\x4c\xe0\xdb\xc9\x2f\x70\x9b\xad\x8d\x7a\x33\xc4\x79\x40\xc1"[..], &b"\xdf\x39\xf1\xea\x88\x48\x8c\x55\xd5\x53\x81\x60\x87\x8b\x9c\xed\x18\xa8\x87\xea\x26\x1d\xd7\x12\xd1\x40\x24\xff"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x90\xa1\x53\x68\xe3\x53\x2c\x0b\x1e\x51\xe5\x5d\x13\x94\x47\xc2\xc8\x9b\xc1\x60\x71\x9d\x69\x72\x91\xea\x7c\x14"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc6\x83\x7d\x50\x6e\x97\x6d\xa7\xdb\x3a\xd1\x26\x7c\x35\x9d\xff\x2e\xa6\xfb\x0b\x7f\x7f\x8e\x77\x02\x4c\x59\xe9"[..], &b"\x67\xeb\x49\x1d\x2f\xc8\xa5\x30\xc4\x65\x25\xd2\xa8\xb2\xd7\xc1\xdf\x5f\xba\x1a\xe7\x40\xa4\x64\x9c\x68\x3e\xe6"[..]).unwrap(); let z = &b"\x3d\x60\xab\x6d\xb2\xb3\xff\xe2\xd2\x9c\xcf\xf4\x6d\x05\x6e\x54\x23\x0c\xf3\x49\x82\xe2\x41\x55\x6e\xd2\x92\x0c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x81\xe3\x42\x70\x87\x1e\x2e\xbb\xd9\x41\x83\xf6\x17\xb4\xae\x15\xf0\x41\x6d\xd6\x34\xfe\x6e\x93\x4c\xf3\xc0"[..], &b"\x3a\x1e\x9f\x38\xa7\xb9\x0b\x73\x17\xd2\x6b\x9f\x63\x11\x06\x3a\xb5\x8b\x26\x8c\xf4\x89\xb2\xe5\x03\x86\xd5\xd6"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8e\x08\x38\xe0\x5e\x17\x21\x49\x10\x67\xe1\xca\xbc\x2e\x80\x51\xb2\x90\xe2\x61\x6e\xec\x42\x7b\x71\x21\x89\x7d"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe9\x15\x0f\x77\x00\x75\x62\x60\x19\xe1\x8f\x95\x47\x3b\x71\xe6\x82\x80\x41\x79\x1d\x3f\x08\xd3\xfa\xee\xaa\x2b"[..], &b"\x47\x5f\x70\x73\x5e\xaa\xe5\x23\x08\xa3\xb7\x63\xdc\x88\xef\xe1\x8a\xb5\x90\xeb\xaf\xa0\x35\xf6\xe0\x8b\x00\x1c"[..]).unwrap(); let z = &b"\x91\x16\xd7\x27\x86\xf4\xdb\x5d\xf7\xa8\xb4\x30\x78\xc6\xab\x91\x60\xd4\x23\x51\x3d\x35\xea\x5e\x25\x59\x30\x6d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x26\x23\x63\x2f\xdf\x0b\xd8\x56\x80\x5a\x69\xaa\x18\x6d\x41\x33\xef\x59\x04\xe1\xf6\x55\xa9\x72\xd6\x6c\xce\x07"[..], &b"\x2c\xef\x97\x28\xdd\x06\xfb\x8b\x50\x15\x0f\x52\x9b\x69\x50\x76\xd4\x50\x79\x83\x91\x25\x85\xc8\x9b\xd0\x68\x2e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x38\x10\x6e\x93\xf1\x6a\x38\x1a\xdb\x1d\x72\xce\xe3\xda\x66\xae\x46\x2a\xd4\xbb\xfe\xa9\xec\xdf\x35\xd0\x81\x4e"[..]).unwrap(); let iut_pub = Point::new::(&b"\x7b\xe6\xc4\xc9\x17\x82\x9a\xb6\x57\xdd\x79\xe8\x63\x7d\x7a\xef\xd2\xf8\x1f\x0d\xe7\x65\x4d\x95\x7e\x97\x65\x8d"[..], &b"\x43\x0d\x22\xd9\xe8\x43\x83\x10\xf6\x1e\x0d\x43\xf2\x5f\xa3\xe3\x45\x85\xf4\x32\xba\xad\x27\xdb\x30\x21\xbf\x0d"[..]).unwrap(); let z = &b"\x20\x7c\x53\xdc\xef\xac\x78\x9a\xaa\x02\x76\xd9\x20\x0b\x3a\x94\x0c\xe5\xf2\x29\x6f\x4c\xb2\xe8\x1a\x18\x5d\x3d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x8e\xe4\xd1\xdc\xc3\x1d\xee\x4b\xf6\xfe\x21\xca\x8a\x58\x77\x21\xd9\x10\xac\xfb\x12\x2c\x16\xc2\xa7\x7a\x81\x52"[..], &b"\x4e\xbf\x32\x3f\xff\x04\xeb\x47\x70\x69\xa0\xac\x68\xb3\x45\xf6\xb1\xae\x13\x4e\xfc\x31\x94\x0e\x51\x3c\xb9\x9f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xe5\xd1\x71\x84\x31\xcf\x50\xf6\xcb\xd1\xbc\x80\x19\xfa\x16\x76\x2d\xfa\x12\xc9\x89\xe5\x99\x99\x77\xfb\x4e\xa2"[..]).unwrap(); let iut_pub = Point::new::(&b"\x2e\xa4\x96\x6e\x7f\x92\xed\x7f\x5c\xc6\x1f\xde\x79\x20\x45\xf6\x3b\x73\x1d\x6e\x7d\x0d\xe2\x57\x7f\x2d\x8e\xce"[..], &b"\x1c\x4a\x7b\x1e\xde\x6f\x83\x91\x62\x29\x2d\xf4\x24\xbe\x78\xe8\x17\x6f\xb6\xf9\x42\xa3\xc0\x23\x91\x70\x0f\x31"[..]).unwrap(); let z = &b"\x10\xe4\x67\xda\x34\xf4\x8a\xd7\x07\x20\x05\xbc\xcd\x6d\xa1\xb2\xba\x3f\x71\xea\xfa\x1c\x39\x38\x42\xf9\x1d\x74"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x97\xdc\xbe\x6d\x28\x33\x58\x82\xa6\xd1\x93\xcc\x54\xa1\x06\x3d\xd0\x77\x5d\xc3\x28\x56\x53\x00\xbb\x99\xe6\x91"[..], &b"\xda\xd1\x1d\xd5\xec\xe8\xcf\xd9\xf9\x7c\x9a\x52\x6e\x4a\x15\x06\xe6\x35\x59\x69\xee\x87\x82\x6f\xc3\x8b\xcd\x24"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x3d\x63\x56\x91\xb6\x2a\x9a\x92\x7c\x63\x39\x51\xc9\x36\x9c\x88\x62\xbd\x21\x19\xd3\x09\x70\xc2\x64\x47\x27\xd6"[..]).unwrap(); let iut_pub = Point::new::(&b"\x43\x8b\xbb\x98\x05\x17\xaf\xb2\x0b\xe1\xd6\x74\xe3\xac\x2b\x31\xce\xf0\x7a\x9b\x23\xfb\x8f\x6e\x38\xe0\xd6\xc0"[..], &b"\x0b\xe5\xf1\xc4\x7d\x58\xd2\x1b\x6e\xd2\x84\x23\xb3\x2f\x5a\x94\x75\x0d\xa4\x7e\xdc\xef\x33\xea\x79\x94\x2a\xfd"[..]).unwrap(); let z = &b"\x82\xfd\x2f\x9c\x60\xc4\xf9\x99\xac\x00\xbb\xe6\x4b\xfc\x11\xda\x8f\xf8\xcd\xa2\xe4\x99\xfc\xed\x65\x23\x0b\xb1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xce\x91\x26\xdd\x53\x97\x2d\xea\x1d\xe1\xd1\x1e\xfe\xf9\x00\xde\x34\xb6\x61\x85\x9c\x46\x48\xc5\xc0\xe5\x34\xf7"[..], &b"\xe1\x13\xb6\xf2\xc1\x65\x9d\x07\xf2\x71\x6e\x64\xa8\x3c\x18\xbb\xce\x34\x4d\xd2\x12\x1f\xe8\x51\x68\xea\xe0\x85"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xac\xf3\xc8\x5b\xbd\xc3\x79\xf0\x2f\x5e\xa3\x6e\x7f\x0f\x53\x09\x5a\x9e\x70\x46\xa2\x86\x85\xa8\x65\x9b\xf7\x98"[..]).unwrap(); let iut_pub = Point::new::(&b"\xff\x75\x11\x21\x5c\x71\xd7\x96\xbd\x64\x6e\x84\x74\xbe\x44\x16\xb9\x16\x84\xce\x0d\x26\x9e\xf6\xf4\x22\x01\x3b"[..], &b"\xb7\xbf\x5e\x79\xb5\xa9\x39\x3b\xb9\xea\x42\xc0\xbd\xb2\xd3\xc2\xdc\x80\x6e\x1a\x73\x06\xaa\x58\xe4\xfd\xbe\xa5"[..]).unwrap(); let z = &b"\x53\x0f\x7e\x7f\xc9\x32\x61\x3b\x29\xc9\x81\xf2\x61\xcb\x03\x6c\xba\x3f\x1d\xf3\x86\x4e\x0e\x1c\xba\x26\x85\xa2"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x84\x41\x99\x67\xd6\xcf\xad\x41\xe7\x5a\x02\xb6\xda\x60\x5a\x97\x94\x9a\x18\x3a\x97\xc3\x06\xc4\xb4\x6e\x66\xa5"[..], &b"\x5c\xc9\xb2\x59\x71\x8b\x1b\xc8\xb1\x44\xfd\xe6\x33\xa8\x94\x61\x6f\xfd\x59\xa3\xa6\xd5\xd8\xe9\x42\xc7\xcb\xb7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xcf\xfd\x62\xcb\x00\xa0\xe3\x16\x3f\xbf\x2c\x39\x7f\xad\xc9\x61\x82\x10\xf8\x6b\x4f\x54\xa6\x75\x28\x73\x05\xf0"[..]).unwrap(); let iut_pub = Point::new::(&b"\x04\xbf\x4d\x94\x8f\x44\x30\xd1\x8b\x4e\xd6\xc9\x6d\xba\xf9\x81\xfa\x11\xa4\x03\xed\x16\x88\x7f\x06\x75\x49\x81"[..], &b"\x7c\x13\x26\xa9\xce\xf5\x1f\x79\xd4\xe7\x83\x03\xd6\x06\x4b\x45\x9f\x61\x25\x84\xac\x2f\xdf\x59\x3d\x7d\x5d\x84"[..]).unwrap(); let z = &b"\x49\xf6\xfd\x01\x39\x24\x8e\xf4\xdf\x2d\xb0\x5d\x13\x19\xbd\x5b\x14\x89\xe2\x49\x82\x7a\x45\xa8\xa5\xf1\x24\x27"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x7c\x9c\xac\x35\x76\x80\x63\xc2\x82\x7f\x60\xa7\xf5\x13\x88\xf2\xa8\xf4\xb7\xf8\xcd\x73\x6b\xd6\xbc\x33\x74\x77"[..], &b"\x29\xee\x6b\x84\x9c\x60\x25\xd5\x77\xdb\xcc\x55\xfb\xd1\x70\x18\xf4\xed\xbc\x2e\xf1\x05\xb0\x04\xd6\x25\x7b\xcd"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x85\xf9\x03\xe4\x39\x43\xd1\x3c\x68\x93\x2e\x71\x0e\x80\xde\x52\xcb\xc0\xb8\xf1\xa1\x41\x8e\xa4\xda\x07\x92\x99"[..]).unwrap(); let iut_pub = Point::new::(&b"\x97\x0a\x4a\x7e\x01\xd4\x18\x84\x97\xce\xb4\x69\x55\xeb\x1b\x84\x2d\x90\x85\x81\x9a\x9b\x92\x5c\x84\x52\x9d\x3d"[..], &b"\xdf\xa2\x52\x64\x80\xf8\x33\xea\x0e\xdb\xd2\x04\xe4\xe3\x65\xfe\xf3\x47\x28\x88\xfe\x7d\x96\x91\xc3\xeb\xc0\x9f"[..]).unwrap(); let z = &b"\x8f\x7e\x34\xe5\x97\xae\x80\x93\xb9\x82\x70\xa7\x4a\x8d\xfc\xdb\xed\x45\x7f\x42\xf4\x3d\xf4\x87\xc5\x48\x71\x61"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x08\x5a\x76\x42\xad\x8e\x59\xb1\xa3\xe8\x72\x6a\x75\x47\xaf\xbe\xcf\xfd\xac\x1d\xab\x7e\x57\x23\x0c\x6a\x9d\xf4"[..], &b"\xf9\x1c\x36\xd8\x81\xfe\x9b\x80\x47\xa3\x53\x07\x13\x55\x4a\x1a\xf4\xc2\x5c\x5a\x8e\x65\x4d\xcd\xcf\x68\x9f\x2e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xcc\xe6\x48\x91\xa3\xd0\x12\x9f\xee\x0d\x4a\x96\xcf\xbe\x7a\xc4\x70\xb8\x5e\x96\x75\x29\x05\x7c\xfa\x31\xa1\xd9"[..]).unwrap(); let iut_pub = Point::new::(&b"\xa6\xb2\x96\x32\xdb\x94\xda\x21\x25\xdc\x1c\xf8\x0e\x03\x70\x26\x87\xb2\xac\xc1\x12\x20\x22\xfa\x21\x74\x76\x5a"[..], &b"\x61\x72\x3e\xdd\x73\xe1\x0d\xae\xd7\x37\x75\x27\x8f\x19\x58\xba\x56\xf1\xfc\x9d\x08\x5e\xbc\x2b\x64\xc8\x4f\xe5"[..]).unwrap(); let z = &b"\x71\x95\x4e\x22\x61\xe8\x51\x0b\xe1\xa0\x60\x73\x36\x71\xd2\xe9\xd0\xa2\xd0\x12\xeb\x4e\x09\x55\x6d\x69\x7d\x2a"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } } #[test] fn nist_p_256() { { let cav_pub = Point::new::(&b"\x70\x0c\x48\xf7\x7f\x56\x58\x4c\x5c\xc6\x32\xca\x65\x64\x0d\xb9\x1b\x6b\xac\xce\x3a\x4d\xf6\xb4\x2c\xe7\xcc\x83\x88\x33\xd2\x87"[..], &b"\xdb\x71\xe5\x09\xe3\xfd\x9b\x06\x0d\xdb\x20\xba\x5c\x51\xdc\xc5\x94\x8d\x46\xfb\xf6\x40\xdf\xe0\x44\x17\x82\xca\xb8\x5f\xa4\xac"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x7d\x7d\xc5\xf7\x1e\xb2\x9d\xda\xf8\x0d\x62\x14\x63\x2e\xea\xe0\x3d\x90\x58\xaf\x1f\xb6\xd2\x2e\xd8\x0b\xad\xb6\x2b\xc1\xa5\x34"[..]).unwrap(); let iut_pub = Point::new::(&b"\xea\xd2\x18\x59\x01\x19\xe8\x87\x6b\x29\x14\x6f\xf8\x9c\xa6\x17\x70\xc4\xed\xbb\xf9\x7d\x38\xce\x38\x5e\xd2\x81\xd8\xa6\xb2\x30"[..], &b"\x28\xaf\x61\x28\x1f\xd3\x5e\x2f\xa7\x00\x25\x23\xac\xc8\x5a\x42\x9c\xb0\x6e\xe6\x64\x83\x25\x38\x9f\x59\xed\xfc\xe1\x40\x51\x41"[..]).unwrap(); let z = &b"\x46\xfc\x62\x10\x64\x20\xff\x01\x2e\x54\xa4\x34\xfb\xdd\x2d\x25\xcc\xc5\x85\x20\x60\x56\x1e\x68\x04\x0d\xd7\x77\x89\x97\xbd\x7b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x80\x9f\x04\x28\x9c\x64\x34\x8c\x01\x51\x5e\xb0\x3d\x5c\xe7\xac\x1a\x8c\xb9\x49\x8f\x5c\xaa\x50\x19\x7e\x58\xd4\x3a\x86\xa7\xae"[..], &b"\xb2\x9d\x84\xe8\x11\x19\x7f\x25\xeb\xa8\xf5\x19\x40\x92\xcb\x6f\xf4\x40\xe2\x6d\x44\x21\x01\x13\x72\x46\x1f\x57\x92\x71\xcd\xa3"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x38\xf6\x5d\x6d\xce\x47\x67\x60\x44\xd5\x8c\xe5\x13\x95\x82\xd5\x68\xf6\x4b\xb1\x60\x98\xd1\x79\xdb\xab\x07\x74\x1d\xd5\xca\xf5"[..]).unwrap(); let iut_pub = Point::new::(&b"\x11\x9f\x2f\x04\x79\x02\x78\x2a\xb0\xc9\xe2\x7a\x54\xaf\xf5\xeb\x9b\x96\x48\x29\xca\x99\xc0\x6b\x02\xdd\xba\x95\xb0\xa3\xf6\xd0"[..], &b"\x8f\x52\xb7\x26\x66\x4c\xac\x36\x6f\xc9\x8a\xc7\xa0\x12\xb2\x68\x2c\xbd\x96\x2e\x5a\xcb\x54\x46\x71\xd4\x1b\x94\x45\x70\x4d\x1d"[..]).unwrap(); let z = &b"\x05\x7d\x63\x60\x96\xcb\x80\xb6\x7a\x8c\x03\x8c\x89\x0e\x88\x7d\x1a\xdf\xa4\x19\x5e\x9b\x3c\xe2\x41\xc8\xa7\x78\xc5\x9c\xda\x67"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa2\x33\x9c\x12\xd4\xa0\x3c\x33\x54\x6d\xe5\x33\x26\x8b\x4a\xd6\x67\xde\xbf\x45\x8b\x46\x4d\x77\x44\x36\x36\x44\x0e\xe7\xfe\xc3"[..], &b"\xef\x48\xa3\xab\x26\xe2\x02\x20\xbc\xda\x2c\x18\x51\x07\x68\x39\xda\xe8\x8e\xae\x96\x28\x69\xa4\x97\xbf\x73\xcb\x66\xfa\xf5\x36"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x1a\xcc\xfa\xf1\xb9\x77\x12\xb8\x5a\x6f\x54\xb1\x48\x98\x5a\x1b\xdc\x4c\x9b\xec\x0b\xd2\x58\xca\xd4\xb3\xd6\x03\xf4\x9f\x32\xc8"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd9\xf2\xb7\x9c\x17\x28\x45\xbf\xdb\x56\x0b\xbb\x01\x44\x7c\xa5\xec\xc0\x47\x0a\x09\x51\x3b\x61\x26\x90\x2c\x6b\x4f\x8d\x10\x51"[..], &b"\xf8\x15\xef\x5e\xc3\x21\x28\xd3\x48\x78\x34\x76\x46\x78\x70\x2e\x64\xe1\x64\xff\x73\x15\x18\x5e\x23\xaf\xf5\xfa\xcd\x96\xd7\xbc"[..]).unwrap(); let z = &b"\x2d\x45\x7b\x78\xb4\x61\x41\x32\x47\x76\x18\xa5\xb0\x77\x96\x5e\xc9\x07\x30\xa8\xc8\x1a\x1c\x75\xd6\xd4\xec\x68\x00\x5d\x67\xec"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xdf\x39\x89\xb9\xfa\x55\x49\x57\x19\xb3\xcf\x46\xdc\xcd\x28\xb5\x15\x3f\x78\x08\x19\x1d\xd5\x18\xef\xf0\xc3\xcf\xf2\xb7\x05\xed"[..], &b"\x42\x22\x94\xff\x46\x00\x34\x29\xd7\x39\xa3\x32\x06\xc8\x75\x25\x52\xc8\xba\x54\xa2\x70\xde\xfc\x06\xe2\x21\xe0\xfe\xaf\x6a\xc4"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x20\x7c\x43\xa7\x9b\xfe\xe0\x3d\xb6\xf4\xb9\x44\xf5\x3d\x2f\xb7\x6c\xc4\x9e\xf1\xc9\xc4\xd3\x4d\x51\xb6\xc6\x5c\x4d\xb6\x93\x2d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x24\x27\x7c\x33\xf4\x50\x46\x2d\xcb\x3d\x48\x01\xd5\x7b\x9c\xed\x05\x18\x8f\x16\xc2\x8e\xda\x87\x32\x58\x04\x8c\xd1\x60\x7e\x0d"[..], &b"\xc4\x78\x97\x53\xe2\xb1\xf6\x3b\x32\xff\x01\x4e\xc4\x2c\xd6\xa6\x9f\xac\x81\xdf\xe6\xd0\xd6\xfd\x4a\xf3\x72\xae\x27\xc4\x6f\x88"[..]).unwrap(); let z = &b"\x96\x44\x12\x59\x53\x4b\x80\xf6\xae\xe3\xd2\x87\xa6\xbb\x17\xb5\x09\x4d\xd4\x27\x7d\x9e\x29\x4f\x8f\xe7\x3e\x48\xbf\x2a\x00\x24"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x41\x19\x2d\x28\x13\xe7\x95\x61\xe6\xa1\xd6\xf5\x3c\x8b\xc1\xa4\x33\xa1\x99\xc8\x35\xe1\x41\xb0\x5a\x74\xa9\x7b\x0f\xae\xb9\x22"[..], &b"\x1a\xf9\x8c\xc4\x5e\x98\xa7\xe0\x41\xb0\x1c\xf3\x5f\x46\x2b\x75\x62\x28\x13\x51\xc8\xeb\xf3\xff\xa0\x2e\x33\xa0\x72\x2a\x13\x28"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x59\x13\x7e\x38\x15\x23\x50\xb1\x95\xc9\x71\x8d\x39\x67\x3d\x51\x98\x38\x05\x5a\xd9\x08\xdd\x47\x57\x15\x2f\xd8\x25\x5c\x09\xbf"[..]).unwrap(); let iut_pub = Point::new::(&b"\xa8\xc5\xfd\xce\x8b\x62\xc5\xad\xa5\x98\xf1\x41\xad\xb3\xb2\x6c\xf2\x54\xc2\x80\xb2\x85\x7a\x63\xd2\xad\x78\x3a\x73\x11\x5f\x6b"[..], &b"\x80\x6e\x1a\xaf\xec\x4a\xf8\x0a\x0d\x78\x6b\x3d\xe4\x53\x75\xb5\x17\xa7\xe5\xb5\x1f\xfb\x2c\x35\x65\x37\xc9\xe6\xef\x22\x7d\x4a"[..]).unwrap(); let z = &b"\x19\xd4\x4c\x8d\x63\xe8\xe8\xdd\x12\xc2\x2a\x87\xb8\xcd\x4e\xce\x27\xac\xdd\xe0\x4d\xbf\x47\xf7\xf2\x75\x37\xa6\x99\x9a\x8e\x62"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x33\xe8\x20\x92\xa0\xf1\xfb\x38\xf5\x64\x9d\x58\x67\xfb\xa2\x8b\x50\x31\x72\xb7\x03\x55\x74\xbf\x8e\x5b\x71\x00\xa3\x05\x27\x92"[..], &b"\xf2\xcf\x6b\x60\x1e\x0a\x05\x94\x5e\x33\x55\x50\xbf\x64\x8d\x78\x2f\x46\x18\x6c\x77\x2c\x0f\x20\xd3\xcd\x0d\x6b\x8c\xa1\x4b\x2f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf5\xf8\xe0\x17\x46\x10\xa6\x61\x27\x79\x79\xb5\x8c\xe5\xc9\x0f\xee\x6c\x9b\x3b\xb3\x46\xa9\x0a\x71\x96\x25\x5e\x40\xb1\x32\xef"[..]).unwrap(); let iut_pub = Point::new::(&b"\x7b\x86\x1d\xcd\x28\x44\xa5\xa8\x36\x3f\x6b\x8e\xf8\xd4\x93\x64\x0f\x55\x87\x92\x17\x18\x9d\x80\x32\x6a\xad\x94\x80\xdf\xc1\x49"[..], &b"\xc4\x67\x5b\x45\xee\xb3\x06\x40\x5f\x6c\x33\xc3\x8b\xc6\x9e\xb2\xbd\xec\x9b\x75\xad\x5a\xf4\x70\x6a\xab\x84\x54\x3b\x9c\xc6\x3a"[..]).unwrap(); let z = &b"\x66\x4e\x45\xd5\xbb\xa4\xac\x93\x1c\xd6\x5d\x52\x01\x7e\x4b\xe9\xb1\x9a\x51\x5f\x66\x9b\xea\x47\x03\x54\x2a\x2c\x52\x5c\xd3\xd3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x6a\x9e\x0c\x3f\x91\x6e\x4e\x31\x5c\x91\x14\x7b\xe5\x71\x68\x6d\x90\x46\x4e\x8b\xf9\x81\xd3\x4a\x90\xb6\x35\x3b\xca\x6e\xeb\xa7"[..], &b"\x40\xf9\xbe\xad\x39\xc2\xf2\xbc\xc2\x60\x2f\x75\xb8\xa7\x3e\xc7\xbd\xff\xcb\xce\xad\x15\x9d\x01\x74\xc6\xc4\xd3\xc5\x35\x7f\x05"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x3b\x58\x9a\xf7\xdb\x03\x45\x9c\x23\x06\x8b\x64\xf6\x3f\x28\xd3\xc3\xc6\xbc\x25\xb5\xbf\x76\xac\x05\xf3\x54\x82\x88\x8b\x51\x90"[..]).unwrap(); let iut_pub = Point::new::(&b"\x9f\xb3\x8e\x2d\x58\xea\x1b\xaf\x76\x22\xe9\x67\x20\x10\x1c\xae\x3c\xde\x4b\xa6\xc1\xe9\xfa\x26\xd9\xb1\xde\x08\x99\x10\x28\x63"[..], &b"\xd5\x56\x1b\x90\x04\x06\xed\xf5\x08\x02\xdd\x7d\x73\xe8\x93\x95\xf8\xae\xd7\x2f\xba\x0e\x1d\x1b\x61\xfe\x1d\x22\x30\x22\x60\xf0"[..]).unwrap(); let z = &b"\xca\x34\x2d\xaa\x50\xdc\x09\xd6\x1b\xe7\xc1\x96\xc8\x5e\x60\xa8\x0c\x5c\xb0\x49\x31\x74\x68\x20\xbe\x54\x8c\xdd\xe0\x55\x67\x9d"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa9\xc0\xac\xad\xe5\x5c\x2a\x73\xea\xd1\xa8\x6f\xb0\xa9\x71\x32\x23\xc8\x24\x75\x79\x1c\xd0\xe2\x10\xb0\x46\x41\x2c\xe2\x24\xbb"[..], &b"\xf6\xde\x0a\xfa\x20\xe9\x3e\x07\x84\x67\xc0\x53\xd2\x41\x90\x3e\xda\xd7\x34\xc6\xb4\x03\xba\x75\x8c\x2b\x5f\xf0\x4c\x9d\x42\x29"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xd8\xbf\x92\x9a\x20\xea\x74\x36\xb2\x46\x1b\x54\x1a\x11\xc8\x0e\x61\xd8\x26\xc0\xa4\xc9\xd3\x22\xb3\x1d\xd5\x4e\x7f\x58\xb9\xc8"[..]).unwrap(); let iut_pub = Point::new::(&b"\x20\xf0\x76\x31\xe4\xa6\x51\x2a\x89\xad\x48\x7c\x4e\x9d\x63\x03\x9e\x57\x9c\xb0\xd7\xa5\x56\xcb\x9e\x66\x1c\xd5\x9c\x1e\x7f\xa4"[..], &b"\x6d\xe9\x18\x46\xb3\xee\xe8\xa5\xec\x09\xc2\xab\x1f\x41\xe2\x1b\xd8\x36\x20\xcc\xdd\x1b\xdc\xe3\xab\x7e\xa6\xe0\x2d\xd2\x74\xf5"[..]).unwrap(); let z = &b"\x35\xaa\x9b\x52\x53\x6a\x46\x1b\xfd\xe4\xe8\x5f\xc7\x56\xbe\x92\x8c\x7d\xe9\x79\x23\xf0\x41\x6c\x7a\x3a\xc8\xf8\x8b\x3d\x44\x89"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x94\xe9\x4f\x16\xa9\x82\x55\xff\xf2\xb9\xac\x0c\x95\x98\xaa\xc3\x54\x87\xb3\x23\x2d\x32\x31\xbd\x93\xb7\xdb\x7d\xf3\x6f\x9e\xb9"[..], &b"\xd8\x04\x9a\x43\x57\x9c\xfa\x90\xb8\x09\x3a\x94\x41\x6c\xbe\xfb\xf9\x33\x86\xf1\x5b\x3f\x6e\x19\x0b\x6e\x34\x55\xfe\xdf\xe6\x9a"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x0f\x98\x83\xba\x0e\xf3\x2e\xe7\x5d\xed\x0d\x8b\xda\x39\xa5\x14\x6a\x29\xf1\xf2\x50\x7b\x3b\xd4\x58\xdb\xea\x0b\x2b\xb0\x5b\x4d"[..]).unwrap(); let iut_pub = Point::new::(&b"\xab\xb6\x1b\x42\x3b\xe5\xd6\xc2\x6e\x21\xc6\x05\x83\x2c\x91\x42\xdc\x1d\xfe\x5a\x5f\xff\x28\x72\x67\x37\x93\x6e\x6f\xbf\x51\x6d"[..], &b"\x73\x3d\x25\x13\xef\x58\xbe\xab\x20\x20\x90\x58\x6f\xac\x91\xbf\x0f\xee\x31\xe8\x0a\xb3\x34\x73\xab\x23\xa2\xd8\x9e\x58\xfa\xd6"[..]).unwrap(); let z = &b"\x60\x5c\x16\x17\x8a\x9b\xc8\x75\xdc\xbf\xf5\x4d\x63\xfe\x00\xdf\x69\x9c\x03\xe8\xa8\x88\xe9\xe9\x4d\xfb\xab\x90\xb2\x5f\x39\xb4"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xe0\x99\xbf\x2a\x4d\x55\x74\x60\xb5\x54\x44\x30\xbb\xf6\xda\x11\x00\x4d\x12\x7c\xb5\xd6\x7f\x64\xab\x07\xc9\x4f\xcd\xf5\x27\x4f"[..], &b"\xd9\xc5\x0d\xbe\x70\xd7\x14\xed\xb5\xe2\x21\xf4\xe0\x20\x61\x0e\xeb\x62\x70\x51\x7e\x68\x8c\xa6\x4f\xb0\xe9\x8c\x7e\xf8\xc1\xc5"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x2b\xee\xdb\x04\xb0\x5c\x69\x88\xf6\xa6\x75\x00\xbb\x81\x3f\xaf\x2c\xae\x0d\x58\x0c\x92\x53\xb6\x33\x9e\x4a\x33\x37\xbb\x6c\x08"[..]).unwrap(); let iut_pub = Point::new::(&b"\x3d\x63\xe4\x29\xcb\x5f\xa8\x95\xa9\x24\x71\x29\xbf\x4e\x48\xe8\x9f\x35\xd7\xb1\x1d\xe8\x15\x8e\xfe\xb3\xe1\x06\xa2\xa8\x73\x95"[..], &b"\x0c\xae\x9e\x47\x7e\xf4\x1e\x7c\x8c\x10\x64\x37\x9b\xb7\xb5\x54\xdd\xcb\xca\xe7\x9f\x98\x14\x28\x1f\x1e\x50\xf0\x40\x3c\x61\xf3"[..]).unwrap(); let z = &b"\xf9\x6e\x40\xa1\xb7\x28\x40\x85\x4b\xb6\x2b\xc1\x3c\x40\xcc\x27\x95\xe3\x73\xd4\xe7\x15\x98\x0b\x26\x14\x76\x83\x5a\x09\x2e\x0b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xf7\x5a\x5f\xe5\x6b\xda\x34\xf3\xc1\x39\x62\x96\x62\x6e\xf0\x12\xdc\x07\xe4\x82\x58\x38\x77\x8a\x64\x5c\x82\x48\xcf\xf0\x16\x58"[..], &b"\x33\xbb\xdf\x1b\x17\x72\xd8\x05\x9d\xf5\x68\xb0\x61\xf3\xf1\x12\x2f\x28\xa8\xd8\x19\x16\x7c\x97\xbe\x44\x8e\x3d\xc3\xfb\x0c\x3c"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x77\xc1\x5d\xcf\x44\x61\x0e\x41\x69\x6b\xab\x75\x89\x43\xef\xf1\x40\x93\x33\xe4\xd5\xa1\x1b\xbe\x72\xc8\xf6\xc3\x95\xe9\xf8\x48"[..]).unwrap(); let iut_pub = Point::new::(&b"\xad\x5d\x13\xc3\xdb\x50\x8d\xdc\xd3\x84\x57\xe5\x99\x14\x34\xa2\x51\xbe\xd4\x9c\xf5\xdd\xcb\x59\xcd\xee\x73\x86\x5f\x13\x8c\x9f"[..], &b"\x62\xce\xc1\xe7\x05\x88\xaa\x4f\xdf\xc7\xb9\xa0\x9d\xaa\x67\x80\x81\xc0\x4e\x12\x08\xb9\xd6\x62\xb8\xa2\x21\x4b\xf8\xe8\x1a\x21"[..]).unwrap(); let z = &b"\x83\x88\xfa\x79\xc4\xba\xbd\xca\x02\xa8\xe8\xa3\x4f\x9e\x43\x55\x49\x76\xe4\x20\xa4\xad\x27\x3c\x81\xb2\x6e\x42\x28\xe9\xd3\xa3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x2d\xb4\x54\x0d\x50\x23\x07\x56\x15\x8a\xbf\x61\xd9\x83\x57\x12\xb6\x48\x6c\x74\x31\x21\x83\xcc\xef\xca\xef\x27\x97\xb7\x67\x4d"[..], &b"\x62\xf5\x7f\x31\x4e\x3f\x34\x95\xdc\x4e\x09\x90\x12\xf5\xe0\xba\x71\x77\x0f\x96\x60\xa1\xea\xda\x54\x10\x4c\xdf\xde\x77\x24\x3e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x42\xa8\x3b\x98\x50\x11\xd1\x23\x03\xdb\x1a\x80\x0f\x26\x10\xf7\x4a\xa7\x1c\xdf\x19\xc6\x7d\x54\xce\x6c\x9e\xd9\x51\xe9\x09\x3e"[..]).unwrap(); let iut_pub = Point::new::(&b"\xab\x48\xca\xa6\x1e\xa3\x5f\x13\xf8\xed\x07\xff\xa6\xa1\x3e\x8d\xb2\x24\xdf\xec\xfa\xe1\xa7\xdf\x8b\x1b\xb6\xeb\xaf\x0c\xb9\x7d"[..], &b"\x12\x74\x53\x0c\xa2\xc3\x85\xa3\x21\x8b\xdd\xfb\xcb\xf0\xb4\x02\x4c\x9b\xad\xd5\x24\x3b\xff\x83\x4e\xbf\xf2\x4a\x86\x18\xdc\xcb"[..]).unwrap(); let z = &b"\x72\x87\x7c\xea\x33\xcc\xc4\x71\x50\x38\xd4\xbc\xbd\xfe\x0e\x43\xf4\x2a\x9e\x2c\x0c\x3b\x01\x7f\xc2\x37\x0f\x4b\x9a\xcb\xda\x4a"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xcd\x94\xfc\x94\x97\xe8\x99\x07\x50\x30\x9e\x9a\x85\x34\xfd\x11\x4b\x0a\x6e\x54\xda\x89\xc4\x79\x61\x01\x89\x70\x41\xd1\x4e\xcb"[..], &b"\xc3\xde\xf4\xb5\xfe\x04\xfa\xee\x0a\x11\x93\x22\x29\xff\xf5\x63\x63\x7b\xfd\xee\x0e\x79\xc6\xde\xea\xf4\x49\xf8\x54\x01\xc5\xc4"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xce\xed\x35\x50\x7b\x5c\x93\xea\xd5\x98\x91\x19\xb9\xba\x34\x2c\xfe\x38\xe6\xe6\x38\xba\x6e\xea\x34\x3a\x55\x47\x5d\xe2\x80\x0b"[..]).unwrap(); let iut_pub = Point::new::(&b"\x9a\x8c\xd9\xbd\x72\xe7\x17\x52\xdf\x91\x44\x0f\x77\xc5\x47\x50\x9a\x84\xdf\x98\x11\x4e\x7d\xe4\xf2\x6c\xdb\x39\x23\x4a\x62\x5d"[..], &b"\xd0\x7c\xfc\x84\xc8\xe1\x44\xfa\xb2\x83\x9f\x51\x89\xbb\x1d\x7c\x88\x63\x1d\x57\x9b\xbc\x58\x01\x2e\xd9\xa2\x32\x7d\xa5\x2f\x62"[..]).unwrap(); let z = &b"\xe4\xe7\x40\x8d\x85\xff\x0e\x0e\x9c\x83\x80\x03\xf2\x8c\xdb\xd5\x24\x7c\xdc\xe3\x1f\x32\xf6\x24\x94\xb7\x0e\x5f\x1b\xc3\x63\x07"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x15\xb9\xe4\x67\xaf\x4d\x29\x0c\x41\x74\x02\xe0\x40\x42\x6f\xe4\xcf\x23\x6b\xae\x72\xba\xa3\x92\xed\x89\x78\x0d\xfc\xcd\xb4\x71"[..], &b"\xcd\xf4\xe9\x17\x0f\xb9\x04\x30\x2b\x8f\xd9\x3a\x82\x0b\xa8\xcc\x7e\xd4\xef\xd3\xa6\xf2\xd6\xb0\x5b\x80\xb2\xff\x2a\xee\x4e\x77"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x43\xe0\xe9\xd9\x5a\xf4\xdc\x36\x48\x3c\xdd\x19\x68\xd2\xb7\xee\xb8\x61\x1f\xcc\xe7\x7f\x3a\x4e\x7d\x05\x9a\xe4\x3e\x50\x96\x04"[..]).unwrap(); let iut_pub = Point::new::(&b"\xf9\x89\xcf\x8e\xe9\x56\xa8\x2e\x7e\xbd\x98\x81\xcd\xbf\xb2\xfd\x94\x61\x89\xb0\x8d\xb5\x35\x59\xbc\x8c\xfd\xd4\x80\x71\xeb\x14"[..], &b"\x5e\xff\x28\xf1\xa1\x8a\x61\x6b\x04\xb7\xd3\x37\x86\x86\x79\xf6\xdd\x84\xf9\xa7\xb3\xd7\xb6\xf8\xaf\x27\x6c\x19\x61\x1a\x54\x1d"[..]).unwrap(); let z = &b"\xed\x56\xbc\xf6\x95\xb7\x34\x14\x2c\x24\xec\xb1\xfc\x1b\xb6\x4d\x08\xf1\x75\xeb\x24\x3a\x31\xf3\x7b\x3d\x9b\xb4\x40\x7f\x3b\x96"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x49\xc5\x03\xba\x6c\x4f\xa6\x05\x18\x2e\x18\x6b\x5e\x81\x11\x3f\x07\x5b\xc1\x1d\xcf\xd5\x1c\x93\x2f\xb2\x1e\x95\x1e\xee\x2f\xa1"[..], &b"\x8a\xf7\x06\xff\x09\x22\xd8\x7b\x3f\x0c\x5e\x4e\x31\xd8\xb2\x59\xae\xb2\x60\xa9\x26\x96\x43\xed\x52\x0a\x13\xbb\x25\xda\x59\x24"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xb2\xf3\x60\x0d\xf3\x36\x8e\xf8\xa0\xbb\x85\xab\x22\xf4\x1f\xc0\xe5\xf4\xfd\xd5\x4b\xe8\x16\x7a\x5c\x3c\xd4\xb0\x8d\xb0\x49\x03"[..]).unwrap(); let iut_pub = Point::new::(&b"\x69\xc6\x27\x62\x5b\x36\xa4\x29\xc3\x98\xb4\x5c\x38\x67\x7c\xb3\x5d\x8b\xeb\x1c\xf7\x8a\x57\x1e\x40\xe9\x9f\xe4\xea\xc1\xcd\x4e"[..], &b"\x81\x69\x01\x12\xb0\xa8\x8f\x20\xf7\x13\x6b\x28\xd7\xd4\x7e\x5f\xbc\x2a\xda\x3c\x8e\xdd\x87\x58\x9b\xc1\x9e\xc9\x59\x06\x37\xbd"[..]).unwrap(); let z = &b"\xbc\x5c\x70\x55\x08\x9f\xc9\xd6\xc8\x9f\x83\xc1\xea\x1a\xda\x87\x9d\x99\x34\xb2\xea\x28\xfc\xf4\xe4\xa7\xe9\x84\xb2\x8a\xd2\xcf"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x19\xb3\x8d\xe3\x9f\xdd\x2f\x70\xf7\x09\x16\x31\xa4\xf7\x5d\x19\x93\x74\x0b\xa9\x42\x91\x62\xc2\xa4\x53\x12\x40\x16\x36\xb2\x9c"[..], &b"\x09\xae\xd7\x23\x2b\x28\xe0\x60\x94\x17\x41\xb6\x82\x8b\xcd\xfa\x2b\xc4\x9c\xc8\x44\xf3\x77\x36\x11\x50\x4f\x82\xa3\x90\xa5\xae"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x40\x02\x53\x43\x07\xf8\xb6\x2a\x9b\xf6\x7f\xf6\x41\xdd\xc6\x0f\xef\x59\x3b\x17\xc3\x34\x12\x39\xe9\x5b\xdb\x3e\x57\x9b\xfd\xc8"[..]).unwrap(); let iut_pub = Point::new::(&b"\x5f\xe9\x64\x67\x13\x15\xa1\x8a\xa6\x8a\x2a\x6e\x3d\xd1\xfd\xe7\xe2\x3b\x8c\xe7\x18\x14\x71\xcf\xac\x43\xc9\x9e\x1a\xe8\x02\x62"[..], &b"\xd5\x82\x7b\xe2\x82\xe6\x2c\x84\xde\x53\x1b\x96\x38\x84\xba\x83\x2d\xb5\xd6\xb2\xc3\xa2\x56\xf0\xe6\x04\xfe\x7e\x6b\x8a\x7f\x72"[..]).unwrap(); let z = &b"\x9a\x4e\x8e\x65\x7f\x6b\x0e\x09\x7f\x47\x95\x4a\x63\xc7\x5d\x74\xfc\xba\x71\xa3\x0d\x83\x65\x1e\x3e\x5a\x91\xaa\x7c\xcd\x83\x43"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x2c\x91\xc6\x1f\x33\xad\xfe\x93\x11\xc9\x42\xfd\xbf\xf6\xba\x47\x02\x0f\xef\xf4\x16\xb7\xbb\x63\xce\xc1\x3f\xaf\x9b\x09\x99\x54"[..], &b"\x6c\xab\x31\xb0\x64\x19\xe5\x22\x1f\xca\x01\x4f\xb8\x4e\xc8\x70\x62\x2a\x1b\x12\xba\xb5\xae\x43\x68\x2a\xa7\xea\x73\xea\x08\xd0"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x4d\xfa\x12\xde\xfc\x60\x31\x90\x21\xb6\x81\xb3\xff\x84\xa1\x0a\x51\x19\x58\xc8\x50\x93\x9e\xd4\x56\x35\x93\x4b\xa4\x97\x91\x47"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc9\xb2\xb8\x49\x6f\x14\x40\xbd\x4a\x2d\x1e\x52\x75\x2f\xd3\x72\x83\x5b\x36\x48\x85\xe1\x54\xa7\xda\xc4\x92\x95\xf2\x81\xec\x7c"[..], &b"\xfb\xe6\xb9\x26\xa8\xa4\xde\x26\xcc\xc8\x3b\x80\x2b\x12\x12\x40\x07\x54\xbe\x25\xd9\xf3\xee\xaf\x00\x8b\x09\x87\x0a\xe7\x63\x21"[..]).unwrap(); let z = &b"\x3c\xa1\xfc\x7a\xd8\x58\xfb\x1a\x6a\xba\x23\x25\x42\xf3\xe2\xa7\x49\xff\xc7\x20\x3a\x23\x74\xa3\xf3\xd3\x26\x7f\x1f\xc9\x7b\x78"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa2\x8a\x2e\xdf\x58\x02\x56\x68\xf7\x24\xaa\xf8\x3a\x50\x95\x6b\x7a\xc1\xcf\xbb\xff\x79\xb0\x8c\x3b\xf8\x7d\xfd\x28\x28\xd7\x67"[..], &b"\xdf\xa7\xbf\xff\xd4\xc7\x66\xb8\x6a\xbe\xaf\x5c\x99\xb6\xe5\x0c\xb9\xcc\xc9\xd9\xd0\x0b\x7f\xfc\x78\x04\xb0\x49\x1b\x67\xbc\x03"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x13\x31\xf6\xd8\x74\xa4\xed\x3b\xc4\xa2\xc6\xe9\xc7\x43\x31\xd3\x03\x97\x96\x31\x4b\xee\xe3\xb7\x15\x2f\xcd\xba\x55\x56\x30\x4e"[..]).unwrap(); let iut_pub = Point::new::(&b"\x59\xe1\xe1\x01\x52\x10\x46\xad\x9c\xf1\xd0\x82\xe9\xd2\xec\x7d\xd2\x25\x30\xcc\xe0\x64\x99\x1f\x1e\x55\xc5\xbc\xf5\xfc\xb5\x91"[..], &b"\x48\x2f\x4f\x67\x31\x76\xc8\xfd\xaa\x0b\xb6\xe5\x9b\x15\xa3\xe4\x74\x54\xe3\xa0\x42\x97\xd3\x86\x3c\x93\x38\xd9\x8a\xdd\x1f\x37"[..]).unwrap(); let z = &b"\x1a\xaa\xbe\x7e\xe6\xe4\xa6\xfa\x73\x22\x91\x20\x24\x33\xa2\x37\xdf\x1b\x49\xbc\x53\x86\x6b\xfb\xe0\x0d\xb9\x6a\x0f\x58\x22\x4f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa2\xef\x85\x7a\x08\x1f\x9d\x6e\xb2\x06\xa8\x1c\x4c\xf7\x8a\x80\x2b\xdf\x59\x8a\xe3\x80\xc8\x88\x6e\xcd\x85\xfd\xc1\xed\x76\x44"[..], &b"\x56\x3c\x4c\x20\x41\x9f\x07\xbc\x17\xd0\x53\x9f\xad\xe1\x85\x5e\x34\x83\x95\x15\xb8\x92\xc0\xf5\xd2\x65\x61\xf9\x7f\xa0\x4d\x1a"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xdd\x5e\x9f\x70\xae\x74\x00\x73\xca\x02\x04\xdf\x60\x76\x3f\xb6\x03\x6c\x45\x70\x9b\xf4\xa7\xbb\x4e\x67\x14\x12\xfa\xd6\x5d\xa3"[..]).unwrap(); let iut_pub = Point::new::(&b"\x30\xb9\xdb\x2e\x2e\x97\x7b\xcd\xc9\x8c\xb8\x7d\xd7\x36\xcb\xd8\xe7\x85\x52\x12\x19\x25\xcf\x16\xe1\x93\x36\x57\xc2\xfb\x23\x14"[..], &b"\x6a\x45\x02\x88\x00\xb8\x12\x91\xbc\xe5\xc2\xe1\xfe\xd7\xde\xd6\x50\x62\x0e\xbb\xe6\x05\x0c\x6f\x3a\x7f\x0d\xfb\x46\x73\xab\x5c"[..]).unwrap(); let z = &b"\x43\x0e\x6a\x4f\xba\x44\x49\xd7\x00\xd2\x73\x3e\x55\x7f\x66\xa3\xbf\x3d\x50\x51\x7c\x12\x71\xb1\xdd\xae\x11\x61\xb7\xac\x79\x8c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xcc\xd8\xa2\xd8\x6b\xc9\x2f\x2e\x01\xbc\xe4\xd6\x92\x2c\xf7\xfe\x16\x26\xae\xd0\x44\x68\x5e\x95\xe2\xee\xbd\x46\x45\x05\xf0\x1f"[..], &b"\xe9\xdd\xd5\x83\xa9\x63\x5a\x66\x77\x77\xd5\xb8\xa8\xf3\x1b\x0f\x79\xeb\xa1\x2c\x75\x02\x34\x10\xb5\x4b\x85\x67\xdd\xdc\x0f\x38"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x5a\xe0\x26\xcf\xc0\x60\xd5\x56\x00\x71\x7e\x55\xb8\xa1\x2e\x11\x6d\x1d\x0d\xf3\x4a\xf8\x31\x97\x90\x57\x60\x7c\x2d\x9c\x2f\x76"[..]).unwrap(); let iut_pub = Point::new::(&b"\x46\xc9\xeb\xd1\xa4\xa3\xc8\xc0\xb6\xd5\x72\xb5\xdc\xfb\xa1\x24\x67\x60\x32\x08\xa9\xcb\x5d\x2a\xcf\xbb\x73\x3c\x40\xcf\x63\x91"[..], &b"\x46\xc9\x13\xa2\x7d\x04\x41\x85\xd3\x8b\x46\x7a\xce\x01\x1e\x04\xd4\xd9\xbb\xbb\x8c\xb9\xae\x25\xfa\x92\xaa\xf1\x5a\x59\x5e\x86"[..]).unwrap(); let z = &b"\x1c\xe9\xe6\x74\x05\x29\x49\x9f\x98\xd1\xf1\xd7\x13\x29\x14\x7a\x33\xdf\x1d\x05\xe4\x76\x5b\x53\x9b\x11\xcf\x61\x5d\x69\x74\xd3"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xc1\x88\xff\xc8\x94\x7f\x73\x01\xfb\x7b\x53\xe3\x67\x46\x09\x7c\x21\x34\xbf\x9c\xc9\x81\xba\x74\xb4\xe9\xc4\x36\x1f\x59\x5e\x4e"[..], &b"\xbf\x7d\x2f\x20\x56\xe7\x24\x21\xef\x39\x3f\x0c\x0f\x2b\x0e\x00\x13\x0e\x3c\xac\x4a\xbb\xcc\x00\x28\x61\x68\xe8\x5e\xc5\x50\x51"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xb6\x01\xac\x42\x5d\x5d\xbf\x9e\x17\x35\xc5\xe2\xd5\xbd\xb7\x9c\xa9\x8b\x3d\x5b\xe4\xa2\xcf\xd6\xf2\x27\x3f\x15\x0e\x06\x4d\x9d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x7c\x9e\x95\x08\x41\xd2\x6c\x8d\xde\x89\x94\x39\x8b\x8f\x5d\x47\x5a\x02\x2b\xc6\x3d\xe7\x77\x3f\xcf\x8d\x55\x2e\x01\xf1\xba\x0a"[..], &b"\xcc\x42\xb9\x88\x5c\x9b\x3b\xee\x0f\x8d\x8c\x57\xd3\xa8\xf6\x35\x50\x16\xc0\x19\xc4\x06\x2f\xa2\x2c\xff\x2f\x20\x9b\x5c\xc2\xe1"[..]).unwrap(); let z = &b"\x46\x90\xe3\x74\x3c\x07\xd6\x43\xf1\xbc\x18\x36\x36\xab\x2a\x9c\xb9\x36\xa6\x0a\x80\x21\x13\xc4\x9b\xb1\xb3\xf2\xd0\x66\x16\x60"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x31\x7e\x10\x20\xff\x53\xfc\xce\xf1\x8b\xf4\x7b\xb7\xf2\xdd\x77\x07\xfb\x7b\x7a\x75\x78\xe0\x4f\x35\xb3\xbe\xed\x22\x2a\x0e\xb6"[..], &b"\x09\x42\x0c\xe5\xa1\x9d\x77\xc6\xfe\x1e\xe5\x87\xe6\xa4\x9f\xba\xf8\xf2\x80\xe8\xdf\x03\x3d\x75\x40\x33\x02\xe5\xa2\x7d\xb2\xae"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xfe\xfb\x1d\xda\x18\x45\x31\x2b\x5f\xce\x6b\x81\xb2\xbe\x20\x5a\xf2\xf3\xa2\x74\xf5\xa2\x12\xf6\x6c\x0d\x9f\xc3\x3d\x7a\xe5\x35"[..]).unwrap(); let iut_pub = Point::new::(&b"\x38\xb5\x4d\xb8\x55\x00\xcb\x20\xc6\x10\x56\xed\xd3\xd8\x8b\x6a\x9d\xc2\x67\x80\xa0\x47\xf2\x13\xa6\xe1\xb9\x00\xf7\x65\x96\xeb"[..], &b"\x63\x87\xe4\xe5\x78\x15\x71\xe4\xeb\x8a\xe6\x29\x91\xa3\x3b\x5d\xc3\x33\x01\xc5\xbc\x7e\x12\x5d\x53\x79\x4a\x39\x16\x0d\x8f\xd0"[..]).unwrap(); let z = &b"\x30\xc2\x26\x1b\xd0\x00\x4e\x61\xfe\xda\x2c\x16\xaa\x5e\x21\xff\xa8\xd7\xe7\xf7\xdb\xf6\xec\x37\x9a\x43\xb4\x8e\x4b\x36\xae\xb0"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x45\xfb\x02\xb2\xce\xb9\xd7\xc7\x9d\x9c\x2f\xa9\x3e\x9c\x79\x67\xc2\xfa\x4d\xf5\x78\x9f\x96\x40\xb2\x42\x64\xb1\xe5\x24\xfc\xb1"[..], &b"\x5c\x6e\x8e\xcf\x1f\x7d\x30\x23\x89\x3b\x7b\x1c\xa1\xe4\xd1\x78\x97\x2e\xe2\xa2\x30\x75\x7d\xdc\x56\x4f\xfe\x37\xf5\xc5\xa3\x21"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x33\x4a\xe0\xc4\x69\x3d\x23\x93\x5a\x7e\x8e\x04\x3e\xbb\xde\x21\xe1\x68\xa7\xcb\xa3\xfa\x50\x7c\x9b\xe4\x1d\x76\x81\xe0\x49\xce"[..]).unwrap(); let iut_pub = Point::new::(&b"\x3f\x2b\xf1\x58\x9a\xbf\x30\x47\xbf\x3e\x54\xac\x9a\x95\x37\x9b\xff\x95\xf8\xf5\x54\x05\xf6\x4e\xca\x36\xa7\xee\xbe\x8f\xfc\xa7"[..], &b"\x52\x12\xa9\x4e\x66\xc5\xae\x9a\x89\x91\x87\x2f\x66\xa7\x27\x23\xd8\x0e\xc5\xb2\xe9\x25\x74\x5c\x45\x6f\x53\x71\x94\x3b\x3a\x06"[..]).unwrap(); let z = &b"\x2a\xda\xe4\xa1\x38\xa2\x39\xdc\xd9\x3c\x24\x3a\x38\x03\xc3\xe4\xcf\x96\xe3\x7f\xe1\x4e\x6a\x9b\x71\x7b\xe9\x59\x99\x59\xb1\x1c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa1\x9e\xf7\xbf\xf9\x8a\xda\x78\x18\x42\xfb\xfc\x51\xa4\x7a\xff\x39\xb5\x93\x5a\x1c\x7d\x96\x25\xc8\xd3\x23\xd5\x11\xc9\x2d\xe6"[..], &b"\xe9\xc1\x84\xdf\x75\xc9\x55\xe0\x2e\x02\xe4\x00\xff\xe4\x5f\x78\xf3\x39\xe1\xaf\xe6\xd0\x56\xfb\x32\x45\xf4\x70\x0c\xe6\x06\xef"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x2c\x4b\xde\x40\x21\x4f\xcc\x3b\xfc\x47\xd4\xcf\x43\x4b\x62\x9a\xcb\xe9\x15\x7f\x8f\xd0\x28\x25\x40\x33\x1d\xe7\x94\x2c\xf0\x9d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x29\xc0\x80\x7f\x10\xcb\xc4\x2f\xb4\x5c\x99\x89\xda\x50\x68\x1e\xea\xd7\x16\xda\xa7\xb9\xe9\x1f\xd3\x2e\x06\x2f\x5e\xb9\x2c\xa0"[..], &b"\xff\x1d\x6d\x19\x55\xd7\x37\x6b\x2d\xa2\x4f\xe1\x16\x3a\x27\x16\x59\x13\x63\x41\xbc\x2e\xb1\x19\x5f\xc7\x06\xdc\x62\xe7\xf3\x4d"[..]).unwrap(); let z = &b"\x2e\x27\x7e\xc3\x0f\x5e\xa0\x7d\x6c\xe5\x13\x14\x9b\x94\x79\xb9\x6e\x07\xf4\xb6\x91\x3b\x1b\x5c\x11\x30\x5c\x14\x44\xa1\xbc\x0b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x35\x6c\x5a\x44\x4c\x04\x9a\x52\xfe\xe0\xad\xeb\x7e\x5d\x82\xae\x5a\xa8\x30\x30\xbf\xff\x31\xbb\xf8\xce\x20\x96\xcf\x16\x1c\x4b"[..], &b"\x57\xd1\x28\xde\x8b\x2a\x57\xa0\x94\xd1\xa0\x01\xe5\x72\x17\x3f\x96\xe8\x86\x6a\xe3\x52\xbf\x29\xcd\xda\xf9\x2f\xc8\x5b\x2f\x92"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x85\xa2\x68\xf9\xd7\x77\x2f\x99\x0c\x36\xb4\x2b\x0a\x33\x1a\xdc\x92\xb5\x94\x1d\xe0\xb8\x62\xd5\xd8\x9a\x34\x7c\xbf\x8f\xaa\xb0"[..]).unwrap(); let iut_pub = Point::new::(&b"\x9c\xf4\xb9\x85\x81\xca\x17\x79\x45\x3c\xc8\x16\xff\x28\xb4\x10\x0a\xf5\x6c\xf1\xbf\x2e\x5b\xc3\x12\xd8\x3b\x6b\x1b\x21\xd3\x33"[..], &b"\x7a\x55\x04\xfc\xac\x52\x31\xa0\xd1\x2d\x65\x82\x18\x28\x48\x68\x22\x9c\x84\x4a\x04\xa3\x45\x0d\x6c\x73\x81\xab\xe0\x80\xbf\x3b"[..]).unwrap(); let z = &b"\x1e\x51\x37\x3b\xd2\xc6\x04\x4c\x12\x9c\x43\x6e\x74\x2a\x55\xbe\x2a\x66\x8a\x85\xae\x08\x44\x1b\x67\x56\x44\x5d\xf5\x49\x38\x57"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } } #[test] fn nist_p_384() { { let cav_pub = Point::new::(&b"\xa7\xc7\x6b\x97\x0c\x3b\x5f\xe8\xb0\x5d\x28\x38\xae\x04\xab\x47\x69\x7b\x9e\xaf\x52\xe7\x64\x59\x2e\xfd\xa2\x7f\xe7\x51\x32\x72\x73\x44\x66\xb4\x00\x09\x1a\xdb\xf2\xd6\x8c\x58\xe0\xc5\x00\x66"[..], &b"\xac\x68\xf1\x9f\x2e\x1c\xb8\x79\xae\xd4\x3a\x99\x69\xb9\x1a\x08\x39\xc4\xc3\x8a\x49\x74\x9b\x66\x1e\xfe\xdf\x24\x34\x51\x91\x5e\xd0\x90\x5a\x32\xb0\x60\x99\x2b\x46\x8c\x64\x76\x6f\xc8\x43\x7a"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x3c\xc3\x12\x2a\x68\xf0\xd9\x50\x27\xad\x38\xc0\x67\x91\x6b\xa0\xeb\x8c\x38\x89\x4d\x22\xe1\xb1\x56\x18\xb6\x81\x8a\x66\x17\x74\xad\x46\x3b\x20\x5d\xa8\x8c\xf6\x99\xab\x4d\x43\xc9\xcf\x98\xa1"[..]).unwrap(); let iut_pub = Point::new::(&b"\x98\x03\x80\x7f\x2f\x6d\x2f\xd9\x66\xcd\xd0\x29\x0b\xd4\x10\xc0\x19\x03\x52\xfb\xec\x7f\xf6\x24\x7d\xe1\x30\x2d\xf8\x6f\x25\xd3\x4f\xe4\xa9\x7b\xef\x60\xcf\xf5\x48\x35\x5c\x01\x5d\xbb\x3e\x5f"[..], &b"\xba\x26\xca\x69\xec\x2f\x5b\x5d\x9d\xad\x20\xcc\x9d\xa7\x11\x38\x3a\x9d\xbe\x34\xea\x3f\xa5\xa2\xaf\x75\xb4\x65\x02\x62\x9a\xd5\x4d\xd8\xb7\xd7\x3a\x8a\xbb\x06\xa3\xa3\xbe\x47\xd6\x50\xcc\x99"[..]).unwrap(); let z = &b"\x5f\x9d\x29\xdc\x5e\x31\xa1\x63\x06\x03\x56\x21\x36\x69\xc8\xce\x13\x2e\x22\xf5\x7c\x9a\x04\xf4\x0b\xa7\xfc\xea\xd4\x93\xb4\x57\xe5\x62\x1e\x76\x6c\x40\xa2\xe3\xd4\xd6\xa0\x4b\x25\xe5\x33\xf1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x30\xf4\x3f\xcf\x2b\x6b\x00\xde\x53\xf6\x24\xf1\x54\x30\x90\x68\x18\x39\x71\x7d\x53\xc7\xc9\x55\xd1\xd6\x9e\xfa\xf0\x34\x9b\x73\x63\xac\xb4\x47\x24\x01\x01\xcb\xb3\xaf\x66\x41\xce\x4b\x88\xe0"[..], &b"\x25\xe4\x6c\x0c\x54\xf0\x16\x2a\x77\xef\xcc\x27\xb6\xea\x79\x20\x02\xae\x2b\xa8\x27\x14\x29\x9c\x86\x08\x57\xa6\x81\x53\xab\x62\xe5\x25\xec\x05\x30\xd8\x1b\x5a\xa1\x58\x97\x98\x1e\x85\x87\x57"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x92\x86\x0c\x21\xbd\xe0\x61\x65\xf8\xe9\x00\xc6\x87\xf8\xef\x0a\x05\xd1\x4f\x29\x0b\x3f\x07\xd8\xb3\xa8\xcc\x64\x04\x36\x6e\x5d\x51\x19\xcd\x6d\x03\xfb\x12\xdc\x58\xe8\x9f\x13\xdf\x9c\xd7\x83"[..]).unwrap(); let iut_pub = Point::new::(&b"\xea\x40\x18\xf5\xa3\x07\xc3\x79\x18\x0b\xf6\xa6\x2f\xd2\xce\xce\xeb\xee\xb7\xd4\xdf\x06\x3a\x66\xfb\x83\x8a\xa3\x52\x43\x41\x97\x91\xf7\xe2\xc9\xd4\x80\x3c\x93\x19\xaa\x0e\xb0\x3c\x41\x6b\x66"[..], &b"\x68\x83\x5a\x91\x48\x4f\x05\xef\x02\x82\x84\xdf\x64\x36\xfb\x88\xff\xeb\xab\xcd\xd6\x9a\xb0\x13\x3e\x67\x35\xa1\xbc\xfb\x37\x20\x3d\x10\xd3\x40\xa8\x32\x8a\x7b\x68\x77\x0c\xa7\x58\x78\xa1\xa6"[..]).unwrap(); let z = &b"\xa2\x37\x42\xa2\xc2\x67\xd7\x42\x5f\xda\x94\xb9\x3f\x93\xbb\xcc\x24\x79\x1a\xc5\x1c\xd8\xfd\x50\x1a\x23\x8d\x40\x81\x2f\x4c\xbf\xc5\x9a\xac\x95\x20\xd7\x58\xcf\x78\x9c\x76\x30\x0c\x69\xd2\xff"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x1a\xef\xbf\xa2\xc6\xc8\xc8\x55\xa1\xa2\x16\x77\x45\x50\xb7\x9a\x24\xcd\xa3\x76\x07\xbb\x1f\x7c\xc9\x06\x65\x0e\xe4\xb3\x81\x6d\x68\xf6\xa9\xc7\x5d\xa6\xe4\x24\x2c\xeb\xfb\x66\x52\xf6\x51\x80"[..], &b"\x41\x9d\x28\xb7\x23\xeb\xad\xb7\x65\x8f\xce\xbb\x9a\xd9\xb7\xad\xea\x67\x4f\x1d\xa3\xdc\x6b\x63\x97\xb5\x5d\xa0\xf6\x1a\x3e\xdd\xac\xb4\xac\xdb\x14\x44\x1c\xb2\x14\xb0\x4a\x08\x44\xc0\x2f\xa3"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x12\xcf\x6a\x22\x3a\x72\x35\x25\x43\x83\x0f\x3f\x18\x53\x0d\x5c\xb3\x7f\x26\x88\x0a\x0b\x29\x44\x82\xc8\xa8\xef\x8a\xfa\xd0\x9a\xa7\x8b\x7d\xc2\xf2\x78\x9a\x78\xc6\x6a\xf5\xd1\xcc\x55\x38\x53"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfc\xfc\xea\x08\x5e\x8c\xf7\x4d\x0d\xce\xd1\x62\x0b\xa8\x42\x36\x94\xf9\x03\xa2\x19\xbb\xf9\x01\xb0\xb5\x9d\x6a\xc8\x1b\xaa\xd3\x16\xa2\x42\xba\x32\xbd\xe8\x5c\xb2\x48\x11\x9b\x85\x2f\xab\x66"[..], &b"\x97\x2e\x3c\x68\xc7\xab\x40\x2c\x58\x36\xf2\xa1\x6e\xd4\x51\xa3\x31\x20\xa7\x75\x0a\x60\x39\xf3\xff\x15\x38\x8e\xe6\x22\xb7\x06\x5f\x71\x22\xbf\x6d\x51\xae\xfb\xc2\x9b\x37\xb0\x34\x04\x58\x1b"[..]).unwrap(); let z = &b"\x3d\x2e\x64\x0f\x35\x08\x05\xee\xd1\xff\x43\xb4\x0a\x72\xb2\xab\xed\x0a\x51\x8b\xce\xbe\x8f\x2d\x15\xb1\x11\xb6\x77\x32\x23\xda\x3c\x34\x89\x12\x1d\xb1\x73\xd4\x14\xb5\xbd\x5a\xd7\x15\x34\x35"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x8b\xc0\x89\x32\x6e\xc5\x5b\x9c\xf5\x9b\x34\xf0\xeb\x75\x4d\x93\x59\x6c\xa2\x90\xfc\xb3\x44\x4c\x83\xd4\xde\x3a\x56\x07\x03\x7e\xc3\x97\x68\x3f\x8c\xef\x07\xea\xb2\xfe\x35\x7e\xae\x36\xc4\x49"[..], &b"\xd9\xd1\x6c\xe8\xac\x85\xb3\xf1\xe9\x45\x68\x52\x1a\xae\x53\x4e\x67\x13\x9e\x31\x0e\xc7\x26\x93\x52\x6a\xa2\xe9\x27\xb5\xb3\x22\xc9\x5a\x1a\x03\x3c\x22\x9c\xb6\x77\x0c\x95\x7c\xd3\x14\x8d\xd7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8d\xd4\x80\x63\xa3\xa0\x58\xc3\x34\xb5\xcc\x7a\x4c\xe0\x7d\x02\xe5\xee\x6d\x8f\x1f\x3c\x51\xa1\x60\x09\x62\xcb\xab\x46\x26\x90\xae\x3c\xd9\x74\xfb\x39\xe4\x0b\x0e\x84\x3d\xaa\x0f\xd3\x2d\xe1"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe3\x8c\x98\x46\x24\x81\x23\xc3\x42\x18\x61\xea\x4d\x32\x66\x9a\x7b\x5c\x3c\x08\x37\x6a\xd2\x81\x04\x39\x94\x94\xc8\x4f\xf5\xef\xa3\x89\x4a\xdb\x2c\x6c\xbe\x8c\x3c\x91\x3e\xf2\xee\xc5\xbd\x3c"[..], &b"\x9f\xa8\x40\x24\xa1\x02\x87\x96\xdf\x84\x02\x1f\x7b\x6c\x9d\x02\xf0\xf4\xbd\x1a\x61\x2a\x03\xcb\xf7\x5a\x0b\xee\xa4\x3f\xef\x8a\xe8\x4b\x48\xc6\x01\x72\xaa\xdf\x09\xc1\xad\x01\x6d\x0b\xf3\xce"[..]).unwrap(); let z = &b"\x6a\x42\xcf\xc3\x92\xab\xa0\xbf\xd3\xd1\x7b\x7c\xcf\x06\x2b\x91\xfc\x09\xbb\xf3\x41\x76\x12\xd0\x2a\x90\xbd\xde\x62\xae\x40\xc5\x4b\xb2\xe5\x6e\x16\x7d\x6b\x70\xdb\x67\x00\x97\xeb\x8d\xb8\x54"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xeb\x95\x2e\x2d\x9a\xc0\xc2\x0c\x6c\xc4\x8f\xb2\x25\xc2\xad\x15\x4f\x53\xc8\x75\x0b\x00\x3f\xd3\xb4\xed\x8e\xd1\xdc\x0d\xef\xac\x61\xbc\xdd\xe0\x2a\x2b\xcf\xee\x70\x67\xd7\x5d\x34\x2e\xd2\xb0"[..], &b"\xf1\x82\x82\x05\xba\xec\xe8\x2d\x1b\x26\x7d\x0d\x7f\xf2\xf9\xc9\xe1\x5b\x69\xa7\x2d\xf4\x70\x58\xa9\x7f\x38\x91\x00\x5d\x1f\xb3\x88\x58\xf5\x60\x3d\xe8\x40\xe5\x91\xdf\xa4\xf6\xe7\xd4\x89\xe1"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x84\xec\xe6\xcc\x34\x29\x30\x9b\xd5\xb2\x3e\x95\x97\x93\xed\x2b\x11\x1e\xc5\xcb\x43\xb6\xc1\x80\x85\xfc\xae\xa9\xef\xa0\x68\x5d\x98\xa6\x26\x2e\xe0\xd3\x30\xee\x25\x0b\xc8\xa6\x7d\x0e\x73\x3f"[..]).unwrap(); let iut_pub = Point::new::(&b"\x32\x22\x06\x3a\x29\x97\xb3\x02\xee\x60\xee\x19\x61\x10\x8f\xf4\xc7\xac\xf1\xc0\xef\x1d\x5f\xb0\xd1\x64\xb8\x4b\xce\x71\xc4\x31\x70\x5c\xb9\xae\xa9\xa4\x5f\x5d\x73\x80\x66\x55\xa0\x58\xbe\xe3"[..], &b"\xe6\x1f\xa9\xe7\xfb\xe7\xcd\x43\xab\xf9\x95\x96\xa3\xd3\xa0\x39\xe9\x9f\xa9\xdc\x93\xb0\xbd\xd9\xca\xd8\x19\x66\xd1\x7e\xea\xf5\x57\x06\x8a\xfa\x7c\x78\x46\x6b\xb5\xb2\x20\x32\xd1\x10\x0f\xa6"[..]).unwrap(); let z = &b"\xce\x7b\xa4\x54\xd4\x41\x27\x29\xa3\x2b\xb8\x33\xa2\xd1\xfd\x2a\xe6\x12\xd4\x66\x7c\x3a\x90\x0e\x06\x92\x14\x81\x86\x13\x44\x7d\xf8\xc6\x11\xde\x66\xda\x20\x0d\xb7\xc3\x75\xcf\x91\x3e\x44\x05"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x44\x1d\x02\x9e\x24\x4e\xb7\x16\x8d\x64\x7d\x4d\xf5\x0d\xb5\xf4\xe4\x97\x4a\xb3\xfd\xaf\x02\x2a\xff\x05\x8b\x36\x95\xd0\xb8\xc8\x14\xcc\x88\xda\x62\x85\xdc\x6d\xf1\xac\x55\xc5\x53\x88\x50\x03"[..], &b"\xe8\x02\x5a\xc2\x3a\x41\xd4\xb1\xea\x2a\xa4\x6c\x50\xc6\xe4\x79\x94\x6b\x59\xb6\xd7\x64\x97\xcd\x92\x49\x97\x7e\x0b\xfe\x4a\x62\x62\x62\x2f\x13\xd4\x2a\x3c\x43\xd6\x6b\xdb\xb3\x04\x03\xc3\x45"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x68\xfc\xe2\x12\x1d\xc3\xa1\xe3\x7b\x10\xf1\xdd\xe3\x09\xf9\xe2\xe1\x8f\xac\x47\xcd\x17\x70\x95\x14\x51\xc3\x48\x4c\xdb\x77\xcb\x13\x6d\x00\xe7\x31\x26\x05\x97\xcc\x28\x59\x60\x1c\x01\xa2\x5b"[..]).unwrap(); let iut_pub = Point::new::(&b"\x86\x8b\xe0\xe6\x94\x84\x18\x30\xe4\x24\xd9\x13\xd8\xe7\xd8\x6b\x84\xee\x10\x21\xd8\x2b\x0e\xcf\x52\x3f\x09\xfe\x89\xa7\x6c\x0c\x95\xc4\x9f\x2d\xfb\xcf\x82\x9c\x1e\x39\x70\x9d\x55\xef\xbb\x3b"[..], &b"\x91\x95\xeb\x18\x36\x75\xb4\x0f\xd9\x2f\x51\xf3\x77\x13\x31\x7e\x4a\x9b\x4f\x71\x5c\x8a\xb2\x2e\x07\x73\xb1\xbc\x71\xd3\xa2\x19\xf0\x5b\x81\x16\x07\x46\x58\xee\x86\xb5\x2e\x36\xf3\x89\x71\x16"[..]).unwrap(); let z = &b"\xba\x69\xf0\xac\xdf\x3e\x1c\xa9\x5c\xaa\xac\x4e\xca\xf4\x75\xbb\xe5\x1b\x54\x77\x7e\xfc\xe0\x1c\xa3\x81\xf4\x53\x70\xe4\x86\xfe\x87\xf9\xf4\x19\xb1\x50\xc6\x1e\x32\x9a\x28\x6d\x1a\xa2\x65\xec"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x3d\x4e\x6b\xf0\x8a\x73\x40\x4a\xcc\xc1\x62\x98\x73\x46\x8e\x42\x69\xe8\x2d\x90\xd8\x32\xe5\x8a\xd7\x21\x42\x63\x9b\x5a\x05\x6a\xd8\xd3\x5c\x66\xc6\x0e\x81\x49\xfa\xc0\xc7\x97\xbc\xeb\x7c\x2f"[..], &b"\x9b\x03\x08\xdc\x7f\x0e\x6d\x29\xf8\xc2\x77\xac\xbc\x65\xa2\x1e\x5a\xdb\x83\xd1\x1e\x68\x73\xbc\x0a\x07\xfd\xa0\x99\x7f\x48\x25\x04\x60\x2f\x59\xe1\x0b\xc5\xcb\x47\x6b\x83\xd0\xa4\xf7\x5e\x71"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xb1\x76\x4c\x54\x89\x7e\x7a\xae\x6d\xe9\xe7\x75\x1f\x2f\x37\xde\x84\x92\x91\xf8\x8f\x0f\x91\x09\x31\x55\xb8\x58\xd1\xcc\x32\xa3\xa8\x79\x80\xf7\x06\xb8\x6c\xc8\x3f\x92\x7b\xdf\xdb\xea\xe0\xbd"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc3\x71\x22\x2f\xea\xa6\x77\x0c\x6f\x3e\xa3\xe0\xda\xc9\x74\x0d\xef\x4f\xcf\x82\x13\x78\xb7\xf9\x1f\xf9\x37\xc2\x1e\x04\x70\xf7\x0f\x3a\x31\xd5\xc6\xb2\x91\x21\x95\xf1\x09\x26\x94\x2b\x48\xae"[..], &b"\x04\x7d\x6b\x4d\x76\x51\x23\x56\x3f\x81\x11\x6b\xc6\x65\xb7\xb8\xcc\x62\x07\x83\x0d\x80\x5f\xd8\x4d\xa7\xcb\x80\x5a\x65\xba\xa7\xc1\x2f\xd5\x92\xd1\xb5\xb5\xe3\xe6\x5d\x96\x72\xa9\xef\x76\x62"[..]).unwrap(); let z = &b"\x1a\x66\x88\xee\x1d\x6e\x59\x86\x5d\x8e\x3a\xda\x37\x78\x1d\x36\xbb\x0c\x27\x17\xee\xf9\x2e\x61\x96\x4d\x39\x27\xcb\x76\x5c\x29\x65\xea\x80\xf7\xf6\x3e\x58\xc3\x22\xba\x03\x97\xfa\xea\xf6\x2b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xf5\xf6\xbe\xf1\xd1\x10\xda\x03\xbe\x00\x17\xea\xc7\x60\xcc\x34\xb2\x4d\x09\x2f\x73\x6f\x23\x7b\xc7\x05\x4b\x38\x65\x31\x2a\x81\x3b\xcb\x62\xd2\x97\xfb\x10\xa4\xf7\xab\xf5\x47\x08\xfe\x2d\x3d"[..], &b"\x06\xfd\xf8\xd7\xdc\x03\x2f\x4e\x10\x01\x0b\xf1\x9c\xbf\x61\x59\x32\x12\x52\xff\x41\x5f\xb9\x19\x20\xd4\x38\xf2\x4e\x67\xe6\x0c\x2e\xb0\x46\x32\x04\x67\x9f\xa3\x56\xaf\x44\xce\xa9\xc9\xeb\xf5"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf0\xf7\xa9\x6e\x70\xd9\x8f\xd5\xa3\x0a\xd6\x40\x6c\xf5\x6e\xb5\xb7\x2a\x51\x0e\x9f\x19\x2f\x50\xe1\xf8\x45\x24\xdb\xf3\xd2\x43\x9f\x72\x87\xbb\x36\xf5\xaa\x91\x2a\x79\xde\xaa\xb4\xad\xea\x82"[..]).unwrap(); let iut_pub = Point::new::(&b"\x99\xc8\xc4\x1c\xb1\xab\x5e\x08\x54\xa3\x46\xe4\xb0\x8a\x53\x7c\x17\x06\xa6\x15\x53\x38\x7c\x8d\x94\x94\x3a\xb1\x51\x96\xd4\x0d\xba\xa5\x5b\x82\x10\xa7\x7a\x5d\x00\x91\x5f\x2c\x4e\xa6\x9e\xab"[..], &b"\x55\x31\x06\x5b\xdc\xf1\x7b\xfb\x3c\xb5\x5a\x02\xe4\x1a\x57\xc7\xf6\x94\xc3\x83\xad\x28\x9f\x90\x0f\xbd\x65\x6c\x22\x33\xa9\x3c\x92\xe9\x33\xe7\xa2\x6f\x54\xcb\xb5\x6f\x0a\xd8\x75\xc5\x1b\xb0"[..]).unwrap(); let z = &b"\xd0\x6a\x56\x8b\xf2\x33\x6b\x90\xcb\xac\x32\x51\x61\xbe\x76\x95\xea\xcb\x22\x95\xf5\x99\x50\x0d\x78\x7f\x07\x26\x12\xac\xa3\x13\xee\x5d\x87\x4f\x80\x7d\xde\xf6\xc1\xf0\x23\xfe\x2b\x6e\x7c\xd0"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x7c\xde\xc7\x7e\x07\x37\xea\x37\xc6\x7b\x89\xb7\x13\x7f\xe3\x88\x18\x01\x0f\x44\x64\x43\x8e\xe4\xd1\xd3\x5a\x0c\x48\x8c\xad\x3f\xde\x2f\x37\xd0\x08\x85\xd3\x6d\x3b\x79\x5b\x9f\x93\xd2\x3a\x67"[..], &b"\x28\xc4\x2e\xe8\xd6\x02\x7c\x56\xcf\x97\x9b\xa4\xc2\x29\xfd\xb0\x1d\x23\x49\x44\xf8\xac\x43\x36\x50\x11\x2c\x3c\xf0\xf0\x28\x44\xe8\x88\xa3\x56\x9d\xfe\xf7\x82\x8a\x8a\x88\x45\x89\xaa\x05\x5e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x9e\xfb\x87\xdd\xc6\x1d\x43\xc4\x82\xba\x66\xe1\xb1\x43\xae\xf6\x78\xfb\xd0\xd1\xbe\xbc\x20\x00\x94\x1f\xab\xe6\x77\xfe\x5b\x70\x6b\xf7\x8f\xce\x36\xd1\x00\xb1\x7c\xc7\x87\xea\xd7\x4b\xbc\xa2"[..]).unwrap(); let iut_pub = Point::new::(&b"\x4c\x34\xef\xee\x8f\x0c\x95\x56\x5d\x20\x65\xd1\xbb\xac\x2a\x2d\xd2\x5a\xe9\x64\x32\x0e\xb6\xbc\xce\xdc\x5f\x3a\x9b\x42\xa8\x81\xa1\xaf\xca\x1b\xb6\xb8\x80\x58\x4f\xa2\x7b\x01\xc1\x93\xcd\x92"[..], &b"\xd8\xfb\x01\xdb\xf7\xcd\x0a\x38\x68\xc2\x6b\x95\x1f\x39\x3c\x3c\x56\xc2\x85\x8c\xee\x90\x1f\x77\x93\xff\x5d\x27\x19\x25\xd1\x3a\x41\xf8\xe5\x24\x09\xf4\xeb\xa1\x99\x0f\x33\xac\xb0\xba\xc6\x69"[..]).unwrap(); let z = &b"\xbb\x3b\x1e\xda\x9c\x65\x60\xd8\x2f\xf5\xbe\xe4\x03\x33\x9f\x1e\x80\x34\x23\x38\xa9\x91\x34\x48\x53\xb5\x6b\x24\xf1\x09\xa4\xd9\x4b\x92\xf6\x54\xf0\x42\x5e\xdd\x4c\x20\x59\x03\xd7\x58\x61\x04"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x8e\xee\xa3\xa3\x19\xc8\xdf\x99\xfb\xc2\x9c\xb5\x5f\x24\x3a\x72\x0d\x95\x50\x95\x15\xee\x5c\xc5\x87\xa5\xc5\xae\x22\xfb\xbd\x00\x9e\x62\x6d\xb3\xe9\x11\xde\xf0\xb9\x9a\x4f\x7a\xe3\x04\xb1\xba"[..], &b"\x73\x87\x7d\xc9\x4d\xb9\xad\xdd\xc0\xd9\xa4\xb2\x4e\x89\x76\xc2\x2d\x73\xc8\x44\x37\x0e\x1e\xe8\x57\xf8\xd1\xb1\x29\xa3\xbd\x5f\x63\xf4\x0c\xaf\x3b\xd0\x53\x3e\x38\xa5\xf5\x77\x70\x74\xff\x9e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xd7\x87\xa5\x7f\xde\x22\xec\x65\x6a\x0a\x52\x5c\xf3\xc7\x38\xb3\x0d\x73\xaf\x61\xe7\x43\xea\x90\x89\x3e\xcb\x2d\x7b\x62\x2a\xdd\x2f\x94\xee\x25\xc2\x17\x14\x67\xaf\xb0\x93\xf3\xf8\x4d\x00\x18"[..]).unwrap(); let iut_pub = Point::new::(&b"\x17\x15\x46\x92\x3b\x87\xb2\xcb\xba\xd6\x64\xf0\x1c\xe9\x32\xbf\x09\xd6\xa6\x11\x81\x68\x67\x84\x46\xbf\xa9\xf0\x93\x86\x08\xcb\x46\x67\xa9\x8f\x4e\xc8\xac\x14\x62\x28\x5c\x25\x08\xf7\x48\x62"[..], &b"\xfa\x41\xcb\x4d\xb6\x8a\xe7\x1f\x1f\x8a\x3e\x89\x39\xdc\x52\xc2\xde\xc6\x1a\x83\xc9\x83\xbe\xb2\xa0\x2b\xaf\x29\xec\x49\x27\x80\x88\x88\x2e\xd0\xcf\x56\xc7\x4b\x5c\x17\x3b\x55\x2c\xcf\x63\xcf"[..]).unwrap(); let z = &b"\x1e\x97\xb6\x0a\xdd\x7c\xb3\x5c\x74\x03\xdd\x88\x4c\x0a\x75\x79\x5b\x76\x83\xff\xf8\xb4\x9f\x9d\x86\x72\xa8\x20\x6b\xfd\xcf\x0a\x10\x6b\x87\x68\xf9\x83\x25\x8c\x74\x16\x74\x22\xe4\x4e\x4d\x14"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa7\x21\xf6\xa2\xd4\x52\x74\x11\x83\x4b\x13\xd4\xd3\xa3\x3c\x29\xbe\xb8\x3a\xb7\x68\x24\x65\xc6\xcb\xaf\x66\x24\xac\xa6\xea\x58\xc3\x0e\xb0\xf2\x9d\xd8\x42\x88\x66\x95\x40\x0d\x72\x54\xf2\x0f"[..], &b"\x14\xba\x6e\x26\x35\x51\x09\xad\x35\x12\x93\x66\xd5\xe3\xa6\x40\xae\x79\x85\x05\xa7\xfa\x55\xa9\x6a\x36\xb5\xda\xd3\x3d\xe0\x04\x74\xf6\x67\x0f\x52\x22\x14\xdd\x79\x52\x14\x0a\xb0\xa7\xeb\x68"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x83\xd7\x0f\x7b\x16\x4d\x9f\x4c\x22\x7c\x76\x70\x46\xb2\x0e\xb3\x4d\xfc\x77\x8f\x53\x87\xe3\x2e\x83\x4b\x1e\x6d\xae\xc2\x0e\xdb\x8c\xa5\xbb\x41\x92\x09\x3f\x54\x3b\x68\xe6\xae\xb7\xce\x78\x8b"[..]).unwrap(); let iut_pub = Point::new::(&b"\x57\xcd\x77\x0f\x3b\xbc\xbe\x0c\x78\xc7\x70\xea\xb0\xb1\x69\xbc\x45\xe1\x39\xf8\x63\x78\xff\xae\x1c\x2b\x16\x96\x67\x27\xc2\xf2\xeb\x72\x45\x72\xb8\xf3\xeb\x22\x8d\x13\x0d\xb4\xff\x86\x2c\x63"[..], &b"\x7e\xc5\xc8\x81\x3b\x68\x55\x58\xd8\x3e\x92\x4f\x14\xbc\x71\x9f\x6e\xb7\xae\x0c\xbb\x2c\x47\x42\x27\xc5\xbd\xa8\x86\x37\xa4\xf2\x6c\x64\x81\x79\x29\xaf\x99\x95\x92\xda\x6f\x78\x74\x90\x33\x2f"[..]).unwrap(); let z = &b"\x10\x23\x47\x88\x40\xe5\x47\x75\xbf\xc6\x92\x93\xa3\xcf\x97\xf5\xbc\x91\x47\x26\x45\x5c\x66\x53\x8e\xb5\x62\x3e\x21\x8f\xee\xf7\xdf\x4b\xef\xa2\x3e\x09\xd7\x71\x45\xad\x57\x7d\xb3\x2b\x41\xf9"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xd8\x82\xa8\x50\x5c\x2d\x5c\xb9\xb8\x85\x1f\xc6\x76\x67\x7b\xb0\x08\x76\x81\xad\x53\xfa\xce\xba\x17\x38\x28\x6b\x45\x82\x75\x61\xe7\xda\x37\xb8\x80\x27\x6c\x65\x6c\xfc\x38\xb3\x2a\xde\x84\x7e"[..], &b"\x34\xb3\x14\xbd\xc1\x34\x57\x56\x54\x57\x3c\xff\xaf\x40\x44\x5d\xa2\xe6\xaa\xf9\x87\xf7\xe9\x13\xcd\x4c\x30\x91\x52\x30\x58\x98\x4a\x25\xd8\xf2\x1d\xa8\x32\x61\x92\x45\x6c\x6a\x0f\xa5\xf6\x0c"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8f\x55\x8e\x05\x81\x8b\x88\xed\x38\x3d\x5f\xca\x96\x2e\x53\x41\x3d\xb1\xa0\xe4\x63\x7e\xda\x19\x4f\x76\x19\x44\xcb\xea\x11\x4a\xb9\xd5\xda\x17\x5a\x7d\x57\x88\x25\x50\xb0\xe4\x32\xf3\x95\xa9"[..]).unwrap(); let iut_pub = Point::new::(&b"\x9a\x2f\x57\xf4\x86\x7c\xe7\x53\xd7\x2b\x0d\x95\x19\x5d\xf6\xf9\x6c\x1f\xae\x93\x4f\x60\x2e\xfd\x7b\x6a\x54\x58\x2f\x55\x6c\xfa\x53\x9d\x89\x00\x5c\xa2\xed\xac\x08\xad\x9b\x72\xdd\x1f\x60\xba"[..], &b"\xd9\xb9\x4e\xe8\x2d\xa9\xcc\x60\x1f\x34\x60\x44\x99\x8b\xa3\x87\xae\xe5\x64\x04\xdc\x6e\xcc\x8a\xb2\xb5\x90\x44\x33\x19\xd0\xb2\xb6\x17\x6f\x9d\x0e\xac\x2d\x44\x67\x8e\xd5\x61\x60\x7d\x09\xa9"[..]).unwrap(); let z = &b"\x6a\xd6\xb9\xdc\x8a\x6c\xf0\xd3\x69\x1c\x50\x1c\xbb\x96\x78\x67\xf6\xe4\xbb\xb7\x64\xb6\x0d\xbf\xf8\xfc\xff\x3e\xd4\x2d\xbb\xa3\x9d\x63\xcf\x32\x5b\x4b\x40\x78\x85\x84\x95\xdd\xee\x75\xf9\x54"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x81\x5c\x9d\x77\x3d\xbf\x5f\xb6\xa1\xb8\x67\x99\x96\x62\x47\xf4\x00\x6a\x23\xc9\x2e\x68\xc5\x5e\x9e\xaa\x99\x8b\x17\xd8\x83\x2d\xd4\xd8\x4d\x92\x7d\x83\x1d\x4f\x68\xda\xc6\x7c\x64\x88\x21\x9f"[..], &b"\xe7\x92\x69\x94\x8b\x26\x11\x48\x45\x60\xfd\x49\x0f\xee\xc8\x87\xcb\x55\xef\x99\xa4\xb5\x24\x88\x0f\xa7\x49\x9d\x6a\x07\x28\x3a\xae\x2a\xfa\x33\xfe\xab\x97\xde\xca\x40\xbc\x60\x6c\x4d\x87\x64"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x0f\x5d\xee\x0a\xff\xa7\xbb\xf2\x39\xd5\xdf\xf3\x29\x87\xeb\xb7\xcf\x84\xfc\xce\xed\x64\x3e\x1d\x3c\x62\xd0\xb3\x35\x2a\xec\x23\xb6\xe5\xac\x7f\xa4\x10\x5c\x8c\xb2\x61\x26\xad\x2d\x18\x92\xcb"[..]).unwrap(); let iut_pub = Point::new::(&b"\x23\x34\x6b\xdf\xbc\x9d\x7c\x7c\x73\x6e\x02\xbd\xf6\x07\x67\x1f\xf6\x08\x2f\xdd\x27\x33\x4a\x8b\xc7\x5f\x3b\x23\x68\x1e\xbe\x61\x4d\x05\x97\xdd\x61\x4f\xae\x58\x67\x7c\x83\x5a\x9f\x0b\x27\x3b"[..], &b"\x82\xba\x36\x29\x0d\x2f\x94\xdb\x41\x47\x9e\xb4\x5a\xb4\xea\xf6\x79\x28\xa2\x31\x51\x38\xd5\x9e\xec\xc9\xb5\x28\x5d\xfd\xdd\x67\x14\xf7\x75\x57\x21\x6e\xa4\x4c\xc6\xfc\x11\x9d\x82\x43\xef\xaf"[..]).unwrap(); let z = &b"\xcc\x9e\x06\x35\x66\xd4\x6b\x35\x7b\x3f\xca\xe2\x18\x27\x37\x73\x31\xe5\xe2\x90\xa3\x6e\x60\xcd\x7c\x39\x10\x2b\x82\x8a\xe0\xb9\x18\xdc\x5a\x02\x21\x6b\x07\xfe\x6f\x19\x58\xd8\x34\xe4\x24\x37"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x1c\x0e\xed\xa7\xa2\xbe\x00\x0c\x5b\xdc\xda\x04\x78\xae\xd4\xdb\x73\x3d\x2a\x9e\x34\x12\x24\x37\x91\x23\xad\x84\x70\x30\xf2\x9e\x3b\x16\x8f\xa1\x8e\x89\xa3\xc0\xfb\xa2\xa6\xce\x1c\x28\xfc\x3b"[..], &b"\xec\x8c\x1c\x83\xc1\x18\xc4\xdb\xea\x94\x27\x18\x69\xf2\xd8\x68\xeb\x65\xe8\xb4\x4e\x21\xe6\xf1\x4b\x0f\x4d\x9b\x38\xc0\x68\xda\xef\xa2\x71\x14\x25\x5b\x9a\x41\xd0\x84\xcc\x4a\x1a\xd8\x54\x56"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x03\x7b\x63\x3b\x5b\x8b\xa8\x57\xc0\xfc\x85\x65\x68\x68\x23\x2e\x2f\xeb\xf5\x95\x78\x71\x83\x91\xb8\x1d\xa8\x54\x1a\x00\xbf\xe5\x3c\x30\xae\x04\x15\x18\x47\xf2\x74\x99\xf8\xd7\xab\xad\x8c\xf4"[..]).unwrap(); let iut_pub = Point::new::(&b"\x88\x78\xac\x8a\x94\x7f\x7d\x5c\xb2\xb4\x7a\xad\x24\xfb\xb8\x21\x0d\x86\x12\x65\x85\x39\x9a\x28\x71\xf8\x4a\xa9\xc5\xfd\xe3\x07\x4a\xe5\x40\xc6\xbf\x82\x27\x5c\xa8\x22\xd0\xfe\xb8\x62\xbc\x74"[..], &b"\x63\x2f\x5c\xd2\xf9\x00\xc2\x71\x1c\x32\xf8\x93\x07\x28\xeb\x64\x7d\x31\xed\xd8\xd6\x50\xf9\x65\x4e\x7d\x33\xe5\xed\x1b\x47\x54\x89\xd0\x8d\xaa\x30\xd8\xcb\xcb\xa6\xbf\xc3\xb6\x0d\x9b\x5a\x37"[..]).unwrap(); let z = &b"\xde\xff\x7f\x03\xbd\x09\x86\x5b\xaf\x94\x5e\x73\xed\xff\x6d\x51\x22\xc0\x3f\xb5\x61\xdb\x87\xde\xc8\x66\x2e\x09\xbe\xd4\x34\x0b\x28\xa9\xef\xe1\x18\x33\x7b\xb7\xd3\xd4\xf7\xf5\x68\x63\x5f\xf9"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xc9\x5c\x18\x5e\x25\x6b\xf9\x97\xf3\x0b\x31\x15\x48\xae\x7f\x76\x8a\x38\xde\xe4\x3e\xee\xef\x43\x08\x3f\x30\x77\xbe\x70\xe2\xbf\x39\xac\x1d\x4d\xaf\x36\x0c\x51\x4c\x8c\x6b\xe6\x23\x44\x3d\x1a"[..], &b"\x3e\x63\xa6\x63\xea\xf7\x5d\x8a\x76\x5a\xb2\xb9\xa3\x55\x13\xd7\x93\x3f\xa5\xe2\x64\x20\xa5\x24\x45\x50\xec\x6c\x3b\x6f\x03\x3b\x96\xdb\x2a\xca\x3d\x6a\xc6\xaa\xb0\x52\xce\x92\x95\x95\xae\xa5"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xe3\xd0\x71\x06\xbe\xdc\xc0\x96\xe7\xd9\x16\x30\xff\xd3\x09\x4d\xf2\xc7\x85\x9d\xb8\xd7\xed\xbb\x2e\x37\xb4\xac\x47\xf4\x29\xa6\x37\xd0\x6a\x67\xd2\xfb\xa3\x38\x38\x76\x4e\xf2\x03\x46\x49\x91"[..]).unwrap(); let iut_pub = Point::new::(&b"\xe7\x4a\x1a\x2b\x85\xf1\xcb\xf8\xdb\xbd\xf0\x50\xcf\x1a\xff\x8a\xcb\x02\xfd\xa2\xfb\x65\x91\xf9\xd3\xcf\xe4\xe7\x9d\x0a\xe9\x38\xa9\xc1\x48\x3e\x7b\x75\xf8\xdb\x24\x50\x5d\x65\x06\x5c\xdb\x18"[..], &b"\x17\x73\xee\x59\x18\x22\xf7\xab\xaa\x85\x6a\x1a\x60\xbc\x0a\x52\x03\x54\x8d\xbd\x1c\xb5\x02\x54\x66\xef\xf8\x48\x1b\xd0\x76\x14\xea\xa0\x4a\x16\xc3\xdb\x76\x90\x59\x13\xe9\x72\xa5\xb6\xb5\x9d"[..]).unwrap(); let z = &b"\xc8\xb1\x03\x8f\x73\x5a\xd3\xbb\x3e\x46\x37\xc3\xe4\x7e\xab\x48\x76\x37\x91\x1a\x6b\x79\x50\xa4\xe4\x61\x94\x83\x29\xd3\x92\x3b\x96\x9e\x5d\xb6\x63\x67\x56\x23\x61\x1a\x45\x7f\xcd\xa3\x5a\x71"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x34\x97\x23\x8a\x7e\x6a\xd1\x66\xdf\x2d\xac\x03\x9a\xa4\xda\xc8\xd1\x7a\xa9\x25\xe7\xc7\x63\x1e\xb3\xb5\x6e\x3a\xaa\x1c\x54\x5f\xcd\x54\xd2\xe5\x98\x58\x07\x91\x0f\xb2\x02\xb1\xfc\x19\x1d\x2a"[..], &b"\xa4\x9e\x5c\x48\x7d\xcc\x7a\xa4\x0a\x8f\x23\x4c\x97\x94\x46\x04\x0d\x91\x74\xe3\xad\x35\x7d\x40\x4d\x77\x65\x18\x31\x95\xae\xd3\xf9\x13\x64\x1b\x90\xc8\x1a\x30\x6e\xbf\x0d\x89\x13\x86\x13\x16"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf3\xf9\xb0\xc6\x5a\x49\xa5\x06\x63\x2c\x8a\x45\xb1\x0f\x66\xb5\x31\x6f\x9e\xeb\x06\xfa\xe2\x18\xf2\xda\x62\x33\x3f\x99\x90\x51\x17\xb1\x41\xc7\x60\xe8\x97\x4e\xfc\x4a\xf1\x05\x70\x63\x57\x91"[..]).unwrap(); let iut_pub = Point::new::(&b"\xa4\xad\x77\xaa\x7d\x86\xe5\x36\x11\x18\xa6\xb9\x21\x71\x0c\x82\x07\x21\x21\x07\x12\xf4\xc3\x47\x98\x5f\xde\xe5\x8a\xa4\xef\xfa\x1e\x28\xbe\x80\xa1\x7b\x12\x0b\x13\x9f\x96\x30\x0f\x89\xb4\x9b"[..], &b"\x1d\xdf\x22\xe0\x7e\x03\xf1\x56\x0d\x8f\x45\xa4\x80\x09\x45\x60\xdb\xa9\xfa\xe7\xf9\x53\x11\x30\xc1\xb5\x7e\xbb\x95\x98\x24\x96\x52\x4f\x31\xd3\x79\x77\x93\x39\x6f\xa8\x23\xf2\x2b\xdb\x43\x28"[..]).unwrap(); let z = &b"\xd3\x37\xea\xa3\x2b\x9f\x71\x6b\x87\x47\xb0\x05\xb9\x7a\x55\x3c\x59\xda\xb0\xc5\x1d\xf4\x1a\x2d\x49\x03\x9c\xda\xe7\x05\xaa\x75\xc7\xb9\xe7\xbc\x0b\x6a\x0e\x8c\x57\x8c\x90\x2b\xc4\xff\xf2\x3e"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x90\xa3\x47\x37\xd4\x5b\x1a\xa6\x5f\x74\xe0\xbd\x06\x59\xbc\x11\x8f\x8e\x4b\x77\x4b\x76\x19\x44\xff\xa6\x57\x3c\x6d\xf4\xf4\x1d\xec\x0d\x11\xb6\x97\xab\xd9\x34\xd3\x90\x87\x1d\x4b\x45\x32\x40"[..], &b"\x9b\x59\x07\x19\xbb\x33\x07\xc1\x49\xa7\x81\x7b\xe3\x55\xd6\x84\x89\x3a\x30\x77\x64\xb5\x12\xee\xff\xe0\x7c\xb6\x99\xed\xb5\xa6\xff\xbf\x8d\x60\x32\xe6\xc7\x9d\x5e\x93\xe9\x42\x12\xc2\xaa\x4e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x59\xfc\xe7\xfa\xd7\xde\x28\xba\xc0\x23\x06\x90\xc9\x57\x10\xc7\x20\xe5\x28\xf9\xa4\xe5\x4d\x3a\x6a\x8c\xd5\xfc\x5c\x5f\x21\x63\x70\x31\xce\x1c\x5b\x4e\x3d\x39\x64\x7d\x8d\xcb\x9b\x79\x46\x64"[..]).unwrap(); let iut_pub = Point::new::(&b"\x9c\x43\xbf\x97\x1e\xdf\x09\x40\x28\x76\xee\x74\x20\x95\x38\x1f\x78\xb1\xbd\x3a\xa3\x9b\x51\x32\xaf\x75\xdb\xfe\x7e\x98\xbd\x78\xbd\xe1\x0f\xe2\xe9\x03\xc2\xb6\x37\x9e\x1d\xee\xe1\x75\xa1\xb0"[..], &b"\xa6\xc5\x8e\xce\xa5\xa4\x77\xbb\x01\xbd\x54\x3b\x33\x9f\x1c\xc4\x9f\x13\x71\xa2\xcd\xa4\xd4\x6e\xb4\xe5\x3e\x25\x05\x97\x94\x23\x51\xa9\x96\x65\xa1\x22\xff\xea\x9b\xde\x06\x36\xc3\x75\xda\xf2"[..]).unwrap(); let z = &b"\x32\xd2\x92\xb6\x95\xa4\x48\x8e\x42\xa7\xb7\x92\x2e\x1a\xe5\x37\xd7\x6a\x3d\x21\xa0\xb2\xe3\x68\x75\xf6\x0e\x9f\x6d\x3e\x87\x79\xc2\xaf\xb3\xa4\x13\xb9\xdd\x79\xae\x18\xe7\x0b\x47\xd3\x37\xc1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xdd\xa5\x46\xac\xfc\x8f\x90\x3d\x11\xe2\xe3\x92\x06\x69\x63\x6d\x44\xb2\x06\x8a\xeb\x66\xff\x07\xaa\x26\x6f\x00\x30\xe1\x53\x5b\x0e\xd0\x20\x3c\xb8\xa4\x60\xac\x99\x0f\x13\x94\xfa\xf2\x2f\x1d"[..], &b"\x15\xbb\xb2\x59\x79\x13\x03\x5f\xaa\xdf\x41\x34\x76\xf4\xc7\x0f\x72\x79\x76\x9a\x40\xc9\x86\xf4\x70\xc4\x27\xb4\xee\x49\x62\xab\xdf\x81\x73\xbb\xad\x81\x87\x47\x72\x92\x5f\xd3\x2f\x0b\x15\x9f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x3e\x49\xfb\xf9\x50\xa4\x24\xc5\xd8\x02\x28\xdc\x4b\xc3\x5e\x9f\x6c\x6c\x0c\x1d\x04\x44\x09\x98\xda\x0a\x60\x9a\x87\x75\x75\xdb\xe4\x37\xd6\xa5\xce\xda\xa2\xdd\xd2\xa1\xa1\x7f\xd1\x12\xad\xed"[..]).unwrap(); let iut_pub = Point::new::(&b"\x5a\x94\x95\x94\x22\x8b\x1a\x3d\x6f\x59\x9e\xb3\xdb\x0d\x06\x07\x0f\xbc\x55\x1c\x65\x7b\x58\x23\x4b\xa1\x64\xce\x3f\xe4\x15\xfa\x5f\x3e\xb8\x23\xc0\x8d\xc2\x9b\x8c\x34\x12\x19\xc7\x7b\x6b\x3d"[..], &b"\x2b\xaa\xd4\x47\xc8\xc2\x90\xcf\xed\x25\xed\xd9\x03\x1c\x41\xd0\xb7\x69\x21\x45\x73\x27\xf4\x2d\xb3\x11\x22\xb8\x1f\x33\x7b\xbf\x0b\x10\x39\xec\x83\x0c\xe9\x06\x1a\x37\x61\x95\x3c\x75\xe4\xa8"[..]).unwrap(); let z = &b"\x12\x20\xe7\xe6\xca\xd7\xb2\x5d\xf9\x8e\x5b\xbd\xcc\x6c\x0b\x65\xca\x6c\x2a\x50\xc5\xff\x6c\x41\xdc\xa7\x1e\x47\x56\x46\xfd\x48\x96\x15\x97\x9c\xa9\x2f\xb4\x38\x9a\xea\xde\xfd\xe7\x9a\x24\xf1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x78\x8b\xe2\x33\x6c\x52\xf4\x45\x4d\x63\xee\x94\x4b\x1e\x49\xbf\xb6\x19\xa0\x83\x71\x04\x8e\x6d\xa9\x2e\x58\x4e\xae\x70\xbd\xe1\xf1\x71\xc4\xdf\x37\x8b\xd1\xf3\xc0\xab\x03\x04\x8a\x23\x78\x02"[..], &b"\x46\x73\xeb\xd8\xdb\x60\x4e\xaf\x41\x71\x17\x48\xba\xb2\x96\x8a\x23\xca\x44\x76\xce\x14\x4e\x72\x82\x47\xf0\x8a\xf7\x52\x92\x91\x57\xb5\x83\x0f\x1e\x26\x06\x74\x66\xbd\xfa\x8b\x65\x14\x5a\x33"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x50\xcc\xc1\xf7\x07\x6e\x92\xf4\x63\x8e\x85\xf2\xdb\x98\xe0\xb4\x83\xe6\xe2\x20\x4c\x92\xbd\xd4\x40\xa6\xde\xea\x04\xe3\x7a\x07\xc6\xe7\x27\x91\xc1\x90\xad\x4e\x4e\x86\xe0\x1e\xfb\xa8\x42\x69"[..]).unwrap(); let iut_pub = Point::new::(&b"\x75\x6c\x07\xdf\x0c\xe3\x2c\x83\x9d\xac\x9f\xb4\x73\x3c\x9c\x28\xb7\x01\x13\xa6\x76\xa7\x05\x7c\x38\xd2\x23\xf2\x2a\x3a\x90\x95\xa8\xd5\x64\x65\x3a\xf5\x28\xe0\x4c\x7e\x18\x24\xbe\x4a\x65\x12"[..], &b"\x17\xc2\xce\x69\x62\xcb\xd2\xa2\xe0\x66\x29\x7b\x39\xd5\x7d\xd9\xbb\x46\x80\xf0\x19\x1d\x39\x0f\x70\xb4\xe4\x61\x41\x9b\x29\x72\xce\x68\xad\x46\x12\x7f\xdd\xa6\xc3\x91\x95\x77\x4e\xa8\x6d\xf3"[..]).unwrap(); let z = &b"\x79\x3b\xb9\xcd\x22\xa9\x3c\xf4\x68\xfa\xf8\x04\xa3\x8d\x12\xb7\x8c\xb1\x21\x89\xec\x67\x9d\xdd\x2e\x9a\xa2\x1f\xa9\xa5\xa0\xb0\x49\xab\x16\xa2\x35\x74\xfe\x04\xc1\xc3\xc0\x23\x43\xb9\x1b\xeb"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xd0\x9b\xb8\x22\xeb\x99\xe3\x80\x60\x95\x47\x47\xc8\x2b\xb3\x27\x8c\xf9\x6b\xbf\x36\xfe\xce\x34\x00\xf4\xc8\x73\x83\x8a\x40\xc1\x35\xeb\x3b\xab\xb9\x29\x3b\xd1\x00\x1b\xf3\xec\xde\xe7\xbf\x26"[..], &b"\xd4\x16\xdb\x6e\x1b\x87\xbb\xb7\x42\x77\x88\xa3\xb6\xc7\xa7\xab\x2c\x16\x5b\x1e\x36\x6f\x96\x08\xdf\x51\x20\x37\x58\x4f\x21\x3a\x64\x8d\x47\xf1\x6a\xc3\x26\xe1\x9a\xae\x97\x2f\x63\xfd\x76\xc9"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x06\xf1\x32\xb7\x1f\x74\xd8\x7b\xf9\x98\x57\xe1\xe4\x35\x0a\x59\x4e\x5f\xe3\x55\x33\xb8\x88\x55\x2c\xec\xcb\xc0\xd8\x92\x3c\x90\x2e\x36\x14\x1d\x76\x91\xe2\x86\x31\xb8\xbc\x9b\xaf\xe5\xe0\x64"[..]).unwrap(); let iut_pub = Point::new::(&b"\x2a\x3c\xc6\xb8\xff\x5c\xde\x92\x6e\x7e\x3a\x18\x9a\x1b\xd0\x29\xc9\xb5\x86\x35\x1a\xf8\x83\x8f\x4f\x20\x1c\xb8\xf4\xb7\x0e\xf3\xb0\xda\x06\xd3\x52\xc8\x0f\xc2\x6b\xaf\x8f\x42\xb7\x84\x45\x9e"[..], &b"\xbf\x99\x85\x96\x01\x76\xda\x6d\x23\xc7\x45\x2a\x29\x54\xff\xcb\xbc\xb2\x42\x49\xb4\x30\x19\xa2\xa0\x23\xe0\xb3\xda\xbd\x46\x1f\x19\xad\x3e\x77\x5c\x36\x4f\x3f\x11\xad\x49\xf3\x09\x94\x00\xd3"[..]).unwrap(); let z = &b"\x01\x2d\x19\x1c\xf7\x40\x4a\x52\x36\x78\xc6\xfc\x07\x5d\xe8\x28\x5b\x24\x37\x20\xa9\x03\x04\x77\x08\xbb\x33\xe5\x01\xe0\xdb\xee\x5b\xcc\x40\xd7\xc3\xef\x6c\x6d\xa3\x9e\xa2\x4d\x83\x0d\xa1\xe8"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x13\x74\x12\x62\xed\xe5\x86\x1d\xad\x71\x06\x3d\xfd\x20\x4b\x91\xea\x1d\x3b\x7c\x63\x1d\xf6\x8e\xb9\x49\x96\x95\x27\xd7\x9a\x1d\xc5\x92\x95\xef\x7d\x2b\xca\x67\x43\xe8\xcd\x77\xb0\x4d\x1b\x58"[..], &b"\x0b\xaa\xea\xdc\x7e\x19\xd7\x4a\x8a\x04\x45\x1a\x13\x5f\x1b\xe1\xb0\x2f\xe2\x99\xf9\xdc\x00\xbf\xdf\x20\x1e\x83\xd9\x95\xc6\x95\x0b\xcc\x1c\xb8\x9d\x6f\x7b\x30\xbf\x54\x65\x6b\x9a\x4d\xa5\x86"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x12\x04\x8e\xbb\x43\x31\xec\x19\xa1\xe2\x3f\x1a\x2c\x77\x3b\x66\x4c\xcf\xe9\x0a\x28\xbf\xb8\x46\xfc\x12\xf8\x1d\xff\x44\xb7\x44\x3c\x77\x64\x71\x64\xbf\x1e\x9e\x67\xfd\x2c\x07\xa6\x76\x62\x41"[..]).unwrap(); let iut_pub = Point::new::(&b"\xbc\x18\x83\x6b\xc7\xa9\xfd\xf5\x4b\x53\x52\xf3\x7d\x75\x28\xab\x8f\xa8\xec\x54\x4a\x8c\x61\x80\x51\x1c\xbf\xdd\x49\xcc\xe3\x77\xc3\x9e\x34\xc0\x31\xb5\x24\x0d\xc9\x98\x05\x03\xed\x2f\x26\x2c"[..], &b"\x80\x86\xcb\xe3\x38\x19\x10\x80\xf0\xb7\xa1\x6c\x7a\xfc\x4c\x7b\x03\x26\xf9\xac\x66\xf5\x85\x52\xef\x4b\xb9\xd2\x4d\xe3\x42\x9e\xd5\xd3\x27\x7e\xd5\x8f\xcf\x48\xf2\xb5\xf6\x13\x26\xbe\xc6\xc6"[..]).unwrap(); let z = &b"\xad\x0f\xd3\xdd\xff\xe8\x88\x4b\x92\x63\xf3\xc1\x5f\xe1\xf0\x7f\x2a\x5a\x22\xff\xdc\x7e\x96\x70\x85\xee\xa4\x5f\x0c\xd9\x59\xf2\x0f\x18\xf5\x22\x76\x3e\x28\xbc\xc9\x25\xe4\x96\xa5\x2d\xda\x98"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x9e\x22\xcb\xc1\x86\x57\xf5\x16\xa8\x64\xb3\x7b\x78\x33\x48\xb6\x6f\x1a\xa9\x62\x6c\xd6\x31\xf4\xfa\x1b\xd3\x2a\xd8\x8c\xf1\x1d\xb5\x20\x57\xc6\x60\x86\x0d\x39\xd1\x1f\xbf\x02\x4f\xab\xd4\x44"[..], &b"\x6b\x0d\x53\xc7\x96\x81\xc2\x81\x16\xdf\x71\xe9\xce\xe7\x4f\xd5\x6c\x8b\x7f\x04\xb3\x9f\x11\x98\xcc\x72\x28\x4e\x98\xbe\x95\x62\xe3\x59\x26\xfb\x4f\x48\xa9\xfb\xec\xaf\xe7\x29\x30\x9e\x8b\x6f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x34\xd6\x1a\x69\x9c\xa5\x76\x16\x9f\xcd\xc0\xcc\x7e\x44\xe4\xe1\x22\x1d\xb0\xfe\x63\xd1\x68\x50\xc8\x10\x40\x29\xf7\xd4\x84\x49\x71\x4b\x98\x84\x32\x8c\xae\x18\x99\x78\x75\x4a\xb4\x60\xb4\x86"[..]).unwrap(); let iut_pub = Point::new::(&b"\x86\x7f\x81\x10\x4c\xcd\x6b\x16\x3a\x79\x02\xb6\x70\xef\x40\x60\x42\xcb\x0c\xce\x7d\xcd\xc6\x3d\x1d\xfc\x91\xb2\xc4\x0e\x3c\xdf\x75\x95\x83\x4b\xf9\xec\xeb\x79\x84\x9f\x16\x36\xfc\x84\x62\xfc"[..], &b"\x9d\x4b\xde\x8e\x87\x5e\xc4\x96\x97\xd2\x58\xd1\xd5\x94\x65\xf8\x43\x1c\x6f\x55\x31\xe1\xc5\x9e\x9f\x9e\xbe\x3c\xf1\x64\xa8\xd9\xce\x10\xa1\x2f\x19\x79\x28\x3a\x95\x9b\xad\x24\x4d\xd8\x38\x63"[..]).unwrap(); let z = &b"\xdc\x4c\xa3\x92\xdc\x15\xe2\x01\x85\xf2\xc6\xa8\xea\x5e\xc3\x1d\xfc\x96\xf5\x61\x53\xa4\x73\x94\xb3\x07\x2b\x13\xd0\x01\x5f\x5d\x4a\xe1\x3b\xeb\x3b\xed\x54\xd6\x58\x48\xf9\xb8\x38\x3e\x6c\x95"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x2d\xb5\xda\x5f\x94\x0e\xaa\x88\x4f\x4d\xb5\xec\x21\x39\xb0\x46\x9f\x38\xe4\xe6\xfb\xbc\xc5\x2d\xf1\x5c\x0f\x7c\xf7\xfc\xb1\x80\x8c\x74\x97\x64\xb6\xbe\x85\xd2\xfd\xc5\xb1\x6f\x58\xad\x5d\xc0"[..], &b"\x22\xe8\xb0\x2d\xcf\x33\xe1\xb5\xa0\x83\x84\x95\x45\xf8\x4a\xd5\xe4\x3f\x77\xcb\x71\x54\x6d\xbb\xac\x0d\x11\xbd\xb2\xee\x20\x2e\x9d\x38\x72\xe8\xd0\x28\xc0\x89\x90\x74\x6c\x5e\x1d\xde\x99\x89"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xdc\x60\xfa\x87\x36\xd7\x02\x13\x5f\xf1\x6a\xab\x99\x2b\xb8\x8e\xac\x39\x7f\x59\x72\x45\x6c\x72\xec\x44\x73\x74\xd0\xd8\xce\x61\x15\x38\x31\xbf\xc8\x6a\xd5\xa6\xeb\x5b\x60\xbf\xb9\x6a\x86\x2c"[..]).unwrap(); let iut_pub = Point::new::(&b"\xb6\x9b\xee\xde\x85\xd0\xf8\x29\xfe\xc1\xb8\x93\xcc\xb9\xc3\xe0\x52\xff\x69\x2e\x13\xb9\x74\x53\x7b\xc5\xb0\xf9\xfe\xaf\x7b\x22\xe8\x4f\x03\x23\x16\x29\xb2\x48\x66\xbd\xb4\xb8\xcf\x90\x89\x14"[..], &b"\x66\xf8\x5e\x2b\xfc\xab\xa2\x84\x32\x85\xb0\xe1\x4e\xbc\x07\xef\x7d\xaf\xff\x8b\x42\x44\x16\xfe\xe6\x47\xb5\x98\x97\xb6\x19\xf2\x0e\xed\x95\xa6\x32\xe6\xa4\x20\x6b\xf7\xda\x42\x9c\x04\xc5\x60"[..]).unwrap(); let z = &b"\xd7\x65\xb2\x08\x11\x2d\x2b\x9e\xd5\xad\x10\xc4\x04\x6e\x2e\x3b\x0d\xbf\x57\xc4\x69\x32\x95\x19\xe2\x39\xac\x28\xb2\x5c\x7d\x85\x2b\xf7\x57\xd5\xde\x0e\xe2\x71\xca\xdd\x02\x1d\x86\xcf\xd3\x47"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x32\x96\x47\xba\xa3\x54\x22\x4e\xb4\x41\x48\x29\xc5\x36\x8c\x82\xd7\x89\x3b\x39\x80\x4e\x08\xcb\xb2\x18\x0f\x45\x9b\xef\xc4\xb3\x47\xa3\x89\xa7\x0c\x91\xa2\x3b\xd9\xd3\x0c\x83\xbe\x52\x95\xd3"[..], &b"\xcc\x8f\x61\x92\x3f\xad\x2a\xa8\xe5\x05\xd6\xcf\xa1\x26\xb9\xfa\xbd\x5a\xf9\xdc\xe2\x90\xb7\x56\x60\xef\x06\xd1\xca\xa7\x36\x81\xd0\x60\x89\xc3\x3b\xc4\x24\x6b\x3a\xa3\x0d\xbc\xd2\x43\x5b\x12"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x6f\xa6\xa1\xc7\x04\x73\x09\x87\xaa\x63\x4b\x05\x16\xa8\x26\xab\xa8\xc6\xd6\x41\x1d\x3a\x4c\x89\x77\x2d\x7a\x62\x61\x02\x56\xa2\xe2\xf2\x89\xf5\xc3\x44\x0b\x0e\xc1\xe7\x0f\xa3\x39\xe2\x51\xce"[..]).unwrap(); let iut_pub = Point::new::(&b"\x53\xde\x1f\xc1\x32\x8e\x8d\xe1\x4a\xec\xab\x29\xad\x8a\x40\xd6\xb1\x37\x68\xf8\x6f\x7d\x29\x84\x33\xd2\x0f\xec\x79\x1f\x86\xf8\xbc\x73\xf3\x58\x09\x8b\x25\x6a\x29\x8b\xb4\x88\xde\x25\x7b\xf4"[..], &b"\xac\x28\x94\x4f\xd2\x7f\x17\xb8\x29\x46\xc0\x4c\x66\xc4\x1f\x00\x53\xd3\x69\x2f\x27\x5d\xa5\x5c\xd8\x73\x9a\x95\xbd\x8c\xd3\xaf\x2f\x96\xe4\xde\x95\x9e\xa8\x34\x4d\x89\x45\x37\x59\x05\x85\x8b"[..]).unwrap(); let z = &b"\xd3\x77\x88\x50\xae\xb5\x88\x04\xfb\xe9\xdf\xe6\xf3\x8b\x9f\xa8\xe2\x0c\x2c\xa4\xe0\xde\xc3\x35\xaa\xfc\xec\xa0\x33\x3e\x3f\x24\x90\xb5\x3c\x0c\x1a\x14\xa8\x31\xba\x37\xc4\xb9\xd7\x4b\xe0\xf2"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x29\xd8\xa3\x6d\x22\x20\x0a\x75\xb7\xae\xa1\xbb\x47\xcd\xfc\xb1\xb7\xfd\x66\xde\x96\x70\x41\x43\x47\x28\xab\x5d\x53\x3a\x06\x0d\xf7\x32\x13\x06\x00\xfe\x6f\x75\x85\x2a\x87\x1f\xb2\x93\x8e\x39"[..], &b"\xe1\x9b\x53\xdb\x52\x83\x95\xde\x89\x7a\x45\x10\x89\x67\x71\x5e\xb8\xcb\x55\xc3\xfc\xbf\x23\x37\x93\x72\xc0\x87\x3a\x05\x8d\x57\x54\x4b\x10\x2e\xcc\xe7\x22\xb2\xcc\xab\xb1\xa6\x03\x77\x4f\xd5"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x74\xad\x83\x86\xc1\xcb\x2c\xa0\xfc\xde\xb3\x1e\x08\x69\xbb\x3f\x48\xc0\x36\xaf\xe2\xef\x11\x0c\xa3\x02\xbc\x8b\x91\x0f\x62\x1c\x9f\xcc\x54\xce\xc3\x2b\xb8\x9e\xc7\xca\xa8\x4c\x7b\x8e\x54\xa8"[..]).unwrap(); let iut_pub = Point::new::(&b"\x27\xa3\xe8\x3c\xfb\x9d\x51\x22\xe7\x31\x29\xd8\x01\x61\x58\x57\xda\x7c\xc0\x89\xcc\xcc\x9c\x54\xab\x30\x32\xa1\x9e\x0a\x0a\x9f\x67\x73\x46\xe3\x7f\x08\xa0\xb3\xed\x8d\xa6\xe5\xdd\x69\x10\x63"[..], &b"\x8d\x60\xe4\x4a\xa5\xe0\xfd\x30\xc9\x18\x45\x67\x96\xaf\x37\xf0\xe4\x19\x57\x90\x16\x45\xe5\xc5\x96\xc6\xd9\x89\xf5\x85\x9b\x03\xa0\xbd\x7d\x1f\x4e\x77\x93\x6f\xff\x3c\x74\xd2\x04\xe5\x38\x8e"[..]).unwrap(); let z = &b"\x81\xe1\xe7\x15\x75\xbb\x45\x05\x49\x8d\xe0\x97\x35\x01\x86\x43\x0a\x62\x42\xfa\x6c\x57\xb8\x5a\x5f\x98\x4a\x23\x37\x11\x23\xd2\xd1\x42\x4e\xef\xbf\x80\x42\x58\x39\x2b\xc7\x23\xe4\xef\x1e\x35"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } } #[test] fn nist_p_521() { { let cav_pub = Point::new::(&b"\x01\xdf\x27\x7c\x15\x21\x08\x34\x9b\xc3\x4d\x53\x9e\xe0\xcf\x06\xb2\x4f\x5d\x35\x00\x67\x7b\x44\x45\x45\x3c\xcc\x21\x40\x94\x53\xaa\xfb\x8a\x72\xa0\xbe\x9e\xbe\x54\xd1\x22\x70\xaa\x51\xb3\xab\x7f\x31\x6a\xa5\xe7\x4a\x95\x1c\x5e\x53\xf7\x4c\xd9\x5f\xc2\x9a\xee\x7a"[..], &b"\x01\x3d\x52\xf3\x3a\x9f\x3c\x14\x38\x4d\x15\x87\xfa\x8a\xbe\x7a\xed\x74\xbc\x33\x74\x9a\xd9\xc5\x70\xb4\x71\x77\x64\x22\xc7\xd4\x50\x5d\x9b\x0a\x96\xb3\xbf\xac\x04\x1e\x4c\x6a\x69\x90\xae\x7f\x70\x0e\x5b\x4a\x66\x40\x22\x91\x12\xde\xaf\xa0\xcd\x8b\xb0\xd0\x89\xb0"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x81\x6f\x19\xc1\xfb\x10\xef\x94\xd4\xa1\xd8\x1c\x15\x6e\xc3\xd1\xde\x08\xb6\x67\x61\xf0\x3f\x06\xee\x4b\xb9\xdc\xeb\xbb\xfe\x1e\xaa\x1e\xd4\x9a\x6a\x99\x08\x38\xd8\xed\x31\x8c\x14\xd7\x4c\xc8\x72\xf9\x5d\x05\xd0\x7a\xd5\x0f\x62\x1c\xeb\x62\x0c\xd9\x05\xcf\xb8"[..]).unwrap(); let iut_pub = Point::new::(&b"\xd4\x56\x15\xed\x5d\x37\xfd\xe6\x99\x61\x0a\x62\xcd\x43\xba\x76\xbe\xdd\x8f\x85\xed\x31\x00\x5f\xe0\x0d\x64\x50\xfb\xbd\x10\x12\x91\xab\xd9\x6d\x49\x45\xa8\xb5\x7b\xc7\x3b\x3f\xe9\xf4\x67\x11\x05\x30\x9e\xc9\xb6\x87\x9d\x05\x51\xd9\x30\xda\xc8\xba\x45\xd2\x55"[..], &b"\x01\x42\x53\x32\x84\x4e\x59\x2b\x44\x0c\x00\x27\x97\x2a\xd1\x52\x64\x31\xc0\x67\x32\xdf\x19\xcd\x46\xa2\x42\x17\x2d\x4d\xd6\x7c\x2c\x8c\x99\xdf\xc2\x2e\x49\x94\x9a\x56\xcf\x90\xc6\x47\x36\x35\xce\x82\xf2\x5b\x33\x68\x2f\xb1\x9b\xc3\x3b\xd9\x10\xed\x8c\xe3\xa7\xfa"[..]).unwrap(); let z = &b"\x0b\x39\x20\xac\x83\x0a\xde\x81\x2c\x8f\x96\x80\x5d\xa2\x23\x6e\x00\x2a\xcb\xbf\x13\x59\x6a\x9a\xb2\x54\xd4\x4d\x0e\x91\xb6\x25\x5e\xbf\x12\x29\xf3\x66\xfb\x5a\x05\xc5\x88\x4e\xf4\x60\x32\xc2\x6d\x42\x18\x92\x73\xca\x4e\xfa\x4c\x3d\xb6\xbd\x12\xa6\x85\x37\x59"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x92\xdb\x31\x42\x56\x4d\x27\xa5\xf0\x00\x6f\x81\x99\x08\xfb\xa1\xb8\x50\x38\xa5\xbc\x25\x09\x90\x6a\x49\x7d\xaa\xc6\x7f\xd7\xae\xe0\xfc\x2d\xab\xa4\xe4\x33\x4e\xea\xef\x0e\x00\x19\x20\x4b\x47\x1c\xd8\x80\x24\xf8\x21\x15\xd8\x14\x9c\xc0\xcf\x4f\x7c\xe1\xa4\xd5"[..], &b"\x01\x6b\xad\x06\x23\xf5\x17\xb1\x58\xd9\x88\x18\x41\xd2\x57\x1e\xfb\xad\x63\xf8\x5c\xbe\x2e\x58\x19\x60\xc5\xd6\x70\x60\x1a\x67\x60\x27\x26\x75\xa5\x48\x99\x62\x17\xe4\xab\x2b\x8e\xbc\xe3\x1d\x71\xfc\xa6\x3f\xcc\x3c\x08\xe9\x1c\x1d\x8e\xdd\x91\xcf\x6f\xe8\x45\xf8"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\x2f\x2e\x0c\x6d\x9e\x9d\x11\x7c\xeb\x97\x23\xbc\xed\x02\xeb\x3d\x4e\xeb\xf5\xfe\xea\xf8\xee\x01\x13\xcc\xd8\x05\x7b\x13\xdd\xd4\x16\xe0\xb7\x42\x80\xc2\xd0\xba\x8e\xd2\x91\xc4\x43\xbc\x1b\x14\x1c\xaf\x8a\xfb\x3a\x71\xf9\x7f\x57\xc2\x25\xc0\x3e\x1e\x4d\x42\xb0"[..]).unwrap(); let iut_pub = Point::new::(&b"\x71\x7f\xcb\x3d\x4a\x40\xd1\x03\x87\x1e\xde\x04\x4d\xc8\x03\xdb\x50\x8a\xaa\x4a\xe7\x4b\x70\xb9\xfb\x8d\x8d\xfd\x84\xbf\xec\xfa\xd1\x78\x71\x87\x96\x98\xc2\x92\xd2\xfd\x5e\x17\xb4\xf9\x34\x36\x36\xc5\x31\xa4\xfa\xc6\x8a\x35\xa9\x36\x65\x54\x6b\x9a\x87\x86\x79"[..], &b"\xf3\xd9\x6a\x86\x37\x03\x69\x93\xab\x5d\x24\x45\x00\xff\xf9\xd2\x77\x21\x12\x82\x6f\x64\x36\x60\x3d\x3e\xb2\x34\xa4\x4d\x5c\x4e\x5c\x57\x72\x34\x67\x9c\x4f\x9d\xf7\x25\xee\x5b\x91\x18\xf2\x3d\x8a\x58\xd0\xcc\x01\x09\x6d\xaf\x70\xe8\xdf\xec\x01\x28\xbd\xc2\xe8"[..]).unwrap(); let z = &b"\x6b\x38\x0a\x6e\x95\x67\x92\x77\xcf\xee\x4e\x83\x53\xbf\x96\xef\x2a\x1e\xbd\xd0\x60\x74\x9f\x2f\x04\x6f\xe5\x71\x05\x37\x40\xbb\xcc\x9a\x0b\x55\x79\x0b\xc9\xab\x56\xc3\x20\x8a\xa0\x5d\xdf\x74\x6a\x10\xa3\xad\x69\x4d\xaa\xe0\x0d\x98\x0d\x94\x4a\xab\xc6\xa0\x8f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xfd\xd4\x0d\x9e\x9d\x97\x40\x27\xcb\x3b\xae\x68\x21\x62\xea\xc1\x32\x8a\xd6\x1b\xc4\x35\x3c\x45\xbf\x5a\xfe\x76\xbf\x60\x7d\x28\x94\xc8\xcc\xe2\x36\x95\xd9\x20\xf2\x46\x4f\xda\x47\x73\xd4\x69\x3b\xe4\xb3\x77\x35\x84\x69\x1b\xdb\x03\x29\xb7\xf4\xc8\x6c\xc2\x99"[..], &b"\x34\xce\xac\x6a\x3f\xef\x1c\x3e\x1c\x49\x4b\xfe\x8d\x87\x2b\x18\x38\x32\x21\x9a\x7e\x14\xda\x41\x4d\x4e\x34\x74\x57\x36\x71\xec\x19\xb0\x33\xbe\x83\x1b\x91\x54\x35\x90\x59\x25\xb4\x49\x47\xc5\x92\x95\x99\x45\xb4\xeb\x7c\x95\x1c\x3b\x9c\x8c\xf5\x25\x30\xba\x23"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xe5\x48\xa7\x9d\x8b\x05\xf9\x23\xb9\x82\x5d\x11\xb6\x56\xf2\x22\xe8\xcb\x98\xb0\xf8\x9d\xe1\xd3\x17\x18\x4d\xc5\xa6\x98\xf7\xc7\x11\x61\xee\x7d\xc1\x1c\xd3\x1f\x4f\x4f\x8a\xe3\xa9\x81\xe1\xa3\xe7\x8b\xde\xbb\x97\xd7\xc2\x04\xb9\x26\x1b\x4e\xf9\x2e\x09\x18\xe0"[..]).unwrap(); let iut_pub = Point::new::(&b"\x0c\xe8\x00\x21\x7e\xd2\x43\xdd\x10\xa7\x9a\xd7\x3d\xf5\x78\xaa\x8a\x3f\x91\x94\xaf\x52\x8c\xd1\x09\x4b\xbf\xee\x27\xa3\xb5\x48\x1a\xd5\x86\x2c\x88\x76\xc0\xc3\xf9\x12\x94\xc0\xab\x3a\xa8\x06\xd9\x02\x0c\xba\xa2\xed\x72\xb7\xfe\xcd\xc5\xa0\x9a\x6d\xad\x6f\x32"[..], &b"\x01\x54\x3c\x9a\xb4\x5b\x12\x46\x92\x32\x91\x8e\x21\xd5\xa3\x51\xf9\xa4\xb9\xcb\xf9\xef\xb2\xaf\xcc\x40\x2f\xa9\xb3\x16\x50\xbe\xc2\xd6\x41\xa0\x5c\x44\x0d\x35\x33\x1c\x08\x93\xd1\x1f\xb1\x31\x51\x33\x59\x88\xb3\x03\x34\x13\x01\xa7\x3d\xc5\xf6\x1d\x57\x4e\x67\xd9"[..]).unwrap(); let z = &b"\xfb\xbc\xd0\xb8\xd0\x53\x31\xfe\xf6\x08\x6f\x22\xa6\xcc\xe4\xd3\x57\x24\xab\x7a\x2f\x49\xdd\x84\x58\xd0\xbf\xd5\x7a\x0b\x8b\x70\xf2\x46\xc1\x7c\x44\x68\xc0\x76\x87\x4b\x0d\xff\x7a\x03\x36\x82\x3b\x19\xe9\x8b\xf1\xce\xc0\x5e\x4b\xef\xfb\x05\x91\xf9\x77\x13\xc6"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x98\xd9\x9d\xee\x08\x16\x55\x0e\x84\xdb\xfc\xed\x7e\x88\x13\x7f\xdd\xcf\x58\x1a\x72\x5a\x45\x50\x21\x11\x5f\xe4\x9f\x8d\xc3\xcf\x23\x3c\xd9\xea\x0e\x6f\x03\x9d\xc7\x91\x9d\xa9\x73\xcd\xce\xac\xa2\x05\xda\x39\xe0\xbd\x98\xc8\x06\x25\x36\xc4\x7f\x25\x8f\x44\xb5"[..], &b"\xcd\x22\x5c\x87\x97\x37\x1b\xe0\xc4\x29\x7d\x2b\x45\x77\x40\x10\x0c\x77\x41\x41\xd8\xf2\x14\xc2\x3b\x61\xaa\x2b\x6c\xd4\x80\x6b\x9b\x70\x72\x2a\xa4\x96\x5f\xb6\x22\xf4\x2b\x73\x91\xe2\x7e\x5e\xc2\x1c\x56\x79\xc5\xb0\x6b\x59\x12\x73\x72\x99\x7d\x42\x1a\xdc\x1e"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\xc8\xaa\xe9\x4b\xb1\x0b\x8c\xa4\xf7\xbe\x57\x7b\x4f\xb3\x2b\xb2\x38\x10\x32\xc4\x94\x2c\x24\xfc\x2d\x75\x3e\x7c\xc5\xe4\x7b\x48\x33\x89\xd9\xf3\xb9\x56\xd2\x0e\xe9\x00\x1b\x1e\xef\x9f\x23\x54\x5f\x72\xc5\x60\x21\x40\x04\x68\x39\xe9\x63\x31\x3c\x3d\xec\xc8\x64"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\x06\xa1\x4e\x2e\xe8\xff\x97\x0a\xa8\xab\x0c\x79\xb9\x7a\x33\xbb\xa2\x95\x8e\x07\x0b\x75\xb9\x47\x36\xb7\x7b\xbe\x3f\x77\x73\x24\xfa\x52\x87\x27\x71\xaa\x88\xa6\x3a\x9e\x84\x90\xc3\x37\x8d\xf4\xdc\x76\x0c\xd1\x4d\x62\xbe\x70\x07\x79\xdd\x1a\x43\x77\x94\x36\x56"[..], &b"\x23\x66\xce\x39\x41\xe0\xb2\x84\xb1\xaa\x81\x21\x5d\x0d\x3b\x97\x78\xfc\xe2\x3c\x8c\xd1\xe4\xed\x6f\xa0\xab\xf6\x21\x56\xc9\x1d\x4b\x3e\xb5\x59\x99\xc3\x47\x1b\xed\x27\x5e\x9e\x60\xe5\xaa\x9d\x69\x0d\x31\x0b\xfb\x15\xc9\xc5\xbb\xd6\xf5\xe9\xeb\x39\x68\x2b\x74"[..]).unwrap(); let z = &b"\x01\x45\xcf\xa3\x8f\x25\x94\x35\x16\xc9\x6a\x5f\xd4\xbf\xeb\xb2\xf6\x45\xd1\x05\x20\x11\x7a\xa5\x19\x71\xef\xf4\x42\x80\x8a\x23\xb4\xe2\x3c\x18\x7e\x63\x9f\xf9\x28\xc3\x72\x5f\xbd\x1c\x0c\x2a\xd0\xd4\xae\xb2\x07\xbc\x1a\x6f\xb6\xcb\x6d\x46\x78\x88\xdc\x04\x4b\x3c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x7a\xe1\x15\xad\xaa\xf0\x41\x69\x1a\xb6\xb7\xfb\x8c\x92\x1f\x99\xd8\xed\x32\xd2\x83\xd6\x70\x84\xe8\x0b\x9a\xd9\xc4\x0c\x56\xcd\x98\x38\x9f\xb0\xa8\x49\xd9\xec\xf7\x26\x8c\x29\x7b\x6f\x93\x40\x61\x19\xf4\x0e\x32\xb5\x77\x3e\xd2\x5a\x28\xa9\xa8\x5c\x4a\x75\x88"[..], &b"\x01\xa2\x8e\x00\x4e\x37\xee\xae\xfe\x1f\x4d\xbb\x71\xf1\x87\x86\x96\x14\x1a\xf3\xa1\x0a\x96\x91\xc4\xed\x93\x48\x72\x14\x64\x3b\x76\x1f\xa4\xb0\xfb\xee\xb2\x47\xcf\x6d\x3f\xba\x7a\x60\x69\x75\x36\xad\x03\xf4\x9b\x80\xa9\xd1\xcb\x07\x96\x73\x65\x49\x77\xc5\xfa\x94"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x9b\x0a\xf1\x37\xc9\x69\x6c\x75\xb7\xe6\xdf\x7b\x73\x15\x6b\xb2\xd4\x5f\x48\x2e\x5a\x42\x17\x32\x4f\x47\x8b\x10\xce\xb7\x6a\xf0\x97\x24\xcf\x86\xaf\xa3\x16\xe7\xf8\x99\x18\xd3\x1d\x54\x82\x4a\x5c\x33\x10\x7a\x48\x3c\x15\xc1\x5b\x96\xed\xc6\x61\x34\x0b\x1c\x0e"[..]).unwrap(); let iut_pub = Point::new::(&b"\x74\x8c\xdb\xb8\x75\xd3\x5f\x4b\xcc\xb6\x2a\xbe\x20\xe8\x2d\x32\xe4\xc1\x4d\xc2\xfe\xb5\xb8\x7d\xa2\xd0\xcc\xb1\x1c\x9b\x6d\x4b\x77\x37\xb6\xc4\x6f\x0d\xfb\x4d\x89\x6e\x2d\xb9\x2f\xcf\x53\xcd\xbb\xae\x2a\x40\x4c\x0b\xab\xd5\x64\xad\x7a\xde\xac\x62\x73\xef\xa3"[..], &b"\x01\x98\x4a\xca\xb8\xd8\xf1\x73\x32\x3d\xe0\xbb\x60\x27\x4b\x22\x88\x71\x60\x93\x73\xbb\x22\xa1\x72\x87\xe9\xde\xc7\x49\x58\x73\xab\xc0\x9a\x89\x15\xb5\x4c\x84\x55\xc8\xe0\x2f\x65\x4f\x60\x2e\x23\xa2\xbb\xd7\xa9\xeb\xb7\x4f\x30\x09\xbd\x65\xec\xc6\x50\x81\x4c\xc0"[..]).unwrap(); let z = &b"\x5c\x57\x21\xe9\x6c\x27\x33\x19\xfd\x60\xec\xc4\x6b\x59\x62\xf6\x98\xe9\x74\xb4\x29\xf2\x8f\xe6\x96\x2f\x4a\xc6\x56\xbe\x2e\xb8\x67\x4c\x4a\xaf\xc0\x37\xea\xb4\x8e\xce\x61\x29\x53\xb1\xe8\xd8\x61\x01\x6b\x6a\xd0\xc7\x98\x05\x78\x4c\x67\xf7\x3a\xda\x96\xf3\x51"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x25\x88\x11\x5e\x6f\x7f\x7b\xdc\xfd\xf5\x7f\x03\xb1\x69\xb4\x79\x75\x8b\xaa\xfd\xaf\x56\x9d\x04\x13\x59\x87\xb2\xce\x61\x64\xc0\x2a\x57\x68\x5e\xb5\x27\x6b\x5d\xae\x62\x95\xd3\xfe\x90\x62\x0f\x38\xb5\x53\x5c\x6d\x22\x60\xc1\x73\xe6\x1e\xb8\x88\xca\x92\x02\x03"[..], &b"\x01\x54\x2c\x16\x9c\xf9\x7c\x25\x96\xfe\x2d\xdd\x84\x8a\x22\x2e\x36\x7c\x5f\x7e\x62\x67\xeb\xc1\xbc\xd9\xab\x5d\xcf\x49\x15\x8f\x1a\x48\xe4\xaf\x29\xa8\x97\xb7\xe6\xa8\x20\x91\xc2\xdb\x87\x4d\x8e\x7a\xbf\x0f\x58\x06\x46\x91\x34\x41\x54\xf3\x96\xdb\xae\xd1\x88\xb6"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\xe4\x8f\xaa\xce\xe6\xde\xc8\x3f\xfc\xde\x94\x4c\xf6\xbd\xf4\xce\x4b\xae\x72\x74\x78\x88\xeb\xaf\xee\x45\x5b\x1e\x91\x58\x49\x71\xef\xb4\x91\x27\x97\x6a\x52\xf4\x14\x29\x52\xf7\xc2\x07\xec\x02\x65\xf2\xb7\x18\xcf\x3e\xad\x96\xea\x4f\x62\xc7\x52\xe4\xf7\xac\xd3"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\x0e\xb1\xb4\xd9\x17\x2b\xcc\x23\xf4\xf2\x0c\xc9\x56\x0f\xc5\x49\x28\xc3\xf3\x4e\xa6\x1c\x00\x39\x1d\xc7\x66\xc7\x6e\xd9\xfa\x60\x84\x49\x37\x7d\x1e\x4f\xad\xd1\x23\x60\x25\x41\x73\x30\xb4\xb9\x10\x86\x70\x4a\xce\x3e\x4e\x64\x84\xc6\x06\xe2\xa9\x43\x47\x8c\x86"[..], &b"\x01\x49\x41\x38\x64\x06\x98\x25\xee\x1d\x08\x28\xda\x9f\x4a\x97\x71\x30\x05\xe9\xbd\x1a\xdb\xc3\xb3\x8c\x5b\x94\x69\x00\x72\x1a\x96\x0f\xe9\x6a\xd2\xc1\xb3\xa4\x4f\xe3\xde\x91\x56\x13\x6d\x44\xcb\x17\xcb\xc2\x41\x57\x29\xbb\x78\x2e\x16\xbf\xe2\xde\xb3\x06\x9e\x43"[..]).unwrap(); let z = &b"\x01\x73\x6d\x97\x17\x42\x9b\x4f\x41\x2e\x90\x3f\xeb\xe2\xf9\xe0\xff\xfd\x81\x35\x5d\x6c\xe2\xc0\x6f\xf3\xf6\x6a\x3b\xe1\x5c\xee\xc6\xe6\x5e\x30\x83\x47\x59\x3f\x00\xd7\xf3\x35\x91\xda\x40\x43\xc3\x07\x63\xd7\x27\x49\xf7\x2c\xdc\xee\xbe\x82\x5e\x4b\x34\xec\xd5\x70"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x69\x49\x1d\x55\xbd\x09\x04\x9f\xdf\x4c\x2a\x53\xa6\x60\x48\x0f\xee\x4c\x03\xa0\x53\x86\x75\xd1\xcd\x09\xb5\xbb\xa7\x8d\xac\x48\x54\x3e\xf1\x18\xa1\x17\x3b\x3f\xbf\x8b\x20\xe3\x9c\xe0\xe6\xb8\x90\xa1\x63\xc5\x0f\x96\x45\xb3\xd2\x1d\x1c\xbb\x3b\x60\xa6\xff\xf4"[..], &b"\x83\x49\x4b\x2e\xba\x76\x91\x0f\xed\x33\xc7\x61\x80\x45\x15\x01\x1f\xab\x50\xe3\xb3\x77\xab\xd8\xa8\xa0\x45\xd8\x86\xd2\x23\x8d\x2c\x26\x8a\xc1\xb6\xec\x88\xbd\x71\xb7\xba\x78\xe2\xc3\x3c\x15\x2e\x4b\xf7\xda\x5d\x56\x5e\x4a\xcb\xec\xf5\xe9\x2c\x7a\xd6\x62\xbb"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xc2\x9a\xa2\x23\xea\x8d\x64\xb4\xa1\xed\xa2\x7f\x39\xd3\xbc\x98\xea\x01\x48\xdd\x98\xc1\xcb\xe5\x95\xf8\xfd\x2b\xfb\xde\x11\x9c\x9e\x01\x7a\x50\xf5\xd1\xfc\x12\x1c\x08\xc1\xce\xf3\x1b\x75\x88\x59\x55\x6e\xb3\xe0\xe0\x42\xd8\xdd\x6a\xaa\xc5\x7a\x05\xca\x61\xe3"[..]).unwrap(); let iut_pub = Point::new::(&b"\x15\x11\xc8\x48\xef\x60\xd5\x41\x9a\x98\xd1\x02\x04\xdb\x0f\xe5\x82\x24\x12\x43\x70\x06\x1b\xcf\xa4\xe9\x24\x9d\x50\x61\x8c\x56\xbf\x37\x22\x47\x1b\x25\x9f\x38\x26\x3b\xb7\xb2\x80\xd2\x3c\xaf\x2a\x1e\xe8\x73\x7f\x93\x71\xcd\xb2\x73\x2c\xdc\x95\x83\x69\x93\x0c"[..], &b"\x01\xd4\x61\x68\x1a\xe6\xd8\xc4\x9b\x4c\x5f\x4d\x60\x16\x14\x3f\xb1\xbd\x74\x91\x57\x3e\x3e\xd0\xe6\xc4\x8b\x82\xe8\x21\x64\x4f\x87\xf8\x2f\x0e\x5f\x08\xfd\x16\xf1\xf9\x8f\xa1\x75\x86\x20\x0a\xb0\x2e\xd8\xc6\x27\xb3\x5c\x3f\x27\x61\x7e\xc5\xfd\x92\xf4\x56\x20\x3f"[..]).unwrap(); let z = &b"\x01\x8f\x2a\xe9\x47\x6c\x77\x17\x26\xa7\x77\x80\x20\x8d\xed\xfe\xfa\x20\x54\x88\x99\x6b\x18\xfe\xcc\x50\xbf\xd4\xc1\x32\x75\x3f\x57\x66\xb2\xcd\x74\x4a\xfa\x99\x18\x60\x6d\xe2\xe0\x16\xef\xfc\x63\x62\x2e\x90\x29\xe7\x6d\xc6\xe3\xf0\xc6\x9f\x7a\xec\xed\x56\x5c\x2c"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x84\x15\xf5\xbb\xd0\xee\xe3\x87\xd6\xc0\x9d\x0e\xf8\xac\xaf\x29\xc6\x6d\xb4\x5d\x6b\xa1\x01\x86\x0a\xe4\x5d\x3c\x60\xe1\xe0\xe3\xf7\x24\x7a\x46\x26\xa6\x0f\xdd\x40\x49\x65\xc3\x56\x6c\x79\xf6\x44\x9e\x85\x6c\xe0\xbf\x94\x61\x9f\x97\xda\x8d\xa2\x4b\xd2\xcf\xb6"[..], &b"\xfd\xd7\xc5\x9c\x58\xc3\x61\xbc\x50\xa7\xa5\xd0\xd3\x6f\x72\x3b\x17\xc4\xf2\xad\x2b\x03\xc2\x4d\x42\xdc\x50\xf7\x4a\x8c\x46\x5a\x0a\xfc\x46\x83\xf1\x0f\xab\x84\x65\x2d\xfe\x9e\x92\x8c\x26\x26\xb5\x45\x64\x53\xe1\x57\x3f\xf6\x0b\xe1\x50\x74\x67\xd4\x31\xfb\xb2"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x28\x69\x2b\xe2\xbf\x5c\x4b\x48\x93\x98\x46\xfb\x3d\x5b\xce\x74\x65\x4b\xb2\x64\x6e\x15\xf8\x38\x9e\x23\x70\x8a\x1a\xfa\xdf\x56\x15\x11\xea\x0d\x99\x57\xd0\xb5\x34\x53\x81\x9d\x60\xfb\xa8\xf6\x5a\x18\xf7\xb2\x9d\xf0\x21\xb1\xbb\x01\xcd\x16\x32\x93\xac\xc3\xcc"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\xcf\xdc\x10\xc7\x99\xf5\xc7\x9c\xb6\x93\x0a\x65\xfb\xa3\x51\x74\x8e\x07\x56\x79\x93\xe5\xe4\x10\xef\x4c\xac\xc4\xcd\x8a\x25\x78\x49\x91\xeb\x46\x74\xe4\x10\x50\xf9\x30\xc7\x19\x0a\xc8\x12\xb9\x24\x5f\x48\xa7\x97\x3b\x65\x8d\xaf\x40\x88\x22\xfe\x5b\x85\xf6\x68"[..], &b"\x01\x80\xd9\xdd\xfc\x9a\xf7\x7b\x9c\x4a\x6f\x02\xa8\x34\xdb\x15\xe5\x35\xe0\xb3\x84\x5b\x2c\xce\x30\x38\x83\x01\xb5\x1c\xec\xbe\x32\x76\x30\x7e\xf4\x39\xb5\xc9\xe6\xa7\x2d\xc2\xd9\x4d\x87\x9b\xc3\x95\x05\x2d\xbb\x4a\x57\x87\xd0\x6e\xfb\x28\x02\x10\xfb\x8b\xe0\x37"[..]).unwrap(); let z = &b"\x01\x05\xa3\x46\x98\x8b\x92\xed\x8c\x7a\x25\xce\x4d\x79\xd2\x1b\xc8\x6c\xfc\xc7\xf9\x9c\x6c\xd1\x9d\xbb\x4a\x39\xf4\x8a\xb9\x43\xb7\x9e\x4f\x06\x47\x34\x8d\xa0\xb8\x0b\xd8\x64\xb8\x5c\x6b\x8d\x92\x53\x6d\x6a\xa5\x44\xdc\x75\x37\xa0\x0c\x85\x8f\x8b\x66\x31\x9e\x25"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\xc7\x21\xee\xa8\x05\xa5\xcb\xa2\x9f\x34\xba\x57\x58\x77\x5b\xe0\xcf\x61\x60\xe6\xc0\x87\x23\xf5\xab\x17\xbf\x96\xa1\xff\x2b\xd9\x42\x79\x61\xa4\xf3\x4b\x07\xfc\x0b\x14\xca\x4b\x2b\xf6\x84\x5d\xeb\xd5\xa8\x69\xf1\x24\xeb\xfa\x7a\xa7\x2f\xe5\x65\x05\x0b\x7f\x18"[..], &b"\xb6\xe8\x9e\xb0\xe1\xdc\xf1\x81\x23\x6f\x7c\x54\x8f\xd1\xa8\xc1\x6b\x25\x8b\x52\xc1\xa9\xbf\xd3\xfe\x8f\x22\x84\x1b\x26\x76\x32\x65\xf0\x74\xc4\xcc\xf2\xd6\x34\xae\x97\xb7\x01\x95\x6f\x67\xa1\x10\x06\xc5\x2d\x97\x19\x7d\x92\xf5\x85\xf5\x74\x8b\xc2\x67\x2e\xeb"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\x19\x4d\x1e\xe6\x13\xf5\x36\x6c\xbc\x44\xb5\x04\xd2\x1a\x0c\xf6\x71\x5e\x20\x9c\xd3\x58\xf2\xdd\x5f\x3e\x71\xcc\x0d\x67\xd0\xe9\x64\x16\x8c\x42\xa0\x84\xeb\xda\x74\x6f\x98\x63\xa8\x6b\xac\xff\xc8\x19\xf1\xed\xf1\xb8\xc7\x27\xcc\xfb\x30\x47\x24\x0a\x57\xc4\x35"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\x6b\xd1\x5c\x8a\x58\xd3\x66\xf7\xf2\xb2\xf2\x98\xcc\x87\xb7\x48\x5e\x9e\xe7\x0d\x11\xd1\x24\x48\xb8\x37\x7c\x0a\x82\xc7\x62\x6f\x67\xaf\xf7\xf9\x7b\xe7\xa3\x54\x6b\xf4\x17\xee\xed\xdf\x75\xa9\x3c\x13\x01\x91\xc8\x41\x08\x04\x2e\xa2\xfc\xa1\x7f\xd3\xf8\x0d\x14"[..], &b"\x01\x56\x05\x02\xd0\x4b\x74\xfc\xe1\x74\x3a\xab\x47\x7a\x9d\x1e\xac\x93\xe5\x22\x69\x81\xfd\xb9\x7a\x74\x78\xce\x4c\xe5\x66\xff\x72\x43\x93\x12\x84\xfa\xd8\x50\xb0\xc2\xbc\xae\x0d\xdd\x2d\x97\x79\x01\x60\xc1\xa2\xe7\x7c\x3e\xd6\xc9\x5e\xcc\x44\xb8\x9e\x26\x37\xfc"[..]).unwrap(); let z = &b"\x45\x31\xb3\xd2\xc6\xcd\x12\xf2\x16\x04\xc8\x61\x0e\x67\x23\xdb\xf4\xda\xf8\x0b\x5a\x45\x9d\x6b\xa5\x81\x43\x97\xd1\xc1\xf7\xa2\x1d\x7c\x11\x4b\xe9\x64\xe2\x73\x76\xaa\xeb\xe3\xa7\xbc\x3d\x6a\xf7\xa7\xf8\xc7\xbe\xfb\x61\x1a\xfe\x48\x7f\xf0\x32\x92\x1f\x75\x0f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\xc3\x58\x23\xe4\x40\xa9\x36\x3a\xb9\x8d\x9f\xc7\xa7\xbc\x0c\x05\x32\xdc\x79\x77\xa7\x91\x65\x59\x9b\xf1\xa9\xcc\x64\xc0\x0f\xb3\x87\xb4\x2c\xca\x36\x52\x86\xe8\x43\x03\x60\xbf\xad\x36\x43\xbc\x31\x35\x4e\xda\x50\xdc\x93\x6c\x32\x9e\xcd\xb6\x09\x05\xc4\x0f\xcb"[..], &b"\xd9\xe7\xf4\x33\x53\x1e\x44\xdf\x4f\x6d\x51\x42\x01\xcb\xaa\xbb\x06\xba\xdd\x67\x83\xe0\x11\x11\x72\x6d\x81\x55\x31\xd2\x33\xc5\xcd\xb7\x22\x89\x3f\xfb\xb2\x02\x72\x59\xd5\x94\xde\x77\x43\x88\x09\x73\x81\x20\xc6\xf7\x83\x93\x4f\x92\x6c\x3f\xb6\x9b\x40\xc4\x09"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\xfd\x90\xe3\xe4\x16\xe9\x8a\xa3\xf2\xb6\xaf\xa7\xf3\xbf\x36\x8e\x45\x1a\xd9\xca\x5b\xd5\x4b\x5b\x14\xae\xe2\xed\x67\x23\xdd\xe5\x18\x1f\x50\x85\xb6\x81\x69\xb0\x9f\xbe\xc7\x21\x37\x2c\xcf\x6b\x28\x47\x13\xf9\xa6\x35\x6b\x8d\x56\x0a\x8f\xf7\x8c\xa3\x73\x7c\x88"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\xeb\xea\x1b\x10\xd3\xe3\xb9\x71\xb7\xef\xb6\x9f\xc8\x78\xde\x11\xc7\xf4\x72\xe4\xe4\xd3\x84\xc3\x1b\x8d\x62\x88\xd8\x07\x15\x17\xac\xad\xe9\xb3\x97\x96\xc7\xaf\x51\x63\xbc\xf7\x1a\xed\xa7\x77\x53\x3f\x38\x2c\x6c\xf0\xa4\xd9\xbb\xb9\x38\xc8\x5f\x44\xb7\x80\x37"[..], &b"\x01\x6b\x0e\x3e\x19\xc2\x99\x6b\x2c\xbd\x1f\xf6\x47\x30\xe7\xca\x90\xed\xca\x19\x84\xf9\xb2\x95\x13\x33\x53\x5e\x57\x48\xba\xa3\x4a\x99\xf6\x1f\xf4\xd5\xf8\x12\x07\x9e\x0f\x01\xe8\x77\x89\xf3\x4e\xfd\xad\x80\x98\x01\x5e\xe7\x4a\x4f\x84\x6d\xd1\x90\xd1\x6d\xc6\xe1"[..]).unwrap(); let z = &b"\x01\x00\xc8\x93\x59\x69\x07\x7b\xae\x0b\xa8\x9e\xf0\xdf\x81\x61\xd9\x75\xec\x58\x70\xac\x81\x1a\xe7\xe6\x5c\xa5\x39\x4e\xfb\xa4\xf0\x63\x3d\x41\xbf\x79\xea\x5e\x5b\x94\x96\xbb\xd7\xaa\xe0\x00\xb0\x59\x4b\xaa\x82\xef\x8f\x24\x4e\x69\x84\xae\x87\xae\x1e\xd1\x24\xb7"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x09\x30\x57\xfb\x86\x2f\x2a\xd2\xe8\x2e\x58\x1b\xae\xb3\x32\x4e\x7b\x32\x94\x6f\x2b\xa8\x45\xa9\xbe\xee\xd8\x7d\x69\x95\xf5\x49\x18\xec\x66\x19\xb9\x93\x19\x55\xd5\xa8\x9d\x4d\x74\xad\xf1\x04\x6b\xb3\x62\x19\x2f\x2e\xf6\xbd\x3e\x3d\x2d\x04\xdd\x1f\x87\x05\x4a"[..], &b"\xaa\x3f\xb2\x44\x83\x35\xf6\x94\xe3\xcd\xa4\xae\x0c\xc7\x1b\x1b\x2f\x2a\x20\x6f\xa8\x02\xd7\x26\x2f\x19\x98\x3c\x44\x67\x4f\xe1\x53\x27\xac\xaa\xc1\xfa\x40\x42\x4c\x39\x5a\x65\x56\xcb\x81\x67\x31\x25\x27\xfa\xe5\x86\x5e\xcf\xfc\x14\xbb\xdc\x17\xda\x78\xcd\xcf"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x90\x12\xec\xfd\xad\xc8\x5c\xed\x63\x0a\xfe\xa5\x34\xcd\xc8\xe9\xd1\xab\x8b\xe5\xf3\x75\x3d\xcf\x5f\x2b\x09\xb4\x0e\xda\x66\xfc\x68\x58\x54\x9b\xc3\x6e\x6f\x8d\xf5\x59\x98\xcf\xa9\xa0\x70\x3a\xec\xf6\xc4\x27\x99\xc2\x45\x01\x10\x64\xf5\x30\xc0\x9d\xb9\x83\x69"[..]).unwrap(); let iut_pub = Point::new::(&b"\x23\x4e\x32\xbe\x0a\x90\x71\x31\xd2\xd1\x28\xa6\x47\x7e\x0c\xac\xeb\x86\xf0\x24\x79\x74\x5e\x0f\xe2\x45\xcb\x33\x2d\xe6\x31\xc0\x78\x87\x11\x60\x48\x2e\xee\xf5\x84\xe2\x74\xdf\x7f\xa4\x12\xce\xa3\xe1\xe9\x1f\x71\xec\xba\x87\x81\xd9\x20\x5d\x48\x38\x63\x41\xad"[..], &b"\x01\xcf\x86\x45\x5b\x09\xb1\xc0\x05\xcf\xfb\xa8\xd7\x62\x89\xa3\x75\x96\x28\xc8\x74\xbe\xea\x46\x2f\x51\xf3\x0b\xd5\x81\xe3\x80\x31\x34\x30\x7d\xed\xbb\x77\x1b\x33\x34\xee\x15\xbe\x2e\x24\x2c\xd7\x9c\x34\x07\xd2\xf5\x89\x35\x45\x6c\x69\x41\xdd\x9b\x6d\x15\x5a\x46"[..]).unwrap(); let z = &b"\x01\x7f\x36\xaf\x19\x30\x38\x41\xd1\x3a\x38\x9d\x95\xec\x0b\x80\x1c\x7f\x9a\x67\x9a\x82\x31\x46\xc7\x5c\x17\xbc\x44\x25\x6e\x9a\xd4\x22\xa4\xf8\xb3\x1f\x14\x64\x7b\x2c\x7d\x31\x7b\x93\x3f\x7c\x29\x46\xc4\xb8\xab\xd1\xd5\x6d\x62\x0f\xab\x1b\x5f\xf1\xa3\xad\xc7\x1f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x83\x19\x2e\xd0\xb1\xcb\x31\xf7\x58\x17\x79\x49\x37\xf6\x6a\xd9\x1c\xf7\x45\x52\xcd\x51\x0c\xed\xb9\xfd\x64\x13\x10\x42\x2a\xf5\xd0\x9f\x22\x1c\xad\x24\x9e\xe8\x14\xd1\x6d\xd7\xac\x84\xde\xd9\xea\xcd\xc2\x83\x40\xfc\xfc\x9c\x0c\x06\xab\xe3\x0a\x2f\xc2\x8c\xd8"[..], &b"\x22\x12\xed\x86\x8c\x9b\xa0\xfb\x2c\x91\xe2\xc3\x9b\xa9\x39\x96\xa3\xe4\xeb\xf4\x5f\x28\x52\xd0\x92\x8c\x48\x93\x0e\x87\x5c\xc7\xb4\x28\xd0\xe7\xf3\xf4\xd5\x03\xe5\xd6\x0c\x68\xcb\x49\xb1\x3c\x24\x80\xcd\x48\x6b\xed\x92\x00\xca\xdd\xad\xdf\xe4\xff\x8e\x35\x62"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\xb5\xff\x84\x7f\x8e\xff\x20\xb8\x8c\xfa\xd4\x2c\x06\xe5\x8c\x37\x42\xf2\xf8\xf1\xfd\xfd\x64\xb5\x39\xba\x48\xc2\x59\x26\x92\x6b\xd5\xe3\x32\xb4\x56\x49\xc0\xb1\x84\xf7\x72\x55\xe9\xd5\x8f\xe8\xaf\xa1\xa6\xd9\x68\xe2\xcb\x1d\x46\x37\x77\x71\x20\xc7\x65\xc1\x28"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\xde\x3d\xc9\x26\x3b\xc8\xc4\x96\x9d\xc6\x84\xbe\x0e\xec\x54\xbe\xfd\x9a\x9f\x3d\xba\x19\x4d\x86\x58\xa7\x89\x34\x1b\xf0\xd7\x8d\x84\xda\x67\x35\x22\x7c\xaf\xaf\x09\x35\x19\x51\x69\x11\x97\x57\x3c\x8c\x36\x0a\x11\xe5\x28\x57\x12\xb8\xbb\xdf\x5a\xc9\x1b\x97\x7c"[..], &b"\x81\x2d\xe5\x8c\xd0\x95\xec\x2e\x5a\x9b\x24\x7e\xb3\xed\x41\xd8\xbe\xf6\xae\xac\xe1\x94\xa7\xa0\x5b\x65\xaa\x5d\x28\x9f\xbc\x9b\x17\x70\xec\x84\xbb\x6b\xe0\xc2\xc6\x4c\xc3\x7c\x1d\x54\xa7\xf5\xd7\x13\x77\xa9\xad\xbe\x20\xf2\x6f\x6f\x2b\x54\x4a\x82\x1e\xa8\x31"[..]).unwrap(); let z = &b"\x06\x2f\x9f\xc2\x9a\xe1\xa6\x8b\x2e\xe0\xdc\xf9\x56\xcb\xd3\x8c\x88\xae\x5f\x64\x5e\xaa\x54\x6b\x00\xeb\xe8\x7a\x72\x60\xbf\x72\x4b\xe2\x0d\x34\xb9\xd0\x20\x76\x65\x5c\x93\x3d\x05\x6b\x21\xe3\x04\xc2\x4d\xdb\x1d\xed\xf1\xdd\x76\xde\x61\x1f\xc4\xa2\x34\x03\x36"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\xa8\x9b\x63\x6a\x93\xe5\xd2\xba\x6c\x22\x92\xbf\x23\x03\x3a\x84\xf0\x6a\x3a\xc1\x22\x0e\xa7\x1e\x80\x6a\xfb\xe0\x97\xa8\x04\xcc\x67\xe9\xba\xa5\x14\xcf\xb6\xc1\x2c\x91\x94\xbe\x30\x21\x2b\xf7\xaa\xe7\xfd\xf6\xd3\x76\xc2\x12\xf0\x55\x4e\x65\x64\x63\xff\xab\x7e"[..], &b"\x01\x82\xef\xca\xf7\x0f\xc4\x12\xd3\x36\x60\x2e\x01\x4d\xa4\x72\x56\xa0\xb6\x06\xf2\xad\xdc\xce\x80\x53\xbf\x81\x7a\xc8\x65\x6b\xb4\xe4\x2f\x14\xc8\xcb\xf2\xa6\x8f\x48\x8a\xb3\x5d\xcd\xf6\x40\x56\x27\x1d\xee\x1f\x60\x6a\x44\x0b\xa4\xbd\x4e\x5a\x11\xb8\xb8\xe5\x4f"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\x1a\x63\x47\xd4\xe8\x01\xc9\x19\x23\x48\x83\x54\xcc\x53\x3e\x7e\x35\xfd\xdf\x81\xff\x0f\xb7\xf5\x6b\xb0\x72\x6e\x0c\x29\xee\x5d\xcd\xc5\xf3\x94\xba\x54\xcf\x57\x26\x90\x48\xaa\xb6\xe0\x55\x89\x5c\x8d\xa2\x4b\x8b\x06\x39\xa7\x42\x31\x43\x90\xcc\x04\x19\x0e\xd6"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfe\x30\x26\x7f\x33\xba\x5c\xde\xfc\x25\xcb\xb3\xc9\x32\x0d\xad\x9c\xcb\x1d\x7d\x37\x66\x44\x62\x0c\xa4\xfa\xde\xe5\x62\x6a\x3c\xed\xe2\x5a\xd2\x54\x62\x4d\xef\x72\x7a\x70\x48\xf7\x14\x5f\x76\x16\x2a\xa9\x80\x42\xf9\xb1\x23\xb2\x07\x6f\x8e\x8c\xf5\x9b\x3f\xdf"[..], &b"\x11\x45\xdc\x66\x31\x95\x3b\x6e\x29\x45\xe9\x43\x01\xd6\xcb\xb0\x98\xfe\x4b\x04\xf7\xee\x9b\x09\x41\x1d\xf1\x04\xdc\x82\xd7\xd7\x9e\xc4\x6a\x01\xed\x0f\x2d\x3e\x7d\xb6\xeb\x68\x06\x94\xbd\xeb\x10\x7c\x10\x78\xae\xc6\xca\xbd\x9e\xbe\xe3\xd3\x42\xfe\x7e\x54\xdf"[..]).unwrap(); let z = &b"\x01\x28\xab\x09\xbf\xec\x54\x06\x79\x9e\x61\x0f\x77\x2b\xa1\x7e\x89\x22\x49\xfa\x8e\x0e\x7b\x18\xa0\x4b\x91\x97\x03\x4b\x25\x0b\x48\x29\x4f\x18\x67\xfb\x96\x41\x51\x8f\x92\x76\x60\x66\xa0\x7a\x8b\x91\x7b\x0e\x76\x87\x9e\x10\x11\xe5\x1c\xcb\xd9\xf5\x40\xc5\x4d\x4f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x72\x00\xb3\xf1\x6a\x68\xcb\xae\xd2\xbf\x78\xba\x8c\xdd\xfb\x6c\xff\xac\x26\x2b\xba\x00\xfb\xc2\x5f\x9d\xc7\x2a\x07\xce\x59\x37\x29\x04\x89\x9f\x36\x4c\x44\xcb\x26\x4c\x09\x7b\x64\x7d\x44\x12\xbe\xe3\xe5\x19\x89\x2d\x53\x4d\x91\x29\xf8\xa2\x8f\x75\x00\xfe\xe7"[..], &b"\xba\xba\x8d\x67\x2a\x4f\x4a\x3b\x63\xde\x48\xb9\x6f\x56\xe1\x8d\xf5\xd6\x8f\x7d\x70\xd5\x10\x98\x33\xf4\x37\x70\xd6\x73\x2e\x06\xb3\x9a\xd6\x0d\x93\xe5\xb4\x3d\xb8\x78\x9f\x1e\xc0\xab\xa4\x72\x86\xa3\x9e\xa5\x84\x23\x5a\xce\xa7\x57\xdb\xf1\x3d\x53\xb5\x83\x64"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x22\xb6\xd2\xa2\x2d\x71\xdf\xaa\x81\x1d\x2d\x9f\x9f\x31\xfb\xed\x27\xf2\xe1\xf3\xd2\x39\x53\x8d\xdf\x3e\x4c\xc8\xc3\x9a\x33\x02\x66\xdb\x25\xb7\xbc\x0a\x97\x04\xf1\x7b\xde\x7f\x35\x92\xbf\x5f\x1f\x2d\x4b\x56\x01\x3a\xac\xc3\xd8\xd1\xbc\x02\xf0\x0d\x31\x46\xcc"[..]).unwrap(); let iut_pub = Point::new::(&b"\xba\x38\xcf\xbf\x9f\xd2\x51\x8a\x3f\x61\xd4\x35\x49\xe7\xa6\xa6\xd2\x8b\x2b\xe5\x7f\xfd\x3e\x0f\xac\xeb\x63\x6b\x34\xed\x17\xe0\x44\xa9\xf2\x49\xda\xe8\xfc\x13\x2e\x93\x7e\x2d\x93\x49\xcd\x2e\xd7\x7b\xb1\x04\x9c\xeb\x69\x2a\x2e\xc5\xb1\x7a\xd6\x15\x02\xa6\x4c"[..], &b"\x1e\xc9\x1d\x30\x58\x57\x3f\xa6\xc0\x56\x4a\x02\xa1\xa0\x10\x16\x0c\x31\x3b\xc7\xc7\x35\x10\xdc\x98\x3e\x54\x61\x68\x2b\x5b\xe0\x0d\xbc\xe7\xe2\xc6\x82\xad\x73\xf2\x9c\xa8\x22\xcd\xc1\x11\xf6\x8f\xab\xe3\x3a\x7b\x38\x4a\x64\x83\x42\xc3\xcd\xb9\xf0\x50\xbc\xdb"[..]).unwrap(); let z = &b"\x01\x01\xe4\x62\xe9\xd9\x15\x99\x68\xf6\x44\x0e\x95\x6f\x11\xdc\xf2\x22\x7a\xe4\xae\xa8\x16\x67\x12\x2b\x6a\xf9\x23\x9a\x29\x1e\xb5\xd6\xcf\x5a\x40\x87\xf3\x58\x52\x5f\xca\xcf\xa4\x6b\xb2\xdb\x01\xa7\x5a\xf1\xba\x51\x9b\x2d\x31\xda\x33\xed\xa8\x7a\x9d\x56\x57\x48"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x4e\xfd\x5d\xbd\x2f\x97\x9e\x38\x31\xce\x98\xf8\x23\x55\xd6\xca\x14\xa5\x75\x78\x42\x87\x58\x82\x99\x0a\xb8\x5a\xb9\xb7\x35\x2d\xd6\xb9\xb2\xf4\xea\x9a\x1e\x95\xc3\x88\x0d\x65\xd1\xf3\x60\x2f\x9c\xa6\x53\xdc\x34\x6f\xac\x85\x86\x58\xd7\x56\x26\xf4\xd4\xfb\x08"[..], &b"\x61\xcf\x15\xdb\xda\xa7\xf3\x15\x89\xc9\x84\x00\x37\x3d\xa2\x84\x50\x6d\x70\xc8\x9f\x07\x4e\xd2\x62\xa9\xe2\x81\x40\x79\x6b\x72\x36\xc2\xee\xf9\x90\x16\x08\x5e\x71\x55\x2f\xf4\x88\xc7\x2b\x73\x39\xfe\xfb\x79\x15\xc3\x84\x59\xcb\x20\xab\x85\xae\xc4\xe4\x50\x52"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x5b\xac\xff\xf2\x68\xac\xf6\x55\x3c\x3c\x58\x3b\x46\x4e\xa3\x6a\x1d\x35\xe2\xb2\x57\xa5\xd4\x9e\xb3\x41\x9d\x5a\x09\x50\x87\xc2\xfb\x4d\x15\xcf\x5b\xf5\xaf\x81\x6d\x0f\x3f\xf7\x58\x64\x90\xcc\xd3\xdd\xc1\xa9\x8b\x39\xce\x63\x74\x9c\x62\x88\xce\x0d\xbd\xac\x7d"[..]).unwrap(); let iut_pub = Point::new::(&b"\x36\xe4\x88\xda\x75\x81\x47\x2a\x9d\x8e\x62\x8c\x58\xd6\xad\x72\x73\x11\xb7\xe6\xa3\xf6\xae\x33\xa8\x54\x4f\x34\xb0\x92\x80\x24\x90\x20\xbe\x71\x96\x91\x6f\xaf\xd9\x0e\x2e\xc5\x4b\x66\xb5\x46\x8d\x23\x61\xb9\x9b\x56\xfa\x00\xd7\xac\x37\xab\xb8\xc6\xf1\x66\x53"[..], &b"\x01\x1e\xdb\x9f\xb8\xad\xb6\xa4\x3f\x4f\x5f\x5f\xdc\x14\x21\xc9\xfe\x04\xfc\x8b\xa4\x6c\x9b\x66\x33\x4e\x3a\xf9\x27\xc8\xbe\xfb\x43\x07\x10\x4f\x29\x9a\xce\xc4\xe3\x0f\x81\x2d\x93\x45\xc9\x72\x0d\x19\x86\x9d\xbf\xff\xd4\xca\x3e\x7d\x27\x13\xeb\x5f\xc3\xf4\x26\x15"[..]).unwrap(); let z = &b"\x01\x41\xd6\xa4\xb7\x19\xab\x67\xea\xf0\x4a\x92\xc0\xa4\x1e\x2d\xda\x78\xf4\x35\x4f\xb9\x0b\xdc\x35\x20\x2c\xc7\x69\x9b\x9b\x04\xd4\x96\x16\xf8\x22\x55\xde\xbf\x7b\xbe\xc0\x45\xae\x58\xf9\x82\xa6\x69\x05\xfc\xfa\xe6\x9d\x68\x97\x85\xe3\x8c\x86\x8e\xb4\xa2\x7e\x7b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x29\x89\x1d\xe0\xcf\x3c\xf8\x2e\x8c\x2c\xf1\xbf\x90\xbb\x29\x6f\xe0\x0a\xb0\x8c\xa4\x5b\xb7\x89\x2e\x0e\x22\x7a\x50\x4f\xdd\x05\xd2\x38\x1a\x44\x48\xb6\x8a\xdf\xf9\xc4\x15\x3c\x87\xea\xcb\x78\x33\x0d\x8b\xd5\x25\x15\xf9\xf9\xa0\xb5\x8e\x85\xf4\x46\xbb\x4e\x10"[..], &b"\x9e\xdd\x67\x96\x96\xd3\xd1\xd0\xef\x32\x7f\x20\x03\x83\x25\x3f\x64\x13\x68\x3d\x9e\x4f\xcc\x87\xbb\x35\xf1\x12\xc2\xf1\x10\x09\x8d\x15\xe5\x70\x1d\x7c\xee\xe4\x16\x29\x1f\xf5\xfe\xd8\x5e\x68\x7f\x72\x73\x88\xb9\xaf\xe2\x6a\x4f\x6f\xee\xd5\x60\xb2\x18\xe6\xbb"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x8e\x2c\x93\xc5\x42\x38\x76\x22\x3a\x63\x7c\xad\x36\x7c\x85\x89\xda\x69\xa2\xd0\xfc\x68\x61\x2f\x31\x92\x3a\xe5\x02\x19\xdf\x24\x52\xe7\xcc\x92\x61\x5b\x67\xf1\x7b\x57\xff\xd2\xf5\x2b\x19\x15\x4b\xb4\x0d\x77\x15\x33\x64\x20\xfd\xe2\xe8\x9f\xee\x24\x4f\x59\xdc"[..]).unwrap(); let iut_pub = Point::new::(&b"\xfa\x3b\x35\x11\x8d\x6c\x42\x25\x70\xf7\x24\xa2\x6f\x90\xb2\x83\x3b\x19\x23\x91\x74\xce\xa0\x81\xc5\x31\x33\xf6\x4d\xb6\x0d\x69\x40\xea\x12\x61\x29\x9c\x04\xc1\xf4\x58\x7c\xdb\x0c\x4c\x39\x61\x64\x79\xc1\xbb\x0c\x14\x67\x99\xa1\x18\x03\x2d\xcf\x98\xf8\x99\xc0"[..], &b"\x69\xf0\x40\x22\x90\x06\x15\x1f\xa3\x2b\x51\xf6\x79\xc8\x81\x6f\x7c\x17\x50\x6b\x40\x38\x09\xdc\x77\xcd\x58\xa2\xae\xc4\x30\xd9\x4d\x13\xb6\xc9\x16\xde\x99\xf3\x55\xaa\x45\xfc\xfb\xc6\x85\x3d\x68\x6c\x71\xbe\x49\x6a\x06\x7d\x24\xbf\xae\xa4\x81\x8f\xc5\x1f\x75"[..]).unwrap(); let z = &b"\x34\x5e\x26\xe0\xab\xb1\xaa\xc1\x2b\x75\xf3\xa9\xcf\x41\xef\xe1\xc3\x36\x39\x6d\xff\xa4\xa0\x67\xa4\xc2\xcf\xeb\x87\x8c\x68\xb2\xb0\x45\xfa\xa4\xe5\xb4\xe6\xfa\x46\x78\xf5\xb6\x03\xc3\x51\x90\x3b\x14\xbf\x9a\x6a\x70\xc4\x39\x25\x71\x99\xa6\x40\x89\x0b\x61\xd1"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\xa3\xc2\x02\x40\xe5\x9f\x5b\x7a\x3e\x17\xc2\x75\xd2\x31\x4b\xa1\x74\x12\x10\xad\x58\xb7\x10\x36\xf8\xc8\x3c\xc1\xf6\xb0\xf4\x09\xdf\xdd\x91\x13\xe9\x4b\x67\xec\x39\xc3\x29\x14\x26\xc2\x3f\xfc\xc4\x47\x05\x46\x70\xd2\x90\x8f\xf8\xfe\x67\xdc\x23\x06\x03\x4c\x5c"[..], &b"\x01\xd2\x82\x5b\xfd\x3a\xf8\xb1\xe1\x32\x05\x78\x0c\x13\x7f\xe9\x38\xf8\x4f\xde\x40\x18\x8e\x61\xea\x02\xce\xad\x81\xba\xdf\xdb\x42\x5c\x29\xf7\xd7\xfb\x03\x24\xde\xba\xdc\x10\xbb\xb9\x3d\xe6\x8f\x62\xc3\x50\x69\x26\x82\x83\xf5\x26\x58\x65\xdb\x57\xa7\x9f\x7b\xf7"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x04\xd4\x9d\x39\xd4\x0d\x81\x11\xbf\x16\xd2\x8c\x59\x36\x55\x43\x26\xb1\x97\x35\x3e\xeb\xbc\xf4\x75\x45\x39\x3b\xc8\xd3\xaa\xf9\x8f\x14\xf5\xbe\x70\x74\xbf\xb3\x8e\x6c\xc9\x7b\x98\x97\x54\x07\x4d\xad\xdb\x30\x45\xf4\xe4\xce\x74\x56\x69\xfd\xb3\xec\x0d\x5f\xa8"[..]).unwrap(); let iut_pub = Point::new::(&b"\x01\x2e\xc2\x26\xd0\x50\xce\x07\xc7\x9b\x3d\xf4\xd0\xf0\x89\x1f\x9f\x7a\xdf\x46\x2e\x8c\x98\xdb\xc1\xa2\xa1\x4f\x5e\x53\xa3\xf5\xad\x89\x44\x33\x58\x7c\xc4\x29\xa8\xbe\x9e\xa1\xd8\x4f\xa3\x3b\x18\x03\x69\x0d\xae\x04\xda\x72\x18\xd3\x00\x26\x15\x7f\xc9\x95\xcf\x52"[..], &b"\x48\x37\xdf\xbf\x34\x26\xf5\x7b\x5c\x79\x32\x69\x13\x0a\xbb\x9a\x38\xf6\x18\x53\x22\x11\x93\x11\x54\xdb\x4e\xeb\x9a\xed\xe8\x8e\x57\x29\x0f\x84\x2e\xa0\xf2\xea\x9a\x5f\x74\xc6\x20\x3a\x39\x20\xfe\x4e\x30\x5f\x61\x18\xf6\x76\xb1\x54\xe1\xd7\x5b\x9c\xb5\xeb\x88"[..]).unwrap(); let z = &b"\x6f\xe9\xde\x6f\xb8\xe6\x72\xe7\xfd\x15\x0f\xdc\x5e\x61\x7f\xab\xb0\xd4\x39\x06\x35\x4c\xcf\xd2\x24\x75\x7c\x72\x76\xf7\xa1\x01\x00\x91\xb1\x7e\xd0\x72\x07\x4f\x8d\x10\xa5\xec\x97\x1e\xb3\x5a\x5c\xb7\x07\x66\x03\xb7\xbc\x38\xd4\x32\xcb\xc0\x59\xf8\x0f\x94\x88"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x7e\x2d\x13\x8f\x28\x32\xe3\x45\xae\x8f\xf6\x59\x57\xe4\x0e\x5e\xc7\x16\x3f\x01\x6b\xdf\x6d\x24\xa2\x24\x3d\xaa\x63\x1d\x87\x8a\x4a\x16\x78\x39\x90\xc7\x22\x38\x21\x30\xf9\xe5\x1f\x0c\x1b\xd6\xff\x5a\xc9\x67\x80\xe4\x8b\x68\xf5\xde\xc9\x5f\x42\xe6\x14\x4b\xb5"[..], &b"\xb0\xde\x5c\x89\x67\x91\xf5\x28\x86\xb0\xf0\x99\x13\xe2\x6e\x78\xdd\x0b\x69\x79\x8f\xc4\xdf\x6d\x95\xe3\xca\x70\x8e\xcb\xcb\xcc\xe1\xc1\x89\x5f\x55\x61\xbb\xab\xaa\xe3\x72\xe9\xe6\x7e\x6e\x1a\x3b\xe6\x0e\x19\xb4\x70\xcd\xf6\x73\xec\x1f\xc3\x93\xd3\x42\x6e\x20"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\x1a\x5d\x1c\xc7\x9c\xd2\xbf\x73\xea\x10\x6f\x0e\x60\xa5\xac\xe2\x20\x81\x3b\x53\xe2\x7b\x73\x98\x64\x33\x4a\x07\xc0\x33\x67\xef\xda\x7a\x46\x19\xfa\x6e\xef\x3a\x97\x46\x49\x22\x83\xb3\xc4\x45\x61\x0a\x02\x3a\x9c\xc4\x9b\xf4\x59\x11\x40\x38\x4f\xca\x5c\x8b\xb5"[..]).unwrap(); let iut_pub = Point::new::(&b"\xeb\x07\xc7\x33\x2e\xed\xb7\xd3\x03\x60\x59\xd3\x5f\x7d\x22\x88\xd4\x37\x7d\x5f\x42\x33\x7a\xd3\x96\x40\x79\xfb\x12\x0c\xcd\x4c\x8b\xd3\x84\xb5\x85\x62\x10\x55\x21\x70\x23\xac\xd9\xa9\x4f\xcb\x3b\x96\x5b\xfb\x39\x46\x75\xe7\x88\xad\xe4\x1a\x1d\xe7\x3e\x62\x0c"[..], &b"\x49\x1a\x83\x5d\xe2\xe6\xe7\xde\xb7\xe0\x90\xf4\xa1\x1f\x2c\x46\x0c\x0b\x1f\x3d\x5e\x94\xee\x8d\x75\x10\x14\xdc\x72\x07\x84\xfd\x3b\x54\x50\x0c\x86\xeb\xae\xf1\x84\x29\xf0\x9e\x8e\x87\x6d\x5d\x15\x38\x96\x8a\x03\x0d\x77\x15\xdd\xe9\x9f\x0d\x8f\x06\xe2\x9d\x59"[..]).unwrap(); let z = &b"\x01\xe4\xe7\x59\xec\xed\xce\x10\x13\xba\xf7\x3e\x6f\xcc\x0b\x92\x45\x1d\x03\xbd\xd5\x04\x89\xb7\x88\x71\xc3\x33\x11\x49\x90\xc9\xba\x6a\x9b\x2f\xc7\xb1\xa2\xd9\xa1\x79\x4c\x1b\x60\xd9\x27\x9a\xf6\xf1\x46\xf0\xbb\xfb\x06\x83\x14\x04\x03\xbf\xa4\xcc\xdb\x52\x4a\x29"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x11\x8c\x36\x02\x22\x09\xb1\xaf\x8e\xba\xd1\xa1\x2b\x56\x6f\xc4\x87\x44\x57\x6e\x11\x99\xfe\x80\xde\x1c\xdf\x85\x1c\xdf\x03\xe5\xb9\x09\x1a\x8f\x7e\x07\x9e\x83\xb7\xf8\x27\x25\x9b\x69\x1d\x0c\x22\xee\x29\xd6\xbd\xf7\x3e\xc7\xbb\xfd\x74\x6f\x2c\xd9\x7a\x35\x7d"[..], &b"\xda\x5f\xf4\x90\x45\x48\xa3\x42\xe2\xe7\xba\x6a\x1f\x4e\xe5\xf8\x40\x41\x1a\x96\xcf\x63\xe6\xfe\x62\x2f\x22\xc1\x3e\x61\x4e\x0a\x84\x7c\x11\xa1\xab\x3f\x1d\x12\xcc\x85\x0c\x32\xe0\x95\x61\x4c\xa8\xf7\xe2\x72\x14\x77\xb4\x86\xe9\xff\x40\x37\x29\x77\xc3\xf6\x5c"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\x0c\x90\x8c\xaf\x1b\xe7\x4c\x61\x6b\x62\x5f\xc8\xc1\xf5\x14\x44\x6a\x6a\xec\x83\xb5\x93\x71\x41\xd6\xaf\xbb\x0a\x8c\x76\x66\xa7\x74\x6f\xa1\xf7\xa6\x66\x4a\x21\x23\xe8\xcd\xf6\xcd\x8b\xf8\x36\xc5\x6d\x3c\x0e\xbd\xcc\x98\x0e\x43\xa1\x86\xf9\x38\xf3\xa7\x8a\xe7"[..]).unwrap(); let iut_pub = Point::new::(&b"\x31\x89\x0f\x4c\x7a\xbe\xc3\xf7\x23\x36\x22\x85\xd7\x7d\x26\x36\xf8\x76\x81\x7d\xb3\xbb\xc8\x8b\x01\xe7\x73\x59\x7b\x96\x9f\xf6\xf0\x13\xea\x47\x0c\x85\x4a\xb4\xa7\x73\x90\x04\xeb\x8c\xbe\xa6\x9b\x82\xdd\xf3\x6a\xca\xdd\x40\x68\x71\x79\x8e\xcb\x2a\xc3\xaa\x7f"[..], &b"\xd8\xb4\x29\xae\x32\x50\x26\x6b\x96\x43\xc0\xc7\x65\xa6\x0d\xc1\x01\x55\xbc\x25\x31\xcf\x86\x27\x29\x6f\x49\x78\xb6\x64\x0a\x9e\x60\x0e\x19\xd0\x03\x7d\x58\x50\x3f\xa8\x07\x99\x54\x6a\x81\x4d\x74\x78\xa5\x50\xaa\x90\xe5\xeb\xeb\x05\x25\x27\xfa\xae\xae\x5d\x08"[..]).unwrap(); let z = &b"\x01\x63\xc9\x19\x1d\x65\x10\x39\xa5\xfe\x98\x5a\x0e\xea\x1e\xba\x01\x8a\x40\xab\x19\x37\xfc\xd2\xb6\x12\x20\x82\x0e\xe8\xf2\x30\x2e\x97\x99\xf6\xed\xfc\x3f\x51\x74\xf3\x69\xd6\x72\xd3\x77\xea\x89\x54\xa8\xd0\xc8\xb8\x51\xe8\x1a\x56\xfd\xa9\x52\x12\xa6\x57\x8f\x0e"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x78\x0e\xdf\xf1\xca\x1c\x03\xcf\xbe\x59\x3e\xdc\x6c\x04\x9b\xcb\x28\x60\x29\x4a\x92\xc3\x55\x48\x9d\x9a\xfb\x2e\x70\x20\x75\xad\xe1\xc9\x53\x89\x5a\x45\x62\x30\xa0\xcd\xe9\x05\xde\x4a\x3f\x38\x57\x3d\xbf\xcc\xcd\x67\xad\x6e\x7e\x93\xf0\xb5\x58\x1e\x92\x6a\x5d"[..], &b"\xa5\x48\x19\x62\xc9\x16\x29\x62\xe7\xf0\xeb\xde\xc9\x36\x93\x5d\x0e\xaa\x81\x3e\x82\x26\xd4\x0d\x7f\x61\x19\xbf\xd9\x40\x60\x23\x80\xc8\x67\x21\xe6\x1d\xb1\x83\x0f\x51\xe1\x39\xf2\x10\x00\x0b\xce\xc0\xd8\xed\xd3\x9e\x54\xd7\x3a\x9a\x12\x9f\x95\xcd\x5f\xa9\x79"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x01\xb3\x7d\x6b\x72\x88\xde\x67\x13\x60\x42\x5d\x3e\x5a\xc1\xcc\xb2\x18\x15\x07\x9d\x8d\x73\x43\x1e\x9b\x74\xa6\xf0\xe7\xae\x00\x4a\x35\x75\x75\xb1\x1a\xd6\x66\x42\xce\x8b\x77\x55\x93\xeb\xa9\xd9\x8b\xf2\x5c\x75\xef\x0b\x4d\x3a\x20\x98\xbb\xc6\x41\xf5\x9a\x2b\x77"[..]).unwrap(); let iut_pub = Point::new::(&b"\x18\x9a\x5e\xe3\x4d\xe7\xe3\x5a\xef\xea\xee\xf9\x22\x0c\x18\x07\x1b\x4c\x29\xa4\xc3\xbd\x9d\x95\x44\x58\xbd\x3e\x82\xa7\xa3\x4d\xa3\x4c\xff\x55\x79\xb8\x10\x1c\x06\x5b\x1f\x2f\x52\x7c\xf4\x58\x15\x01\xe2\x8e\xf5\x67\x18\x73\xe6\x52\x67\x73\x3d\x00\x35\x20\xaf"[..], &b"\x01\xeb\x4b\xc5\x0a\x7b\x4d\x45\x99\xd7\xe3\xfa\x77\x3d\xdb\x9e\xb2\x52\xc9\xb3\x42\x28\x72\xe5\x44\xbd\xf7\x5c\x7b\xf6\x0f\x51\x66\xdd\xc1\x1e\xb0\x8f\xa7\xc3\x08\x22\xda\xba\xee\x37\x3a\xb4\x68\xeb\x2d\x92\x2e\x48\x4e\x2a\x52\x7f\xff\x2e\xbb\x80\x4b\x7d\x9a\x37"[..]).unwrap(); let z = &b"\x01\x5d\x61\x3e\x26\x7a\x36\x34\x2e\x0d\x12\x5c\xda\xd6\x43\xd8\x0d\x97\xed\x06\x00\xaf\xb9\xe6\xb9\x54\x5c\x9e\x64\xa9\x8c\xc6\xda\x7c\x5a\xaa\x3a\x8d\xa0\xbd\xd9\xdd\x3b\x97\xe9\x78\x82\x18\xa8\x0a\xba\xfc\x10\x6e\xf0\x65\xc8\xf1\xc4\xe1\x11\x9e\xf5\x8d\x29\x8b"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\x6d\xac\xff\xa1\x83\xe5\x30\x30\x83\xa3\x34\xf7\x65\xde\x72\x4e\xc5\xec\x94\x02\x02\x6d\x47\x97\x88\x4a\x98\x28\xa0\xd3\x21\xa8\xcf\xac\x74\xab\x73\x7f\xe2\x0a\x7d\x6b\xef\xcf\xc7\x3b\x6a\x35\xc1\xc7\xb0\x1d\x37\x3e\x31\xab\xc1\x92\xd4\x8a\x42\x41\xa3\x58\x03"[..], &b"\x01\x1e\x53\x27\xca\xc2\x2d\x30\x5e\x71\x56\xe5\x59\x17\x6e\x19\xbe\xe7\xe4\xf2\xf5\x9e\x86\xf1\xa9\xd0\xb6\x60\x3b\x6a\x7d\xf1\x06\x9b\xde\x63\x87\xfe\xb7\x15\x87\xb8\xff\xce\x5b\x26\x6e\x1b\xae\x86\xde\x29\x37\x8a\x34\xe5\xc7\x4b\x67\x24\xc4\xd4\x0a\x71\x99\x23"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf2\x66\x1a\xc7\x62\xf6\x0c\x5f\xff\x23\xbe\x5d\x96\x9c\xcd\x4e\xc6\xf9\x8e\x4e\x72\x61\x8d\x12\xbd\xcd\xb9\xb4\x10\x21\x62\x33\x37\x88\xc0\xba\xe5\x9f\x91\xcd\xfc\x17\x2c\x7a\x16\x81\xee\x44\xd9\x6a\xb2\x13\x5a\x6e\x5f\x34\x15\xeb\xbc\xd5\x51\x65\xb1\xaf\xb0"[..]).unwrap(); let iut_pub = Point::new::(&b"\xa8\xe2\x5a\x69\x02\xd6\x87\xb4\x78\x7c\xdc\x94\xc3\x64\xac\x7c\xec\xc5\xc4\x95\x48\x3e\xd3\x63\xdc\x0a\xa9\x5e\xe2\xbd\x73\x9c\x4c\x4d\x46\xb1\x70\x06\xc7\x28\xb0\x76\x35\x0d\x7d\x7e\x54\xc6\x82\x2f\x52\xf4\x71\x62\xa2\x51\x09\xaa\xab\xa6\x90\xca\xb6\x96\xec"[..], &b"\x01\x68\xd2\xf0\x8f\xe1\x9e\x4d\xc9\xee\x7a\x19\x5b\x03\xc9\xf7\xfe\x66\x76\xf9\xf5\x20\xb6\x27\x05\x57\x50\x4e\x72\xca\x43\x94\xa2\xc6\x91\x86\x25\xe1\x5a\xc0\xc5\x1b\x8f\x95\xcd\x56\x01\x23\x65\x3f\xb8\xe8\xee\x6d\xb9\x61\xe2\xc4\xc6\x2c\xc5\x4e\x92\xe2\xa2\xa9"[..]).unwrap(); let z = &b"\x01\x4d\x60\x82\xa3\xb5\xce\xd1\xab\x8c\xa2\x65\xa8\x10\x6f\x30\x21\x46\xc4\xac\xb8\xc3\x0b\xb1\x4a\x4c\x99\x1e\x3c\x82\xa9\x73\x12\x88\xbd\xb9\x1e\x0e\x85\xbd\xa3\x13\x91\x2d\x06\x38\x4f\xc4\x4f\x21\x53\xfb\x13\x50\x6f\xa9\xcf\x43\xc9\xaa\xb5\x75\x09\x88\xc9\x43"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\xa0\x91\x42\x1d\x37\x03\xe3\xb3\x41\xe9\xf1\xe7\xd5\x8f\x8c\xf7\xbd\xbd\x17\x98\xd0\x01\x96\x7b\x80\x1d\x1c\xec\x27\xe6\x05\xc5\x80\xb2\x38\x7c\x1c\xb4\x64\xf5\x5c\xe7\xac\x80\x33\x41\x02\xab\x03\xcf\xb8\x6d\x88\xaf\x76\xc9\xf4\x12\x9c\x01\xbe\xdd\x3b\xbf\xc4"[..], &b"\x8c\x9c\x57\x7a\x8e\x6f\xc4\x46\x81\x5e\x9d\x40\xba\xa6\x60\x25\xf1\x5d\xae\x28\x5f\x19\xeb\x66\x8e\xe6\x0a\xe9\xc9\x8e\x7e\xcd\xbf\x2b\x2a\x68\xe2\x29\x28\x05\x9f\x67\xdb\x18\x80\x07\x16\x1d\x3e\xcf\x39\x7e\x08\x83\xf0\xc4\xeb\x7e\xaf\x78\x27\xa6\x22\x05\xcc"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xf4\x30\xca\x12\x61\xf0\x96\x81\xa9\x28\x2e\x9e\x97\x0a\x92\x34\x22\x7b\x1d\x5e\x58\xd5\x58\xc3\xcc\x6e\xff\x44\xd1\xbd\xf5\x3d\xe1\x6a\xd5\xee\x2b\x18\xb9\x2d\x62\xfc\x79\x58\x61\x16\xb0\xef\xc1\x5f\x79\x34\x0f\xb7\xea\xf5\xce\x6c\x44\x34\x1d\xcf\x8d\xde\x27"[..]).unwrap(); let iut_pub = Point::new::(&b"\x6c\x1d\x9b\x5e\xca\x87\xde\x1f\xb8\x71\xa0\xa3\x2f\x80\x7c\x72\x5a\xdc\xcd\xe9\xb3\x96\x74\x53\xa7\x13\x47\xd6\x08\xf0\xc0\x30\xcd\x09\xe3\x38\xcd\xec\xbf\x4a\x02\x01\x5b\xc8\xa6\xe8\xd3\xe2\x59\x5f\xe7\x73\xff\xc2\xfc\x4e\x4a\x55\xd0\xb1\xa2\xcc\x00\x32\x3b"[..], &b"\x01\x14\x1b\x21\x09\xe7\xf4\x98\x1c\x95\x2a\xa8\x18\xa2\xb9\xf6\xf5\xc4\x1f\xec\xcd\xb7\xa7\xa4\x5b\x9b\x4b\x67\x29\x37\x77\x1b\x00\x8c\xae\x5f\x93\x4d\xfe\x3f\xed\x10\xd3\x83\xab\x1f\x38\x76\x9c\x92\xce\x88\xd9\xbe\x54\x14\x81\x7e\xcb\x07\x3a\x31\xab\x36\x8c\xcb"[..]).unwrap(); let z = &b"\x20\xc0\x07\x47\xcb\x8d\x49\x2f\xd4\x97\xe0\xfe\xc5\x46\x44\xbf\x02\x7d\x41\x8a\xb6\x86\x38\x1f\x10\x97\x12\xa9\x9c\xab\xe3\x28\xb9\x74\x3d\x22\x25\x83\x6f\x9a\xd6\x6e\x5d\x7f\xed\x1d\xe2\x47\xe0\xda\x92\xf6\x0d\x5b\x31\xf9\xe4\x76\x72\xe5\x7f\x71\x05\x98\xf4"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x4f\x38\x81\x66\x81\x77\x12\x89\xce\x0c\xb8\x3a\x5e\x29\xa1\xab\x06\xfc\x91\xf7\x86\x99\x4b\x23\x70\x8f\xf0\x8a\x08\xa0\xf6\x75\xb8\x09\xae\x99\xe9\xf9\x96\x7e\xb1\xa4\x9f\x19\x60\x57\xd6\x9e\x50\xd6\xde\xdb\x4d\xd2\xd9\xa8\x1c\x02\xbd\xcc\x8f\x7f\x51\x84\x60"[..], &b"\x9e\xfb\x24\x4c\x8b\x91\x08\x7d\xe1\xee\xd7\x66\x50\x0f\x0e\x81\x53\x07\x52\xd4\x69\x25\x6e\xf7\x9f\x6b\x96\x5d\x8a\x22\x32\xa0\xc2\xdb\xc4\xe8\xe1\xd0\x92\x14\xba\xb3\x84\x85\xbe\x6e\x35\x7c\x42\x00\xd0\x73\xb5\x2f\x04\xe4\xa1\x6f\xc6\xf5\x24\x71\x87\xae\xcb"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\x5d\xc3\x3a\xed\xa0\x3c\x2e\xb2\x33\x01\x4e\xe4\x68\xdf\xf7\x53\xb7\x2f\x73\xb0\x09\x91\x04\x3e\xa3\x53\x82\x8a\xe6\x9d\x4c\xd0\xfa\xde\xda\x7b\xb2\x78\xb5\x35\xd7\xc5\x74\x06\xff\x2e\x6e\x47\x3a\x5a\x4f\xf9\x8e\x90\xf9\x0d\x6d\xad\xd2\x51\x00\xe8\xd8\x56\x66"[..]).unwrap(); let iut_pub = Point::new::(&b"\xc8\x25\xba\x30\x73\x73\xce\xc8\xdd\x24\x98\xee\xf8\x2e\x21\xfd\x98\x62\x16\x8d\xbf\xeb\x83\x59\x39\x80\xca\x9f\x82\x87\x53\x33\x89\x9f\xe9\x4f\x13\x7d\xaf\x1c\x41\x89\xeb\x50\x29\x37\xc3\xa3\x67\xea\x79\x51\xed\x8b\x0f\x33\x77\xfc\xdf\x29\x22\x02\x1d\x46\xa5"[..], &b"\x01\x6b\x8a\x25\x40\xd5\xe6\x54\x93\x88\x8b\xc3\x37\x24\x9e\x67\xc0\xa6\x87\x74\xf3\xe8\xd8\x1e\x3b\x45\x74\xa0\x12\x51\x65\xf0\xbd\x58\xb8\xaf\x9d\xe7\x4b\x35\x83\x25\x39\xf9\x5c\x3c\xd9\xf1\xb7\x59\x40\x85\x60\xaa\x68\x51\xae\x3a\xc7\x55\x53\x47\xb0\xd3\xb1\x3b"[..]).unwrap(); let z = &b"\xc2\xbf\xaf\xcd\x7f\xbd\x3e\x2f\xd1\xc7\x50\xfd\xea\x61\xe7\x0b\xd4\x78\x7a\x7e\x68\x46\x8c\x57\x4e\xe9\x9e\xbc\x47\xee\xde\xf0\x64\xe8\x94\x4a\x73\xbc\xb7\x91\x3d\xba\xb5\xd9\x3d\xca\x66\x0d\x21\x6c\x55\x36\x22\x36\x27\x94\xf7\xa2\xac\xc7\x10\x22\xbd\xb1\x6f"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } { let cav_pub = Point::new::(&b"\x01\xa3\x20\x99\xb0\x2c\x0b\xd8\x53\x71\xf6\x0b\x0d\xd2\x08\x90\xe6\xc7\xaf\x04\x8c\x81\x79\x89\x0f\xda\x30\x8b\x35\x9d\xbb\xc2\xb7\xa8\x32\xbb\x8c\x65\x26\xc4\xaf\x99\xa7\xea\x3f\x0b\x3c\xb9\x6a\xe1\xeb\x76\x84\x13\x27\x95\xc4\x78\xad\x6f\x96\x2e\x4a\x6f\x44\x6d"[..], &b"\x01\x76\x27\x35\x7b\x39\xe9\xd7\x63\x2a\x13\x70\xb3\xe9\x3c\x1a\xfb\x5c\x85\x1b\x91\x0e\xb4\xea\xd0\xc9\xd3\x87\xdf\x67\xcd\xe8\x50\x03\xe0\xe4\x27\x55\x2f\x1c\xd0\x90\x59\xaa\xd0\x26\x2e\x23\x5c\xce\x5f\xba\x8c\xed\xc4\xfd\xc1\x46\x3d\xa7\x6d\xcd\x4b\x6d\x1a\x46"[..]).unwrap(); let iut_priv = Scalar::new::(&b"\xdf\x14\xb1\xf1\x43\x2a\x7b\x0f\xb0\x53\x96\x5f\xd8\x64\x3a\xfe\xe2\x6b\x24\x51\xec\xb6\xa8\xa5\x3a\x65\x5d\x5f\xbe\x16\xe4\xc6\x4c\xe8\x64\x72\x25\xeb\x11\xe7\xfd\xcb\x23\x62\x74\x71\xdf\xfc\x5c\x25\x23\xbd\x2a\xe8\x99\x57\xcb\xa3\xa5\x7a\x23\x93\x3e\x5a\x78"[..]).unwrap(); let iut_pub = Point::new::(&b"\x4e\x85\x83\xbb\xbb\x2e\xcd\x93\xf0\x71\x4c\x33\x2d\xff\x5a\xb3\xbc\x63\x96\xe6\x2f\x3c\x56\x02\x29\x66\x43\x29\xba\xa5\x13\x8c\x3b\xb1\xc3\x64\x28\xab\xd4\xe2\x3d\x17\xfc\xb7\xa2\xcf\xcc\x22\x4b\x2e\x73\x4c\x89\x41\xf6\xf1\x21\x72\x2d\x7b\x6b\x94\x15\x45\x76"[..], &b"\x01\xcf\x08\x74\xf2\x04\xb0\x36\x3f\x02\x08\x64\x67\x2f\xad\xbf\x87\xc8\x81\x1e\xb1\x47\x75\x8b\x25\x4b\x74\xb1\x4f\xae\x74\x21\x59\xf0\xf6\x71\xa0\x18\x21\x2b\xbf\x25\xb8\x51\x9e\x12\x6d\x4c\xad\x77\x8c\xff\xf5\x0d\x28\x8f\xd3\x9c\xeb\x0c\xac\x63\x5b\x17\x5e\xc0"[..]).unwrap(); let z = &b"\x01\xaa\xf2\x4e\x5d\x47\xe4\x08\x0c\x18\xc5\x5e\xa3\x55\x81\xcd\x8d\xa3\x0f\x1a\x07\x95\x65\x04\x5d\x20\x08\xd5\x1b\x12\xd0\xab\xb4\x41\x1c\xda\x7a\x07\x85\xb1\x5d\x14\x9e\xd3\x01\xa3\x69\x70\x62\xf4\x2d\xa2\x37\xaa\x7f\x07\xe0\xaf\x3f\xd0\x0e\xb1\x80\x0d\x9c\x41"[..]; let got_pub = point_mul_g(&iut_priv); assert_eq!(got_pub.as_bytes(), iut_pub.as_bytes()); let got_z = point_mul(&iut_priv, &cav_pub).unwrap(); assert_eq!(&got_z.as_bytes().0[..], z); } } } nettle-7.1.0/src/ecdsa/keys.rs000064400000000000000000000030120072674642500143370ustar 00000000000000use nettle_sys::{ nettle_ecc_point_init, nettle_ecc_scalar_init, nettle_ecdsa_generate_keypair, }; use std::mem::zeroed; use crate::{ random::Random, Result, ecc::{Curve, Point, Scalar}, }; /// Generates a new ECDSA key pair for siging. pub fn generate_keypair( random: &mut R, ) -> Result<(Point, Scalar)> { unsafe { let mut point = zeroed(); let mut scalar = zeroed(); nettle_ecc_point_init(&mut point, C::get_curve()); nettle_ecc_scalar_init(&mut scalar, C::get_curve()); nettle_ecdsa_generate_keypair( &mut point, &mut scalar, random.context(), Some(R::random_impl), ); let point = Point { point: point }; let scalar = Scalar { scalar: scalar }; Ok((point, scalar)) } } #[cfg(test)] mod tests { use super::*; use crate::ecdsa::{sign, verify}; use crate::{ecc::Secp192r1, random::Yarrow}; #[test] fn gen_keys() { let mut rand = Yarrow::default(); for _ in 0..3 { let _ = generate_keypair::(&mut rand).unwrap(); } } #[test] fn clone() { let mut rand = Yarrow::default(); let (public, private) = generate_keypair::(&mut rand).unwrap(); let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(&private, &msg, &mut rand); let sig = sig.clone(); assert!(verify(&public, &msg, &sig)); } } nettle-7.1.0/src/ecdsa/mod.rs000064400000000000000000000002360072674642500141500ustar 00000000000000//! Elliptic curve variant of the Digital Signature Standard. mod keys; pub use self::keys::generate_keypair; mod sign; pub use self::sign::{sign, verify}; nettle-7.1.0/src/ecdsa/sign.rs000064400000000000000000000567140072674642500143450ustar 00000000000000use nettle_sys::{nettle_ecdsa_sign, nettle_ecdsa_verify}; use std::mem::zeroed; use crate::{ dsa, random::Random, ecc::{Point, Scalar}, }; /// Signs `digest` using the key `private`. /// /// Returns the signature. pub fn sign( private: &Scalar, digest: &[u8], random: &mut R, ) -> dsa::Signature { unsafe { let mut ret = zeroed(); nettle_ecdsa_sign( &private.scalar, random.context(), Some(R::random_impl), digest.len(), digest.as_ptr(), &mut ret as *mut _, ); dsa::Signature { signature: ret } } } /// Verify `signature` of `digest` using the key `public`. /// /// Returns `true` if the signature is valid. pub fn verify( public: &Point, digest: &[u8], signature: &dsa::Signature, ) -> bool { unsafe { nettle_ecdsa_verify( &public.point, digest.len(), digest.as_ptr(), &signature.signature as *const _, ) == 1 } } #[cfg(test)] mod tests { use super::*; use crate::ecdsa::generate_keypair; use crate::{ecc::Secp192r1, random::Yarrow}; #[test] fn sign_verify() { let mut rand = Yarrow::default(); let (public, private) = generate_keypair::(&mut rand).unwrap(); for _ in 0..3 { let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(&private, &msg, &mut rand); assert!(verify(&public, &msg, &sig)); } for _ in 0..3 { let mut msg = [0u8; 160]; rand.random(&mut msg); let sig = sign(&private, &msg, &mut rand); rand.random(&mut msg); assert!(!verify(&public, &msg, &sig)); } } #[test] fn fips_186_4() { use crate::hash::*; use crate::ecc::*; fn test(msg: &[u8], x: &[u8], y: &[u8], r: &[u8], s: &[u8]) where C: Curve, H: Default + Hash, { use crate::dsa::Signature; use crate::ecc::Point; let mut h = H::default(); h.update(msg); let mut d = vec![0; h.digest_size()]; h.digest(&mut d); let key = Point::new::(x, y).unwrap(); let sig = Signature::new(r, s); assert!(verify(&key, &d, &sig)); // Sanity check: Change the digest and retry. d[0] ^= 1; assert!(! verify(&key, &d, &sig)); } test::( b"\xe5\xc9\x79\xf0\x83\x22\x42\xb1\x43\x07\x7b\xce\x6e\xf1\x46\xa5\x3b\xb4\xc5\x3a\xbf\xc0\x33\x47\x3c\x59\xf3\xc4\x09\x5a\x68\xb7\xa5\x04\xb6\x09\xf2\xab\x16\x3b\x5f\x88\xf3\x74\xf0\xf3\xbf\xf8\x76\x22\x78\xb1\xf1\xc3\x73\x23\xb9\xed\x44\x8e\x3d\xe3\x3e\x64\x43\x79\x6a\x9e\xca\xa4\x66\xaa\x75\x17\x53\x75\x41\x81\x86\xc3\x52\x01\x8a\x57\xce\x87\x4e\x44\xae\x72\x40\x1d\x5c\x0f\x40\x1b\x5a\x51\x80\x47\x24\xc1\x06\x53\xfd\xed\x90\x66\xe8\x99\x4d\x36\xa1\x37\xfd\xeb\x93\x64\x60\x1d\xae\xef\x09\xfd\x17\x4d\xde\x4a", b"\x6d\xd8\x4f\x4d\x66\xf3\x62\x84\x4e\x41\xa7\x91\x3c\x40\xb4\xaa\xd5\xfa\x9b\xa5\x6b\xb4\x4c\x2d\x2e\xd9\xef\xac", b"\x15\xf6\x5e\xbc\xdf\x2f\xd9\xf8\x03\x53\x85\xa3\x30\xbd\xab\xec\x0f\x1c\xd9\xcc\x7b\xc3\x1d\x2f\xad\xbe\x7c\xda", b"\x12\x70\x51\xd8\x53\x26\x04\x91\x15\xf3\x07\xaf\x2b\xc4\x26\xf6\xc2\xd0\x8f\x47\x74\xa0\xb4\x96\xfb\x69\x82\xb1", b"\x68\x57\xe8\x44\x18\xc1\xd1\x17\x93\x33\xb4\xe5\x30\x7e\x92\xab\xad\xe0\xb7\x4f\x75\x21\xad\x78\x04\x4b\xf5\x97", ); test::( b"\x5d\x8e\xbd\xf9\xeb\x28\xb4\x7b\xda\xfa\xa3\x6b\xf0\xb6\x6a\x9e\xaf\x99\xb6\xc8\x39\x59\xda\x4f\x2b\x11\x51\xb4\xf4\xec\xd2\x8f\xb1\x15\xa6\x4c\x0c\xb9\x49\x10\x93\xa7\xe9\xb9\xc5\x3e\xc4\x23\xe4\xc7\x2e\x77\x65\xbb\x9c\x81\x8d\xa0\xe8\xc4\x28\x66\x7e\x44\x47\x4a\x71\xdb\x48\x67\x13\x0c\x77\xc4\x0b\xfd\x85\x44\xb2\xd7\xb9\xd6\x46\x4d\x2b\x8e\x6a\x48\x48\x21\x53\x25\x6a\x32\x43\x7c\x3a\x74\x72\x31\xf5\x11\x34\xdd\x14\xc7\x03\x40\x7e\x31\x14\x6a\x6f\xcd\xe2\x3b\xed\xed\xcf\x16\x95\x04\x86\xe9\x0c\xa6\x9a\xc0", b"\x0d\xc2\xcd\xdd\xb9\x90\x34\x1a\xdb\x1d\xe7\x3f\x02\xd8\x7f\xc3\x82\x24\x85\xa6\x59\xa1\x51\x45\xf4\x25\x1d\x5f", b"\xcf\x78\xb2\xa8\x3c\x73\x52\xed\xa1\xaf\x2c\x74\xe1\x80\x4e\xa0\x4b\x35\xf7\x6c\x04\xe8\x9d\x90\x28\x1d\xc2\xbb", b"\x82\x98\x2b\x38\xed\x46\x51\x38\xdf\x40\x18\xd7\xcf\xb8\x35\xed\xcb\x59\x1c\xb5\x74\x46\xca\x49\xd1\x63\x78\x2b", b"\x8e\xf1\xd7\xb3\x26\xca\xbe\xe7\xf7\xab\x95\xb7\xb9\x8d\x3c\x27\xa0\x69\xc0\xfd\x95\xa1\x59\x9c\x0c\xcb\x42\x2b", ); test::( b"\xfc\xb2\x72\xc8\x28\xfe\x8f\xd3\xc6\xf8\xde\x94\x10\xc7\xb6\xe2\xb3\x67\x17\xc1\xb0\xe5\xe3\x59\xe9\x10\x9b\xd7\xfc\x37\x89\x78\xaa\x98\x18\x2a\x9d\x99\x96\x18\x98\xed\x88\x99\x9b\x05\x0d\x3b\x64\xd1\x45\x7d\x7a\x89\x9d\x6d\x27\x3b\x9f\x4d\xde\x2a\xaf\xa3\x6d\x76\x32\x9d\x62\x50\x90\x43\xc3\x38\xf2\x65\xfc\x4c\x7d\x93\x84\x59\xb7\xfa\x3b\x23\x0a\x9f\x6c\xb6\x32\xb6\x14\x89\x54\x6b\xb4\x18\x1a\x5a\xd7\xf0\xd7\x36\x9b\x8c\xac\xed\x48\xeb\x37\x4b\x07\x5b\x2b\x32\x5b\xc8\x6a\xdd\x0f\x3b\x68\x0c\xd9\xe8\x0a\xcd", b"\x38\x58\xa5\x76\xee\xf2\xce\x24\xd0\x17\x66\x99\x7f\xb8\x1b\x3f\x3f\x78\xb6\x10\x4c\xd1\x88\x61\x0b\xe2\x21\xd7", b"\x95\xff\xc6\x77\xac\x7b\xfe\x3e\x0b\xb4\xcf\xfb\x17\x35\x5a\x96\x4c\x83\x56\xa8\x07\x15\x1b\x3c\xba\x5d\x1f\x4e", b"\x18\xc9\x08\x54\x18\x43\xfc\xda\xc9\x9b\x9f\xf6\xbb\x39\x7f\x3f\x80\x94\xd1\x6b\x42\x67\x02\x16\xe4\xea\xa2\xd7", b"\xc1\x07\xa8\xa5\x08\xff\x57\xc5\xd4\xf7\x8f\x86\xcc\x37\xe1\x29\xc8\x64\xd1\xc4\x4e\xd5\xe7\x39\x09\x61\x3b\x74", ); test::( b"\xe6\xcd\xee\x85\x58\xbc\x1e\xac\xc2\x4e\x82\xf0\x62\x4c\xe8\xd0\x2c\xc8\xd9\x25\xb4\xdd\x3d\xec\x3a\x72\xf4\xa4\xe0\xfb\x76\x07\x6b\xfa\x3e\xf2\xe2\xc3\x3b\xdd\x7c\x27\xb3\x22\xbd\xc0\x9b\xbf\xee\x8f\xe4\x6f\x75\xdb\xd7\xbb\xd2\xaf\x09\x69\x0b\x71\x37\x94\x3e\xfe\x21\x70\x6e\x0a\x1b\x6d\x30\x89\x54\x0f\xc5\x8d\x85\xdd\xb5\x5e\xa8\x36\x61\x6d\xb5\x73\xe3\x6c\x52\x1b\xe0\x08\x89\x3f\x40\xa0\xa7\xc3\x49\x60\x2c\xc1\x78\xea\x43\xbe\x59\xd3\x1e\xc6\x44\x9e\x7f\xf2\xc5\x37\x93\x79\xf7\xd7\x64\x51\x34\xdf\x1b\xc3", b"\x67\x73\xa0\x43\x6a\x9c\x42\x63\x57\x30\x41\x3b\x19\xaa\x41\x66\xf0\x8c\x69\xc0\xe5\x00\x29\x53\xda\x42\x25\x3b", b"\x55\x51\x38\x29\x0b\x09\x3b\xf2\xfe\x79\xac\xda\x91\x31\xd9\x20\xcd\x1e\x7a\xc4\x3f\xb8\x77\x57\x76\xcd\x71\x3c", b"\x8e\x92\xcf\x7a\x67\x4a\xa5\xf7\x54\x2d\xd9\x5c\x69\x55\x89\xa0\x57\x47\x43\x16\x92\xed\xd0\x48\x04\x29\x9b\x8f", b"\xaf\x49\x08\xb4\x1f\x81\x80\xb7\x1a\x6f\xf1\x0f\xd5\x1f\x3d\x14\x31\x47\xaf\x6d\xdd\xdf\x75\x34\xd3\x28\x4e\xd9", ); test::( b"\xfc\x3b\x82\x91\xc1\x72\xda\xe6\x35\xa6\x85\x9f\x52\x5b\xea\xf0\x1c\xf6\x83\x76\x5d\x7c\x86\xf1\xa4\xd7\x68\xdf\x7c\xae\x05\x5f\x63\x9e\xcc\xc0\x8d\x7a\x02\x72\x39\x4d\x94\x9f\x82\xd5\xe1\x2d\x69\xc0\x8e\x24\x83\xe1\x1a\x1d\x28\xa4\xc6\x1f\x18\x19\x31\x06\xe1\x2e\x5d\xe4\xa9\xd0\xb4\xbf\x34\x1e\x2a\xcd\x6b\x71\x5d\xc8\x3a\xe5\xff\x63\x32\x8f\x83\x46\xf3\x55\x21\xca\x37\x8b\x31\x12\x99\x94\x7f\x63\xec\x59\x3a\x5e\x32\xe6\xbd\x11\xec\x4e\xdb\x0e\x75\x30\x2a\x9f\x54\xd2\x12\x26\xd2\x33\x14\x72\x9e\x06\x10\x16", b"\xf0\x4e\x9f\x28\x31\xd9\x69\x7a\xe1\x46\xc7\xd4\x55\x2e\x5f\x91\x08\x5c\xc4\x67\x78\x40\x0b\x75\xb7\x6f\x00\x20\x52\x52\x94\x1d", b"\xbd\x26\x71\x48\x17\x4c\xd0\xc2\xb0\x19\xcd\x0a\x52\x56\xe2\xf3\xf8\x89\xd1\xe5\x97\x16\x03\x72\xb5\xa1\x33\x9c\x8d\x78\x7f\x10", b"\x5d\x95\xc3\x85\xee\xba\x0f\x15\xdb\x0b\x80\xae\x15\x19\x12\x40\x91\x28\xc9\xc8\x0e\x55\x42\x46\x06\x7b\x8f\x6a\x36\xd8\x5e\xa5", b"\xdb\x5d\x8a\x1e\x34\x5f\x88\x3e\x4f\xcb\x38\x71\x27\x6f\x17\x0b\x78\x3c\x1a\x1e\x9d\xa6\xb6\x61\x59\x13\x36\x8a\x85\x26\xf1\xc3", ); test::( b"\x21\x18\x8c\x3e\xdd\x5d\xe0\x88\xda\xcc\x10\x76\xb9\xe1\xbc\xec\xd7\x9d\xe1\x00\x3c\x24\x14\xc3\x86\x61\x73\x05\x4d\xc8\x2d\xde\x85\x16\x9b\xaa\x77\x99\x3a\xdb\x20\xc2\x69\xf6\x0a\x52\x26\x11\x18\x28\x57\x8b\xcc\x7c\x29\xe6\xe8\xd2\xda\xe8\x18\x06\x15\x2c\x8b\xa0\xc6\xad\xa1\x98\x6a\x19\x83\xeb\xee\xc1\x47\x3a\x73\xa0\x47\x95\xb6\x31\x9d\x48\x66\x2d\x40\x88\x1c\x17\x23\xa7\x06\xf5\x16\xfe\x75\x30\x0f\x92\x40\x8a\xa1\xdc\x6a\xe4\x28\x8d\x20\x46\xf2\x3c\x1a\xa2\xe5\x4b\x7f\xb6\x44\x8a\x0d\xa9\x22\xbd\x7f\x34", b"\x10\x5d\x22\xd9\xc6\x26\x52\x0f\xac\xa1\x3e\x7c\xed\x38\x2d\xcb\xe9\x34\x98\x31\x5f\x00\xcc\x0a\xc3\x9c\x48\x21\xd0\xd7\x37\x37", b"\x6c\x47\xf3\xcb\xbf\xa9\x7d\xfc\xeb\xe1\x62\x70\xb8\xc7\xd5\xd3\xa5\x90\x0b\x88\x8c\x42\x52\x0d\x75\x1e\x8f\xaf\x3b\x40\x1e\xf4", b"\x54\x2c\x40\xa1\x81\x40\xa6\x26\x6d\x6f\x02\x86\xe2\x4e\x9a\x7b\xad\x76\x50\xe7\x2e\xf0\xe2\x13\x1e\x62\x9c\x07\x6d\x96\x26\x63", b"\x4f\x7f\x65\x30\x5e\x24\xa6\xbb\xb5\xcf\xf7\x14\xba\x8f\x5a\x2c\xee\x5b\xdc\x89\xba\x8d\x75\xdc\xbf\x21\x96\x6c\xe3\x8e\xb6\x6f", ); test::( b"\x78\x43\xf1\x57\xef\x85\x66\x72\x2a\x7d\x69\xda\x67\xde\x75\x99\xee\x65\xcb\x39\x75\x50\x8f\x70\xc6\x12\xb3\x28\x91\x90\xe3\x64\x14\x17\x81\xe0\xb8\x32\xf2\xd9\x62\x71\x22\x74\x2f\x4b\x58\x71\xce\xea\xfc\xd0\x9b\xa5\xec\x90\xca\xe6\xbc\xc0\x1a\xe3\x2b\x50\xf1\x3f\x63\x91\x8d\xfb\x51\x77\xdf\x97\x97\xc6\x27\x3b\x92\xd1\x03\xc3\xf7\xa3\xfc\x20\x50\xd2\xb1\x96\xcc\x87\x2c\x57\xb7\x7f\x9b\xdb\x17\x82\xd4\x19\x54\x45\xfc\xc6\x23\x6d\xd8\xbd\x14\xc8\xbc\xbc\x82\x23\xa6\x73\x9f\x6a\x17\xc9\xa8\x61\xe8\xc8\x21\xa6", b"\x76\x0b\x56\x24\xbd\x64\xd1\x9c\x86\x6e\x54\xcc\xd7\x4a\xd7\xf9\x88\x51\xaf\xdb\xc3\xdd\xea\xe3\xec\x2c\x52\xa1\x35\xbe\x9c\xfa", b"\xfe\xca\x15\xce\x93\x50\x87\x71\x02\xee\xe0\xf5\xaf\x18\xb2\xfe\xd8\x9d\xc8\x6b\x7d\xf0\xbf\x7b\xc2\x96\x3c\x16\x38\xe3\x6f\xe8", b"\xbd\xff\x14\xe4\x60\x03\x09\xc2\xc7\x7f\x79\xa2\x59\x63\xa9\x55\xb5\xb5\x00\xa7\xb2\xd3\x4c\xb1\x72\xcd\x6a\xcd\x52\x90\x5c\x7b", b"\xb0\x47\x9c\xdb\x3d\xf7\x99\x23\xec\x36\xa1\x04\xa1\x29\x53\x4c\x5d\x59\xf6\x22\xbe\x7d\x61\x3a\xa0\x45\x30\xad\x25\x07\xd3\xa2", ); test::( b"\xea\x95\x85\x9c\xc1\x3c\xcc\xb3\x71\x98\xd9\x19\x80\x3b\xe8\x9c\x2e\xe1\x0b\xef\xdc\xaf\x5d\x5a\xfa\x09\xdc\xc5\x29\xd3\x33\xae\x1e\x4f\xfd\x3b\xd8\xba\x86\x42\x20\x3b\xad\xd7\xa8\x0a\x3f\x77\xee\xee\x94\x02\xee\xd3\x65\xd5\x3f\x05\xc1\xa9\x95\xc5\x36\xf8\x23\x6b\xa6\xb6\xff\x88\x97\x39\x35\x06\x66\x0c\xc8\xea\x82\xb2\x16\x3a\xa6\xa1\x85\x52\x51\xc8\x7d\x93\x5e\x23\x85\x7f\xe3\x5b\x88\x94\x27\xb4\x49\xde\x72\x74\xd7\x75\x4b\xde\xac\xe9\x60\xb4\x30\x3c\x5d\xd5\xf7\x45\xa5\xcf\xd5\x80\x29\x3d\x65\x48\xc8\x32", b"\xc6\x2c\xc4\xa3\x9a\xce\x01\x00\x6a\xd4\x8c\xf4\x9a\x3e\x71\x46\x69\x55\xbb\xee\xca\x5d\x31\x8d\x67\x26\x95\xdf\x92\x6b\x3a\xa4", b"\xc8\x5c\xcf\x51\x7b\xf2\xeb\xd9\xad\x6a\x9e\x99\x25\x4d\xef\x0d\x74\xd1\xd2\xfd\x61\x1e\x32\x8b\x4a\x39\x88\xd4\xf0\x45\xfe\x6f", b"\x6e\x7f\xf8\xec\x7a\x5c\x48\xe0\x87\x72\x24\xa9\xfa\x84\x81\x28\x3d\xe4\x5f\xcb\xee\x23\xb4\xc2\x52\xb0\xc6\x22\x44\x2c\x26\xad", b"\x3d\xfa\xc3\x20\xb9\xc8\x73\x31\x81\x17\xda\x6b\xd8\x56\x00\x0a\x39\x2b\x81\x56\x59\xe5\xaa\x2a\x6a\x18\x52\xcc\xb2\x50\x1d\xf3", ); test::( b"\x94\xf8\xbf\xbb\x9d\xd6\xc9\xb6\x19\x3e\x84\xc2\x02\x3a\x27\xde\xa0\x0f\xd4\x83\x56\x90\x9f\xae\xc2\x16\x19\x72\x43\x96\x86\xc1\x46\x18\x4f\x80\x68\x6b\xc0\x9e\x1a\x69\x8a\xf7\xdf\x9d\xea\x3d\x24\xd9\xe9\xfd\x6d\x73\x48\xa1\x46\x33\x9c\x83\x92\x82\xcf\x89\x84\x34\x5d\xc6\xa5\x10\x96\xd7\x4a\xd2\x38\xc3\x52\x33\x01\x2a\xd7\x29\xf2\x62\x48\x1e\xc7\xcd\x64\x88\xf1\x3a\x6e\xba\xc3\xf3\xd2\x34\x38\xc7\xcc\xb5\xa6\x6e\x2b\xf8\x20\xe9\x2b\x71\xc7\x30\xbb\x12\xfd\x64\xea\x17\x70\xd1\xf8\x92\xe5\xb1\xe1\x4a\x9e\x5c", b"\x3a\x65\xb2\x6c\x08\x10\x2b\x44\x83\x8f\x8c\x23\x27\xea\x08\x0d\xaf\x1e\x4f\xc4\x5b\xb2\x79\xce\x03\xaf\x13\xa2\xf9\x57\x5f\x0f\xff\x9e\x2e\x44\x23\xa5\x85\x94\xce\x95\xd1\xe7\x10\xb5\x90\xce", b"\xfe\x9d\xcb\xcb\x2e\xc6\xe8\xbd\x8e\xd3\xaf\x3f\xf0\xaa\x61\x9e\x90\x0c\xc8\xba\xb3\xf5\x0f\x6e\x5f\x79\xfa\xc0\x91\x64\xfb\x6a\x20\x77\xcc\x4f\x1f\xed\x3e\x9e\xc6\x89\x9e\x91\xdb\x32\x9b\xf3", b"\x67\x70\xee\xa9\x36\x9d\x67\x18\xe6\x0d\xd0\xb9\x1a\xee\x84\x5f\xf7\xed\x7e\x0f\xcc\x91\x67\x5f\x56\xd3\x2e\x52\x27\xfd\x3a\x46\x12\xbb\xcb\x15\x56\xfe\x94\xa9\x89\xb9\xe3\xbc\xc2\x5b\xb2\x0e", b"\xc4\x30\x72\xf7\x06\xc9\x81\x26\xd0\x6a\x82\xb0\x42\x51\xe3\xec\xb0\xba\x66\xc4\xbb\x6c\xd7\xc0\x25\x91\x9b\x9c\xc6\x01\x9c\xdc\x63\x52\x56\xd2\xa7\xfa\x01\x7b\x80\x6b\x1e\x88\x64\x9d\x2c\x0d", ); test::( b"\x64\xf9\xf0\x5c\x28\x05\xac\xf5\x9c\x04\x7b\x5f\x5d\x2e\x20\xc3\x92\x77\xb6\xd6\x38\x0f\x70\xf8\x7b\x72\x32\x7a\x76\x17\x0b\x87\x2b\xfe\x4b\x25\xc4\x51\x60\x2a\xcf\xb6\xa6\x31\xbb\x88\x5e\x26\x55\xae\xe8\xab\xe4\x4f\x69\xc9\x0f\xb2\x1f\xfd\xe0\x3c\xef\x2a\x45\x2c\x46\x8c\x63\x69\x86\x7d\xfd\x8a\xa2\x6a\xc2\x4e\x16\xaa\x53\xb2\x92\x37\x5a\x8d\x8f\xbf\x98\x8e\x30\x2b\xf0\x00\x88\xe4\xc0\x61\xaa\x12\xc4\x21\xd8\xfe\x3c\xbd\x72\x73\xb0\xe8\x99\x37\x01\xdf\x1c\x59\x43\x1f\x43\x6a\x08\xb8\xe1\x5b\xd1\x23\xd1\x33", b"\x16\x6e\x6d\x96\xcb\x60\xd9\x16\xfd\x19\x88\x8a\x2d\xd9\x45\xa3\x30\x6f\xf0\xd7\xb0\xa5\xe3\x07\x29\xf4\x7d\x3d\xac\x3d\xe2\xbe\x3f\xd5\xcd\x74\x37\xe9\xa8\x0d\x6c\x48\xcf\x96\x0d\x2d\x36\xf8", b"\xe6\xb2\xb7\x0f\x13\x10\x92\xae\x21\x0f\x29\xcc\x6b\xad\x70\x13\x18\xbd\xdb\x31\xbd\xdf\x92\x16\x95\x85\x5c\x62\x08\x94\x11\x00\xd0\xce\xe5\xd1\x07\x99\xf8\xb8\x35\xaf\xe3\xea\x51\x0e\x82\x29", b"\xd9\x12\x4c\x42\x85\x80\x80\xc6\x24\x00\xe4\xd4\xd8\x13\x63\x04\xe0\x3d\x91\x0c\xbe\x9b\x9b\x34\x87\xf4\xd2\x7c\x7e\x05\x40\xa3\x14\xd3\x4b\xef\x8c\x85\x00\x45\xc8\x74\x6c\xa6\x31\xc1\x1c\x42", b"\xbb\xf6\x42\x4a\x3b\x70\x16\x6f\xa7\x99\xf4\x9e\x91\x84\x39\xd5\x15\x32\x70\x39\x25\x8e\xf9\xbd\x88\x43\x5a\x59\xc9\xc1\x96\x59\xf8\xec\x3c\x86\x60\x72\x0b\x0c\x08\x35\x4f\xf6\x0e\x0f\x5a\x76", ); test::( b"\x0e\x64\x6c\x6c\x3c\xc0\xf9\xfd\xed\xef\x93\x4b\x71\x95\xfe\x38\x37\x83\x6a\x9f\x6f\x26\x39\x68\xaf\x95\xef\x84\xcd\x03\x57\x50\xf3\xcd\xb6\x49\xde\x74\x5c\x87\x4a\x6e\xf6\x6b\x3d\xd8\x3b\x66\x06\x8b\x43\x35\xbc\x0a\x97\x18\x41\x82\xe3\x96\x5c\x72\x2b\x3b\x1a\xee\x48\x8c\x36\x20\xad\xb8\x35\xa8\x14\x0e\x19\x9f\x4f\xc8\x3a\x88\xb0\x28\x81\x81\x6b\x36\x6a\x09\x31\x6e\x25\x68\x52\x17\xf9\x22\x11\x57\xfc\x05\xb2\xd8\xd2\xbc\x85\x53\x72\x18\x3d\xa7\xaf\x3f\x0a\x14\x14\x8a\x09\xde\xf3\x7a\x33\x2f\x8e\xb4\x0d\xc9", b"\xa3\x9a\xc3\x53\xca\x78\x79\x82\xc5\x77\xaf\xf1\xe8\x60\x1c\xe1\x92\xaa\x90\xfd\x0d\xe4\xc0\xed\x62\x7f\x66\xa8\xb6\xf0\x2a\xe5\x13\x15\x54\x3f\x72\xff\xc1\xc4\x8a\x72\x69\xb2\x5e\x7c\x28\x9a", b"\x90\x64\xa5\x07\xb6\x6b\x34\x0b\x6e\x0e\x0d\x5f\xfa\xa6\x7d\xd2\x0e\x6d\xaf\xc0\xea\x6a\x6f\xae\xe1\x63\x51\x77\xaf\x25\x6f\x91\x08\xa2\x2e\x9e\xdf\x73\x6a\xb4\xae\x8e\x96\xdc\x20\x7b\x1f\xa9", b"\xee\x82\xc0\xf9\x05\x01\x13\x6e\xb0\xdc\x0e\x45\x9a\xd1\x7b\xf3\xbe\x1b\x1c\x8b\x8d\x05\xc6\x00\x68\xa9\x30\x6a\x34\x63\x26\xff\x73\x44\x77\x6a\x95\xf1\xf7\xe2\xe2\xcf\x94\x77\x13\x0e\x73\x5c", b"\xaf\x10\xb9\x0f\x20\x3a\xf2\x3b\x75\x00\xe0\x70\x53\x6e\x64\x62\x9b\xa1\x92\x45\xd6\xef\x39\xaa\xb5\x7f\xcd\xb1\xb7\x3c\x4c\x6b\xf7\x07\x0c\x62\x63\x54\x46\x33\xd3\xd3\x58\xc1\x2a\x17\x81\x38", ); test::( b"\xdb\xd8\xdd\xc0\x27\x71\xa5\xff\x73\x59\xd5\x21\x65\x36\xb2\xe5\x24\xa2\xd0\xb6\xff\x18\x0f\xa2\x9a\x41\xa8\x84\x7b\x6f\x45\xf1\xb1\xd5\x23\x44\xd3\x2a\xea\x62\xa2\x3e\xa3\xd8\x58\x4d\xea\xae\xa3\x8e\xe9\x2d\x13\x14\xfd\xb4\xfb\xbe\xcd\xad\x27\xac\x81\x0f\x02\xde\x04\x52\x33\x29\x39\xf6\x44\xaa\x9f\xe5\x26\xd3\x13\xce\xa8\x1b\x9c\x3f\x6a\x8d\xbb\xea\xfc\x89\x9d\x0c\xda\xeb\x1d\xca\x05\x16\x0a\x8a\x03\x96\x62\xc4\xc8\x45\xa3\xdb\xb0\x7b\xe2\xbc\x8c\x91\x50\xe3\x44\x10\x3e\x40\x44\x11\x66\x8c\x48\xaa\x77\x92", b"\x54\xc7\x9d\xa7\xf8\xfa\xee\xee\x6f\x3a\x1f\xdc\x66\x4e\x40\x5d\x5c\x0f\xb3\xb9\x04\x71\x5f\x3a\x9d\x89\xd6\xfd\xa7\xea\xbe\x6c\xee\x86\xef\x82\xc1\x9f\xca\x0d\x1a\x29\xe0\x9c\x1a\xcf\xcf\x18", b"\x92\x6c\x17\xd6\x87\x78\xeb\x06\x6c\x20\x78\xcd\xb6\x88\xb1\x73\x99\xe5\x4b\xde\x5a\x79\xef\x18\x52\x35\x2a\x58\x96\x7d\xff\x02\xc1\x7a\x79\x2d\x39\xf9\x5c\x76\xd1\x46\xfd\xc0\x86\xfe\x26\xb0", b"\x9d\xbf\xa1\x47\x37\x57\x67\xdd\xe8\x1b\x01\x4f\x1e\x3b\xf5\x79\xc4\x4d\xd2\x24\x86\x99\x8a\x9b\x6f\x9e\x09\x20\xe5\x3f\xaa\x11\xee\xd2\x9a\x4e\x23\x56\xe3\x93\xaf\xd1\xf5\xc1\xb0\x60\xa9\x58", b"\xe4\xd3\x18\x39\x1f\x7c\xbf\xe7\x0d\xa7\x89\x08\xd4\x2d\xb8\x52\x25\xc8\x5f\x4f\x2f\xf4\x13\xec\xad\x50\xaa\xd5\x83\x3a\xbe\x91\xbd\xd5\xf6\xd6\x4b\x0c\xd2\x81\x39\x8e\xab\x19\x45\x20\x87\xdd", ); test::( b"\xc6\x43\x19\xc8\xaa\x1c\x1a\xe6\x76\x63\x00\x45\xae\x48\x8a\xed\xeb\xca\x19\xd7\x53\x70\x41\x82\xc4\xbf\x3b\x30\x6b\x75\xdb\x98\xe9\xbe\x43\x82\x34\x23\x3c\x2f\x14\xe3\xb9\x7c\x2f\x55\x23\x69\x50\x62\x98\x85\xac\x1e\x0b\xd0\x15\xdb\x0f\x91\x29\x13\xff\xb6\xf1\x36\x1c\x4c\xc2\x5c\x3c\xd4\x34\x58\x3b\x0f\x7a\x5a\x9e\x1a\x54\x9a\xa5\x23\x61\x42\x68\x03\x79\x73\xb6\x5e\xb5\x9c\x0c\x16\xa1\x9a\x49\xbf\xaa\x13\xd5\x07\xb2\x9d\x5c\x7a\x14\x6c\xd8\xda\x29\x17\x66\x51\x00\xac\x9d\xe2\xd7\x5f\xa4\x8c\xb7\x08\xac\x79", b"\x00\x01\x88\x36\x6b\x94\x19\xa9\x00\xab\x0e\xd9\x63\x34\x26\xd5\x1e\x25\xe8\xdc\x03\xf4\xf0\xe7\x54\x99\x04\x24\x39\x81\xec\x46\x9c\x8d\x6d\x93\x8f\x67\x14\xee\x62\x0e\x63\xbb\x0e\xc5\x36\x37\x6a\x73\xd2\x4d\x40\xe5\x8a\xd9\xeb\x44\xd1\xe6\x06\x3f\x2e\xb4\xc5\x1d", b"\x00\x98\x89\xb9\x20\x3d\x52\xb9\x24\x3f\xd5\x15\x29\x4a\x67\x4a\xfd\x6b\x81\xdf\x46\x37\xff\xdd\xdc\x43\xa7\x41\x47\x41\xed\xa7\x8d\x8a\xa8\x62\xc9\xcb\xbb\x61\x8a\xce\xc5\x5b\xb9\xa2\x9a\xac\x59\x61\x6f\xc8\x04\xa5\x2a\x97\xa9\xfc\x4d\x03\x25\x4f\x44\x69\xef\xfe", b"\x01\xd5\x94\x01\xb8\xac\x43\x88\x55\xd5\x45\xa6\x99\x99\x11\x42\x68\x50\x77\xa4\x09\xde\x24\x18\xc7\xcc\xfe\x01\xa4\x77\x1b\x38\x70\xe7\x62\x87\xa9\x65\x4c\x20\x9b\x58\xa1\x2b\x0f\x51\xe8\xdc\x56\x8e\x33\x14\x0a\x6b\x63\x03\x24\xf7\xef\x17\xca\xa6\x4b\xf4\xc1\x39", b"\x01\x43\xaf\x36\x0b\x79\x71\x09\x5b\x3b\x50\x67\x9a\x13\xcd\x49\x21\x71\x89\xea\xee\x47\x13\xf4\x20\x17\x20\x17\x52\x16\x57\x3c\x68\xf7\xac\x6f\x68\x8b\xfe\x6e\xb9\x40\xa2\xd9\x71\x80\x9b\xf3\x6c\x0a\x77\xde\xcc\x55\x3b\x02\x5e\xd4\x19\x35\xa3\x89\x86\x85\x18\x3b", ); test::( b"\x91\xf1\xca\x8c\xe6\x68\x1f\x4e\x1f\x11\x7b\x91\x8a\xe7\x87\xa8\x88\x79\x8a\x9d\xf3\xaf\xc9\xd0\xe9\x22\xf5\x1c\xdd\x6e\x7f\x7e\x55\xda\x99\x6f\x7e\x36\x15\xf1\xd4\x1e\x42\x92\x47\x98\x59\xa4\x4f\xa1\x8a\x5a\x00\x66\x62\x61\x0f\x1a\xaa\x28\x84\xf8\x43\xc2\xe7\x3d\x44\x17\x53\xe0\xea\xd5\x1d\xff\xc3\x66\x25\x06\x16\xc7\x06\xf0\x71\x28\x94\x0d\xd6\x31\x2f\xf3\xed\xa6\xf0\xe2\xb4\xe4\x41\xb3\xd7\x4c\x59\x2b\x97\xd9\xcd\x91\x0f\x97\x9d\x7f\x39\x76\x7b\x37\x9e\x7f\x36\xa7\x51\x9f\x2a\x4a\x25\x1e\xf5\xe8\xaa\xe1", b"\x01\x67\xd8\xb8\x30\x82\x59\xc7\x30\x93\x1d\xb8\x28\xa5\xf6\x96\x97\xec\x07\x73\xa7\x9b\xde\xdb\xaa\xf1\x51\x14\xa4\x93\x70\x11\xc5\xae\x36\xab\x05\x03\x95\x73\x73\xfe\xe6\xb1\xc4\x65\x0f\x91\xa3\xb0\xc9\x2c\x2d\x60\x4a\x35\x59\xdd\x2e\x85\x6a\x9a\x84\xf5\x51\xd9", b"\x01\x9d\x2c\x13\x46\xaa\xda\xa3\x09\x0b\x59\x81\xf5\x35\x32\x43\x30\x0a\x4f\xf0\xab\x96\x1c\x4e\xe5\x30\xf4\x13\x3f\xe8\x5e\x6a\xab\x5b\xad\x42\xe7\x47\xee\xe0\x29\x8c\x2b\x80\x51\xc8\xbe\x70\x49\x10\x9a\xd3\xe1\xb5\x72\xdd\xa1\xca\xc4\xa0\x30\x10\xf9\x9f\x20\x6e", b"\x01\xff\x09\x74\x85\xfa\xf3\x2c\xe9\xe0\xc5\x57\xee\x06\x45\x87\xc1\x2c\x48\x34\xe7\xf0\x98\x8c\xf1\x81\xd0\x7b\xa9\xee\x15\xae\x85\xa8\x20\x8b\x61\x85\x00\x80\xfc\x4b\xbe\xdb\xd8\x25\x36\x18\x1d\x43\x97\x34\x59\xf0\xd6\x96\xac\x5e\x6b\x8f\x23\x30\xb1\x79\xd1\x80", b"\x00\x30\x6d\xc3\xc3\x82\xaf\x13\xc9\x9d\x44\xdb\x7a\x84\xed\x81\x3c\x87\x19\xc6\xed\x3b\xbe\x75\x1e\xad\x0d\x48\x7b\x5a\x4a\xa0\x18\x12\x98\x62\xb7\xd2\x82\xcc\xe0\xbc\x20\x59\xa5\x6d\x77\x22\xf4\xb2\x26\xf9\xde\xb8\x5d\xa1\x2d\x5b\x40\x64\x8b\xf6\xec\x56\x81\x28", ); test::( b"\x4b\xe8\x1d\xcf\xab\x39\xa6\x4d\x6f\x00\xc0\xd7\xff\xf9\x4d\xab\xdf\x34\x73\xdc\x49\xf0\xe1\x29\x00\xdf\x32\x8d\x65\x84\xb8\x54\xfb\xae\xba\xf3\x19\x4c\x43\x3e\x9e\x21\x74\x33\x42\xe2\xdd\x05\x6b\x44\x5c\x8a\xa7\xd3\x0a\x38\x50\x4b\x36\x6a\x8f\xa8\x89\xdc\x8e\xce\xc3\x5b\x31\x30\x07\x07\x87\xe7\xbf\x0f\x22\xfa\xb5\xbe\xa5\x4a\x07\xd3\xa7\x53\x68\x60\x53\x97\xba\x74\xdb\xf2\x92\x3e\xf2\x0c\x37\xa0\xd9\xc6\x4c\xae\xbc\xc9\x31\x57\x45\x6b\x57\xb9\x8d\x4b\xec\xb1\x3f\xec\xb7\xcc\x7f\x37\x40\xa6\x05\x7a\xf2\x87", b"\x00\xcf\xa5\xa8\xa3\xf1\x5e\xb8\xc4\x19\x09\x56\x73\xf1\xd0\xbd\x63\xb3\x96\xff\x98\x13\xc1\x8d\xfe\x5a\xa3\x1f\x40\xb5\x0b\x82\x48\x1f\x9e\xd2\xed\xd4\x7a\xe5\xea\x6a\x48\xea\x01\xf7\xe0\xad\x00\x00\xed\xf7\xb6\x6f\x89\x09\xee\x94\xf1\x41\xd5\xa0\x7e\xfe\x31\x5c", b"\x01\x8a\xf7\x28\xf7\x31\x8b\x96\xd5\x7f\x19\xc1\x10\x44\x15\xc8\xd5\x98\x95\x65\x46\x5e\x42\x9b\xc3\x0c\xf6\x5c\xed\x12\xa1\xc5\x85\x6a\xc8\x6f\xca\x02\x38\x8b\xc1\x51\xcf\x89\x95\x9a\x4f\x04\x85\x97\xa9\xe7\x28\xf3\x03\x4a\xa3\x92\x59\xb5\x98\x70\x94\x61\x87\xbf", b"\x01\x9c\xf9\x1a\x38\xcc\x20\xb9\x26\x9e\x74\x67\x85\x7b\x1f\xc7\xea\xbb\x8c\xea\x91\x5a\x31\x35\xf7\x27\xd4\x71\xe5\xbf\xcf\xb6\x6d\x32\x1f\xab\xe2\x83\xa2\xcf\x38\xd4\xc5\xa6\xec\xb6\xe8\xcb\xee\x10\x30\x47\x43\x73\xbb\x87\xfc\xdf\xcc\x95\xcf\x85\x7a\x8d\x25\xd0", b"\x01\xcf\x9a\xcd\x94\x49\xc5\x75\x89\xc9\x50\xf2\x87\x84\x2f\x9e\x24\x87\xc5\x61\x09\x55\xb2\xb5\x03\x5f\x6a\xac\xfd\x24\x02\xf5\x11\x99\x8a\x1a\x94\x2b\x39\xc3\x07\xfc\x2b\xca\xb2\xc8\xd0\xda\xe9\x4b\x55\x47\xdd\xcc\xfb\x10\x12\xca\x98\x5b\x3e\xdf\x42\xbb\xba\x8b", ); test::( b"\x54\x3c\x37\x4a\xf9\x0c\x34\xf5\x0e\xe1\x95\x00\x6d\x5f\x9d\x8d\xd9\x86\xd0\x9a\xd1\x82\xfc\xbe\xfa\x08\x55\x67\x27\x5e\xee\x1e\x74\x2b\xfe\x0a\xf3\xd0\x58\x67\x5a\xde\xb5\xb9\xf8\x7f\x24\x8b\x00\xa9\xfb\xd2\xaa\x77\x91\x29\x12\x3a\x5b\x98\x3f\x2f\x26\xfc\x3c\xaf\x2e\xa3\x42\x77\x55\x0c\x22\xfe\x8c\x81\x4c\x73\x9b\x46\x97\x2d\x50\x23\x29\x93\xcd\xdd\x63\xa3\xc9\x9e\x20\xf5\xc5\x06\x7d\x9b\x57\xe2\xd5\xdb\x94\x31\x7a\x5a\x16\xb5\xc1\x2b\x5c\x4c\xaf\xbc\x79\xcb\xc2\xf9\x94\x0f\x07\x4b\xbc\x7d\x0d\xc7\x1e\x90", b"\x00\x9e\xc1\xa3\x76\x1f\xe3\x95\x80\x73\xb9\x64\x7f\x34\x20\x2c\x5e\x8c\xa2\x42\x8d\x05\x6f\xac\xc4\xf3\xfe\xdc\x70\x77\xfa\x87\xf1\xd1\xeb\x30\xcc\x74\xf6\xe3\xff\x3d\x3f\x82\xdf\x26\x41\xce\xa1\xeb\x3f\xf1\x52\x9e\x8a\x38\x66\xae\x20\x55\xaa\xce\xc0\xbf\x68\xc4", b"\x00\xbe\xd0\x26\x1b\x91\xf6\x64\xc3\xff\x53\xe3\x37\xd8\x32\x1c\xb9\x88\xc3\xed\xc0\x3b\x46\x75\x46\x80\x09\x7e\x5a\x85\x85\x24\x5d\x80\xd0\xb7\x04\x5c\x75\xa9\xc5\xbe\x7f\x59\x9d\x3b\x5e\xea\x08\xd8\x28\xac\xb6\x29\x4a\xe5\x15\xa3\xdf\x57\xa3\x7f\x90\x3e\xf6\x2e", b"\x00\xce\xf3\xf4\xba\xbe\x6f\x98\x75\xe5\xdb\x28\xc2\x7d\x6a\x19\x7d\x60\x7c\x36\x41\xa9\x0f\x10\xc2\xcc\x2c\xb3\x02\xba\x65\x8a\xa1\x51\xdc\x76\xc5\x07\x48\x8b\x99\xf4\xb3\xc8\xbb\x40\x4f\xb5\xc8\x52\xf9\x59\x27\x3f\x41\x2c\xbd\xd5\xe7\x13\xc5\xe3\xf0\xe6\x7f\x94", b"\x00\x09\x7e\xd9\xe0\x05\x41\x6f\xc9\x44\xe2\x6b\xcc\x36\x61\xa0\x9b\x35\xc1\x28\xfc\xcc\xdc\x27\x42\x73\x9c\x8a\x30\x1a\x33\x8d\xd7\x7d\x9d\x13\x57\x16\x12\xa3\xb9\x52\x4a\x61\x64\xb0\x9f\xe7\x36\x43\xbb\xc3\x14\x47\xee\x31\xef\x44\xa4\x90\x84\x3e\x4e\x7d\xb2\x3f", ); } } nettle-7.1.0/src/ed25519.rs000064400000000000000000000366430072674642500133230ustar 00000000000000//! D.J. Bernstein's "Twisted" Edwards curve Ed25519. use nettle_sys::{ nettle_ed25519_sha512_public_key, nettle_ed25519_sha512_sign, nettle_ed25519_sha512_verify, }; use crate::{Error, random::Random, Result}; /// Size of a public or secret Ed25519 key in bytes. pub const ED25519_KEY_SIZE: usize = ::nettle_sys::ED25519_KEY_SIZE as usize; /// Size of a Ed25519 signature in bytes. pub const ED25519_SIGNATURE_SIZE: usize = ::nettle_sys::ED25519_SIGNATURE_SIZE as usize; /// Generates a new Ed25519 private key. pub fn private_key(rng: &mut R) -> Box<[u8]> where R: Random, { let mut ret = vec![0u8; ED25519_KEY_SIZE].into_boxed_slice(); rng.random(&mut ret[..]); ret } /// Computes the `public` key for a given `private` Ed25519 key. /// /// Fails if one of the buffers is not [`ED25519_KEY_SIZE`] bytes /// large. pub fn public_key(public: &mut [u8], private: &[u8]) -> Result<()> { if public.len() != ED25519_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if private.len() != ED25519_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "private" }); } unsafe { nettle_ed25519_sha512_public_key(public.as_mut_ptr(), private.as_ptr()); } Ok(()) } /// Signs the message `msg` using the given `public`/`private`, /// producing `signature`. /// /// Fails if `public` or `private` is not [`ED25519_KEY_SIZE`] bytes /// large, or if `signature` is not [`ED25519_SIGNATURE_SIZE`] bytes. pub fn sign( public: &[u8], private: &[u8], msg: &[u8], signature: &mut [u8], ) -> Result<()> { if public.len() != ED25519_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if private.len() != ED25519_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "private" }); } if signature.len() != ED25519_SIGNATURE_SIZE { return Err(Error::InvalidArgument { argument_name: "signature" }); } unsafe { nettle_ed25519_sha512_sign( public.as_ptr(), private.as_ptr(), msg.len(), msg.as_ptr(), signature.as_mut_ptr(), ); } Ok(()) } /// Verifies `signature` of message `msg` using `public`. /// /// Returns `true` if the signature is valid. Fails if `public` is /// not [`ED25519_KEY_SIZE`] bytes large, or `signature` is not /// [`ED25519_SIGNATURE_SIZE`] bytes. pub fn verify(public: &[u8], msg: &[u8], signature: &[u8]) -> Result { if public.len() != ED25519_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if signature.len() != ED25519_SIGNATURE_SIZE { return Err(Error::InvalidArgument { argument_name: "signature" }); } unsafe { Ok(nettle_ed25519_sha512_verify( public.as_ptr(), msg.len(), msg.as_ptr(), signature.as_ptr(), ) == 1) } } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn malformed_public_key() { let mut my_public = vec![0u8; ED25519_KEY_SIZE]; assert!(public_key(&mut my_public, &[0u8; ED25519_KEY_SIZE - 1][..]) .is_err()); assert!(public_key(&mut my_public, &[0u8; ED25519_KEY_SIZE + 1][..]) .is_err()); assert!(public_key(&mut my_public, &[]).is_err()); let mut my_public = vec![0u8; ED25519_KEY_SIZE + 1]; assert!( public_key(&mut my_public, &[0u8; ED25519_KEY_SIZE][..]).is_err() ); let mut my_public = vec![0u8; ED25519_KEY_SIZE - 1]; assert!( public_key(&mut my_public, &[0u8; ED25519_KEY_SIZE][..]).is_err() ); let mut my_public = vec![]; assert!( public_key(&mut my_public, &[0u8; ED25519_KEY_SIZE][..]).is_err() ); } #[test] fn malformed_sign_input() { let mut signature = vec![0u8; ED25519_SIGNATURE_SIZE]; assert!(sign( &[0u8; ED25519_KEY_SIZE][..], &[0u8; ED25519_KEY_SIZE - 1][..], &[0u8; 1][..], &mut signature ) .is_err()); assert!(sign( &[0u8; ED25519_KEY_SIZE - 1][..], &[0u8; ED25519_KEY_SIZE][..], &[0u8; 1][..], &mut signature ) .is_err()); let mut signature = vec![0u8; ED25519_SIGNATURE_SIZE - 1]; assert!(sign( &[0u8; ED25519_KEY_SIZE][..], &[0u8; ED25519_KEY_SIZE][..], &[0u8; 1][..], &mut signature ) .is_err()); } #[test] fn malformed_verify_input() { assert!(verify( &[0u8; ED25519_KEY_SIZE][..], &[0u8; 1][..], &[0u8; ED25519_SIGNATURE_SIZE - 1][..] ) .is_err()); assert!(verify( &[0u8; ED25519_KEY_SIZE - 1][..], &[0u8; 1][..], &[0u8; ED25519_SIGNATURE_SIZE][..] ) .is_err()); } #[test] fn djb_test_vectors() { let mut my_public = vec![0u8; ED25519_KEY_SIZE]; let mut my_signature = vec![0u8; ED25519_SIGNATURE_SIZE]; { let private = &b"\x9d\x61\xb1\x9d\xef\xfd\x5a\x60\xba\x84\x4a\xf4\x92\xec\x2c\xc4\x44\x49\xc5\x69\x7b\x32\x69\x19\x70\x3b\xac\x03\x1c\xae\x7f\x60"[..]; let public = &b"\xd7\x5a\x98\x01\x82\xb1\x0a\xb7\xd5\x4b\xfe\xd3\xc9\x64\x07\x3a\x0e\xe1\x72\xf3\xda\xa6\x23\x25\xaf\x02\x1a\x68\xf7\x07\x51\x1a"[..]; let msg = &b""[..]; let signature = &b"\xe5\x56\x43\x00\xc3\x60\xac\x72\x90\x86\xe2\xcc\x80\x6e\x82\x8a\x84\x87\x7f\x1e\xb8\xe5\xd9\x74\xd8\x73\xe0\x65\x22\x49\x01\x55\x5f\xb8\x82\x15\x90\xa3\x3b\xac\xc6\x1e\x39\x70\x1c\xf9\xb4\x6b\xd2\x5b\xf5\xf0\x59\x5b\xbe\x24\x65\x51\x41\x43\x8e\x7a\x10\x0b"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x4c\xcd\x08\x9b\x28\xff\x96\xda\x9d\xb6\xc3\x46\xec\x11\x4e\x0f\x5b\x8a\x31\x9f\x35\xab\xa6\x24\xda\x8c\xf6\xed\x4f\xb8\xa6\xfb"[..]; let public = &b"\x3d\x40\x17\xc3\xe8\x43\x89\x5a\x92\xb7\x0a\xa7\x4d\x1b\x7e\xbc\x9c\x98\x2c\xcf\x2e\xc4\x96\x8c\xc0\xcd\x55\xf1\x2a\xf4\x66\x0c"[..]; let msg = &b"\x72"[..]; let signature = &b"\x92\xa0\x09\xa9\xf0\xd4\xca\xb8\x72\x0e\x82\x0b\x5f\x64\x25\x40\xa2\xb2\x7b\x54\x16\x50\x3f\x8f\xb3\x76\x22\x23\xeb\xdb\x69\xda\x08\x5a\xc1\xe4\x3e\x15\x99\x6e\x45\x8f\x36\x13\xd0\xf1\x1d\x8c\x38\x7b\x2e\xae\xb4\x30\x2a\xee\xb0\x0d\x29\x16\x12\xbb\x0c\x00"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\xc5\xaa\x8d\xf4\x3f\x9f\x83\x7b\xed\xb7\x44\x2f\x31\xdc\xb7\xb1\x66\xd3\x85\x35\x07\x6f\x09\x4b\x85\xce\x3a\x2e\x0b\x44\x58\xf7"[..]; let public = &b"\xfc\x51\xcd\x8e\x62\x18\xa1\xa3\x8d\xa4\x7e\xd0\x02\x30\xf0\x58\x08\x16\xed\x13\xba\x33\x03\xac\x5d\xeb\x91\x15\x48\x90\x80\x25"[..]; let msg = &b"\xaf\x82"[..]; let signature = &b"\x62\x91\xd6\x57\xde\xec\x24\x02\x48\x27\xe6\x9c\x3a\xbe\x01\xa3\x0c\xe5\x48\xa2\x84\x74\x3a\x44\x5e\x36\x80\xd7\xdb\x5a\xc3\xac\x18\xff\x9b\x53\x8d\x16\xf2\x90\xae\x67\xf7\x60\x98\x4d\xc6\x59\x4a\x7c\x15\xe9\x71\x6e\xd2\x8d\xc0\x27\xbe\xce\xea\x1e\xc4\x0a"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x0d\x4a\x05\xb0\x73\x52\xa5\x43\x6e\x18\x03\x56\xda\x0a\xe6\xef\xa0\x34\x5f\xf7\xfb\x15\x72\x57\x57\x72\xe8\x00\x5e\xd9\x78\xe9"[..]; let public = &b"\xe6\x1a\x18\x5b\xce\xf2\x61\x3a\x6c\x7c\xb7\x97\x63\xce\x94\x5d\x3b\x24\x5d\x76\x11\x4d\xd4\x40\xbc\xf5\xf2\xdc\x1a\xa5\x70\x57"[..]; let msg = &b"\xcb\xc7\x7b"[..]; let signature = &b"\xd9\x86\x8d\x52\xc2\xbe\xbc\xe5\xf3\xfa\x5a\x79\x89\x19\x70\xf3\x09\xcb\x65\x91\xe3\xe1\x70\x2a\x70\x27\x6f\xa9\x7c\x24\xb3\xa8\xe5\x86\x06\xc3\x8c\x97\x58\x52\x9d\xa5\x0e\xe3\x1b\x82\x19\xcb\xa4\x52\x71\xc6\x89\xaf\xa6\x0b\x0e\xa2\x6c\x99\xdb\x19\xb0\x0c"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x6d\xf9\x34\x0c\x13\x8c\xc1\x88\xb5\xfe\x44\x64\xeb\xaa\x3f\x7f\xc2\x06\xa2\xd5\x5c\x34\x34\x70\x7e\x74\xc9\xfc\x04\xe2\x0e\xbb"[..]; let public = &b"\xc0\xda\xc1\x02\xc4\x53\x31\x86\xe2\x5d\xc4\x31\x28\x47\x23\x53\xea\xab\xdb\x87\x8b\x15\x2a\xeb\x8e\x00\x1f\x92\xd9\x02\x33\xa7"[..]; let msg = &b"\x5f\x4c\x89\x89"[..]; let signature = &b"\x12\x4f\x6f\xc6\xb0\xd1\x00\x84\x27\x69\xe7\x1b\xd5\x30\x66\x4d\x88\x8d\xf8\x50\x7d\xf6\xc5\x6d\xed\xfd\xb5\x09\xae\xb9\x34\x16\xe2\x6b\x91\x8d\x38\xaa\x06\x30\x5d\xf3\x09\x56\x97\xc1\x8b\x2a\xa8\x32\xea\xa5\x2e\xdc\x0a\xe4\x9f\xba\xe5\xa8\x5e\x15\x0c\x07"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\xb7\x80\x38\x1a\x65\xed\xf8\xb7\x8f\x69\x45\xe8\xdb\xec\x79\x41\xac\x04\x9f\xd4\xc6\x10\x40\xcf\x0c\x32\x43\x57\x97\x5a\x29\x3c"[..]; let public = &b"\xe2\x53\xaf\x07\x66\x80\x4b\x86\x9b\xb1\x59\x5b\xe9\x76\x5b\x53\x48\x86\xbb\xaa\xb8\x30\x5b\xf5\x0d\xbc\x7f\x89\x9b\xfb\x5f\x01"[..]; let msg = &b"\x18\xb6\xbe\xc0\x97"[..]; let signature = &b"\xb2\xfc\x46\xad\x47\xaf\x46\x44\x78\xc1\x99\xe1\xf8\xbe\x16\x9f\x1b\xe6\x32\x7c\x7f\x9a\x0a\x66\x89\x37\x1c\xa9\x4c\xaf\x04\x06\x4a\x01\xb2\x2a\xff\x15\x20\xab\xd5\x89\x51\x34\x16\x03\xfa\xed\x76\x8c\xf7\x8c\xe9\x7a\xe7\xb0\x38\xab\xfe\x45\x6a\xa1\x7c\x09"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x78\xae\x9e\xff\xe6\xf2\x45\xe9\x24\xa7\xbe\x63\x04\x11\x46\xeb\xc6\x70\xdb\xd3\x06\x0c\xba\x67\xfb\xc6\x21\x6f\xeb\xc4\x45\x46"[..]; let public = &b"\xfb\xcf\xbf\xa4\x05\x05\xd7\xf2\xbe\x44\x4a\x33\xd1\x85\xcc\x54\xe1\x6d\x61\x52\x60\xe1\x64\x0b\x2b\x50\x87\xb8\x3e\xe3\x64\x3d"[..]; let msg = &b"\x89\x01\x0d\x85\x59\x72"[..]; let signature = &b"\x6e\xd6\x29\xfc\x1d\x9c\xe9\xe1\x46\x87\x55\xff\x63\x6d\x5a\x3f\x40\xa5\xd9\xc9\x1a\xfd\x93\xb7\x9d\x24\x18\x30\xf7\xe5\xfa\x29\x85\x4b\x8f\x20\xcc\x6e\xec\xbb\x24\x8d\xbd\x8d\x16\xd1\x4e\x99\x75\x21\x94\xe4\x90\x4d\x09\xc7\x4d\x63\x95\x18\x83\x9d\x23\x00"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x69\x18\x65\xbf\xc8\x2a\x1e\x4b\x57\x4e\xec\xde\x4c\x75\x19\x09\x3f\xaf\x0c\xf8\x67\x38\x02\x34\xe3\x66\x46\x45\xc6\x1c\x5f\x79"[..]; let public = &b"\x98\xa5\xe3\xa3\x6e\x67\xaa\xba\x89\x88\x8b\xf0\x93\xde\x1a\xd9\x63\xe7\x74\x01\x3b\x39\x02\xbf\xab\x35\x6d\x8b\x90\x17\x8a\x63"[..]; let msg = &b"\xb4\xa8\xf3\x81\xe7\x0e\x7a"[..]; let signature = &b"\x6e\x0a\xf2\xfe\x55\xae\x37\x7a\x6b\x7a\x72\x78\xed\xfb\x41\x9b\xd3\x21\xe0\x6d\x0d\xf5\xe2\x70\x37\xdb\x88\x12\xe7\xe3\x52\x98\x10\xfa\x55\x52\xf6\xc0\x02\x09\x85\xca\x17\xa0\xe0\x2e\x03\x6d\x7b\x22\x2a\x24\xf9\x9b\x77\xb7\x5f\xdd\x16\xcb\x05\x56\x81\x07"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\x3b\x26\x51\x6f\xb3\xdc\x88\xeb\x18\x1b\x9e\xd7\x3f\x0b\xcd\x52\xbc\xd6\xb4\xc7\x88\xe4\xbc\xaf\x46\x05\x7f\xd0\x78\xbe\xe0\x73"[..]; let public = &b"\xf8\x1f\xb5\x4a\x82\x5f\xce\xd9\x5e\xb0\x33\xaf\xcd\x64\x31\x40\x75\xab\xfb\x0a\xbd\x20\xa9\x70\x89\x25\x03\x43\x6f\x34\xb8\x63"[..]; let msg = &b"\x42\x84\xab\xc5\x1b\xb6\x72\x35"[..]; let signature = &b"\xd6\xad\xde\xc5\xaf\xb0\x52\x8a\xc1\x7b\xb1\x78\xd3\xe7\xf2\x88\x7f\x9a\xdb\xb1\xad\x16\xe1\x10\x54\x5e\xf3\xbc\x57\xf9\xde\x23\x14\xa5\xc8\x38\x8f\x72\x3b\x89\x07\xbe\x0f\x3a\xc9\x0c\x62\x59\xbb\xe8\x85\xec\xc1\x76\x45\xdf\x3d\xb7\xd4\x88\xf8\x05\xfa\x08"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } { let private = &b"\xed\xc6\xf5\xfb\xdd\x1c\xee\x4d\x10\x1c\x06\x35\x30\xa3\x04\x90\xb2\x21\xbe\x68\xc0\x36\xf5\xb0\x7d\x0f\x95\x3b\x74\x5d\xf1\x92"[..]; let public = &b"\xc1\xa4\x9c\x66\xe6\x17\xf9\xef\x5e\xc6\x6b\xc4\xc6\x56\x4c\xa3\x3d\xe2\xa5\xfb\x5e\x14\x64\x06\x2e\x6d\x6c\x62\x19\x15\x5e\xfd"[..]; let msg = &b"\x67\x2b\xf8\x96\x5d\x04\xbc\x51\x46"[..]; let signature = &b"\x2c\x76\xa0\x4a\xf2\x39\x1c\x14\x70\x82\xe3\x3f\xaa\xcd\xbe\x56\x64\x2a\x1e\x13\x4b\xd3\x88\x62\x0b\x85\x2b\x90\x1a\x6b\xc1\x6f\xf6\xc9\xcc\x94\x04\xc4\x1d\xea\x12\xed\x28\x1d\xa0\x67\xa1\x51\x38\x66\xf9\xd9\x64\xf8\xbd\xd2\x49\x53\x85\x6c\x50\x04\x29\x01"[..]; assert!(public_key(&mut my_public, private).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, private, msg, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, msg, signature).ok(), Some(true)); } } #[test] fn smoke_test() { let mut rng = Yarrow::default(); let msg = &b"Hello, World"[..]; let sk = private_key(&mut rng); let mut pk = vec![0u8; ED25519_KEY_SIZE]; assert!(public_key(&mut pk[..], &sk[..]).is_ok()); let mut sig = vec![0u8; ED25519_SIGNATURE_SIZE]; assert!(sign(&pk, &sk, msg, &mut sig).is_ok()); assert_eq!(verify(&pk, msg, &sig).ok(), Some(true)); } } nettle-7.1.0/src/ed448.rs000064400000000000000000000567530072674642500131610ustar 00000000000000//! Mike Hamburg's "Goldilocks" Edwards curve Ed448. use nettle_sys::{ nettle_ed448_shake256_public_key, nettle_ed448_shake256_sign, nettle_ed448_shake256_verify, }; use crate::{Error, random::Random, Result}; /// Whether or not this algorithm is supported by the version of /// Nettle we are linked against at build time. /// /// If this is false, then [`public_key`], [`sign`], and [`verify`] /// will fail on all inputs. pub const IS_SUPPORTED: bool = nettle_sys::config::HAVE_CV448; /// Size of a public or secret Ed448 key in bytes. pub const ED448_KEY_SIZE: usize = ::nettle_sys::ED448_KEY_SIZE as usize; /// Size of a Ed448 signature in bytes. pub const ED448_SIGNATURE_SIZE: usize = ::nettle_sys::ED448_SIGNATURE_SIZE as usize; /// Generates a new Ed448 private key. pub fn private_key(rng: &mut R) -> Box<[u8]> where R: Random, { let mut ret = vec![0u8; ED448_KEY_SIZE].into_boxed_slice(); rng.random(&mut ret[..]); ret } /// Computes the `public` key for a given `private` Ed448 key. /// /// Fails if one of the buffers is not [`ED448_KEY_SIZE`] bytes large, /// or if Ed448 is not supported by Nettle (see [`IS_SUPPORTED`]). pub fn public_key(public: &mut [u8], private: &[u8]) -> Result<()> { if ! nettle_sys::config::HAVE_CV448 { return Err(Error::KeyGenerationFailed); } if public.len() != ED448_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if private.len() != ED448_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "private" }); } unsafe { nettle_ed448_shake256_public_key(public.as_mut_ptr(), private.as_ptr()); } Ok(()) } /// Signs the message `msg` using the given `public`/`private`, /// producing `signature`. /// /// Fails if `public` or `private` is not [`ED448_KEY_SIZE`] bytes /// large, if `signature` is not [`ED448_SIGNATURE_SIZE`] bytes, or if /// Ed448 is not supported by Nettle (see [`IS_SUPPORTED`]). pub fn sign( public: &[u8], private: &[u8], msg: &[u8], signature: &mut [u8], ) -> Result<()> { if ! nettle_sys::config::HAVE_CV448 { return Err(Error::SigningFailed); } if public.len() != ED448_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if private.len() != ED448_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "private" }); } if signature.len() != ED448_SIGNATURE_SIZE { return Err(Error::InvalidArgument { argument_name: "signature" }); } unsafe { nettle_ed448_shake256_sign( public.as_ptr(), private.as_ptr(), msg.len(), msg.as_ptr(), signature.as_mut_ptr(), ); } Ok(()) } /// Verifies `signature` of message `msg` using `public`. /// /// Returns `true` if the signature is valid. Fails if `public` is /// not [`ED448_KEY_SIZE`] bytes large, `signature` is not /// [`ED448_SIGNATURE_SIZE`] bytes, or if Ed448 is not supported by /// Nettle (see [`IS_SUPPORTED`]). pub fn verify(public: &[u8], msg: &[u8], signature: &[u8]) -> Result { if ! nettle_sys::config::HAVE_CV448 { return Ok(false); } if public.len() != ED448_KEY_SIZE { return Err(Error::InvalidArgument { argument_name: "public" }); } if signature.len() != ED448_SIGNATURE_SIZE { return Err(Error::InvalidArgument { argument_name: "signature" }); } unsafe { Ok(nettle_ed448_shake256_verify( public.as_ptr(), msg.len(), msg.as_ptr(), signature.as_ptr(), ) == 1) } } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn malformed_public_key() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } let mut my_public = vec![0u8; ED448_KEY_SIZE]; assert!(public_key(&mut my_public, &[0u8; ED448_KEY_SIZE - 1][..]) .is_err()); assert!(public_key(&mut my_public, &[0u8; ED448_KEY_SIZE + 1][..]) .is_err()); assert!(public_key(&mut my_public, &[]).is_err()); let mut my_public = vec![0u8; ED448_KEY_SIZE + 1]; assert!( public_key(&mut my_public, &[0u8; ED448_KEY_SIZE][..]).is_err() ); let mut my_public = vec![0u8; ED448_KEY_SIZE - 1]; assert!( public_key(&mut my_public, &[0u8; ED448_KEY_SIZE][..]).is_err() ); let mut my_public = vec![]; assert!( public_key(&mut my_public, &[0u8; ED448_KEY_SIZE][..]).is_err() ); } #[test] fn malformed_sign_input() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } let mut signature = vec![0u8; ED448_SIGNATURE_SIZE]; assert!(sign( &[0u8; ED448_KEY_SIZE][..], &[0u8; ED448_KEY_SIZE - 1][..], &[0u8; 1][..], &mut signature ) .is_err()); assert!(sign( &[0u8; ED448_KEY_SIZE - 1][..], &[0u8; ED448_KEY_SIZE][..], &[0u8; 1][..], &mut signature ) .is_err()); let mut signature = vec![0u8; ED448_SIGNATURE_SIZE - 1]; assert!(sign( &[0u8; ED448_KEY_SIZE][..], &[0u8; ED448_KEY_SIZE][..], &[0u8; 1][..], &mut signature ) .is_err()); } #[test] fn malformed_verify_input() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } assert!(verify( &[0u8; ED448_KEY_SIZE][..], &[0u8; 1][..], &[0u8; ED448_SIGNATURE_SIZE - 1][..] ) .is_err()); assert!(verify( &[0u8; ED448_KEY_SIZE - 1][..], &[0u8; 1][..], &[0u8; ED448_SIGNATURE_SIZE][..] ) .is_err()); } #[test] fn rfc8032_test_vectors() { if ! nettle_sys::config::HAVE_CV448 { eprintln!("This version of Nettle does not support the operation"); return; } fn test(secret: &[u8], public: &[u8], message: &[u8], signature: &[u8]) { let mut my_public = vec![0u8; ED448_KEY_SIZE]; let mut my_signature = vec![0u8; ED448_SIGNATURE_SIZE]; assert!(public_key(&mut my_public, secret).is_ok()); assert_eq!(public, &my_public[..]); assert!(sign(public, secret, message, &mut my_signature).is_ok()); assert_eq!(signature, &my_signature[..]); assert_eq!(verify(public, message, signature).ok(), Some(true)); } // -----Blank test(b"\ \x6c\x82\xa5\x62\xcb\x80\x8d\x10\xd6\x32\xbe\x89\xc8\x51\x3e\xbf\ \x6c\x92\x9f\x34\xdd\xfa\x8c\x9f\x63\xc9\x96\x0e\xf6\xe3\x48\xa3\ \x52\x8c\x8a\x3f\xcc\x2f\x04\x4e\x39\xa3\xfc\x5b\x94\x49\x2f\x8f\ \x03\x2e\x75\x49\xa2\x00\x98\xf9\x5b", b"\ \x5f\xd7\x44\x9b\x59\xb4\x61\xfd\x2c\xe7\x87\xec\x61\x6a\xd4\x6a\ \x1d\xa1\x34\x24\x85\xa7\x0e\x1f\x8a\x0e\xa7\x5d\x80\xe9\x67\x78\ \xed\xf1\x24\x76\x9b\x46\xc7\x06\x1b\xd6\x78\x3d\xf1\xe5\x0f\x6c\ \xd1\xfa\x1a\xbe\xaf\xe8\x25\x61\x80", b"", b"\ \x53\x3a\x37\xf6\xbb\xe4\x57\x25\x1f\x02\x3c\x0d\x88\xf9\x76\xae\ \x2d\xfb\x50\x4a\x84\x3e\x34\xd2\x07\x4f\xd8\x23\xd4\x1a\x59\x1f\ \x2b\x23\x3f\x03\x4f\x62\x82\x81\xf2\xfd\x7a\x22\xdd\xd4\x7d\x78\ \x28\xc5\x9b\xd0\xa2\x1b\xfd\x39\x80\xff\x0d\x20\x28\xd4\xb1\x8a\ \x9d\xf6\x3e\x00\x6c\x5d\x1c\x2d\x34\x5b\x92\x5d\x8d\xc0\x0b\x41\ \x04\x85\x2d\xb9\x9a\xc5\xc7\xcd\xda\x85\x30\xa1\x13\xa0\xf4\xdb\ \xb6\x11\x49\xf0\x5a\x73\x63\x26\x8c\x71\xd9\x58\x08\xff\x2e\x65\ \x26\x00"); // -----1 octet test(b"\ \xc4\xea\xb0\x5d\x35\x70\x07\xc6\x32\xf3\xdb\xb4\x84\x89\x92\x4d\ \x55\x2b\x08\xfe\x0c\x35\x3a\x0d\x4a\x1f\x00\xac\xda\x2c\x46\x3a\ \xfb\xea\x67\xc5\xe8\xd2\x87\x7c\x5e\x3b\xc3\x97\xa6\x59\x94\x9e\ \xf8\x02\x1e\x95\x4e\x0a\x12\x27\x4e", b"\ \x43\xba\x28\xf4\x30\xcd\xff\x45\x6a\xe5\x31\x54\x5f\x7e\xcd\x0a\ \xc8\x34\xa5\x5d\x93\x58\xc0\x37\x2b\xfa\x0c\x6c\x67\x98\xc0\x86\ \x6a\xea\x01\xeb\x00\x74\x28\x02\xb8\x43\x8e\xa4\xcb\x82\x16\x9c\ \x23\x51\x60\x62\x7b\x4c\x3a\x94\x80", b"\x03", b"\ \x26\xb8\xf9\x17\x27\xbd\x62\x89\x7a\xf1\x5e\x41\xeb\x43\xc3\x77\ \xef\xb9\xc6\x10\xd4\x8f\x23\x35\xcb\x0b\xd0\x08\x78\x10\xf4\x35\ \x25\x41\xb1\x43\xc4\xb9\x81\xb7\xe1\x8f\x62\xde\x8c\xcd\xf6\x33\ \xfc\x1b\xf0\x37\xab\x7c\xd7\x79\x80\x5e\x0d\xbc\xc0\xaa\xe1\xcb\ \xce\xe1\xaf\xb2\xe0\x27\xdf\x36\xbc\x04\xdc\xec\xbf\x15\x43\x36\ \xc1\x9f\x0a\xf7\xe0\xa6\x47\x29\x05\xe7\x99\xf1\x95\x3d\x2a\x0f\ \xf3\x34\x8a\xb2\x1a\xa4\xad\xaf\xd1\xd2\x34\x44\x1c\xf8\x07\xc0\ \x3a\x00"); // -----11 octets test(b"\ \xcd\x23\xd2\x4f\x71\x42\x74\xe7\x44\x34\x32\x37\xb9\x32\x90\xf5\ \x11\xf6\x42\x5f\x98\xe6\x44\x59\xff\x20\x3e\x89\x85\x08\x3f\xfd\ \xf6\x05\x00\x55\x3a\xbc\x0e\x05\xcd\x02\x18\x4b\xdb\x89\xc4\xcc\ \xd6\x7e\x18\x79\x51\x26\x7e\xb3\x28", b"\ \xdc\xea\x9e\x78\xf3\x5a\x1b\xf3\x49\x9a\x83\x1b\x10\xb8\x6c\x90\ \xaa\xc0\x1c\xd8\x4b\x67\xa0\x10\x9b\x55\xa3\x6e\x93\x28\xb1\xe3\ \x65\xfc\xe1\x61\xd7\x1c\xe7\x13\x1a\x54\x3e\xa4\xcb\x5f\x7e\x9f\ \x1d\x8b\x00\x69\x64\x47\x00\x14\x00", b"\x0c\x3e\x54\x40\x74\xec\x63\xb0\x26\x5e\x0c", b"\ \x1f\x0a\x88\x88\xce\x25\xe8\xd4\x58\xa2\x11\x30\x87\x9b\x84\x0a\ \x90\x89\xd9\x99\xaa\xba\x03\x9e\xaf\x3e\x3a\xfa\x09\x0a\x09\xd3\ \x89\xdb\xa8\x2c\x4f\xf2\xae\x8a\xc5\xcd\xfb\x7c\x55\xe9\x4d\x5d\ \x96\x1a\x29\xfe\x01\x09\x94\x1e\x00\xb8\xdb\xde\xea\x6d\x3b\x05\ \x10\x68\xdf\x72\x54\xc0\xcd\xc1\x29\xcb\xe6\x2d\xb2\xdc\x95\x7d\ \xbb\x47\xb5\x1f\xd3\xf2\x13\xfb\x86\x98\xf0\x64\x77\x42\x50\xa5\ \x02\x89\x61\xc9\xbf\x8f\xfd\x97\x3f\xe5\xd5\xc2\x06\x49\x2b\x14\ \x0e\x00"); // -----12 octets test(b"\ \x25\x8c\xdd\x4a\xda\x32\xed\x9c\x9f\xf5\x4e\x63\x75\x6a\xe5\x82\ \xfb\x8f\xab\x2a\xc7\x21\xf2\xc8\xe6\x76\xa7\x27\x68\x51\x3d\x93\ \x9f\x63\xdd\xdb\x55\x60\x91\x33\xf2\x9a\xdf\x86\xec\x99\x29\xdc\ \xcb\x52\xc1\xc5\xfd\x2f\xf7\xe2\x1b", b"\ \x3b\xa1\x6d\xa0\xc6\xf2\xcc\x1f\x30\x18\x77\x40\x75\x6f\x5e\x79\ \x8d\x6b\xc5\xfc\x01\x5d\x7c\x63\xcc\x95\x10\xee\x3f\xd4\x4a\xdc\ \x24\xd8\xe9\x68\xb6\xe4\x6e\x6f\x94\xd1\x9b\x94\x53\x61\x72\x6b\ \xd7\x5e\x14\x9e\xf0\x98\x17\xf5\x80", b"\x64\xa6\x5f\x3c\xde\xdc\xdd\x66\x81\x1e\x29\x15", b"\ \x7e\xee\xab\x7c\x4e\x50\xfb\x79\x9b\x41\x8e\xe5\xe3\x19\x7f\xf6\ \xbf\x15\xd4\x3a\x14\xc3\x43\x89\xb5\x9d\xd1\xa7\xb1\xb8\x5b\x4a\ \xe9\x04\x38\xac\xa6\x34\xbe\xa4\x5e\x3a\x26\x95\xf1\x27\x0f\x07\ \xfd\xcd\xf7\xc6\x2b\x8e\xfe\xaf\x00\xb4\x5c\x2c\x96\xba\x45\x7e\ \xb1\xa8\xbf\x07\x5a\x3d\xb2\x8e\x5c\x24\xf6\xb9\x23\xed\x4a\xd7\ \x47\xc3\xc9\xe0\x3c\x70\x79\xef\xb8\x7c\xb1\x10\xd3\xa9\x98\x61\ \xe7\x20\x03\xcb\xae\x6d\x6b\x8b\x82\x7e\x4e\x6c\x14\x30\x64\xff\ \x3c\x00"); // -----13 octets test(b"\ \x7e\xf4\xe8\x45\x44\x23\x67\x52\xfb\xb5\x6b\x8f\x31\xa2\x3a\x10\ \xe4\x28\x14\xf5\xf5\x5c\xa0\x37\xcd\xcc\x11\xc6\x4c\x9a\x3b\x29\ \x49\xc1\xbb\x60\x70\x03\x14\x61\x17\x32\xa6\xc2\xfe\xa9\x8e\xeb\ \xc0\x26\x6a\x11\xa9\x39\x70\x10\x0e", b"\ \xb3\xda\x07\x9b\x0a\xa4\x93\xa5\x77\x20\x29\xf0\x46\x7b\xae\xbe\ \xe5\xa8\x11\x2d\x9d\x3a\x22\x53\x23\x61\xda\x29\x4f\x7b\xb3\x81\ \x5c\x5d\xc5\x9e\x17\x6b\x4d\x9f\x38\x1c\xa0\x93\x8e\x13\xc6\xc0\ \x7b\x17\x4b\xe6\x5d\xfa\x57\x8e\x80", b"\x64\xa6\x5f\x3c\xde\xdc\xdd\x66\x81\x1e\x29\x15\xe7", b"\ \x6a\x12\x06\x6f\x55\x33\x1b\x6c\x22\xac\xd5\xd5\xbf\xc5\xd7\x12\ \x28\xfb\xda\x80\xae\x8d\xec\x26\xbd\xd3\x06\x74\x3c\x50\x27\xcb\ \x48\x90\x81\x0c\x16\x2c\x02\x74\x68\x67\x5e\xcf\x64\x5a\x83\x17\ \x6c\x0d\x73\x23\xa2\xcc\xde\x2d\x80\xef\xe5\xa1\x26\x8e\x8a\xca\ \x1d\x6f\xbc\x19\x4d\x3f\x77\xc4\x49\x86\xeb\x4a\xb4\x17\x79\x19\ \xad\x8b\xec\x33\xeb\x47\xbb\xb5\xfc\x6e\x28\x19\x6f\xd1\xca\xf5\ \x6b\x4e\x7e\x0b\xa5\x51\x92\x34\xd0\x47\x15\x5a\xc7\x27\xa1\x05\ \x31\x00"); // -----64 octets test(b"\ \xd6\x5d\xf3\x41\xad\x13\xe0\x08\x56\x76\x88\xba\xed\xda\x8e\x9d\ \xcd\xc1\x7d\xc0\x24\x97\x4e\xa5\xb4\x22\x7b\x65\x30\xe3\x39\xbf\ \xf2\x1f\x99\xe6\x8c\xa6\x96\x8f\x3c\xca\x6d\xfe\x0f\xb9\xf4\xfa\ \xb4\xfa\x13\x5d\x55\x42\xea\x3f\x01", b"\ \xdf\x97\x05\xf5\x8e\xdb\xab\x80\x2c\x7f\x83\x63\xcf\xe5\x56\x0a\ \xb1\xc6\x13\x2c\x20\xa9\xf1\xdd\x16\x34\x83\xa2\x6f\x8a\xc5\x3a\ \x39\xd6\x80\x8b\xf4\xa1\xdf\xbd\x26\x1b\x09\x9b\xb0\x3b\x3f\xb5\ \x09\x06\xcb\x28\xbd\x8a\x08\x1f\x00", b"\ \xbd\x0f\x6a\x37\x47\xcd\x56\x1b\xdd\xdf\x46\x40\xa3\x32\x46\x1a\ \x4a\x30\xa1\x2a\x43\x4c\xd0\xbf\x40\xd7\x66\xd9\xc6\xd4\x58\xe5\ \x51\x22\x04\xa3\x0c\x17\xd1\xf5\x0b\x50\x79\x63\x1f\x64\xeb\x31\ \x12\x18\x2d\xa3\x00\x58\x35\x46\x11\x13\x71\x8d\x1a\x5e\xf9\x44", b"\ \x55\x4b\xc2\x48\x08\x60\xb4\x9e\xab\x85\x32\xd2\xa5\x33\xb7\xd5\ \x78\xef\x47\x3e\xeb\x58\xc9\x8b\xb2\xd0\xe1\xce\x48\x8a\x98\xb1\ \x8d\xfd\xe9\xb9\xb9\x07\x75\xe6\x7f\x47\xd4\xa1\xc3\x48\x20\x58\ \xef\xc9\xf4\x0d\x2c\xa0\x33\xa0\x80\x1b\x63\xd4\x5b\x3b\x72\x2e\ \xf5\x52\xba\xd3\xb4\xcc\xb6\x67\xda\x35\x01\x92\xb6\x1c\x50\x8c\ \xf7\xb6\xb5\xad\xad\xc2\xc8\xd9\xa4\x46\xef\x00\x3f\xb0\x5c\xba\ \x5f\x30\xe8\x8e\x36\xec\x27\x03\xb3\x49\xca\x22\x9c\x26\x70\x83\ \x39\x00"); // -----256 octets test(b"\ \x2e\xc5\xfe\x3c\x17\x04\x5a\xbd\xb1\x36\xa5\xe6\xa9\x13\xe3\x2a\ \xb7\x5a\xe6\x8b\x53\xd2\xfc\x14\x9b\x77\xe5\x04\x13\x2d\x37\x56\ \x9b\x7e\x76\x6b\xa7\x4a\x19\xbd\x61\x62\x34\x3a\x21\xc8\x59\x0a\ \xa9\xce\xbc\xa9\x01\x4c\x63\x6d\xf5", b"\ \x79\x75\x6f\x01\x4d\xcf\xe2\x07\x9f\x5d\xd9\xe7\x18\xbe\x41\x71\ \xe2\xef\x24\x86\xa0\x8f\x25\x18\x6f\x6b\xff\x43\xa9\x93\x6b\x9b\ \xfe\x12\x40\x2b\x08\xae\x65\x79\x8a\x3d\x81\xe2\x2e\x9e\xc8\x0e\ \x76\x90\x86\x2e\xf3\xd4\xed\x3a\x00", b"\ \x15\x77\x75\x32\xb0\xbd\xd0\xd1\x38\x9f\x63\x6c\x5f\x6b\x9b\xa7\ \x34\xc9\x0a\xf5\x72\x87\x7e\x2d\x27\x2d\xd0\x78\xaa\x1e\x56\x7c\ \xfa\x80\xe1\x29\x28\xbb\x54\x23\x30\xe8\x40\x9f\x31\x74\x50\x41\ \x07\xec\xd5\xef\xac\x61\xae\x75\x04\xda\xbe\x2a\x60\x2e\xde\x89\ \xe5\xcc\xa6\x25\x7a\x7c\x77\xe2\x7a\x70\x2b\x3a\xe3\x9f\xc7\x69\ \xfc\x54\xf2\x39\x5a\xe6\xa1\x17\x8c\xab\x47\x38\xe5\x43\x07\x2f\ \xc1\xc1\x77\xfe\x71\xe9\x2e\x25\xbf\x03\xe4\xec\xb7\x2f\x47\xb6\ \x4d\x04\x65\xaa\xea\x4c\x7f\xad\x37\x25\x36\xc8\xba\x51\x6a\x60\ \x39\xc3\xc2\xa3\x9f\x0e\x4d\x83\x2b\xe4\x32\xdf\xa9\xa7\x06\xa6\ \xe5\xc7\xe1\x9f\x39\x79\x64\xca\x42\x58\x00\x2f\x7c\x05\x41\xb5\ \x90\x31\x6d\xbc\x56\x22\xb6\xb2\xa6\xfe\x7a\x4a\xbf\xfd\x96\x10\ \x5e\xca\x76\xea\x7b\x98\x81\x6a\xf0\x74\x8c\x10\xdf\x04\x8c\xe0\ \x12\xd9\x01\x01\x5a\x51\xf1\x89\xf3\x88\x81\x45\xc0\x36\x50\xaa\ \x23\xce\x89\x4c\x3b\xd8\x89\xe0\x30\xd5\x65\x07\x1c\x59\xf4\x09\ \xa9\x98\x1b\x51\x87\x8f\xd6\xfc\x11\x06\x24\xdc\xbc\xde\x0b\xf7\ \xa6\x9c\xcc\xe3\x8f\xab\xdf\x86\xf3\xbe\xf6\x04\x48\x19\xde\x11", b"\ \xc6\x50\xdd\xbb\x06\x01\xc1\x9c\xa1\x14\x39\xe1\x64\x0d\xd9\x31\ \xf4\x3c\x51\x8e\xa5\xbe\xa7\x0d\x3d\xcd\xe5\xf4\x19\x1f\xe5\x3f\ \x00\xcf\x96\x65\x46\xb7\x2b\xcc\x7d\x58\xbe\x2b\x9b\xad\xef\x28\ \x74\x39\x54\xe3\xa4\x4a\x23\xf8\x80\xe8\xd4\xf1\xcf\xce\x2d\x7a\ \x61\x45\x2d\x26\xda\x05\x89\x6f\x0a\x50\xda\x66\xa2\x39\xa8\xa1\ \x88\xb6\xd8\x25\xb3\x30\x5a\xd7\x7b\x73\xfb\xac\x08\x36\xec\xc6\ \x09\x87\xfd\x08\x52\x7c\x1a\x8e\x80\xd5\x82\x3e\x65\xca\xfe\x2a\ \x3d\x00"); // -----1023 octets test(b"\ \x87\x2d\x09\x37\x80\xf5\xd3\x73\x0d\xf7\xc2\x12\x66\x4b\x37\xb8\ \xa0\xf2\x4f\x56\x81\x0d\xaa\x83\x82\xcd\x4f\xa3\xf7\x76\x34\xec\ \x44\xdc\x54\xf1\xc2\xed\x9b\xea\x86\xfa\xfb\x76\x32\xd8\xbe\x19\ \x9e\xa1\x65\xf5\xad\x55\xdd\x9c\xe8", b"\ \xa8\x1b\x2e\x8a\x70\xa5\xac\x94\xff\xdb\xcc\x9b\xad\xfc\x3f\xeb\ \x08\x01\xf2\x58\x57\x8b\xb1\x14\xad\x44\xec\xe1\xec\x0e\x79\x9d\ \xa0\x8e\xff\xb8\x1c\x5d\x68\x5c\x0c\x56\xf6\x4e\xec\xae\xf8\xcd\ \xf1\x1c\xc3\x87\x37\x83\x8c\xf4\x00", b"\ \x6d\xdf\x80\x2e\x1a\xae\x49\x86\x93\x5f\x7f\x98\x1b\xa3\xf0\x35\ \x1d\x62\x73\xc0\xa0\xc2\x2c\x9c\x0e\x83\x39\x16\x8e\x67\x54\x12\ \xa3\xde\xbf\xaf\x43\x5e\xd6\x51\x55\x80\x07\xdb\x43\x84\xb6\x50\ \xfc\xc0\x7e\x3b\x58\x6a\x27\xa4\xf7\xa0\x0a\xc8\xa6\xfe\xc2\xcd\ \x86\xae\x4b\xf1\x57\x0c\x41\xe6\xa4\x0c\x93\x1d\xb2\x7b\x2f\xaa\ \x15\xa8\xce\xdd\x52\xcf\xf7\x36\x2c\x4e\x6e\x23\xda\xec\x0f\xbc\ \x3a\x79\xb6\x80\x6e\x31\x6e\xfc\xc7\xb6\x81\x19\xbf\x46\xbc\x76\ \xa2\x60\x67\xa5\x3f\x29\x6d\xaf\xdb\xdc\x11\xc7\x7f\x77\x77\xe9\ \x72\x66\x0c\xf4\xb6\xa9\xb3\x69\xa6\x66\x5f\x02\xe0\xcc\x9b\x6e\ \xdf\xad\x13\x6b\x4f\xab\xe7\x23\xd2\x81\x3d\xb3\x13\x6c\xfd\xe9\ \xb6\xd0\x44\x32\x2f\xee\x29\x47\x95\x2e\x03\x1b\x73\xab\x5c\x60\ \x33\x49\xb3\x07\xbd\xc2\x7b\xc6\xcb\x8b\x8b\xbd\x7b\xd3\x23\x21\ \x9b\x80\x33\xa5\x81\xb5\x9e\xad\xeb\xb0\x9b\x3c\x4f\x3d\x22\x77\ \xd4\xf0\x34\x36\x24\xac\xc8\x17\x80\x47\x28\xb2\x5a\xb7\x97\x17\ \x2b\x4c\x5c\x21\xa2\x2f\x9c\x78\x39\xd6\x43\x00\x23\x2e\xb6\x6e\ \x53\xf3\x1c\x72\x3f\xa3\x7f\xe3\x87\xc7\xd3\xe5\x0b\xdf\x98\x13\ \xa3\x0e\x5b\xb1\x2c\xf4\xcd\x93\x0c\x40\xcf\xb4\xe1\xfc\x62\x25\ \x92\xa4\x95\x88\x79\x44\x94\xd5\x6d\x24\xea\x4b\x40\xc8\x9f\xc0\ \x59\x6c\xc9\xeb\xb9\x61\xc8\xcb\x10\xad\xde\x97\x6a\x5d\x60\x2b\ \x1c\x3f\x85\xb9\xb9\xa0\x01\xed\x3c\x6a\x4d\x3b\x14\x37\xf5\x20\ \x96\xcd\x19\x56\xd0\x42\xa5\x97\xd5\x61\xa5\x96\xec\xd3\xd1\x73\ \x5a\x8d\x57\x0e\xa0\xec\x27\x22\x5a\x2c\x4a\xaf\xf2\x63\x06\xd1\ \x52\x6c\x1a\xf3\xca\x6d\x9c\xf5\xa2\xc9\x8f\x47\xe1\xc4\x6d\xb9\ \xa3\x32\x34\xcf\xd4\xd8\x1f\x2c\x98\x53\x8a\x09\xeb\xe7\x69\x98\ \xd0\xd8\xfd\x25\x99\x7c\x7d\x25\x5c\x6d\x66\xec\xe6\xfa\x56\xf1\ \x11\x44\x95\x0f\x02\x77\x95\xe6\x53\x00\x8f\x4b\xd7\xca\x2d\xee\ \x85\xd8\xe9\x0f\x3d\xc3\x15\x13\x0c\xe2\xa0\x03\x75\xa3\x18\xc7\ \xc3\xd9\x7b\xe2\xc8\xce\x5b\x6d\xb4\x1a\x62\x54\xff\x26\x4f\xa6\ \x15\x5b\xae\xe3\xb0\x77\x3c\x0f\x49\x7c\x57\x3f\x19\xbb\x4f\x42\ \x40\x28\x1f\x0b\x1f\x4f\x7b\xe8\x57\xa4\xe5\x9d\x41\x6c\x06\xb4\ \xc5\x0f\xa0\x9e\x18\x10\xdd\xc6\xb1\x46\x7b\xae\xac\x5a\x36\x68\ \xd1\x1b\x6e\xca\xa9\x01\x44\x00\x16\xf3\x89\xf8\x0a\xcc\x4d\xb9\ \x77\x02\x5e\x7f\x59\x24\x38\x8c\x7e\x34\x0a\x73\x2e\x55\x44\x40\ \xe7\x65\x70\xf8\xdd\x71\xb7\xd6\x40\xb3\x45\x0d\x1f\xd5\xf0\x41\ \x0a\x18\xf9\xa3\x49\x4f\x70\x7c\x71\x7b\x79\xb4\xbf\x75\xc9\x84\ \x00\xb0\x96\xb2\x16\x53\xb5\xd2\x17\xcf\x35\x65\xc9\x59\x74\x56\ \xf7\x07\x03\x49\x7a\x07\x87\x63\x82\x9b\xc0\x1b\xb1\xcb\xc8\xfa\ \x04\xea\xdc\x9a\x6e\x3f\x66\x99\x58\x7a\x9e\x75\xc9\x4e\x5b\xab\ \x00\x36\xe0\xb2\xe7\x11\x39\x2c\xff\x00\x47\xd0\xd6\xb0\x5b\xd2\ \xa5\x88\xbc\x10\x97\x18\x95\x42\x59\xf1\xd8\x66\x78\xa5\x79\xa3\ \x12\x0f\x19\xcf\xb2\x96\x3f\x17\x7a\xeb\x70\xf2\xd4\x84\x48\x26\ \x26\x2e\x51\xb8\x02\x71\x27\x20\x68\xef\x5b\x38\x56\xfa\x85\x35\ \xaa\x2a\x88\xb2\xd4\x1f\x2a\x0e\x2f\xda\x76\x24\xc2\x85\x02\x72\ \xac\x4a\x2f\x56\x1f\x8f\x2f\x7a\x31\x8b\xfd\x5c\xaf\x96\x96\x14\ \x9e\x4a\xc8\x24\xad\x34\x60\x53\x8f\xdc\x25\x42\x1b\xee\xc2\xcc\ \x68\x18\x16\x2d\x06\xbb\xed\x0c\x40\xa3\x87\x19\x23\x49\xdb\x67\ \xa1\x18\xba\xda\x6c\xd5\xab\x01\x40\xee\x27\x32\x04\xf6\x28\xaa\ \xd1\xc1\x35\xf7\x70\x27\x9a\x65\x1e\x24\xd8\xc1\x4d\x75\xa6\x05\ \x9d\x76\xb9\x6a\x6f\xd8\x57\xde\xf5\xe0\xb3\x54\xb2\x7a\xb9\x37\ \xa5\x81\x5d\x16\xb5\xfa\xe4\x07\xff\x18\x22\x2c\x6d\x1e\xd2\x63\ \xbe\x68\xc9\x5f\x32\xd9\x08\xbd\x89\x5c\xd7\x62\x07\xae\x72\x64\ \x87\x56\x7f\x9a\x67\xda\xd7\x9a\xbe\xc3\x16\xf6\x83\xb1\x7f\x2d\ \x02\xbf\x07\xe0\xac\x8b\x5b\xc6\x16\x2c\xf9\x46\x97\xb3\xc2\x7c\ \xd1\xfe\xa4\x9b\x27\xf2\x3b\xa2\x90\x18\x71\x96\x25\x06\x52\x0c\ \x39\x2d\xa8\xb6\xad\x0d\x99\xf7\x01\x3f\xbc\x06\xc2\xc1\x7a\x56\ \x95\x00\xc8\xa7\x69\x64\x81\xc1\xcd\x33\xe9\xb1\x4e\x40\xb8\x2e\ \x79\xa5\xf5\xdb\x82\x57\x1b\xa9\x7b\xae\x3a\xd3\xe0\x47\x95\x15\ \xbb\x0e\x2b\x0f\x3b\xfc\xd1\xfd\x33\x03\x4e\xfc\x62\x45\xed\xdd\ \x7e\xe2\x08\x6d\xda\xe2\x60\x0d\x8c\xa7\x3e\x21\x4e\x8c\x2b\x0b\ \xdb\x2b\x04\x7c\x6a\x46\x4a\x56\x2e\xd7\x7b\x73\xd2\xd8\x41\xc4\ \xb3\x49\x73\x55\x12\x57\x71\x3b\x75\x36\x32\xef\xba\x34\x81\x69\ \xab\xc9\x0a\x68\xf4\x26\x11\xa4\x01\x26\xd7\xcb\x21\xb5\x86\x95\ \x56\x81\x86\xf7\xe5\x69\xd2\xff\x0f\x9e\x74\x5d\x04\x87\xdd\x2e\ \xb9\x97\xca\xfc\x5a\xbf\x9d\xd1\x02\xe6\x2f\xf6\x6c\xba\x87", b"\ \xe3\x01\x34\x5a\x41\xa3\x9a\x4d\x72\xff\xf8\xdf\x69\xc9\x80\x75\ \xa0\xcc\x08\x2b\x80\x2f\xc9\xb2\xb6\xbc\x50\x3f\x92\x6b\x65\xbd\ \xdf\x7f\x4c\x8f\x1c\xb4\x9f\x63\x96\xaf\xc8\xa7\x0a\xbe\x6d\x8a\ \xef\x0d\xb4\x78\xd4\xc6\xb2\x97\x00\x76\xc6\xa0\x48\x4f\xe7\x6d\ \x76\xb3\xa9\x76\x25\xd7\x9f\x1c\xe2\x40\xe7\xc5\x76\x75\x0d\x29\ \x55\x28\x28\x6f\x71\x9b\x41\x3d\xe9\xad\xa3\xe8\xeb\x78\xed\x57\ \x36\x03\xce\x30\xd8\xbb\x76\x17\x85\xdc\x30\xdb\xc3\x20\x86\x9e\ \x1a\x00"); } #[test] fn smoke_test() { if ! nettle_sys::config::HAVE_CV448 { return; } let mut rng = Yarrow::default(); let msg = &b"Hello, World"[..]; let sk = private_key(&mut rng); let mut pk = vec![0u8; ED448_KEY_SIZE]; assert!(public_key(&mut pk[..], &sk[..]).is_ok()); let mut sig = vec![0u8; ED448_SIGNATURE_SIZE]; assert!(sign(&pk, &sk, msg, &mut sig).is_ok()); assert_eq!(verify(&pk, msg, &sig).ok(), Some(true)); } } nettle-7.1.0/src/errors.rs000064400000000000000000000020750072674642500136310ustar 00000000000000#[derive(Debug, thiserror::Error)] /// Nettle error type. pub enum Error { #[error("invalid argument name: {argument_name}")] /// Invalid input argument. InvalidArgument { /// Name of the invalid argument. argument_name: &'static str, }, #[error("signing failed")] /// Signing failed SigningFailed, #[error("encryption failed")] /// Encryption failed, EncryptionFailed, #[error("decryption failed")] /// Decryption failed, DecryptionFailed, #[error("key generation failed")] /// Key generation failed, KeyGenerationFailed, #[error("invalid q_bits and/or p_bits values")] /// Invalid q_bits and/or p_bits values. InvalidBitSizes, #[error("arguments are not on the same EC")] /// Arguments are not on the same EC. InconsistentCurves, } impl Error { pub(crate) fn invalid_argument(name: &'static str) -> Self { Error::InvalidArgument { argument_name: name, } } } /// Specialized Result type. pub type Result = ::std::result::Result; nettle-7.1.0/src/hash/hash.rs000064400000000000000000000061730072674642500141660ustar 00000000000000use nettle_sys::nettle_hash; /// Hash function. /// /// Cryptographic hash functions compute a fixed length checksum (also called digest) from variable length data. pub trait Hash { /// Size of the digest in bytes fn digest_size(&self) -> usize; /// Writes data into the hash function. fn update(&mut self, data: &[u8]); /// Finalizes the hash function and writes the digest into the provided slice. /// /// `digest` must be at least DIGEST_SIZE bytes large, otherwise /// the digest will be truncated. Resets the hash function /// contexts. fn digest(&mut self, digest: &mut [u8]); /// Clones the hash context into a Box. fn box_clone(&self) -> Box; } impl_write_for_hash!(dyn Hash); /// Nettle context a.k.a. `_ctx` of this hash pub trait NettleHash: Hash + Default { #[doc(hidden)] type Context: Sized; /// Pointer to the `nettle_hash` structure for this hash. unsafe fn nettle_hash() -> &'static nettle_hash; } impl Hash for Box { fn digest_size(&self) -> usize { self.as_ref().digest_size() } fn update(&mut self, data: &[u8]) { self.as_mut().update(data) } fn digest(&mut self, digest: &mut [u8]) { self.as_mut().digest(digest) } fn box_clone(&self) -> Box { self.as_ref().box_clone() } } impl Clone for Box { fn clone(&self) -> Self { self.as_ref().box_clone() } } #[cfg(test)] mod tests { use crate::hash::{Hash, Sha224, Sha256, Sha3_512}; #[test] fn polymorphic_one_shot() { fn hash_with(data: &[u8]) -> Vec { let mut h = H::default(); let mut ret = vec![0u8; h.digest_size()]; h.update(data); h.digest(&mut ret); ret } let test = &b"test123"[..]; hash_with::(test); hash_with::(test); } #[test] fn polymorphic_multiple() { fn hash_with(hash: &mut H, data: &[u8]) { hash.update(data); } let test = &b"test123"[..]; { let mut h = Sha224::default(); let mut ret = vec![0u8; h.digest_size()]; hash_with(&mut h, test); h.digest(&mut ret); } { let mut h = Sha3_512::default(); let mut ret = vec![0u8; h.digest_size()]; hash_with(&mut h, test); h.digest(&mut ret); } } #[test] fn write_trait() { use std::io::Write; let mut h0 = Sha256::default(); let mut d0 = [0u8; 256 / 8]; let mut h1: Box = Box::new(Sha256::default()); let mut d1 = [0u8; 256 / 8]; let mut h2 = Sha256::default(); let mut d2 = [0u8; 256 / 8]; fn hash(hash: &mut H) { hash.write_all(&b"test123"[..]).unwrap(); } hash(&mut h0); hash(&mut h1); h2.update(&b"test123"[..]); h0.digest(&mut d0); h1.digest(&mut d1); h2.digest(&mut d2); assert_eq!(d0, d2); assert_eq!(d1, d2); } } nettle-7.1.0/src/hash/insecure_do_not_use/gosthash94.rs000064400000000000000000000037750072674642500213000ustar 00000000000000use nettle_sys::{ gosthash94_ctx, nettle_gosthash94, nettle_gosthash94_digest, nettle_gosthash94_init, nettle_gosthash94_update, nettle_hash, GOSTHASH94_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// GOST R 34.11-94 (GOSTHASH94) defined in RFC 5831. /// /// # Note /// GOSTHASH94 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct GostHash94 { context: gosthash94_ctx, } impl_write_for_hash!(GostHash94); impl Clone for GostHash94 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: gosthash94_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); GostHash94 { context: ctx } } } } impl Default for GostHash94 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_gosthash94_init(&mut ctx as *mut _); } GostHash94 { context: ctx } } } impl Hash for GostHash94 { fn digest_size(&self) -> usize { GOSTHASH94_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_gosthash94_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_gosthash94_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for GostHash94 { type Context = gosthash94_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_gosthash94 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = GostHash94::default(); } } nettle-7.1.0/src/hash/insecure_do_not_use/md2.rs000064400000000000000000000067030072674642500177570ustar 00000000000000use nettle_sys::{ md2_ctx, nettle_hash, nettle_md2, nettle_md2_digest, nettle_md2_init, nettle_md2_update, MD2_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// Message-Digest Algorithm 2 (MD2) defined in RFC 1319. /// /// # Note /// MD2 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct Md2 { context: md2_ctx, } impl_write_for_hash!(Md2); impl Clone for Md2 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: md2_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Md2 { context: ctx } } } } impl Default for Md2 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_md2_init(&mut ctx as *mut _); } Md2 { context: ctx } } } impl Hash for Md2 { fn digest_size(&self) -> usize { MD2_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_md2_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_md2_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Md2 { type Context = md2_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_md2 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Md2::default(); } #[test] fn rfc_1319() { let mut ctx = Md2::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!( digest, b"\x83\x50\xe5\xa3\xe2\x4c\x15\x3d\xf2\x27\x5c\x9f\x80\x69\x27\x73" ); ctx.update(b"a"); ctx.digest(&mut digest); assert_eq!( digest, b"\x32\xec\x01\xec\x4a\x6d\xac\x72\xc0\xab\x96\xfb\x34\xc0\xb5\xd1" ); ctx.update(b"abc"); ctx.digest(&mut digest); assert_eq!( digest, b"\xda\x85\x3b\x0d\x3f\x88\xd9\x9b\x30\x28\x3a\x69\xe6\xde\xd6\xbb" ); ctx.update(b"message digest"); ctx.digest(&mut digest); assert_eq!( digest, b"\xab\x4f\x49\x6b\xfb\x2a\x53\x0b\x21\x9f\xf3\x30\x31\xfe\x06\xb0" ); ctx.update(b"abcdefghijklmnopqrstuvwxyz"); ctx.digest(&mut digest); assert_eq!( digest, b"\x4e\x8d\xdf\xf3\x65\x02\x92\xab\x5a\x41\x08\xc3\xaa\x47\x94\x0b" ); ctx.update( b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ); ctx.digest(&mut digest); assert_eq!( digest, b"\xda\x33\xde\xf2\xa4\x2d\xf1\x39\x75\x35\x28\x46\xc3\x03\x38\xcd" ); ctx.update(b"12345678901234567890123456789012345678901234567890123456789012345678901234567890"); ctx.digest(&mut digest); assert_eq!( digest, b"\xd5\x97\x6f\x79\xd8\x3d\x3a\x0d\xc9\x80\x6c\x3c\x66\xf3\xef\xd8" ); } } nettle-7.1.0/src/hash/insecure_do_not_use/md4.rs000064400000000000000000000067030072674642500177610ustar 00000000000000use nettle_sys::{ md4_ctx, nettle_hash, nettle_md4, nettle_md4_digest, nettle_md4_init, nettle_md4_update, MD4_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// Message-Digest Algorithm 4 (MD4) defined in RFC 1320. /// /// # Note /// MD4 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct Md4 { context: md4_ctx, } impl_write_for_hash!(Md4); impl Clone for Md4 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: md4_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Md4 { context: ctx } } } } impl Default for Md4 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_md4_init(&mut ctx as *mut _); } Md4 { context: ctx } } } impl Hash for Md4 { fn digest_size(&self) -> usize { MD4_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_md4_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_md4_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Md4 { type Context = md4_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_md4 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Md4::default(); } #[test] fn rfc_1320() { let mut ctx = Md4::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!( digest, b"\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0" ); ctx.update(b"a"); ctx.digest(&mut digest); assert_eq!( digest, b"\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46\x24\x5e\x05\xfb\xdb\xd6\xfb\x24" ); ctx.update(b"abc"); ctx.digest(&mut digest); assert_eq!( digest, b"\xa4\x48\x01\x7a\xaf\x21\xd8\x52\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d" ); ctx.update(b"message digest"); ctx.digest(&mut digest); assert_eq!( digest, b"\xd9\x13\x0a\x81\x64\x54\x9f\xe8\x18\x87\x48\x06\xe1\xc7\x01\x4b" ); ctx.update(b"abcdefghijklmnopqrstuvwxyz"); ctx.digest(&mut digest); assert_eq!( digest, b"\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd\xee\xa8\xed\x63\xdf\x41\x2d\xa9" ); ctx.update( b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ); ctx.digest(&mut digest); assert_eq!( digest, b"\x04\x3f\x85\x82\xf2\x41\xdb\x35\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4" ); ctx.update(b"12345678901234567890123456789012345678901234567890123456789012345678901234567890"); ctx.digest(&mut digest); assert_eq!( digest, b"\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19\x9c\x3e\x7b\x16\x4f\xcc\x05\x36" ); } } nettle-7.1.0/src/hash/insecure_do_not_use/md5.rs000064400000000000000000000067030072674642500177620ustar 00000000000000use nettle_sys::{ md5_ctx, nettle_hash, nettle_md5, nettle_md5_digest, nettle_md5_init, nettle_md5_update, MD5_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// Message-Digest Algorithm 5 (MD5) defined in RFC 1321. /// /// # Note /// MD5 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct Md5 { context: md5_ctx, } impl_write_for_hash!(Md5); impl Clone for Md5 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: md5_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Md5 { context: ctx } } } } impl Default for Md5 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_md5_init(&mut ctx as *mut _); } Md5 { context: ctx } } } impl Hash for Md5 { fn digest_size(&self) -> usize { MD5_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_md5_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_md5_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Md5 { type Context = md5_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_md5 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Md5::default(); } #[test] fn rfc_1321() { let mut ctx = Md5::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!( digest, b"\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04\xe9\x80\x09\x98\xec\xf8\x42\x7e" ); ctx.update(b"a"); ctx.digest(&mut digest); assert_eq!( digest, b"\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8\x31\xc3\x99\xe2\x69\x77\x26\x61" ); ctx.update(b"abc"); ctx.digest(&mut digest); assert_eq!( digest, b"\x90\x01\x50\x98\x3c\xd2\x4f\xb0\xd6\x96\x3f\x7d\x28\xe1\x7f\x72" ); ctx.update(b"message digest"); ctx.digest(&mut digest); assert_eq!( digest, b"\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d\x52\x5a\x2f\x31\xaa\xf1\x61\xd0" ); ctx.update(b"abcdefghijklmnopqrstuvwxyz"); ctx.digest(&mut digest); assert_eq!( digest, b"\xc3\xfc\xd3\xd7\x61\x92\xe4\x00\x7d\xfb\x49\x6c\xca\x67\xe1\x3b" ); ctx.update( b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ); ctx.digest(&mut digest); assert_eq!( digest, b"\xd1\x74\xab\x98\xd2\x77\xd9\xf5\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f" ); ctx.update(b"12345678901234567890123456789012345678901234567890123456789012345678901234567890"); ctx.digest(&mut digest); assert_eq!( digest, b"\x57\xed\xf4\xa2\x2b\xe3\xc9\x55\xac\x49\xda\x2e\x21\x07\xb6\x7a" ); } } nettle-7.1.0/src/hash/insecure_do_not_use/mod.rs000064400000000000000000000006170072674642500200520ustar 00000000000000//! Broken hash functions. //! //! The algorithms in this module are known to be broken or too short to be secure. Only use them //! for legacy applications. mod sha1; pub use self::sha1::Sha1; mod md2; pub use self::md2::Md2; mod md4; pub use self::md4::Md4; mod md5; pub use self::md5::Md5; mod ripemd160; pub use self::ripemd160::Ripemd160; mod gosthash94; pub use self::gosthash94::GostHash94; nettle-7.1.0/src/hash/insecure_do_not_use/ripemd160.rs000064400000000000000000000067450072674642500210120ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_ripemd160, nettle_ripemd160_digest, nettle_ripemd160_init, nettle_ripemd160_update, ripemd160_ctx, RIPEMD160_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// RIPEMD-160 defined in ISO/IEC 10118-3:1998. /// /// # Note /// RIPEMD-160 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct Ripemd160 { context: ripemd160_ctx, } impl_write_for_hash!(Ripemd160); impl Clone for Ripemd160 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: ripemd160_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Ripemd160 { context: ctx } } } } impl Default for Ripemd160 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_ripemd160_init(&mut ctx as *mut _); } Ripemd160 { context: ctx } } } impl Hash for Ripemd160 { fn digest_size(&self) -> usize { RIPEMD160_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_ripemd160_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_ripemd160_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Ripemd160 { type Context = ripemd160_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_ripemd160 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Ripemd160::default(); } #[test] fn bosselaers_test_vectors() { let mut ctx = Ripemd160::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, b"\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31"); ctx.update(b"a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe"); ctx.update(b"abc"); ctx.digest(&mut digest); assert_eq!(digest, b"\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc"); ctx.update(b"message digest"); ctx.digest(&mut digest); assert_eq!(digest, b"\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36"); ctx.update(b"abcdefghijklmnopqrstuvwxyz"); ctx.digest(&mut digest); assert_eq!(digest, b"\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc"); ctx.update( b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", ); ctx.digest(&mut digest); assert_eq!(digest, b"\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89"); ctx.update(b"12345678901234567890123456789012345678901234567890123456789012345678901234567890"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb"); } } nettle-7.1.0/src/hash/insecure_do_not_use/sha1.rs000064400000000000000000000523510072674642500201310ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha1, nettle_sha1_digest, nettle_sha1_init, nettle_sha1_update, sha1_ctx, SHA1_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// Secure Hash Algorithm 1 (SHA-1) defined in FIPS 180-4 /// /// # Note /// SHA-1 is no longer considered a secure cryptographic hash function. Only use it for legacy /// applications. pub struct Sha1 { context: sha1_ctx, } impl_write_for_hash!(Sha1); impl Clone for Sha1 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha1_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha1 { context: ctx } } } } impl Default for Sha1 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha1_init(&mut ctx as *mut _); } Sha1 { context: ctx } } } impl Hash for Sha1 { fn digest_size(&self) -> usize { SHA1_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha1_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha1_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha1 { type Context = sha1_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha1 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha1::default(); } // CAVS 11.0 // "SHA-1 ShortMsg" information // SHA-1 tests are configured for BYTE oriented implementations // Generated on Tue Mar 15 08:23:35 2011 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha1::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, b"\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09"); ctx.update(b"\x36"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc1\xdf\xd9\x6e\xea\x8c\xc2\xb6\x27\x85\x27\x5b\xca\x38\xac\x26\x12\x56\xe2\x78"); ctx.update(b"\x19\x5a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0a\x1c\x2d\x55\x5b\xbe\x43\x1a\xd6\x28\x8a\xf5\xa5\x4f\x93\xe0\x44\x9c\x92\x32"); ctx.update(b"\xdf\x4b\xd2"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbf\x36\xed\x5d\x74\x72\x7d\xfd\x5d\x78\x54\xec\x6b\x1d\x49\x46\x8d\x8e\xe8\xaa"); ctx.update(b"\x54\x9e\x95\x9e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb7\x8b\xae\x6d\x14\x33\x8f\xfc\xcf\xd5\xd5\xb5\x67\x4a\x27\x5f\x6e\xf9\xc7\x17"); ctx.update(b"\xf7\xfb\x1b\xe2\x05"); ctx.digest(&mut digest); assert_eq!(digest, b"\x60\xb7\xd5\xbb\x56\x0a\x1a\xcf\x6f\xa4\x57\x21\xbd\x0a\xbb\x41\x9a\x84\x1a\x89"); ctx.update(b"\xc0\xe5\xab\xea\xea\x63"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa6\xd3\x38\x45\x97\x80\xc0\x83\x63\x09\x0f\xd8\xfc\x7d\x28\xdc\x80\xe8\xe0\x1f"); ctx.update(b"\x63\xbf\xc1\xed\x7f\x78\xab"); ctx.digest(&mut digest); assert_eq!(digest, b"\x86\x03\x28\xd8\x05\x09\x50\x0c\x17\x83\x16\x9e\xbf\x0b\xa0\xc4\xb9\x4d\xa5\xe5"); ctx.update(b"\x7e\x3d\x7b\x3e\xad\xa9\x88\x66"); ctx.digest(&mut digest); assert_eq!(digest, b"\x24\xa2\xc3\x4b\x97\x63\x05\x27\x7c\xe5\x8c\x2f\x42\xd5\x09\x20\x31\x57\x25\x20"); ctx.update(b"\x9e\x61\xe5\x5d\x9e\xd3\x7b\x1c\x20"); ctx.digest(&mut digest); assert_eq!(digest, b"\x41\x1c\xce\xe1\xf6\xe3\x67\x7d\xf1\x26\x98\x41\x1e\xb0\x9d\x3f\xf5\x80\xaf\x97"); ctx.update(b"\x97\x77\xcf\x90\xdd\x7c\x7e\x86\x35\x06"); ctx.digest(&mut digest); assert_eq!(digest, b"\x05\xc9\x15\xb5\xed\x4e\x4c\x4a\xff\xfc\x20\x29\x61\xf3\x17\x43\x71\xe9\x0b\x5c"); ctx.update(b"\x4e\xb0\x8c\x9e\x68\x3c\x94\xbe\xa0\x0d\xfa"); ctx.digest(&mut digest); assert_eq!(digest, b"\xaf\x32\x0b\x42\xd7\x78\x5c\xa6\xc8\xdd\x22\x04\x63\xbe\x23\xa2\xd2\xcb\x5a\xfc"); ctx.update(b"\x09\x38\xf2\xe2\xeb\xb6\x4f\x8a\xf8\xbb\xfc\x91"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9f\x4e\x66\xb6\xce\xea\x40\xdc\xf4\xb9\x16\x6c\x28\xf1\xc8\x84\x74\x14\x1d\xa9"); ctx.update(b"\x74\xc9\x99\x6d\x14\xe8\x7d\x3e\x6c\xbe\xa7\x02\x9d"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe6\xc4\x36\x3c\x08\x52\x95\x19\x91\x05\x7f\x40\xde\x27\xec\x08\x90\x46\x6f\x01"); ctx.update(b"\x51\xdc\xa5\xc0\xf8\xe5\xd4\x95\x96\xf3\x2d\x3e\xb8\x74"); ctx.digest(&mut digest); assert_eq!(digest, b"\x04\x6a\x7b\x39\x6c\x01\x37\x9a\x68\x4a\x89\x45\x58\x77\x9b\x07\xd8\xc7\xda\x20"); ctx.update( b"\x3a\x36\xea\x49\x68\x48\x20\xa2\xad\xc7\xfc\x41\x75\xba\x78", ); ctx.digest(&mut digest); assert_eq!(digest, b"\xd5\x8a\x26\x2e\xe7\xb6\x57\x7c\x07\x22\x8e\x71\xae\x9b\x3e\x04\xc8\xab\xcd\xa9"); ctx.update( b"\x35\x52\x69\x4c\xdf\x66\x3f\xd9\x4b\x22\x47\x47\xac\x40\x6a\xaf", ); ctx.digest(&mut digest); assert_eq!(digest, b"\xa1\x50\xde\x92\x74\x54\x20\x2d\x94\xe6\x56\xde\x4c\x7c\x0c\xa6\x91\xde\x95\x5d"); ctx.update(b"\xf2\x16\xa1\xcb\xde\x24\x46\xb1\xed\xf4\x1e\x93\x48\x1d\x33\xe2\xed"); ctx.digest(&mut digest); assert_eq!(digest, b"\x35\xa4\xb3\x9f\xef\x56\x0e\x7e\xa6\x12\x46\x67\x6e\x1b\x7e\x13\xd5\x87\xbe\x30"); ctx.update(b"\xa3\xcf\x71\x4b\xf1\x12\x64\x7e\x72\x7e\x8c\xfd\x46\x49\x9a\xcd\x35\xa6"); ctx.digest(&mut digest); assert_eq!(digest, b"\x7c\xe6\x9b\x1a\xcd\xce\x52\xea\x7d\xbd\x38\x25\x31\xfa\x1a\x83\xdf\x13\xca\xe7"); ctx.update(b"\x14\x8d\xe6\x40\xf3\xc1\x15\x91\xa6\xf8\xc5\xc4\x86\x32\xc5\xfb\x79\xd3\xb7"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb4\x7b\xe2\xc6\x41\x24\xfa\x9a\x12\x4a\x88\x7a\xf9\x55\x1a\x74\x35\x4c\xa4\x11"); ctx.update(b"\x63\xa3\xcc\x83\xfd\x1e\xc1\xb6\x68\x0e\x99\x74\xa0\x51\x4e\x1a\x9e\xce\xbb\x6a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x8b\xb8\xc0\xd8\x15\xa9\xc6\x8a\x1d\x29\x10\xf3\x9d\x94\x26\x03\xd8\x07\xfb\xcc"); ctx.update(b"\x87\x5a\x90\x90\x9a\x8a\xfc\x92\xfb\x70\x70\x04\x7e\x9d\x08\x1e\xc9\x2f\x3d\x08\xb8"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb4\x86\xf8\x7f\xb8\x33\xeb\xf0\x32\x83\x93\x12\x86\x46\xa6\xf6\xe6\x60\xfc\xb1"); ctx.update(b"\x44\x4b\x25\xf9\xc9\x25\x9d\xc2\x17\x77\x2c\xc4\x47\x8c\x44\xb6\xfe\xff\x62\x35\x36\x73"); ctx.digest(&mut digest); assert_eq!(digest, b"\x76\x15\x93\x68\xf9\x9d\xec\xe3\x0a\xad\xcf\xb9\xb7\xb4\x1d\xab\x33\x68\x88\x58"); ctx.update(b"\x48\x73\x51\xc8\xa5\xf4\x40\xe4\xd0\x33\x86\x48\x3d\x5f\xe7\xbb\x66\x9d\x41\xad\xcb\xfd\xb7"); ctx.digest(&mut digest); assert_eq!(digest, b"\xdb\xc1\xcb\x57\x5c\xe6\xae\xb9\xdc\x4e\xbf\x0f\x84\x3b\xa8\xae\xb1\x45\x1e\x89"); ctx.update(b"\x46\xb0\x61\xef\x13\x2b\x87\xf6\xd3\xb0\xee\x24\x62\xf6\x7d\x91\x09\x77\xda\x20\xae\xd1\x37\x05"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd7\xa9\x82\x89\x67\x90\x05\xeb\x93\x0a\xb7\x5e\xfd\x8f\x65\x0f\x99\x1e\xe9\x52"); ctx.update(b"\x38\x42\xb6\x13\x7b\xb9\xd2\x7f\x3c\xa5\xba\xfe\x5b\xbb\x62\x85\x83\x44\xfe\x4b\xa5\xc4\x15\x89\xa5"); ctx.digest(&mut digest); assert_eq!(digest, b"\xfd\xa2\x6f\xa9\xb4\x87\x4a\xb7\x01\xed\x0b\xb6\x4d\x13\x4f\x89\xb9\xc4\xcc\x50"); ctx.update(b"\x44\xd9\x1d\x3d\x46\x5a\x41\x11\x46\x2b\xa0\xc7\xec\x22\x3d\xa6\x73\x5f\x4f\x52\x00\x45\x3c\xf1\x32\xc3"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc2\xff\x7c\xcd\xe1\x43\xc8\xf0\x60\x1f\x69\x74\xb1\x90\x3e\xb8\xd5\x74\x1b\x6e"); ctx.update(b"\xcc\xe7\x3f\x2e\xab\xcb\x52\xf7\x85\xd5\xa6\xdf\x63\xc0\xa1\x05\xf3\x4a\x91\xca\x23\x7f\xe5\x34\xee\x39\x9d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x64\x3c\x9d\xc2\x0a\x92\x96\x08\xf6\xca\xa9\x70\x9d\x84\x3c\xa6\xfa\x7a\x76\xf4"); ctx.update(b"\x66\x4e\x6e\x79\x46\x83\x92\x03\x03\x7a\x65\xa1\x21\x74\xb2\x44\xde\x8c\xbc\x6e\xc3\xf5\x78\x96\x7a\x84\xf9\xce"); ctx.digest(&mut digest); assert_eq!(digest, b"\x50\x9e\xf7\x87\x34\x3d\x5b\x5a\x26\x92\x29\xb9\x61\xb9\x62\x41\x86\x4a\x3d\x74"); ctx.update(b"\x95\x97\xf7\x14\xb2\xe4\x5e\x33\x99\xa7\xf0\x2a\xec\x44\x92\x1b\xd7\x8b\xe0\xfe\xfe\xe0\xc5\xe9\xb4\x99\x48\x8f\x6e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb6\x1c\xe5\x38\xf1\xa1\xe6\xc9\x04\x32\xb2\x33\xd7\xaf\x5b\x65\x24\xeb\xfb\xe3"); ctx.update(b"\x75\xc5\xad\x1f\x3c\xbd\x22\xe8\xa9\x5f\xc3\xb0\x89\x52\x67\x88\xfb\x4e\xbc\xee\xd3\xe7\xd4\x44\x3d\xa6\xe0\x81\xa3\x5e"); ctx.digest(&mut digest); assert_eq!(digest, b"\x5b\x7b\x94\x07\x6b\x2f\xc2\x0d\x6a\xdb\x82\x47\x9e\x6b\x28\xd0\x7c\x90\x2b\x75"); ctx.update(b"\xdd\x24\x5b\xff\xe6\xa6\x38\x80\x66\x67\x76\x83\x60\xa9\x5d\x05\x74\xe1\xa0\xbd\x0d\x18\x32\x9f\xdb\x91\x5c\xa4\x84\xac\x0d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x60\x66\xdb\x99\xfc\x35\x89\x52\xcf\x7f\xb0\xec\x4d\x89\xcb\x01\x58\xed\x91\xd7"); ctx.update(b"\x03\x21\x79\x4b\x73\x94\x18\xc2\x4e\x7c\x2e\x56\x52\x74\x79\x1c\x4b\xe7\x49\x75\x2a\xd2\x34\xed\x56\xcb\x0a\x63\x47\x43\x0c\x6b"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb8\x99\x62\xc9\x4d\x60\xf6\xa3\x32\xfd\x60\xf6\xf0\x7d\x4f\x03\x2a\x58\x6b\x76"); ctx.update(b"\x4c\x3d\xcf\x95\xc2\xf0\xb5\x25\x8c\x65\x1f\xcd\x1d\x51\xbd\x10\x42\x5d\x62\x03\x06\x7d\x07\x48\xd3\x7d\x13\x40\xd9\xdd\xda\x7d\xb3"); ctx.digest(&mut digest); assert_eq!(digest, b"\x17\xbd\xa8\x99\xc1\x3d\x35\x41\x3d\x25\x46\x21\x2b\xcd\x8a\x93\xce\xb0\x65\x7b"); ctx.update(b"\xb8\xd1\x25\x82\xd2\x5b\x45\x29\x0a\x6e\x1b\xb9\x5d\xa4\x29\xbe\xfc\xfd\xbf\x5b\x4d\xd4\x1c\xdf\x33\x11\xd6\x98\x8f\xa1\x7c\xec\x07\x23"); ctx.digest(&mut digest); assert_eq!(digest, b"\xba\xdc\xdd\x53\xfd\xc1\x44\xb8\xbf\x2c\xc1\xe6\x4d\x10\xf6\x76\xee\xbe\x66\xed"); ctx.update(b"\x6f\xda\x97\x52\x7a\x66\x25\x52\xbe\x15\xef\xae\xba\x32\xa3\xae\xa4\xed\x44\x9a\xbb\x5c\x1e\xd8\xd9\xbf\xff\x54\x47\x08\xa4\x25\xd6\x9b\x72"); ctx.digest(&mut digest); assert_eq!(digest, b"\x01\xb4\x64\x61\x80\xf1\xf6\xd2\xe0\x6b\xbe\x22\xc2\x0e\x50\x03\x03\x22\x67\x3a"); ctx.update(b"\x09\xfa\x27\x92\xac\xbb\x24\x17\xe8\xed\x26\x90\x41\xcc\x03\xc7\x70\x06\x46\x6e\x6e\x7a\xe0\x02\xcf\x3f\x1a\xf5\x51\xe8\xce\x0b\xb5\x06\xd7\x05"); ctx.digest(&mut digest); assert_eq!(digest, b"\x10\x01\x6d\xc3\xa2\x71\x9f\x90\x34\xff\xcc\x68\x94\x26\xd2\x82\x92\xc4\x2f\xc9"); ctx.update(b"\x5e\xfa\x29\x87\xda\x0b\xaf\x0a\x54\xd8\xd7\x28\x79\x2b\xcf\xa7\x07\xa1\x57\x98\xdc\x66\x74\x37\x54\x40\x69\x14\xd1\xcf\xe3\x70\x9b\x13\x74\xea\xeb"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9f\x42\xfa\x2b\xce\x6e\xf0\x21\xd9\x3c\x6b\x2d\x90\x22\x73\x79\x7e\x42\x65\x35"); ctx.update(b"\x28\x36\xde\x99\xc0\xf6\x41\xcd\x55\xe8\x9f\x5a\xf7\x66\x38\x94\x7b\x82\x27\x37\x7e\xf8\x8b\xfb\xa6\x62\xe5\x68\x2b\xab\xc1\xec\x96\xc6\x99\x2b\xc9\xa0"); ctx.digest(&mut digest); assert_eq!(digest, b"\xcd\xf4\x8b\xac\xbf\xf6\xf6\x15\x25\x15\x32\x3f\x9b\x43\xa2\x86\xe0\xcb\x81\x13"); ctx.update(b"\x42\x14\x3a\x2b\x9e\x1d\x0b\x35\x4d\xf3\x26\x4d\x08\xf7\xb6\x02\xf5\x4a\xad\x92\x2a\x3d\x63\x00\x6d\x09\x7f\x68\x3d\xc1\x1b\x90\x17\x84\x23\xbf\xf2\xf7\xfe"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb8\x8f\xb7\x52\x74\xb9\xb0\xfd\x57\xc0\x04\x59\x88\xcf\xce\xf6\xc3\xce\x65\x54"); ctx.update(b"\xeb\x60\xc2\x8a\xd8\xae\xda\x80\x7d\x69\xeb\xc8\x75\x52\x02\x4a\xd8\xac\xa6\x82\x04\xf1\xbc\xd2\x9d\xc5\xa8\x1d\xd2\x28\xb5\x91\xe2\xef\xb7\xc4\xdf\x75\xef\x03"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc0\x6d\x3a\x6a\x12\xd9\xe8\xdb\x62\xe8\xcf\xf4\x0c\xa2\x38\x20\xd6\x1d\x8a\xa7"); ctx.update(b"\x7d\xe4\xba\x85\xec\x54\x74\x7c\xdc\x42\xb1\xf2\x35\x46\xb7\xe4\x90\xe3\x12\x80\xf0\x66\xe5\x2f\xac\x11\x7f\xd3\xb0\x79\x2e\x4d\xe6\x2d\x58\x43\xee\x98\xc7\x20\x15"); ctx.digest(&mut digest); assert_eq!(digest, b"\x6e\x40\xf9\xe8\x3a\x4b\xe9\x38\x74\xbc\x97\xcd\xeb\xb8\xda\x68\x89\xae\x2c\x7a"); ctx.update(b"\xe7\x06\x53\x63\x7b\xc5\xe3\x88\xcc\xd8\xdc\x44\xe5\xea\xce\x36\xf7\x39\x8f\x2b\xac\x99\x30\x42\xb9\xbc\x2f\x4f\xb3\xb0\xee\x7e\x23\xa9\x64\x39\xdc\x01\x13\x4b\x8c\x7d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x3e\xfc\x94\x0c\x31\x2e\xf0\xdf\xd4\xe1\x14\x38\x12\x24\x8d\xb8\x95\x42\xf6\xa5"); ctx.update(b"\xdd\x37\xbc\x9f\x0b\x3a\x47\x88\xf9\xb5\x49\x66\xf2\x52\x17\x4c\x8c\xe4\x87\xcb\xe5\x9c\x53\xc2\x2b\x81\xbf\x77\x62\x1a\x7c\xe7\x61\x6d\xcb\x5b\x1e\x2e\xe6\x3c\x2c\x30\x9b"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa0\xcf\x03\xf7\xba\xdd\x0c\x3c\x3c\x4e\xa3\x71\x7f\x5a\x4f\xb7\xe6\x7b\x2e\x56"); ctx.update(b"\x5f\x48\x5c\x63\x7a\xe3\x0b\x1e\x30\x49\x7f\x0f\xb7\xec\x36\x4e\x13\xc9\x06\xe2\x81\x3d\xaa\x34\x16\x1b\x7a\xc4\xa4\xfd\x7a\x1b\xdd\xd7\x96\x01\xbb\xd2\x2c\xef\x1f\x57\xcb\xc7"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa5\x44\xe0\x6f\x1a\x07\xce\xb1\x75\xa5\x1d\x6d\x9c\x01\x11\xb3\xe1\x5e\x98\x59"); ctx.update(b"\xf6\xc2\x37\xfb\x3c\xfe\x95\xec\x84\x14\xcc\x16\xd2\x03\xb4\x87\x4e\x64\x4c\xc9\xa5\x43\x46\x5c\xad\x2d\xc5\x63\x48\x8a\x65\x9e\x8a\x2e\x7c\x98\x1e\x2a\x9f\x22\xe5\xe8\x68\xff\xe1"); ctx.digest(&mut digest); assert_eq!(digest, b"\x19\x9d\x98\x6e\xd9\x91\xb9\x9a\x07\x1f\x45\x0c\x6b\x11\x21\xa7\x27\xe8\xc7\x35"); ctx.update(b"\xda\x7a\xb3\x29\x15\x53\xc6\x59\x87\x3c\x95\x91\x37\x68\x95\x3c\x6e\x52\x6d\x3a\x26\x59\x08\x98\xc0\xad\xe8\x9f\xf5\x6f\xbd\x11\x0f\x14\x36\xaf\x59\x0b\x17\xfe\xd4\x9f\x8c\x4b\x2b\x1e"); ctx.digest(&mut digest); assert_eq!(digest, b"\x33\xba\xc6\x10\x4b\x0a\xd6\x12\x8d\x09\x1b\x5d\x5e\x29\x99\x09\x9c\x9f\x05\xde"); ctx.update(b"\x8c\xfa\x5f\xd5\x6e\xe2\x39\xca\x47\x73\x75\x91\xcb\xa1\x03\xe4\x1a\x18\xac\xf8\xe8\xd2\x57\xb0\xdb\xe8\x85\x11\x34\xa8\x1f\xf6\xb2\xe9\x71\x04\xb3\x9b\x76\xe1\x9d\xa2\x56\xa1\x7c\xe5\x2d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x76\xd7\xdb\x6e\x18\xc1\xf4\xae\x22\x5c\xe8\xcc\xc9\x3c\x8f\x9a\x0d\xfe\xb9\x69"); ctx.update(b"\x57\xe8\x96\x59\xd8\x78\xf3\x60\xaf\x6d\xe4\x5a\x9a\x5e\x37\x2e\xf4\x0c\x38\x49\x88\xe8\x26\x40\xa3\xd5\xe4\xb7\x6d\x2e\xf1\x81\x78\x0b\x9a\x09\x9a\xc0\x6e\xf0\xf8\xa7\xf3\xf7\x64\x20\x97\x20"); ctx.digest(&mut digest); assert_eq!(digest, b"\xf6\x52\xf3\xb1\x54\x9f\x16\x71\x0c\x74\x02\x89\x59\x11\xe2\xb8\x6a\x9b\x2a\xee"); ctx.update(b"\xb9\x1e\x64\x23\x5d\xbd\x23\x4e\xea\x2a\xe1\x4a\x92\xa1\x73\xeb\xe8\x35\x34\x72\x39\xcf\xf8\xb0\x20\x74\x41\x6f\x55\xc6\xb6\x0d\xc6\xce\xd0\x6a\xe9\xf8\xd7\x05\x50\x5f\x0d\x61\x7e\x4b\x29\xae\xf9"); ctx.digest(&mut digest); assert_eq!(digest, b"\x63\xfa\xeb\xb8\x07\xf3\x2b\xe7\x08\xcf\x00\xfc\x35\x51\x99\x91\xdc\x4e\x7f\x68"); ctx.update(b"\xe4\x2a\x67\x36\x2a\x58\x1e\x8c\xf3\xd8\x47\x50\x22\x15\x75\x5d\x7a\xd4\x25\xca\x03\x0c\x43\x60\xb0\xf7\xef\x51\x3e\x69\x80\x26\x5f\x61\xc9\xfa\x18\xdd\x9c\xe6\x68\xf3\x8d\xbc\x2a\x1e\xf8\xf8\x3c\xd6"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0e\x67\x30\xbc\x4a\x0e\x93\x22\xea\x20\x5f\x4e\xdf\xff\x1f\xff\xda\x26\xaf\x0a"); ctx.update(b"\x63\x4d\xb9\x2c\x22\x01\x0e\x1c\xbf\x1e\x16\x23\x92\x31\x80\x40\x6c\x51\x52\x72\x20\x9a\x8a\xcc\x42\xde\x05\xcc\x2e\x96\xa1\xe9\x4c\x1f\x9f\x6b\x93\x23\x4b\x7f\x4c\x55\xde\x8b\x19\x61\xa3\xbf\x35\x22\x59"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb6\x1a\x3a\x6f\x42\xe8\xe6\x60\x4b\x93\x19\x6c\x43\xc9\xe8\x4d\x53\x59\xe6\xfe"); ctx.update(b"\xcc\x6c\xa3\xa8\xcb\x39\x1c\xd8\xa5\xaf\xf1\xfa\xa7\xb3\xff\xbd\xd2\x1a\x5a\x3c\xe6\x6c\xfa\xdd\xbf\xe8\xb1\x79\xe4\xc8\x60\xbe\x5e\xc6\x6b\xd2\xc6\xde\x6a\x39\xa2\x56\x22\xf9\xf2\xfc\xb3\xfc\x05\xaf\x12\xb5"); ctx.digest(&mut digest); assert_eq!(digest, b"\x32\xd9\x79\xca\x1b\x3e\xd0\xed\x8c\x89\x0d\x99\xec\x6d\xd8\x5e\x6c\x16\xab\xf4"); ctx.update(b"\x7c\x0e\x6a\x0d\x35\xf8\xac\x85\x4c\x72\x45\xeb\xc7\x36\x93\x73\x1b\xbb\xc3\xe6\xfa\xb6\x44\x46\x6d\xe2\x7b\xb5\x22\xfc\xb9\x93\x07\x12\x6a\xe7\x18\xfe\x8f\x00\x74\x2e\x6e\x5c\xb7\xa6\x87\xc8\x84\x47\xcb\xc9\x61"); ctx.digest(&mut digest); assert_eq!(digest, b"\x6f\x18\x19\x0b\xd2\xd0\x2f\xc9\x3b\xce\x64\x75\x65\x75\xce\xa3\x6d\x08\xb1\xc3"); ctx.update(b"\xc5\x58\x1d\x40\xb3\x31\xe2\x40\x03\x90\x1b\xd6\xbf\x24\x4a\xca\x9e\x96\x01\xb9\xd8\x12\x52\xbb\x38\x04\x86\x42\x73\x1f\x11\x46\xb8\xa4\xc6\x9f\x88\xe1\x48\xb2\xc8\xf8\xc1\x4f\x15\xe1\xd6\xda\x57\xb2\xda\xa9\x99\x1e"); ctx.digest(&mut digest); assert_eq!(digest, b"\x68\xf5\x25\xfe\xea\x1d\x8d\xbe\x01\x17\xe4\x17\xca\x46\x70\x8d\x18\xd7\x62\x9a"); ctx.update(b"\xec\x6b\x4a\x88\x71\x3d\xf2\x7c\x0f\x2d\x02\xe7\x38\xb6\x9d\xb4\x3a\xbd\xa3\x92\x13\x17\x25\x9c\x86\x4c\x1c\x38\x6e\x9a\x5a\x3f\x53\x3d\xc0\x5f\x3b\xee\xb2\xbe\xc2\xaa\xc8\xe0\x6d\xb4\xc6\xcb\x3c\xdd\xcf\x69\x7e\x03\xd5"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa7\x27\x2e\x23\x08\x62\x2f\xf7\xa3\x39\x46\x0a\xdc\x61\xef\xd0\xea\x8d\xab\xdc"); ctx.update(b"\x03\x21\x73\x6b\xeb\xa5\x78\xe9\x0a\xbc\x1a\x90\xaa\x56\x15\x7d\x87\x16\x18\xf6\xde\x0d\x76\x4c\xc8\xc9\x1e\x06\xc6\x8e\xcd\x3b\x9d\xe3\x82\x40\x64\x50\x33\x84\xdb\x67\xbe\xb7\xfe\x01\x22\x32\xda\xca\xef\x93\xa0\x00\xfb\xa7"); ctx.digest(&mut digest); assert_eq!(digest, b"\xae\xf8\x43\xb8\x69\x16\xc1\x6f\x66\xc8\x4d\x83\xa6\x00\x5d\x23\xfd\x00\x5c\x9e"); ctx.update(b"\xd0\xa2\x49\xa9\x7b\x5f\x14\x86\x72\x1a\x50\xd4\xc4\xab\x3f\x5d\x67\x4a\x0e\x29\x92\x5d\x5b\xf2\x67\x8e\xf6\xd8\xd5\x21\xe4\x56\xbd\x84\xaa\x75\x53\x28\xc8\x3f\xc8\x90\x83\x77\x26\xa8\xe7\x87\x7b\x57\x0d\xba\x39\x57\x9a\xab\xdd"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbe\x2c\xd6\xf3\x80\x96\x9b\xe5\x9c\xde\x2d\xff\x5e\x84\x8a\x44\xe7\x88\x0b\xd6"); ctx.update(b"\xc3\x21\x38\x53\x11\x18\xf0\x8c\x7d\xcc\x29\x24\x28\xad\x20\xb4\x5a\xb2\x7d\x95\x17\xa1\x84\x45\xf3\x8b\x8f\x0c\x27\x95\xbc\xdf\xe3\xff\xe3\x84\xe6\x5e\xcb\xf7\x4d\x2c\x9d\x0d\xa8\x83\x98\x57\x53\x26\x07\x49\x04\xc1\x70\x9b\xa0\x72"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe5\xeb\x45\x43\xde\xee\x8f\x6a\x52\x87\x84\x5a\xf8\xb5\x93\xa9\x5a\x97\x49\xa1"); ctx.update(b"\xb0\xf4\xcf\xb9\x39\xea\x78\x5e\xab\xb7\xe7\xca\x7c\x47\x6c\xdd\x9b\x22\x7f\x01\x5d\x90\x53\x68\xba\x00\xae\x96\xb9\xaa\xf7\x20\x29\x74\x91\xb3\x92\x12\x67\x57\x6b\x72\xc8\xf5\x8d\x57\x76\x17\xe8\x44\xf9\xf0\x75\x9b\x39\x9c\x6b\x06\x4c"); ctx.digest(&mut digest); assert_eq!(digest, b"\x53\x4c\x85\x04\x48\xdd\x48\x67\x87\xb6\x2b\xde\xc2\xd4\xa0\xb1\x40\xa1\xb1\x70"); ctx.update(b"\xbd\x02\xe5\x1b\x0c\xf2\xc2\xb8\xd2\x04\xa0\x26\xb4\x1a\x66\xfb\xfc\x2a\xc3\x7e\xe9\x41\x1f\xc4\x49\xc8\xd1\x19\x4a\x07\x92\xa2\x8e\xe7\x31\x40\x7d\xfc\x89\xb6\xdf\xc2\xb1\x0f\xaa\x27\x72\x3a\x18\x4a\xfe\xf8\xfd\x83\xde\xf8\x58\xa3\x2d\x3f"); ctx.digest(&mut digest); assert_eq!(digest, b"\x6f\xbf\xa6\xe4\xed\xce\x4c\xc8\x5a\x84\x5b\xf0\xd2\x28\xdc\x39\xac\xef\xc2\xfa"); ctx.update(b"\xe3\x31\x46\xb8\x3e\x4b\xb6\x71\x39\x22\x18\xda\x9a\x77\xf8\xd9\xf5\x97\x41\x47\x18\x2f\xb9\x5b\xa6\x62\xcb\x66\x01\x19\x89\xc1\x6d\x9a\xf1\x04\x73\x5d\x6f\x79\x84\x1a\xa4\xd1\xdf\x27\x66\x15\xb5\x01\x08\xdf\x8a\x29\xdb\xc9\xde\x31\xf4\x26\x0d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x01\x88\x72\x69\x1d\x9b\x04\xe8\x22\x0e\x09\x18\x7d\xf5\xbc\x5f\xa6\x25\x7c\xd9"); ctx.update(b"\x41\x1c\x13\xc7\x50\x73\xc1\xe2\xd4\xb1\xec\xf1\x31\x39\xba\x96\x56\xcd\x35\xc1\x42\x01\xf1\xc7\xc6\xf0\xee\xb5\x8d\x2d\xbf\xe3\x5b\xfd\xec\xcc\x92\xc3\x96\x1c\xfa\xbb\x59\x0b\xc1\xeb\x77\xea\xc1\x57\x32\xfb\x02\x75\x79\x86\x80\xe0\xc7\x29\x2e\x50"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd9\x8d\x51\x2a\x35\x57\x2f\x8b\xd2\x0d\xe6\x2e\x95\x10\xcc\x21\x14\x5c\x5b\xf4"); ctx.update(b"\xf2\xc7\x6e\xf6\x17\xfa\x2b\xfc\x8a\x4d\x6b\xcb\xb1\x5f\xe8\x84\x36\xfd\xc2\x16\x5d\x30\x74\x62\x95\x79\x07\x9d\x4d\x5b\x86\xf5\x08\x1a\xb1\x77\xb4\xc3\xf5\x30\x37\x6c\x9c\x92\x4c\xbd\x42\x1a\x8d\xaf\x88\x30\xd0\x94\x0c\x4f\xb7\x58\x98\x65\x83\x06\x99"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9f\x3e\xa2\x55\xf6\xaf\x95\xc5\x45\x4e\x55\xd7\x35\x4c\xab\xb4\x53\x52\xea\x0b"); ctx.update(b"\x45\x92\x7e\x32\xdd\xf8\x01\xca\xf3\x5e\x18\xe7\xb5\x07\x8b\x7f\x54\x35\x27\x82\x12\xec\x6b\xb9\x9d\xf8\x84\xf4\x9b\x32\x7c\x64\x86\xfe\xae\x46\xba\x18\x7d\xc1\xcc\x91\x45\x12\x1e\x14\x92\xe6\xb0\x6e\x90\x07\x39\x4d\xc3\x3b\x77\x48\xf8\x6a\xc3\x20\x7c\xfe"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa7\x0c\xfb\xfe\x75\x63\xdd\x0e\x66\x5c\x7c\x67\x15\xa9\x6a\x8d\x75\x69\x50\xc0"); } } nettle-7.1.0/src/hash/mod.rs000064400000000000000000000017550072674642500140230ustar 00000000000000//! Cryptographic hash functions. /// Emits a Write implementation for hashes. macro_rules! impl_write_for_hash { ($($name:tt)*) => { impl ::std::io::Write for $($name)* { fn write(&mut self, buf: &[u8]) -> ::std::io::Result { self.update(buf); Ok(buf.len()) } fn flush(&mut self) -> ::std::io::Result<()> { Ok(()) } } }; } pub mod insecure_do_not_use; mod hash; pub use self::hash::{Hash, NettleHash}; mod sha224; pub use self::sha224::Sha224; mod sha256; pub use self::sha256::Sha256; mod sha512_224; pub use self::sha512_224::Sha512_224; mod sha512_256; pub use self::sha512_256::Sha512_256; mod sha384; pub use self::sha384::Sha384; mod sha512; pub use self::sha512::Sha512; mod sha3_224; pub use self::sha3_224::Sha3_224; mod sha3_256; pub use self::sha3_256::Sha3_256; mod sha3_384; pub use self::sha3_384::Sha3_384; mod sha3_512; pub use self::sha3_512::Sha3_512; nettle-7.1.0/src/hash/sha224.rs000064400000000000000000000563570072674642500142570ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha224, nettle_sha224_digest, nettle_sha224_init, nettle_sha256_update, sha256_ctx, SHA224_DIGEST_SIZE, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 256 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4, truncated to 224 /// bit. pub struct Sha224 { context: sha256_ctx, } impl_write_for_hash!(Sha224); impl Clone for Sha224 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha256_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha224 { context: ctx } } } } impl Default for Sha224 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha224_init(&mut ctx as *mut _); } Sha224 { context: ctx } } } impl Hash for Sha224 { fn digest_size(&self) -> usize { SHA224_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha256_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha224_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha224 { type Context = sha256_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha224 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha224::default(); } // CAVS 11.0 // "SHA-224 ShortMsg" information // SHA-224 tests are configured for BYTE oriented implementations // Generated on Tue Mar 15 08:23:36 2011 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha224::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, b"\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9\x47\x61\x02\xbb\x28\x82\x34\xc4\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a\xc5\xb3\xe4\x2f"); ctx.update(b"\x84"); ctx.digest(&mut digest); assert_eq!(digest, b"\x3c\xd3\x69\x21\xdf\x5d\x69\x63\xe7\x37\x39\xcf\x4d\x20\x21\x1e\x2d\x88\x77\xc1\x9c\xff\x08\x7a\xde\x9d\x0e\x3a"); ctx.update(b"\x5c\x7b"); ctx.digest(&mut digest); assert_eq!(digest, b"\xda\xff\x9b\xce\x68\x5e\xb8\x31\xf9\x7f\xc1\x22\x5b\x03\xc2\x75\xa6\xc1\x12\xe2\xd6\xe7\x6f\x5f\xaf\x7a\x36\xe6"); ctx.update(b"\x51\xca\x3d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x2c\x89\x59\x02\x35\x15\x47\x6e\x38\x38\x8a\xbb\x43\x59\x9a\x29\x87\x6b\x4b\x33\xd5\x6a\xdc\x06\x03\x2d\xe3\xa2"); ctx.update(b"\x60\x84\x34\x7e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xae\x57\xc0\xa6\xd4\x97\x39\xba\x33\x8a\xdf\xa5\x3b\xda\xe0\x63\xe5\xc0\x91\x22\xb7\x76\x04\x78\x0a\x8e\xea\xa3"); ctx.update(b"\x49\x3e\x14\x62\x3c"); ctx.digest(&mut digest); assert_eq!(digest, b"\x7f\x63\x1f\x29\x5e\x02\x4e\x74\x55\x20\x83\x24\x5c\xa8\xf9\x88\xa3\xfb\x65\x68\x0a\xe9\x7c\x30\x40\xd2\xe6\x5c"); ctx.update(b"\xd7\x29\xd8\xcd\x16\x31"); ctx.digest(&mut digest); assert_eq!(digest, b"\x34\x2e\x8e\x6b\x23\xc1\xc6\xa5\x49\x10\x63\x1f\x09\x8e\x08\xe8\x36\x25\x9c\x57\xe4\x9c\x1b\x1d\x02\x3d\x16\x6d"); ctx.update(b"\xcb\xf2\x06\x1e\x10\xfa\xa5"); ctx.digest(&mut digest); assert_eq!(digest, b"\x3a\xa7\x02\xb1\xb6\x6d\xc5\x7d\x7a\xec\x3c\xcd\xbd\xfb\xd8\x85\x92\xd7\x52\x0f\x84\x3b\xa5\xd0\xfa\x48\x11\x68"); ctx.update(b"\x5f\x77\xb3\x66\x48\x23\xc3\x3e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbd\xf2\x1f\xf3\x25\xf7\x54\x15\x7c\xcf\x41\x7f\x48\x55\x36\x0a\x72\xe8\xfd\x11\x7d\x28\xc8\xfe\x7d\xa3\xea\x38"); ctx.update(b"\x10\x71\x3b\x89\x4d\xe4\xa7\x34\xc0"); ctx.digest(&mut digest); assert_eq!(digest, b"\x03\x84\x26\x00\xc8\x6f\x5c\xd6\x0c\x3a\x21\x47\xa0\x67\xcb\x96\x2a\x05\x30\x3c\x34\x88\xb0\x5c\xb4\x53\x27\xbd"); ctx.update(b"\x00\x64\x70\xd5\x7d\xad\x98\x93\xdc\x03"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc9\x00\x26\xcd\xa5\xad\x24\x11\x50\x59\xc6\x2a\xe9\xad\xd5\x77\x93\xad\xe4\x45\xd4\x74\x22\x73\x28\x8b\xbc\xe7"); ctx.update(b"\x6f\x29\xca\x27\x41\x90\x40\x07\x20\xbb\xa2"); ctx.digest(&mut digest); assert_eq!(digest, b"\xac\x53\x15\x79\x47\xaa\x4b\x2a\x19\x08\x91\x82\x38\x2a\x43\x63\xd1\x82\xdd\x8e\x4c\xa7\x9c\xd8\x57\x13\x90\xbe"); ctx.update(b"\x17\xe8\x55\x61\x76\xfc\xca\x2a\xdd\xbd\xde\x29"); ctx.digest(&mut digest); assert_eq!(digest, b"\xcc\x6a\xd0\x48\x8d\xb0\x22\x20\x66\xf7\x40\x55\x7b\x57\x58\xa1\x9b\x30\x37\x2b\x30\x23\x32\x29\x5d\x8c\x3a\xff"); ctx.update(b"\xdb\xf1\x63\x60\x1d\xb9\xa1\x22\xa4\x02\x68\x24\xde"); ctx.digest(&mut digest); assert_eq!(digest, b"\x98\x49\x84\x5f\x4e\x47\xe1\xec\xe9\xa1\xc1\xe0\x1a\x0d\x89\x6f\xfe\xa6\x1c\x6c\x88\x94\xa7\x5a\x11\xce\x5f\x49"); ctx.update(b"\x5e\x1e\xf2\xad\x86\xce\xaf\x54\x39\xfe\x87\xd2\xec\x9b"); ctx.digest(&mut digest); assert_eq!(digest, b"\x22\x3c\x5d\x5d\x4a\x01\x16\xb3\x2c\xea\x04\x4f\x9a\xf0\xfe\x44\xba\xbe\xa1\xc5\xab\x20\x15\x02\x59\x1b\xcd\x5f"); ctx.update( b"\x65\xf3\xb9\x86\x6f\xb8\x00\x2b\x53\xcf\xaf\x80\x6f\x70\x2f", ); ctx.digest(&mut digest); assert_eq!(digest, b"\xb1\xe0\x80\x6a\x21\x8d\x59\x38\x21\xfd\xe8\xe9\xea\xcc\x44\xab\x52\x87\xc3\x22\x09\xa9\x4f\x01\x1a\xb6\x6b\x75"); ctx.update( b"\xb7\x76\x70\x8f\xfb\x91\xb3\x51\x5a\xc4\x65\x98\xab\x9f\xa7\x96", ); ctx.digest(&mut digest); assert_eq!(digest, b"\x42\x73\x11\xb1\xd7\xab\x24\x88\x79\x1c\x4d\xee\xb4\x25\x1d\x78\x3f\xe5\xf9\x80\x6b\xfd\xfb\x51\x88\xc5\x44\x3d"); ctx.update(b"\xa4\xbc\x10\xb1\xa6\x2c\x96\xd4\x59\xfb\xaf\x3a\x5a\xa3\xfa\xce\x73"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd7\xe6\x63\x47\x23\xac\x25\xcb\x18\x79\xbd\xb1\x50\x8d\xa0\x53\x13\x53\x04\x19\x01\x3f\xe2\x55\x96\x7a\x39\xe1"); ctx.update(b"\x9e\x8f\x3c\x66\x45\xc1\x74\x9b\x55\xc5\x0d\x20\x18\xce\x40\xdc\x24\x27"); ctx.digest(&mut digest); assert_eq!(digest, b"\x2f\x5a\x58\x3b\xf5\x88\xc8\x98\x8a\x57\x2d\x12\x8a\x95\xbe\xa5\xef\x1b\x66\x78\x0a\x7d\x4b\xe9\xc2\x9e\xfc\x31"); ctx.update(b"\x2d\xb6\xd2\x07\xc0\xb7\xd9\x11\x7f\x24\xd7\x8e\xe5\x9a\xbf\x2f\x31\x69\x78"); ctx.digest(&mut digest); assert_eq!(digest, b"\x35\x68\x1f\xce\x28\x30\x7c\xae\x19\x52\x2c\x23\xcb\xd4\xa7\x79\x69\x34\x7f\x7d\x8e\xe4\xa3\x08\x8b\xa9\x0a\xda"); ctx.update(b"\x3d\xf5\xe7\xf3\x99\xf6\xdd\x61\xa1\x2a\x9d\x4e\x94\x64\xfc\x49\x97\xc1\xf3\x7b"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa3\xe6\x80\x76\xe3\x07\x51\x08\x5a\x84\x3a\x6c\xbf\xbf\x0f\x3d\xee\x63\xd9\xc4\x21\x9c\x91\x43\x72\xe5\x0b\x28"); ctx.update(b"\x65\x78\x1d\x01\x8f\x27\xca\x0c\x72\xa9\xfa\x9a\xb4\x64\x8e\xd3\x69\x64\x6d\xd3\xce"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd1\x5e\xf0\xd8\x72\xd0\x2d\xa6\x42\x7b\x8d\x03\x49\xde\xa2\xf2\x04\xe6\x71\x33\xb7\x36\x5b\x4b\x15\x0e\xfc\x3c"); ctx.update(b"\xaf\x48\xee\xdd\xd9\x3f\xee\x69\xd1\xbd\x7d\xe4\x28\xa6\x39\x86\x01\x1d\x10\x94\x5e\xaf"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb8\x9d\x42\x8e\xe4\x2e\x39\x7c\xf1\x10\x29\xec\xbb\x27\xba\xdd\xd0\x36\xc8\x93\x8f\x51\xc8\xab\x56\xb8\x75\xac"); ctx.update(b"\xdf\x2b\xf0\xd5\xf9\xc9\x94\xac\x69\xd7\x8b\xaa\x0d\x51\x2e\xce\xb7\x4d\x8a\x04\x75\x31\xc1"); ctx.digest(&mut digest); assert_eq!(digest, b"\xdb\x8e\x1c\xe6\x8c\x8c\x6b\x84\xd6\xdb\x75\x5c\x2b\x8b\xf5\x4f\x3c\x4b\x08\x1a\x88\x1e\xfc\xdd\xaf\x30\x32\x94"); ctx.update(b"\x48\xd2\xf2\x09\x55\xea\x2d\x13\x43\x3c\x20\xbc\x04\x04\xeb\x2e\x6a\xd7\x9e\xd2\x8f\x7c\xb4\xc0"); ctx.digest(&mut digest); assert_eq!(digest, b"\x36\x17\xcc\x31\x79\xf8\xb5\x9a\xdc\xe1\x81\xee\xbe\xed\x5e\x27\x63\xf6\x26\x50\x94\x92\x24\xa6\x7e\x53\x69\x4b"); ctx.update(b"\x21\x8f\x74\xa4\x2d\x3a\x47\xef\x3b\x80\x66\x01\xfb\xa0\x24\xb0\x78\xcb\xff\x4e\x4b\x85\x77\x2e\x0e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb5\xf4\x0b\x95\xdc\xc3\x63\xb9\x7e\x9d\x00\xb6\x7c\x5d\x7c\x37\xf1\x7a\xb5\x63\x29\x7d\x2d\x67\xa4\xdf\x20\xc9"); ctx.update(b"\xef\x55\xb1\xe7\x97\x00\x0b\x04\xfc\xdb\x9b\x30\x21\xb0\x93\x27\xe3\xb4\xe2\x69\xd2\x0c\xab\xdf\x41\x8f"); ctx.digest(&mut digest); assert_eq!(digest, b"\x82\x7b\x22\x3d\x51\x24\x0c\x2e\x32\x71\xc5\x34\xc1\x9c\x56\x37\xb6\xfe\x10\x08\x3e\x85\xbc\xf0\x67\x61\xef\x21"); ctx.update(b"\x96\xdf\x43\x87\xdc\x2c\x40\x29\x70\x43\xbe\xa3\x64\x83\xf6\x5e\x4e\xb1\xe0\x7e\x93\x35\x9c\xb7\xe6\x86\x10"); ctx.digest(&mut digest); assert_eq!(digest, b"\x98\xe4\x30\xa6\x3f\xcd\xed\xaf\xc9\x41\x90\x10\xf7\xf5\x9a\x4d\x81\x6a\x45\xb4\xf9\x73\xbe\xb6\x25\x30\xff\x8c"); ctx.update(b"\x3e\xc0\xaa\x8d\x30\xd5\xed\x82\x5b\x77\xdc\x70\x95\xf4\x21\xb1\xe6\x08\x15\x87\x97\xa3\x77\xff\x8b\xed\x64\x1b"); ctx.digest(&mut digest); assert_eq!(digest, b"\x31\x08\x32\x1e\xb7\xff\x85\x7f\x6a\xae\x69\x10\x1b\x93\x7f\x32\xa5\x1e\xa2\x79\xa6\xc1\x4b\xa5\x23\x2a\xc8\xc1"); ctx.update(b"\x8b\x02\x39\x71\x20\x39\xf0\x77\xce\x32\x3b\x35\xf4\xe3\x06\x78\x7b\x9b\x35\x27\x00\x96\xe5\x77\x35\xcf\xf4\x5d\x84"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa5\xc7\x40\xd3\xce\x46\xbb\x2e\x0a\x04\x84\x88\xf2\xb0\x60\x5c\x6d\x0c\xa0\xea\x2f\x38\x2d\x04\x3d\x13\xdb\x97"); ctx.update(b"\x04\x4b\xe3\x01\x67\xa9\x75\x8c\x46\xc7\x27\x92\x1d\xc4\xeb\x4e\x0d\xcb\x96\x56\x23\x42\x3e\x6f\xdd\x44\xe7\xa4\xea\x52"); ctx.digest(&mut digest); assert_eq!(digest, b"\x6e\xb7\x83\x13\xc7\x43\xea\x87\x69\xd8\x34\x0f\x28\x4d\xda\x6d\xed\x64\xa1\xdb\x64\x39\x2f\x21\xab\xb8\x2c\x5c"); ctx.update(b"\x57\xf6\x11\x8b\xac\xce\x47\xec\xc3\x1c\xe8\xb0\xc0\x83\xd3\xc9\x21\x9e\x0d\xbe\x9e\x4f\xbe\xa1\x54\x53\x7c\x41\x23\x1a\xcc"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0d\xbb\x53\xc8\x66\xd6\x3a\xf4\x4c\x22\x2c\x76\xc8\x25\xdf\x0e\x37\x9d\xce\xdf\xb9\x58\xdb\x03\xb6\xfd\x29\xa5"); ctx.update(b"\xfe\x1f\x0f\xb0\x2c\x90\x11\xf4\xc8\xc5\x90\x59\x34\xed\x15\x13\x67\x71\x73\x7c\xe3\x1c\x58\x59\xe6\x7f\x23\x5f\xe5\x94\xf5\xf6"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbb\xea\xac\xc6\x32\xc2\xa3\xdb\x2a\x9b\x47\xf1\x57\xab\x54\xaa\x27\x77\x6c\x6e\x74\xcf\x0b\xca\xa9\x1b\x06\xd5"); ctx.update(b"\x14\xfb\x01\xae\x9d\x60\x15\xec\xb3\xe5\x6d\x6e\xcd\xfa\x4b\xc0\x53\x31\x86\xad\xf8\x45\x7f\x5e\x4a\x5c\x57\xc6\x87\x89\x5f\x3d\xb3"); ctx.digest(&mut digest); assert_eq!(digest, b"\x17\x82\x72\xc7\xd7\xcc\x71\xb1\x50\x74\xc2\x7e\x3b\x79\x97\xd4\xa3\xba\x99\x62\x69\x86\xa1\xa1\x6c\xf3\x00\x30"); ctx.update(b"\xff\x6c\x49\x71\x2f\x04\x4f\x40\x63\xc1\x41\x25\xc0\xcd\xfb\xa1\x8e\xd8\xb7\x13\x84\x53\x76\x8a\x45\xdf\xa2\xd8\x2a\x05\xf1\xe8\x42\x27"); ctx.digest(&mut digest); assert_eq!(digest, b"\x40\x32\x84\xc8\x88\xa7\x28\x0b\xc8\xbf\xc2\x5f\x0c\x34\x18\x2c\xd3\x78\x30\x6a\x21\xa1\x40\x4d\x4e\x1c\x40\xcf"); ctx.update(b"\xf9\x00\xbd\x7e\x01\x17\x24\x7f\x97\xc8\xfc\x7a\x66\x5c\x76\xa3\x5f\x57\x1c\x33\x66\x57\x1d\x6c\x4a\x3e\xe5\xd7\xfb\x93\xf1\xd1\xf7\x26\xe2"); ctx.digest(&mut digest); assert_eq!(digest, b"\x48\x23\x5b\x98\x20\xd6\x6d\x88\x85\xfa\xab\xf6\xa9\xed\xe6\x3b\xa2\xa2\x1b\x61\x77\xe9\x87\xa3\x32\x42\x37\x3e"); ctx.update(b"\x42\xd3\x81\x88\xac\x49\x44\x0c\xfe\xfb\x77\xdb\x97\x5e\x08\x3e\x6b\x22\x34\x8c\x4c\x67\xf0\xf8\x69\x2e\x88\xad\x14\x0d\x86\x1d\xc8\x28\xd5\x95"); ctx.digest(&mut digest); assert_eq!(digest, b"\x61\x53\x44\xf8\x90\xe5\xbc\xf7\x1b\x5e\xfe\x39\xde\x1f\xc9\x42\xba\x1f\xe3\x0d\xd9\xe9\x14\x6a\xdb\x6a\x41\xbf"); ctx.update(b"\x74\xfd\xd7\xd9\x58\xb8\xae\x7c\x2c\x3c\x5c\xff\x42\x66\xdf\xb2\xb3\xb8\x42\xc9\xf5\x9e\xcb\xbc\xaf\xf5\x75\xed\xcb\xcd\xa0\x8c\xcd\x6e\x08\xb7\x64"); ctx.digest(&mut digest); assert_eq!(digest, b"\x66\xd7\xd6\xc5\x4f\xc7\x77\x5a\x0b\xa8\x45\xba\x3e\x11\x71\x9f\xa5\x35\xb9\x28\x9f\x20\xb0\x98\xc5\xf7\xa3\x42"); ctx.update(b"\x93\x44\x16\xdd\x05\x81\xe2\x2f\x2b\xfb\xec\xe7\xbb\x64\xaf\xe8\x20\x45\x1f\xa2\x13\x42\xdf\x7e\x6f\x9f\xb3\x7c\x41\x03\x38\x1a\x1f\x7c\xd3\x79\xbc\xc4"); ctx.digest(&mut digest); assert_eq!(digest, b"\xfa\xe8\xf1\xaa\x22\xde\xf4\xdb\xaa\x81\x4c\x5b\x0b\xab\xde\xc4\x33\x94\x95\x17\x92\xc9\x37\x05\x0d\x29\x63\xa6"); ctx.update(b"\x10\x24\x01\xc8\x4a\x71\x6a\xe7\x25\x79\xc6\xae\x79\xc3\x59\xea\x30\x9f\xfd\x95\xab\xff\xae\x4c\x61\x88\x4c\x03\xc9\xe9\x9d\xf7\x7b\x6c\x92\xe4\x92\xca\xcb"); ctx.digest(&mut digest); assert_eq!(digest, b"\x8f\x34\x81\x2d\x57\xa1\x6e\xf8\xa5\x1a\xd9\x87\x66\x0c\x5f\x86\x23\xe0\xfa\x9d\x89\x84\x6e\x28\xd4\x6d\x14\xd9"); ctx.update(b"\x79\xbc\x8f\xb6\x0f\x85\xd1\x5a\x23\x86\x56\x6e\x3e\x73\x14\xdf\x28\x45\x33\x08\x5a\xdd\x1c\x7b\xb6\xea\xd3\xff\x76\x0c\x86\xd5\x63\x3a\x66\x40\x47\x61\xb5\x44"); ctx.digest(&mut digest); assert_eq!(digest, b"\x65\xc5\x40\x14\xcf\xa3\x0f\x0b\xc2\x7d\x1c\x6e\xfa\x96\xae\x84\x81\xf4\xc2\x50\x5b\xff\x27\x29\x56\xea\xb0\xdf"); ctx.update(b"\xdb\x31\x21\xea\x71\x29\x49\x83\xb1\x85\x20\x7a\x9d\x8d\xe3\xe4\x84\xa6\x6c\x04\x31\xbf\x07\xc9\x62\xeb\x82\x97\x7c\x4f\x83\x4b\x7c\x3f\x1e\x79\x31\xa4\xa7\xf7\xa9"); ctx.digest(&mut digest); assert_eq!(digest, b"\x93\x16\xd2\xf0\x21\xc2\x91\x3d\x63\xa7\xe6\x69\x24\xc8\x7c\x16\x1c\x3c\xfd\xe0\xea\x7b\xa0\x7f\x54\x77\x28\x62"); ctx.update(b"\x0d\xd5\x1a\xa6\x60\xc5\xcb\x4b\x7f\x78\xc4\x68\x52\xc1\xdb\x87\x07\xab\x45\x1c\x13\x67\xb6\x18\x73\x88\xc8\xbb\x38\x73\xa1\xaa\x42\x10\xd0\x41\x4c\xc6\x79\x2a\x29\xa7"); ctx.digest(&mut digest); assert_eq!(digest, b"\x31\x98\x9e\x7a\x62\xa5\x13\x2a\x50\x70\xd7\x72\x50\xd8\x90\x4b\xb8\x2d\x45\x7d\xc6\x34\x69\xd0\x6b\x50\x18\x5e"); ctx.update(b"\x48\x7f\xd2\xe5\xb6\x94\xb7\x07\x1d\x37\x89\xa2\x58\xa5\x1e\x86\x04\xdc\x0d\x3e\x8f\x5d\x62\xf3\x91\x31\x96\x8e\x60\x2a\xbe\x1d\xdf\x6b\x02\x78\x96\x2a\x51\x24\x08\xb5\x53"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe7\x98\x68\x34\x38\x28\x46\x26\xd7\x10\x87\x7d\x9e\xea\x3a\x0e\x02\xf3\x49\xfc\x43\xac\xb7\xf9\xf8\xf9\xe8\x1c"); ctx.update(b"\x11\x18\x3b\xde\xbf\xef\x58\xe4\xda\x5b\x1c\xb7\x3b\xe0\xd3\x0b\x20\xda\x30\x4d\x86\x59\xd9\x21\xda\x2e\x27\x0f\xd1\x46\x26\x79\x95\x37\xe4\xd1\x21\x19\xe8\x09\xee\x97\x00\x4a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x96\x87\x06\x57\xd6\xcb\x66\x8b\xe3\x99\x5a\xa8\xbd\x31\xdf\x77\x84\x0d\x1d\x19\x15\xd7\x24\x82\xe8\x3b\x6b\x2c"); ctx.update(b"\xa2\x39\xde\x5c\x8e\x26\x44\xe8\xf0\x30\xd9\x4d\x98\xf1\xa3\x06\x64\xe6\xfd\x96\x1d\xc2\x97\x7a\x9c\x08\xbe\x5c\x31\xd8\xde\x89\x45\x09\x45\xa5\x3d\x79\x29\x9e\xa2\xa1\xed\xde\x7f"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe9\x97\x43\xd4\xfd\x26\xc8\x80\x0c\x36\xa6\x7b\x67\x62\x24\x7c\x29\xda\x6b\x62\x79\x41\x23\xc5\x9d\xe0\x6d\xc0"); ctx.update(b"\x91\x7c\x45\x77\xaa\x6b\x0f\x9d\xf4\x99\x99\xfc\x1c\x95\x8c\xb0\x9b\x7f\xd5\xfc\x80\xbe\x94\x96\x70\xf0\x35\x45\xeb\x27\xdc\xae\xd0\x52\x07\x6b\x24\xf9\x6f\x5e\x0f\x2e\x2f\x45\x27\xc0"); ctx.digest(&mut digest); assert_eq!(digest, b"\x7e\xcd\x69\x3d\x4d\x9c\xf4\x39\x29\x46\x46\x98\xef\xa0\xba\xc3\x3c\x2e\x14\x24\xf8\x16\xed\xc7\x69\x26\x09\x78"); ctx.update(b"\xc3\xf1\xe7\x35\xa6\x74\x1a\xa4\x81\xad\x57\x7a\x98\xdb\xac\x1f\x03\xcc\x80\xea\x0d\xae\x1b\x94\xdb\x23\x69\xed\x4e\x93\xfa\xcd\x29\xc6\x4e\x4e\x77\xb2\x50\x38\x27\x91\x20\xbd\xfa\x37\x15"); ctx.digest(&mut digest); assert_eq!(digest, b"\x86\xf0\xd8\x9d\x8e\x14\xfd\x8b\x66\x06\x41\x2d\x71\xa7\xa5\x4a\x34\x7b\x30\x4e\xa5\xd4\x9c\x20\x8f\x22\x66\xab"); ctx.update(b"\xde\x4f\xbf\xd5\x53\xcd\xf3\x70\x19\xf2\x5a\xfa\x82\xdc\x6b\x99\x70\xf4\xbb\x1e\xbb\xc3\x7f\x80\xd3\x08\x4c\x88\xa7\x07\x22\xcd\xc5\x23\xa9\xe3\xc2\xaf\xba\xd0\xdc\x02\x21\xbf\xde\xc9\xa2\xf9"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4c\x52\x62\xac\xb4\xa2\xa4\x4e\xaa\x9b\xc6\x75\x70\x24\xfb\x20\x2e\xf4\xd5\xa7\xa1\x6f\xa3\x72\x52\xa4\x22\xb5"); ctx.update(b"\xdb\x2e\x2e\xb6\x36\x61\x0c\xf4\x2e\x9b\x33\x43\x3a\xcc\xe1\xb3\xb9\x25\x94\x9f\x29\x7d\xd8\x31\x99\xf4\x5d\x28\x61\xd6\x4c\xd9\x10\xc2\xdb\x74\xa6\x0b\x20\x89\x04\x5e\x22\xcb\xa0\xa5\x36\x13\x7d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x16\xbf\x4e\x45\xbc\xdc\x60\x44\x7c\x68\xdc\xb3\x0e\x6b\x08\xf5\x5c\xe9\xf4\x12\x4a\x29\xcf\x1f\x9a\x9d\x06\x5d"); ctx.update(b"\xa8\xe7\x29\xd3\x36\xd5\xd6\xac\x50\xe1\xe2\x2f\x0b\x19\x3b\x66\xe2\x60\x42\xfc\x64\x59\x21\x41\x29\x87\x5e\x74\x0a\xb2\xb1\x42\x91\x8c\x13\x8a\xaf\x94\x18\x63\xad\x3b\x7e\x60\x65\x45\x06\x13\xb2\x73"); ctx.digest(&mut digest); assert_eq!(digest, b"\x45\x2b\xf2\xe5\xeb\xfc\x4e\x45\x1c\xc4\x34\xbc\x09\xe2\xa1\x00\x32\xee\xd0\xb7\x62\x7c\xf5\x5e\x7e\x5e\xd0\xe2"); ctx.update(b"\xd0\x53\x17\xd4\xb5\x35\xf9\xd1\x0f\x73\x9d\x0c\x2d\xed\xf3\xff\xb0\x90\xc1\xad\x9d\x20\x50\x89\xb1\x34\x66\x93\xf5\x82\x73\xc4\x92\x5c\x0f\xac\xe5\x7b\xa4\x5a\xd6\xfc\x68\x7c\x66\xa8\x8f\xc7\x88\x78\xbe"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4f\x03\xc4\x39\xe0\x97\xb5\x1b\x00\xe3\x14\xf6\x75\x93\x7c\x4d\x91\x15\x05\x85\x9f\xb7\xab\x16\xad\xc6\x5e\x44"); ctx.update(b"\x26\xbb\x4e\xd4\xf0\x42\x4c\x60\xfe\x42\x12\xff\x8c\x95\x5e\x89\xe2\xf5\x53\xa7\xd7\x70\x1b\xe5\x94\x16\xd2\x08\x9a\xf5\x9f\xa1\x07\x47\x24\xe2\x14\xe9\x19\xb1\xe3\x0f\x33\xfb\x78\x37\x4b\x4b\x05\x5b\xbc\x9b"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe7\xc8\x99\xe2\x70\x09\xd4\xdc\x77\xc2\xd3\x00\xf1\x91\xb7\x57\xe5\x2c\x9e\x7e\xac\x4b\x02\x3b\xfa\xb2\xb5\x2a"); ctx.update(b"\xf0\x15\xec\x83\x94\x4f\x03\x29\x24\x63\xc4\x34\x5f\xdb\x1c\x26\xd1\xea\x07\x64\x5f\xac\xbc\x95\x20\xae\x24\x4b\x6e\xb1\x91\xe5\x3d\xab\xad\xb4\xac\x0f\xb1\x5c\xda\x4e\xd7\x7d\xfb\x9e\x11\x93\xab\xfa\xfb\x1b\x81"); ctx.digest(&mut digest); assert_eq!(digest, b"\x45\x9e\x40\xb3\xfb\xd6\x12\x91\x2f\x02\x17\xc6\x00\x99\x37\x9c\xe0\x77\xcd\x02\x50\x58\x71\xb0\xc9\xc1\x4e\x7a"); ctx.update(b"\x07\x86\x70\x6f\x68\x0c\x27\xb7\x92\xd0\x54\xfa\xa6\x3f\x49\x9a\x8e\x6b\x5d\xdb\x90\x50\x29\x46\x23\x5b\xf7\x4c\x02\x2d\x77\x2c\x80\x9c\xb4\x17\x1b\xfa\x47\x91\x53\x9a\xca\x1a\xbd\x91\x90\x0e\x53\xba\x93\xca\x0e\xfd"); ctx.digest(&mut digest); assert_eq!(digest, b"\xfa\xde\xba\xb7\xc3\xd0\xfb\x8e\x97\xe4\x29\xb7\x90\x83\x08\x77\x35\xe4\xab\x38\x5a\x78\x95\x21\x26\x0e\xf3\xad"); ctx.update(b"\x44\x5e\x86\x98\xee\xb8\xac\xcb\xaa\xc4\xff\xa7\xd9\x34\xff\xfd\x16\x01\x4a\x43\x0e\xf7\x0f\x3a\x91\x74\xc6\xcf\xe9\x6d\x1e\x3f\x6a\xb1\x37\x7f\x4a\x72\x12\xdb\xb3\x01\x46\xdd\x17\xd9\xf4\x70\xc4\xdf\xfc\x45\xb8\xe8\x71"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4c\x7a\xe0\x28\xc0\xfe\x61\xf2\xa9\xca\xda\x61\xfa\xe3\x06\x85\xb7\x7f\x04\xc6\x44\x25\x76\xe9\x12\xaf\x9f\xa6"); ctx.update(b"\x52\x83\x9f\x2f\x08\x53\xa3\x0d\xf1\x4e\xc8\x97\xa1\x91\x4c\x68\x5c\x1a\xc2\x14\x70\xd0\x06\x54\xc8\xc3\x76\x63\xbf\xb6\x5f\xa7\x32\xdb\xb6\x94\xd9\xdd\x09\xce\xd7\x23\xb4\x8d\x8f\x54\x58\x46\xba\x16\x89\x88\xb6\x1c\xc7\x24"); ctx.digest(&mut digest); assert_eq!(digest, b"\x2f\x75\x5a\x57\x67\x4b\x49\xd5\xc2\x5c\xb3\x73\x48\xf3\x5b\x6f\xd2\xde\x25\x52\xc7\x49\xf2\x64\x5b\xa6\x3d\x20"); ctx.update(b"\x5f\xe8\xc2\x07\x2d\x89\x00\x28\x7c\xca\xf0\x7f\x3f\x66\xb0\xc2\x2a\xcd\x3e\x0b\xb9\x1d\x95\x73\x75\x4e\x19\xe3\x73\xac\x35\x27\x1d\x8b\x43\x44\x34\x36\xac\x0c\x16\x28\x50\xef\x3d\x7f\x28\x14\x09\xad\x29\xa9\xbf\x71\x6c\x77\xd1"); ctx.digest(&mut digest); assert_eq!(digest, b"\x42\x90\x97\x57\xf6\xe2\x29\xf6\x9f\x04\xcc\x7a\x86\x3c\x4e\x70\xe4\x8c\x7c\x35\x75\x05\x7b\x45\x5c\x95\x97\x75"); ctx.update(b"\xe8\x06\x4d\x83\xf3\xd6\x43\xaf\x87\x18\xc8\x7e\x3c\xcd\x6a\x97\x33\x68\x5e\xac\x61\xd5\x72\xa2\x2a\xb9\x43\xf2\x32\xfc\xb0\x4f\x70\x85\x8e\x89\x84\x44\x9d\xb1\x4a\x76\xbb\x7e\xaf\x24\x58\xef\xc3\xed\x2a\x32\x10\x06\x22\xc5\x2b\x7f"); ctx.digest(&mut digest); assert_eq!(digest, b"\x1a\x1d\x8e\xd5\x4c\xb4\x5c\x97\xbc\x97\x07\x54\xb4\x3e\xb9\x3d\x9e\xab\xde\x4c\x7b\x07\xf7\x6a\xd8\x2d\x8e\xde"); ctx.update(b"\x87\xc9\xa5\x17\xe2\x8d\x1b\xb5\x4a\xd2\x0f\xca\x76\x46\x0e\xfd\x89\x4d\x77\x86\xe6\x8e\xe8\xd7\x46\xb2\xf6\x82\x08\x68\x21\x57\xc8\xad\x06\xcc\x32\x4a\xd7\xa3\x18\x9e\x09\xc6\xc3\x9d\x4c\x76\x87\x19\xc0\xa4\x9a\x41\x66\x9f\x27\x67\xd5"); ctx.digest(&mut digest); assert_eq!(digest, b"\x60\x59\x77\xcf\x87\xb9\xb3\x09\xbb\xdd\xaa\xa6\x4e\x52\x8a\xce\x66\xb0\x4d\xf9\xf7\x2c\x0e\x7e\xc8\x8b\xe1\xda"); ctx.update(b"\x59\xfd\xac\x3b\x6b\x32\x03\x92\x91\x80\x1c\x7d\x6f\x46\xed\xe8\xd2\x6d\xc5\xb7\xa1\x92\xe0\x07\x11\x67\x39\xb6\x17\x56\x9f\x25\x23\x68\x0b\x3c\x0b\x66\x31\xaf\x45\x3e\x55\x80\x5a\xa7\x60\xc6\x97\x08\x33\xac\x06\x96\x3b\xbc\x9d\xbd\x45\x5e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xe9\xf0\xcb\x1d\xc8\x33\x7e\x90\x63\x85\x89\x2f\x23\x48\xa8\xba\x44\x12\x31\x8e\xca\xd9\xb9\x6e\x37\x11\x53\x1f"); ctx.update(b"\x30\x35\x0a\x4d\xf0\xb5\x8f\xf4\x9c\x0f\xa0\x9e\x42\x6f\xcd\x70\x07\xb2\x90\xc7\x60\xc8\x25\xc1\x85\x5d\x9b\x00\x23\xb8\x2c\xaa\x51\xe3\xca\xb4\xc6\x0c\xfa\x61\x49\x2b\xe5\x05\x68\xe5\xac\x0f\x6d\xb0\xfd\x46\x8e\x39\xe4\x53\x64\x03\xe3\x80\x9f"); ctx.digest(&mut digest); assert_eq!(digest, b"\x77\x6c\xc6\x63\x6c\x02\x40\x8f\xbf\x65\xac\xe7\x3a\xe8\x00\x17\x10\x8b\x91\x7c\x16\xc5\xa9\x12\xfd\x86\x02\x41"); ctx.update(b"\xef\x79\x7a\x0d\x43\xc3\x0b\x4f\xe1\x01\x4b\xdb\x94\x20\x87\x9c\x2f\xf8\x45\xd2\x7e\x73\xd5\x5a\x7d\xf2\x29\x30\xc8\xec\xe7\x32\x53\xd8\xbb\x26\x5b\x4e\xf2\xff\x9c\x69\x45\x5c\xc5\x6f\xf2\x52\x29\xb4\x12\x6b\xb7\xbb\x26\xee\x2c\x9f\xf3\x61\x87\xb1"); ctx.digest(&mut digest); assert_eq!(digest, b"\xf5\xb9\xff\xb1\x02\xaf\xfa\xc3\x52\xa4\xa5\x35\xa0\x0f\x89\xb0\x6c\x26\x8c\xf4\x88\x1d\x71\x26\x68\x90\x60\x25"); ctx.update(b"\x71\x69\x44\xde\x41\x71\x0c\x29\xb6\x59\xbe\x10\x48\x0b\xb2\x5a\x35\x1a\x39\xe5\x77\xee\x30\xe8\xf4\x22\xd5\x7c\xf6\x2a\xd9\x5b\xda\x39\xb6\xe7\x0c\x61\x42\x6e\x33\xfd\x84\xac\xa8\x4c\xc7\x91\x2d\x5e\xee\x45\xdc\x34\x07\x6a\x5d\x23\x23\xa1\x5c\x79\x64"); ctx.digest(&mut digest); assert_eq!(digest, b"\x61\x64\x5a\xc7\x48\xdb\x56\x7a\xc8\x62\x79\x6b\x8d\x06\xa4\x7a\xfe\xbf\xa2\xe1\x78\x3d\x5c\x5f\x3b\xcd\x81\xe2"); ctx.update(b"\xa3\x31\x0b\xa0\x64\xbe\x2e\x14\xad\x32\x27\x6e\x18\xcd\x03\x10\xc9\x33\xa6\xe6\x50\xc3\xc7\x54\xd0\x24\x3c\x6c\x61\x20\x78\x65\xb4\xb6\x52\x48\xf6\x6a\x08\xed\xf6\xe0\x83\x26\x89\xa9\xdc\x3a\x2e\x5d\x20\x95\xee\xea\x50\xbd\x86\x2b\xac\x88\xc8\xbd\x31\x8d"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb2\xa5\x58\x6d\x9c\xbf\x0b\xaa\x99\x91\x57\xb4\xaf\x06\xd8\x8a\xe0\x8d\x7c\x9f\xaa\xb4\xbc\x1a\x96\x82\x9d\x65"); } } nettle-7.1.0/src/hash/sha256.rs000064400000000000000000000603370072674642500142550ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha256, nettle_sha256_digest, nettle_sha256_init, nettle_sha256_update, sha256_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 256 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4. pub struct Sha256 { context: sha256_ctx, } impl_write_for_hash!(Sha256); impl Clone for Sha256 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha256_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha256 { context: ctx } } } } impl Default for Sha256 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha256_init(&mut ctx as *mut _); } Sha256 { context: ctx } } } impl Hash for Sha256 { fn digest_size(&self) -> usize { ::nettle_sys::SHA256_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha256_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha256_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha256 { type Context = sha256_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha256 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha256::default(); } // CAVS 11.0 // "SHA-256 ShortMsg" information // SHA-256 tests are configured for BYTE oriented implementations // Generated on Tue Mar 15 08:23:38 2011 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha256::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, b"\xe3\xb0\xc4\x42\x98\xfc\x1c\x14\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24\x27\xae\x41\xe4\x64\x9b\x93\x4c\xa4\x95\x99\x1b\x78\x52\xb8\x55"); ctx.update(b"\xd3"); ctx.digest(&mut digest); assert_eq!(digest, b"\x28\x96\x9c\xdf\xa7\x4a\x12\xc8\x2f\x3b\xad\x96\x0b\x0b\x00\x0a\xca\x2a\xc3\x29\xde\xea\x5c\x23\x28\xeb\xc6\xf2\xba\x98\x02\xc1"); ctx.update(b"\x11\xaf"); ctx.digest(&mut digest); assert_eq!(digest, b"\x5c\xa7\x13\x3f\xa7\x35\x32\x60\x81\x55\x8a\xc3\x12\xc6\x20\xee\xca\x99\x70\xd1\xe7\x0a\x4b\x95\x53\x3d\x95\x6f\x07\x2d\x1f\x98"); ctx.update(b"\xb4\x19\x0e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xdf\xf2\xe7\x30\x91\xf6\xc0\x5e\x52\x88\x96\xc4\xc8\x31\xb9\x44\x86\x53\xdc\x2f\xf0\x43\x52\x8f\x67\x69\x43\x7b\xc7\xb9\x75\xc2"); ctx.update(b"\x74\xba\x25\x21"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb1\x6a\xa5\x6b\xe3\x88\x0d\x18\xcd\x41\xe6\x83\x84\xcf\x1e\xc8\xc1\x76\x80\xc4\x5a\x02\xb1\x57\x5d\xc1\x51\x89\x23\xae\x8b\x0e"); ctx.update(b"\xc2\x99\x20\x96\x82"); ctx.digest(&mut digest); assert_eq!(digest, b"\xf0\x88\x7f\xe9\x61\xc9\xcd\x3b\xea\xb9\x57\xe8\x22\x24\x94\xab\xb9\x69\xb1\xce\x4c\x65\x57\x97\x6d\xf8\xb0\xf6\xd2\x0e\x91\x66"); ctx.update(b"\xe1\xdc\x72\x4d\x56\x21"); ctx.digest(&mut digest); assert_eq!(digest, b"\xec\xa0\xa0\x60\xb4\x89\x63\x62\x25\xb4\xfa\x64\xd2\x67\xda\xbb\xe4\x42\x73\x06\x7a\xc6\x79\xf2\x08\x20\xbd\xdc\x6b\x6a\x90\xac"); ctx.update(b"\x06\xe0\x76\xf5\xa4\x42\xd5"); ctx.digest(&mut digest); assert_eq!(digest, b"\x3f\xd8\x77\xe2\x74\x50\xe6\xbb\xd5\xd7\x4b\xb8\x2f\x98\x70\xc6\x4c\x66\xe1\x09\x41\x8b\xaa\x8e\x6b\xbc\xff\x35\x5e\x28\x79\x26"); ctx.update(b"\x57\x38\xc9\x29\xc4\xf4\xcc\xb6"); ctx.digest(&mut digest); assert_eq!(digest, b"\x96\x3b\xb8\x8f\x27\xf5\x12\x77\x7a\xab\x6c\x8b\x1a\x02\xc7\x0e\xc0\xad\x65\x1d\x42\x8f\x87\x00\x36\xe1\x91\x71\x20\xfb\x48\xbf"); ctx.update(b"\x33\x34\xc5\x80\x75\xd3\xf4\x13\x9e"); ctx.digest(&mut digest); assert_eq!(digest, b"\x07\x8d\xa3\xd7\x7e\xd4\x3b\xd3\x03\x7a\x43\x3f\xd0\x34\x18\x55\x02\x37\x93\xf9\xaf\xd0\x8b\x4b\x08\xea\x1e\x55\x97\xce\xef\x20"); ctx.update(b"\x74\xcb\x93\x81\xd8\x9f\x5a\xa7\x33\x68"); ctx.digest(&mut digest); assert_eq!(digest, b"\x73\xd6\xfa\xd1\xca\xaa\x75\xb4\x3b\x21\x73\x35\x61\xfd\x39\x58\xbd\xc5\x55\x19\x4a\x03\x7c\x2a\xdd\xec\x19\xdc\x2d\x7a\x52\xbd"); ctx.update(b"\x76\xed\x24\xa0\xf4\x0a\x41\x22\x1e\xbf\xcf"); ctx.digest(&mut digest); assert_eq!(digest, b"\x04\x4c\xef\x80\x29\x01\x93\x2e\x46\xdc\x46\xb2\x54\x5e\x6c\x99\xc0\xfc\x32\x3a\x0e\xd9\x9b\x08\x1b\xda\x42\x16\x85\x7f\x38\xac"); ctx.update(b"\x9b\xaf\x69\xcb\xa3\x17\xf4\x22\xfe\x26\xa9\xa0"); ctx.digest(&mut digest); assert_eq!(digest, b"\xfe\x56\x28\x7c\xd6\x57\xe4\xaf\xc5\x0d\xba\x7a\x3a\x54\xc2\xa6\x32\x4b\x88\x6b\xec\xdc\xd1\xfa\xe4\x73\xb7\x69\xe5\x51\xa0\x9b"); ctx.update(b"\x68\x51\x1c\xdb\x2d\xbb\xf3\x53\x0d\x7f\xb6\x1c\xbc"); ctx.digest(&mut digest); assert_eq!(digest, b"\xaf\x53\x43\x04\x66\x71\x5e\x99\xa6\x02\xfc\x9f\x59\x45\x71\x9b\x04\xdd\x24\x26\x7e\x6a\x98\x47\x1f\x7a\x78\x69\xbd\x3b\x43\x13"); ctx.update(b"\xaf\x39\x7a\x8b\x8d\xd7\x3a\xb7\x02\xce\x8e\x53\xaa\x9f"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd1\x89\x49\x8a\x34\x63\xb1\x8e\x84\x6b\x8a\xb1\xb4\x15\x83\xb0\xb7\xef\xc7\x89\xda\xd8\xa7\xfb\x88\x5b\xbf\x8f\xb5\xb4\x5c\x5c"); ctx.update( b"\x29\x4a\xf4\x80\x2e\x5e\x92\x5e\xb1\xc6\xcc\x9c\x72\x4f\x09", ); ctx.digest(&mut digest); assert_eq!(digest, b"\xdc\xba\xf3\x35\x36\x0d\xe8\x53\xb9\xcd\xdf\xda\xfb\x90\xfa\x75\x56\x7d\x0d\x3d\x58\xaf\x8d\xb9\xd7\x64\x11\x3a\xef\x57\x01\x25"); ctx.update( b"\x0a\x27\x84\x7c\xdc\x98\xbd\x6f\x62\x22\x0b\x04\x6e\xdd\x76\x2b", ); ctx.digest(&mut digest); assert_eq!(digest, b"\x80\xc2\x5e\xc1\x60\x05\x87\xe7\xf2\x8b\x18\xb1\xb1\x8e\x3c\xdc\x89\x92\x8e\x39\xca\xb3\xbc\x25\xe4\xd4\xa4\xc1\x39\xbc\xed\xc4"); ctx.update(b"\x1b\x50\x3f\xb9\xa7\x3b\x16\xad\xa3\xfc\xf1\x04\x26\x23\xae\x76\x10"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd5\xc3\x03\x15\xf7\x2e\xd0\x5f\xe5\x19\xa1\xbf\x75\xab\x5f\xd0\xff\xec\x5a\xc1\xac\xb0\xda\xf6\x6b\x6b\x76\x95\x98\x59\x45\x09"); ctx.update(b"\x59\xeb\x45\xbb\xbe\xb0\x54\xb0\xb9\x73\x34\xd5\x35\x80\xce\x03\xf6\x99"); ctx.digest(&mut digest); assert_eq!(digest, b"\x32\xc3\x8c\x54\x18\x9f\x23\x57\xe9\x6b\xd7\x7e\xb0\x0c\x2b\x9c\x34\x1e\xbe\xba\xcc\x29\x45\xf9\x78\x04\xf5\x9a\x93\x23\x82\x88"); ctx.update(b"\x58\xe5\xa3\x25\x9c\xb0\xb6\xd1\x2c\x83\xf7\x23\x37\x9e\x35\xfd\x29\x8b\x60"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9b\x5b\x37\x81\x6d\xe8\xfc\xdf\x3e\xc1\x0b\x74\x54\x28\x70\x8d\xf8\xf3\x91\xc5\x50\xea\x67\x46\xb2\xca\xfe\x01\x9c\x2b\x6a\xce"); ctx.update(b"\xc1\xef\x39\xce\xe5\x8e\x78\xf6\xfc\xdc\x12\xe0\x58\xb7\xf9\x02\xac\xd1\xa9\x3b"); ctx.digest(&mut digest); assert_eq!(digest, b"\x6d\xd5\x2b\x0d\x8b\x48\xcc\x81\x46\xce\xbd\x02\x16\xfb\xf5\xf6\xef\x7e\xea\xfc\x0f\xf2\xff\x9d\x14\x22\xd6\x34\x55\x55\xa1\x42"); ctx.update(b"\x9c\xab\x7d\x7d\xca\xec\x98\xcb\x3a\xc6\xc6\x4d\xd5\xd4\x47\x0d\x0b\x10\x3a\x81\x0c"); ctx.digest(&mut digest); assert_eq!(digest, b"\x44\xd3\x48\x09\xfc\x60\xd1\xfc\xaf\xa7\xf3\x7b\x79\x4d\x1d\x3a\x76\x5d\xd0\xd2\x31\x94\xeb\xbe\x34\x0f\x01\x3f\x0c\x39\xb6\x13"); ctx.update(b"\xea\x15\x7c\x02\xeb\xaf\x1b\x22\xde\x22\x1b\x53\xf2\x35\x39\x36\xd2\x35\x9d\x1e\x1c\x97"); ctx.digest(&mut digest); assert_eq!(digest, b"\x9d\xf5\xc1\x6a\x3f\x58\x04\x06\xf0\x7d\x96\x14\x93\x03\xd8\xc4\x08\x86\x9b\x32\x05\x3b\x72\x6c\xf3\xde\xfd\x24\x1e\x48\x49\x57"); ctx.update(b"\xda\x99\x9b\xc1\xf9\xc7\xac\xff\x32\x82\x8a\x73\xe6\x72\xd0\xa4\x92\xf6\xee\x89\x5c\x68\x67"); ctx.digest(&mut digest); assert_eq!(digest, b"\x67\x2b\x54\xe4\x3f\x41\xee\x77\x58\x4b\xdf\x8b\xf8\x54\xd9\x7b\x62\x52\xc9\x18\xf7\xea\x2d\x26\xbc\x40\x97\xea\x53\xa8\x8f\x10"); ctx.update(b"\x47\x99\x13\x01\x15\x6d\x1d\x97\x7c\x03\x38\xef\xbc\xad\x41\x00\x41\x33\xae\xfb\xca\x6b\xcf\x7e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xfe\xeb\x4b\x2b\x59\xfe\xc8\xfd\xb1\xe5\x51\x94\xa4\x93\xd8\xc8\x71\x75\x7b\x57\x23\x67\x5e\x93\xd3\xac\x03\x4b\x38\x0b\x7f\xc9"); ctx.update(b"\x2e\x7e\xa8\x4d\xa4\xbc\x4d\x7c\xfb\x46\x3e\x3f\x2c\x86\x47\x05\x7a\xff\xf3\xfb\xec\xec\xa1\xd2\x00"); ctx.digest(&mut digest); assert_eq!(digest, b"\x76\xe3\xac\xbc\x71\x88\x36\xf2\xdf\x8a\xd2\xd0\xd2\xd7\x6f\x0c\xfa\x5f\xea\x09\x86\xbe\x91\x8f\x10\xbc\xee\x73\x0d\xf4\x41\xb9"); ctx.update(b"\x47\xc7\x70\xeb\x45\x49\xb6\xef\xf6\x38\x1d\x62\xe9\xbe\xb4\x64\xcd\x98\xd3\x41\xcc\x1c\x09\x98\x1a\x7a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x67\x33\x80\x9c\x73\xe5\x36\x66\xc7\x35\xb3\xbd\x3d\xaf\x87\xeb\xc7\x7c\x72\x75\x61\x50\xa6\x16\xa1\x94\x10\x8d\x71\x23\x12\x72"); ctx.update(b"\xac\x4c\x26\xd8\xb4\x3b\x85\x79\xd8\xf6\x1c\x98\x07\x02\x6e\x83\xe9\xb5\x86\xe1\x15\x9b\xd4\x3b\x85\x19\x37"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0e\x6e\x3c\x14\x3c\x3a\x5f\x7f\x38\x50\x5e\xd6\xad\xc9\xb4\x8c\x18\xed\xf6\xde\xdf\x11\x63\x5f\x6e\x8f\x9a\xc7\x3c\x39\xfe\x9e"); ctx.update(b"\x07\x77\xfc\x1e\x1c\xa4\x73\x04\xc2\xe2\x65\x69\x28\x38\x10\x9e\x26\xaa\xb9\xe5\xc4\xae\x4e\x86\x00\xdf\x4b\x1f"); ctx.digest(&mut digest); assert_eq!(digest, b"\xff\xb4\xfc\x03\xe0\x54\xf8\xec\xbc\x31\x47\x0f\xc0\x23\xbe\xdc\xd4\xa4\x06\xb9\xdd\x56\xc7\x1d\xa1\xb6\x60\xdc\xc4\x84\x2c\x65"); ctx.update(b"\x1a\x57\x25\x1c\x43\x1d\x4e\x6c\x2e\x06\xd6\x52\x46\xa2\x96\x91\x50\x71\xa5\x31\x42\x5e\xcf\x25\x59\x89\x42\x2a\x66"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc6\x44\x61\x2c\xd3\x26\xb3\x8b\x1c\x68\x13\xb1\xda\xde\xd3\x44\x48\x80\x5a\xef\x31\x7c\x35\xf5\x48\xdf\xb4\xa0\xd7\x4b\x81\x06"); ctx.update(b"\x9b\x24\x5f\xda\xd9\xba\xeb\x89\x0d\x9c\x0d\x0e\xff\x81\x6e\xfb\x4c\xa1\x38\x61\x0b\xc7\xd7\x8c\xb1\xa8\x01\xed\x32\x73"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc0\xe2\x9e\xee\xb0\xd3\xa7\x70\x79\x47\xe6\x23\xcd\xc7\xd1\x89\x9a\xdc\x70\xdd\x78\x61\x20\x5e\xa5\xe5\x81\x39\x54\xfb\x79\x57"); ctx.update(b"\x95\xa7\x65\x80\x9c\xaf\x30\xad\xa9\x0a\xd6\xd6\x1c\x2b\x4b\x30\x25\x0d\xf0\xa7\xce\x23\xb7\x75\x3c\x91\x87\xf4\x31\x9c\xe2"); ctx.digest(&mut digest); assert_eq!(digest, b"\xa4\x13\x9b\x74\xb1\x02\xcf\x1e\x2f\xce\x22\x9a\x6c\xd8\x4c\x87\x50\x1f\x50\xaf\xa4\xc8\x0f\xea\xcf\x7d\x8c\xf5\xed\x94\xf0\x42"); ctx.update(b"\x09\xfc\x1a\xcc\xc2\x30\xa2\x05\xe4\xa2\x08\xe6\x4a\x8f\x20\x42\x91\xf5\x81\xa1\x27\x56\x39\x2d\xa4\xb8\xc0\xcf\x5e\xf0\x2b\x95"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4f\x44\xc1\xc7\xfb\xeb\xb6\xf9\x60\x18\x29\xf3\x89\x7b\xfd\x65\x0c\x56\xfa\x07\x84\x4b\xe7\x64\x89\x07\x63\x56\xac\x18\x86\xa4"); ctx.update(b"\x05\x46\xf7\xb8\x68\x2b\x5b\x95\xfd\x32\x38\x5f\xaf\x25\x85\x4c\xb3\xf7\xb4\x0c\xc8\xfa\x22\x9f\xbd\x52\xb1\x69\x34\xaa\xb3\x88\xa7"); ctx.digest(&mut digest); assert_eq!(digest, b"\xb3\x1a\xd3\xcd\x02\xb1\x0d\xb2\x82\xb3\x57\x6c\x05\x9b\x74\x6f\xb2\x4c\xa6\xf0\x9f\xef\x69\x40\x2d\xc9\x0e\xce\x74\x21\xcb\xb7"); ctx.update(b"\xb1\x2d\xb4\xa1\x02\x55\x29\xb3\xb7\xb1\xe4\x5c\x6d\xbc\x7b\xaa\x88\x97\xa0\x57\x6e\x66\xf6\x4b\xf3\xf8\x23\x61\x13\xa6\x27\x6e\xe7\x7d"); ctx.digest(&mut digest); assert_eq!(digest, b"\x1c\x38\xbf\x6b\xbf\xd3\x22\x92\xd6\x7d\x1d\x65\x1f\xd9\xd5\xb6\x23\xb6\xec\x1e\x85\x44\x06\x22\x3f\x51\xd0\xdf\x46\x96\x87\x12"); ctx.update(b"\xe6\x8c\xb6\xd8\xc1\x86\x6c\x0a\x71\xe7\x31\x3f\x83\xdc\x11\xa5\x80\x9c\xf5\xcf\xbe\xed\x1a\x58\x7c\xe9\xc2\xc9\x2e\x02\x2a\xbc\x16\x44\xbb"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc2\x68\x4c\x0d\xbb\x85\xc2\x32\xb6\xda\x4f\xb5\x14\x7d\xd0\x62\x44\x29\xec\x7e\x65\x79\x91\xed\xd9\x5e\xda\x37\xa5\x87\x26\x9e"); ctx.update(b"\x4e\x3d\x8a\xc3\x6d\x61\xd9\xe5\x14\x80\x83\x11\x55\xb2\x53\xb3\x79\x69\xfe\x7e\xf4\x9d\xb3\xb3\x99\x26\xf3\xa0\x0b\x69\xa3\x67\x74\x36\x60\x00"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbf\x9d\x5e\x5b\x53\x93\x05\x3f\x05\x5b\x38\x0b\xae\xd7\xe7\x92\xae\x85\xad\x37\xc0\xad\xa5\xfd\x45\x19\x54\x2c\xcc\x46\x1c\xf3"); ctx.update(b"\x03\xb2\x64\xbe\x51\xe4\xb9\x41\x86\x4f\x9b\x70\xb4\xc9\x58\xf5\x35\x5a\xac\x29\x4b\x4b\x87\xcb\x03\x7f\x11\xf8\x5f\x07\xeb\x57\xb3\xf0\xb8\x95\x50"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd1\xf8\xbd\x68\x40\x01\xac\x5a\x4b\x67\xbb\xf7\x9f\x87\xde\x52\x4d\x2d\xa9\x9a\xc0\x14\xde\xc3\xe4\x18\x77\x28\xf4\x55\x74\x71"); ctx.update(b"\xd0\xfe\xfd\x96\x78\x7c\x65\xff\xa7\xf9\x10\xd6\xd0\xad\xa6\x3d\x64\xd5\xc4\x67\x99\x60\xe7\xf0\x6a\xeb\x8c\x70\xdf\xef\x95\x4f\x8e\x39\xef\xdb\x62\x9b"); ctx.digest(&mut digest); assert_eq!(digest, b"\x49\xba\x38\xdb\x85\xc2\x79\x6f\x85\xff\xd5\x7d\xd5\xec\x33\x70\x07\x41\x45\x28\xae\x33\x93\x5b\x10\x2d\x16\xa6\xb9\x1b\xa6\xc1"); ctx.update(b"\xb7\xc7\x9d\x7e\x5f\x1e\xec\xcd\xfe\xdf\x0e\x7b\xf4\x3e\x73\x0d\x44\x7e\x60\x7d\x8d\x14\x89\x82\x3d\x09\xe1\x12\x01\xa0\xb1\x25\x80\x39\xe7\xbd\x48\x75\xb1"); ctx.digest(&mut digest); assert_eq!(digest, b"\x72\x5e\x6f\x8d\x88\x8e\xba\xf9\x08\xb7\x69\x22\x59\xab\x88\x39\xc3\x24\x8e\xdd\x22\xca\x11\x5b\xb1\x3e\x02\x58\x08\x65\x47\x00"); ctx.update(b"\x64\xcd\x36\x3e\xcc\xe0\x5f\xdf\xda\x24\x86\xd0\x11\xa3\xdb\x95\xb5\x20\x6a\x19\xd3\x05\x40\x46\x81\x9d\xd0\xd3\x67\x83\x95\x5d\x7e\x5b\xf8\xba\x18\xbf\x73\x8a"); ctx.digest(&mut digest); assert_eq!(digest, b"\x32\xca\xef\x02\x4f\x84\xe9\x7c\x30\xb4\xa7\xb9\xd0\x4b\x67\x8b\x3d\x8a\x6e\xb2\x25\x9d\xff\x5b\x7f\x7c\x01\x1f\x09\x08\x45\xf8"); ctx.update(b"\x6a\xc6\xc6\x3d\x61\x8e\xaf\x00\xd9\x1c\x5e\x28\x07\xe8\x3c\x09\x39\x12\xb8\xe2\x02\xf7\x8e\x13\x97\x03\x49\x8a\x79\xc6\x06\x7f\x54\x49\x7c\x61\x27\xa2\x39\x10\xa6"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4b\xb3\x3e\x7c\x69\x16\xe0\x8a\x9b\x3e\xd6\xbc\xef\x79\x0a\xaa\xee\x0d\xcf\x2e\x7a\x01\xaf\xb0\x56\x18\x2d\xea\x2d\xad\x7d\x63"); ctx.update(b"\xd2\x68\x26\xdb\x9b\xae\xaa\x89\x26\x91\xb6\x89\x00\xb9\x61\x63\x20\x8e\x80\x6a\x1d\xa0\x77\x42\x9e\x45\x4f\xa0\x11\x84\x09\x51\xa0\x31\x32\x7e\x60\x5a\xb8\x2e\xcc\xe2"); ctx.digest(&mut digest); assert_eq!(digest, b"\x3a\xc7\xac\x6b\xed\x82\xfd\xc8\xcd\x15\xb7\x46\xf0\xee\x74\x89\x15\x81\x92\xc2\x38\xf3\x71\xc1\x88\x3c\x9f\xe9\x0b\x3e\x28\x31"); ctx.update(b"\x3f\x7a\x05\x9b\x65\xd6\xcb\x02\x49\x20\x4a\xac\x10\xb9\xf1\xa4\xac\x9e\x58\x68\xad\xeb\xbe\x93\x5a\x9e\xb5\xb9\x01\x9e\x1c\x93\x8b\xfc\x4e\x5c\x53\x78\x99\x7a\x39\x47\xf2"); ctx.digest(&mut digest); assert_eq!(digest, b"\xbf\xce\x80\x95\x34\xee\xfe\x87\x12\x73\x96\x4d\x32\xf0\x91\xfe\x75\x6c\x71\xa7\xf5\x12\xef\x5f\x23\x00\xbc\xd5\x7f\x69\x9e\x74"); ctx.update(b"\x60\xff\xcb\x23\xd6\xb8\x8e\x48\x5b\x92\x0a\xf8\x1d\x10\x83\xf6\x29\x1d\x06\xac\x8c\xa3\xa9\x65\xb8\x59\x14\xbc\x2a\xdd\x40\x54\x4a\x02\x7f\xca\x93\x6b\xbd\xe8\xf3\x59\x05\x1c"); ctx.digest(&mut digest); assert_eq!(digest, b"\x1d\x26\xf3\xe0\x4f\x89\xb4\xea\xa9\xdb\xed\x92\x31\xbb\x05\x1e\xef\x2e\x83\x11\xad\x26\xfe\x53\xd0\xbf\x0b\x82\x1e\xaf\x75\x67"); ctx.update(b"\x9e\xcd\x07\xb6\x84\xbb\x9e\x0e\x66\x92\xe3\x20\xce\xc4\x51\x0c\xa7\x9f\xcd\xb3\xa2\x21\x2c\x26\xd9\x0d\xf6\x5d\xb3\x3e\x69\x2d\x07\x3c\xc1\x74\x84\x0d\xb7\x97\x50\x4e\x48\x2e\xef"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0f\xfe\xb6\x44\xa4\x9e\x78\x7c\xcc\x69\x70\xfe\x29\x70\x5a\x4f\x4c\x2b\xfc\xfe\x7d\x19\x74\x1c\x15\x83\x33\xff\x69\x82\xcc\x9c"); ctx.update(b"\x9d\x64\xde\x71\x61\x89\x58\x84\xe7\xfa\x3d\x6e\x9e\xb9\x96\xe7\xeb\xe5\x11\xb0\x1f\xe1\x9c\xd4\xa6\xb3\x32\x2e\x80\xaa\xf5\x2b\xf6\x44\x7e\xd1\x85\x4e\x71\x00\x1f\x4d\x54\xf8\x93\x1d"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd0\x48\xee\x15\x24\x01\x4a\xdf\x9a\x56\xe6\x0a\x38\x82\x77\xde\x19\x4c\x69\x4c\xc7\x87\xfc\x5a\x1b\x55\x4e\xa9\xf0\x7a\xbf\xdf"); ctx.update(b"\xc4\xad\x3c\x5e\x78\xd9\x17\xec\xb0\xcb\xbc\xd1\xc4\x81\xfc\x2a\xaf\x23\x2f\x7e\x28\x97\x79\xf4\x0e\x50\x4c\xc3\x09\x66\x2e\xe9\x6f\xec\xbd\x20\x64\x7e\xf0\x0e\x46\x19\x9f\xbc\x48\x2f\x46"); ctx.digest(&mut digest); assert_eq!(digest, b"\x50\xdb\xf4\x00\x66\xf8\xd2\x70\x48\x4e\xe2\xef\x66\x32\x28\x2d\xfa\x30\x0a\x85\xa8\x53\x0e\xce\xeb\x0e\x04\x27\x5e\x1c\x1e\xfd"); ctx.update(b"\x4e\xef\x51\x07\x45\x9b\xdd\xf8\xf2\x4f\xc7\x65\x6f\xd4\x89\x6d\xa8\x71\x1d\xb5\x04\x00\xc0\x16\x48\x47\xf6\x92\xb8\x86\xce\x8d\x7f\x4d\x67\x39\x50\x90\xb3\x53\x4e\xfd\x7b\x0d\x29\x8d\xa3\x4b"); ctx.digest(&mut digest); assert_eq!(digest, b"\x7c\x5d\x14\xed\x83\xda\xb8\x75\xac\x25\xce\x7f\xee\xd6\xef\x83\x7d\x58\xe7\x9d\xc6\x01\xfb\x3c\x1f\xca\x48\xd4\x46\x4e\x8b\x83"); ctx.update(b"\x04\x7d\x27\x58\xe7\xc2\xc9\x62\x3f\x9b\xdb\x93\xb6\x59\x7c\x5e\x84\xa0\xcd\x34\xe6\x10\x01\x4b\xcb\x25\xb4\x9e\xd0\x5c\x7e\x35\x6e\x98\xc7\xa6\x72\xc3\xdd\xdc\xae\xb8\x43\x17\xef\x61\x4d\x34\x2f"); ctx.digest(&mut digest); assert_eq!(digest, b"\x7d\x53\xec\xcd\x03\xda\x37\xbf\x58\xc1\x96\x2a\x8f\x0f\x70\x8a\x5c\x5c\x44\x7f\x6a\x7e\x9e\x26\x13\x7c\x16\x9d\x5b\xdd\x82\xe4"); ctx.update(b"\x3d\x83\xdf\x37\x17\x2c\x81\xaf\xd0\xde\x11\x51\x39\xfb\xf4\x39\x0c\x22\xe0\x98\xc5\xaf\x4c\x5a\xb4\x85\x24\x06\x51\x0b\xc0\xe6\xcf\x74\x17\x69\xf4\x44\x30\xc5\x27\x0f\xda\xe0\xcb\x84\x9d\x71\xcb\xab"); ctx.digest(&mut digest); assert_eq!(digest, b"\x99\xdc\x77\x2e\x91\xea\x02\xd9\xe4\x21\xd5\x52\xd6\x19\x01\x01\x6b\x9f\xd4\xad\x2d\xf4\xa8\x21\x2c\x1e\xc5\xba\x13\x89\x3a\xb2"); ctx.update(b"\x33\xfd\x9b\xc1\x7e\x2b\x27\x1f\xa0\x4c\x6b\x93\xc0\xbd\xea\xe9\x86\x54\xa7\x68\x2d\x31\xd9\xb4\xda\xb7\xe6\xf3\x2c\xd5\x8f\x2f\x14\x8a\x68\xfb\xe7\xa8\x8c\x5a\xb1\xd8\x8e\xdc\xcd\xde\xb3\x0a\xb2\x1e\x5e"); ctx.digest(&mut digest); assert_eq!(digest, b"\xce\xfd\xae\x1a\x3d\x75\xe7\x92\xe8\x69\x8d\x5e\x71\xf1\x77\xcc\x76\x13\x14\xe9\xad\x5d\xf9\x60\x2c\x6e\x60\xae\x65\xc4\xc2\x67"); ctx.update(b"\x77\xa8\x79\xcf\xa1\x1d\x7f\xca\xc7\xa8\x28\x2c\xc3\x8a\x43\xdc\xf3\x76\x43\xcc\x90\x98\x37\x21\x3b\xd6\xfd\x95\xd9\x56\xb2\x19\xa1\x40\x6c\xbe\x73\xc5\x2c\xd5\x6c\x60\x0e\x55\xb7\x5b\xc3\x7e\xa6\x96\x41\xbc"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc9\x9d\x64\xfa\x4d\xad\xd4\xbc\x8a\x38\x95\x31\xc6\x8b\x45\x90\xc6\xdf\x0b\x90\x99\xc4\xd5\x83\xbc\x00\x88\x9f\xb7\xb9\x80\x08"); ctx.update(b"\x45\xa3\xe6\xb8\x65\x27\xf2\x0b\x45\x37\xf5\xaf\x96\xcf\xc5\xad\x87\x77\xa2\xdd\xe6\xcf\x75\x11\x88\x6c\x55\x90\xec\xe2\x4f\xc6\x1b\x22\x67\x39\xd2\x07\xda\xbf\xe3\x2b\xa6\xef\xd9\xff\x4c\xd5\xdb\x1b\xd5\xea\xd3"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4d\x12\xa8\x49\x04\x7c\x6a\xcd\x4b\x2e\xee\x6b\xe3\x5f\xa9\x05\x1b\x02\xd2\x1d\x50\xd4\x19\x54\x30\x08\xc1\xd8\x2c\x42\x70\x72"); ctx.update(b"\x25\x36\x2a\x4b\x9d\x74\xbd\xe6\x12\x8c\x4f\xdc\x67\x23\x05\x90\x09\x47\xbc\x3a\xda\x9d\x9d\x31\x6e\xbc\xf1\x66\x7a\xd4\x36\x31\x89\x93\x72\x51\xf1\x49\xc7\x2e\x06\x4a\x48\x60\x8d\x94\x0b\x75\x74\xb1\x7f\xef\xc0\xdf"); ctx.digest(&mut digest); assert_eq!(digest, b"\xf8\xe4\xcc\xab\x6c\x97\x92\x29\xf6\x06\x6c\xc0\xcb\x0c\xfa\x81\xbb\x21\x44\x7c\x16\xc6\x87\x73\xbe\x7e\x55\x8e\x9f\x9d\x79\x8d"); ctx.update(b"\x3e\xbf\xb0\x6d\xb8\xc3\x8d\x5b\xa0\x37\xf1\x36\x3e\x11\x85\x50\xaa\xd9\x46\x06\xe2\x68\x35\xa0\x1a\xf0\x50\x78\x53\x3c\xc2\x5f\x2f\x39\x57\x3c\x04\xb6\x32\xf6\x2f\x68\xc2\x94\xab\x31\xf2\xa3\xe2\xa1\xa0\xd8\xc2\xbe\x51"); ctx.digest(&mut digest); assert_eq!(digest, b"\x65\x95\xa2\xef\x53\x7a\x69\xba\x85\x83\xdf\xbf\x7f\x5b\xec\x0a\xb1\xf9\x3c\xe4\xc8\xee\x19\x16\xef\xf4\x4a\x93\xaf\x57\x49\xc4"); ctx.update(b"\x2d\x52\x44\x7d\x12\x44\xd2\xeb\xc2\x86\x50\xe7\xb0\x56\x54\xba\xd3\x5b\x3a\x68\xee\xdc\x7f\x85\x15\x30\x6b\x49\x6d\x75\xf3\xe7\x33\x85\xdd\x1b\x00\x26\x25\x02\x4b\x81\xa0\x2f\x2f\xd6\xdf\xfb\x6e\x6d\x56\x1c\xb7\xd0\xbd\x7a"); ctx.digest(&mut digest); assert_eq!(digest, b"\xcf\xb8\x8d\x6f\xaf\x2d\xe3\xa6\x9d\x36\x19\x5a\xce\xc2\xe2\x55\xe2\xaf\x2b\x7d\x93\x39\x97\xf3\x48\xe0\x9f\x6c\xe5\x75\x83\x60"); ctx.update(b"\x4c\xac\xe4\x22\xe4\xa0\x15\xa7\x54\x92\xb3\xb3\xbb\xfb\xdf\x37\x58\xea\xff\x4f\xe5\x04\xb4\x6a\x26\xc9\x0d\xac\xc1\x19\xfa\x90\x50\xf6\x03\xd2\xb5\x8b\x39\x8c\xad\x6d\x6d\x9f\xa9\x22\xa1\x54\xd9\xe0\xbc\x43\x89\x96\x82\x74\xb0"); ctx.digest(&mut digest); assert_eq!(digest, b"\x4d\x54\xb2\xd2\x84\xa6\x79\x45\x81\x22\x4e\x08\xf6\x75\x54\x1c\x8f\xea\xb6\xee\xfa\x3a\xc1\xcf\xe5\xda\x4e\x03\xe6\x2f\x72\xe4"); ctx.update(b"\x86\x20\xb8\x6f\xbc\xaa\xce\x4f\xf3\xc2\x92\x1b\x84\x66\xdd\xd7\xba\xca\xe0\x7e\xef\xef\x69\x3c\xf1\x77\x62\xdc\xab\xb8\x9a\x84\x01\x0f\xc9\xa0\xfb\x76\xce\x1c\x26\x59\x3a\xd6\x37\xa6\x12\x53\xf2\x24\xd1\xb1\x4a\x05\xad\xdc\xca\xbe"); ctx.digest(&mut digest); assert_eq!(digest, b"\xdb\xa4\x90\x25\x6c\x97\x20\xc5\x4c\x61\x2a\x5b\xd1\xef\x57\x3c\xd5\x1d\xc1\x2b\x3e\x7b\xd8\xc6\xdb\x2e\xab\xe0\xaa\xcb\x84\x6b"); ctx.update(b"\xd1\xbe\x3f\x13\xfe\xba\xfe\xfc\x14\x41\x4d\x9f\xb7\xf6\x93\xdb\x16\xdc\x1a\xe2\x70\xc5\xb6\x47\xd8\x0d\xa8\x58\x35\x87\xc1\xad\x8c\xb8\xcb\x01\x82\x43\x24\x41\x1c\xa5\xac\xe3\xca\x22\xe1\x79\xa4\xff\x49\x86\xf3\xf2\x11\x90\xf3\xd7\xf3"); ctx.digest(&mut digest); assert_eq!(digest, b"\x02\x80\x49\x78\xeb\xa6\xe1\xde\x65\xaf\xdb\xc6\xa6\x09\x1e\xd6\xb1\xec\xee\x51\xe8\xbf\xf4\x06\x46\xa2\x51\xde\x66\x78\xb7\xef"); ctx.update(b"\xf4\x99\xcc\x3f\x6e\x3c\xf7\xc3\x12\xff\xdf\xba\x61\xb1\x26\x0c\x37\x12\x9c\x1a\xfb\x39\x10\x47\x19\x33\x67\xb7\xb2\xed\xeb\x57\x92\x53\xe5\x1d\x62\xba\x6d\x91\x1e\x7b\x81\x8c\xca\xe1\x55\x3f\x61\x46\xea\x78\x0f\x78\xe2\x21\x9f\x62\x93\x09"); ctx.digest(&mut digest); assert_eq!(digest, b"\x0b\x66\xc8\xb4\xfe\xfe\xbc\x8d\xc7\xda\x0b\xbe\xdc\x11\x14\xf2\x28\xaa\x63\xc3\x7d\x5c\x30\xe9\x1a\xb5\x00\xf3\xea\xdf\xce\xc5"); ctx.update(b"\x6d\xd6\xef\xd6\xf6\xca\xa6\x3b\x72\x9a\xa8\x18\x6e\x30\x8b\xc1\xbd\xa0\x63\x07\xc0\x5a\x2c\x0a\xe5\xa3\x68\x4e\x6e\x46\x08\x11\x74\x86\x90\xdc\x2b\x58\x77\x59\x67\xcf\xcc\x64\x5f\xd8\x20\x64\xb1\x27\x9f\xdc\xa7\x71\x80\x3d\xb9\xdc\xa0\xff\x53"); ctx.digest(&mut digest); assert_eq!(digest, b"\xc4\x64\xa7\xbf\x6d\x18\x0d\xe4\xf7\x44\xbb\x2f\xe5\xdc\x27\xa3\xf6\x81\x33\x4f\xfd\x54\xa9\x81\x46\x50\xe6\x02\x60\xa4\x78\xe3"); ctx.update(b"\x65\x11\xa2\x24\x2d\xdb\x27\x31\x78\xe1\x9a\x82\xc5\x7c\x85\xcb\x05\xa6\x88\x7f\xf2\x01\x4c\xf1\xa3\x1c\xb9\xba\x5d\xf1\x69\x5a\xad\xb2\x5c\x22\xb3\xc5\xed\x51\xc1\x0d\x04\x7d\x25\x6b\x8e\x34\x42\x84\x2a\xe4\xe6\xc5\x25\xf8\xd7\xa5\xa9\x44\xaf\x2a"); ctx.digest(&mut digest); assert_eq!(digest, b"\xd6\x85\x9c\x0b\x5a\x0b\x66\x37\x6a\x24\xf5\x6b\x2a\xb1\x04\x28\x6e\xd0\x07\x86\x34\xba\x19\x11\x2a\xce\x0d\x6d\x60\xa9\xc1\xae"); ctx.update(b"\xe2\xf7\x6e\x97\x60\x6a\x87\x2e\x31\x74\x39\xf1\xa0\x3f\xcd\x92\xe6\x32\xe5\xbd\x4e\x7c\xbc\x4e\x97\xf1\xaf\xc1\x9a\x16\xfd\xe9\x2d\x77\xcb\xe5\x46\x41\x6b\x51\x64\x0c\xdd\xb9\x2a\xf9\x96\x53\x4d\xfd\x81\xed\xb1\x7c\x44\x24\xcf\x1a\xc4\xd7\x5a\xce\xeb"); ctx.digest(&mut digest); assert_eq!(digest, b"\x18\x04\x1b\xd4\x66\x50\x83\x00\x1f\xba\x8c\x54\x11\xd2\xd7\x48\xe8\xab\xbf\xdc\xdf\xd9\x21\x8c\xb0\x2b\x68\xa7\x8e\x7d\x4c\x23"); ctx.update(b"\x5a\x86\xb7\x37\xea\xea\x8e\xe9\x76\xa0\xa2\x4d\xa6\x3e\x7e\xd7\xee\xfa\xd1\x8a\x10\x1c\x12\x11\xe2\xb3\x65\x0c\x51\x87\xc2\xa8\xa6\x50\x54\x72\x08\x25\x1f\x6d\x42\x37\xe6\x61\xc7\xbf\x4c\x77\xf3\x35\x39\x03\x94\xc3\x7f\xa1\xa9\xf9\xbe\x83\x6a\xc2\x85\x09"); ctx.digest(&mut digest); assert_eq!(digest, b"\x42\xe6\x1e\x17\x4f\xbb\x38\x97\xd6\xdd\x6c\xef\x3d\xd2\x80\x2f\xe6\x7b\x33\x19\x53\xb0\x61\x14\xa6\x5c\x77\x28\x59\xdf\xc1\xaa"); } } nettle-7.1.0/src/hash/sha384.rs000064400000000000000000002155070072674642500142600ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha384, nettle_sha384_digest, nettle_sha384_init, nettle_sha512_update, sha512_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 512 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4, truncated to 384 /// bit. pub struct Sha384 { context: sha512_ctx, } impl_write_for_hash!(Sha384); impl Clone for Sha384 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha512_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha384 { context: ctx } } } } impl Default for Sha384 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha384_init(&mut ctx as *mut _); } Sha384 { context: ctx } } } impl Hash for Sha384 { fn digest_size(&self) -> usize { ::nettle_sys::SHA384_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha512_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha384_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha384 { type Context = sha512_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha384 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha384::default(); } // CAVS 11.0 // "SHA-384 ShortMsg" information // SHA-384 tests are configured for BYTE oriented implementations // Generated on Tue Mar 15 08:23:39 2011 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha384::default(); let mut digest: Vec = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\xb0\x60\xa7\x51\xac\x96\x38\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a\x21\xfd\xb7\x11\x14\xbe\x07\x43\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda\x27\x4e\xde\xbf\xe7\x6f\x65\xfb\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b"[..]); ctx.update(b"\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb5\x2b\x72\xda\x75\xd0\x66\x63\x79\xe2\x0f\x9b\x4a\x79\xc3\x3a\x32\x9a\x01\xf0\x6a\x2f\xb7\x86\x5c\x90\x62\xa2\x8c\x1d\xe8\x60\xba\x43\x2e\xdf\xd8\x6b\x4c\xb1\xcb\x8a\x75\xb4\x60\x76\xe3\xb1"[..]); ctx.update(b"\x6e\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x53\xd4\x77\x3d\xa5\x0d\x8b\xe4\x14\x5d\x8f\x3a\x70\x98\xff\x36\x91\xa5\x54\xa2\x9a\xe6\xf6\x52\xcc\x71\x21\xeb\x8b\xc9\x6f\xd2\x21\x0e\x06\xae\x2f\xa2\xa3\x6c\x4b\x3b\x34\x97\x34\x1e\x70\xf0"[..]); ctx.update(b"\x1f\xa4\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe4\xca\x46\x63\xdf\xf1\x89\x54\x1c\xd0\x26\xdc\xc0\x56\x62\x64\x19\x02\x87\x74\x66\x6f\x5b\x37\x9b\x99\xf4\x88\x7c\x72\x37\xbd\xbd\x3b\xea\x46\xd5\x38\x8b\xe0\xef\xc2\xd4\xb7\x98\x9a\xb2\xc4"[..]); ctx.update(b"\x50\xe3\x85\x3d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x93\x6a\x3c\x39\x91\x71\x6b\xa4\xc4\x13\xbc\x03\xde\x20\xf5\xce\x1c\x63\x70\x3b\x3a\x5b\xdb\x6a\xb5\x58\xc9\xff\x70\xd5\x37\xe4\x6e\xb4\xa1\x5d\x9f\x2c\x85\xe6\x8d\x86\x78\xde\x56\x82\x69\x5e"[..]); ctx.update(b"\x4b\x5f\xab\x61\xe0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\x39\x0a\xa5\xb7\x0b\x06\x8a\x54\xd6\xd5\x12\x7d\xf6\xa6\x22\x7b\xec\xc4\xd6\xf8\x91\xfd\x3f\x60\x68\xb9\x17\xa8\x83\xc9\xb6\x6f\x31\x8f\xdd\xb6\x38\x4d\x10\xbe\x8c\x7a\xf0\xd3\x13\x2f\x03"[..]); ctx.update(b"\xda\xd9\x5a\x4b\x4d\x37"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\x2b\x40\xf4\x53\x92\x5b\xc3\xce\x17\xd6\x40\x75\x7e\xe0\xe8\x99\x39\x0b\x4a\x8d\x98\x4d\x02\x97\xc1\xba\xe6\xb6\x0b\x9f\x26\x03\xbf\x71\xc3\x23\xfd\x17\x10\x11\x37\x23\x35\xe5\x70\x2e\x40"[..]); ctx.update(b"\x12\x18\x35\xfe\x37\x00\xb7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7b\xd0\x6a\x94\xac\xba\x7b\xeb\x3c\x5a\x9b\x9e\x87\x69\xc3\xda\x66\x91\xc4\x82\xd7\x8b\x1e\x5c\x76\x19\xb3\x66\x30\xeb\xa4\xe5\x96\xd1\x1c\x41\x0a\x4c\x87\x00\x6f\x47\x16\xb6\xf1\x7b\xb9\xa0"[..]); ctx.update(b"\xde\x60\x27\x5b\xda\xfc\xe4\xb1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa3\xd8\x61\xd8\x66\xc1\x36\x24\x23\xeb\x21\xc6\xbe\xc8\xe4\x4b\x74\xce\x99\x3c\x55\xba\xa2\xb6\x64\x05\x67\x56\x0e\xbe\xcd\xae\xda\x07\x18\x3d\xbb\xbd\x95\xe0\xf5\x22\xca\xee\x5d\xdb\xda\xf0"[..]); ctx.update(b"\x8d\x45\xa5\x5d\x5c\xe1\xf9\x28\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xde\x76\x68\x35\x75\xa0\x50\xe2\xeb\x5e\xf9\x5e\xe2\x01\xf8\x24\x16\x47\x8a\x1d\x14\xbf\x3d\x96\xd1\xfd\x4e\xfd\x52\xb1\xa2\x8f\xed\x8d\xfe\xe1\x83\x00\x70\x00\x1d\xc1\x02\xa2\x1f\x76\x1d\x20"[..]); ctx.update(b"\x5c\x7d\xde\x9b\x38\x94\xd7\x3c\xef\xe1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf3\x1b\x22\x11\x5f\xa7\x17\x8e\x78\x22\x3e\x06\xaa\xe8\x70\x54\x7a\xb9\x3c\x6e\xb3\xc3\x91\x0b\x0e\xe1\x6e\x61\x06\xdb\x55\x93\x5d\x6c\x0e\xb8\x20\x13\x2a\x20\x78\xec\xe1\x06\x7e\xfc\x81\xc3"[..]); ctx.update(b"\x96\x7f\xa3\x4c\x07\xe4\x94\x5a\x77\x05\x1a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\xf2\x4d\x81\xc4\xf8\xf2\x3e\xcb\x42\xd7\x6e\xd5\xd2\xb3\x4c\x9c\xbc\x1f\x0a\x97\x23\x4d\x11\x14\x80\x4b\x59\x99\x75\x9f\x31\x31\xc7\x41\xd5\x76\x8c\xc9\x28\x16\x35\x03\xc5\xf5\x5f\x59\x4b"[..]); ctx.update(b"\x22\x09\x11\x2e\xe7\x79\xbf\x6d\x95\x71\x11\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\xc5\x4b\xf5\x33\xa2\x6c\x74\x47\xca\xa5\x78\x3d\xb2\xec\x7e\xf5\xe5\x57\x52\xda\x7f\x2a\x2c\x4e\x36\x09\x82\xa9\x4e\xc1\xca\x2c\xb6\xa1\x57\xd3\x4e\xed\x28\xde\x97\x8b\x41\x45\xe1\x7e\xbc"[..]); ctx.update(b"\x20\x44\x2e\x1c\x3f\x3c\x88\x91\x9c\x39\x97\x8b\x78"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x50\xbc\x95\xb0\x36\xe0\xf5\x4d\x83\x30\x32\xa8\x0d\x45\xc2\xac\x38\xb3\xd2\x9e\x9c\x7f\x72\xa2\xeb\x14\x78\x1e\x92\x41\xd2\xa4\xb8\xe8\xdb\xa6\xee\x6f\x4c\x9e\x46\xa7\x58\xd5\x71\x2d\xbd\x39"[..]); ctx.update(b"\x4d\x43\x70\x2b\xe4\xf0\x53\x03\x19\x55\x5d\x7f\x1a\x33"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x83\xc8\xf0\xbb\x76\x28\x01\xeb\x26\xcc\x51\x15\xab\xeb\xb6\x57\xc1\x8f\xf8\x11\xde\x50\x0b\x32\xb7\xa5\x68\xa2\x20\xa2\x87\xe9\x00\xb6\xc7\x52\x24\xfe\x74\x29\x16\x9f\xbd\x53\x4c\xb5\x88\xe1"[..]); ctx.update( b"\x5e\x2a\x79\xa5\x44\xaf\x85\xf1\x50\xf7\xa9\xd2\x09\xfd\x44", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\x51\xeb\xc9\xca\xbb\x05\x2c\xab\xe0\x7e\x40\x23\xe2\x14\x08\x08\xb7\x7d\x25\xb0\x7b\x96\xd2\xe3\xc2\x23\x93\xf7\x1b\x11\x6c\x1a\x1e\x41\xbf\x62\xe5\x7f\x73\xff\x67\x87\x1d\xa7\xc9\x3c\xf9"[..]); ctx.update( b"\xe1\xbb\x96\x7b\x5d\x37\x9a\x4a\xa3\x90\x50\x27\x4d\x09\xbd\x93", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\x04\xf9\x69\x65\xad\x2f\xba\xbd\x4d\xf2\x5d\x5d\x8c\x95\x58\x9d\x06\x9c\x31\x2e\xe4\x85\x39\x09\x0b\x2d\x7b\x49\x5d\x24\x46\xc3\x1e\xb2\xb8\xf8\xff\xb3\x01\x2b\xdc\xe0\x65\x32\x3d\x9f\x48"[..]); ctx.update(b"\xbb\x84\xa0\x14\xcd\x17\xcc\x23\x2c\x98\xae\x8b\x07\x09\x91\x7e\x9d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\x22\x7a\xe0\x57\xf2\x08\x2a\xdf\x17\x8c\xae\x99\x64\x49\x10\x0b\x6a\x31\x19\xe4\xc4\x15\xa9\x9e\x25\xbe\x6e\xf2\x0b\xa8\xc0\xea\xe8\x18\xd6\x0f\x71\xc5\xc8\x3f\xf2\xd4\xc5\x9a\xa7\x52\x63"[..]); ctx.update(b"\xc3\x41\x1a\x05\x92\xf1\xf4\xfa\x69\x88\x15\x23\x89\x97\xdb\x35\x64\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x23\x3a\xc4\x41\x70\xd9\xf4\x52\xa1\xa0\x23\x16\x22\x03\x0b\x15\xc1\x04\xff\x8e\xca\xa3\xfc\xcd\xb9\xe9\xe5\x03\x1f\xd5\xb4\x22\x01\x86\xa8\xed\xd0\x32\x84\x9c\x8b\x93\xdc\x18\x3a\x5c\x86\x27"[..]); ctx.update(b"\xe8\x31\xb7\x39\xe8\xeb\x9f\x78\x7f\x63\xc0\xbb\x07\x1d\xdc\xc9\xf4\x4c\xab"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x91\x72\x2d\x4b\x7a\xec\xc2\x11\xbb\x8a\x54\x80\xc6\x85\x5f\x3b\x71\xbe\x46\x47\xe1\xdd\xe0\x38\x0c\x23\xaf\xaa\x03\xf4\x5c\x64\x26\x06\xa2\x45\x06\xe0\x31\x7b\xf5\x15\x06\xa4\x83\xde\x28\xac"[..]); ctx.update(b"\xb8\xa7\xbb\xcc\xde\x46\xe8\x5f\x12\x23\x23\x7d\x93\x53\xb7\x8c\x3b\x19\x72\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x28\xba\x69\xdc\x05\xe6\xe2\x9d\xe9\x19\x24\x11\x4d\x6c\x9f\xc7\x61\x2f\x6d\x2a\x68\xb0\x7f\xa0\x01\xdf\x05\x9b\xcf\x98\xf7\xaa\x85\x38\x9c\xae\xb9\x66\xea\xa2\x99\xc7\x9f\xe1\xfd\x1e\x40\xe3"[..]); ctx.update(b"\xcf\x39\x1b\x8a\xab\xec\x6f\x81\x28\x8c\x8b\x7b\x92\x84\x3b\xe2\x3d\x2e\x84\x75\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\x1e\x5e\xf6\x97\xdf\x49\x1a\x53\xd7\xba\xe1\x21\x41\x6a\xa6\x53\xd7\x59\xa3\x7d\xb9\xd0\xb9\x93\x03\x1b\x18\xa0\xef\x16\x0e\xd9\x88\x42\xa2\x91\xe1\xba\x2c\xea\x8b\x99\x8b\xc5\xee\xe0\xb1"[..]); ctx.update(b"\x9d\x65\xd8\x8b\xff\xed\x76\x4c\x28\x6f\x34\x89\x4f\x99\x16\x00\xd1\xa6\x7d\x62\x23\x82"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\xb6\xe0\xd6\xa4\x53\x29\xda\xf4\x7a\x79\x34\x18\xed\x5d\xbd\xe0\x13\x36\xb4\xb9\x46\x8b\xb6\x9e\x5d\xa6\x1c\x42\xb6\x91\xe6\x79\x4e\x6e\xd0\xe8\xfb\x1b\x8e\x7d\x4c\xd3\xcb\xaa\xdc\x52\x0a"[..]); ctx.update(b"\xba\xb6\xea\x46\xfb\x71\x7f\x73\xf0\x62\x81\x32\xa2\xb9\x6b\xe3\x83\x77\x4f\x1e\x5d\x8b\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe9\x69\xac\xa1\xb5\x0e\x92\x8c\xad\x29\xa0\xd7\x56\x45\x7f\x6d\xe8\xd7\xa4\xe5\x89\xfd\x41\xe5\x3a\x1e\x75\x8c\x3b\x20\xf9\xb8\x1b\x36\xbf\x09\x8a\x49\x10\x2f\xbf\x86\x96\x51\xca\x9a\x98\xb5"[..]); ctx.update(b"\x88\x53\xb0\x0e\x86\x97\x64\xad\xb5\x27\xa0\x7b\x07\x3c\x85\xa2\x4e\x6c\x20\x8b\xa4\x7e\xef\x4e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\xad\x44\xe8\x5a\xc1\x90\xe2\xd1\xc3\xce\xb4\xef\xbe\xa1\x0d\xed\x34\xd0\xde\x96\x1f\xe4\xee\x26\x81\x32\xc4\x8e\x38\x66\x0e\x6c\xf5\x85\xbf\xff\xb8\xf7\xb0\x0b\x0f\xad\x15\x14\x31\x2b\x63"[..]); ctx.update(b"\x71\xfe\x1b\xa5\xd2\x99\x49\x5d\x2a\x56\x03\x9c\x64\x03\x2e\xc6\x26\x3d\x43\x7f\x55\xe3\xf5\xbe\xdb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\x1a\x5d\x3b\x4a\xf6\xd4\xb9\xc3\x49\xe0\x78\x85\x38\xe9\xa0\x31\x10\x86\x89\x4d\xf7\xb7\x2c\xf5\xaa\xf4\x09\x1a\x7e\x03\x9e\x4e\x89\xcc\x77\xa1\x23\x47\x4e\x6d\x1b\xac\x43\x8e\x5e\x9f\x88"[..]); ctx.update(b"\x4e\xbe\x07\xd0\x3c\x93\xe8\x49\xb4\xbb\xfe\x9f\x2d\x22\x94\xbf\x6c\xca\xb4\x57\xf7\x6d\x3f\x99\xcb\x64"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbe\xba\x46\x4d\x70\x65\x18\x55\x87\xfa\xd8\x9b\xfc\xea\x96\x35\xbf\x0a\xb7\x75\xc3\xeb\x8c\x14\x7b\x5b\x2b\xd8\x60\x1d\xb6\xdb\xa0\x59\x0b\x50\xdd\x10\x68\x73\x3f\x20\xdc\x68\xe0\x04\xa0\x90"[..]); ctx.update(b"\x91\x8a\xc0\xa9\x7e\xc1\x63\x29\x08\x48\x9e\x52\x42\xba\x28\x4b\xc8\x11\xaa\x71\x97\x24\x2c\xf7\x22\x6f\xcd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\xba\xf6\x39\x7a\x4c\x6e\x26\x49\x2b\x63\xa4\xaa\xb7\xdf\xfd\xd0\x05\x1d\x8f\x51\x93\x8a\xc2\x4c\xfd\x8d\xae\x2f\x7a\xfe\xd1\xa4\xaa\x24\x30\xd7\xae\xb0\xbe\x2a\x72\xb2\x1a\x6c\x50\x19\x8c"[..]); ctx.update(b"\x97\x47\x7f\x72\x72\xd8\xa8\x9e\x38\xe7\x96\xc5\x33\xe9\xf8\xa8\xae\x4c\x92\xcc\xaa\x5d\x90\x7e\xd2\x6a\x1a\x15"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\xad\x52\x4e\xbe\x90\x8d\x7c\x5a\xff\x50\xe6\xcb\x78\x0f\xd3\xa7\x0e\x87\xc9\x14\xa3\x6b\x93\xc4\xe3\x5f\x5b\x2c\xb0\x38\x50\xb1\x22\xb4\x80\xef\x85\x87\xd4\xa4\x4f\x22\x46\x7f\x4c\x48\x0c"[..]); ctx.update(b"\x71\x8e\x0c\xfe\x13\x86\xcb\x14\x21\xb4\x79\x9b\x15\x78\x8b\x86\x2b\xf0\x3a\x80\x72\xbb\x30\xd0\x23\x03\x88\x80\x32"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6d\x8b\x8a\x5b\xc7\xea\x36\x5e\xa0\x7f\x11\xd3\xb1\x2e\x95\x87\x2a\x96\x33\x68\x47\x52\x49\x5c\xc4\x31\x63\x6c\xaf\x1b\x27\x3a\x35\x32\x10\x44\xaf\x31\xc9\x74\xd8\x57\x5d\x38\x71\x1f\x56\xc6"[..]); ctx.update(b"\xd3\xb0\x7f\x0f\xd5\xd4\xcd\x31\x88\xae\xad\x8d\xc8\x33\x8d\xe4\x20\x56\xe2\xe8\x48\x7e\xca\x51\xec\x37\xef\x2d\xaf\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\xcc\x2e\x95\x4c\x91\xdb\x3d\xb2\xd7\x1d\x0d\xee\x1f\x03\x0e\x72\x3b\xee\x1a\x23\x81\x6f\xe0\x03\xac\x5d\xc8\x62\xa0\x87\x2e\xf5\x1f\xf3\x86\xc1\x8b\xe6\xeb\xca\xa4\x93\xf3\x2d\x11\x95\xb9"[..]); ctx.update(b"\x69\x5b\x9e\xfe\x18\x09\xab\xd5\xd4\x4e\xae\x95\x7d\xdf\x9c\x2c\xd3\xc7\x5f\xae\x2f\x52\x28\x55\x71\x2a\x07\xc6\x39\xc0\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\xb9\x5d\x16\x4d\x94\x59\x5a\x11\x87\xf7\x7f\xc2\x6c\x28\x0f\xfb\xb0\x8e\x74\xec\x79\x47\xaa\x3e\x5b\x38\xbe\xc7\xc6\xf8\x11\x5c\x4d\x88\x07\x88\xc2\x40\x2d\xbb\x3e\x5b\x94\xaf\xd1\x30\xee"[..]); ctx.update(b"\xbe\x01\xe5\x20\xe6\x9f\x04\x17\x4c\xcf\x95\x45\x5b\x1c\x81\x44\x52\x98\x26\x4d\x9a\xdc\x49\x58\x57\x4a\x52\x84\x3d\x95\xb8\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc5\xcf\x54\xb8\xe3\x10\x5b\x1c\x7b\xf7\xa4\x37\x54\xd9\x15\xb0\x94\x7f\x28\xb6\xdc\x94\xa0\x19\x18\x29\x29\xb5\xc8\x48\xe1\x14\x41\xc9\xe4\xe9\x0c\x74\x49\xf4\xc3\xcd\x12\x95\x4f\x0f\x5d\x99"[..]); ctx.update(b"\x98\xef\x73\x01\xf9\x57\xd7\x3d\x4e\x82\x1d\x58\x73\xe8\xa9\xb5\x97\x0f\xbd\x21\x9d\x5c\xf7\x4e\xc2\x29\x1b\x83\x81\x18\x13\x91\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb2\x56\x4b\xbb\x15\x9c\x3a\xea\xdb\xae\x0e\x4a\x44\x37\xf7\xc5\x11\x10\x20\xe9\xad\x0f\x4e\xb5\x08\x14\x7a\x96\x1a\xc2\x2a\x01\xe1\xa2\x6d\xf0\x46\xb1\x4e\xe5\xe8\xa4\x9d\x9e\xd2\x2b\x8c\xd1"[..]); ctx.update(b"\x87\x3b\xa7\xf8\xb7\x15\x17\xec\x50\x29\x7b\x21\xcf\x94\xcd\xb7\xa5\x8a\xbb\xb8\x82\x92\x06\xf0\xd3\xf3\x28\xff\x8a\x69\x39\xac\x1d\x1d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x05\xfd\xd5\x57\xd2\xb5\xd4\xf6\x5e\x9e\x85\xf5\x08\xd3\x79\x14\x95\xf1\x82\x0d\x37\xca\xbf\xc8\xdb\xb7\x4d\x7b\x41\xdf\x86\x13\xd9\x95\xc6\x12\xd3\x78\xdd\x88\x33\x7e\x00\x95\x1d\x02\x80"[..]); ctx.update(b"\xe3\xbd\x4b\xc3\xa6\x0c\xdd\xd2\x6c\x20\xaa\x86\x36\x4b\xd4\x4f\x4a\x07\xf3\x30\x28\x25\xad\x0a\xc1\x27\x88\x1d\xe4\xea\xfb\xcc\xf9\x88\xcb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x19\x9d\x54\x23\xa0\xe2\x64\x38\xf4\xce\xa0\x08\x1a\x89\xe0\xb6\xc8\x4c\xa9\x3f\x7c\x31\x20\xc8\x10\x4b\x51\xc6\xed\xc0\x4e\x0f\x6a\x20\x3b\xb7\x7d\x59\x97\x3a\x74\x11\xa0\xef\xbe\x93\xa0\x9d"[..]); ctx.update(b"\x87\x16\xe4\xb8\x6d\xef\xf9\xda\x2a\x8e\xd5\x5b\xaa\x43\x58\x2a\x75\x86\xec\x9c\xd3\x8a\xc3\xa9\x33\x15\x61\x58\xcd\x8e\x5b\x78\x87\x58\x5e\x91"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0d\x23\x06\xd9\xc0\xa8\xce\x57\xbc\x78\x69\xb4\x39\x37\x6c\x07\xce\x35\x2a\x41\xd8\x6a\xb6\xcf\x4a\x56\x54\xcc\xcd\x5c\x72\x4f\xe1\xb6\x2b\x2c\x11\x01\xc9\x86\x22\x2f\x52\x64\xab\x3f\xdd\x66"[..]); ctx.update(b"\xf8\xa5\x03\xaa\xa2\x5e\xf2\xce\xa2\x5e\x31\x93\x0c\x3a\x90\xdb\x46\x8c\xd3\xa8\x62\xf4\xa9\x3a\xab\x5d\xe2\x77\x7e\x82\xdc\x90\x5c\xb0\x3e\xe2\x3c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x77\x3e\xe9\x58\xfe\x93\xdf\xd1\xb7\x3a\xf2\x4d\x27\xdd\xce\x33\x14\x4a\x92\x49\xd5\xa6\x71\x68\x2a\x56\xdf\x30\xd0\xbb\xf9\x2b\x93\x27\x13\x00\x22\x07\x51\x85\xd3\x96\xde\x75\x29\x59\x30\x4f"[..]); ctx.update(b"\x66\x90\x25\x17\x5e\xa9\x17\xcd\xd7\xa7\x1f\xf4\xec\x0c\x45\xbf\x12\x46\xd2\xa6\xf0\x31\xc0\x0b\x71\xde\x70\x1e\x17\x93\x9b\xfe\x92\x12\x8b\x21\x91\x1e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9f\xf6\xbe\x3f\x02\xc7\xc5\xd0\x20\x6f\x4b\x94\x4c\x08\x43\xcb\x68\xbe\xa8\xf9\xb7\xc8\xcc\x0b\x72\x95\x03\xdb\x50\x05\xc7\xcd\x5c\xb1\x4e\x34\x57\xd8\xf5\xea\xbf\x73\x3f\xca\x90\x84\xf1\x6b"[..]); ctx.update(b"\xb3\x5f\xb2\x26\x2e\xdf\xa1\x49\x38\xa0\xfb\xa0\x3e\xb2\xa2\x5d\x37\x79\x74\xb1\x1f\x55\x64\x91\xa7\x81\xd0\xba\x2b\x3c\x0f\xf3\xe4\x27\x49\x92\x5f\xef\x8b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x83\x5b\x05\xa4\xbf\x00\xc2\x59\x4c\x3c\x8c\x13\xda\x6c\x27\x3a\x0d\x9e\xfd\xea\x0d\xa7\x2b\x71\xb1\x9d\x32\x6b\xf5\xce\x96\x8c\x2e\x57\x7a\x7d\x99\xfc\x0f\x98\x5a\xfd\x23\xb4\x64\x23\x12\x9d"[..]); ctx.update(b"\x9d\x86\xb4\x5d\xf8\xd7\xda\xe0\xcf\x6b\x0b\xc2\x08\x66\x6e\xe1\x16\x3a\x39\xe6\x11\x6d\x6d\x24\x0c\x9d\xc1\xc3\xa3\xc1\xdb\x1d\xd3\xb1\xc6\x68\x0f\xe9\xa1\x96"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x4c\x46\x9c\x24\x69\x6f\x81\xd7\xdf\x4e\xe8\xcd\x76\xaa\x58\x4f\x8c\x99\x60\xea\xa9\x90\x8d\x3e\x3e\xbc\x5e\xea\x7d\x0b\x50\xaf\xdd\xed\x39\xde\xb9\x4f\xd5\x93\x23\xa2\x1a\x65\x39\xe9\x3f"[..]); ctx.update(b"\x41\x4f\x56\x19\xf6\xdf\xd4\x58\x53\xbb\xab\xd2\x24\xcc\x30\x5d\x77\x35\x0a\xd2\x53\x35\x89\x10\xa7\x4f\x3a\x43\x81\xa9\xb8\x66\x80\xb3\xc4\x06\x8c\x08\x98\x49\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\x8d\x48\x1e\x3b\xbf\x5d\xd7\x26\xf6\x25\xcf\x6a\x44\x4d\x99\x5b\x36\x26\x2c\x9f\x80\xd5\x83\xb7\x7a\xcc\xf1\x70\x7e\x3f\x49\xbb\x3d\xc4\x80\xa5\x60\x69\x4d\x76\x9a\xa1\xce\x65\xd6\x94\x28"[..]); ctx.update(b"\xe2\x65\x83\x24\x82\x1a\xe7\xb0\xfa\xa0\xcd\xd6\x3e\xe9\xef\xb9\xfc\xbe\x82\x09\x2d\x04\x69\x6f\xeb\x3d\xa9\x2c\x82\x52\x1d\xfd\xc9\x8f\x6b\x41\xb3\xef\x36\x5d\x21\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3e\xa5\xd0\x79\x9f\x1a\x4d\xca\xb9\x14\x9a\x40\xab\x74\xbe\xc9\xc8\xd7\x6d\x8e\x39\x2c\x1e\x63\xe0\x80\xdd\xec\x2e\xc5\x35\xf8\x0b\xe9\xf0\x09\x27\xbe\x28\x1e\xc9\x7a\xc0\xc8\x82\xbb\x0b\xbf"[..]); ctx.update(b"\x7e\x80\x27\x1b\xb5\xf2\xcc\x7d\xda\xe4\x15\x86\x58\xe4\xe8\xd0\x6e\x04\xa3\x93\x85\xda\x0e\xca\xc1\xcb\x8e\x91\xd6\x8a\x9b\xd2\x1d\xdb\x73\x20\xe7\x9d\x10\xe3\x11\x07\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfa\x00\xbc\x03\x59\xa6\x42\xdc\xb3\x55\x96\x56\x09\x4e\xb2\xfd\x4f\x63\xbc\x57\xf0\xd3\x4a\xbf\xf2\x6d\xf5\xc5\x4c\xc6\x3d\xbe\xb4\xea\xc7\x59\x05\x29\x6e\x7f\xb6\x9f\x87\x1e\x13\x40\x83\xf6"[..]); ctx.update(b"\x43\xd2\x82\x8e\x86\xf7\x85\x6b\x78\xc6\x6c\xfa\x3d\x60\x23\x87\xc2\x90\x97\x5a\xfd\x02\x1a\x8b\x76\xaf\x09\x18\x06\x9c\xac\x35\xde\xc4\x5d\xe3\xcc\x52\xed\xc4\xba\x14\x43\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\x9e\x36\x7e\x06\x60\x32\xce\x47\xba\x25\x75\x56\x59\x32\x00\x2c\xc7\x86\xf5\x33\xc5\x55\x16\x56\xab\xfe\x73\x91\xe7\xdc\xb5\xf9\xd9\xe0\x47\xad\xac\xe2\x3d\x32\xf8\xac\xed\xfd\x0c\xaf\xc5"[..]); ctx.update(b"\x3f\x49\xbb\x64\x5c\xce\xd7\x53\x0b\x8b\x82\xe6\xcf\x07\xfb\xf6\x70\xf7\xef\x0b\xa0\x58\x3d\x16\xde\xba\xfc\x63\x9b\xdf\xbf\xc9\x9b\x84\x17\x24\x9f\x7f\x5a\x05\x41\x0a\xa3\xa7\x1f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2b\x30\x1a\x14\x64\x7a\x67\x42\x9c\xc3\xe7\xda\x02\xc4\x09\x3a\x73\x96\x40\xf7\xb4\x7a\x30\x52\x51\xd2\x85\x5e\x75\xe0\x9e\x60\xe2\x62\xb2\x79\xa0\x73\x07\x7d\x1f\xb6\xd0\xf0\x47\x88\xf2\xb8"[..]); ctx.update(b"\x31\xaa\xc0\x6a\x59\xb7\x4b\xf4\x78\x61\x7c\x16\x37\xfa\x6c\x55\x93\xdf\x16\x8b\x8d\x58\xb1\xe9\x23\xbf\x3e\x3d\x80\xe5\x5d\x71\x70\xb1\x64\x54\x16\x0a\xb2\x9e\xe1\xf7\x41\x2e\xbc\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdd\xd2\x45\xc9\xb2\x9c\xea\xc6\x05\x06\xfb\x6b\xd6\xe8\x03\x78\x89\xcb\x73\xd6\xec\xc6\x69\xfd\x12\x90\x60\xa8\xa8\xf5\x89\x71\xac\x57\x2d\x3e\xc9\xb4\x44\x04\xf8\x13\x81\xd0\xfd\x35\xa6\x49"[..]); ctx.update(b"\xc1\x0b\x28\x52\x05\x4d\x80\x34\xe0\x79\x06\xc7\xfc\xe3\xce\x99\x40\x23\x21\xa6\x48\xbb\x88\x1f\x13\xfb\x27\x6a\xfc\x22\x4c\x6a\xec\xc6\x48\x00\xcd\x76\x7e\xd2\x42\x9d\xb9\x4b\x95\xa9\xc3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa4\x46\x40\xfb\x4c\xe6\xdf\xd4\xa1\x02\x90\xa0\xae\xcd\xb4\x53\x05\x4a\x9b\x54\xf2\x58\x3e\x97\xbb\x7d\xc2\xb0\x05\xe5\xfa\x2b\x4f\xda\x17\xb1\xf7\x59\x02\xf5\x1c\x18\xc0\xca\xad\x35\x83\x3c"[..]); ctx.update(b"\xb1\xee\xef\x32\x4b\x49\x9f\x19\xeb\xa3\x22\x21\x5f\xe3\xce\x19\xc9\xf0\x00\xb6\x98\xd2\xb2\xda\xb7\x14\x50\x15\x04\x6c\xc8\x6d\x04\x9e\xe1\x5a\xd5\x9d\xcd\x15\x64\xf3\x01\x12\xe0\x64\x44\xcb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x74\x2d\x18\xbf\xa6\xe9\x18\xb8\x88\xd6\x8d\x10\x34\xe6\x1f\x65\xde\xc0\x75\x91\x72\xc2\xdb\xf0\x8c\xf1\xe1\x32\xb2\x17\xea\xf4\xec\x29\xe1\x5d\xb7\xf4\xb0\x7e\x08\xa7\x0c\xc5\x66\x20\x12"[..]); ctx.update(b"\x79\x0d\xbb\xa0\x99\x65\xc9\x77\x4d\xd6\x0a\x32\xe0\x10\xc5\x0d\x6d\x51\x89\x68\xa2\x20\x14\x1d\xc3\x3e\x74\x10\xf2\xda\x6c\x08\xad\x04\x19\xbd\x98\x64\xd5\x32\x7d\x2c\x5c\x44\x91\x4b\x2e\x83\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x91\x74\x95\x8b\xc8\xf4\xed\x47\x31\xec\xed\x99\x9b\xea\x2f\x63\x03\x2f\x52\xbc\x8c\x46\xbc\xd9\x03\x23\x2f\x3f\xbc\x50\x46\xf0\xd6\xc2\x03\xd4\x3a\x07\x8b\x82\x2f\xc0\x51\x01\x40\x4f\x26\x35"[..]); ctx.update(b"\xf7\xb5\x77\xf1\x39\x6b\x23\xc2\x7e\xb6\x37\xe5\x3d\x3d\x92\x46\x02\x70\xb0\x01\xcc\x61\x2f\xd3\xb4\xd6\x8b\xcd\xd0\x9c\x2d\x50\x57\x1e\xa4\x35\x06\x36\x32\x4c\xc2\x42\x8a\x08\x7e\x7b\xd8\x78\x5f\x82"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\xaf\xe1\x11\xe4\x4a\xd9\xaf\xf9\xe3\x9c\x4c\xf9\xe6\xb4\xc5\x20\x07\x2b\x45\x50\xe6\x2b\x17\x40\x16\x0a\x04\xf8\xd5\x30\x61\x2d\xc0\x98\x91\x7a\x55\x6b\x44\x97\x7d\x0e\x73\xdf\x51\x8b\xee"[..]); ctx.update(b"\x73\x70\xd9\xb4\x53\x93\x69\x55\xb9\xc9\xd3\x36\xf4\xb2\x83\x23\x79\x86\x23\x2d\xe0\x07\xbf\x41\x2f\xb4\x26\xff\x5b\x40\x93\xc8\x0c\x42\x8c\x19\xa1\x2e\x0b\x18\x74\x84\xdc\x6d\x5f\x47\x46\x53\x7f\xb1\xed"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\xd2\x91\x59\x82\x0d\x34\xe5\x70\x6d\xd8\x67\xe6\x36\x37\x58\xd3\x12\x66\x0d\x4d\xac\xa8\xd2\xab\xf6\x77\xf2\x34\x74\x6e\x97\xa0\xa6\x22\x4e\xb0\x54\x06\x6a\x0b\x74\xe1\x8c\x70\x96\x53\x68"[..]); ctx.update(b"\xe8\x62\x01\x70\xf0\xf3\x93\x28\xbd\xf8\x88\x81\x48\xcf\xd1\x77\x30\xf3\x14\xea\x68\xd8\xfe\xa0\x2d\x16\xd9\x8a\x3c\xca\x61\x48\x41\x39\xd3\xee\x92\xb7\x48\x09\x1d\xc8\x41\xdd\xa0\x84\x83\xf1\x18\x40\x25\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\xc4\x08\xa6\xa5\x04\x5f\x39\x7b\x56\xdf\xb5\x29\x2c\x7c\x16\x02\x8c\x63\xf0\x68\xe6\x99\xb8\x6a\x89\x1f\xf8\x50\x12\x08\xec\x93\x98\xdb\xaf\x46\x3c\x00\xf3\x9a\xf7\xb2\xcb\xe4\x5b\xac\x15"[..]); ctx.update(b"\x75\xd4\x21\x6b\xad\x77\x94\x3b\xfe\x82\xbe\x21\x61\x57\x84\x3b\x0d\xa0\xfd\x16\xee\xee\x84\x71\x53\xa0\x0b\x43\xe7\x07\xb2\xff\xe2\xc8\x98\x16\x80\x81\xf0\xbd\xb3\xaf\x58\xf2\x14\xcf\x67\xb9\x20\xc3\x85\xac\xa1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x01\x70\x35\x73\x85\xa2\x08\x65\xa8\xd3\x0c\x2d\xf3\x94\x06\x90\x3f\xf8\x8c\x7f\x70\xfa\x1a\x7a\x5a\xaa\x86\x71\x1d\x64\x04\x6c\x43\x2a\x1b\x13\x96\x68\xae\x5a\xbe\xd6\x37\xd1\xdc\x41\x07\xb7"[..]); ctx.update(b"\x2f\xa9\x0c\x22\x10\xe3\x09\x6c\xae\xd1\x22\xb7\x4e\xb9\x55\x99\x77\x12\x0e\x5d\x9a\x97\xee\xb3\xf9\x9b\xcb\xa6\xc1\x9c\xf8\xcf\x79\x1a\xc6\xc8\xa0\xa9\x4a\xe4\x92\x46\x61\x1d\xac\xe7\xf2\x4e\xb0\x56\x73\xa3\x6b\x3e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\x2c\xed\x3f\xae\x94\xdb\xd9\x2f\x41\x70\xb6\x3f\x1f\xf6\xfc\xd8\x19\x4f\x60\x93\x7b\x22\xb4\xf3\xc9\x5f\xc9\xe1\x04\xb7\x71\x48\xf9\xbc\x6c\x16\xa8\x90\xde\x86\xd9\xef\x15\x54\xc9\x6f\xa0"[..]); ctx.update(b"\xa8\xde\x55\x17\x0c\x6d\xc0\xd8\x0d\xe3\x2f\x50\x8b\xf4\x9b\x70\x46\xae\xea\x4b\x97\x5a\x51\x1b\x5e\xa3\xdc\x85\x3b\xfa\x4b\x1e\x01\x38\x20\x2d\x67\x85\xf6\xb3\x01\x79\x14\xa8\x6f\x82\x42\x88\xd5\x86\xdc\x0e\x8b\xc9\x24"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2b\xc3\xb1\x0c\x14\x82\x00\xf7\x91\x9b\x57\xaf\xe1\xd7\xdb\x77\x3f\xfd\x23\x5e\x04\xfe\xc6\x89\x7d\xd9\x4f\x13\xad\x9c\x43\x7e\xf5\x09\x00\xa4\x09\x37\xf8\x2a\x39\xda\xf2\xaa\x2b\x3d\xfd\x68"[..]); ctx.update(b"\xac\xcd\x9d\x05\xfb\x7e\xf3\x04\x34\x70\x83\x61\x37\x55\x4a\xf1\x17\x44\x0b\x3c\xcc\xa7\xa2\x80\x28\x54\x94\xf9\x0d\xfa\xea\x60\xdc\xbf\x40\xb2\x30\x27\x19\x32\xcd\x38\x75\xb1\xd3\xdc\xa6\x0d\x38\x86\x5f\xf8\x74\x18\x0e\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb9\xe0\x2d\xf9\x3e\x92\x54\x18\x0d\x6a\x15\x28\x8d\x77\x08\x8b\x5a\x5c\xe5\x17\x64\x41\x09\xb4\xe2\x53\x2b\xe3\x15\xf0\x8d\xee\x43\x49\x16\x08\xa1\x12\x7d\xcd\xf6\x93\x97\x40\x6e\x23\xd2\x31"[..]); ctx.update(b"\x32\xb8\x35\xc1\x80\xcc\x40\x06\xc1\x1a\x61\xc6\x5b\x03\xc0\x99\x51\x0e\x1d\x4f\x0a\x94\xb6\x3d\x54\xbd\x6b\xd5\xa8\xab\x20\x7a\xb0\xf4\x63\x92\x06\x56\x4e\xdc\x3f\xa6\xaf\x03\x28\x0a\x67\x74\x4f\x68\x10\x6d\xc5\x1e\xe3\x57\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdf\x97\xa1\xc5\xdd\xa6\xf9\xdd\xe7\x49\xf2\x13\xe4\x29\xdb\x84\xf0\xdc\xd4\x81\xd4\x3b\xf5\x8e\x61\x42\x96\x8d\x62\x9e\xcf\x05\xb2\x62\x83\x0a\x7d\xac\x87\xf6\x7f\x43\x83\x97\x5f\x3e\x82\x1d"[..]); ctx.update(b"\x94\x09\xf9\xef\xad\xbf\x19\x0b\x25\x33\x67\x62\x9f\x8f\x36\x8c\x9d\x5a\xc2\x62\xe9\x4a\xb8\x6f\x35\x59\xf9\xa1\xfe\x1a\x9b\x44\xb6\x4e\x31\x31\x21\xb3\x4d\x43\x00\x1c\x43\x0b\xed\xc6\x2f\xc5\x86\xea\x39\x8a\xcd\x8f\x17\xc7\xcf\xa2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\xa6\x93\x88\xee\x6b\x6d\x23\x41\x08\xec\x29\x40\x2c\xd0\xaf\xd7\x49\x57\xd9\x90\xc7\xbd\xb5\x44\xcf\x11\xe8\xeb\x2c\xcd\x17\x0b\x6b\x5a\x74\x43\x1b\xe7\x03\x64\xd7\xa3\x1b\x92\x6f\xf5\x3c"[..]); ctx.update(b"\x28\x95\x86\xba\xf8\xda\xce\xd5\x0d\xb1\x4c\x93\x65\x29\xa0\xa6\x43\x8e\xb5\xda\x8d\x3d\x46\x91\x72\xb6\xa0\x6f\x4f\xf3\xa9\x56\xd4\xf9\x21\x95\x63\xac\x28\x5c\xb8\xe7\x00\x74\xcf\xcc\x15\x2c\x02\x59\x3a\x97\x73\x3c\x36\xf4\xa9\xe9\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x50\x9e\x99\x6c\x1e\x11\x61\x1c\x24\x30\x21\xb8\xb7\x8f\x2a\xd9\x0c\x5a\x92\x63\xbb\xf3\x59\x10\xdb\x7c\x8e\xc1\x02\xaa\x7c\x51\x80\x66\xff\xf8\xce\x88\x56\x2f\xec\x2c\xd6\xdf\xe0\x40\x56\xae"[..]); ctx.update(b"\x15\x65\x30\xcd\x6e\xd3\xba\xf1\xfd\x72\x32\xc7\xff\x20\x4f\x3c\x7d\x4d\x10\x60\x16\xaf\xa3\xbd\xff\x37\x86\xe8\x48\x43\xec\x55\x61\x15\x62\x6f\xdc\x84\xb2\xe8\x74\xf1\x07\x4e\x4f\x7d\x53\xe0\x80\x79\xee\x9f\xd0\x1f\x80\xa8\xbe\x7f\x20\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7b\x8a\x59\x80\x29\xca\x0e\xd4\x75\xa7\x2c\x06\x44\xac\x81\xc6\x3d\x72\xfd\x51\x30\x5d\xad\xa0\x7b\x0a\xb4\xa2\x9e\x47\x42\x2f\x59\xe1\x26\x43\x17\x92\x69\xca\x3d\x7d\x10\x44\x6b\x37\x2b\x2c"[..]); ctx.update(b"\x30\x65\x5a\x6b\x5a\x59\x65\xdb\x99\x2e\x72\x48\xd2\x41\x41\x05\x5e\x98\x8d\x72\x6a\xbb\x8e\x72\x9d\xc5\xc2\x1f\xfc\xba\xed\xbc\x0b\x1b\x5f\xea\x35\xb8\x75\x1f\x6e\xc6\x62\x55\x17\x31\x2f\xff\x22\x34\x01\x41\x76\x26\x9b\x60\x95\x97\x23\x78\x7c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\xaf\x44\x3e\x95\xde\xeb\x3c\xc1\x91\x07\x71\xa2\xc0\x69\x2a\x54\xb1\x8b\x36\x33\xdc\x54\x14\xe7\x1a\xe0\x88\x77\xf0\x80\x48\x18\xf6\x7f\x71\x96\xc5\x2e\x26\xb7\x62\xdd\x12\xbb\x7a\x86\xca"[..]); ctx.update(b"\x34\x5c\x3c\x02\x2e\x20\x14\x4e\x13\x56\x04\x07\x87\x62\xef\x5c\x8a\x8f\x03\x8c\xf1\xb1\xd6\xa9\x17\x09\xb5\x9d\xd0\x68\x39\x6a\x9e\x97\x1a\xb6\x28\xf7\x48\x86\xe7\x65\x38\x4a\x23\x60\x7c\x1a\x1e\x6e\x97\x3f\x8f\xbb\x0f\xf5\x51\x04\xc4\x6f\x5d\xb3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbf\xb1\xd5\xee\x3a\x0b\x62\x90\x58\xec\xc5\x21\xc7\x06\xc2\xf9\x24\x1c\x48\xcd\xa3\xdc\xfd\xba\x66\x0a\x26\x01\xd8\x32\xa7\xa8\x72\xa2\xbb\x84\x0f\x3b\x98\xd2\x1c\x37\xe2\x8f\x90\x41\xa5\xb2"[..]); ctx.update(b"\x0b\x94\xa0\xf4\x3a\x92\x40\x89\x63\xa5\x9d\xed\x01\xa9\x33\x82\x83\xa6\xff\x1b\xfb\xac\xd9\x05\x1a\x01\x04\x44\x5c\x7f\x04\x1e\x80\x37\xaf\xde\x3b\x5a\x87\xd2\x2d\x5a\x47\x96\x14\x4c\xbc\x94\x40\x91\xd6\xcc\x47\xb5\xff\xd1\xf9\x97\xab\x14\x96\xca\x31"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x07\xa0\x45\xc9\x59\x0e\x99\x01\xd0\x59\x8e\x60\x4c\x46\x49\x55\x4a\x82\x3d\xe9\x96\xfa\x43\x8c\xc8\x1a\x63\x43\x44\xee\xb9\x8e\x5f\x3c\x0c\x23\x4b\xa3\x0e\x22\x85\xa4\xd7\xab\x56\x8f\x26\x10"[..]); ctx.update(b"\x93\x03\x5d\x3a\x13\xae\x1b\x06\xdd\x03\x3e\x76\x4a\xca\x01\x24\x96\x1d\xa7\x9c\x36\x6c\x6c\x75\x6b\xc4\xbc\xc1\x18\x50\xa3\xa8\xd1\x20\x85\x4f\x34\x29\x0f\xff\x7c\x8d\x6d\x83\x53\x1d\xbd\xd1\xe8\x1c\xc4\xed\x42\x46\xe0\x0b\xd4\x11\x3e\xf4\x51\x33\x4d\xaa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8d\x46\xcc\x84\xb6\xc2\xde\xb2\x06\xaa\x5c\x86\x17\x98\x79\x87\x51\xa2\x6e\xe7\x4b\x1d\xaf\x3a\x55\x7c\x41\xae\xbd\x65\xad\xc0\x27\x55\x9f\x7c\xd9\x2b\x25\x5b\x37\x4c\x83\xbd\x55\x56\x8b\x45"[..]); ctx.update(b"\xbf\xb9\x4d\xfb\xe0\xd9\xa5\x09\xb7\x8d\x16\x4a\x72\x20\x50\x05\x4d\xad\x91\xc9\xa8\xe2\x60\x54\x5d\x03\x7e\xb4\x50\x32\x1a\xac\x48\xed\x44\x59\xfd\xd8\xa4\x15\x72\xbd\x6c\x9c\x84\xd1\x8b\x6e\xc3\x39\x24\x74\x82\xcc\x3e\xe5\x2a\x1b\xbd\x6b\xd4\xae\x91\x82\x16"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\xaf\x0b\xe0\x29\x86\xea\x31\x76\xe8\xc6\x55\x34\xec\x9f\x32\xc2\x3b\x53\xc9\x3a\x73\xb1\x5c\x26\xb9\xec\xbd\x8a\x11\x81\xae\x18\x4a\x37\x2e\x9f\x5e\x05\x96\xcd\x66\x06\x84\x9a\xea\xe8\xe0"[..]); ctx.update(b"\x1c\x89\x24\xa1\x6f\xa7\xc6\x02\xaf\xf5\xee\x96\x17\x98\xbd\x44\xfe\x53\x79\x8b\xf4\x4c\x3d\x6b\x0d\x13\xef\x83\x7d\xe0\x73\x77\x65\x1c\x1e\x94\xed\x23\x6e\xb7\x93\x49\xf8\x6a\xc3\x1b\xa1\x51\xa7\xe7\x11\xc5\x40\x7e\x65\xbe\xb6\x38\x24\xf6\xec\x39\x75\x4b\x58\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\xe6\x48\x28\x51\xdd\xaf\xde\x58\x2f\x28\x04\x07\x1a\x70\x2a\xe3\x9b\xac\xb6\x88\x74\x1b\x7c\x37\xbb\xae\x99\x82\x1c\xe4\xd3\xf4\x7d\x5b\x09\x7f\xd8\xee\xfa\x0e\xf9\x24\x8a\x34\xf5\xd3\xce"[..]); ctx.update(b"\x18\x42\x15\x14\x5d\xa4\x9d\xb4\x17\xe8\xbd\xd5\x73\xd6\x28\x2d\xe0\x73\xe6\x74\xc3\xde\xa8\x6b\x6c\x78\x59\x1d\x49\x47\xf5\x65\x5a\x9d\x9e\xb0\xe5\xf4\xed\x04\x6b\x1d\x86\x42\xda\x9a\xef\xa8\x04\x48\xa2\x99\x50\x41\x60\xa1\xb0\x00\xc9\xb4\xd3\xc6\x2a\xb6\x9b\x3d\x96"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x89\x95\xcd\x7f\xc0\x95\x6e\x12\x40\x75\x44\x06\x86\xbe\xec\xe1\x7a\x62\x56\xb2\x82\xe7\x98\x8a\x0c\x99\x8f\x79\x0e\x39\x95\xc9\x74\x38\x31\x79\x89\x34\x77\xbc\xc3\x2d\x1f\x11\x41\x29\xb4\x96"[..]); ctx.update(b"\xca\x7a\x63\xad\xf4\x1f\x4d\xa3\x31\x42\x91\x0c\x96\x77\x06\xb5\xc8\xa0\x93\x35\x0e\xb3\xe6\xd3\xaa\xbe\x69\xa4\x6a\x28\x72\xf4\x7a\x39\xbb\xe7\x7c\xdc\x11\x60\xda\xa4\x50\x22\x5b\x0e\x8e\x36\xf5\x06\x97\x8c\xe3\xac\x9a\xe5\xf7\x57\x21\xef\x30\xda\x46\xb2\x8f\x07\x24\x2c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb8\x9c\xc1\x2b\x11\xe3\xaf\xa5\x89\x08\x58\x0c\x47\xb2\x54\x07\xab\xbf\x58\x4f\x8e\x8d\x4b\x56\x31\xe9\xf4\x50\x46\x4c\x7e\x53\xcf\xd7\xe9\xf9\xd3\xcf\x35\xe5\x87\xa6\xf0\x29\x57\xce\x4c\x28"[..]); ctx.update(b"\x1d\xa4\x1a\x0a\xf2\x02\xb0\x79\x52\x1d\xeb\x61\x09\xe3\x12\xc2\xad\xe4\x85\x44\xd2\xb4\x98\xc0\x7e\x91\xa1\x02\xdd\x46\x50\xce\x35\x4f\x3f\x20\x1b\x3e\xca\xb8\xe8\x5e\x21\xd6\x67\x95\x9b\x43\xd0\x8f\x4e\x90\xfa\x18\xdc\xa2\xcc\xca\x8f\x6f\xf5\xe9\xa9\x02\xdc\x8b\xf5\xc5\xda"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x29\x7e\x20\xc3\x07\xaa\xb7\xf3\x25\x93\x9f\xd4\xe2\x88\x3b\x03\x4f\xd5\x47\xf1\xdd\x17\xfb\x6b\x97\xad\xe8\xb1\x48\xe0\x6e\xbb\xf3\xff\x60\xcb\xf4\x69\xe4\x93\x3d\x5f\x48\xf0\x16\x6c\xb7"[..]); ctx.update(b"\xde\xce\x42\xc8\x84\x9b\xe4\x0c\x78\xb8\xde\x6d\xa9\x6c\x2a\x8d\x7e\x94\x05\x45\xb9\xf3\xf3\x9a\xa1\xca\x03\xec\x60\xa8\x54\x71\xaa\x84\xd8\xe2\x9f\x09\x58\x74\xf3\x31\xb9\x0a\x4c\x15\x7d\xa9\xeb\x04\x8d\x2c\x8f\xd2\x35\x39\x96\x72\x70\x73\x66\xc7\x66\xf1\x0b\xb8\x33\xf0\x21\x83"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbb\x50\x9e\x33\xe9\xff\xcc\x4c\x01\x23\x31\x46\x22\x6e\xe9\x36\x4c\xda\xc5\x65\x81\x32\x46\x0a\x76\xed\xf6\x17\xa0\x35\xb1\x97\xc8\x64\x34\xee\x88\x94\x38\x58\x14\x58\x10\x26\x18\x76\x93\x82"[..]); ctx.update(b"\x95\x20\x08\xeb\xde\xdd\x48\x04\x49\xbb\x96\xa0\x25\x57\x6c\x5f\x61\x7b\xbb\x83\x07\x95\x8a\x01\x07\x67\xe0\xd7\x36\xff\xe5\xa1\x96\xea\x44\x67\xd8\xa5\xd3\xba\x1f\x54\x76\xff\x07\xb6\x41\x0a\xe6\x59\xdc\xef\x52\x0a\x2c\x14\xe3\x90\x2f\x8b\x39\x9a\x28\x9f\x41\xf5\xfd\xad\xb5\x02\xdd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9b\x63\xd9\x14\x5b\xc7\x14\xa8\x25\x3d\xcd\xb8\x34\x1b\x2f\x57\x14\xeb\x58\xb9\xd4\xb2\x2c\xe4\x5a\xae\x07\xf5\x12\x97\xa3\xdc\x9c\x5b\x69\x1a\x8a\x3c\xd4\x38\xdc\x5b\xd1\x8b\xe4\x00\xaf\x21"[..]); ctx.update(b"\x10\x01\x32\xc3\x15\xbf\xc9\xc4\xfb\x93\x02\x3f\x5d\x35\x00\xd7\x20\x8a\x68\xac\xb4\xd2\xc6\x30\x96\x23\x2c\x36\x1a\x16\x1c\x4c\x67\xc0\xa7\x4b\xc3\xe4\xd7\x2c\x11\x66\x4b\x1d\x97\x03\x21\xd4\x05\x40\x19\x24\xb3\xa0\xf6\xce\x2b\x1a\x28\x99\xe7\xca\xa9\xa5\x5c\xe7\x25\xfc\x37\xf5\x5d\x6a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb6\xca\x04\x46\x7e\xd3\xe6\x23\xdb\xa3\x6f\x2e\x02\x48\xce\xfb\xe1\x34\xcf\x55\x5f\xdc\x14\x73\x11\x75\xea\xaf\x08\xe2\x44\xab\x0b\x15\xfc\xa2\xf1\x73\xa0\xec\x98\xfe\xaf\x35\x9f\xb8\x4a\x11"[..]); ctx.update(b"\x99\xcb\xa4\x01\x9f\x54\x78\x78\x9e\x67\x4e\x08\xfe\x5d\x6c\xea\xdd\x69\x8b\x07\x57\xca\x39\xc6\x05\x45\x7c\x22\xc3\xd3\xb8\xff\xb7\x97\xd2\xbe\x8f\x12\x96\x0f\x09\x9a\x56\x06\xb9\x08\xd4\x72\x07\xb2\x63\x6a\x77\x99\x48\x28\x2d\xe3\x66\x1b\xb0\x8b\x1b\x37\xee\x57\x65\x90\x80\x0a\x49\x27\x30"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe5\x37\x8c\x7c\x25\x1a\xe9\x6f\x03\x59\xa3\x0b\x31\x34\xfd\x77\xd6\x1d\x0d\xb6\x8c\x42\xa1\xa2\xaa\xc2\x93\x19\x5a\x59\x6d\xf4\x2f\x67\x7e\x6c\xb9\x8a\xbe\xc9\x0d\x67\x22\xba\xac\x63\xfc\x86"[..]); ctx.update(b"\xbb\x32\x7a\x0b\xcb\x25\x74\xdf\x47\x08\x0e\x8c\x0d\x8a\x45\xee\x1c\x04\x24\xae\x04\x14\xdc\x0a\x9b\x87\x17\xd9\xf2\x7d\x8a\xc9\x87\xc7\xc9\xec\xbc\x94\x60\x73\x88\x4d\x1f\xb9\x6d\xbd\xb5\x83\xaa\x75\x81\x86\xb1\x6f\xa4\x29\xdb\xf1\x5b\x8d\x5b\xb4\x8c\xca\x71\x46\x9e\x7c\xe0\xad\x8e\x7f\xa1\x4d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0f\x75\xe6\x5f\xf8\x49\x4a\xe2\x8d\x9a\x0a\x2e\x65\x95\x96\x53\x27\x5f\xc3\x4b\x2f\xa2\x7b\x9e\x10\xfa\xaf\xff\x07\xc4\x5a\xdd\xef\x3b\x8f\x25\x95\x3d\x5a\x2e\x54\xe3\x1e\xbe\x6d\x42\x9d\x26"[..]); ctx.update(b"\x7f\xd9\xee\xb5\xff\x36\x80\x40\xd2\x99\xfd\x17\xa9\x43\xb2\x1d\x65\xde\xb2\xec\xcf\x61\x28\xd1\x8a\x33\xeb\x17\x46\x93\x53\x89\x35\x37\x4c\x32\xc3\x33\xa8\x67\x82\x1d\xba\x08\x63\x6f\x20\x02\x2c\x2c\xe0\x18\x26\xc7\xb7\xe4\x16\x40\xad\x18\x6f\x90\xed\x0a\xc6\x47\xd4\x70\x86\x74\x48\x67\xe5\xc5\x4b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x00\x72\x51\xa2\xa5\x77\xad\xd0\x48\xb1\xed\xc7\x9d\x96\xc7\xdf\x8f\xd5\xb5\xfa\x0d\x72\x64\xf1\x22\xe4\xcb\x54\xc5\x0b\xc3\x16\xa8\xbc\x5f\x4f\x9d\xfd\x44\x69\xe2\x9e\x9b\x03\x0f\x56\x3a\x6d"[..]); ctx.update(b"\x7c\xa9\xe3\x69\xe8\x21\x86\x98\x4d\x5f\xc7\x29\xe1\x11\xa7\xe5\xd8\xec\x19\xc5\xd7\x4e\x13\xb5\xab\x22\xe4\x99\x3b\x05\xc8\x8e\xbb\xa6\xba\x72\x23\x73\x89\xa6\xe0\x72\x2e\x12\xc9\x6c\x5d\x6a\x54\x51\x5a\xb0\x0a\xd8\x0e\xfb\x38\x66\x5a\x76\xe8\x31\xab\xab\x0f\xa5\xcf\x02\x08\x07\x07\x84\x41\x58\x5d\xe5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3e\xe8\xc4\x18\x4d\xe9\xce\xae\xcd\x0d\x3a\xea\x16\x27\x18\x35\xf3\xd4\x5c\x87\x33\x58\xc9\x3a\x51\x55\x39\xc3\x8e\x81\x94\x14\xea\x63\xb0\x8d\x0a\x10\x93\x46\x79\x3d\x5e\x0f\x70\x31\x25\xeb"[..]); ctx.update(b"\x5b\x4d\x94\x5d\x55\xde\xa2\x2e\x37\x82\x1e\xc3\x96\x47\x6a\x4b\xfb\x61\x7d\x2f\x39\x2a\xd9\x3a\xfe\x67\xbc\xfd\xa9\xcd\x9b\x72\x5b\xc4\xcc\xdf\x51\x6a\x83\xfd\x71\xdb\xff\x5a\x22\xb0\x05\xfc\x61\xc5\x8e\x47\x12\x40\xbd\x21\x93\xce\x13\x53\x97\x30\xe6\x32\x32\xf7\x0f\x80\x30\x8b\xe4\x8d\xab\x72\x66\xa1\xdd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdf\x82\xd2\x42\xe4\xcd\xc2\xeb\x40\xbf\x3d\xb6\xa5\x6e\x1a\xa0\xa6\x6e\x55\x3f\x19\x14\xbe\xdc\x65\xc8\xcc\x6a\xd9\x56\x4b\x6e\x85\xdf\x59\xf4\xc4\x43\xcb\xe4\xe0\xae\xe0\x59\x86\xf7\xd6\x90"[..]); ctx.update(b"\xe8\x65\xf4\xa4\x2b\xbb\xd0\xb7\x3f\xe2\x75\xb8\xab\x90\xd3\xa9\xfb\x74\xec\x50\x70\x19\x2d\x38\xf6\x0e\xfe\xf9\x56\x44\x98\xb9\xad\xb7\x16\xf3\x1d\x50\xcf\x77\xc2\x0a\xe4\xb2\xe8\x55\x15\x30\x7b\xb8\xd9\x5f\xbe\xb9\xad\x96\x40\x01\xac\x55\x0d\xbc\x60\xcf\x21\x3f\xd8\xa5\x22\xed\xfa\xf5\x4e\x5b\x1b\x93\xb2\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\x1f\xa9\xae\x21\x84\xe2\x26\x8e\xf9\xef\x23\xc7\xc8\x09\xef\xad\x24\x45\x36\xe0\x0a\xa9\xe8\xb3\xa6\xc2\x28\xd9\x0e\x31\xda\x05\x1b\x40\xf2\x68\xa1\x3b\xd6\xf6\x2e\x69\xc9\x1a\xe8\xcd\x2d"[..]); ctx.update(b"\x1d\x40\x8c\x7b\x68\xe1\x68\xf4\x1b\xb4\x6f\x9b\x2e\x9c\x8b\x04\xf9\x68\xe4\x08\x02\x52\x54\x68\x14\xcc\x1c\xb2\x91\x7d\xd5\x69\x08\x86\xa9\x60\x0a\x09\xc2\x67\x3a\xec\x03\x29\xa4\xda\xf6\x55\x50\x8b\x06\xfc\x16\x46\xef\x3b\xb3\xa4\x72\x19\x1d\x96\x4d\xb2\x14\xa9\x6a\x96\xfa\x89\x57\x6c\xe4\xc4\xf6\xdb\xf1\xd1\x76"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7e\x23\x47\x2c\x03\x43\x19\x25\xf3\xb4\x55\x9d\x88\x6e\x8d\x5d\x83\x7b\x3d\x39\xb8\xef\xe1\xb7\xa9\x1e\x61\xa1\x38\x10\xc4\xdb\xc2\x43\x96\x34\xd7\xc6\xab\xab\xfc\x66\xe9\xb1\x8e\x65\x41\xdb"[..]); ctx.update(b"\x54\xae\x03\x0a\x4e\x27\xa0\x5c\x1e\xa4\xa1\x2e\x69\xc6\x75\x44\xaf\x9b\x40\x44\xcf\x15\x7d\xc8\xce\xbb\xe8\xb2\xd4\x9f\x9b\xc0\x77\x90\x77\x60\x3c\x90\xc5\xc5\x5b\x89\x1d\x3a\xc3\x3b\x87\xb6\x5e\x79\xe1\xb1\x96\x95\x81\x37\x18\x19\x1b\x3b\xd8\xb7\xe4\x2d\x55\x83\xf7\xcf\x1e\x60\xf8\x44\x95\xb8\xf8\x69\xf3\x71\x99\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcb\x65\xf8\x23\x58\x57\x73\xcb\x88\x02\xb6\x33\x91\x82\xf1\x37\x52\xa8\x28\x64\xc8\x98\xb4\x45\xbe\x5a\x11\xa9\x69\x65\x7a\xc2\xdc\x4a\x3b\xbe\xb8\x7a\xc0\xab\xb2\x32\xa2\xb1\x24\x17\x10\x96"[..]); ctx.update(b"\xf7\x3c\xd3\x86\xf7\x3d\x0c\x6a\xde\x05\x77\x1b\x33\x11\x71\x17\xc6\x02\xe5\x26\x93\xf0\x5b\x47\xe9\x00\x32\xea\xcc\x39\x29\x5f\x97\x93\x25\x8f\xe6\x51\x2e\xea\xb2\x91\xba\xa0\xbe\x22\x2e\x14\x32\x95\xa2\x8e\x86\x97\xe4\x2f\xa2\x7e\xc0\x2b\x44\x21\x7f\x32\xa1\xed\xae\x2f\x4f\x35\x21\x35\x62\xca\x37\xb6\xd6\xcc\x5e\xf7\x2d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\x65\xc4\xd1\x7a\x83\xd6\x5a\x7f\xf1\x6b\xfc\xe2\x79\xb5\x85\x58\x25\x0d\x76\xaf\x68\xb8\xeb\x94\x37\x53\xe4\x11\xa5\x7c\xeb\x31\xc1\xa1\x31\xe5\x4b\xcb\x76\x72\x58\x44\x16\xe3\xd5\x71\x9e"[..]); ctx.update(b"\x1d\x25\x96\x12\xe6\x86\x7e\x7d\x78\x8c\x71\xd0\x3c\x51\x36\x86\x4a\xd6\xd8\x4f\x24\xea\xf9\x13\xa3\x4e\x69\x33\x31\x16\xf8\x12\x39\x52\x88\xd4\xdc\xee\x66\x65\xe6\xd7\xda\xbd\x00\x5f\xfc\x63\x27\xe3\xca\x30\x5c\xab\x78\x56\x9d\x11\x07\xa1\x15\xe6\x19\xfc\x90\x11\x04\x36\x31\x79\x25\x06\x67\x26\x77\x4d\x1d\xa3\x63\x9c\x31\xa6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5d\xcf\x51\x2e\x2b\x93\xd6\xec\xdf\x7c\x33\x04\x53\x45\x54\xea\x79\xd2\x23\x92\xe5\x9b\xbe\x90\xdf\x21\xe9\x78\xc9\xfa\x3b\x34\xff\x82\xe6\xdc\xfe\x8f\xe2\x23\x6a\xa4\xaf\x4e\x66\x2e\x2a\x9d"[..]); ctx.update(b"\xda\x87\x34\x41\x4c\x45\xfc\x1d\x5a\x75\xa3\xcb\xac\xad\xb1\xbf\xb5\x23\xd6\xfc\x39\x1f\x88\x2d\x0d\xb0\xee\xf2\x1f\x9f\xfd\x78\xb6\xa1\xe1\x4c\xfa\xd0\x9e\x71\xb6\x5c\xf7\xb0\x5d\x7e\x8f\x2f\x4b\xae\x4e\x45\x4e\x16\x06\x8d\x65\x46\x56\x39\xc7\x29\xcf\xa9\x27\x38\x56\x3d\x37\xed\xc9\x67\x6b\x7b\xe6\x04\xff\xbc\x68\xec\x3b\x6b\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8b\x32\x8a\x31\xad\xf6\x7d\xc7\xae\xb8\x64\xa3\x59\x62\x84\x10\xd5\x81\x4a\x2f\x0c\xc6\x83\x30\x3f\x61\x43\x2c\xe3\x21\x77\xe1\xf5\x38\xfe\xea\xd7\xe5\x00\x03\x43\x91\x6c\x70\x42\xf8\xb3\xcd"[..]); ctx.update(b"\xb2\x28\xc7\x59\x03\xd8\x0f\xbc\x6d\x1c\xf6\x29\xff\x1d\x14\xa9\x2e\xc4\xbf\x0e\x12\x1f\xd9\x7b\xd3\x06\xed\x26\x5e\xfe\x7a\x5d\x5c\x5d\x8f\xc7\x64\xaf\x98\xed\x6f\x59\x78\xf8\x8d\x7c\xd8\xbc\xd7\x1c\xbe\xf6\xa5\x82\x61\xd2\x01\xde\x3c\xb1\x5b\x31\x61\x28\x7e\x6a\x10\x4c\xc2\xcf\x88\x2d\x83\x9f\x1d\xa0\xd3\xf6\x8b\x42\x6c\xf0\x8a\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfc\x92\xba\x4e\xac\x9a\x1b\xf1\x20\xa7\xb6\xc2\xcc\x30\x33\x5b\x96\x15\xb1\xa9\x8e\x55\xd1\x48\x54\xff\x87\x29\x66\xe7\x10\x40\x73\x74\x01\xc6\xbc\x08\xdb\x58\x42\xce\xac\xe1\x4c\xb7\xe7\xea"[..]); ctx.update(b"\xc9\x0d\x47\x3a\x6f\xd3\x0b\xe9\xa9\x8b\xf4\x42\xa9\xad\x65\xa6\x97\xd4\x62\x9c\x33\xcd\x51\x7d\xbb\xed\x02\x71\x0f\xa8\xee\x99\x13\x60\xbc\x8e\x55\x7b\x0a\x0b\xf0\xb8\x69\xe6\xb0\xc3\xa9\x45\x76\x07\x58\x0e\xde\xc3\x85\x9f\x20\x60\xc9\xc0\x34\x02\x89\xd5\x3a\x5d\x75\x59\x18\xca\x54\x87\x65\x99\x04\x5a\x86\xa9\xbc\xb8\x16\x37\x95\xea\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\x75\x82\xb2\x52\x0e\x99\x0c\xfb\x74\x36\x73\x43\x26\x8b\x91\x48\xb2\x51\x9b\x9e\x7c\xd9\x18\x2e\xdb\x3d\xb9\xae\x7a\xfe\xbe\xdf\xe8\xca\x11\x81\x30\xe2\xef\x9d\x31\xaf\x90\x81\xda\x82\x22"[..]); ctx.update(b"\x6d\xf8\xc5\xc2\x8d\x17\x28\x97\x5a\x0b\x76\x6c\xd7\xde\x63\xbb\xe7\xf4\x8c\x3d\xb3\xe6\xfd\x5a\x4b\x8d\xf6\xe3\x90\x5c\xef\x03\x51\xf3\xd9\x73\xb4\xf2\xa7\xee\xd8\x0b\x0d\xe5\xb8\x5c\x87\x73\x53\xfb\x9e\x93\x0a\xd2\x67\x91\x49\xad\x4c\xbe\x69\x91\x0e\x68\xd5\x50\x0b\x09\x6c\x5a\xbd\xbf\x27\xd6\x84\xfc\xfc\xf1\xa5\x7f\x02\x76\x92\x83\xd5\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7b\xda\x57\xd2\x1a\x44\x34\xaa\xda\x67\x58\xe2\x82\xe6\x12\xa4\xc0\xf4\x1b\x24\x2f\x9c\x79\x08\x04\xd5\xbe\xe2\x5b\x81\xa8\x21\xdc\x6f\x2a\x0b\xa5\x6f\x1b\x37\x04\x80\x2c\x9a\x6e\x15\x3d\x85"[..]); ctx.update(b"\x2c\xfc\x76\xf8\x8c\xb6\xfb\x90\x92\x7b\x69\x52\x6a\xd5\xf0\x3d\x6b\xd3\x35\xf4\xf7\x5b\x52\xb6\xa3\xc2\x1e\x8f\x98\x9a\xb0\xd0\x3a\xcb\x1e\xbe\x07\xe6\x8a\x87\xc1\xb5\x60\x7a\xcf\x17\xd9\x76\xe1\x0a\xc4\xa3\xd3\x0a\x85\x61\xd4\x9a\x5e\x7e\xc7\x20\xed\xac\xe9\xf5\xf6\x32\xb4\xbd\x63\xe1\x04\xf4\x89\x4a\x79\xca\xad\x2e\x1c\x31\xc7\x36\x45\x34\x85"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\x66\x70\xea\x83\x7c\x25\x9e\x41\x8d\x3c\x0e\x1e\xaa\xd4\x94\x8c\x34\x57\xe1\x5b\x15\x73\x05\x6e\x24\xda\x25\xbf\xf5\xc6\x6b\x7e\x95\xd2\x4c\x6b\xc1\xb8\xd6\xc2\xb8\x12\xf6\x4a\xdc\x95\x53"[..]); ctx.update(b"\x3f\x05\x10\x8c\x2f\x33\xd3\x9b\x3a\xa9\xe7\x3e\xfb\xad\x4b\x01\x1b\x4e\x9e\x9f\xba\x40\x9b\x76\x11\xe7\xe0\x39\x56\xb2\xf3\xe5\xe0\xaa\x86\xf6\x8c\x4b\xfa\xda\x5f\x92\x23\xa6\x6d\x57\x4b\x08\xf9\xdd\x79\x7c\xdd\xa8\xf3\xc3\x2d\x8e\x01\x92\x17\x11\xf4\x87\x0d\xec\x67\x60\x27\xec\xc5\x6f\xc2\x01\x0b\x49\x6e\x95\xcf\xbf\x07\x1c\x82\x0f\x21\xed\xf2\x5b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb2\x72\xba\xb6\x80\xf3\xab\x27\xde\x72\xd9\x4d\xf3\x84\x32\x3f\x85\x55\xf1\xd1\x7f\xac\xd2\x58\x8a\xc8\x64\x8d\xef\x24\x51\xf8\x2f\x9b\x99\xc0\x5e\xad\x83\x16\xfd\x18\x1a\x2c\xfb\x97\x48\x3a"[..]); ctx.update(b"\x1f\xfb\xe1\xaf\xf0\xa1\xe7\xfa\x3e\x68\xbe\x31\xa7\x46\x12\xa1\x51\x9b\x59\x39\x7e\x70\x07\xef\x61\xfc\x01\x5f\x31\x6d\x55\xb5\x7b\xe5\x28\xce\xbc\xc2\xf0\x9a\x2f\x22\xe3\xc5\xe4\xa6\xae\x96\x12\x77\x6b\x17\xae\x87\xcd\x76\x3c\x1a\x9e\xab\xe6\x84\x6c\x5b\xcb\x34\x7f\xfc\x99\xf1\x0e\x3b\x5e\x64\xb2\x9a\x9b\xd7\x1a\x5e\x9b\x3c\x01\xa8\x02\x71\x5d\xe2\xa9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf0\x8b\xda\x9d\x67\x62\x60\x75\x19\xd5\x3f\xec\xb0\xbf\xfb\xfd\x3f\xf2\x92\x48\x54\x83\x3a\x75\x9d\x63\x1e\x91\x0c\x42\xca\x86\x74\x1f\xc2\xe2\x90\xaf\x42\xe9\x4b\x94\x89\x86\x09\xb9\x13\x90"[..]); ctx.update(b"\xf7\x55\xd6\xb5\x64\x23\x78\xf2\x84\x78\x93\x90\x1d\x9a\xa9\x1c\x54\xa4\xb7\xab\xb9\x7c\x5c\x71\x84\x06\x3e\x8f\x1e\x97\xaa\x2d\xe4\xad\x7a\xc9\x27\xdd\x3c\xce\x77\x0c\x90\x69\x21\xe2\xd2\x98\xf6\x7c\xf9\x84\x4e\x61\xbf\x10\x4d\xb8\x03\xb2\x65\xb8\x6b\x82\x1c\x5f\x4d\x90\x10\x67\xd0\x7b\x38\x76\x4e\x3f\x6c\x95\xfd\x4f\x28\xe3\xcf\xe4\x8d\x8a\x96\x94\xa8\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\x5e\x98\xea\x05\x44\x55\x24\x22\x80\x85\x4e\x97\xc4\xed\x39\x9b\x85\xee\x7b\xc5\xc5\xfc\x3d\x62\x91\x0a\x76\xf3\xa9\x60\x0c\x3d\x90\x4c\x83\x2b\x70\xb5\x8d\x7d\x99\x8d\xb8\xdc\x97\x81\x35"[..]); ctx.update(b"\x77\x35\x77\xf3\xa6\x42\xc4\xf1\x3b\x1c\xb1\xf4\x10\x3e\x9f\x6b\x2d\xa8\x62\x68\xa5\x2f\x44\x9c\xbb\x17\x4c\x83\x49\xe3\xc0\xdc\x63\x6c\xe8\x5c\x37\x31\x15\xa3\x37\xee\xe2\x6f\x7b\x70\xba\x10\x60\xa7\x9a\x1c\x76\xfd\x18\x63\x99\xe6\xa5\x25\x5d\xb8\x0f\x83\xb0\xbe\x4a\x34\xba\x87\x6f\x79\x08\x84\x05\x53\xea\xd3\x80\xf3\x19\x55\x07\x72\x9d\x06\x7a\xc2\xee\x8e\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcc\x27\x86\x9c\xd7\xe6\x36\x95\xd1\x90\x82\x44\x6b\x06\x8b\x77\xdd\xe4\xe8\x60\x4f\x8c\x0e\x9c\xe2\x0a\x1b\x71\xaa\x9e\xff\x14\x60\xf3\x2d\x5a\x54\x47\x62\x75\xbd\xee\x8e\x76\x21\x49\x1f\x46"[..]); ctx.update(b"\x65\x15\x89\x92\x7e\x17\xe1\xae\xf7\x80\x69\x0f\x31\x00\xa3\x77\xf0\x17\x9b\x18\xb3\x1f\xd5\xb4\x41\x8c\x84\x03\x85\x73\xfc\x55\x9b\x49\x6a\x78\x2b\xee\xc3\xdc\xf6\xe9\xfa\xf5\xae\xf6\x76\xe1\x0b\xbe\xc3\x4b\x1b\xe5\x88\x8f\xda\x49\xb9\x1e\x02\x89\x0d\x25\x24\xc5\xb3\x69\xf8\xa5\x41\x75\xf2\x9d\xed\xf8\x15\x6f\xff\x69\x0c\xf1\x86\xec\x77\x10\x4a\x79\x83\x15\x03\x3b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xda\x84\x60\x42\xfb\x90\x8e\xee\x5f\x5d\xef\xd1\x05\x5f\xf3\xe5\x71\x03\x70\x82\x78\xd3\x79\xa8\x68\x1f\x58\xbe\xdc\x6e\xf8\x96\x70\xb9\xf9\x57\xc4\xe0\xed\xca\xa4\x2d\xfd\x8c\xd4\x9d\xf6\xea"[..]); ctx.update(b"\x67\x86\x52\x60\x0e\xee\x42\x58\x0f\x73\x62\x34\x12\xe9\xc0\x11\xcc\x02\xde\xc4\xd4\xcc\x1b\x79\xb2\x7b\x6f\x99\x39\x69\x5b\xf2\x18\x5b\x20\x12\xab\x06\x30\xf3\x17\xd2\xe2\xde\x95\xdd\x69\x89\x0e\x43\x07\x83\xe9\x9d\x7e\xd1\x21\xc7\xc8\xda\x9a\xe7\x07\x80\xb5\xaa\xbf\x90\x22\xd1\x43\x5c\xf5\xed\x6d\xa6\xfc\x66\x92\xc0\x50\xc2\xb5\xf2\x2b\x24\xfb\x1c\xf9\x13\x5f\x9c\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\x6a\xe4\x1c\x9b\xcc\xc1\x6e\xac\x48\x60\xbd\x5f\xa9\x12\x05\xa8\x6f\xbf\xd0\x96\x92\x57\x8f\x7f\x36\xb3\xc1\x35\xd9\x6f\x9e\x90\x01\xc1\x92\xdb\xed\xa9\x75\xf7\x37\x5b\xd4\x3a\x23\xba\x68"[..]); ctx.update(b"\x41\x6d\x3f\xb7\xb4\x01\xfa\x5e\x78\xcd\x96\xd4\x79\xd8\x86\x0d\xf1\x47\xee\xf0\x3a\xdf\x13\xfc\xe1\xc6\x11\x31\xfb\x89\xcc\x2e\xbc\x63\x28\x97\x45\xbd\x7d\xb9\xbe\xf1\x45\x71\xa5\x53\x18\x49\x65\x72\xdb\xe5\x2b\x9b\x34\x9e\xf5\x9f\x40\x6c\xec\xd6\x89\x09\xf3\x64\x32\x53\x80\xbb\x75\xf3\xaa\x62\x50\x3c\x84\xf4\x7a\x55\xaa\x6b\x9c\x9b\x19\x9e\xbe\x41\x44\x09\xff\x39\x64\xcd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc5\xf2\x05\x42\xe0\xc0\xac\x1e\xb4\x33\xde\x62\x29\xfe\x5b\xac\xcf\xd4\x50\x2e\x2c\x22\x75\x43\x93\x85\xef\xda\x63\x74\xa1\xd0\xfc\x50\xcd\x9b\xba\x42\x33\xd4\x70\xad\x91\xa3\x35\x6e\xa3\x15"[..]); ctx.update(b"\x6f\x09\xe8\x76\xc0\xb8\x3c\x99\x34\xff\xb7\x77\xf0\x06\x33\x8c\x51\x42\xa3\x13\x75\xe9\xb2\x1c\xfe\xa9\xa7\xde\x12\x99\x8c\x4e\xa6\x70\x8f\xf1\xfd\xf5\xa8\xee\x6b\xb6\x7c\x67\x5f\xfd\x82\x09\xa1\x00\x64\xe2\xd7\x58\xa8\x73\x4e\xb4\x8f\x07\xf7\xcf\x3d\x43\xb0\x9f\x1b\xfd\xc5\xd0\x7a\x52\xb7\x70\x79\xf2\x3c\xec\x28\xbf\x86\x3b\xed\x97\xc8\x59\x27\x6d\xf7\xf7\x12\x9f\xce\x71\xeb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\xc9\x68\xf3\x02\x5f\x87\xdb\xd5\xcd\x3d\x36\x4b\xf6\x73\xe6\x28\x27\xc3\x58\x89\x53\x24\x31\xbe\xcd\x87\xcf\xbe\x2c\xc7\x5b\x7e\xf4\x56\x96\xd1\x9c\xd3\x45\x2d\x0e\x7c\x2b\x69\xd0\x95\x44"[..]); ctx.update(b"\x0d\xc2\xb2\x26\xb3\x43\x1c\x69\xa7\x6a\xdd\xc0\x18\xfc\xbd\xa2\x2b\xd7\x2c\x8f\xf0\x1e\xd6\x54\x95\x96\x79\x8b\xd9\x50\xf3\x61\xc4\x89\xa0\x9c\x95\xce\xe2\xdc\xfd\x64\x01\x20\x8a\xe6\x36\x8d\x66\x30\x02\x6b\x41\x7c\xc4\x71\x8c\xcb\x8b\x42\xe8\x87\x29\x37\xde\x66\x89\x5f\xd0\x91\x42\xc4\x2f\x06\x6b\xf0\xef\x3a\xb2\xb0\x38\x03\xa8\x18\x5f\xb6\x5f\xc7\x14\x8c\x37\x6d\xdd\x4b\xf5\x8a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xaa\x64\x5a\x4f\x8f\x60\x24\x11\x26\x0a\xce\x24\xd3\x81\xf3\xf5\xdf\xf0\x00\x0c\x24\x63\x43\xeb\x52\x8e\x3d\xd0\x27\xcd\x74\x38\x15\x73\x79\x06\xac\x5c\x74\xea\x83\xc2\x75\x5e\x56\xb9\x95\x09"[..]); ctx.update(b"\x8d\xc7\x1c\x84\xc8\x77\x27\x53\xc8\x6a\xb6\xaf\xd8\x0e\x8d\x1d\xf9\xb0\xd7\xe8\xd6\x9e\xbe\x67\xfa\x88\x3a\x82\x41\x2c\x26\x73\x8c\x33\x99\xca\xb9\x55\x73\xb4\xd3\xc4\x36\x7c\x85\xc8\x18\x52\xd5\xa6\x56\x4c\x0f\xc7\xca\xaa\xfe\x16\xc0\x5e\x62\xaa\x06\xcc\x9f\xa5\x42\xce\xb3\x5c\x88\xfb\x6a\xb8\x2c\x29\xd5\xdc\xd5\x30\xf8\x07\xd3\xf1\xc3\xbc\xb3\x97\x44\x21\x10\x1d\x1a\xa6\xac\x11\x2d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\x23\x98\x13\x09\x71\x24\xe6\x24\x8e\x7d\xbe\xc9\x85\xa6\xa2\x5f\x62\x2b\x1d\x07\x29\x5c\xfc\xfb\xaf\xf3\x3b\x84\x7d\xf7\xfd\x94\x26\x5e\x43\x9f\xa5\x35\xf3\xbe\xcb\xdb\x57\x69\x22\xac\x41"[..]); ctx.update(b"\x3d\xf3\xed\xd9\xfc\x93\xbe\x99\x60\xb5\xa6\x32\xe2\x84\x7b\x30\xb1\x01\x87\xc8\xf8\x3d\xe5\xb4\x5f\xcb\x2e\x3e\xd4\x75\x56\x9a\x8b\x2e\xd0\x78\x43\x48\xf9\xda\xcc\xe7\xb3\x23\xc6\xb6\x50\x71\xab\xd8\xb3\x2d\x10\x22\xb1\xe1\x27\x87\xbd\x49\x89\xd3\xc5\xac\x32\x9d\x57\x6c\xcd\x76\x08\xdd\x33\x67\x16\x53\x2e\x9b\x4c\x7f\x82\x58\x26\xfb\x2e\x34\x36\x23\xef\x85\xc6\x27\x06\x19\xbf\x5e\x3b\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf3\x65\x90\xf5\x21\x1a\x9c\xf8\x4e\xeb\x0a\x3b\x2e\x5d\xc1\x16\x4e\x81\x31\x91\xcd\xa7\xcb\x88\x3f\x3f\x4a\x07\x46\x05\xce\x67\x80\xcf\x2f\x1a\x10\x56\x58\x70\x6f\xbd\x28\x29\xdb\x8a\x2a\x58"[..]); ctx.update(b"\xce\xd0\xec\x65\x00\xcb\x89\x1e\x64\x33\xd1\x04\xba\x5b\x1c\x1e\xbc\xa3\x97\xf3\xa5\xee\xea\xa0\xf0\x56\x17\x29\x62\x1e\xa5\x0d\x4a\xe7\xff\x1d\x08\x27\x17\x8d\xcc\xd8\x4e\x4c\xa0\x6d\x98\x91\xa9\x0a\xdb\xb7\xa9\xf4\x99\x4a\xc9\x47\xcf\x62\x96\xe7\x1d\x2f\x49\xb8\x26\xd6\x4b\x12\x3a\x7b\xf8\x6f\x33\x9f\xa4\x67\x9c\xad\xdb\xdf\x19\xcf\xed\x7d\x02\x06\xaa\x5f\x52\x7a\x6b\x0c\xc0\x0f\x52\xaa\x2b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc2\xc2\xd7\xd6\x5d\x0b\x91\x08\x64\x8e\x32\x33\xd1\x5f\xc4\xe4\xcb\x62\xed\x8f\xee\x9c\xdd\x18\xab\x44\xb8\x48\x6e\x21\x00\xfb\xe4\x5d\xdc\xf7\x4f\x46\xc1\x5e\xb7\x7f\xb1\xc8\x93\xc1\x22\x02"[..]); ctx.update(b"\xaf\xa4\xa2\xc4\xfb\xaf\xfe\x83\x8d\xd1\x49\xc7\x8e\xa7\x85\x1e\xa9\x39\x63\x04\xb4\x18\x06\xa0\x93\xa9\x0a\xae\x59\xc0\xc5\xbd\xb1\x70\xcc\x9a\x7d\x22\xb9\x0c\xbc\xe5\x2c\xc1\xb1\x05\x10\x89\x42\xdf\x20\xc2\x9e\xf3\xa9\x13\x22\x3b\x91\x5e\x7e\xbc\x98\xef\x13\x5a\xde\xfa\xa0\xf0\xa6\x44\x1e\xa0\x59\x20\xe8\x68\xce\x9d\x1f\xf6\xc8\xfe\x4d\xbe\xc0\x6a\x48\x49\xe5\xe5\x5a\xd0\x62\x7f\x9e\x09\xdf\xcb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\x6e\xf9\x1d\x85\x67\x41\x4f\x5c\x7f\x0b\x1f\x4a\xd0\x9a\x97\x6a\xfc\x7c\x83\x27\xa3\x82\xfc\xa9\x0f\x5a\x13\x6b\x19\xbe\x33\x10\x0a\x66\x43\x90\xa3\x77\xf8\xd8\xa3\x01\x5f\xb8\x82\x12\x5b"[..]); ctx.update(b"\x00\xf6\x5a\x48\x5b\xfd\x38\x11\x13\xd6\xe7\x9b\xf9\xe0\xd5\xe5\x18\xc8\x91\x98\x8c\x07\x3b\xa1\x98\xac\x3a\x20\xf2\x5c\x2c\x81\x61\x97\x23\xe8\x8a\x3c\x0e\xd3\x07\x50\x75\xfb\xba\xfb\x6a\x7b\x61\xd3\xbc\x33\x6a\x5e\x6d\x6f\x08\xd1\x66\xc4\x86\x1e\x6a\x3b\xdc\x2e\x49\xb2\x80\x6b\x56\x7e\x7e\x82\x1a\x55\xcb\x67\x4a\x6c\xd6\x99\xf7\xdc\x61\xa7\x05\x4a\x8f\xf3\xde\xc7\x3e\xb6\x67\xf5\x96\x44\x34\x6b\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\x9c\x6b\x5d\x41\xda\x7c\xd1\x0d\xf9\x0b\x02\xb1\x93\xac\x7d\x40\xcf\x2e\x46\xc1\x39\xe9\xdb\xd2\x08\xa9\x88\xda\x2b\x25\x00\x2c\xdb\xad\x1d\xb2\xec\xc1\x32\x2d\xa2\x0b\x7d\x05\x4e\x5f\xe6"[..]); ctx.update(b"\xb9\xce\x38\x2e\x1e\x82\xa8\x73\xcc\x44\x42\x48\xa3\x00\x8c\x2c\xf6\x4d\x18\x75\x90\x57\xab\xe8\xf9\x1c\x9d\x87\xf5\xdc\x83\xaa\x4e\xca\x0c\x51\xd3\x08\x29\xb9\xa1\xd2\x71\x2d\xa1\xfa\xc3\x1f\x52\x94\x2d\x77\xc9\xf2\x0c\x2b\xf6\xd3\x75\x10\x28\xd7\xd4\xf0\xd3\x36\xd3\xdc\x92\xb2\x7e\xc3\x68\xca\xa4\x44\x4b\x31\x80\xc1\xe3\x7e\x98\xb5\x8f\x25\xe6\x47\xa9\xa6\x36\x1f\x0b\x04\xcf\x78\xd1\x79\x55\x76\x61\x68"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\xcd\x10\xb3\xea\x90\x7b\x37\x70\xe8\xeb\x91\xc9\x74\x66\x6e\x2d\xa2\x52\x5a\xfe\x70\x20\xb8\x72\xb3\xec\x66\x89\xe5\xe1\xcd\x00\x59\xdd\x4f\xd4\x9c\xe4\x4d\x75\xdc\x4c\x84\x30\xc3\x22\xd6"[..]); ctx.update(b"\x67\x78\xd8\x2f\x3a\x98\xee\xcd\xfa\xc5\x5d\xde\xeb\xc5\x24\x76\xa0\x70\x09\x4f\xbd\x65\x83\x18\x01\xfd\xd6\x0f\x83\x7d\x80\xd2\x3b\x90\xd4\x72\xc5\xf4\xe5\xca\x62\x73\xa5\x0f\x40\x15\x4e\xa8\xfb\x94\x01\x3f\x63\x10\xad\x18\x80\x04\x33\xa1\xd3\x79\xc8\x4b\xdf\x79\x9a\x99\xe8\xc7\xb6\x76\xfb\xcd\x29\xcc\x2e\xd6\x65\x52\x29\x7d\xe7\xa6\xe5\x65\x17\x9b\xb4\x2b\x70\xd4\x82\x99\xe0\x92\x5a\x1d\x72\xca\x2c\x79\x2a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x71\xf0\x8d\x93\x33\xdf\x5c\xb8\x85\xfd\x23\xd6\xcb\xb1\xdb\x84\xf9\xb5\x59\x08\xd0\x69\xdf\x50\xfa\x47\x95\xcc\x71\x3a\x18\x43\x9b\xca\xb8\xda\xca\x07\x83\x56\xf5\xc7\x5a\x61\x9f\x2f\x87\x82"[..]); ctx.update(b"\xba\x3a\x54\xa7\x7d\x7c\x2b\x8c\xce\xc6\xd5\x31\x36\xcd\x48\x82\x7c\x87\xac\xdd\x1c\xd8\x6a\xd1\xf5\x6e\x86\x26\x42\xea\x2e\x1d\xcb\x40\x93\xf8\x5d\x60\xf7\xbd\x77\x16\x07\x38\x46\x2e\x6c\x3f\xd3\xdd\x9d\x3a\x7c\x5c\xf7\xe2\xa1\xd6\x0f\x48\x9f\x84\x47\x19\x02\x17\x9f\x21\xf6\x56\xce\x0f\xff\x08\x92\x78\xea\x14\x44\x1e\x04\xe7\xaf\x71\x89\x16\x22\x56\x5f\x44\xc4\x28\x04\x47\x28\xfc\xc6\x86\x21\x2a\x32\xa5\xd8\x09"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\xc1\x54\xf0\x54\x2d\x8e\x3c\xac\xf9\xd7\x9f\x23\x14\x16\x81\x61\x78\xa7\xef\x22\x75\xfb\x25\x7a\x48\xa2\xf7\x63\xff\xa2\xe1\x5a\x33\xc2\x7b\x97\x0a\x41\x6a\x05\x79\x25\xaa\x04\x12\xd2\x68"[..]); ctx.update(b"\x7e\xec\x4f\x4f\x49\x1b\x4e\xea\xeb\x1c\xdb\xdb\x95\xe9\x51\x1c\x28\x72\x37\x2b\xf6\x4a\x1f\x61\xcd\xa1\xcd\x80\x32\x72\x9c\x8b\xea\xfd\x1e\xda\xbf\x78\x03\x6d\x80\x02\x3c\x81\x4a\xd8\x60\x61\x06\xcb\x4e\x7f\x33\xf2\x14\xc3\xe6\x9c\x0f\x23\x0e\x88\x54\x74\xfd\x59\x4f\x7f\x24\x44\xaa\x58\x1e\x0c\x70\xeb\xf1\x30\x73\xd8\x90\x63\xeb\x81\xa4\x3c\x5f\x60\x8b\x2f\xc9\x9f\xa1\xbc\xf5\xe2\xbf\xe6\x2a\x68\x02\xe7\x0c\x52\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2f\x8c\x56\x82\xa0\x74\x38\x04\x3e\x55\xf0\xb7\x75\x9f\xe7\xee\xa5\xd9\xbd\xfc\x8b\x0f\x89\x80\x0e\xbc\xf7\x77\xbc\x05\xa9\x41\xea\x7f\x3c\xac\x45\xd4\x65\x9d\xe0\xf5\x05\xd8\x14\x59\x0b\x6b"[..]); ctx.update(b"\xf3\x71\x5b\x9e\x3d\xdd\x78\x62\xe1\x5e\xe8\x7a\xa2\x3f\x1a\xaa\x05\x80\x59\x1e\x55\xcf\xf3\xfe\xe9\xb4\x9b\x42\xaa\x0c\x0c\xc8\xcf\xb8\xef\xa3\xeb\x96\xff\xb7\x2a\xb0\x6b\x83\xd7\xb4\x7b\x3d\x22\xa5\x77\x24\x21\xcf\xc5\x12\x14\x00\x51\x50\xed\xf5\x32\xaf\x10\x13\x8a\xd4\x57\x58\xad\xd4\x59\x90\x86\x01\xec\xcc\x37\x03\xe8\x10\x00\x2a\x2e\x4c\x62\x02\xe9\x8d\x84\x28\x14\x75\xd5\x5d\x3d\xe9\xf3\xd9\x88\x09\xcc\xe1\xf6\x65"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x04\xe7\xd5\x5b\x0e\xb4\xbc\x3d\x3a\x21\xcf\xd2\x94\x1d\xbb\x4d\xc4\x47\x06\x58\x89\x67\x18\x6b\x40\xda\x54\x90\x2a\xee\xa9\x7b\x26\x2c\x97\xf7\x5e\x37\xeb\xe3\xcd\x60\xa8\x04\xe7\xb9\xfe\xca"[..]); ctx.update(b"\xdf\xd7\xd7\x92\xe1\x62\xbf\x7a\x88\x91\x09\x55\x0a\x0f\xc4\xc4\x15\x23\x2a\xf0\xc0\xd7\x2d\xcb\xc2\x59\x52\x99\xe1\xa1\xc2\xae\xae\x54\x9f\x79\x70\xe9\x94\xc1\x5e\x0a\xb0\x2f\x11\x3d\x74\x0d\x38\xc3\x2a\x4d\x8e\xc0\x79\xcd\x09\x9d\x37\xd9\x54\xab\x7e\xf2\x80\x09\x02\xcd\xf7\xc7\xa1\x9f\xb1\x4b\x3c\x98\xaa\xf4\xc6\xad\x93\xfe\x9a\x9b\xc7\xa6\x12\x29\x82\x8e\x55\xad\x4d\x62\x70\xd1\xbd\xbc\xa9\x97\x5d\x45\x0f\x9b\xe9\x1e\x56"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x08\xe5\xef\x57\xd0\xc2\xaa\x23\xed\xfc\x75\xcf\xae\x39\xe6\xbc\x1a\x43\xb5\xdb\x08\xb2\xe2\x7b\xc9\x82\x31\x14\xed\xf7\x60\x36\x7d\xb9\xcf\x3c\xd9\xc3\x77\x97\x55\xf6\xd3\x9e\x21\x9b\x70\x79"[..]); ctx.update(b"\xff\xbc\x7c\x47\xf5\x2e\x69\xf5\xc6\x67\xf4\xed\x57\x8b\x46\xff\x45\x92\x04\x8f\x78\x90\x81\xf3\xfb\x39\x32\x1d\x0a\xa4\x62\x7a\x6d\x4f\x26\x19\x05\x64\x94\x10\xa5\x3a\x30\x1c\x23\x1f\xa7\x87\xae\x55\xc0\x4f\x61\x5a\x8f\x84\x19\x6c\xec\xf2\x84\x4d\x23\x00\x7b\x44\xed\xd8\x92\x64\x9f\xc8\xed\x10\xa2\xe8\x55\xbf\x23\xfe\x8a\xfd\x0b\x9e\xdb\xb3\x32\x96\xf5\xa7\xcf\x89\xf9\x46\x34\xd9\xd1\xa2\xb8\xca\xc3\xb7\xf4\xe5\x46\xf2\x32\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbe\x10\xc7\xba\xf9\x46\x08\x40\x8a\x0a\xcc\xfb\xc8\xce\x95\xe1\x59\xd0\x8d\x8c\xa7\x5d\xd6\xc2\x73\xf9\x35\x94\x7a\x7e\xc3\x46\x3e\x10\xa5\x8d\x3c\xea\xa0\xb2\x19\x8b\x08\x87\xa3\xa2\x4a\x29"[..]); ctx.update(b"\xa3\x9f\x20\x2d\x86\x6e\x8e\x96\x76\x5f\xbb\x53\xb6\x77\x25\x37\xde\xc0\x43\x32\x2f\x4a\x74\x75\x24\x70\x36\xd7\x49\x5c\x98\x78\x50\xce\xf2\xa4\x62\x18\xd3\xfa\xb3\x6e\x3b\xcd\x59\x5c\x0a\xca\x5e\x98\xb9\xdb\x14\xfa\x48\x4c\xa8\xc9\x77\x2d\xfa\x38\x39\xf7\xac\x30\x66\x72\x7a\x50\xb0\xd5\xc9\x33\xd8\x2f\x82\xf1\x22\x07\x20\xe8\x06\x3f\x08\xbc\x28\x3f\x19\x9c\x8a\x4f\x85\xc7\x00\x43\xdf\x4f\xe5\x5e\x75\x1d\x0d\x71\xdf\x36\xfa\x43\xd8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\x26\x64\xcc\xb5\x55\xa1\xb1\xf3\xec\x99\x68\x60\x14\x6e\xa7\x5e\xf7\xf3\xbd\x62\x02\x8a\x19\xc2\x6f\x63\x33\x93\x99\xf4\x27\x5a\x07\xf3\xc0\x64\xd3\x47\x66\xeb\xe8\xe4\xdd\x53\x2f\x66\x29"[..]); ctx.update(b"\xb2\xc8\x26\x18\x53\xe2\x21\x8d\xfa\x13\x5c\xb5\x38\x78\x10\x35\x2b\x89\x62\xe9\x4e\x9f\xdc\x86\x95\xb4\x1e\x7d\xba\x6a\xd1\x22\xd1\x4f\xdd\x0d\x23\x60\xdc\xc0\x39\xcc\xce\x8b\x37\xfa\x0e\xad\x6c\xcc\x85\xbc\x26\x26\x1d\x47\xcb\xaa\x78\xb9\x25\xc6\xe3\x80\xfe\xf1\x85\x6f\xed\x31\xdc\x61\x6f\xe1\x6b\x20\x39\xb1\xac\x85\xcd\xee\x4c\xe0\x4c\x04\x97\x99\x8b\x41\x32\x18\x68\xdb\x08\xe3\x5f\x35\x86\x06\x58\x5e\x0b\xb8\xc3\xda\x9a\x3b\xe7\xa6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\xb2\x86\xf4\x9f\xd0\x5c\x45\xc9\x21\xb7\xbf\xdb\xe2\xcb\x02\x44\x41\xc3\x72\xe0\x73\x94\xdc\xcc\xae\x0d\xe8\x34\xcd\x54\x1f\x13\xa7\x9d\xbb\x3e\x50\x78\x89\x6e\x88\x43\x85\x42\xbd\x2f\x12"[..]); ctx.update(b"\xa0\x4f\x39\x0a\x9c\xc2\xef\xfa\xd0\x5d\xb8\x0d\x90\x76\xa8\xd4\xb6\xcc\x8b\xba\x97\xb2\x7b\x42\x36\x70\xb2\x90\xb8\xe6\x9c\x2b\x18\x72\x30\x01\x1c\x14\x81\xac\x88\xd0\x90\xf3\x91\x54\x65\x94\x94\xdb\x5e\x41\x08\x51\xc6\xe8\xb2\xb8\xa9\x37\x17\xca\xe7\x60\x37\xe0\x88\x19\x78\x12\x4f\xe7\xe1\xa0\x92\x9d\x88\x91\x49\x1f\x4e\x99\x64\x6c\xc9\x40\x62\xdc\x82\x41\x1f\xa6\x61\x30\xed\xa4\x65\x60\xe7\x5b\x98\x04\x82\x36\x43\x94\x65\x12\x5e\x73\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe7\x08\x9d\x72\x94\x5c\xef\x85\x1e\x68\x9b\x44\x09\xcf\xb6\x3d\x13\x5f\x0b\x5c\xdf\xb0\xda\xc6\xc3\xa2\x92\xdd\x70\x37\x1a\xb4\xb7\x9d\xa1\x99\x7d\x79\x92\x90\x6a\xc7\x21\x35\x02\x66\x29\x20"[..]); ctx.update(b"\xf4\x19\x49\x4c\x3c\x6d\x07\x27\xb3\x39\x5a\x48\x3a\x21\x67\x18\x2a\x72\x52\xf4\xfd\x09\x9c\x2d\x4b\x71\xb0\x53\xf9\x4b\xb8\xb3\xad\xf3\xb5\x1e\x84\x60\xcf\xec\x08\x4c\xe9\x41\x5c\x95\x79\x8f\xba\xe4\x97\x5c\x20\x8c\x54\x46\x45\xb5\x4c\x44\xd2\xb9\x7f\x2e\xcf\xce\x5c\x80\x5b\xe6\x1f\x5b\xa1\xd3\x5d\xcc\x07\xaf\xdd\x51\xa8\x7b\xaa\x99\x05\x06\x66\x8c\xf7\x10\xe1\x8b\xe9\xb0\xeb\xf9\x43\xf3\x66\xfa\x29\xc6\x9f\x7a\x66\x16\xde\x72\xa3\x35\x3b\x66"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xae\xad\x86\x88\xc5\x8c\x6b\xa4\xe9\xca\xdb\x47\x56\xb4\x65\xdc\xe0\xfb\x06\xf1\xcf\xaa\x47\x81\x97\xf2\xea\x89\x41\x4e\x47\xe9\x57\x20\x34\xad\xfe\xd1\x60\x70\x3c\x79\xb8\x2b\x3f\xd7\xab\x78"[..]); ctx.update(b"\xaa\xf7\x58\x4d\x53\x00\x6c\xbf\x2d\x20\x40\xe5\x1b\x7f\xee\xbd\x2b\xbf\x1e\x9f\x6d\x81\x7c\xd8\x06\x2a\x6a\x96\x80\xe7\xf1\x04\x64\xee\xfe\xb5\x0b\x07\xcb\x46\xb1\x4b\x9b\x3f\xcb\x2c\xaa\x3b\x9a\xb6\x64\x49\x01\x15\xd5\x91\x94\x56\x61\x3b\xf1\x72\xb5\x8c\x53\x88\xfd\x52\x64\x6a\x57\x83\x53\x5b\x88\x21\x27\x17\xef\x60\x53\x14\xb7\x0b\x8a\x08\x50\x24\xd4\xab\x1f\xcb\xe2\xbe\x74\x60\x9e\x4c\xbd\xec\x07\x30\xfa\xbd\x3c\xd7\x71\x51\xd6\x47\xa3\x76\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe6\xe7\x9d\x8c\x61\xd0\xea\x9f\xc7\x0d\xd4\xde\xc1\xfa\x43\x28\x49\xc3\x39\x6e\x71\x7b\x17\x0b\xad\xbd\x87\xa4\xc7\x97\x4e\xfc\x59\x0a\xb8\xc1\x18\x3a\x62\x32\xbe\xff\x14\x53\x4f\x00\x4b\x02"[..]); ctx.update(b"\xa4\x67\xf7\x73\x69\x73\x02\x01\xf2\x81\x22\x04\xfd\x63\xad\x0d\x27\x57\xbe\x58\x0d\x93\x7d\xfe\xb2\x21\xa0\x6b\x21\xed\x32\x13\x53\x1d\x93\x61\x52\xa0\xc1\xf0\x9f\x0a\xd5\xfe\xd1\x9f\xd1\x1e\x80\xad\x98\x2c\x61\x20\x3e\x86\xb2\x50\x82\x79\xd9\x1d\x99\xfa\x48\x3e\x2e\x97\xa3\xd6\xa6\xad\x25\x48\xa8\xda\x40\x4d\xdd\xb5\x83\x44\xf4\xbd\xc1\xc9\xea\x90\x70\x88\x88\x5e\x4f\x53\x2d\x9c\x4c\x73\xcd\xfd\xa4\x3c\x3a\x9e\x4c\xe5\xa2\x80\x90\x96\x59\x3c\xfa\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5a\x75\x08\xc2\xcc\x09\x6b\xf6\x5a\x4d\x4d\x33\x7a\xea\x22\x00\x8e\xdb\x9a\x3b\xae\x86\x9f\x94\xe0\x9f\xb5\x26\xa5\x2c\x33\x68\xe9\xb2\x85\x76\xfb\x95\x0f\x07\x8b\x7e\x43\xb5\x56\x21\x20\xe6"[..]); ctx.update(b"\x01\xab\xc9\x0e\x91\x80\xfc\x9b\xb8\xea\x67\xa4\x05\x07\x3e\xd6\x84\x8b\xf3\x30\x48\x07\x65\x66\x47\x6c\x55\x83\x6b\xcb\x19\xd3\xe5\x5e\x94\x00\xc5\xcc\x65\x7b\xc7\xa9\x5f\x1d\x70\x3c\x39\x0f\x5a\x86\x87\xe7\xcd\x7f\xe9\x13\x8e\xa3\x83\x7b\xfc\xad\xad\x62\x58\xa3\xeb\x8d\x65\x12\x1f\xa8\x31\x9b\xfd\xe5\x32\xae\xc0\xe6\x94\x96\x1b\xdd\xd2\xb6\x73\xf2\x84\x12\x4b\xe5\x78\x11\x00\xf4\x03\x81\xb6\xff\x99\xdb\x92\xea\x9c\xc8\x2a\x43\x72\xe5\x39\x24\xda\xc3\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x96\xb2\x09\xd7\xcb\x2c\x20\x33\xb3\x83\x50\x74\x47\x67\xfa\x5c\x25\x3e\x1b\xfd\xb9\x9f\xe8\x41\x8b\xff\x83\x80\x4d\xf0\x22\x48\x14\x0f\xe3\xb7\x7b\x0b\xfd\x4a\x79\xb5\x1f\x70\x40\x5a\x43\x4b"[..]); ctx.update(b"\xb5\x55\xd9\x90\x56\x36\x2b\xfc\x2b\xac\x2a\x1b\xbb\x71\xba\x11\x2d\x64\x4e\x50\xb8\x2b\x01\x5e\x5a\x1c\xe3\xd9\xcd\x5e\x90\xb8\xb7\x4b\x08\xd3\x21\x19\xba\xa6\x2a\xba\xe2\x51\xfc\x00\x15\xe4\x00\x05\x1a\xda\x4e\xca\xfc\xe3\x68\x1e\x5d\xe7\x27\xc2\x0d\x47\xf5\xca\xdc\x66\x3d\x46\xac\x68\x20\x22\xca\x39\x6a\x4b\x7e\xd1\xc4\x13\xe0\xb7\x2b\xd7\xee\xc4\xa0\xdf\xdc\x2a\x21\x85\xab\xb5\xd9\x9a\xfd\x50\x94\x05\x28\xca\x75\xad\x89\xda\xeb\x9a\x1b\x61\xe1\x57\x47\xf0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xab\xd3\x9f\x79\xd7\x2c\x6c\xd2\xe8\xe1\x30\xf3\x60\x30\x32\xfe\x3c\xef\x41\x77\xc3\x56\x39\x30\x09\x6d\xf1\xf1\x0b\x87\xe7\x9c\xd4\xe2\x05\x9c\xf1\xb9\xf8\x25\x21\x84\xbb\x26\xf6\x59\xa5\xda"[..]); ctx.update(b"\x14\xfb\x01\xae\x9d\x60\x15\xec\xb3\xe5\x6d\x6e\xcd\xfa\x4b\xc0\x53\x31\x86\xad\xf8\x45\x7f\x5e\x4a\x5c\x57\xc6\x87\x89\x5f\x3d\xb3\x95\xd0\x6a\xe7\xff\xbd\x67\xec\x41\x45\x20\x09\x55\x0d\xfc\x18\x78\xee\xc0\xdf\x2e\xea\xb0\x9e\x86\x65\xf7\xe5\x9f\x91\x48\xa8\x6b\x2b\xc6\x95\xb3\x65\x21\xa5\x5b\x23\x02\xf2\xe8\x69\xaa\xc8\x3f\x14\xd6\xfe\xaf\xc9\xe5\x87\x32\x2c\x3c\x44\xf0\x52\xea\x1c\x05\x78\x88\x4f\x84\xf5\x63\x07\xbc\x6d\xde\x31\xba\x48\x11\x8a\x0f\x62\xb6\xfd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfc\x9b\x9a\x95\xa8\xce\x1c\x15\x77\x20\xcb\x63\x10\x1a\x75\x94\xdf\x24\xf4\xcc\x74\xba\xf7\x35\xb0\xcc\xf6\xab\xb9\x25\x47\x8a\xd5\x07\xcd\x04\x8d\x30\xcd\xe1\xc7\x88\x80\x6f\x43\xed\x3a\x81"[..]); ctx.update(b"\x11\xae\x0c\xbf\xee\x7b\xb3\xdf\x90\xce\x58\x5f\x09\xb9\xcf\x8f\xf5\xbe\xa6\x9a\x68\xee\xb6\xc2\x25\x53\xf8\xed\x11\x8c\x9a\x61\xe7\xb7\x52\xcc\x2c\x94\xf3\x87\x66\xe6\x3e\x1b\x89\x1d\xfa\x05\xb2\x33\x47\xb6\x17\xd4\x2f\xde\x3e\xc1\x7e\xea\x6e\x76\xd3\xcb\x64\x0b\xf8\xfa\x46\x58\x6f\xb9\xdd\x5c\x4d\x9b\xfe\xe0\x4c\x46\x49\x57\x1b\x78\x17\x09\xf8\x48\xad\x70\x81\xaf\xb6\xe2\xc7\x46\xf0\x71\xa5\x51\x25\x10\x50\xfd\x5d\xf7\x2e\xe6\x52\x48\xec\xdc\x24\xf2\xcb\xe7\x4e\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x32\x14\xb5\xfe\xec\x92\x50\x59\x14\x9f\xa8\x52\xe3\xae\x28\x5a\x6e\xb3\x77\xdf\x92\x65\x04\xe2\xf8\x24\x57\x2a\x3a\xeb\xd2\x05\x0a\x20\x14\x4e\x7b\xed\xe7\xe7\xfe\x23\x8e\xe8\x3e\x69\xf7\x2c"[..]); ctx.update(b"\xa5\xc4\xa4\x7a\x04\xf4\x71\x42\x69\xd5\xd9\x22\xba\x46\x94\x06\x0a\xa2\xdf\x49\x19\x37\x20\xc8\x19\xfa\xc9\x3b\xb8\x78\x7e\xc5\x5a\x10\x7a\xc9\xa6\x60\x2f\x00\x45\xfd\x2c\xc8\xe6\x67\x44\xbf\x86\x3c\xed\x91\xee\xab\xe6\x0e\x7d\x2c\x1d\x80\x27\x6e\xcf\x3b\xbe\x91\xf1\x75\x70\x96\xcf\x58\x92\x14\xf3\x56\x9c\x2c\x48\xbd\x74\xbe\x7f\x8b\xef\xdd\xb2\x83\x95\x81\x47\x80\xa4\x7c\x18\x0a\x58\xb0\xd0\x27\x6a\x7e\x98\x73\xd6\x82\xf4\x73\xe2\x7d\xe7\x27\x5c\x92\x5e\xde\x23\xb6\xcc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\xd9\xe1\x30\x35\x79\xd8\x15\xf5\x8e\x8c\x6c\x98\x55\x85\x01\x33\x25\x17\x78\xa6\x32\xf7\xb3\x12\xc4\xb3\x16\x3b\x29\xb5\xef\x6c\xb9\x51\x1a\x08\xa3\x1a\x23\x7d\x9a\x76\x04\xaf\xbf\xa0\x56"[..]); ctx.update(b"\x75\x26\x47\x74\xaf\x69\xec\x7e\xe3\x12\x5e\x20\x5b\xd6\xd1\xcb\x8f\xdb\x22\xf7\xea\x6d\xbe\x72\xd1\xf2\xc0\xf7\xe2\x20\x59\x02\x79\x6d\x75\xe3\x79\xc7\x9b\x11\x49\x86\x15\xc2\x1c\x9f\x52\xb8\x76\x1a\x88\x5e\xec\xc6\x9d\x13\x2b\x2b\x48\xc6\x3b\xc0\x74\xc3\x05\x5e\xe5\xcc\x13\xf5\x1d\x6c\x98\x7e\x81\x88\xb0\x30\xb8\x37\xe8\xf7\x54\xd4\x01\x22\xb4\x51\xf1\x5b\x28\xcd\x2b\xdd\x57\x69\x20\xe1\xde\x58\x06\x59\x3a\x36\xd8\xe1\xe8\x9b\x9e\xf3\xca\xef\xee\x5a\xcd\x80\xb3\xe9\xc9\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xff\xa9\xe4\xe8\x56\xd0\x62\x27\xc1\xcc\xb9\x59\xbe\x55\x83\x09\xcc\x10\x63\x31\x73\xf4\xb6\x6c\xeb\x38\x29\x23\xb5\x2b\x91\x50\xac\xfb\x08\xa7\x39\x35\x00\x47\x7a\x6e\xe4\x42\x5a\x82\x7e\x76"[..]); ctx.update(b"\x79\x1a\x36\xd7\x48\x69\x5e\x62\xdb\x50\x03\xa8\xad\x36\x7d\xf1\xf0\x51\xc1\xac\x6a\x21\xd7\x11\x82\x3e\x8e\x06\x9b\x54\x6e\x3f\xa0\x6c\xee\xaa\xe0\x6d\xe7\x0a\x1d\xe2\x49\xe1\xdf\xfd\x0d\x94\x0e\xdc\x6a\xca\xc0\x0c\x4c\x15\x50\x4c\x02\xd4\xb0\x93\x36\x58\x00\x54\x23\x45\x5f\x00\x02\x3b\x01\xcd\xc5\xb6\x81\xb6\x08\x33\x79\xc2\x45\x95\x51\x8a\x47\xc6\x54\xf5\xe1\xa1\x09\x47\xdf\x10\xc0\x5a\x3d\x71\x6b\x2a\x97\x3f\xaf\x98\xe1\xee\x3b\x67\x58\x16\x59\x8b\xb8\xd4\xc2\xa3\xb0\x6e\xb7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\xd3\x33\x69\x68\x05\x24\xed\x6c\x6a\x71\x6d\x4c\x50\x2d\xe3\xea\xc8\x91\xf3\x40\xf4\x0e\x82\xe3\x75\x01\xbe\x1a\x90\xfb\x61\xd2\x6e\x5d\xaa\xfe\x92\xbc\x6e\xf5\xec\x0a\xe4\x31\x16\x88\x42"[..]); ctx.update(b"\x74\xcd\x86\xbb\xed\x14\xd8\x95\x30\x1d\x8a\x54\xb2\x95\x6b\x1c\x5c\xd1\x45\x1e\xeb\xab\x62\x0b\x97\x8d\x4e\xce\xf2\xcb\xdf\x7a\x14\x36\x73\x81\xf5\xee\x79\x28\x1a\x77\x33\x37\x74\x0f\xb9\xf5\x85\x3f\x42\x53\xc4\xb1\x9f\x68\x43\x41\x08\x1d\x8f\x56\x1b\x2a\xd7\x73\x22\x41\x51\x09\x95\x88\xda\x90\xe0\x4d\xdd\xd5\x65\xf6\x75\x96\xc5\x36\xd6\x4c\x5b\x87\xe9\x48\x0a\xd4\x36\x01\x39\x75\x07\xad\x1b\x61\xca\x0e\x34\x9f\xb8\x8f\x19\xfe\xb4\x8f\x77\x06\x76\xfd\x56\x2e\xe8\x25\x9f\x50\xd0\xc9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x73\xee\x8d\x29\xc3\x08\x21\xdc\xdf\xa4\x44\x16\x39\xf0\x37\xfb\x6b\xa3\xa9\xca\x59\x6d\xc4\x34\x28\x04\x37\x85\x75\x66\x08\xf6\x20\x7d\x80\xb7\xf7\x8e\x57\x31\x74\xfb\x9d\xfd\x42\xf0\xb8\xcd"[..]); ctx.update(b"\x46\x61\x2e\x1a\x4d\x01\x6c\x41\x70\x0a\x3b\x5c\xcb\x38\x32\x33\x53\xbd\x8d\xa5\xb9\x94\x2c\x9c\x92\x12\xdf\x40\xb4\xbe\xe0\x6b\xe3\x62\xa1\x5d\xad\x62\xc8\xb2\x92\x4d\x78\x91\x68\xb2\xd3\x25\xfe\x35\xbd\x51\x00\xe1\xe2\x9f\x1a\xc0\xfa\x7a\x60\xa9\x4c\x9e\xee\x5a\x70\xcc\xcb\xc7\x5a\xc2\x14\xb1\x94\x6a\x56\x79\xcb\x52\x3b\x37\x8d\x5c\x69\x07\x51\xb7\xa7\xa3\xb8\x0d\x41\x37\x12\xfe\xae\x70\x24\xce\x71\xd6\x29\x5a\x3d\x5d\x16\x51\x5c\x36\x22\xa0\x52\xeb\x86\x2e\xbd\xab\x81\xca\x7f\xe3\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xca\xc1\x3a\x37\x84\x22\x5b\xe0\x3d\x52\x6f\x9a\xbc\x1e\xb5\x0a\x76\x2e\x72\xc0\xe0\x11\x72\xa1\x5d\x57\x88\x01\x08\x9e\x5c\x9f\x26\xe5\x3c\xc0\x0f\xf7\x55\x90\x94\x53\xe2\x96\x4d\x7d\xf8\x38"[..]); ctx.update(b"\x1a\x85\x7c\x1f\x10\x5d\x06\x8c\xea\xb0\xb1\xe1\x24\x94\x89\x0e\xc1\x96\x36\x2a\x48\xb0\x20\x0a\x0d\x75\xd7\x12\xb1\x8f\xb1\x4b\xec\x6b\xb5\xb6\x8a\x33\xb7\xe0\xb4\xfd\xc5\xb7\x71\x42\xc2\x9c\x6d\x91\x51\xb9\xf8\x84\xf5\x95\x51\xf4\x76\xe5\x25\x69\x86\xa6\x53\xd4\xa4\x68\xf2\x81\x41\xed\x95\x47\x21\xf2\xcd\x02\x05\x4d\xf0\x43\x87\x38\x19\x45\x45\xed\x70\x23\x41\x73\xac\x49\x88\xb7\xd6\x28\x12\xde\x4f\x2f\xea\xda\x14\xf6\x8e\x3b\x41\xbc\x99\x48\xd4\x13\x9f\x4f\xb4\xda\x59\x39\xf2\x6c\x02\x61"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb7\x5d\x92\xb5\xcd\x37\x72\x84\x6f\x7b\x68\x06\x4a\x35\x67\xae\x43\xe5\x01\x00\x99\xf2\xb6\x49\xf3\x50\x87\xe7\x59\x2a\xee\xc1\x76\x64\x6f\xc8\xc2\x62\x92\x88\x94\x42\x61\xcd\x35\xb5\xfc\xba"[..]); ctx.update(b"\x9d\x36\x81\x8d\x0c\x5a\x00\x8b\xe7\x90\x4d\x19\x17\xaa\x3e\xcc\xb5\xef\x4f\x38\xce\xcb\x8c\x4e\x63\xc4\xb2\xe9\xb4\xb0\x91\xa3\xbf\x25\xb4\xed\x03\x32\x44\x5f\x89\x4c\x2a\x4c\x25\x8b\x74\x9a\xfa\x17\xfa\xd0\x3c\xdd\x41\x71\x3a\x86\x9f\x89\x9b\xa9\xa0\x85\xe7\x3f\xa9\x47\x4a\x58\xdb\x7a\x95\x0d\x3a\x23\x86\xb6\x0f\x79\x49\x5d\x8b\xf7\x3e\x72\xac\xaf\xfd\xbf\x65\xe1\x98\x9f\xf9\xcc\x20\x6b\xa8\xc4\x6a\x36\x8d\x85\x12\xba\xc7\xc7\xc1\x91\xd7\x13\xac\xa9\x49\xd4\x5d\xf2\x97\xb1\xb6\x59\x4a\x1a\x33"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x8d\xa8\x44\x57\x9f\x3e\x37\x25\xd0\x0d\xaa\x8e\x1e\x28\x7d\xa4\xbf\xbb\x2d\x93\x1e\xbe\x8d\x3b\x16\x02\x11\x54\xbe\x50\x33\x41\xd6\x37\x1d\x38\x2a\xda\x74\x4f\x86\xf5\xbb\xb5\x6c\xdc\xfa"[..]); ctx.update(b"\x4a\xe5\x0e\xd6\x26\xee\x60\xdc\x5e\xa5\x56\xe3\xce\x0d\x3c\x18\xb9\xe6\x22\x5b\x56\x20\x81\x4e\x8b\x96\x21\xac\xf8\xf9\x39\xdd\x37\x0a\xd9\xc7\x62\x0d\x85\xe6\xd6\x7a\x22\x9f\x37\xf5\x17\xd1\xb5\x80\xac\xae\x8d\xf0\xb5\xc9\xd2\x9d\x75\x6f\x6d\x5e\xbd\x3b\x63\xb5\x54\xe5\x56\x46\x9b\x5b\x4f\x8e\x71\x13\xba\xd1\x55\x9f\xb2\x54\xca\x82\x7f\xcd\x00\x42\x5d\x18\xb0\xbe\x7f\x2b\x48\xc2\x54\x4c\x48\xd9\x09\x82\xec\x62\x4f\x49\x0b\xe6\x5e\x89\x3f\xa9\x3a\xc9\x46\x7f\x35\xa0\xa8\xe1\xb5\x6d\x9a\x40\x37\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\xcd\x94\x3f\x42\x93\x33\xc7\xc8\xd3\x0a\x85\x76\x82\x7f\x92\xc9\x2a\xe1\x8e\x0d\xbc\xae\x77\x06\x01\xb7\x96\x87\xbc\xcf\x8c\x23\xe9\xe5\x89\xdf\xeb\x45\xc3\xb9\xbc\xaf\xdd\x54\x5e\x45\xe7"[..]); ctx.update(b"\xdb\xed\x76\x12\x44\x8d\x46\xcb\xe0\xa3\x84\xd1\xc9\x32\x33\xf0\x2f\xfd\x1c\x98\x4b\xa7\x65\x29\x95\x18\x65\x6d\x37\x23\xb7\x66\xc1\x65\x8d\x4b\x1e\x70\x47\xcd\xc7\x29\x45\x9e\x36\x6e\xf9\x34\x9e\xfc\x40\xcb\xd9\x90\xf2\xa9\xa2\x4d\xb7\xa5\x04\x5e\x1d\xea\x12\xdc\xe8\xf9\xd9\xf2\xaa\xed\x93\x3f\x93\x03\x1e\x7b\x89\x59\xac\x5e\x7b\xf6\xbb\xbd\xf3\x0b\x48\xf7\xeb\x78\x3f\x8f\xe2\x92\x37\x1a\x2f\x24\x5c\x5c\x94\xb4\xac\xae\x16\x07\x67\xa2\x0c\xe7\xc0\xea\x77\x23\xd9\x76\x91\xd8\xee\xdd\xa9\xef\xd1\xfe\x2d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\x53\x1a\x1e\xd1\x81\xc7\x32\x31\x1e\x56\xf4\xb5\x6e\xd9\x1d\xca\xcc\x0d\xd6\xbf\x1e\xb4\xa4\x4b\xe6\xf8\x7d\xd7\xcb\x1e\xf9\xdf\xb0\x31\x0f\x4a\x79\xea\xaa\x3f\x32\xbf\x39\x14\xd8\x62\x4e"[..]); ctx.update(b"\x3b\xf5\x2c\xc5\xee\x86\xb9\xa0\x19\x0f\x39\x0a\x5c\x03\x66\xa5\x60\xb5\x57\x00\x0d\xbe\x51\x15\xfd\x9e\xe1\x16\x30\xa6\x27\x69\x01\x15\x75\xf1\x58\x81\x19\x8f\x22\x78\x76\xe8\xfe\x68\x5a\x69\x39\xbc\x8b\x89\xfd\x48\xa3\x4e\xc5\xe7\x1e\x13\x14\x62\xb2\x88\x67\x94\xdf\xfa\x68\xcc\xc6\xd5\x64\x73\x3e\x67\xff\xef\x25\xe6\x27\xc6\xf4\xb5\x46\x07\x96\xe3\xbc\xe6\x7b\xf5\x8c\xa6\xe8\xe5\x55\xbc\x91\x6a\x85\x31\x69\x7a\xc9\x48\xb9\x0d\xc8\x61\x6f\x25\x10\x1d\xb9\x0b\x50\xc3\xd3\xdb\xc9\xe2\x1e\x42\xff\x38\x71\x87"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\xb6\xcb\x35\xed\xa9\x2e\xe3\x73\x56\xdd\xee\x77\x78\x1a\x17\xb3\xd9\x0e\x56\x38\x24\xa9\x84\xfa\xff\xc6\xfd\xd1\x69\x3b\xd7\x62\x60\x39\x63\x55\x63\xcf\xc3\xb9\xa2\xb0\x0f\x9c\x65\xee\xfd"[..]); } } nettle-7.1.0/src/hash/sha3_224.rs000064400000000000000000002212250072674642500144650ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha3_224, nettle_sha3_224_digest, nettle_sha3_224_init, nettle_sha3_224_update, sha3_224_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 224 bit variant of the Secure Hash Algorithm 3 (SHA-3) defined in FIPS 202. #[allow(non_camel_case_types)] pub struct Sha3_224 { context: sha3_224_ctx, } impl_write_for_hash!(Sha3_224); impl Clone for Sha3_224 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha3_224_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha3_224 { context: ctx } } } } impl Default for Sha3_224 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha3_224_init(&mut ctx as *mut _); } Sha3_224 { context: ctx } } } impl Hash for Sha3_224 { fn digest_size(&self) -> usize { ::nettle_sys::SHA3_224_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha3_224_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha3_224_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha3_224 { type Context = sha3_224_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha3_224 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha3_224::default(); } // CAVS 19.0 // "SHA3-224 ShortMsg" information for "SHA3AllBytes1-28-16" // SHA3-224 tests are configured for BYTE oriented implementations // Length values represented in bits // Generated on Thu Jan 28 13:32:43 2016 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha3_224::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\x4e\x03\x42\x36\x67\xdb\xb7\x3b\x6e\x15\x45\x4f\x0e\xb1\xab\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f\x5b\x5a\x6b\xc7"[..]); ctx.update(b"\x01"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x48\x82\x86\xd9\xd3\x27\x16\xe5\x88\x1e\xa1\xee\x51\xf3\x6d\x36\x60\xd7\x0f\x0d\xb0\x3b\x3f\x61\x2c\xe9\xed\xa4"[..]); ctx.update(b"\x69\xcb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\xbd\x25\xc4\xcf\x6c\xa8\x89\x12\x6d\xf3\x7d\xdd\x9c\x36\xe6\xa9\xb2\x8a\x4f\xe1\x5c\xc3\xda\x6d\xeb\xcd\xd7"[..]); ctx.update(b"\xbf\x58\x31"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1b\xb3\x6b\xeb\xde\x5f\x3c\xb6\xd8\xe4\x67\x2a\xcf\x6e\xec\x87\x28\xf3\x1a\x54\xda\xcc\x25\x60\xda\x2a\x00\xcc"[..]); ctx.update(b"\xd1\x48\xce\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0b\x52\x1d\xac\x1e\xfe\x29\x2e\x20\xdf\xb5\x85\xc8\xbf\xf4\x81\x89\x9d\xf7\x2d\x59\x98\x33\x15\x95\x83\x91\xba"[..]); ctx.update(b"\x91\xc7\x10\x68\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x98\x9f\x01\x77\x09\xf5\x0b\xd0\x23\x06\x23\xc4\x17\xf3\xda\xf1\x94\x50\x7f\x7b\x90\xa1\x11\x27\xba\x16\x38\xfa"[..]); ctx.update(b"\xe7\x18\x3e\x4d\x89\xc9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x65\x06\x18\xf3\xb9\x45\xc0\x7d\xe8\x5b\x84\x78\xd6\x96\x09\x64\x7d\x5e\x2a\x43\x2c\x6b\x15\xfb\xb3\xdb\x91\xe4"[..]); ctx.update(b"\xd8\x5e\x47\x0a\x7c\x69\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\x13\x4c\x33\xc7\xab\xd6\x73\xcd\x3d\x0c\x33\x95\x67\x00\x76\x0d\xe9\x80\xc5\xae\xe7\x4c\x96\xe6\xba\x08\xb2"[..]); ctx.update(b"\xe4\xea\x2c\x16\x36\x6b\x80\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7d\xd1\xa8\xe3\xff\xe8\xc9\x9c\xc5\x47\xa6\x9a\xf1\x4b\xd6\x3b\x15\xac\x26\xbd\x3d\x36\xb8\xa9\x95\x13\xe8\x9e"[..]); ctx.update(b"\xb2\x93\x73\xf6\xf8\x83\x9b\xd4\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe0\x2a\x13\xfa\x47\x70\xf8\x24\xbc\xd6\x97\x99\x28\x48\x78\xf1\x9b\xfd\xc8\x33\xac\x6d\x86\x5f\x28\xb7\x57\xd0"[..]); ctx.update(b"\x49\xec\x72\xc2\x9b\x63\x03\x6d\xbe\xcd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x47\xca\xb4\x46\x18\xf6\x2d\xd4\x31\xcc\xb1\x3b\x3b\x9c\xd9\x85\xd8\x16\xc5\xd6\x02\x6a\xfc\x38\xa2\x81\xaa\x00"[..]); ctx.update(b"\x50\x2f\x4e\x28\xa6\xfe\xb4\xc6\xa1\xcc\x47"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbb\xe6\x1d\x85\xb4\xca\xe7\x16\x32\x9e\x2b\xcc\x40\x38\xe2\x82\xb4\xd7\x83\x6e\xb8\x46\x22\x88\x35\xf6\x53\x08"[..]); ctx.update(b"\xe7\x23\xc6\x4b\x22\x58\xb5\x12\x4f\x88\x40\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd0\x9d\xa0\x94\xcf\xef\xaa\xd4\x6b\x7b\x33\x58\x30\xa9\x30\x55\x70\xf4\xf4\xaf\xe7\x9f\x86\x29\xff\x9d\x0c\x3d"[..]); ctx.update(b"\x0d\x51\x2e\xce\xb7\x4d\x8a\x04\x75\x31\xc1\xf7\x16"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\xae\x07\x44\x05\x1e\x55\x16\x71\x76\x31\x7e\xb1\x78\x50\xa2\x29\x39\xd8\xd9\x4e\xbb\x0a\x90\xb6\xd9\x8f\xde"[..]); ctx.update(b"\x3b\x9a\xb7\x6a\x23\xae\x56\x34\x0b\x5f\x4b\x80\xe1\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc0\x90\x3b\xe9\x6f\x38\x05\x1c\xfc\x2a\x5a\xd2\x56\xaa\x0b\x83\x32\x21\x7f\x45\x0e\xab\x90\x4e\xe8\x4b\x65\x41"[..]); ctx.update( b"\xe9\xfe\xf7\x51\xa2\x02\x97\xad\x19\x38\x66\x2d\x13\x1e\x7a", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x48\xeb\xa3\x6d\xfe\x05\x75\x59\x7d\x13\xca\x26\x13\x32\x67\x19\x9d\xae\x76\xd6\x3d\x1b\x9e\x96\x12\x72\x0d\x08"[..]); ctx.update( b"\x2b\xbb\x42\xb9\x20\xb7\xfe\xb4\xe3\x96\x2a\x15\x52\xcc\x39\x0f", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0d\xfa\x61\xf6\xb4\x39\xbf\x8e\x3a\x6f\x37\x8f\xe3\x0a\x41\x34\xe8\xb2\xdf\xb6\x52\x99\x7a\x2a\x76\xc2\x78\x9f"[..]); ctx.update(b"\x22\x54\xe1\x00\xbd\xe9\x29\x50\x93\x56\x5a\x94\x87\x7c\x21\xd0\x5a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\x65\x25\x64\x63\x27\x6d\xbb\x26\xad\x34\xa3\x78\xc4\xba\xca\xea\xe7\x9d\x70\x02\x83\xb1\x88\xd4\x4d\x73\xeb"[..]); ctx.update(b"\x78\x4e\xf7\xad\xec\xbb\x9a\x4c\xb5\xac\x1d\xf8\x51\x3d\x87\xae\x97\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe9\x18\xa5\xd5\x2a\x0d\x42\xab\x8b\xa2\xea\x38\x6e\xb6\xad\x83\xcb\x8d\xd9\xa6\xbd\x46\x15\x06\xbe\x35\x6e\xad"[..]); ctx.update(b"\xf4\xe6\x89\x64\xf7\x84\xfe\x5c\x4d\x0e\x00\xbb\x46\x22\x04\x2f\xa7\x04\x8e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\x5f\x05\x0c\x95\xae\x33\x47\xcf\x3f\x4f\x50\x32\xb4\x28\xfa\xea\xb1\x36\x94\xe8\xc7\x79\x8e\xaf\xb8\x24\x75"[..]); ctx.update(b"\xa9\xca\x7e\xc7\xaa\xf8\x9d\xb3\x52\xfe\xcb\xa6\x46\xff\x73\xef\xe8\xe4\xa7\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x65\xd6\xa4\x97\x39\xc0\xe2\x87\x58\x4f\xf9\xd1\xf3\x46\x3c\xe2\xe5\x55\xae\x96\x78\x14\x7e\x21\xb5\x88\x9e\x98"[..]); ctx.update(b"\xb2\xf7\x01\x85\x81\xa4\xe4\x59\xcf\x9b\x9d\x98\x16\xfc\x17\x90\x3b\xa8\x03\x3f\x13"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc6\x83\x7f\x12\x22\x7b\xfb\xd8\x6c\xcf\xe7\x94\x05\x3c\xe3\xa5\x40\x52\xc8\xca\x84\x30\xf5\x26\xfd\x64\xb5\xf2"[..]); ctx.update(b"\xf5\x00\x86\xb4\xdc\x7b\xca\x0b\xae\xc0\x07\x6a\x87\x8d\xd8\x95\x71\xd5\x2e\x47\x85\x5b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe3\x9a\xa9\x6f\xad\x58\x19\x61\xbd\xa0\x32\xed\x33\xdc\xe3\x6d\xef\xde\x95\x8b\xaf\x9b\xae\x5d\xc5\x58\xcf\x89"[..]); ctx.update(b"\x6e\x6e\xf9\x63\xf5\x00\x0d\x0b\x91\xb0\xad\x53\x7d\xdc\x96\x97\xf8\xdb\x8f\x10\xa3\xd5\xee"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x66\xdc\xb2\x92\xb4\xd6\xbb\x4c\xdd\x40\x99\xb8\xe7\xbf\xea\x96\x58\x68\x0c\x92\xc5\x15\x62\xc0\x91\x57\x70\x56"[..]); ctx.update(b"\x12\xa7\xb1\xa7\x3b\x0b\x26\xa6\x63\x62\xec\x2a\x91\xea\x5f\xf1\x1a\xf4\x9a\x7a\x14\x8a\x8c\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6f\xc9\x1e\xc8\xad\x44\x81\x73\xf5\x91\xb8\x65\xed\x3e\xb8\x91\x15\xa2\x78\x00\x33\x76\x52\x3c\x00\xe2\x2f\x2a"[..]); ctx.update(b"\x8a\x47\x68\xad\xd4\xa9\xbd\x7b\x3f\x27\x46\x12\x20\xce\xae\x02\x18\xcf\x33\x22\xf4\xd2\xa9\x80\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9a\x88\xbc\x64\xe7\x43\xf2\xac\xaa\x16\x70\xcc\xa7\xe2\x01\xa2\x99\xe1\xcc\xe6\xdf\x70\x15\xb0\xd2\x53\x52\x13"[..]); ctx.update(b"\x5c\x5b\x8c\x19\x02\xc8\x60\x8c\x20\x4e\x72\xa8\x13\xe2\xb6\x25\x02\x1b\x31\x82\xc4\x8b\x00\xf7\xfe\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x31\x80\x2a\x0f\xa9\xae\x7a\xe8\x86\x26\x60\x4a\xd9\xae\x41\x38\x1d\x6f\x7c\x3c\x90\xef\xfc\xfc\xf7\x0e\xfc\xf7"[..]); ctx.update(b"\xe8\x9e\x5c\xf0\x7a\xfb\x4a\x58\xeb\xee\xe1\x7f\xf5\x96\xd9\x0b\x32\x74\xba\x34\x8f\x14\xf2\x84\xff\xf0\x25"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\xc9\xb7\x97\x3f\x55\x73\x5b\x61\x2d\xde\xe8\xcc\x79\x07\xa3\xf1\x42\x9b\x06\xdf\x7c\xb1\x29\x3b\x98\x98\x02"[..]); ctx.update(b"\xeb\x9e\x11\x43\x78\x2a\x0f\x9f\xa8\x15\x26\x1c\x2a\xdc\x27\x58\xfb\x1d\x88\xff\xe4\x0a\x0a\xe1\x44\x18\x9a\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9d\x70\xd2\x25\x20\x09\x4a\x11\x32\x97\xa1\x92\xea\xd3\x3e\x31\x69\x24\xfd\xc7\xa2\xa9\xf8\xea\x70\x98\xb8\x4b"[..]); ctx.update(b"\xc4\xba\x3b\xff\x88\x5f\xb7\x83\x57\x22\x1a\x9a\x90\x3b\xc7\xeb\xd1\x1c\x77\x1f\xaf\x57\x89\xe5\xaa\xbc\x99\x3a\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7b\x02\x12\xb4\xee\x0b\x14\xdb\xa6\x2c\x2d\xb7\xa7\x65\xac\x56\xdb\x46\xe0\xb0\x6e\xb7\x44\xee\x35\x72\x6d\xdd"[..]); ctx.update(b"\x07\x81\x0e\x6b\x78\x51\x77\xe5\x2d\x0f\xea\xc0\x39\x4f\x3e\xcc\x41\xf3\x5a\xa0\x8f\xf1\xed\x81\x62\x57\x5f\x85\x88\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\x13\xd6\xf0\xcc\xe1\x4b\x7a\x10\x44\xa1\x4b\xb2\x80\x3d\x53\xbe\xf9\x07\x09\x37\x69\xa5\xaa\x63\xa8\xe3\x16"[..]); ctx.update(b"\x01\xc7\x42\xdc\x9a\xb0\xb0\x5d\xf9\x25\xd4\xa3\x51\xe3\x8b\xea\x7c\xa7\xad\x78\x35\x94\xe2\x24\x87\xd5\xb8\x19\x85\x83\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\x2c\x70\x7d\xdc\x7b\x63\x09\x39\x54\x4a\xdb\xdb\xe5\x67\xa3\x33\xac\x88\xc3\xb5\xe7\x38\xde\xe8\xf8\x62\xbe"[..]); ctx.update(b"\xdd\x0f\x85\xb5\x5f\xdf\x56\xba\x25\x4e\x06\xf8\xc2\xb6\x50\xcc\x6b\x86\xbf\x28\xa1\x4d\x71\x40\x11\x14\x1a\x86\xb8\xf1\x4b\xd9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0f\xe9\x24\x69\x29\x7c\x2c\x34\x91\x1e\xae\x42\x47\x10\xdb\x6d\x31\x20\x47\x89\x8b\x97\x56\xed\xc5\xc2\xde\xb2"[..]); ctx.update(b"\xdd\xf4\x8f\x4c\xdc\x85\x6c\x44\x83\x26\x09\x2d\xcf\x6b\xfc\x4e\xbc\xf4\xb3\x6f\xc2\xe5\x16\xeb\xa0\x95\x68\x07\x58\x8b\x6e\x82\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\xd8\x3b\xa7\x0e\x1b\xd3\x87\xd6\x03\xab\x14\xc9\xfd\xcb\xf9\x86\x2d\x2e\xbf\x09\x87\x21\x5f\x01\x1a\xbe\xe8"[..]); ctx.update(b"\xc3\x4d\x1f\x87\x29\x66\x35\x69\x56\x9f\x87\xb1\xfd\x6e\x0b\x95\x4a\xe2\xe3\xb7\x23\xd6\xc9\xfc\xae\x6a\xb0\x9b\x13\xb4\xa8\x74\x83\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe5\x7e\x1d\x24\xdb\xd9\xa3\x0a\xb3\x11\x29\x1f\x5d\x6a\x95\x53\x0c\xaa\x02\x9c\x42\x1d\xde\x0b\x48\x7a\x57\x7e"[..]); ctx.update(b"\x80\x8d\xe7\xcb\xf8\xd8\x31\xad\x4f\x17\xeb\x58\x03\x1d\xae\xd3\x8b\xda\xb8\x2f\x46\x7f\x87\xc6\xb2\xe3\xa7\xc5\xde\x25\xc8\xe8\x22\x94\x13"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\xc1\x3f\x11\x22\x7f\x43\x86\xaf\xdc\xf7\x66\x3a\x12\x09\x90\xf2\x7d\xa2\x05\xff\xb9\xbf\x83\x67\x6f\x86\xdc"[..]); ctx.update(b"\x52\x04\xa0\xa6\x37\x07\xbd\x1c\xab\x67\xa8\x79\x79\x94\xa0\x52\xee\x73\x88\x4b\x32\x5f\xdf\x37\xd8\x6e\xf2\x80\xb3\xf5\x50\xc9\xeb\x4e\x7f\xd3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6a\xa1\x06\x0f\x84\x12\x7b\xf2\xc9\x88\x23\x0a\x90\x72\x42\xe7\xd6\x97\x2a\x01\xc6\x77\x2b\xa0\xf7\xb8\xbc\x86"[..]); ctx.update(b"\xda\x94\x39\xbd\x09\x0d\xfc\x2e\xcc\xc1\x20\x3a\x7a\x82\xc5\xd6\x46\x7f\xec\x4e\x5b\x0a\x2b\x2c\x2b\x9e\xa6\x5b\x03\x20\x3a\x8c\xe3\x65\xfb\xd9\x8e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe8\xf0\x92\x9f\x1f\x62\x09\xd4\x11\x85\x29\x2d\x35\xeb\xbf\x5a\x3b\xfe\x54\x92\x71\x3b\x06\xd5\x65\x79\x45\x8d"[..]); ctx.update(b"\x66\x8b\xbd\x38\xc0\xad\x08\x81\xa7\xf0\x95\x15\x7d\x00\xf2\x9b\x57\x6b\x01\xba\x54\xa8\xf1\x39\x2e\x58\x6c\x64\x0e\xcb\x12\xb2\xa5\xc6\x27\xa6\x78\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\xdd\x05\x69\x62\xc5\xbb\x5d\x6f\x61\x6a\x9f\x57\x89\x29\x92\x94\x6d\x04\x8d\xf5\x7c\x0a\x36\xa4\x0a\x36\x5a"[..]); ctx.update(b"\xd6\x3a\xc3\xbc\xfe\xe3\xa5\xbc\x50\x3c\xf2\x0f\xe8\xff\x49\x6b\xf7\xa8\x06\x47\x69\x87\x0c\x8f\xc5\x14\xc2\x9b\x55\x82\x5b\x62\x88\x97\x5b\xeb\x94\xba\x56"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc6\x94\xda\x94\x1a\x7a\x50\x6c\xef\x47\x1f\xdf\xfb\x52\x30\xbb\x6c\x3c\xd2\x71\x53\x41\x03\x3a\xb7\x26\x8e\x9b"[..]); ctx.update(b"\x98\x5f\x06\x12\x1a\xed\x60\x31\x71\x02\x0b\xad\xc2\x07\x5f\xd3\x32\x56\xd6\x7d\x40\x43\x08\x39\x57\x5d\xda\xa7\xa3\xf1\xf2\x23\x25\xd0\x6e\xa4\x02\x52\xd5\xe4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\xf8\x84\x6a\xaf\x23\x42\x81\xb5\x15\xea\x1d\x45\x67\x45\x35\xa6\x12\x6c\x38\xbd\x95\x9c\x19\x95\xca\xd7\xc9"[..]); ctx.update(b"\x87\x83\x84\x95\x52\xbe\x45\x40\xcb\x24\xd6\x79\x96\xa1\x0d\x16\x44\x4b\x2d\x93\x6d\x2f\xa5\xfc\xff\x51\xfb\x0d\xd5\xee\x03\x99\x8c\x04\x54\x28\x92\x15\xfc\xe4\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\x50\x22\x56\xe3\xf4\x29\x1e\xf4\xd1\x5e\x87\x05\xe5\x79\x95\x1f\xc0\xe3\x9a\x2d\x58\xfd\xa7\x48\x52\x55\x1f"[..]); ctx.update(b"\xda\xb3\x1c\x7b\x3f\x40\x82\x5a\xac\x13\xf6\x77\x27\x71\xb7\xe7\xfb\xc0\x9f\xed\xf6\xef\xf7\x78\xd5\x11\x90\xec\xfd\x4b\x0f\x25\x6c\xf1\x89\xba\xee\xec\x50\x7e\x94\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x97\x16\x8a\x9c\x3b\x07\xec\x49\x87\xa4\xcf\x1f\x24\x78\x73\x1f\xc6\x74\xf5\x6a\x2c\xae\xef\x07\x45\x90\xed\x6b"[..]); ctx.update(b"\x11\x19\xb9\x62\xbe\xd5\x81\x57\x34\xaf\x78\x27\xec\x53\x67\x01\xa4\x94\xac\x5d\x4a\xb8\x3e\xea\x1b\x16\xec\xc8\x0c\xe4\xe5\xf8\x69\x4a\x7d\x11\xbc\xba\x2e\x34\xf0\x84\xdd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x20\x5d\x89\xe0\x32\xf0\x3c\x85\x19\xcf\x43\xb7\x20\x47\x83\x89\xb1\x78\x8f\x35\x22\xc3\xd3\x47\xfe\xbd\x2c\x70"[..]); ctx.update(b"\xd2\xc4\x5e\x2c\x1f\xa0\xc4\x4e\xfc\x84\xe6\xc0\x65\x4c\xc0\xd8\x67\xa3\xe3\x37\x33\xc7\x25\xaa\x71\x8d\x97\x4e\xd6\xa4\xb7\xf8\xf9\x1d\xe7\xd3\x62\x2b\x1e\x4b\xe4\x28\xde\x2a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd4\x83\xe3\x9b\x7a\xdd\x05\x0e\xb4\xa7\x93\xe5\x4c\x85\xb2\x50\x74\x6e\x38\x23\x99\xc7\x47\x36\xf3\x3d\xa8\x90"[..]); ctx.update(b"\xa8\x73\xb1\x48\xfe\x18\x07\xb8\x9c\xbe\xd9\x30\xa7\x80\x2a\xba\xd6\xca\x04\x42\x34\x0e\x62\xed\x21\xb8\x4e\xad\x9a\x63\x47\x13\xbb\x4d\xe5\x64\x82\x08\xc0\xee\xd6\x73\x8d\x9c\xc8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\x6b\xcc\x12\xa6\xab\x79\x2c\x14\x9a\xa8\x3a\x67\x83\xca\x8b\xb5\x2b\x0c\xa4\xb2\xc1\x26\x61\xc0\xa2\x5d\x22"[..]); ctx.update(b"\xb3\x00\x8f\x6f\x56\x7d\x1e\xed\x9a\xb5\xb3\xbb\xce\x82\x4d\x29\x0e\x66\xf6\x6b\xcf\xcf\xf7\xf9\xb8\x99\x48\x35\xb4\xd5\x4a\x4e\x45\xc9\xb8\x65\x1b\x37\xdb\xef\xe5\xe3\xfe\x5b\x67\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x23\x92\x97\x53\xad\x07\xe8\x47\x6e\x7b\xda\xc8\xa0\xca\x39\xe9\xaa\xc1\x58\x13\x26\x53\xbe\x10\xeb\xee\xb5\x0c"[..]); ctx.update(b"\x78\xd0\x73\xb4\xe1\x3f\x68\x50\xdc\x1c\xa3\x66\x83\xab\xac\x72\x33\x64\x65\xd7\x90\xeb\x35\x75\xc9\x42\x66\x7d\x1e\x3e\xcc\x84\x9f\x37\xa8\xd7\x36\x04\xcb\x0f\xe7\x26\xff\xe5\x57\x44\xa2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\x29\x23\x3f\xc6\x55\xea\x48\xbb\x5b\x48\xb7\x3a\x08\x18\x97\xd8\x55\xf6\xcf\x10\x47\x82\x28\xfc\x30\x58\x42"[..]); ctx.update(b"\x45\x32\x5b\x80\xe0\x43\xc0\xcd\xce\x3e\xc4\x21\xec\xda\x52\x94\x81\x91\x0c\x09\x73\x01\x28\xb4\xbb\x92\x7d\xda\x16\x59\xdd\xd8\xfd\x3c\xa6\x67\xd8\x57\x94\x1e\x6f\x9f\xd9\x39\xa1\xc5\x70\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x77\x6a\xa1\xf5\x4e\x03\x8f\x39\x04\x91\xa5\xd6\x9b\xde\x7a\x2d\xbc\xba\x97\xc3\x55\x74\xeb\xe6\x0c\x9a\x77\x2f"[..]); ctx.update(b"\x3b\xdd\x68\x21\xd9\x38\xfa\xc5\x21\x01\xfb\xee\x5d\x6b\xa1\x91\xfb\x3b\x6c\xb6\x34\xdb\xf4\x2c\xeb\xaa\xe5\x7b\xd8\x97\x48\x1a\xe5\xee\x04\xe2\xd8\x71\xa4\xc3\x33\xab\x5a\xb6\x58\x81\x44\xf2\xf1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\xf8\xf3\xba\xea\x6d\xcf\x5a\xf2\x5d\x53\xdd\xfd\xac\x0b\xdc\xde\x88\xe3\x89\x5d\xf5\x67\xc6\xc4\x16\xa5\x41"[..]); ctx.update(b"\x86\xfc\x66\xf2\x61\x8c\x98\xfe\x9e\xfa\x1e\x3a\xc0\x4e\x34\x03\x85\xdc\x2b\x74\x6c\xbc\x0f\x7c\x75\x7b\x88\x34\x28\x10\xfe\x70\xd8\x12\x00\x95\x29\x28\xe7\xaa\xd0\xc0\xb6\xb1\x9a\x04\x45\x37\xb0\x09"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x20\xa2\x1e\xb1\xd3\x13\x0a\x45\x19\xce\x6a\xbd\x5a\xb6\x81\x70\x81\xae\x1b\xef\x36\x03\x05\x64\x76\xa0\x0e\x41"[..]); ctx.update(b"\xf2\xa6\x16\x8e\x7f\x92\xd3\x13\xfc\x30\xf9\xe6\xf8\x25\xa4\x80\x91\x62\x16\xf0\x2e\x03\x08\xdb\x70\x77\x3e\xc1\x65\xe2\x5e\x81\xff\xbf\x02\x20\xc5\xca\x0c\xc6\xc9\x1d\x3a\x09\xda\x99\xfa\x6e\xfa\x87\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5d\x6e\x5c\x82\x57\x4f\x5e\x5c\x03\x39\xd3\xaf\x1f\x9c\x28\xe1\x7b\xcd\xdc\x30\x6a\x15\x18\x7a\xff\x5d\x3d\xd7"[..]); ctx.update(b"\x5e\x3b\x6b\x75\xb5\x4f\x21\xb8\x01\x6e\xff\xb3\x92\x76\xf5\xe7\xf4\x93\x11\x7a\xc4\xc0\xf2\xde\xc3\x8a\x80\xae\x29\x17\xda\xd8\x3c\x68\x90\x01\x20\xdb\x13\x25\xf1\xf4\x69\x7e\x0f\x5c\x25\xa8\xb9\x2a\x97\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5d\xc2\x14\x7f\x1c\xf6\x55\xda\xbb\x5c\xa4\xb2\x97\x0b\x45\x64\xeb\x19\xec\x45\x6e\x6f\x96\x6b\xba\xe1\x97\x62"[..]); ctx.update(b"\xe7\xf1\x7c\x13\x19\x50\xc0\x63\x11\xf4\x77\x99\xa0\xf5\xa6\xb4\x99\x6f\x4c\xc8\x90\x33\x44\x50\xe1\xbd\x6c\xc6\xf5\x67\x07\x71\xc0\xdc\x60\x7f\x8e\xce\xb1\x53\x00\xec\x42\x20\x51\x0e\xd5\xb7\xde\xb3\x42\x9d\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4c\xe8\x0d\xab\x9f\x93\x31\x12\xa3\xfd\x78\xc1\xf7\x64\x34\xb1\x97\x80\x6e\xdd\xfe\x35\xcb\x0b\xdd\x84\x5c\x15"[..]); ctx.update(b"\xc9\xaa\x3d\x0f\x6d\x87\x8d\xb1\x12\x35\xe7\xb0\x28\xf8\xd6\x7e\x2c\xe2\x6e\xee\x71\x8f\x30\x8e\x21\x13\x2e\x37\x7e\x31\x70\xe2\x6e\xce\x95\xbd\x37\xa4\xbd\x7f\x87\x3b\xa7\xf8\xb7\x15\x17\xec\x50\x29\x7b\x21\xcf\x94"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x59\x63\xb4\x1b\x13\x92\x5a\x90\xc9\xe8\xfb\xcd\xed\x9a\x82\xad\xe8\xaa\xe3\x6d\xee\x92\x01\x99\xf6\xd6\xac\x7f"[..]); ctx.update(b"\x0f\x17\x0a\xfa\xfc\xef\xdf\xa8\xb0\xde\x32\x8d\xab\x30\xb4\xe4\x4d\x98\xd6\xae\xa2\xbc\x39\x55\x7f\xf4\x65\x8f\xce\x4f\xbf\x85\x26\xd8\xb5\x35\x9f\x17\x3c\x14\xe4\xda\x7c\xf8\x89\x35\xc9\x36\x9f\xc7\xd6\x07\x86\x3f\x25"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfe\x7e\x59\x02\x8c\x78\x55\xc3\x7a\xe3\xdc\x5e\xe3\x24\x86\x4c\xfe\xe6\xb8\xbc\xcc\x2c\x3b\x5a\x41\x0b\x65\xd9"[..]); ctx.update(b"\x6b\x2b\x92\x58\x41\x46\xa4\x33\xbe\xe8\xb9\x47\xcc\x1f\x35\xb6\x17\xb7\x3f\x5b\x1e\x03\x76\xac\x8b\xda\xdf\xe5\xbf\xdf\x22\x63\xb2\x05\xf7\x4d\xfa\x53\xdb\x7a\x29\xe5\x07\x8f\x5c\x34\xa2\x68\x11\x97\x36\xba\x39\x09\x61\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\x2c\xfa\x7e\x71\xfe\x09\x91\xab\xbd\x88\xef\x58\x8a\xc9\x5a\xc9\x28\x9b\x1d\x77\x5b\x42\x03\x35\x67\xdd\x33"[..]); ctx.update(b"\x39\xf7\xa9\x43\x12\xbe\xa1\xb4\xfa\x98\x9f\x5a\x67\x75\xdf\x53\x8f\x01\x70\x41\x20\x83\x8c\x4a\x31\x04\x25\x64\x78\xb5\xc0\xcf\xbe\x8b\x86\xe2\x91\x2c\x98\x0b\x39\x0e\xa4\x12\xed\xdd\xb6\x9d\x46\x1e\x50\xf9\xf3\x13\xbc\x17\xaf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfc\xc5\x96\x55\xb8\xfe\xc1\xa3\xd8\x78\x34\x5d\xf9\x10\x8b\xd9\x9f\x4d\xd0\xe5\x21\x8a\x55\xfc\x33\x5e\x57\xf7"[..]); ctx.update(b"\xac\x58\x2b\x5a\x4b\xb0\xc5\xe9\xc4\x0d\x8f\x27\x7b\xda\x9d\xe3\xd0\x7f\xff\x01\xe8\x20\xa1\xcd\xaf\x88\x70\x8f\x1d\x60\xbe\x60\xb9\xa5\xe8\x3b\x5c\x59\x36\x57\x38\x78\x02\xb4\x18\x2d\x1d\xf4\xe9\x46\x6e\x6d\x7a\xe6\xdc\x7c\x80\x79"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x2e\x10\xfa\xe8\xf4\x30\x4c\xd9\x36\x16\x90\xe5\xd2\xc4\xcd\x15\xf1\x0a\x7b\x14\xea\x60\x20\x87\x39\x57\x9b"[..]); ctx.update(b"\x07\x27\x53\x98\x19\x98\x45\x34\x38\xa5\x20\xd9\xde\x2d\x57\x04\x29\x29\x10\x14\x8b\x8f\x79\x4e\xc3\x76\x5b\x24\x0c\x7a\xf1\xb7\x94\x62\xfa\x9a\x2f\x00\x0d\xd9\x4d\x59\x2d\x3a\x2a\x06\x9d\xc2\x44\xda\xf5\x7b\x12\xc5\x76\x75\xf3\xf8\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb0\xd2\x90\xa6\xeb\xdd\x95\x08\x11\xa2\x71\x5f\x35\x4b\x0d\x89\x35\xcb\x61\x0a\x47\x1c\xfc\x5d\xff\x5e\x06\x60"[..]); ctx.update(b"\x66\xa9\xa6\xd0\xa3\x22\xed\x28\x52\x37\x8a\xf8\x2c\x0a\x2c\x02\x7b\x10\x82\x09\x8a\xb7\x50\x92\x5a\x4d\xc2\xe8\x96\x1d\x00\x62\xc9\xdb\x02\xe8\xcf\x42\xa6\xb4\x8a\xfb\x00\x56\xd6\xc1\xf1\xfb\xbe\xc3\xfb\xee\xf0\x49\x53\x5f\x6e\x9b\x38\x64"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd6\x83\x48\x8c\x84\x20\xeb\x2d\x61\xe5\x28\xab\x0a\x7b\x73\xaa\x78\x0a\x08\x5b\x9c\x79\x82\x29\x3b\x2a\xc6\xad"[..]); ctx.update(b"\x18\x41\x9a\x84\x98\xd4\xe9\xbf\xaa\x91\x17\x48\x18\x6c\x57\x53\xd5\xda\x5a\xa0\x33\x37\x1f\xfc\x56\x65\x0d\x0a\xe9\xb7\x3f\x43\x0f\x0d\x1f\x3c\x9d\x40\x36\x27\x86\xc0\x42\x9d\x97\x7b\x89\x9b\x64\x01\x6e\xca\x82\xe6\x42\x03\xf6\x68\x5c\x12\xee"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x51\xd0\xcd\x33\xfd\x65\x79\xb0\x5c\x36\x6c\x6f\xcc\x65\x36\x38\xb7\xb1\x3b\x62\x79\x8b\x99\xb3\x67\x92\xcd\xc4"[..]); ctx.update(b"\x4f\xc5\x20\x09\xd5\x8a\x0f\xc2\x57\x3e\x83\xfa\x33\x5b\x5c\x1d\xf8\xc1\x4b\x2e\x6d\xaa\xf0\x5b\xd6\xe1\x3f\xd5\x72\x2f\x28\xde\x48\x16\x77\x24\x24\xc2\xf9\x4d\xdc\x3d\xe0\xd3\xd7\xe2\x68\x12\xd0\x14\xbb\x9f\xd8\x30\x12\xdc\x9a\xbf\x1e\xc9\xe3\xf1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x63\x0e\xe2\xbe\xaf\x1c\x15\x92\xea\xa6\x26\x3f\xc5\x62\xa2\x60\xb6\x05\x4e\x9e\xab\x1a\xa1\x95\x36\xfd\xa1\x70"[..]); ctx.update(b"\xac\xda\xa2\x86\x92\xf3\x34\x73\x20\x88\xf5\xef\xab\x2c\x79\x51\xfe\x0f\x84\x5b\x9e\x2c\x6f\x12\x53\xc3\xcd\xcd\xe3\x0a\x4e\x8d\x21\x20\xe3\x8c\x26\x42\x22\x19\xdf\x41\xed\xa2\xc8\x33\x4e\x13\xf6\x69\xa6\x5f\x5b\xa2\x07\x5b\x46\x7e\xde\xd3\x29\x36\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7d\x49\x91\xd5\x4c\x78\xaf\x58\x09\xcd\x17\x02\x4c\xad\xae\x78\x3c\x6f\x5a\x1f\x0f\xeb\x36\x5b\x53\x25\x80\xc2"[..]); ctx.update(b"\xd1\x59\x3c\xd3\x38\xb7\xa2\x5b\xb5\x41\x3f\x11\x2a\x63\x9f\xe3\x1c\x98\x1e\x50\x5c\x81\xa8\x20\xe6\x38\xc2\x52\x09\xe2\xce\x56\xc8\x83\x8a\x7c\x81\x17\xdb\xad\xcc\xde\xc9\x59\xa6\xf7\xca\xb0\xcf\x30\x43\x15\x70\x1d\x4c\xcf\x01\x67\xb4\x02\x6a\x67\x44\xde"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\xe1\x83\x30\x72\x3e\x4f\x90\x52\x0d\x0b\x05\x1a\x9b\xf9\xbd\x7b\x5c\x7e\xc0\x17\x78\x03\xf1\x5c\xf7\x40\xe5"[..]); ctx.update(b"\x8c\xf8\xea\x25\x31\x01\x26\xae\x1f\xdc\xe3\xc9\x19\x53\x95\xa9\xd4\x50\x51\xa2\xa3\xf0\x8c\xe1\x54\xd8\x26\x5b\x54\xcc\xa7\x03\x1a\x7e\xc8\x40\xc3\xa3\x35\x9e\xfa\x4c\x91\xc4\x1b\x74\xba\xa6\x98\xd5\x4f\xfb\x9b\x01\x70\xf2\xed\xad\xc5\x20\x16\x50\xc2\xbd\xc6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\xde\x14\x16\x9d\x16\xa9\x90\x2f\x6e\x8a\x33\x59\xd9\x45\x94\xa8\x89\xc4\xae\xd9\x24\x6c\xaa\x6c\xf5\x61\x2c"[..]); ctx.update(b"\xe0\x32\x0f\xee\x19\xaf\x5b\xfd\x51\x1a\x23\xca\xbb\xa7\x5a\xcb\x08\x15\x52\x5a\x37\x34\x30\x5a\xaf\xa4\x9c\x1d\x8b\xdf\xbd\x85\x35\x79\x64\x6a\x36\xa7\x87\x3c\x4c\xff\xf2\xea\xbd\x7e\x39\x02\xec\xcf\xf1\x19\x2a\xca\x1f\x6d\xce\x3c\xf1\xc9\x88\xe6\xac\xa9\xf2\xc8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd7\xf2\x01\x8c\x30\x3e\xe0\x45\xde\x4b\x8c\xde\xfc\xfb\x53\x95\x67\x4e\x3a\x87\x70\xd6\x5f\x07\x57\xb4\xcd\x5e"[..]); ctx.update(b"\x1a\x42\x4e\xcc\xe1\xa8\x2c\x47\x74\x21\x71\xa7\x01\xad\x6e\x0f\xf1\xa7\x62\xce\x26\xf8\xe3\x32\x81\x8a\x7f\xa1\xa8\x00\xa4\xe5\x06\xa4\xbd\xc8\x13\xa0\x9e\xe1\xd5\x72\x22\xad\xa7\x9a\x12\xe2\x39\x95\x49\xff\xd8\x0f\x16\x28\xef\x55\xe2\x31\xce\x09\x13\xf9\xab\x19\x30"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x27\x7f\x96\xfc\xa5\xd9\xab\x05\x5f\xae\x5d\x4d\xd1\x0c\xc4\x9c\x22\x37\xbd\x38\xd9\x5b\xd8\xdb\xd1\x68\xec\x21"[..]); ctx.update(b"\xaf\x17\x28\x09\x57\x0c\xc3\x06\x33\x3c\x25\x52\x3f\x86\x3c\x6d\x0e\x01\x54\xc5\x5e\x40\x47\x22\xf0\xd4\xed\x41\x97\x13\xda\xbf\x8e\x18\x49\x3a\x0e\x0b\x53\xb2\x20\xa3\x65\x35\xb1\xe8\xf0\xbb\xe4\x3e\x62\x4f\xac\x9f\x56\x6f\x99\x28\x07\xb6\xf2\xd7\x0b\xb8\x05\x93\x3e\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x95\x81\x17\x00\x93\x60\x0c\xb6\x70\x63\xa3\x14\xd8\xde\xcf\x10\x9f\xf9\x36\x8f\xfb\xc9\x0e\xa2\xd3\x25\x05\x77"[..]); ctx.update(b"\xa6\x2f\x4b\x43\x25\x0c\xdf\x3f\x43\xc1\xda\x43\x9b\xc5\xe4\x22\x4b\x15\x18\x5b\x60\xd6\x15\xe3\x8e\x3c\x51\x24\x25\xaa\xb1\x45\x40\x1b\x57\xac\x3f\xc0\xbc\xc1\x78\xea\xfe\xf5\x2a\x2b\x7b\x04\xb2\xb8\x9e\x76\x02\x12\xf9\x6c\x4e\xe6\x94\x99\x08\x31\x85\x8f\x0f\xa7\xc1\x3c\x24"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa0\xf5\x77\x5a\x2d\x00\x1a\x66\xf0\x88\x2c\xe1\x41\x52\x61\x99\x40\x21\x98\x86\x90\x84\x0c\x6b\x4a\x34\x70\xc8"[..]); ctx.update(b"\xfc\xf8\x1c\x93\xf9\x17\xbb\x06\xf2\x78\xf4\x88\x26\xef\x9c\xa8\xba\x99\xac\x8f\x00\x12\x9f\xd9\xf8\xe8\x1c\xa3\x17\x50\xd5\xe5\x48\x18\xaf\x03\x31\xdd\x23\x9e\xb7\x7e\xe4\xb0\xc4\xd0\xc2\xd8\x47\x94\xce\xf2\x7d\xa6\xbf\xeb\x70\x77\x94\xd3\xbd\xbc\x7b\x34\x99\x68\xf2\xa3\x16\xd8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa9\x7a\x74\xfb\x01\xfe\xc5\xca\xf3\x47\x72\x20\xee\xf6\xe7\xc3\x6d\x0b\xa4\x19\x9d\xdc\x75\x5f\x7c\xcf\x94\xee"[..]); ctx.update(b"\xe6\x1d\x24\xb5\x00\x58\x17\x34\xc2\x99\x02\xad\xe4\xc5\x03\x5c\x09\x08\x68\xdf\x9f\x24\xbb\x33\x06\x09\xfc\xdf\xf4\xa7\x2d\x6f\x18\x00\x14\x24\xfd\x81\x3c\xea\x32\x92\x3d\x8a\xa8\x6c\x3d\x21\x5b\x2a\xb7\xd1\x34\x23\x7b\xb6\x2e\x78\xf6\x1c\xb9\xe9\xb4\xef\x5c\xed\x23\x72\x9d\x01\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x40\x75\x83\x14\xf1\xab\xbd\x43\xe0\xbc\x9c\x73\xa1\xc7\xe2\x47\x19\xd5\x6e\xeb\xcd\x96\x7b\x39\xd3\x55\xe9\x78"[..]); ctx.update(b"\x37\xb1\x4f\x04\x23\x3d\xfb\x4d\xa5\xe5\xbd\x18\x52\xf7\x7c\x41\xe2\x5c\x49\x26\x93\x6f\xe4\x14\xc8\x10\x82\x00\xf6\xf3\xcd\x78\xc0\x3e\x2d\xd9\x61\x54\x46\xc1\x4b\xeb\xc2\xc7\x0d\x65\x50\x6a\x7a\x5d\xec\x48\x08\x80\x62\x91\x76\x9e\x0d\xba\xb2\x00\xe5\x76\xf9\xfd\xb9\xe2\x40\xc8\xb8\xff"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2d\x36\xaf\x0d\xd9\x56\x19\xa9\x6c\x56\x64\xd8\x98\x7b\xbb\x82\xd1\x83\x46\x6f\xf4\x41\x51\x03\x4f\xed\x68\x7b"[..]); ctx.update(b"\x45\xef\xb0\xa3\xd8\xfb\x7b\xb6\x83\x91\x34\x59\x72\x7e\x87\x56\xd6\x79\x59\xcf\xdd\x4f\x5b\x80\xe1\x3d\xdf\x45\xe0\x9d\xeb\xdc\x2c\xc6\x8c\xeb\x63\x2d\x6d\x45\xa2\xd0\xa8\x69\xf6\xd4\xdc\x4c\x13\x6c\x80\x58\x49\xfe\x77\xb4\xb3\x81\xe4\xc6\xb2\x2a\x3f\xf6\x99\x47\xa9\xb5\xaa\x6b\x7c\xbe\x42"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\x5e\x98\x32\x29\xf6\x5b\xf0\x1b\x59\xa9\xb6\x19\x81\x0a\x88\xf1\xc5\x3b\x4c\x3b\x19\x60\xb5\x2a\x20\x5d\x99"[..]); ctx.update(b"\x9b\x6c\x3c\x77\x74\x62\x19\xdd\x88\x97\x69\x66\xc6\x8e\xad\x59\xeb\x62\xaa\x3c\xf6\x64\x77\x98\xdc\x06\xd4\xfc\x7e\xf8\xbd\x44\xd8\x90\x3f\x1b\x7b\x6f\x8b\xbf\x3d\x62\x49\x05\x2f\x86\x2e\x9c\xcf\xb0\xd1\x95\x7f\x0b\xba\x23\x36\x03\xbc\xa0\x76\x62\x86\xd1\x7e\xb9\x74\x6b\xc0\x02\xab\xd6\x95\x83"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\x26\x29\x51\x88\x33\xba\x68\x33\x3f\xc3\xe3\xb4\xd4\x82\xc6\x0b\x4e\x0e\x82\x88\x72\x82\x6b\x68\x31\x33\x15"[..]); ctx.update(b"\x9f\x45\x2f\x90\x02\x19\x01\x71\x99\xed\xfc\x5d\x7d\x86\xa1\x62\xd9\x75\x0b\xba\x4c\xec\x77\x42\x8e\xd1\x03\x2e\x57\x11\xb6\xfb\x7c\x37\xc1\xa6\x5b\x3d\x04\x1c\x7a\xa1\xd4\xf1\x6b\xbc\xfc\x54\xf3\x50\x01\x43\x6b\x60\xab\xfb\x65\x44\xc0\xb3\x93\xfc\x13\x89\xe5\xc5\xbd\xbd\xf2\xea\xab\x1d\x99\xdd\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x19\xb4\x32\xf5\xc3\x8f\x66\x54\x41\xd3\x6c\x47\x2d\x38\x60\x08\xa5\xbb\xd8\x2a\xa4\xea\xbe\xaa\xbe\x3d\x28\xcc"[..]); ctx.update(b"\xcb\xfd\x18\x65\x92\xfa\x68\xdc\x3a\x21\xd6\x2d\xb1\xba\x55\x12\x1f\x58\xfe\xcb\x11\x69\x58\x59\xd7\x0b\xd7\xed\x2a\x21\xa2\xa0\x13\xa6\x99\x64\x08\x42\x97\x3b\x57\x1b\xf4\xa7\xc8\xee\x4f\x61\x7d\x5e\x8a\x4d\x1e\x8c\x15\xae\x33\xe7\x70\x97\xd1\x46\xeb\xa2\x79\x34\xb1\xe3\x3d\x8a\x04\x1f\x24\x44\xca\x3a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\x2a\xd1\x3b\xa4\xa0\xb9\xfc\x1a\xa9\xa1\xa5\x7b\xdb\xfb\xeb\xdf\xab\x71\xcf\x5a\x16\xe0\x60\x40\xf7\x57\x87"[..]); ctx.update(b"\x17\x32\x25\x32\x4c\x6c\x35\x0d\xdb\xa2\x27\xb8\x9a\x65\x1e\x57\x6d\x1a\xb6\xa9\x68\x95\x45\x3c\x33\xea\x61\xdd\xb3\x7f\xa2\x53\xe6\x66\xa8\x4d\x0f\xea\x60\x98\x14\x68\x84\x95\x24\x61\x61\xeb\x9c\xcc\xdd\x79\x2c\xb1\xb8\x8f\x36\xf3\x12\x5d\x76\x6e\x2e\xab\xe8\x41\x75\xcb\xe6\x6d\xbe\xcc\x91\xa0\xcc\xf1\x73"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfc\x8f\xee\xca\xef\xff\xda\xa9\x66\xe9\x53\x6b\x91\xdf\xc8\x5e\xa5\x11\x3a\x01\xd6\xb3\x20\x67\x7d\x72\x7a\x7d"[..]); ctx.update(b"\x69\x99\xf3\x98\x40\x74\x80\xcd\x43\xba\xfd\xae\xdb\x86\x24\xd9\xba\x09\x72\xaa\x5a\x2f\x35\x04\xa6\x7f\xe5\x4e\xf7\x44\xb7\xbb\x41\xea\x70\xcf\x8f\xaa\x77\x1f\xac\x6a\x2f\x58\x23\xde\x83\x82\x6a\xf4\xc3\x86\x5b\x6f\xae\xee\xe3\xd1\xd0\xed\xfe\x7f\x0e\x9f\xe3\x20\x7f\x91\x7b\x46\x7d\x84\x18\x50\xfc\x6e\x64\x8f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe7\xab\xcb\x4c\x0f\x21\x88\x14\xec\xf4\x5f\xbf\x28\xa3\xf2\x86\xd9\x0c\x5e\x74\x0a\xaf\xd1\x64\x74\x37\xc1\xe1"[..]); ctx.update(b"\x27\x27\xee\xb1\xd5\x10\x98\xc6\x9f\xd8\x14\x1d\x78\xf2\x12\x75\xb2\xbb\x94\x9e\x71\x15\xfd\x38\x60\x52\x6b\xbd\xa2\x55\x47\xc2\x0c\xf3\x1b\x79\x91\x9f\xa3\x7b\xfd\x47\x26\xc4\xe7\x79\x06\xff\xe0\xca\x97\x05\xf1\x78\x2d\xa0\x45\x4e\x79\x94\x22\xc8\x15\xe0\x1e\x78\x5d\x41\x8f\xa8\x81\xf8\x43\x41\xd8\xcd\x71\xec\x77"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2b\xe3\x32\xc8\x73\xed\x4f\xb7\x0b\xc1\x91\x6c\x76\xbe\xf2\xcd\x33\x85\xe6\x74\xb8\x3a\xa1\xee\x8a\xd2\x8a\x01"[..]); ctx.update(b"\x1f\x48\xa5\xb4\x01\xd8\x8e\x6c\xbe\x37\xf3\xf6\x34\xd5\x54\x62\x86\x5f\x7c\xde\x79\x90\x05\x2a\x1e\x4a\x1e\x4c\xb2\xe5\x8c\x84\xc2\xc7\xef\x82\x92\x34\x47\xd7\xc0\x68\xb6\xaa\x25\xe3\x88\xac\xfc\x05\x70\x4e\x46\xda\x14\x31\x6d\x37\xcc\xdd\x27\x06\xa7\xb7\x9d\xde\xb0\x2d\xcd\xd7\x6f\x34\x2c\x9c\xb2\xf4\x90\xc1\x8d\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x44\x8b\x70\xf5\x75\xa8\xa1\xeb\x74\x03\x0a\x98\x5e\x9c\x50\x4d\x4e\xaf\x6b\x18\x14\xe1\x14\x6f\x78\x2c\x9a\xf5"[..]); ctx.update(b"\x6d\xce\x9a\x9e\xcb\x48\xb9\xda\x8a\xef\x51\xa8\x9e\x7f\x7f\xc1\xa6\xa7\x89\x66\xb7\xba\xc0\xac\x5b\xa7\xab\x18\xd9\x2b\x61\x6b\xb7\x45\x37\xbf\x7e\xeb\x9b\xd3\xbd\xfb\x40\xa4\x50\x74\x7c\x3d\xe2\xe6\xee\xcf\xb1\x27\x63\x04\x91\x48\xfa\x91\x34\xc7\x87\x0b\xa8\x06\x36\xfb\x21\xfc\x71\x34\xf9\x2b\x03\x64\xf5\xd2\x7d\xea\xca"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdf\x85\x5d\x54\x4e\x17\xf0\x11\x25\x02\x2b\xc1\x8e\x9f\xfc\xed\x12\xf3\xcd\x39\x67\x4e\x68\x18\x46\x57\xec\x7e"[..]); ctx.update(b"\xd4\x98\xb6\x90\x13\x45\xaf\xdd\xc5\xaa\x50\xca\xc7\x7f\x7f\x79\x4d\x79\x29\xee\xd5\x71\xd9\x5b\x59\xc2\x89\xa0\xc9\xf3\xb8\x12\xb8\x96\xbc\x7b\x56\x6f\x5a\x63\x9e\xd9\x94\x8e\xd0\x66\xc2\xc6\x22\xc6\xe4\xdb\xb2\xea\x37\xe7\xc0\x68\x06\xd6\x1a\x22\xc3\x26\xd7\x23\x56\xec\x48\xc9\xb5\x18\x2c\x29\xb5\xf9\x23\xaf\x20\x04\x66\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\x22\x5c\x29\xe4\x54\x77\x77\xa2\xc6\xa1\xa2\xbb\xe9\xda\x2d\xc6\xa8\xc6\xd0\xd0\x1d\x8d\x80\x22\x98\x8b\xe2"[..]); ctx.update(b"\xe9\x58\xb8\x04\x89\xaa\x6a\x38\x52\x62\x44\xda\x16\x5d\xc4\x46\x4e\x79\x61\xe4\x57\xf7\x63\xab\xdb\x23\xf7\xe4\x8d\x36\x83\x31\x19\x7b\x37\xcd\x5a\xb1\xe5\x15\xce\xb1\x12\x48\x48\x50\x4d\x8b\xe5\x87\xbf\x30\x41\xd1\x04\x37\xeb\xd5\x39\x15\x16\x45\x56\xb5\x91\x06\xbe\xbd\xf9\x91\x15\x12\x2d\x99\x52\x9e\x02\xee\x15\x51\x38\xa1\x3a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\x4a\x98\x84\x00\x42\x45\x57\xa9\xc6\x0e\x4e\x1f\x32\xf0\x85\x5a\x33\x83\xc9\x0b\x00\x7d\x30\xee\x3e\xc3\x33"[..]); ctx.update(b"\xf3\x3b\xa9\x82\xbc\x2c\x33\x08\xf9\x48\xa1\xb6\x4c\x7f\xb6\x8f\xb8\x91\xbc\x05\xfa\x18\x78\x1b\x1d\xc9\x5d\xc7\x49\xf7\x00\x9a\xdc\x58\xcc\xa2\xbb\x0c\xf7\x90\xeb\xdb\xb4\x16\x5b\xbf\xab\x93\x04\xa2\xa6\xf2\x34\x68\x8d\xcf\x27\x30\x94\xdc\xd8\xd7\xb3\x84\x16\xbe\x57\xce\xda\xce\x57\x83\xd8\xb9\x29\x93\x54\x82\x56\xb5\x37\x3f\x2b\x4e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xca\x37\xe5\x2f\x28\x43\xa0\xf6\x56\x92\xc5\xae\xed\x01\x69\x60\x1d\xa3\x27\x5d\xfb\x3e\xe6\xd8\x1b\x46\x7f\x60"[..]); ctx.update(b"\x8b\x5d\x77\xa9\x06\xc7\xec\x75\x63\xaf\x75\x51\xa7\x96\xe5\xd5\xdc\xf0\x2c\x42\x12\x1d\x7b\x13\xa4\x9a\xa9\xd4\xbc\x79\xd6\x37\x19\x0e\x4e\x65\x10\xec\xaf\x92\xd1\x10\x4f\xd4\xec\x5b\xd8\x35\x14\x46\x35\x07\x22\xd1\xb2\x77\x5d\xbc\x5e\x65\xf8\xfa\xb4\x73\xdc\x63\x7b\x5c\xa8\xa9\xeb\x88\xf6\x8d\x11\xdd\xe1\x52\x75\xd7\xc4\x72\xf9\xdb\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x93\x37\x53\x7d\xe4\x82\xf0\xcf\x88\xca\xd6\xb8\x6e\x19\x5a\x1e\x42\x2e\x59\xcc\x60\xd4\x1d\x0e\xca\x8b\x00\x91"[..]); ctx.update(b"\x3a\x56\x4a\x84\xc2\xb4\x8e\xe2\x6d\xa1\x38\xce\x2d\x1a\xe3\xc7\x93\x3b\xcd\x65\xe4\x02\x88\x40\x6e\x56\xf3\x0d\x1c\x48\x69\x0a\x49\x98\x38\x9d\xd2\x7b\x55\x37\x6f\x9b\x4e\x7f\x43\x60\x7f\xad\xb1\x6e\x89\x33\x72\x6f\x00\xa3\xe4\x12\x64\xcd\xa5\x53\x53\x27\x61\xfe\xfc\x73\xe8\x6e\xd7\x9b\x84\x9b\x94\xe0\x89\x54\x51\x33\x2d\xc8\x0f\xe3\x9a\x4b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\xea\xb3\xe1\x6c\xa8\xda\x57\x16\x54\x2b\xae\x3c\x7c\x73\x6b\x54\x1c\x89\x61\x99\xb2\xcb\x94\x12\x13\x76\x7b"[..]); ctx.update(b"\x61\x8a\x53\x98\x9f\xfb\xbf\x54\xa7\x6f\x01\xf9\xb8\x77\x72\x49\x1d\x87\xc8\xf2\x5c\x58\xeb\x11\xb1\x8a\x04\xf5\xba\x8e\xd6\x25\x74\xc3\x51\xa4\x66\xdf\x64\x73\x1c\x91\x14\x58\xd7\x65\xcb\xde\x83\xe7\xf2\x9d\xe9\x0b\xc1\xbb\x26\xcc\x56\xb3\x5c\x14\x05\x55\xa7\xdc\xf0\x0f\x53\x94\xd7\x6a\x4c\xc5\x31\xd7\xd5\xf5\x7b\xac\x7d\xcb\xd0\x6a\x4f\x73\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\x72\x7c\xc6\xb4\xbd\x93\xd5\xff\x2e\xcb\x81\xab\x50\x57\xdf\xdc\xbe\x3e\x0c\x49\x43\x6a\x58\xb9\xff\x3e\xf2"[..]); ctx.update(b"\x31\x85\x7b\xb4\xe8\x24\x97\xb5\x26\xe4\x26\xde\x69\x20\xa6\x06\x3d\x02\x26\x4d\x52\x49\xfe\xff\xd1\x4a\xbd\xbb\xf0\x35\x63\xd4\xc5\x9a\xd1\xf7\x57\x2c\x7d\x0e\xfb\xc4\x6a\x65\xde\xa9\x58\x0b\xde\x0e\x38\x7c\x9e\xdc\xe2\x7c\xd9\xb2\x0a\x46\xf6\x2a\x70\xe6\xdd\x5f\x58\xe4\x0a\xac\x3a\x22\xdf\xb6\xba\x07\x3f\xac\xda\xdd\x58\xcd\x6f\x78\xc0\x2b\xd2\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9e\x61\x4f\xc1\x39\x64\x5e\x15\x8c\xd1\xb2\x16\xe2\x62\x3e\x58\x62\x42\xaf\x64\xf8\x48\x3e\x6f\xca\x20\xed\x4b"[..]); ctx.update(b"\x14\x85\x90\x08\xc8\x3f\x28\x31\xbe\x4d\x6e\x54\xb7\x81\xb9\xfb\x61\xda\xdc\x40\xc4\x59\xa9\x3e\xde\x11\xb4\xc7\x8a\x7e\x5a\x55\xa7\x17\x01\x42\x75\x26\xa0\x3b\x42\xd8\x83\xf2\x47\x90\x48\x13\xcd\x81\x2e\x7a\x94\x7c\x8f\xa3\x74\x06\xaa\x61\x45\xae\xa6\xd3\xfd\x9e\xd4\x94\x18\x6f\x35\x33\x3d\x42\x3c\xe3\x1e\x0c\xd4\x73\xa0\x31\xa5\x80\x3c\x55\x93\xe9\xa4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x54\x5f\xaf\xa4\x3a\xfc\xaf\x38\x06\x3d\x8a\x31\x2c\x3a\x27\xe0\xd7\x4b\xff\x95\x7f\x8e\xf4\xd5\x1c\xb2\x96\x98"[..]); ctx.update(b"\x26\x7a\x14\xba\xd7\x02\xef\x0a\x84\x68\xb3\x1c\x72\x71\x5f\x05\x33\xf6\xb9\x7e\x6e\x94\x38\x39\xde\xa4\x20\x71\x9d\x6d\xef\xc5\xa3\x99\xf8\x46\x89\xe6\x4e\xcf\x93\x1e\xe3\x95\xee\x49\xf1\xfe\x36\x21\x99\xb7\x3c\xc6\xcb\x01\x05\xb3\x65\x4b\x16\xf1\x9f\x06\xee\x8a\xa6\xb5\xd5\x41\x87\x43\xd4\x80\x4f\x9a\x05\x92\x70\x71\x0d\x12\x67\x65\xe6\xa4\x9c\x4c\xe2\xe3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9b\x93\x60\xa5\xc7\x47\xe6\xe1\x28\x8f\x6f\x9d\x97\x10\x51\xff\xd8\x46\x41\xf6\xd6\x4e\x0a\x4b\x51\x42\xe4\xec"[..]); ctx.update(b"\x6c\x98\xa8\xeb\x3e\xa4\x45\x14\x01\xe0\x42\x4c\x10\xcb\x72\x26\x83\xb2\x3f\x75\xae\x25\x4d\x62\xeb\xa7\x5a\xbb\x9a\xa9\x69\x8e\x65\xba\x1f\xf7\xc9\xf8\x6d\x36\xd1\xca\x6f\x04\x25\xd1\x94\x28\x44\x1b\x00\x45\x0e\x9a\x2e\xf6\x85\xd5\xda\x1c\xd4\xde\x1e\x77\x91\x84\xdb\x74\x3f\xc9\x5a\x46\x17\x97\x33\x38\x08\xae\x6e\x42\xfc\xe1\xe9\xda\x5d\x82\xf9\x0c\xd7\x1b\x54"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0c\x6f\x33\xf9\x53\x4f\xc5\x2f\x37\x00\xf3\x7b\x9e\xe6\x78\xb4\xc5\xc8\xa9\x0b\x1a\x2e\xb1\x57\x40\x02\xe3\x77"[..]); ctx.update(b"\x4b\xae\x62\xa0\x08\xd9\xfd\xba\x35\x1a\x19\x03\xc6\x6d\x58\xe5\x87\x36\x19\x90\xf7\xc9\xee\xa0\x5a\x2f\x51\xf9\x0a\x28\x92\xf6\x0e\x6c\x14\xc4\xed\x36\xb9\x08\xc4\x03\x9b\xc8\x97\x97\xfd\x88\xe5\x42\x81\xb3\x7f\x61\x9b\x3d\x9a\x27\x45\x87\x22\x9e\xf4\x83\x51\xe8\xcb\x18\x81\xcb\x0f\xc8\x3e\x6d\xdc\x90\xa0\x5b\x16\x0f\xd7\xd0\xa1\xeb\x08\x35\xd5\x71\x58\xe4\x2c\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x98\x9c\x15\x6b\xa1\xfd\x1f\x70\xde\xb3\x78\xe4\x6f\xfc\xbf\x6f\x2c\xf9\xcf\x97\x7a\x92\xac\x51\x64\x3c\x97\xb4"[..]); ctx.update(b"\x83\xca\x6d\x4e\xbd\xf1\xc0\x40\x62\xca\x1a\xbb\x97\x76\x70\xef\x9b\xcc\x88\x99\x06\x93\x5f\xd6\x4f\xf4\xc7\x39\x91\x2e\x54\x1b\x8f\x8c\x79\x32\xf5\x95\xef\x66\xe1\x82\x56\xdf\xa1\xf5\x1f\x63\xbf\xe7\xa9\xdf\x3a\xe2\xaa\x43\x17\x71\xd1\x93\x18\xd6\xaa\x3b\xcc\xfa\xc1\xa4\xc8\xaa\x0a\x04\x33\xff\x80\x7a\x88\x1e\x0d\x5a\x97\x22\xaa\xc6\xcd\x57\xc7\x7e\xb6\xa9\xed\xf8\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\x83\x1f\x24\x56\x59\x5f\xab\xee\x9d\x45\x86\x25\x28\x3a\x80\xbb\x4f\x8f\x03\x1e\x9a\xbd\xbf\x48\xb7\xb5\x1e"[..]); ctx.update(b"\xf4\xc7\xad\x8d\x24\xed\x5a\x68\x2c\x47\x34\x63\xe8\x53\x91\x05\x0c\x02\x6f\xef\x0b\x0e\x6d\xca\x38\x8e\x1a\x7e\x2b\xc8\x72\xa4\x67\x46\xa6\x3f\x3a\x2c\x1c\xa6\xe4\xc8\xb7\xc5\xfb\x6b\x58\x85\x0d\x77\xa5\x89\x88\xba\x09\x1b\xd7\xfa\xfb\x66\xce\xd1\x84\xe5\x48\xbc\xfb\x1b\x0e\x6e\x14\x85\xfb\x6a\x19\xcd\x5e\xd0\x76\x40\xa0\x77\x7b\x82\x27\x3d\x5e\x80\x79\x9b\x7f\xa7\xa5\x7d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\xbe\xe6\x17\x47\x4b\x3f\xc3\x44\x70\x25\xf2\xa4\x88\xdb\xa8\x82\x5d\x46\xa4\xe1\x28\xb9\xa8\xbd\xeb\x1b\x85"[..]); ctx.update(b"\x5f\x81\xc5\xae\xc9\x23\x85\xbf\xdc\x55\xeb\xd6\x00\xf2\x3c\xb0\x4a\xc9\xd5\xc7\xa1\x39\x6f\x80\x1f\xfe\xa1\xa6\xb9\x4a\xa6\x17\x23\x17\x61\xbd\xee\xbc\x9e\xc0\xf4\xbf\x9b\xfa\xf5\xeb\xc7\xac\x82\xa2\xc9\x6f\x1a\x74\xc4\x6d\x94\xf0\xda\xd0\xbc\xb9\xef\x7b\x41\xdd\xaf\xf8\xcf\x63\xd2\xb2\x78\x23\x9e\x65\x58\xdb\xae\xd2\x79\x7e\xf3\xb7\xf4\xcf\xf8\xfe\x59\x2f\x6a\x35\x51\xb3\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\x3a\x6f\x0a\x20\xd5\xb4\xdb\xc5\xdf\x64\xa7\xe5\x0f\x99\x85\x63\x14\x53\xeb\x09\xde\xd7\x16\x67\x70\x90\x83"[..]); ctx.update(b"\x07\x35\xce\xca\xed\xef\x99\xbf\x4c\x53\x24\x2f\x05\x52\xf4\x9f\x56\xbb\xe5\x89\xa2\xf6\x11\xaf\x75\xf4\xf3\xae\xc3\x66\xcd\xd6\x70\x2d\x46\x39\x15\x12\x58\x02\x02\xb8\x69\x09\x7f\xce\xb8\xa4\x58\x89\xfb\xbf\x98\x52\x47\x2f\x94\xbc\x2f\x43\x2b\xb8\x30\x9c\x4d\x0c\x4d\x3f\xba\x01\xf6\xe9\x0c\x5c\x2e\xa3\xf8\x90\xed\x95\xd1\x32\xc3\x1f\x4d\xad\xbf\x26\x8c\x37\x8f\xac\x56\x04\xe8\xa4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9f\x5e\x9f\x74\x29\xe5\x48\x8a\x84\x3c\x52\xff\xb4\x6a\xe2\xe8\x42\x28\x91\x9d\x32\x33\x0a\x91\x93\xaf\x3b\x21"[..]); ctx.update(b"\x9b\x4e\x4d\xf9\x2e\x51\x52\xfe\x1e\xc5\x6a\x9f\xc8\x65\xf3\x0b\xac\x7e\x94\x9f\xc4\xf6\x2f\x0b\x15\x8d\x10\xb0\x83\x63\x6b\x4d\xe9\xbb\x05\xdb\x69\xfe\x31\xb5\x01\x03\xfe\xfc\x5f\x8d\xaf\x3a\xf7\x15\x6b\x45\x52\xca\x36\x67\xa9\xd7\x20\xbb\xb2\xe4\xbc\xda\xba\xdf\xd4\xb7\xf4\xfc\x5b\xc8\x11\xfa\xa3\x67\x10\xa9\xd1\x77\x58\xa9\x8d\x4a\x04\x74\xfe\xc2\x7e\x9e\xf5\xb7\x4f\x5c\x68\x99\x35"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x48\x7a\x6f\x2f\x87\x5c\xb2\x53\xde\x4c\xef\x18\xec\xb4\xf2\xa5\x43\x88\xeb\xaf\xfb\xfc\x42\x59\xbd\xd9\x7f\x09"[..]); ctx.update(b"\xa6\x1b\xef\x83\x88\x67\x71\x0f\xf4\x34\x1b\x26\xb1\x3b\x8d\x7a\xf7\xe4\x61\xcc\xd3\x17\xb1\x60\xcc\x4f\xda\xae\xc7\xf1\x80\x5a\x28\xdd\xd3\x66\x3a\x42\x10\xa7\xd1\xb6\x4a\x75\x2e\x86\x6a\xa7\x22\x4a\x75\xbf\x77\xbd\x0d\x61\x8b\xcc\x3b\x0a\x3e\xed\x6b\xfe\x0e\xb2\xb8\x82\x81\x9e\x6a\x4c\xc4\x37\xbd\x38\x91\x5c\xe5\x3c\x55\xd9\x4e\x9e\x93\x39\x28\x64\x83\xdc\x23\x0d\x00\x49\x77\x7e\xa1\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe2\x57\xbc\x45\xb6\x2d\x08\x53\xba\x4b\x0f\x85\x78\x69\x8f\x42\x62\xc3\x1a\x77\x8c\xb6\xa6\x31\x7b\x6e\x6d\x60"[..]); ctx.update(b"\xc0\xbd\x79\xe0\xc5\xf7\x2f\xcb\x1d\xe6\xc2\x34\xbd\xb6\x7b\xd0\xd3\xf4\x81\xb9\x62\xa3\xa0\x1f\x2d\x8c\x48\x3b\xd7\xd5\xd9\x85\x48\xd5\x1d\x27\x53\x27\x16\xb1\x95\xfd\xfb\x0e\xa0\xb7\x7d\xb7\x59\xb5\x4e\x26\x9e\x69\xe4\x8e\x2c\xb0\x7b\xc9\xc0\x62\x59\x92\x7d\x27\x55\xf4\x8e\x8d\x9a\x02\x0c\x58\xa9\xc9\x22\x1a\x9d\x83\x6f\x03\xb3\x0e\xab\xf9\x09\x9c\x8e\xeb\xa6\xab\xed\x63\xbb\x38\x27\x5b\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x92\xdf\x7f\x84\x8a\xda\x8a\x96\x98\xdd\xc2\xe7\x45\x2a\xc8\xfc\x43\xcf\x83\xd2\xca\x2c\xad\xd7\x12\xc5\x95\xf2"[..]); ctx.update(b"\x77\x82\x3a\xf9\xb8\x79\x6c\x63\xba\xeb\xe7\xba\x9d\xcd\xe1\x2c\x62\x6b\x84\x0e\xa0\x4f\x42\xd8\x78\x64\x69\x70\xca\x5b\xf7\xab\xa9\x4e\xaf\x11\x0d\xa3\x6c\xe0\xc8\x34\xb6\x54\xbc\xac\x93\x26\x4a\x34\x9f\x52\x0e\x50\x5f\x1e\xc9\x03\xd3\x58\x9e\x3a\x4a\xdf\x82\x68\x7a\x65\xee\x6d\xd0\x72\xd6\xbc\x05\xac\xdf\xbd\xf2\x57\xcd\x70\xa5\x18\x3a\x54\xb4\xfe\x8e\x87\xd1\xc2\x2b\x2e\x9f\x4e\xe8\x17\xc5\x7d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\x9a\x43\x40\x93\x84\x97\xcd\x8b\x1d\xef\x84\x44\xbb\x03\xf8\x42\x9b\x9e\x87\xba\xd8\x00\x00\x02\xd6\x0b\x83"[..]); ctx.update(b"\xad\xa5\x65\x1b\x4e\x24\x03\x35\x60\x09\x40\xf2\x07\xb9\x83\x71\xf7\xe7\x43\x98\x89\x57\xbf\xfe\x0d\xe8\xef\x08\x62\xd1\xba\x52\xc5\x2b\x69\x50\xe7\xb0\x5c\x35\x42\xc2\xfb\x13\xac\xaf\xf0\x44\x2d\x33\x94\x0a\x0e\x3e\xa6\x72\x32\xf8\x43\x7e\xaa\x02\x12\x82\x83\xff\xc0\xcf\xe2\x54\xac\x8f\x54\x2b\xe3\xf0\x5f\xbe\x4e\x85\x5d\xd2\x2a\xe9\x8a\x81\xb9\xa5\x5b\x3d\x37\x53\x11\x12\x10\x04\x8f\x2b\x50\xe0\x68"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb6\x17\x7d\x17\x9c\xf1\x7e\xdd\xcd\x89\x88\xc9\x10\x8b\x42\xaf\x9c\x41\xad\xcc\x59\x42\xc4\xd3\x3b\x0f\x1b\xe2"[..]); ctx.update(b"\xff\x47\x04\xbb\xbd\x71\x9b\x01\x12\x44\xeb\xed\xf2\xf2\x35\x53\x38\xfc\xc7\xd6\x48\x44\xc3\xa0\xf3\x6a\x21\x56\x9b\x55\xf7\x4a\x97\x10\xf8\xf3\xd8\xd8\x3b\x9b\xcd\x73\x3f\x58\x85\xc3\x2b\x3d\x14\x9a\x5a\xd1\x37\xd0\x16\xc0\x3b\x93\xa4\xd1\x1a\xff\x82\x18\xe8\xee\xec\x6d\x6d\x12\xa4\x1d\x14\x41\xf3\xdf\x04\x0f\xeb\x09\x8c\xa2\xf0\x03\xc4\xc2\x77\xfc\x71\x30\x0c\xdd\x2a\x39\x9a\x7b\xb9\x8a\xe7\x11\xc4\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa1\x07\x2b\x28\xf3\x45\x34\x22\xe6\x11\x42\x13\x09\xaa\x49\xaa\xeb\xba\x02\x73\xc7\x2b\x83\x5f\xde\xea\x11\x32"[..]); ctx.update(b"\xea\xe4\xb6\x2f\x69\x7c\xf0\xbf\x40\xa1\xc2\xc1\x09\x14\x3c\x1d\xde\x18\xe2\x4f\x1c\x28\x9a\xba\x67\xe5\xc8\x3e\xef\x52\xb7\x0c\xf1\x43\x3b\xb9\x80\x13\x94\x92\x85\x96\x96\x30\x05\x4e\x07\x4c\xa2\xe2\x49\xd4\x65\xcb\x38\x3d\xba\x51\x56\x1c\xbc\xb6\x26\xf0\xb3\xb1\xd5\x42\xdb\x1e\x1f\xf1\x68\xf3\x71\xc7\xc6\x76\x4b\x4f\x25\xad\xe9\xeb\x35\x16\x22\x21\x2e\x99\x90\x36\x14\xbb\xf1\xfe\x39\x14\xcd\xf2\x03\x03\x5a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf5\x27\x3e\x4d\x0b\xf9\x77\x9a\x09\x75\xfe\xe2\x3c\x44\x7b\x3a\xbb\x1c\xd1\x7c\x34\xc7\x23\xd6\x2f\x3a\x2f\xd1"[..]); ctx.update(b"\x0e\x39\xe0\xe6\x93\x3c\x61\x04\x98\x4f\xff\xe1\x15\xdd\x8c\xde\x77\xed\xfe\xe4\x95\x48\x0a\xa5\xe5\xde\xf4\x24\xf0\x66\xa5\x77\x03\x45\xfe\xcb\x28\xb1\x6c\xaa\x54\x16\xbc\x79\xe2\xb8\x31\x45\x40\x9b\xd4\xbf\xe9\xa0\x0c\x84\x93\xf0\x6e\xa2\xa9\x9d\xd6\x58\xfb\x87\xb7\x1e\xb5\x7d\xaf\xe5\x8d\xa5\x5f\xa0\x41\x1e\x79\x03\x41\xe3\x1a\x8b\xa8\xf3\x5b\xbe\x71\xaf\x23\xb4\xe8\x83\x3f\xd6\x5e\xc8\xb4\xe6\x21\xe9\x53\x40"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\xfb\x7d\x6b\x38\x10\xd0\xfd\x7d\x96\xb4\xff\x5e\xfe\x7b\xd2\x83\xdd\xbb\xed\xa4\xa2\x1a\x62\xf9\x85\xa3\xdc"[..]); ctx.update(b"\xe3\x2b\xea\x9a\xb0\x2d\xe7\xd8\x93\xec\xb7\x85\x7b\xa6\x6d\xf2\xc3\x5e\xd2\x58\x12\x30\x65\xca\x80\xe2\xa0\x67\xfa\xbb\x7d\xd4\xe7\x98\x39\xea\x0b\x3c\x58\xab\xac\xe8\xe9\x7b\xf4\x2b\x0b\x8d\x97\xfc\xb0\x9b\xb6\x06\xa1\xda\x02\x43\xc3\x2d\x24\xcc\x98\x98\x5d\xf0\x08\xf8\x69\x83\x62\xf2\xaa\x78\x9e\x2a\x82\xb3\xe5\xb5\x01\x18\x53\xd0\xc0\xe8\xfb\xd2\x0c\x4d\x2b\x5f\x47\x33\xf2\xdf\x8c\x5a\xe0\x2e\x92\xa9\x0d\x95\xd3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x27\x8e\x06\xfd\x12\xa3\xe3\x14\xf6\x0d\x59\xa3\x23\x67\x3b\xa0\xa2\x20\x03\xe4\x2a\xc4\x8e\x1c\xd0\x4a\x70\xd0"[..]); ctx.update(b"\x41\x57\x75\x2d\x3d\x17\x5a\x4b\xc1\x33\x4f\xd4\x2c\x20\x41\x11\x72\x8e\x70\x59\x65\x9d\xce\xdf\x33\x4e\xa7\xce\x30\x37\x87\x98\xd6\x7c\x59\x8a\x0a\xfa\xcc\xa5\xa1\xc5\xfb\xa9\x23\xd5\x4c\x72\xcf\xfc\x98\x87\xdf\x1b\x8d\xf1\x0d\x96\x51\x49\x55\x05\x68\x15\xfd\x2d\xd8\x55\xd3\x2e\x8b\x58\xb6\xfd\xf4\xd4\x57\x15\xf6\x36\x41\x6a\x01\x37\x17\x9f\x7e\xb0\x1d\x78\x6d\xaf\xfa\x92\x4c\xca\xbd\x52\x3b\xb3\x1d\x1b\x5f\x0d\x05\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1c\xab\x43\x63\x5d\x50\x1e\x43\xac\x42\xbe\xee\x26\x37\x55\xb9\xa2\x98\x27\xe2\xa1\x8b\x21\xd7\xbe\x42\xe4\x47"[..]); ctx.update(b"\x2d\xf1\x2d\x8c\x25\x6c\xd1\xa1\x27\xe5\x25\xac\x37\x63\xe3\x0c\x89\x59\x82\xee\xe6\x7a\xb7\xc1\x50\xce\x3d\xea\xe9\x06\xd2\xb9\x11\x0d\x82\x9c\xcf\xdf\x27\x93\x72\x9e\x31\xe4\x78\xe3\xa3\x10\xae\x52\x5e\x05\x99\x71\xa2\x95\x15\xba\xd2\x27\x3c\xee\x77\xad\x89\xad\x88\xd6\x3d\x44\xe9\x84\x02\xc6\x31\x80\xcf\x5e\xb0\x6d\x0b\xe3\xb1\xfa\xf5\xad\xfc\x5c\x43\xa7\x9f\xfc\x09\xa6\xee\x6c\xdd\xf9\xc9\xa0\x39\x42\x1d\x5b\x21\x84\xad"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xee\x60\xf0\xd0\x10\x08\xcf\xac\xe4\x9a\xf2\xee\x57\x80\xcc\xde\xe3\x74\x04\xc3\x76\x42\x00\x8a\x55\xfa\xfa\xf2"[..]); ctx.update(b"\x03\xbe\x69\x40\xe8\x59\xf9\xb0\x72\x66\x0d\xff\x28\xa1\x87\x55\x1c\x24\x25\x48\x1d\xd0\x55\x5d\x2d\xee\x4a\xcc\x36\x16\x4f\x84\xf8\x50\x5b\x6f\x46\x7a\xe6\xf7\x72\xea\xfc\xc9\x06\x54\x90\xd9\xb4\xed\x12\xa6\x90\xd0\x44\xbf\x7d\xa1\x49\x86\xe5\x71\xfe\x34\xae\xe2\x8e\x1d\x69\x8c\x41\x36\xcc\x9f\x95\xd4\x62\xc9\x90\xb6\x81\x5a\x54\x46\x7d\xa6\xf4\x1c\x1b\xaa\x86\xc4\x48\xf3\x7a\xc1\x0b\xbc\x2a\xd1\xb9\x57\xb1\x73\x68\xce\x01\xa7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\xaa\x80\xd4\xc9\x25\x88\x9b\x58\xef\xf4\x1b\x89\x68\x2b\x92\xbe\xa6\x0c\x1c\x39\x95\x04\x3d\xac\x31\x2d\x2d"[..]); ctx.update(b"\x0b\xaf\x1a\xc2\x43\xc1\xf3\x4c\xa5\xe0\x0a\xed\x4d\x86\x7f\x96\x7b\xc2\xb9\x63\xe9\x39\x56\xc3\x5b\x6b\x68\xda\x77\x37\xde\x23\xd7\xa1\x40\x5a\x5d\xd4\xa0\x99\xc6\x63\xcd\xc1\x82\xd4\xc9\x1b\xc3\x5f\x7d\x3f\xd5\xf3\xac\x35\xad\x7a\x26\xdb\xc4\x5e\x3e\x86\x26\x4c\x7d\xec\xc5\x38\x98\x42\x14\xa1\xa0\xa1\xd1\x16\x79\xae\x22\xf9\x8d\x7a\xe4\x83\xc1\xa7\x40\x08\xa9\xcd\x7f\x7c\xf7\x1b\x1f\x37\x3a\x42\x26\xf5\xc5\x8e\xb6\x21\xec\x56\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf1\x2f\x7a\x1c\x5c\x1c\x38\x3a\x2a\x5f\xff\x89\x32\xe2\xae\x9d\xc3\x42\xb3\x76\x52\xd4\x73\x56\xff\xc1\xcb\x37"[..]); ctx.update(b"\x3c\x29\xa8\xc8\x3e\x48\x19\x4a\x7b\x87\xb6\x9e\x37\x6a\x06\x06\x3d\xe2\x44\x9b\xd1\x71\xfa\x91\xe5\x8e\xd2\xbc\x90\x4b\xa8\x53\xbb\x35\xe3\xf5\x1e\x7c\x06\xe9\x6b\x54\x82\xaa\xc8\x9a\xcf\xa3\x83\xbb\xba\x37\x01\xd2\x01\x04\xf8\x10\x1d\x69\xde\x61\x5f\x45\xa2\x4c\x3e\x02\x99\x1b\xf0\xd3\xbb\x3d\x37\x39\x0f\xe8\x7e\xcc\x64\x03\x24\x38\x42\x42\x18\x86\x20\x93\xa6\x9d\xd7\xb9\x90\x08\x57\x36\x61\xf9\x99\x6f\xfe\x8e\xd5\x0b\x7e\x54\xf4\x9c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x6b\x29\xc3\xcb\xfd\x1d\x2e\xad\xf7\xc7\x91\x51\x3b\x27\xf2\x1c\x93\x4d\xe6\x37\x8e\xf7\x48\xb7\x79\xb7\x1d"[..]); ctx.update(b"\x68\xa3\xc0\x6e\x07\x40\xb5\x69\xc7\x2e\xa6\xa9\x0d\x8b\x45\xe8\x3c\x7c\x35\x0d\x2b\xcf\x1c\xf6\xd6\xdf\xfa\x75\x53\xb8\xb9\x98\x08\x7c\x05\x2e\x1c\x06\x5d\x86\x2b\xcc\x6a\x7a\x3e\x0a\x90\xac\xfa\x1d\xc4\x10\x17\x2c\x9d\xab\x14\x0e\xad\x9a\x29\x68\x11\x55\x7e\x16\x47\x35\x9a\xcd\x40\x34\x1e\xfe\xb6\xf5\xb3\xfd\xc0\x04\x41\x62\xa4\x5e\x62\xb0\xec\x34\x16\x34\xbc\xec\xb8\x30\x62\x69\x30\x39\x2f\x8c\x6b\xde\x85\xfa\x08\x8a\x32\x20\x54\xac\xfc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\xa6\x91\x52\x43\x98\xa5\x74\x6d\xf2\x8a\xc0\x83\xf1\x58\x61\x75\x0e\x0c\xdd\x1f\xd5\xe5\xf5\x7c\x98\x2c\x18"[..]); ctx.update(b"\xd4\xf7\x57\xd1\xc3\x3b\x9c\x0b\x38\xb4\xe9\x3e\x8e\x24\x83\xec\x51\xb4\x86\x12\x99\xf1\xd6\x50\x96\x14\x57\x49\x6d\x86\x61\x4d\x42\xa3\x6e\x36\x96\xbf\x16\x8f\xd4\x66\x3e\xfc\x26\xe8\x8c\xd5\x8d\x15\x1e\x15\x31\x46\x7b\x73\xf6\x9d\xc9\xce\x4f\x8d\x41\xce\x57\x9c\xe1\xc9\x1e\x67\x60\xe3\x40\xe7\x67\x7a\xbd\xf4\xfe\xc1\x04\x07\x45\xaa\x51\x44\x64\x0a\x39\xb8\xc4\xf8\x84\xdf\x80\x75\x3a\x69\x16\x53\x00\x3d\x63\x4f\xa5\xbf\xce\x81\xf9\x4e\xc3\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbe\x11\x25\x93\x77\xf0\x98\x21\xd9\xdc\x35\x85\x92\xb6\x56\x5d\x8e\xf2\xb4\x14\xdf\xaa\x7d\xb5\x60\x9f\xb7\x51"[..]); ctx.update(b"\xec\xd9\xe9\x5f\x7c\x5e\xfc\x83\x36\xf8\x0f\xe6\x7e\x11\x36\x57\xb3\x14\x82\xba\xfc\x22\xdc\x5b\x45\x07\x34\x82\x84\x6c\xdc\x48\x41\x4d\x2e\xa8\x55\xae\x75\xd9\xf2\x8a\x0b\xdb\xe3\x0d\xbe\x51\x15\x03\x78\x8e\x57\x8f\x20\xf2\x5e\x20\xbb\x77\x0c\xa1\xd7\x87\xf2\xf0\x29\x11\x13\x92\x75\xdb\xea\xa5\xae\x1a\xaf\x15\x5f\x40\xd7\x13\x49\x15\xda\xc3\x4d\x09\x38\x35\x8d\xc8\xbe\x97\xcf\x10\x05\xa9\x22\xbf\x3d\x71\xc3\x31\x28\x2f\x41\xc8\x69\x93\xe0\xcc\xff"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\x50\xad\x0f\x91\x39\x8b\x39\x96\x5b\x18\x59\xea\x91\x8c\x53\x12\x12\xfa\xce\x1e\x51\xd4\xd3\x90\xf0\x94\xe1"[..]); ctx.update(b"\x83\x4d\xdd\x8f\xc7\xea\x0c\x33\x85\xef\x82\x80\xd3\xa7\xb2\x2d\x59\xad\x17\xd7\x10\xa5\x1a\x54\x4a\x29\x35\x44\xf3\x06\x59\xe8\x16\xa9\x8d\x38\xa2\xd4\xd9\x2f\x6f\x96\x62\x6a\x7c\x79\xd6\xf1\x7b\xfd\x0a\x55\x8f\x45\xe2\xfb\x54\x11\x72\xb7\x20\xec\x62\x9c\x88\xa7\x97\x13\x26\x05\x0f\x2b\x9a\xb8\x0d\x30\xcf\x8c\x77\x7f\x80\xe3\x7c\x98\xfa\x61\x79\x75\x23\xe8\x1e\x1b\xbb\xc7\xcd\x6e\xe2\x2e\x42\x49\xda\xe6\x79\xce\x0f\x3e\xcc\xfb\x54\x49\x5d\x7e\x70\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xef\x21\xee\x8d\x56\x8c\x00\x9e\xaa\x8d\x1e\xa7\x70\x96\x8c\xb7\x18\xc4\xd5\x6e\x7b\x2d\x96\x6b\xfc\xbb\xf3\x98"[..]); ctx.update(b"\x6f\xf6\x11\x20\x83\x95\xd8\x15\x00\x50\x5d\xae\x05\x0f\xf0\xc2\x9c\x0a\xfd\xe2\xa8\xe8\x9c\x96\x19\x28\x63\xea\x62\xc1\x7e\x29\x2d\x05\x02\xe9\x4d\xcb\x7f\x47\xf4\xcd\xd5\x74\x26\x4f\x48\x71\x6d\x02\xd6\x16\xcf\x27\xc7\x59\xfd\xf7\x87\xcd\xcd\x43\xb1\x69\xea\x58\x6c\x8b\xca\x25\xfa\x3c\xe1\xa0\x8e\xb6\x15\x65\x5e\x24\x71\xa0\xfa\xa8\x1d\x2e\xdc\xa2\x8e\xff\x40\x30\xfa\xbf\x36\xf1\x0f\xb5\xf5\x0f\xe4\xeb\x72\x7c\x30\x8f\x31\x7b\xba\x99\x5b\x63\x10\xae\x12"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\x29\xf2\xc0\xd5\x64\x93\x5b\x8d\x31\xb7\xd0\x07\xf5\x81\x38\x48\x9d\x14\x09\x17\xa2\x8e\xe8\x5d\x43\xb6\xf2"[..]); ctx.update(b"\xf9\x77\xea\x38\x07\x63\x28\xbb\x0e\xe2\x29\x7c\xbe\x3b\x2a\x97\x55\xfe\x8b\xb9\x5a\xe7\x26\x29\x8e\x04\xdf\x05\x20\x1a\x7c\xcf\x20\x46\xb8\x28\x36\xe0\x92\xda\x94\xa4\xeb\x1c\x29\x14\x50\x12\x17\x18\x15\x94\x68\xe8\xa3\x30\xfc\x2b\x12\x72\xc6\x61\xfb\x62\x39\x7e\x87\x4f\xfc\xd7\xcc\xcb\xe5\x42\x5a\xf7\x25\x79\x10\x01\xc0\xc0\x35\xea\x41\xc8\xc4\x8d\xab\xd2\x06\xdd\xb2\x17\x66\x6e\x2b\x68\x82\x37\xc2\x12\x7e\x96\xeb\x04\x9d\x94\x1b\x34\x12\x6b\x37\x3e\x13\x45"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x15\x18\x0d\xf5\x55\x43\x87\x33\x7f\x04\xde\x2f\x37\xa1\x6b\x28\x12\x5a\xdb\xd0\x2b\x6f\xa6\xcf\xdb\x24\x19\x5d"[..]); ctx.update(b"\x22\xa8\xfb\x43\xd5\x4f\xff\x82\x74\x9c\xdc\xe9\x8a\xbe\x8a\xda\xfc\xd4\x43\xff\xe1\x6b\xf0\xe9\x93\x41\xe1\xf7\x06\x4f\xc0\x7a\x59\x07\xc8\x16\xab\xdb\x32\x6c\x30\xfe\xf0\xf5\x84\x6e\x9e\x31\x3f\x32\xb6\x02\xc9\xe0\x03\x52\x70\x63\x58\xfc\xb7\xfb\x81\xea\xf1\x85\x7a\x7b\x0f\xfd\xdf\x27\xb7\x41\xa4\x65\x96\x18\x06\xcc\xf6\x72\xc1\x79\x93\xf2\x84\xb2\xaa\xa9\xa2\xc8\x54\x25\x0a\x42\x12\xaa\x79\x37\xa9\xbf\xee\xfc\x30\xec\x5f\x00\x67\xc3\xaa\xf3\x4a\x1d\xce\x2e\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\x1f\xcb\xbb\x2f\xa0\x31\x09\xf9\x52\xa5\x6e\x16\x86\x7c\x70\x90\x45\x52\xeb\x58\x0a\x66\x59\x31\x4b\xd5\xfe"[..]); ctx.update(b"\x68\x72\x76\x36\xff\x38\xc0\xba\x89\x99\xdd\xe3\xcb\xd9\x50\x39\x00\xd5\xcc\xb0\x1d\x3c\x9b\x79\x59\xfb\x41\x1e\xed\xf9\x5c\xce\x18\x05\xce\xf6\x67\x0d\x1e\x11\x33\x90\x1c\xc0\x6b\x55\xc4\x1d\x94\x5e\x65\x4c\x0d\x18\x03\x54\x98\xd4\xf9\x2d\x16\x7a\xe2\x1b\x92\x7c\xba\x3a\x81\x0a\x41\x59\x48\x85\xa0\x0b\xff\x35\x4f\xfc\x75\x3e\x36\x82\x74\xd0\x13\x74\x46\x9f\x1b\x3f\x77\x93\xe4\x36\xdd\xc0\x82\x2a\xd6\x98\xf1\x3b\xd1\x5f\xb3\xed\x10\xe0\xb9\x7f\xac\x5f\x87\x78\xd9\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\xc7\x1b\xd0\x9e\xbf\x5d\x09\x15\x53\x47\xc4\xf4\x76\xb8\xf9\xc5\xae\xd4\x57\x95\x73\x21\x18\x87\xab\x60\x84"[..]); ctx.update(b"\x16\x7c\xb7\x72\xf0\x96\xb2\xe3\xb1\x59\x9c\xce\x34\x40\xd1\xaf\x57\xc5\xb7\xdf\x5d\x2f\x46\x0b\x91\xac\xc7\xe5\x2c\x9f\xdb\x19\x79\x3b\xc0\x83\x37\x51\xd0\x9f\x3f\x66\x4a\x41\x67\x09\x55\x86\xa5\x64\x42\x0a\x78\x10\x12\x5b\x83\x2e\x38\xae\x7b\xb3\xa0\xd1\x44\x03\xef\x61\x57\xc2\x0d\x3d\x67\xe6\xe1\x3a\x44\x11\x5b\x19\xff\x1f\xb8\xb6\x4f\xfa\x01\x81\x33\xb6\xd5\x32\xd9\xda\x69\xb9\xbf\xfb\xcd\x74\x18\x90\x71\xa5\x71\x01\xe7\x23\x94\x01\xea\x50\xad\x1e\xa0\x4a\xab\x96\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\x6c\xb2\xdf\xeb\x8b\x96\x1e\x6e\x84\xd7\x2e\x05\x11\x1e\x04\xd6\x2e\x3f\x93\xa0\x55\x16\x4b\x13\x5b\x90\x72"[..]); ctx.update(b"\xb8\x8f\xf7\x28\xc8\xf8\x29\x84\x1a\x14\xe5\x61\x94\xbb\xf2\x78\xd6\x9f\x88\x31\x7a\x81\xb4\x74\x9a\xa5\xfd\xbc\x93\x83\x48\x6e\x09\xbf\xf9\x6a\x2c\x5b\x5b\xdf\x39\x2c\x42\x63\x43\x8a\xef\x43\x33\x4c\x33\x17\x0e\xf4\xd8\x9a\x76\x26\x3c\xb9\x74\x5f\x3f\xea\x74\xe3\x5f\xbf\x91\xf7\x22\xbb\x13\x51\xb5\x64\x36\xcd\xd2\x99\x2e\x61\xe6\x26\x67\x53\x74\x96\x11\xa9\xb4\x49\xdc\xe2\x81\xc6\x00\xe3\x72\x51\x81\x34\x46\xc1\xb1\x6c\x85\x8c\xf6\xea\x64\x24\xcd\xc6\xe9\x86\x0f\x07\x51\x0f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\x91\xcd\xfe\x48\x6a\x58\x2e\x83\x40\xbd\x8b\x89\x39\x96\xd7\xa4\xe5\x47\xe3\xbf\x50\x55\x19\x02\xe7\x22\xf2"[..]); ctx.update(b"\x52\x0f\x27\xa4\xd0\x96\xd4\x19\x3d\x2b\xc0\x98\x3c\xf8\x3b\xbb\x50\x84\x84\x5b\x41\x84\x48\x00\xc1\xf5\x66\x9b\x4f\x67\xf5\x78\x5c\x9c\x88\x6e\xac\x51\xb0\x59\x00\x5c\xc3\xca\xf2\xf7\xdc\xfc\x20\x5c\x23\x0a\x8c\x92\x4f\x60\x43\x86\x69\x6f\x3d\x5d\xd2\xa6\x85\x09\x87\x9d\x99\x1a\xa4\x93\x14\xd7\x27\x1a\x8a\x8e\xf7\x11\xb4\x28\x25\xd3\xcd\x00\x71\xae\x3b\xf6\x10\x97\x72\xbf\xac\x1b\x16\x7f\xad\x99\x5f\x99\xb7\xaf\xc2\xc5\x73\xf2\xce\x64\x93\xe2\x54\x11\x10\x1d\xca\x79\xb6\xd2\xf1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\x6e\xa5\x09\x97\x59\x6f\x71\xed\xc9\x4e\xd9\x6e\x2b\x68\x66\x28\x64\x0f\x94\xa3\xc6\x4a\xde\xf0\x5c\x2b\x63"[..]); ctx.update(b"\x75\xc2\x3e\x55\x61\x78\xf0\x04\x40\x53\x3b\xcd\x25\x25\x79\x34\xd0\xc6\xf5\xe6\x8a\x64\xf1\xaa\x51\x1b\xee\x94\x35\xc5\x27\x7b\x02\x14\x5f\xae\x1f\xde\xdc\xe3\xb6\xb7\xb4\x70\x15\xc5\x47\xbe\x55\xd0\x0d\xfa\x39\x99\x92\x0d\x58\x6d\xbe\xcf\x7f\xf9\x5a\x77\x51\x60\xd0\x57\x30\x8b\x32\xc6\x61\xc1\x7e\x5d\x6a\x77\x21\x66\xbf\x69\xb9\x91\x9e\xe9\x1f\xe9\x38\x77\xa5\x07\x11\x93\x9c\x85\xa9\xcf\x1a\xb6\x5c\x28\xfa\x94\x87\x96\x23\xfa\xec\xe2\x0e\x14\x58\xb8\x82\x13\x83\xfd\xa2\x25\x37\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\x63\x10\x28\xa8\xe0\xec\x4a\xdc\x68\x9c\xab\xba\x8b\xf6\x81\xd1\x1e\x2e\x2a\x50\x59\xf2\x93\xf7\xef\x5b\xe3"[..]); ctx.update(b"\xd2\x33\x73\xb9\x40\x50\x24\xd0\xc4\xb1\x7a\xa5\x03\xf7\xe2\xff\x7d\x30\x80\x83\x12\x4e\xd2\xcb\xc4\xd9\x90\xb9\xbe\xe0\xd7\x0b\x96\x35\x87\x2f\xcf\xda\xea\x58\xa2\xb6\x96\xd1\xfd\x8c\x94\x92\xcd\x2e\xc1\x11\x79\xee\x75\x5a\xae\x56\x63\x62\x62\x19\xc0\x98\x13\x48\xa8\xbe\x50\xc9\xbd\xf7\x7b\x06\x11\x21\xcd\xe2\x46\x64\x9a\xf1\xf3\x0b\xd7\xe8\x4a\x93\xd9\x52\xf8\x02\x5f\x85\x4d\x7b\xd3\xd5\x9d\x0e\xcd\x07\xe6\xd4\xd9\x09\xb2\x3c\x7a\xe0\x3f\xa0\x6f\xe1\xde\x1c\x34\x24\x99\x9f\xcc\x36\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x72\x6f\x65\x84\xff\x9e\xa9\x98\xff\x32\x6c\x9f\x73\x29\x1a\xce\x87\x26\xd8\x69\x7e\x7a\xa9\x4f\x1e\xd4\x2f\x7e"[..]); ctx.update(b"\x6f\x05\x7f\x91\x48\x0f\xec\xee\x8a\x7e\x38\x79\xdb\xf8\xc5\x20\x40\xf9\x6f\x59\x29\xc6\xb8\xb6\xae\xa2\x23\xb9\x18\x43\xdd\xeb\xa3\x87\xa2\x28\x82\x64\xdf\x3d\x24\x1d\x14\xb5\xb6\xbc\x7d\xef\xe9\xbc\xf1\x74\xf5\x06\x0a\x88\xde\x1f\x86\xff\xf5\x9f\xed\x52\xa3\xe5\x74\xf2\x62\x09\x22\xdc\x0c\x12\x31\x6e\x58\x69\xb7\x79\xa1\x8e\x86\x97\xea\x0a\x50\xbf\x20\xa5\x0f\x16\x9e\xd8\xa3\x08\xf7\x85\xbd\x98\xef\xe6\xfd\xf4\xca\xc4\x57\x4d\xca\xe9\xbb\xe5\xf3\xd7\xf5\x6a\x11\xba\xd2\x82\xfc\x9c\x84\xa7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\x40\xe5\xc8\x6d\xb3\xd9\xc3\x84\xc2\x2a\x46\xcb\xef\x5f\x8e\x8c\x42\x7b\xb6\xbf\x43\x26\x8e\xdd\x91\x8a\xeb"[..]); ctx.update(b"\x6f\x77\x87\x4d\xca\xd9\x47\x9f\x5b\xca\xc3\x76\x36\x62\xcc\x30\xcb\x99\x82\x3c\x5f\xf4\x69\xdc\xbd\x64\xc0\x28\x28\x6b\x0e\x57\x95\x80\xfd\x3a\x17\xb5\x6b\x09\x9b\x97\xbf\x62\xd5\x55\x79\x8f\x7a\x25\x0e\x08\xb0\xe4\xf2\x38\xc3\xfc\xf6\x84\x19\x8b\xd4\x8a\x68\xc2\x08\xa6\x26\x8b\xe2\xbb\x41\x6e\xda\x30\x11\xb5\x23\x38\x8b\xce\x83\x57\xb7\xf2\x61\x22\x64\x04\x20\x46\x1a\xbc\xab\xcb\x50\x04\x51\x9a\xdf\xa2\xd4\x3d\xb7\x18\xbc\xe7\xd0\xc8\xf1\xb4\x64\x5c\x89\x31\x5c\x65\xdf\x1f\x08\x42\xe5\x74\x12"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\x28\x62\x6c\x63\xc2\x04\x65\xd5\x13\x9d\x1a\xf0\xb9\xce\x17\xe3\x34\xeb\xe1\x0a\x5e\xee\x2c\xaf\xe9\x6c\xb1"[..]); ctx.update(b"\xea\x84\x1b\xd4\x1b\x22\xe4\xc9\x8b\x22\x33\x32\x91\x8e\xb7\x91\xf5\x1d\x19\x78\x54\x07\x85\xf9\xc6\x17\x67\x5d\xbd\x02\x72\x18\x31\xf7\xe7\xfd\xfa\x77\x14\xaf\x7d\x67\x1b\x58\x8a\x64\xf4\x9d\x85\x56\xb5\xd1\xc4\x48\x11\x68\x39\x77\x1f\xaf\x51\xa8\x5d\xbb\x1b\xbf\xf5\x9f\xad\x8e\x3f\xe3\xc4\xeb\x86\x31\xaa\x05\x0f\x50\x5d\xf8\x57\x57\xed\x9e\x9d\x1a\x26\xa8\xa0\xe9\x6f\xee\xaa\x7a\xf2\x04\xcd\x23\xfd\x0e\x6d\x4c\xa8\xd5\xff\x25\xb9\x1a\x0f\x94\xc4\x2a\x88\x72\x97\xb2\x30\xf6\xd5\xd5\x72\x71\xe0\x7c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xff\x33\xc6\x42\x31\xde\xdf\xc2\x47\xe1\x1e\x35\xaa\xf8\x2d\x28\x3a\x9a\xd6\x20\x34\x10\x2e\xe2\xbb\x5d\x46\x09"[..]); ctx.update(b"\x72\x16\xa8\x25\x02\x9d\xa1\xc9\xa9\x32\x8d\x49\x9b\x3f\xf9\x8f\x6e\x18\xb8\xaf\x36\x8e\x2b\x19\xef\xc1\xc0\x12\x1b\x35\xb9\x65\xab\x28\x2f\x55\x23\x23\x56\xd7\xfa\xd0\x02\xfe\x3f\x0b\x6a\xb7\x83\x3b\x2c\xb6\xf2\xe3\x92\xb0\xc3\x74\x14\xcb\xd3\x66\x1e\x53\x8c\x86\x13\xae\x0c\x92\x91\x92\x83\x03\xf7\x75\xdd\x2a\x24\x45\xa2\x7e\x82\x5a\x1a\x35\x44\xa9\xb4\x11\xeb\x3a\xa8\x7d\x0f\xdc\xdc\xd8\x5c\x17\x05\x11\xdb\x62\x0e\x74\x72\x96\xbd\xc3\xaf\xa3\x94\x89\xc1\x81\xf5\xab\xc7\x6a\x8a\x40\x4e\x47\xe4\xa2\x14"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\x40\xd3\x71\x0b\x43\xe7\x98\x99\xe1\x16\x98\x73\x66\xb2\xdd\x36\xb4\x4b\x2f\x39\xe3\x77\xfa\x2d\x4f\xe1\x43"[..]); ctx.update(b"\x44\xa8\x50\x8a\x3c\x39\x76\xd5\x63\xe9\x33\x70\x5b\xe4\xdb\xee\xbc\x72\x63\x04\xb5\x11\x20\x3d\xf7\xc7\xd1\xef\xce\xb6\xe0\x6e\x91\xf1\xe5\x7f\x3d\x8e\x6c\x10\x5d\xfd\xf8\x26\x2d\x98\x48\x16\xfe\x7a\xd8\xf8\xdc\x95\xab\x59\x6f\xff\x48\x30\x1f\x8d\x03\x13\x7b\xa3\x7d\xab\xdc\x4a\x6e\x66\x45\x83\xa2\x6b\x8e\xdc\x42\xd3\xc2\x40\x55\x16\xc5\x13\x86\xc3\x3a\x7f\x28\x75\xa3\x08\x77\x02\xca\x67\x21\xf5\x61\x95\x05\x3f\xe5\x26\x3a\x29\xc8\xd8\x53\x8d\xce\x6c\xe1\x46\xb8\xb4\x3a\xe5\x20\xee\x79\xa5\xa4\x50\xc6\xa2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa2\x74\x3d\x34\x10\x23\xff\x5f\x77\x5d\x90\x18\x5d\x31\x39\xa7\x75\x6b\x0a\x65\xc1\x9e\xe8\x76\xeb\xeb\x92\xae"[..]); ctx.update(b"\xa8\xef\x41\x07\xf4\x1e\xbb\xc5\x79\x9a\x71\x6b\x6b\x50\xe8\x7c\x19\xe9\x76\x04\x2a\xfc\xa7\x70\x26\x82\xe0\xa2\x39\x8b\x42\x45\x34\x30\xd1\x5e\xd5\xc9\xd6\x24\x48\x60\x82\x12\xed\x65\xd3\x3a\x5c\xa2\xbc\xdc\xa7\x72\x80\x37\xdf\x2e\x5f\x9f\xd9\xe9\x74\xd0\x31\x5d\xde\x82\x90\x24\x1e\x3e\x2b\x2c\xc0\x6f\x8c\x65\x3e\xbc\x95\xbc\x21\x95\xc2\x4d\x69\x0c\xae\xd4\x2f\xe7\xd9\x65\x89\xf3\xa8\x5e\xae\x9b\xad\x99\x5a\xb8\x29\xe6\x74\xab\xcf\xb8\xef\xaa\xcb\x1e\xee\x57\x03\xf5\x2b\x97\x9d\x5d\x99\xa1\xc1\x69\x48\x55\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\x11\xa2\x8f\xf4\x65\x13\xd0\xc3\xd6\x3c\xf7\x8a\x9b\x63\x53\x46\x6c\xba\x3b\x92\x6a\x8d\x89\x5e\xe1\x4f\xdd"[..]); ctx.update(b"\xf6\x49\xd8\x01\xb4\x04\x0b\x7b\x51\x52\xf5\x8a\x01\xe7\x85\x2f\x56\x5e\xfc\x77\xb5\xda\xfe\x46\x07\xee\xe9\x53\xb0\xba\x67\x74\xc5\x57\x3f\x1c\x79\x76\x71\x21\xd9\x43\x81\xc3\xba\x90\x13\xeb\xef\x2f\xb8\xb0\xbf\x9f\x08\x1f\x96\xec\xf1\x3c\xfa\xd0\x4e\x44\xc1\x1e\xbb\x35\x81\x60\xa8\x90\x49\xbf\xad\x5e\x8e\x24\x1d\x71\x68\x9d\xde\xec\xff\x02\x78\x06\x3f\xd8\x6b\x0a\xd4\x75\xc6\xa2\x52\x65\xf5\x56\xb3\x0d\xdb\x50\x07\x8e\x21\x62\x67\xed\xcd\x4a\x2b\x70\x16\x34\x5d\x4b\x76\x80\x6d\x7b\x02\xc6\x25\xf3\xf7\x17\xe0\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb9\x4d\xeb\xad\xc8\x33\xd5\x70\x6c\xd4\x73\x6b\xb1\xdc\x75\x03\x98\x27\x83\x2a\xe4\x08\x85\x9e\x2e\x6a\x69\x41"[..]); ctx.update(b"\xeb\x71\xb4\x5a\x49\x4e\x76\x46\x2e\xdf\x41\xa9\xfd\xcb\xb3\xf4\x6f\xb8\x63\xb9\xe2\x59\xd0\xc8\xf4\xa7\x98\x98\x51\x6e\xeb\xe8\xc9\x0c\x3e\xa5\xa6\x75\x44\x0f\x3c\x7b\x1a\x18\xc1\x4d\xc2\x0c\x5f\x3d\xd2\x77\x88\xc6\x6d\x44\x8a\xcd\x73\x22\x63\x27\xf5\x2c\xd6\x5c\xec\xc8\xbe\xaa\x2a\xcf\xa3\x4d\x90\xef\x8b\xfe\x82\x4e\x12\xba\x98\x70\xbd\xc4\x96\x5b\x8c\xed\x9f\xf9\xce\x13\xa5\xbd\x39\xe8\x24\x89\x3a\xf4\x10\xd0\x8a\xde\x0c\xf8\x02\xe7\xdc\x02\xb0\xb7\x1d\x6c\x2a\x5c\x33\x56\x22\x90\x84\xe5\x3b\x3a\xe4\xe5\x1b\x38\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\xbe\xc0\x5e\xe1\xfb\x5f\x5c\xd1\x10\x6e\xd7\x38\x48\x50\x05\x9c\xdc\xda\x47\x4b\xa7\xce\xc0\x40\x7a\x27\x2b"[..]); ctx.update(b"\x4e\xca\x0c\x51\xd3\x08\x29\xb9\xa1\xd2\x71\x2d\xa1\xfa\xc3\x1f\x52\x94\x2d\x77\xc9\xf2\x0c\x2b\xf6\xd3\x75\x10\x28\xd7\xd4\xf0\xd3\x36\xd3\xdc\x92\xb2\x7e\xc3\x68\xca\xa4\x44\x4b\x31\x80\xc1\xe3\x7e\x98\xb5\x8f\x25\xe6\x47\xa9\xa6\x36\x1f\x0b\x04\xcf\x78\xd1\x79\x55\x76\x61\x68\xee\xba\xa9\x93\xa4\x35\xa8\x8e\x0b\x39\x30\x74\x23\xd6\xea\xd8\x7f\x63\x9a\xfe\xa7\x5b\xa4\x4b\xbc\x6b\xd0\xfb\x5a\xc8\x4a\x12\xc2\xc6\xed\x95\x39\xa7\xc0\xf9\xab\xb0\xc1\xdc\x94\x83\xe2\xf3\x21\xa8\x52\x44\x92\x6d\xfd\x95\xe2\xf0\x56\x24\xaa\x7a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfe\x31\x3e\xb7\x4f\x95\x5c\x0c\xbb\x1c\x44\x6d\xd4\xff\x85\x3f\x32\xb3\x23\x2d\x93\xfa\xba\x7d\xb6\xd1\xfa\xb8"[..]); ctx.update(b"\x97\x78\x4d\x14\xdb\x62\xa7\xf9\x8f\x5a\xc3\xdf\x74\x2e\x01\x34\x89\xec\x0b\x87\x77\xb0\x5e\xf8\x2b\xba\x06\xed\xc5\xc3\xa8\x07\xb1\x91\xc6\x55\x13\xca\x3f\xc7\x69\x06\x15\xe5\x6c\x27\x73\xc0\x36\xed\xef\x29\xaa\xc5\x0c\x22\x11\xe2\x03\x92\x01\x8f\xc3\x3d\x83\xc4\x36\xf2\x74\xf7\xc6\x06\x2c\x34\x20\x02\x5e\x70\x37\x99\x3f\x1b\x8c\xdd\xeb\xf4\xae\xb2\x04\x21\xfc\x82\x9c\x7f\xb2\x32\x55\x37\x24\x55\xc6\x92\x44\xa0\x21\x0e\x6a\x9e\x13\xb1\x55\xa5\xec\x9d\x6d\x09\x00\xe5\x4a\x8f\x4d\x9f\x7a\x25\x5e\x3a\x7f\xd0\x6f\x12\x18\xe5\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x55\x04\xf3\x91\x31\x77\x35\x50\xb6\xf4\x59\xf3\x3a\x5b\x57\xa2\xce\x60\xce\x8b\xb7\x8c\x57\x4f\xef\x83\xdc\xf7"[..]); ctx.update(b"\x1e\xe9\x04\x73\x51\xe2\xa1\x3e\x4a\x2d\x5a\x82\x6e\x30\x4f\xef\x82\x24\x1f\xba\xb5\x10\x08\x35\xe1\xf8\x50\xa2\x0e\x51\xe3\x49\x38\xb9\x3d\xc8\x52\xe5\x8a\xab\x8a\xdb\x0c\x3c\xcf\x61\xbe\x9c\x90\xb5\x37\x13\xc7\x7e\xd0\xa5\x37\x03\x09\xe6\xf1\x9b\x29\x0f\x1d\x64\x25\x50\xf7\x38\xc3\x68\x18\xdd\xff\x74\xf7\x7c\xae\x04\xaf\x55\x61\x74\x03\xb0\x8c\x7a\x9f\x17\xe8\xfb\xa0\xc2\x15\x23\x57\x53\x84\xb4\x4a\xc4\x94\x9e\x7c\x9d\xfb\xd1\xef\x6a\x68\x4f\x66\x6c\x67\x85\x6f\x8f\x84\xdb\xa1\x9c\xb3\x8a\x23\xb0\xef\xad\x6e\xed\x22\x9c\x53\x6f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb8\xf2\x53\x51\x2d\xab\xf9\xd8\x9d\x20\x80\x83\x0f\x23\xda\x58\x93\xb0\xf8\x7e\xdc\x0b\xd6\x24\xea\x76\x7f\x14"[..]); ctx.update(b"\x1f\x36\x3d\x2f\x7a\xa8\x9e\x2b\x6c\x5e\x17\x2f\x53\x0d\x1a\x35\x53\x1d\x00\x83\xa5\xac\xfc\xd2\x32\xd6\x4d\xb0\x61\x34\xb8\x23\x2d\xa2\x36\x8f\x7a\x46\xea\xd9\xa9\xce\x55\xcd\x6a\xf8\xcd\xbd\xd1\x58\x2b\x6b\xad\x56\xc5\x2a\x15\x76\x9c\x3f\x43\xdc\xd6\x8d\xa6\x0f\x6e\x72\x32\xfd\x2a\xec\xfb\x3f\xcd\x00\x02\x9f\x8e\x5c\x4e\xd7\xca\x3b\x3f\x9c\xf6\x89\x20\xdb\xd7\x47\xfb\x43\xf5\x32\xb1\x03\x4d\x9f\x49\xd5\x46\xaa\x89\x3b\xe6\x8f\xc3\x08\x46\x58\xf2\x23\x43\xb9\x06\x88\x77\x38\x7b\x8f\x68\x90\x30\x71\xfe\x58\x77\x08\x3b\xe0\x68\xd6\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe5\x9a\x19\x68\x6d\xf3\x6b\xf5\xfe\x79\x8a\x95\x65\x72\x2b\x8e\x0b\xdd\x9f\x8e\xed\xbb\xb4\xa3\x4a\x9c\xa7\xab"[..]); ctx.update(b"\xec\xf5\xd9\xe2\x9c\x1c\x04\xc1\x1a\x95\x03\xcc\x22\x3d\x0c\xee\x48\x66\xfa\x26\xdf\x2b\x4f\x7c\x1a\x01\x79\x39\x71\x8f\x54\x57\x46\xc0\xf1\x37\xc9\x16\x96\x92\x19\x41\x05\xb2\xac\xf0\x01\xe2\xf0\xe7\x0f\x23\x32\x51\x7a\x20\xc0\x58\x99\x64\x4a\xf4\x54\xcb\x8e\x00\xe5\x36\x35\x93\xdc\x83\xf7\x8d\x66\xbd\x06\x70\xce\x8f\xaa\x72\x44\xff\x28\xd0\xde\x59\xe9\x64\xdc\x68\xd8\x7a\x30\xec\x0c\xe0\x3e\x49\xa7\x3c\xe0\x7d\xfe\xa2\xad\x54\xfa\x66\x7b\xdf\xbe\x2f\x22\x22\x89\x4d\x83\x0d\xde\x4d\xc9\xae\xe3\xca\xef\xa4\x08\x86\x83\xd7\xe8\xb9\xa9\x66"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x86\xeb\x94\xf1\x5d\xf2\x08\xbe\x12\x29\x12\xd4\xed\xf0\x25\x61\x48\x22\x78\xa9\xf8\x47\xdd\xc9\x1c\x9b\xd2"[..]); ctx.update(b"\x9f\x44\x35\x76\x64\xb5\xe3\xa9\x58\x78\x06\x41\xcc\xa5\x20\x49\xf3\xb4\x9f\x07\x48\x4b\x5f\x76\x2a\x55\x71\xf7\xc9\x54\x1b\x43\x46\xf8\x1f\xa4\x16\xf0\x40\x65\xa8\x00\x03\x86\x47\x54\xb3\xb5\x41\x14\xa7\x7a\x49\x38\xc8\xb2\x1a\x9e\x4d\x3e\x5d\x59\xc9\xfc\xcd\x4d\x68\xf6\x99\xf9\x75\xda\x09\x93\x20\xab\x65\x5a\x7f\xb5\x13\x28\xd2\xc6\xff\x46\x0b\x9b\x40\x85\x8e\x99\xf8\x8a\x35\xbe\x7b\x6a\x97\xd6\xb4\x77\x8a\xf2\xc5\x59\xe6\x16\xee\x60\x8c\x32\xb0\x18\xa7\x53\x32\x1e\x32\x1b\xe3\x33\xbb\x6f\x61\x8f\x66\x6f\x9a\x77\x34\xab\x31\x12\x85\x93\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\x39\xf7\x55\xee\xe8\x4e\x15\xc5\x86\xb5\x2e\x29\xa4\x1d\xdc\x64\x0a\xc4\x32\xcf\x31\x37\x06\x80\x98\x7a\x44"[..]); ctx.update(b"\xc1\xaa\x12\x66\xf2\x23\xc1\x48\xbf\xa3\xd0\xab\x29\xf2\x78\x33\x4d\x8f\xcb\xfb\xf0\xf4\xeb\xef\x5c\x1b\x7a\x76\x6b\x41\x51\x55\xe1\xea\x75\xd0\xfe\x25\x46\x11\x54\x11\xfa\xce\xd7\xa0\x4a\x27\x33\x9b\x6b\xcd\x62\xe7\x40\x69\x7d\x06\xce\x3c\xd2\xe0\xf0\x02\x38\xc4\x4c\x1d\x9f\xaa\x85\xef\xeb\xbb\xb3\x88\x03\x13\x10\x81\x24\xc5\xf3\x27\x7c\x1f\x03\xdd\xf4\x30\xa4\xbb\x4d\x88\xb6\x7b\x6e\x3f\x7f\x96\xfc\x39\xe5\xaa\x2c\xa7\xe1\x1f\xd5\xd1\x30\x0a\xca\x14\x4c\x51\x66\x26\x9a\x11\x68\xa2\xe5\x3c\x01\xc0\x0b\x87\x2c\x63\xf6\x83\x3e\x5a\xce\x09\xbe\xdf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x43\x9e\x3c\x7a\x0d\x65\x5a\x30\xa9\x74\x9a\xfd\xef\xb7\xe0\x48\x81\x43\x35\x84\x9d\xf7\x6d\x52\x6c\x28\x77\x27"[..]); ctx.update(b"\x0a\x36\x7d\x37\x89\x82\x7c\xcd\x4b\xef\x5f\xe8\xeb\x78\xc2\x05\x03\x24\x1f\x07\xfb\x8c\x41\xd8\x1e\x97\xfb\x53\xf3\x89\x19\x62\xca\x3c\x97\x63\x95\xac\x11\xd1\xf9\xba\x7b\x20\xa5\x29\x12\xe8\xe3\xed\x92\x46\x6c\xa5\xaa\x80\x81\x66\xad\xe7\x37\xba\x8a\x02\x13\xe8\xfe\xe8\xd6\x76\x08\xee\x9a\xed\x9e\x82\x1e\xdc\x9e\x57\x5f\x1f\x07\xc3\x68\x61\x69\x65\x6a\xe0\x9a\x0a\x0f\x70\xab\xd1\x0c\xc3\x1a\x8e\xf6\xe7\x49\x6d\x56\x10\x2f\xd8\xff\x98\x4e\x9a\x9f\x44\xe5\x44\x95\xc9\x66\xcf\x02\x8f\x2a\x84\x23\xb4\x64\x19\xde\x54\x54\x1d\x9a\x08\xbd\x96\x54\xac\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x40\x31\x80\x36\xa5\x95\x63\x0e\x41\x35\xf1\x07\x03\xbe\x1d\x75\x9a\x6c\x7e\x51\x46\xe0\xfc\x82\xab\xeb\xa1\x84"[..]); ctx.update(b"\x8a\x05\xb0\x0a\xe2\xd5\xf6\x52\xf0\x2f\x98\xa1\xb0\x35\x00\x3f\x8f\xa7\xba\x1b\x17\xfc\x37\x78\xcd\xb1\xca\xe3\x5a\xe1\xf7\x68\xea\x16\xed\x05\xd2\x5f\x51\x5f\x75\xa2\x3d\xb4\x68\x34\x89\x11\xd4\xa7\x49\xc5\x1c\xe3\x96\x15\xc0\x78\x92\x31\x82\x33\xa6\x67\xc7\xf0\x0e\x97\x3f\xae\x98\xe7\xc8\xe9\xa8\xb7\x90\x24\x80\xd8\x7a\xc5\xbe\xf8\xc4\x25\x26\x61\xe6\xe8\xa2\xe4\xbd\x8a\x87\x0f\xe8\x3b\x1a\xa7\x73\xed\x53\x52\xb2\xab\xe1\x93\x70\x2c\x6d\xfb\x4a\xa8\x23\x9e\x55\xea\x6f\xc5\x07\xa7\x04\xe2\x54\x0e\x23\xc9\x17\xa0\x1a\x1c\xb4\x42\x0b\x07\xfb\x90\xee\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9a\x26\xf0\x54\xe5\x7a\xea\x14\x24\x2d\x78\x01\xf3\xd6\x1d\xdc\xa1\x52\x3b\x73\x8f\xc2\x6f\xec\xfa\x5d\x9a\x6a"[..]); ctx.update(b"\xba\x64\x42\xc6\xd2\x13\x92\x01\xdf\xef\x32\xc1\xff\xb0\xce\x92\xdd\x64\x09\x1b\xd5\x07\xc2\x50\x59\x53\x95\xe9\x93\xd9\xa5\x12\x4b\x51\x99\x64\x0c\x2f\xe5\x14\x82\x77\x4b\x6a\x27\xd1\xa1\x75\x1f\xe0\xd4\xfe\x5f\xd0\x2d\xba\x15\x2e\xd3\xc3\x44\xfd\x92\x49\xaf\x06\xda\x85\xf9\x6f\x0b\xef\x0a\x8f\xef\xb1\xb5\x01\x88\x5b\x97\xf7\x0d\xd8\x42\xd1\x2f\xa1\x9b\xef\xa0\x30\x80\xc3\xd6\xb8\xae\x2a\x0d\x13\xe2\xfc\x8b\xfc\x3f\xe1\x27\x7e\xf0\x67\x0c\xac\x0e\x52\xbb\x93\xc4\x34\x4f\x6d\xb1\x3d\x05\x18\x8d\x53\xfb\xc6\x10\x65\x38\xf5\x0f\xfd\xed\xa2\xe9\x15\xfa\xb9\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\x47\x0d\xa5\x84\x76\xbc\xb8\x94\x50\xc5\x21\xfc\x39\x6c\x6d\xc5\x1b\x9f\xb6\x46\x5c\x97\x9a\xba\x5f\x8e\xb4"[..]); ctx.update(b"\x96\xfd\xb7\x6f\x83\xbf\x12\xb3\xf4\xf3\x22\xbf\x61\x3f\xc3\x8b\x2c\x8e\x06\x78\x85\x62\x30\x41\x8b\x6b\x06\x2f\xb3\x58\x48\x8d\x6e\xed\x7c\x5c\x06\x56\xec\x48\xc9\xbb\xf2\xda\x6a\x14\x73\xee\xa4\x3f\xaa\x68\x20\x4f\x27\x23\x99\x28\x17\x2a\x3e\x49\xc5\x2b\x58\xe8\x61\x28\x2c\x44\x01\x70\x23\x37\xe5\xce\x28\x0a\xff\x00\x52\x8e\xb2\x6a\xc3\x68\xdb\x0c\xd0\xad\x0e\xb2\x62\xaf\x22\x6a\x9b\x16\xef\x3b\xbd\x32\x56\x14\x48\x8f\x82\x03\x63\xca\x6e\xa7\x7d\xa4\xa7\xe8\x34\x55\x54\xe5\x76\x23\x73\x2e\xe6\x32\x65\x34\x81\x9e\xad\xfe\x81\xc7\xf5\x1d\x81\xec\x51\xe1\xe3\xfc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbe\x92\xd4\xa6\x94\x6d\xe0\xe9\x3d\x5b\xbe\x42\x06\x51\xa8\xbe\xfb\x97\xcb\xdb\x5d\x63\xb2\x2a\xae\xcf\x45\x3d"[..]); ctx.update(b"\x0e\xef\x94\x7f\x1e\x4f\x01\xcd\xb5\x48\x1c\xa6\xea\xa2\x5f\x2c\xac\xa4\xc4\x01\x61\x28\x88\xfe\xce\xf5\x2e\x28\x37\x48\xc8\xdf\xc7\xb4\x72\x59\x32\x2c\x1f\x4f\x98\x5f\x98\xf6\xad\x44\xc1\x31\x17\xf5\x1e\x05\x17\xc0\x97\x4d\x6c\x7b\x78\xaf\x74\x19\xbc\xce\x95\x7b\x8b\xc1\xdb\x88\x01\xc5\xe2\x80\x31\x2e\xf7\x8d\x6a\xa4\x7a\x9c\xb9\x8b\x86\x6a\xae\xc3\xd5\xe2\x63\x92\xdd\xa6\xbb\xde\x3f\xec\xe8\xa0\x62\x8b\x30\x95\x5b\x55\xf0\x37\x11\xa8\xe1\xeb\x9e\x40\x9a\x7c\xf8\x4f\x56\xc8\xd0\xd0\xf8\xb9\xba\x18\x4c\x77\x8f\xae\x90\xdc\x0f\x5c\x33\x29\xcb\x86\xdc\xf7\x43\xbb\xae"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x98\xec\x52\xc2\x1c\xb9\x88\xb1\x43\x4b\x16\x53\xdd\x4a\xc8\x06\xd1\x18\xde\x6a\xf1\xbb\x47\x1c\x16\x57\x7c\x34"[..]); ctx.update(b"\xe6\x5d\xe9\x1f\xdc\xb7\x60\x6f\x14\xdb\xcf\xc9\x4c\x9c\x94\xa5\x72\x40\xa6\xb2\xc3\x1e\xd4\x10\x34\x6c\x4d\xc0\x11\x52\x65\x59\xe4\x42\x96\xfc\x98\x8c\xc5\x89\xde\x2d\xc7\x13\xd0\xe8\x24\x92\xd4\x99\x1b\xd8\xc4\xc5\xe6\xc7\x4c\x75\x3f\xc0\x93\x45\x22\x5e\x1d\xb8\xd5\x65\xf0\xce\x26\xf5\xf5\xd9\xf4\x04\xa2\x8c\xf0\x0b\xd6\x55\xa5\xfe\x04\xed\xb6\x82\x94\x2d\x67\x5b\x86\x23\x5f\x23\x59\x65\xad\x42\x2b\xa5\x08\x1a\x21\x86\x5b\x82\x09\xae\x81\x76\x3e\x1c\x4c\x0c\xcc\xbc\xcd\xaa\xd5\x39\xcf\x77\x34\x13\xa5\x0f\x5f\xf1\x26\x7b\x92\x38\xf5\x60\x2a\xdc\x06\x76\x4f\x77\x5d\x3c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x26\xec\x9d\xf5\x4d\x9a\xfe\x11\x71\x07\x72\xbf\xbe\xcc\xc8\x3d\x9d\x04\x39\xd3\x53\x07\x77\xc8\x1b\x8a\xe6\xa3"[..]); } } nettle-7.1.0/src/hash/sha3_256.rs000064400000000000000000002113050072674642500144700ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha3_256, nettle_sha3_256_digest, nettle_sha3_256_init, nettle_sha3_256_update, sha3_256_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 256 bit variant of the Secure Hash Algorithm 3 (SHA-3) defined in FIPS 202. #[allow(non_camel_case_types)] pub struct Sha3_256 { context: sha3_256_ctx, } impl_write_for_hash!(Sha3_256); impl Clone for Sha3_256 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha3_256_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha3_256 { context: ctx } } } } impl Default for Sha3_256 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha3_256_init(&mut ctx as *mut _); } Sha3_256 { context: ctx } } } impl Hash for Sha3_256 { fn digest_size(&self) -> usize { ::nettle_sys::SHA3_256_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha3_256_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha3_256_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha3_256 { type Context = sha3_256_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha3_256 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha3_256::default(); } // CAVS 19.0 // "SHA3-256 ShortMsg" information for "SHA3AllBytes1-28-16" // Length values represented in bits // Generated on Thu Jan 28 13:32:44 2016 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha3_256::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66\x51\xc1\x47\x56\xa0\x61\xd6\x62\xf5\x80\xff\x4d\xe4\x3b\x49\xfa\x82\xd8\x0a\x4b\x80\xf8\x43\x4a"[..]); ctx.update(b"\xe9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf0\xd0\x4d\xd1\xe6\xcf\xc2\x9a\x44\x60\xd5\x21\x79\x68\x52\xf2\x5d\x9e\xf8\xd2\x8b\x44\xee\x91\xff\x5b\x75\x9d\x72\xc1\xe6\xd6"[..]); ctx.update(b"\xd4\x77"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\x27\x9e\x8f\x5c\xcd\xf6\xe1\x7f\x29\x2b\x59\x69\x8a\xb4\xe6\x14\xdf\xe6\x96\xa4\x6c\x46\xda\x78\x30\x5f\xc6\xa3\x14\x6a\xb7"[..]); ctx.update(b"\xb0\x53\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9d\x0f\xf0\x86\xcd\x0e\xc0\x6a\x68\x2c\x51\xc0\x94\xdc\x73\xab\xdc\x49\x20\x04\x29\x23\x44\xbd\x41\xb8\x2a\x60\x49\x8c\xcf\xdb"[..]); ctx.update(b"\xe7\x37\x21\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\x42\xb6\x8a\xb0\x79\xf2\x8c\x4c\xa3\xc7\x52\x29\x6f\x27\x90\x06\xc4\xfe\x78\xb1\xeb\x79\xd9\x89\x77\x7f\x05\x1e\x40\x46\xae"[..]); ctx.update(b"\x02\x96\xf2\xc4\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x53\xa0\x18\x93\x72\x21\x08\x1d\x09\xed\x04\x97\x37\x7e\x32\xa1\xfa\x72\x40\x25\xdf\xdc\x18\x71\xfa\x50\x3d\x54\x5d\xf4\xb4\x0d"[..]); ctx.update(b"\xe6\xfd\x42\x03\x7f\x80"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\x94\xf8\xd3\x83\x4f\x24\xaa\x90\x37\xc4\x31\xf8\xc2\x33\xa6\x6a\x57\xb2\x3f\xa3\xde\x10\x53\x0b\xbb\x69\x11\xf6\xe1\x85\x0f"[..]); ctx.update(b"\x37\xb4\x42\x38\x5e\x05\x38"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\xa5\x50\x31\xe7\x16\xbb\xd7\xa8\x3f\x21\x57\x51\x30\x99\xe2\x29\xa8\x88\x91\xbb\x89\x9d\x9c\xcd\x31\x71\x91\x81\x99\x98\xf8"[..]); ctx.update(b"\x8b\xca\x93\x1c\x8a\x13\x2d\x2f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdb\xb8\xbe\x5d\xec\x1d\x71\x5b\xd1\x17\xb2\x45\x66\xdc\x3f\x24\xf2\xcc\x0c\x79\x97\x95\xd0\x63\x8d\x95\x37\x48\x1e\xf1\xe0\x3e"[..]); ctx.update(b"\xfb\x8d\xfa\x3a\x13\x2f\x98\x13\xac"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfd\x09\xb3\x50\x18\x88\x44\x5f\xfc\x8c\x3b\xb9\x5d\x10\x64\x40\xce\xee\x46\x94\x15\xfc\xe1\x47\x47\x43\x27\x30\x94\x30\x6e\x2e"[..]); ctx.update(b"\x71\xfb\xac\xdb\xf8\x54\x17\x79\xc2\x4a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcc\x4e\x5a\x21\x6b\x01\xf9\x87\xf2\x4a\xb9\xca\xd5\xeb\x19\x6e\x89\xd3\x2e\xd4\xaa\xc8\x5a\xcb\x72\x7e\x18\xe4\x0c\xee\xf0\x0e"[..]); ctx.update(b"\x7e\x8f\x1f\xd1\x88\x2e\x4a\x7c\x49\xe6\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x79\xbe\xf7\x8c\x78\xaa\x71\xe1\x1a\x33\x75\x39\x4c\x25\x62\x03\x7c\xd0\xf8\x2a\x03\x3b\x48\xa6\xcc\x93\x2c\xc4\x33\x58\xfd\x9e"[..]); ctx.update(b"\x5c\x56\xa6\xb1\x8c\x39\xe6\x6e\x1b\x7a\x99\x3a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb6\x97\x55\x6c\xb3\x0d\x6d\xf4\x48\xee\x38\xb9\x73\xcb\x69\x42\x55\x9d\xe4\xc2\x56\x7b\x15\x56\x24\x01\x88\xc5\x5e\xc0\x84\x1c"[..]); ctx.update(b"\x9c\x76\xca\x5b\x6f\x8d\x12\x12\xd8\xe6\x89\x6a\xd8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\xdf\xc3\xa2\x58\x65\xf3\x53\x5f\x18\xb4\xa7\xbd\x9c\x0c\x69\xd7\x84\x55\xf1\xfc\x1f\x4b\xf4\xe2\x9f\xc8\x2b\xf3\x28\x18\xec"[..]); ctx.update(b"\x68\x7f\xf7\x48\x5b\x7e\xb5\x1f\xe2\x08\xf6\xff\x9a\x1b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfe\x7e\x68\xae\x3e\x1a\x91\x94\x4e\x4d\x1d\x21\x46\xd9\x36\x0e\x53\x33\xc0\x99\xa2\x56\xf3\x71\x1e\xdc\x37\x2b\xc6\xee\xb2\x26"[..]); ctx.update( b"\x41\x49\xf4\x1b\xe1\xd2\x65\xe6\x68\xc5\x36\xb8\x5d\xde\x41", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\x9a\x77\x02\x44\x8c\x64\x0f\x55\xda\xfe\xd0\x8a\x52\xaa\x0b\x11\x39\x65\x7b\xa9\xfc\x4c\x5e\xb8\x58\x7e\x17\x4e\xcd\x9b\x92"[..]); ctx.update( b"\xd8\x3c\x72\x1e\xe5\x1b\x06\x0c\x5a\x41\x43\x8a\x82\x21\xe0\x40", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb8\x7d\x9e\x47\x22\xed\xd3\x91\x87\x29\xde\xd9\xa6\xd0\x3a\xf8\x25\x69\x98\xee\x08\x8a\x1a\xe6\x62\xef\x4b\xca\xff\x14\x2a\x96"[..]); ctx.update(b"\x26\x6e\x8c\xbd\x3e\x73\xd8\x0d\xf2\xa4\x9c\xfd\xaf\x0d\xc3\x9c\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\x2d\xe3\xc9\x59\x00\xa1\xbc\xec\x6b\xd4\xca\x78\x00\x56\xaf\x4a\xcf\x3a\xa3\x6e\xe6\x40\x47\x4b\x6e\x87\x01\x87\xf5\x93\x61"[..]); ctx.update(b"\xa1\xd7\xce\x51\x04\xeb\x25\xd6\x13\x1b\xb8\xf6\x6e\x1f\xb1\x3f\x35\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xee\x90\x62\xf3\x97\x20\xb8\x21\xb8\x8b\xe5\xe6\x46\x21\xd7\xe0\xca\x02\x6a\x9f\xe7\x24\x8d\x78\x15\x0b\x14\xbd\xba\xa4\x0b\xed"[..]); ctx.update(b"\xd7\x51\xcc\xd2\xcd\x65\xf2\x7d\xb5\x39\x17\x69\x20\xa7\x00\x57\xa0\x8a\x6b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7a\xac\xa8\x0d\xbe\xb8\xdc\x36\x77\xd1\x8b\x84\x79\x59\x85\x46\x36\x50\xd7\x2f\x25\x43\xe0\xec\x70\x9c\x9e\x70\xb8\xcd\x7b\x79"[..]); ctx.update(b"\xb3\x2d\xec\x58\x86\x5a\xb7\x46\x14\xea\x98\x2e\xfb\x93\xc0\x8d\x9a\xcb\x1b\xb0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6a\x12\xe5\x35\xdb\xfd\xda\xb6\xd3\x74\x05\x8d\x92\x33\x8e\x76\x0b\x1a\x21\x14\x51\xa6\xc0\x9b\xe9\xb6\x1e\xe2\x2f\x3b\xb4\x67"[..]); ctx.update(b"\x4e\x0c\xc4\xf5\xc6\xdc\xf0\xe2\xef\xca\x1f\x9f\x12\x93\x72\xe2\xdc\xbc\xa5\x7e\xa6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd2\xb7\x71\x78\x64\xe9\x43\x8d\xd0\x2a\x4f\x8b\xb0\x20\x3b\x77\xe2\xd3\xcd\x8f\x8f\xfc\xf9\xdc\x68\x4e\x63\xde\x5e\xf3\x9f\x0d"[..]); ctx.update(b"\xd1\x6d\x97\x8d\xfb\xae\xcf\x2c\x8a\x04\x09\x0f\x6e\xeb\xdb\x42\x1a\x5a\x71\x11\x37\xa6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7f\x49\x79\x13\x31\x8d\xef\xdc\x60\xc9\x24\xb3\x70\x4b\x65\xad\xa7\xca\x3b\xa2\x03\xf2\x3f\xb9\x18\xc6\xfb\x03\xd4\xb0\xc0\xda"[..]); ctx.update(b"\x47\x24\x9c\x7c\xb8\x5d\x8f\x02\x42\xab\x24\x0e\xfd\x16\x4b\x9c\x8b\x0b\xd3\x10\x4b\xba\x3b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x43\x5e\x27\x6f\x06\xae\x73\xaa\x5d\x5d\x60\x18\xf5\x8e\x0f\x00\x9b\xe3\x51\xea\xda\x47\xb6\x77\xc2\xf7\xc0\x64\x55\xf3\x84\xe7"[..]); ctx.update(b"\xcf\x54\x9a\x38\x3c\x0a\xc3\x1e\xae\x87\x0c\x40\x86\x7e\xeb\x94\xfa\x1b\x6f\x3c\xac\x44\x73\xf2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcd\xfd\x1a\xfa\x79\x3e\x48\xfd\x0e\xe5\xb3\x4d\xfc\x53\xfb\xce\xe4\x3e\x9d\x2a\xc2\x15\x15\xe4\x74\x64\x75\x45\x3a\xb3\x83\x1f"[..]); ctx.update(b"\x9b\x3f\xdf\x8d\x44\x86\x80\x84\x0d\x62\x84\xf2\x99\x7d\x3a\xf5\x5f\xfd\x85\xf6\xf4\xb3\x3d\x7f\x8d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x25\x00\x5d\x10\xe8\x4f\xf9\x7c\x74\xa5\x89\x01\x3b\xe4\x2f\xb3\x7f\x68\xdb\x64\xbd\xfc\x76\x26\xef\xc0\xdd\x62\x80\x77\x49\x3a"[..]); ctx.update(b"\x6b\x22\xfe\x94\xbe\x2d\x0b\x25\x28\xd9\x84\x7e\x12\x7e\xb6\xc7\xd6\x96\x7e\x7e\xc8\xb9\x66\x0e\x77\xcc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x15\x7a\x52\xb0\x47\x76\x39\xb3\xbc\x17\x96\x67\xb3\x5c\x1c\xdf\xbb\x3e\xef\x84\x5e\x44\x86\xf0\xf8\x4a\x52\x6e\x94\x0b\x51\x8c"[..]); ctx.update(b"\xd8\xde\xca\xfd\xad\x37\x79\x04\xa2\x78\x95\x51\x13\x5e\x78\x2e\x30\x2a\xed\x84\x50\xa4\x2c\xfb\x89\x60\x0c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3d\xde\xcf\x5b\xba\x51\x64\x3c\xd7\x7e\xbd\xe2\x14\x1c\x85\x45\xf8\x62\x06\x7b\x20\x99\x90\xd4\xcb\x65\xbf\xa6\x5f\x4f\xa0\xc0"[..]); ctx.update(b"\x93\x8f\xe6\xaf\xdb\xf1\x4d\x12\x29\xe0\x35\x76\xe5\x32\xf0\x78\x89\x87\x69\xe2\x06\x20\xae\x21\x64\xf5\xab\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x95\x11\xab\xd1\x3c\x75\x67\x72\xb8\x52\x11\x45\x78\xef\x9b\x96\xf9\xdc\x7d\x0f\x2b\x8d\xcd\xe6\xea\x7d\x1b\xd1\x4c\x51\x88\x90"[..]); ctx.update(b"\x66\xeb\x5e\x73\x96\xf5\xb4\x51\xa0\x2f\x39\x69\x9d\xa4\xdb\xc5\x05\x38\xfb\x10\x67\x8e\xc3\x9a\x5e\x28\xba\xa3\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x54\x0a\xcf\x81\x81\x0a\x19\x99\x96\xa6\x12\xe8\x85\x78\x13\x08\x80\x2f\xe4\x60\xe9\xc6\x38\xcc\x02\x2e\x17\x07\x6b\xe8\x59\x7a"[..]); ctx.update(b"\xde\x98\x96\x8c\x8b\xd9\x40\x8b\xd5\x62\xac\x6e\xfb\xca\x2b\x10\xf5\x76\x9a\xac\xaa\x01\x36\x57\x63\xe1\xb2\xce\x80\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\x2f\x25\x47\x78\x14\x49\xd4\xfa\x15\x81\x80\xa1\x78\xef\x68\xd7\x05\x61\x21\xbf\x8a\x2f\x2f\x49\x89\x1a\xfc\x24\x97\x85\x21"[..]); ctx.update(b"\x94\x46\x4e\x8f\xaf\xd8\x2f\x63\x0e\x6a\xab\x9a\xa3\x39\xd9\x81\xdb\x0a\x37\x2d\xc5\xc1\xef\xb1\x77\x30\x59\x95\xae\x2d\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xea\x79\x52\xad\x75\x96\x53\xcd\x47\xa1\x80\x04\xac\x2d\xbb\x9c\xf4\xa1\xe7\xbb\xa8\xa5\x30\xcf\x07\x05\x70\xc7\x11\xa6\x34\xea"[..]); ctx.update(b"\xc1\x78\xce\x0f\x72\x0a\x6d\x73\xc6\xcf\x1c\xaa\x90\x5e\xe7\x24\xd5\xba\x94\x1c\x2e\x26\x28\x13\x6e\x3a\xad\x7d\x85\x37\x33\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x64\x53\x7b\x87\x89\x28\x35\xff\x09\x63\xef\x9a\xd5\x14\x5a\xb4\xcf\xce\x5d\x30\x3a\x0c\xb0\x41\x5b\x3b\x03\xf9\xd1\x6e\x7d\x6b"[..]); ctx.update(b"\x6e\xf7\x0a\x3a\x21\xf9\xf7\xdc\x41\xc5\x53\xc9\xb7\xef\x70\xdb\x82\xca\x69\x94\xac\x89\xb3\x62\x7d\xa4\xf5\x21\xf0\x7e\x1a\xe2\x63"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0a\xfe\x03\xb1\x75\xa1\xc9\x48\x96\x63\xd8\xa6\xf6\x6d\x1b\x24\xab\xa5\x13\x9b\x99\x64\x00\xb8\xbd\x3d\x0e\x1a\x79\x58\x0e\x4d"[..]); ctx.update(b"\x0c\x4a\x93\x1f\xf7\xea\xce\x5e\xa7\xcd\x8d\x2a\x67\x61\x94\x08\x38\xf3\x0e\x43\xc5\xd1\x25\x32\x99\xab\xd1\xbd\x90\x3f\xed\x1e\x8b\x36"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdc\x5b\xeb\xe0\x5c\x49\x94\x96\xa7\xeb\xfe\x04\x30\x9c\xae\x51\x5e\x3e\xa5\x7c\x5d\x2a\x5f\xe2\xe6\x80\x12\x43\xdd\x52\xc9\x3b"[..]); ctx.update(b"\x21\x0f\x7b\x00\xbf\x8b\x43\x37\xb4\x24\x50\xc7\x21\xc3\xf7\x81\x25\x63\x59\xd2\x08\x73\x38\x46\xb9\x7c\x0a\x4b\x7b\x04\x4c\x38\xdb\xb2\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x33\x05\xc9\xd2\x8e\x05\x28\x8a\x2d\x13\x99\x4d\x64\xc8\x8d\x35\x06\x39\x9c\xd6\x2b\x2b\x54\x42\x13\xcf\x35\x39\xa8\xe9\x2e\x2e"[..]); ctx.update(b"\x3c\xb8\x99\x27\x59\xe2\xdc\x60\xeb\xb0\x22\xbd\x8e\xe2\x7f\x0f\x98\x03\x9e\x6a\x9f\xe3\x60\x37\x3b\x48\xc7\x85\x0c\xe1\x13\xa0\xff\x7b\x2a\xe5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\x00\xbf\x3e\x12\xad\xe9\xd2\xde\x27\x56\x50\x6f\x80\x9f\x14\x7c\x8d\x6a\xdc\x22\xe7\xbb\x66\x6e\x0b\x1d\x26\x46\x9e\x65\xa5"[..]); ctx.update(b"\x22\x63\x4f\x6b\xa7\xb4\xfc\xca\xa3\xba\x40\x40\xb6\x64\xdb\xe5\xa7\x2b\xf3\x94\xfb\x53\x4e\x49\xc7\x6e\xc4\xcd\xc2\x23\xf4\x96\x9e\x2d\x37\xe8\x99"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x7e\x5c\x78\x83\x7d\x7b\xe0\x06\x0d\x8f\x5e\xda\x97\x54\x89\xec\x96\x1b\x28\xd7\x08\x8f\x42\xa7\x0f\x92\x41\x4a\xe1\x77\x93"[..]); ctx.update(b"\x6e\x1d\xcd\x79\x6b\x20\x15\xee\x67\x60\xf9\x8f\xdb\x40\xe6\x68\xb2\xcf\x38\xb0\x5c\x91\xf6\xa9\x1e\x83\xbc\xc8\xac\x59\xf8\x16\xf9\x0a\x59\xd6\x4e\x8e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x6b\xf8\x45\xc0\x8a\xa1\x86\xb5\xfe\x1c\xa3\x55\x28\x23\x2c\x4a\x49\x1a\x3a\x2a\x32\xcd\x23\xe9\x90\xbc\x60\x3f\x32\x68\xae"[..]); ctx.update(b"\xee\x0b\xe2\x03\x20\xf9\xd4\x40\x73\x28\x12\x65\xa6\xe9\xfa\x6b\x9d\x25\x24\x95\x62\x4b\x8d\x01\x6b\x8e\xf5\x7e\x1b\x4e\x85\x9d\x8a\xd3\xb5\x0b\x89\x41\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa3\x25\x7b\xaf\x14\xca\x16\xe1\x13\x7d\xc5\x15\x87\x03\xf3\xb0\x2e\xbc\x74\xfc\x76\x77\x16\x5f\xe8\x6d\x4b\xe1\xf3\x8e\x2f\x7c"[..]); ctx.update(b"\x8a\xe2\xda\x24\x26\x35\xb6\x56\x82\x89\xbf\x6b\xec\x8a\x43\x8d\xba\xc1\xf5\xb4\xd5\x0a\x90\xbb\x74\x49\xbd\xb9\x2a\x59\x37\x8e\x23\x45\x2d\xbc\xab\xbb\xe8\x79"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe2\x5c\x44\x80\x2c\x5c\xf2\xe9\xf6\x33\xe6\x83\xd3\x7a\xa8\xc8\xdb\x8a\x0e\x21\xc3\x67\x80\x81\x21\xd1\x4d\x96\xc8\xa4\x00\xb5"[..]); ctx.update(b"\xbd\xd0\x25\x2d\xec\x5b\x79\x8e\xf2\x0e\x51\x79\x1a\x18\xe8\xca\x23\x4d\x9b\xfd\xe6\x32\xa9\xe5\x39\x53\x37\xa1\x12\xdd\x97\xcd\xf0\x68\xc9\xf5\x76\x15\x42\x4f\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe0\x2c\x1b\x19\x79\x79\xc4\x4a\x5a\x50\xd0\x5e\xa4\x88\x2c\x16\xd8\x20\x5c\x2e\x33\x44\x26\x5f\x8f\xe0\xe8\x0a\xed\x06\xc0\x65"[..]); ctx.update(b"\xc4\xc7\xb6\x31\x5c\xb6\x0b\x0e\x6c\xd0\x1e\xf0\xb6\x5f\x64\x86\xfd\xae\x4b\x94\xc6\xbe\x21\x46\x5c\x3a\x31\xc4\x16\xad\x2f\x06\xdc\xf3\xd6\xea\xe8\xee\xcf\x84\xca\x7a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2d\xa2\x18\x67\xcd\x6b\x54\x02\xd3\xca\xff\x92\xa0\x5f\xdd\xfc\xa9\x01\x99\xfd\x51\xa9\x4a\x06\x6a\xf1\x64\xce\x3d\x36\xc9\x49"[..]); ctx.update(b"\xb1\x79\x77\xac\xed\x3a\x11\x84\xb1\x4b\x0e\x41\xa0\x4d\xd8\xb5\x13\xc9\x25\xca\x19\x21\x1e\x1a\xbd\xc6\xc1\xb9\x87\xac\x84\x55\x45\xfb\x3b\x82\x0a\x08\x3b\x4f\x78\x83\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\x1b\x01\x6d\x01\x3e\xde\x8d\x6a\x2e\x1e\xfd\x4c\x0d\xd9\x94\x17\xda\x8b\x02\x22\xd7\x87\x86\x7c\xa0\x2b\x0e\xa2\xe8\x0e\x45"[..]); ctx.update(b"\xf6\x5c\x3a\xa1\xd9\x98\x1a\x84\xe4\x9f\xc8\x6d\x93\x8f\x3f\x75\x6f\x60\xe3\x85\x8d\x5e\x1f\x69\x57\xdd\x4d\x26\x8e\x28\xd6\x8e\x90\xba\x9a\x11\xd7\xb1\x92\xd6\xc3\x7f\xb3\x0b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\xcb\xeb\xf8\xed\xa9\xd3\xc9\x9a\x6b\x6b\x66\x63\x66\xc3\x91\xe8\x20\x0d\x55\xfd\x33\xad\x86\x80\x73\x4d\xef\x1d\xc7\xae\x85"[..]); ctx.update(b"\x49\xab\xba\x1f\xa9\x8f\x3c\x44\x70\xd5\xdd\x4e\xd3\x69\x24\xaf\x4a\x7a\xd6\x2f\x4c\x2d\xd1\x3e\x59\x92\x38\x88\x3e\xd7\xd0\xcb\x95\xbb\xaa\xe5\x8b\x46\x03\x32\xe6\xb7\x68\x14\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\xbc\xd9\xea\x4f\x1a\xa5\x27\x6f\x38\xe3\x03\x51\xa1\x4a\x07\x2b\xc5\xd5\x3a\x52\xd0\x4d\x55\x9a\x65\xca\x46\xf1\xbc\xb5\x6e"[..]); ctx.update(b"\x27\x56\x45\xb5\xa2\x51\x4f\xe6\x5a\x82\xef\xac\x57\xe4\x06\xf2\x24\xe0\x25\x96\x77\x67\x4f\x1d\x13\x3f\x00\xa5\xee\x9a\x6d\x1a\x8f\xed\x0e\xad\xbb\xff\x5a\x82\x50\x41\xd2\xa9\x71\x5d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc7\x0a\x87\x4d\x78\x6c\xd0\xf3\xf0\x9f\xa4\xdc\x1b\xb8\xf5\x51\xd4\x5f\x26\xd7\x7a\xd6\x3d\xe1\xa9\xfd\xfb\x3b\x7c\x09\xc0\x41"[..]); ctx.update(b"\xcd\x02\xb3\x21\x07\xb9\xa6\x40\xfc\x1b\xf4\x39\xac\x81\xa5\xc2\x7d\x03\x7c\x60\x76\xe1\xcf\xe6\xad\x22\x96\x38\x03\x7a\xc1\x55\x0e\x71\xcf\x95\x57\xc2\x9c\x2f\xc6\x01\x7a\xfd\x5a\x81\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\xc7\x3d\x11\xd4\x50\x78\x4e\xb9\x9a\xf0\x68\xcd\x4e\x1c\xbc\x57\x68\xc8\xa2\x11\x80\x10\xac\xee\xc6\xd8\x52\xdd\xa8\x0d\x95"[..]); ctx.update(b"\x5a\x72\xe0\xe1\xae\xc8\x2a\x65\x41\xf0\x48\x83\xbb\x46\x3b\x0c\x39\xc2\x2b\x59\x43\x1c\xfb\x8b\xfd\x33\x21\x17\xa1\xaf\xb5\x83\x2c\xe5\xc7\x6a\x58\xfc\xf6\xc6\xcb\x4e\x3e\x6f\x8e\x11\x12\xde"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x90\xfc\x31\x93\x55\x2e\xc7\x1d\x33\x15\xeb\xbb\x80\x79\x13\xaf\xd4\xcd\x2f\x08\x33\xa6\x5e\x40\xd0\x11\xd6\x4d\xe5\xe6\x65\x13"[..]); ctx.update(b"\x43\x40\x21\x65\x91\x18\x90\x71\x9f\x91\x79\xf8\x83\xbb\xbc\x2a\x3b\xe7\x76\x82\xe6\x0d\xd2\x4b\x35\x6a\x22\x62\x1c\x6d\x2e\x3d\xcd\xd4\xcb\x2c\xe6\x13\xb0\xdf\xe9\xf5\x86\x29\xee\x85\x3e\x03\x94"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x4b\x6c\xea\xc9\x44\x1d\xef\xa9\x9b\x10\xb8\x05\xa7\x25\xd4\x01\x8b\x74\xb3\xe1\xf2\x4a\xd8\x93\x4f\xc8\x9b\x41\xb8\xfd\x9e"[..]); ctx.update(b"\xfc\x56\xca\x9a\x93\x98\x2a\x46\x69\xcc\xab\xa6\xe3\xd1\x84\xa1\x9d\xe4\xce\x80\x0b\xb6\x43\xa3\x60\xc1\x45\x72\xae\xdb\x22\x97\x4f\x0c\x96\x6b\x85\x9d\x91\xad\x5d\x71\x3b\x7a\xd9\x99\x35\x79\x4d\x22"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe2\x18\x06\xce\x76\x6b\xbc\xe8\xb8\xd1\xb9\x9b\xcf\x16\x2f\xd1\x54\xf5\x46\x92\x35\x1a\xec\x8e\x69\x14\xe1\xa6\x94\xbd\xa9\xee"[..]); ctx.update(b"\xac\xe6\x29\x7e\x50\xd5\x0a\x11\x38\x81\x18\xef\xc8\x8e\xf9\x72\x09\xb1\x1e\x9d\xfc\xb7\xad\x48\x2f\xc9\xbf\x7d\x8d\xee\xcc\x23\x7a\xd1\x63\xd9\x20\xc5\x1f\x25\x03\x06\xd6\xce\xdc\x41\x13\x86\xa4\x57\xc7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf5\x58\x14\x03\xa0\x82\xbb\xf5\xad\x7e\x09\xbd\xfc\xcc\x43\xbf\x96\x83\xeb\xc8\x82\x91\xd7\x1d\x9c\xe8\x85\xa3\x7e\x95\x2b\xd6"[..]); ctx.update(b"\x3b\xad\x18\x04\x6e\x94\x24\xde\x24\xe1\x29\x44\xcd\x99\x2c\xfb\xa4\x55\x6f\x0b\x2a\xe8\x8b\x7b\xd3\x42\xbe\x5c\xff\x95\x86\x09\x2b\xb6\x6f\xac\x69\xc5\x29\x04\x0d\x10\xdd\x66\xaa\x35\xc1\x02\x3d\x87\xeb\x68"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfa\xed\x76\xff\x5a\x1c\xd9\x91\x83\xb3\x11\xe5\x02\xc5\x4e\x51\x6d\x70\xa8\x70\x50\xcf\x89\x61\xc8\xcd\x46\xf6\x5c\x13\x58\xcd"[..]); ctx.update(b"\xe5\x64\xc9\xa1\xf1\xaa\xf8\x54\x5a\x25\x9f\x52\xc3\xfd\x18\x21\xed\x03\xc2\x2f\xd7\x42\x4a\x0b\x2a\xd6\x29\xd5\xd3\x02\x6e\xf4\xf2\x7c\xbe\x06\xf3\x0b\x99\x1d\xfa\x54\xde\x28\x85\xf1\x92\xaf\x4d\xc4\xdd\xc4\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\x15\x29\xc6\x00\xc9\xd7\x80\xf7\x96\xa2\x9a\x6b\x3e\x89\xf8\xa1\x2b\x3f\x29\xc3\x6f\x72\xb0\x6c\xca\x7e\xdc\x36\xf4\x8d\xc0"[..]); ctx.update(b"\x60\x43\xfa\x64\x65\xd6\x9c\xab\x45\x52\x0a\xf5\xf0\xfd\x46\xc8\x1d\xbf\x67\x75\x31\x79\x98\x02\x62\x98\x63\x68\x1c\xea\x30\xff\xa3\xb0\x08\x36\xfb\xf4\x9f\x87\x05\x1d\x92\xaa\xea\xc0\xed\x09\xbc\xb9\xf0\x75\x5b\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb0\xfc\xee\xcd\xae\xf6\xc7\x6d\x5f\xc3\x83\x5b\x52\x3c\xe2\x41\x6f\x4a\x9b\x9b\xd1\xf9\x02\x34\x44\x5d\xf0\xf2\xb6\x89\xf2\xf5"[..]); ctx.update(b"\x20\x40\xc5\x38\xc7\x92\x37\xe6\xf2\xb8\x18\x8c\x63\x75\xec\x2f\x61\x0a\xc2\x30\x16\x07\xb9\xc2\x36\x60\xc3\xa1\xe1\xc3\xa9\x02\xcb\x29\x50\xc5\x9a\xac\x3a\xf2\x8f\x98\x4f\x63\x69\xc4\xde\xbe\x86\x23\xdf\xa7\x4c\x96\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe3\x3d\xbd\xc0\xac\xc2\x3f\xcf\xad\x3c\x75\x9c\x43\x33\x41\x0b\xd3\xa4\x0e\xfb\x13\x66\xad\xe1\x57\xd2\xc8\x1d\x65\xa0\xa6\xc7"[..]); ctx.update(b"\x00\xff\x6c\x96\xb7\xaa\x3c\xf2\x7d\x03\x6c\xf2\x0a\xf7\x03\x14\x34\x11\x32\x52\x57\x4b\xda\x9c\xf9\x24\x4d\x85\xae\xf2\x59\x3d\x3a\x7a\x83\xbf\xf6\xbe\x90\x4b\x75\x16\x4a\x17\x66\x82\x80\x42\xbc\x3f\x4f\x09\x0d\x98\xa0\x3d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd0\x00\xea\xfc\xa3\x48\x15\x78\x3b\xed\x9b\x05\x0c\x69\x01\xc9\x7f\x2e\x77\xd4\x77\x1a\x0e\xd7\x24\xdd\x8f\x6f\xf1\x44\x87\x91"[..]); ctx.update(b"\xe8\xdf\x14\x93\x6c\xce\x11\x81\x39\xe6\x90\xf1\x66\x2f\x88\xcf\xbc\x9c\x33\x3b\x6d\xea\x65\x8c\x02\xcb\x1d\x95\x96\x44\x59\x28\x42\x54\x2f\xd9\xd8\xd6\x1a\x04\xd4\xa8\x92\x12\x8f\x0d\xdf\xf7\xb6\x50\x2e\xff\xfb\xab\xe5\xcb\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x34\x79\xa9\x61\x7a\x3a\xdc\xa3\x58\x54\xc0\x8f\xe9\x87\xc2\xfe\x7f\xf2\xb0\x1b\x04\xf2\xd9\x52\xc1\x07\xb3\xf0\x66\x42\x05\x51"[..]); ctx.update(b"\x4e\xd9\x81\xa3\x1f\x70\xdd\x6b\x70\xc1\x61\xbe\x1f\x01\xfc\x1b\xba\x54\xd0\x6d\x94\x94\xe7\xeb\x19\x4e\x21\x3d\x5e\x0e\x71\xe0\xfd\xdd\x49\xcb\x1f\x07\x53\x53\xda\x22\x62\x4c\xbe\x4b\xa8\x71\xaa\xb3\x29\x06\xe4\x5b\x6f\xbb\x69\x1b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9c\x82\x4a\x00\xe0\x68\xd2\xfd\xa7\x3f\x9c\x2e\x77\x98\xe8\xd9\x39\x4f\x57\xf9\x4d\xf0\xed\xeb\x13\x2e\x78\xe8\xa3\x79\xa0\xcf"[..]); ctx.update(b"\x78\x02\xb7\x0c\x61\x58\xbc\x26\xd5\xf1\x57\x67\x1c\x3f\x3d\x81\xab\x39\x9d\xb5\x52\xb9\xf8\x51\xb7\x23\x33\x77\x03\x48\xeb\x1f\xdb\x8a\x08\x5f\x92\x40\x95\xeb\x9d\x5c\xcf\xd8\x47\x4b\x7b\xa5\xa6\x1c\x7d\x7b\xcd\xe5\xa7\xb4\x43\x62\xcf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfa\x97\x26\xcc\xb0\x68\xc0\xad\xb5\xd2\x00\x79\xc3\x5a\x31\x8b\x3d\x95\x1e\xb4\x3b\x19\x6c\x50\x9a\xb7\x90\xb7\xe9\x20\x22\x07"[..]); ctx.update(b"\xff\x83\xdc\xd7\xc1\xa4\x88\xe5\xa1\x28\xd5\xb7\x46\x28\x45\x52\xf1\xf2\xc0\x91\x61\x5d\x95\x19\xf4\x59\xbc\x90\x10\xca\x5e\x0a\xc1\x97\x96\xc4\xa3\xfd\x7a\x15\x03\x2a\x55\xa1\x41\x07\x37\xd0\x78\x55\xb0\x7f\x61\xfb\xd8\xf5\x75\x9e\x92\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8b\xd8\xd4\x94\xa4\x1a\xcd\xa4\xb7\xcd\x29\x94\xba\xda\xec\xff\x0f\x46\xba\x27\x43\x45\x8f\x6c\x3f\xdc\x02\x26\xf9\x49\x2e\xde"[..]); ctx.update(b"\xaf\xd4\x76\x4c\xc7\xd5\xde\x16\xa3\xcf\x80\xc5\x1d\x0c\x0d\x91\x9f\x18\x70\x0c\x7d\xc9\xbc\x4e\x88\x7d\x63\x4f\xe0\xa3\xaa\x94\x09\x7d\x59\x0e\x41\x23\xb7\x3f\x11\xcc\xb5\x9e\x23\x49\x6a\x3d\x53\xd2\xbf\xa9\x08\x05\x6c\x11\xc5\x2c\x23\xab\xfb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe9\xe3\xb3\xda\x64\x8c\xf2\x30\xf1\x97\x3f\x38\x14\xeb\x81\x31\x6d\x2a\x49\x68\x26\xea\x39\xad\xf4\x67\x45\x76\xf9\x7e\x11\x67"[..]); ctx.update(b"\x6f\xa6\xde\x50\x97\x19\xff\xbf\x17\x75\x9f\x05\x14\x53\xc0\xac\x3c\xbe\x13\x34\x65\x46\xbb\xc1\x70\x50\x54\x10\x74\xb0\x34\xaf\x19\x7a\xf0\x6e\x41\x14\x22\x11\xee\x90\x6a\x47\x60\x39\xb3\xe0\x7d\x6c\xb8\x3a\x76\xaa\xc6\xfc\xa8\xea\xc3\x07\xc0\x34"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\x66\x30\x99\x3f\xbb\x65\x1f\xd8\xd3\x60\x3e\x3e\xeb\xc8\x19\x31\xfb\x13\x02\xa4\x67\x91\xdf\x25\x9a\x6e\x13\xca\x2c\xba\x9f"[..]); ctx.update(b"\x93\xcb\xb7\xe4\x7c\x88\x59\xbe\xf9\x39\x15\x5b\xea\x48\x80\x90\x28\x3e\xcf\x50\x23\xd9\x97\x67\xc9\x60\xd8\x6b\xaa\x33\x3a\xf0\x5a\xa6\x96\xfc\x17\x0f\xb8\xbb\xac\x1e\x64\x73\x95\x6d\x96\xb9\x64\x58\x0e\xe6\x64\x0f\x0c\xc5\x7b\xe9\x59\x8e\x55\xfc\x86"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd3\x21\x2a\xbc\xa1\x10\x0e\xb7\x65\x8c\x0f\x91\x6d\xaf\x26\x92\xc5\x7a\x47\xb7\x72\xee\x03\x1c\x4e\xc6\xad\x28\xa4\xa4\x6d\xe9"[..]); ctx.update(b"\x67\xe3\x84\xd2\x09\xf1\xbc\x44\x9f\xa6\x7d\xa6\xce\x5f\xbb\xe8\x4f\x46\x10\x12\x9f\x2f\x0b\x40\xf7\xc0\xca\xea\x7e\xd5\xcb\x69\xbe\x22\xff\xb7\x54\x1b\x20\x77\xec\x10\x45\x35\x6d\x9d\xb4\xee\x71\x41\xf7\xd3\xf8\x4d\x32\x4a\x5d\x00\xb3\x36\x89\xf0\xcb\x78"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9c\x91\x60\x26\x86\x08\xef\x09\xfe\x0b\xd3\x92\x7d\x3d\xff\xa0\xc7\x34\x99\xc5\x28\x94\x3e\x83\x7b\xe4\x67\xb5\x0e\x5c\x1f\x1e"[..]); ctx.update(b"\x4b\xef\x1a\x43\xfa\xac\xc3\xe3\x84\x12\xc8\x75\x36\x06\x06\xa8\x11\x5d\x91\x97\xd5\x9f\x61\xa8\x5e\x0b\x48\xb4\x33\xdb\x27\x69\x5d\xc9\x62\xed\x75\xd1\x91\xc4\x01\x39\x79\xf4\x01\xcf\x3a\x67\xc4\x72\xc9\x90\x00\xd3\xa1\x52\x22\x7d\xb6\x1d\xe3\x13\xab\x5a\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x87\x03\xa1\xf7\x42\x4c\x35\x35\xf1\xd4\xf8\x8c\x9b\x03\xd1\x94\x89\x34\x99\x47\x89\x69\xfb\xb0\xa5\xdc\x28\x08\xa0\x69\xab\x8f"[..]); ctx.update(b"\xf0\xbe\x5e\x96\x1b\xb5\x5b\x3a\x94\x52\xa5\x36\x50\x4f\x61\x2a\x3e\x66\xae\xc8\x16\x0a\x88\x2e\x51\x56\xeb\x72\x78\x43\x3b\x7e\xa2\x1d\xe3\x1e\x39\x38\x3d\x57\xfc\xdf\xb2\xfb\x4a\x8d\x22\x7a\x9d\x60\x85\xfb\x55\xca\xd3\xab\xb7\x8a\x22\x55\x35\xda\x0e\x34\xef\xea"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2f\xa1\x80\x20\x9b\xf6\xb4\xad\x13\xc3\x57\xd9\x17\xfa\xbb\x3e\x52\xc1\x01\xa0\xcd\xb3\xf2\x29\x9f\xa0\xf7\xf8\x1d\xfb\x84\x8e"[..]); ctx.update(b"\x20\x6f\x1c\x36\xba\x25\xae\xa7\x33\x98\xff\xfc\x9b\x65\xc4\x63\x7c\xc1\xf0\x5a\x6b\xbe\xe0\x14\xdc\xcb\xd6\x1e\x3b\x7a\xa9\x42\x38\x87\xbb\xac\x62\x15\x2a\x4b\xf7\x3a\x4b\x7a\xfa\xbe\x54\xe0\x87\x20\x58\x94\x64\xda\x79\x85\xd8\xe6\x59\x1a\xc0\x81\xd1\x15\xdf\x2f\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x55\x8e\xa7\xc8\x00\xb6\x87\x38\x0c\xce\x7e\x06\x00\x6e\x1e\xbe\x0b\x89\x97\x3f\x78\x8c\x4c\xaa\xc5\x78\x0f\x22\xdb\xf3\x82\xe8"[..]); ctx.update(b"\x8c\xd7\x14\x34\xc0\x06\x63\xf3\xbd\xa0\x20\x55\x08\xa4\xa2\x66\x54\x8d\xc6\x9e\x00\xca\x91\xfd\xe0\x6d\x16\x5b\x40\x27\x9a\xf9\x26\x74\xf7\x5b\xd8\x13\x3e\x5a\x9e\xb9\xa0\x75\xc9\x06\x8f\x68\xf4\xb8\x20\x00\x8a\x1f\xb4\x2d\x89\xd1\xd7\x59\x85\x9e\x68\xf8\xef\xc6\xfb\x60"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x08\x5b\x34\x3b\x08\x51\x6f\x32\x0a\x9b\x90\xfe\x50\x44\x0a\x8b\xc5\x1a\xe0\x85\x0f\xa3\x8d\x88\x72\x4a\x4d\x6b\xd3\xdf\x1a\xd4"[..]); ctx.update(b"\x4c\xf5\xbb\xd9\x1c\xac\x61\xc2\x11\x02\x05\x26\x34\xe9\x9f\xae\xdd\x6c\xdd\xdc\xd4\x42\x6b\x42\xb6\xa3\x72\xf2\x9a\x5a\x5f\x35\xf5\x1c\xe5\x80\xbb\x18\x45\xa3\xc7\xcf\xcd\x44\x7d\x26\x9e\x8c\xae\xb9\xb3\x20\xbb\x73\x1f\x53\xfe\x5c\x96\x9a\x65\xb1\x2f\x40\x60\x3a\x68\x5a\xfe"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\xdb\xb8\x8c\x5b\xb4\x41\x5e\x17\xde\xe9\x22\x21\x74\x53\x8e\xea\xb3\x71\xb1\x2d\x8d\x57\x2c\xfd\xf5\x5b\x80\x6e\x31\x58\xe4"[..]); ctx.update(b"\xe0\x0e\x46\xc9\x6d\xec\x5c\xb3\x6c\xf4\x73\x20\x48\x37\x66\x57\xbc\xd1\xef\xf0\x8c\xcc\x05\xdf\x73\x41\x68\xae\x5c\xc0\x7a\x0a\xd5\xf2\x50\x81\xc0\x7d\x09\x8a\x4b\x28\x5e\xc6\x23\x40\x7b\x85\xe5\x3a\x0d\x8c\xd6\x99\x9d\x16\xd3\x13\x1c\x18\x8b\xef\xbf\xc9\xeb\xb1\x0d\x62\xda\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x35\x71\x32\x6a\x15\x77\xc4\x00\xb9\x67\xac\x1c\x26\xdf\x2a\x0d\xcf\x5d\xb7\x07\x0e\xac\x26\x2a\x80\x71\xda\x16\xaf\xa7\xc4\x19"[..]); ctx.update(b"\x98\x1f\x41\xa8\x3d\x8f\x17\xf7\x1f\xc0\x3f\x91\x5a\x30\xcd\x8a\xc9\x1d\x99\xaa\x1b\x49\xef\x5c\x29\xfb\x88\xc6\x86\x46\xb9\x3a\x58\x8d\xeb\xcd\x67\x47\x4b\x45\x74\x00\xc3\x39\xcc\xa0\x28\x73\x1d\xf0\xb5\x99\x87\x5a\xb8\x0d\xf6\xf1\x8b\x11\xb0\xb1\xc6\x2f\x2a\x07\xb3\xd8\x20\x94\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\xae\xa8\x76\x07\x59\xa9\x96\xf4\xd8\x55\xe9\x9b\xcd\x79\xe9\xa5\x7e\xa3\x62\x52\x2d\x9b\x42\xfd\x82\xc1\x2c\x92\x94\xa2\x17"[..]); ctx.update(b"\x5c\x58\x9f\xc5\x4f\xef\xc4\xd6\xe2\x24\x9a\x36\x58\x3e\x19\x92\xfc\x6b\x8a\x9c\x07\x0e\x8e\x00\xc4\x5a\x63\x9a\xf2\x20\x63\xe6\x6a\xe5\xcd\xb8\x02\x38\xc8\x2d\xb0\x43\xa5\xe1\xf3\x9f\x65\x62\x6e\x6d\x7b\xe5\xd6\xa2\xd3\x38\x0f\xa2\x12\xf8\x92\x11\x20\x04\x12\xe5\xe4\x31\x5f\xc0\x4e\x40"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\xde\xba\x74\xe9\xd9\x3a\xe7\xdf\x93\xc6\xc3\x16\xef\x20\x1b\xf5\xe3\xa6\x61\xe6\x88\x68\xe1\x4d\x4f\x56\x26\x4f\x5d\x85\x8c"[..]); ctx.update(b"\x7c\x86\x91\xe7\xb2\x56\x0f\xe8\x7f\xcc\x5e\x28\x77\xf7\xe3\xc8\x4d\x91\x01\xec\xa4\x81\x8f\x63\x22\xa5\x89\x86\xc6\xcf\x05\x62\x7c\x0d\x69\x19\xef\x2e\xdc\x85\x9f\x81\xfa\x1f\x33\xe0\xcc\x1f\x10\xed\xf7\xe5\x2a\x9c\x33\x98\x1a\xf2\xff\x0d\x72\x0c\x94\xea\x4d\x62\x17\x0b\x2a\x4d\x12\x24\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5a\x5a\x43\x8b\x57\xc1\xb3\xce\x87\x56\x09\x42\x52\x36\x2a\xfe\xaa\x9f\xc9\x1c\xd4\x5b\x38\x5d\x16\x99\x4e\xc8\xaf\x49\xaa\x6b"[..]); ctx.update(b"\x97\x35\x9b\x56\x4b\x2b\xc2\x08\x00\xed\x1e\x51\x51\xb4\xd2\x58\x1a\x04\x27\xce\x95\x39\xd3\x24\xc3\x63\x7c\xfb\x0e\x53\x78\xdc\x2c\xf6\xd7\x29\x46\xe2\xa3\x53\x5a\x2f\x66\x4e\xde\x88\xed\x42\xa6\x81\x4c\x84\x07\x2b\x22\xc4\x3d\xe7\x1e\x88\x0a\x77\xc2\xd9\xa0\x5b\x67\x3b\xc1\x5a\x82\xe3\x25\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbe\x54\xf2\xe4\x35\xf7\x60\xd5\xb7\x7c\x0a\xe6\x1e\xf0\xaa\x7f\x5f\x33\x66\xf4\x78\x19\xf3\x50\xdc\x8a\x39\xaf\xf8\xc7\x3a\x8f"[..]); ctx.update(b"\xa0\xdf\xae\xcd\x3e\x30\x7c\x5d\xdf\x9a\x93\x60\x3f\x7e\x19\x72\x5a\x77\x92\x18\x73\x49\x04\x52\x5b\x14\x58\x6f\xf0\xce\x04\x25\xe4\xef\xe7\xe1\xc0\x6e\x74\x5c\x28\xed\x13\x6f\x60\x31\xc4\x28\x0f\xd4\x06\x1d\x43\x3e\xf7\x00\xb6\xd1\xbc\x74\x50\x64\x23\x1f\xec\xf3\x87\x01\x5f\x94\xf5\x04\xb6\xad\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x60\xd8\x0f\x1c\x70\x3d\xad\x5d\xa9\x3d\xb2\x22\xfb\x45\xfb\x7f\xa7\x68\xc8\xaa\x27\x87\xf4\xb8\x1f\x1e\x00\x36\x5b\x8f\x49\xe2"[..]); ctx.update(b"\x56\x8d\x66\xd0\x61\x30\x6c\x34\x19\xa1\x92\x8c\xe7\xed\xc8\xe3\x40\x0c\x30\x99\x8f\x09\xbd\xac\x6f\x63\xff\x35\x1e\xb2\x3d\x36\x2e\x8d\xc5\x92\x7e\xac\x80\x5d\x69\x4a\xc9\x56\x3d\xcd\x7f\xb2\xef\xa9\x59\x1c\x0d\x82\x7a\xf9\xf3\x91\x46\xf0\x42\x48\x73\xaa\x8e\x39\x63\xd6\x57\x34\xb1\x71\x3b\xaf\x0a\x44"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7a\x4f\xe3\x7f\x29\x69\x91\x12\x17\x92\xdd\x7c\x2c\x30\x39\x07\x25\xa1\xee\xbb\xf2\x0b\x76\x6a\x5a\x1c\x3c\x6c\x36\x46\xd9\x96"[..]); ctx.update(b"\xd6\x5b\x9f\x88\x1d\x1f\xc7\xf1\x7d\x6d\xd4\x29\xfa\xca\x84\x04\xe6\xce\x60\xfb\xa7\xd8\x9b\x7f\xba\x00\x3c\x8e\xf8\x4d\x80\x83\x18\x29\x79\x32\x76\x11\xfc\x34\x12\x91\xba\x80\xdc\x70\xad\x3b\x2f\x28\xb6\xd2\x9b\x98\x84\x45\xe7\xfd\xb7\xc6\x56\x1f\x45\x82\x2a\xc8\x1d\xbf\x67\x7a\x0b\x27\xd9\x61\xdc\x63\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x51\xcc\x71\xb6\x93\x4a\xfc\xf2\x8f\xa4\x99\x42\xb7\x63\x23\xf3\x6c\xd6\xa0\xae\xcc\x5a\x0e\x49\xc1\x09\x94\xdd\xca\xbd\xbb\x80"[..]); ctx.update(b"\x71\x1c\x88\xad\xf1\x3e\x7a\x0e\x69\x46\x52\xf2\xb9\xa3\x97\x54\x3f\x49\x37\xfa\xfb\x4c\xcc\xa7\xf1\xad\x1d\x93\xcf\x74\xe8\x18\xd0\xfe\xdf\xae\xe0\x99\xf0\x19\x01\x4e\xc9\xe1\xed\xfe\x9c\x03\xfd\xb1\x1f\xe6\x49\x2a\xd8\x90\x11\xbf\x97\x1a\x5c\x67\x44\x61\xde\x15\xda\xff\x1f\x44\xb4\x7a\xda\xd3\x08\xba\xa3\x14"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\x80\xe5\x2e\x30\x68\x58\x47\x82\x90\xc4\x6b\x04\xd8\x06\x8f\x07\x8a\x7f\x6a\xd8\xe3\x79\x0a\x68\xfc\x40\xdc\xcf\xbd\xad\xc9"[..]); ctx.update(b"\xf7\x14\xa2\x7c\xd2\xd1\xbc\x75\x4f\x5e\x49\x72\xab\x94\x0d\x36\x6a\x75\x4e\x02\x9b\x65\x36\x65\x5d\x97\x79\x56\xa2\xc5\x38\x80\x33\x24\x24\xdd\xf5\x97\xe6\x86\x6a\x22\xbf\xca\x7a\xa2\x6b\x7d\x74\xbc\x4c\x92\x50\x14\xc4\xed\x37\xbf\xe3\x72\x45\xfa\x42\x62\x8d\x1c\x2e\xe7\x5d\xc9\x09\xed\xc4\x69\xee\x34\x52\xd8\x94"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf4\xaf\xa7\x2f\x3e\x48\x9a\xd4\x73\xdc\x24\x7a\xae\x35\x3d\xa9\x9f\xb0\x05\xb4\x90\xe2\xc4\xe1\xf5\xbd\x16\xa9\x97\x32\xb1\x00"[..]); ctx.update(b"\xfe\x0c\x32\x80\x42\x2c\x4e\xf6\xc8\x21\x16\xe9\x47\xda\x89\xf3\x44\xd6\xff\x99\x7b\xf1\xae\xc6\x80\x7e\x73\x79\xa6\x95\xd0\xba\x20\xae\x31\xd2\x66\x6f\x73\xbb\xdb\xc3\xa6\xd6\xac\x2c\x12\xdc\xfb\x5a\x79\x17\x3d\xfc\x9c\xd2\xe0\xd6\x00\x0e\x31\x14\xf2\x76\x7e\xde\xc9\x95\x77\x2c\x6b\x47\xda\xdc\x13\x6d\x50\x02\x51\xe5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x89\x19\x8e\x23\x63\xef\xd4\xe0\xba\x7a\x8a\x45\xf6\x90\xf0\x27\x12\xe6\xf8\x56\x66\x85\x17\xba\xe1\x18\xd1\x1e\x9a\x9d\xc7\xcc"[..]); ctx.update(b"\x02\xe2\x38\x46\x1d\x0a\x99\xd4\x9c\x4c\xd1\x6f\x44\x2e\xdf\x68\x2c\x39\xb9\x31\x14\xfc\x3d\x79\xf8\x54\x6a\x99\xe5\xea\xd0\x2f\x0c\xfc\x45\x08\x15\x61\xda\x44\xb5\xc7\x0e\xb4\x83\x40\x41\x87\x07\xfd\x6b\x26\x14\x58\x0d\x5c\x58\x18\x68\xba\x32\xf1\xee\x3a\xc3\x4b\xf6\x22\x48\x45\xb3\x2b\xa7\xf8\x67\xe3\x47\x00\xd4\x50\x25"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xab\xef\x81\xb3\x35\x91\xee\xdc\xac\x0c\xf3\x2f\xb5\xa9\x1c\x93\x1f\x2d\x71\x9c\x37\x80\x14\x09\x13\x35\x52\x17\x0c\xe5\x0d\xbf"[..]); ctx.update(b"\xfb\x7c\x8c\xd4\x03\x10\x07\xf8\x15\x9d\x5c\x4c\x61\x20\xde\xe6\x77\x7a\x3a\xce\x0a\x24\x5b\x56\xf3\x1e\x8a\xae\x78\x28\xda\xb3\xcf\x35\xc3\x08\xde\x1d\x0d\x68\x45\x92\xef\x3a\x9e\x55\x79\x66\x03\xa9\x2f\x68\xd1\x09\xf7\xa3\xac\x16\x35\xf7\xc4\xd3\x34\x95\x56\x14\xc8\x12\x75\x34\x31\xbb\x0a\x07\x43\x29\x1a\x0f\xc4\x15\x47\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5a\x67\x28\x4d\x39\xe4\xf3\x7c\xaa\x64\xca\x1a\x54\x59\x3c\x35\xf6\xd8\xf3\xa3\xec\x20\xd4\x60\x39\x3a\x39\xf6\xf5\x7c\x44\x86"[..]); ctx.update(b"\x6b\x2e\x86\x8c\x7d\x0e\xe1\xc2\x40\xd3\xa6\x7e\x2f\xdf\x36\xe8\xe2\x38\x17\xc0\x26\x44\xa5\x44\x53\xd1\x04\x54\xda\x58\x59\xd4\x1e\x83\x3a\x52\x85\xec\x63\xe8\xce\x28\xaa\x64\xa5\x04\x35\xa7\x74\x0e\xea\x4b\x7d\x58\x27\x89\x26\x78\xb3\x59\x93\xd3\xf5\xda\x7a\x1c\x64\xf5\x33\x17\x3f\x3d\x0f\xa3\x7e\x1a\xeb\xf7\x08\x27\x05\x2c\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xae\xcf\x5d\xab\x6f\xea\x9f\xfd\x1b\xce\x2c\xdf\xee\xc0\xbe\xe9\xd2\x14\xa6\x69\xe8\x30\x6d\x5b\x66\x88\xaf\xa8\x95\x7f\xc9\x1f"[..]); ctx.update(b"\xe5\xf3\xba\x00\x0c\x43\xbb\x6a\xca\x4e\x0a\x71\x1a\x75\x91\x2a\x48\x24\x1c\xff\xa5\xb4\xb0\xb1\x7f\x90\x1f\x9e\x50\x97\xd9\x40\x36\xc2\x05\xf7\xa3\x07\xd0\x08\x56\x7d\x05\xe5\x8a\xc0\xdf\xaf\x6d\x97\x1b\xf9\xd3\xd4\x50\xcf\x2c\x7c\x83\xf6\xb3\x28\xf6\x76\xe9\xab\x42\x56\x42\xf5\xa5\xa7\x1e\x38\x9d\xc4\xfa\x49\xb6\xd7\xe8\x48\xa0\x9f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\x2d\x6e\x43\x16\xf4\xbc\x18\xd7\x16\x3b\x1b\x21\x46\x2d\x99\xf9\x9c\x6f\x34\xd2\xc0\x0e\xe7\x71\xce\x54\xfd\x6c\x50\x18\xb9"[..]); ctx.update(b"\x93\x9c\x61\xe6\x8a\xf5\xe2\xfd\xb7\x5a\x2e\xeb\xb1\x59\xa8\x5b\x0c\x87\xa1\x26\xce\x22\x70\x16\x22\xf5\xc5\xef\x51\x7c\x3a\xb0\xed\x49\x2b\x16\x50\xa6\xc8\x62\x45\x7c\x68\x5c\x04\x73\x21\x98\x64\x5b\x95\xf8\x4c\xcb\x0e\x72\x6a\x07\xce\x13\x28\x27\xa0\x44\xdc\x76\xb3\x4d\x3f\x19\xa8\x17\x21\xf1\xea\x36\x5b\xc2\x3e\x26\x04\x94\x9b\xd5\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\x10\x57\xb0\xb9\xa6\x27\xbe\x07\xdc\x54\xe7\xd1\xb7\x19\xf0\xa3\xdf\x9d\x20\xd2\x9a\x03\xa3\x8b\x5d\xf0\xa5\x15\x03\xdf\x93"[..]); ctx.update(b"\x9e\xad\xaf\x48\x11\xa6\x04\xc6\x5e\xaa\x7b\x1c\x6e\x89\xf2\xc0\xab\x96\xbe\xbe\xc2\x5a\x95\x0b\xa7\x8a\xac\x16\xd9\x37\x1c\xa1\xe7\x45\x8a\xcf\x33\x1e\x07\x7e\xf6\xa7\x35\xd6\x84\x74\xab\x22\xd2\x38\x9b\xdf\x35\x7f\xb2\x13\x6c\x9f\x40\xe1\xe1\xeb\x99\x59\x2c\x2b\xbb\x95\xd9\x49\x31\x01\x6b\x4d\x37\xfa\xa0\x8b\x1e\x9b\xf7\x1b\xf2\xd3\x70\x8a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc2\x37\x19\x4b\x90\x2e\x48\xdc\xa5\xbd\x09\x6c\xb5\x15\x62\x07\x9d\x0c\xdc\xcb\x2a\xf8\x08\x81\x97\x67\x6c\x17\xb0\x89\x6b\xe2"[..]); ctx.update(b"\x71\xdc\xca\x23\x9d\xce\xd2\xac\x5c\xc4\x9a\x9b\xf9\xea\x69\xa9\x9b\xe2\x2b\xa6\x22\x16\x71\x6b\x52\x4d\xb8\x0f\x33\x7d\xee\x5e\xb7\xe0\x32\x86\x9e\x4a\xdc\x14\x97\xba\xbd\x1f\xa8\x2f\xa8\xc3\xcf\xbd\x30\xd2\xea\xdf\xb4\xc5\xd4\x0f\x99\xf9\xd1\x94\xd7\x18\x2c\x9c\xb7\xd4\x1e\x8a\xdb\xdc\xf2\x91\x7e\x08\x67\x82\xfd\xd7\x56\xe2\x96\x1c\x94\x40\x70"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\x7d\x1c\xff\xb6\x26\x73\x58\x10\xb6\x13\xfd\x31\xef\x9b\xbb\x45\x77\xcd\x75\x25\x21\xab\xe3\xa4\x1a\xfa\x92\x1e\x62\x3d\xa0"[..]); ctx.update(b"\xea\x13\x0d\x32\x36\xbc\xa7\xdf\xfb\x4b\x9e\x50\xe8\x05\x30\x9a\x50\x3e\x73\x47\x22\x7a\xeb\x9f\x1b\xd1\x5c\x26\x3a\x98\xdd\x65\x75\x3d\x2e\xed\xaa\x73\x4b\x9a\xd8\x8f\x41\x15\x8f\x32\x41\x9c\xa5\x29\xf3\x06\x2b\x91\x0c\x01\x9f\x3f\x23\x9f\x63\x5f\xc1\x11\x6e\x5a\xb7\xb2\x42\xfe\xb4\x47\x1e\xd9\x16\x84\x74\xe5\x01\xd3\x9d\x6b\xae\x52\xcc\x21\x06\x1a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\xc7\xa5\x2d\x53\xf7\xb4\x11\x62\xea\x9f\x1e\xf0\xd0\x7c\x3f\xb8\xf0\xec\x62\x16\x17\xf8\x8c\xb3\x82\x8e\xbe\x53\x88\xab\x3d"[..]); ctx.update(b"\x28\xf1\xbe\x11\x56\x79\x2a\xf9\x5c\x6f\x72\xe9\x71\xbf\x1b\x64\xe0\x12\x7b\x76\x53\xff\x1e\x8c\x52\x7f\x69\x89\x07\xa2\x7d\x15\x44\x81\x5e\x38\xc7\x74\x55\x29\xbc\x85\x92\x60\x83\x24\x16\xf2\xb4\x1c\xd0\x1e\x60\xc5\x06\x23\x9a\x7b\xf7\x55\x36\x50\xbf\x70\xd1\xfe\x7a\x2c\x12\x20\xac\x12\x2e\xa1\xe1\x8d\xb2\x74\x90\x44\x7d\x85\x45\xa7\x0b\xf0\xff\xc8\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb2\xeb\x37\x62\xa7\x43\xd2\x52\x56\x77\x96\x69\x28\x63\xb5\x56\x36\xcb\x08\x8e\x75\x52\x7e\xfd\x73\x06\xa2\xf6\xe3\xa4\x8a\x85"[..]); ctx.update(b"\xc8\x40\x0e\xf0\x9c\x13\xe8\xac\xc8\xa7\x22\x58\xf5\xd1\xd2\x03\x02\xc6\xe4\x3b\x53\x25\x0c\x2f\x6c\x38\xff\x15\xbe\x77\xe3\xca\xc0\x4d\x04\xb8\x42\x1f\xc8\xfd\xff\x8b\xe5\xca\x71\xed\xd1\x08\xe9\x28\x7b\x42\xde\xa3\x38\xbf\x85\x91\x00\xee\xa3\x76\xda\x08\xa0\xe6\x95\xf0\xdc\x90\xb9\x5e\x46\x7c\xbd\x3c\x2a\x91\x7a\x50\x4a\x5a\xe0\x1c\x31\x0a\xe8\x02\xc4\xbd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\x96\x6e\x89\xb7\xbc\x7f\x39\xcd\x85\x79\x1b\x92\x18\x0f\xf3\xfe\xd6\x58\xd8\x24\x0e\x39\x3e\x1e\x6d\x7c\x24\xb8\xd0\xac\x95"[..]); ctx.update(b"\xa4\x89\x50\xc9\x61\x43\x8e\x09\xf4\xd0\x54\xac\x66\xa4\x98\xe5\xf1\xa4\xf6\xea\xbf\xde\x9b\x4b\xf5\x77\x61\x82\xf0\xe4\x3b\xcb\xce\x5d\xd4\x36\x31\x8f\x73\xfa\x3f\x92\x22\x0c\xee\x1a\x0f\xf0\x7e\xf1\x32\xd0\x47\xa5\x30\xcb\xb4\x7e\x80\x8f\x90\xb2\xcc\x2a\x80\xdc\x9a\x1d\xd1\xab\x2b\xb2\x74\xd7\xa3\x90\x47\x5a\x6b\x8d\x97\xdc\xd4\xc3\xe2\x6f\xfd\xe6\xe1\x7c\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x44\xc0\x0c\xf6\x22\xbe\xca\x0f\xad\x08\x53\x9e\xa4\x66\xdc\xbe\x44\x76\xae\xf6\xb2\x77\xc4\x50\xce\x82\x82\xfb\xc9\xa4\x91\x11"[..]); ctx.update(b"\xe5\x43\xed\xcf\xf8\xc0\x94\xc0\xb3\x29\xc8\x19\x0b\x31\xc0\x3f\xa8\x6f\x06\xac\xe9\x57\x91\x87\x28\x69\x2d\x78\x3f\xa8\x24\xba\x4a\x4e\x17\x72\xaf\xbe\x2d\x3f\x5c\xba\x70\x12\x50\xd6\x73\x40\x5d\x2c\x38\xd5\x2c\x52\x52\x2c\x81\x89\x47\xbc\xc0\x37\x38\x35\xb1\x98\xc4\xcc\x80\xb0\x29\xd2\x08\x84\xac\x8c\x50\x89\x3c\x3f\x56\x5d\x52\x8a\x0c\xb5\x1b\xf8\xa1\x97\xd9\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6d\x52\x60\x38\x4f\x3c\xef\xd3\x75\x8f\xb9\x00\xdc\xba\x37\x30\xd2\xb2\x3c\xee\x03\xd1\x97\xab\xef\xf0\x13\x69\xdc\x73\xc1\x80"[..]); ctx.update(b"\x4e\x10\xab\x63\x17\x18\xaa\x5f\x6e\x69\xee\x2c\x7e\x17\x90\x8e\xc8\x2c\xb8\x16\x67\xe5\x08\xf6\x98\x1f\x38\x14\x79\x0c\xfd\x5d\x11\x2a\x30\x5c\x91\x76\x2c\x0b\xd9\xdd\x78\xe9\x3e\xf3\xa6\x4c\x8b\xe7\x7a\xf9\x45\xb7\x4f\xf2\x34\xa0\xb7\x8f\x1e\xd9\x62\xd0\xd6\x80\x41\xf2\x76\xd5\xea\x40\xe8\xa6\x3f\x2c\xab\x0a\x4a\x9e\xd3\x52\x6c\x8c\x52\x3d\xb7\xcb\x77\x6b\x98\x25\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd8\x8e\x5f\x3b\x2d\x0a\x69\x8f\xd9\x43\x23\x37\x60\xa3\x00\x0a\x33\x60\xd9\x04\x0e\x73\x74\xb2\x2e\x39\xea\x58\xd8\x68\x10\x2d"[..]); ctx.update(b"\x60\x4d\x88\x42\x85\x53\x54\x81\x1c\xd7\x36\xd9\x5c\x7f\x46\xd0\x43\xa1\x94\x04\x8b\x64\xbf\x6c\xda\x22\xc3\xe0\x39\x11\x13\xdc\xc7\x23\xe8\x81\xae\x2a\xd8\xdc\x57\x40\xaa\x6b\xda\x66\x69\xdd\xb9\x6b\xb7\x1a\xcd\x10\x64\x83\x80\x69\x3f\x7b\x3d\x86\x2c\x26\x25\x53\x77\x70\x04\xbd\x68\x52\x83\x16\x18\x51\x9f\xbb\x82\x47\x59\xf4\xdd\x65\xaf\x1b\x2a\x79\xcc\x01\x09\x6d\x7c\x8d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\x8a\xb6\xcf\x5c\x02\xb9\xae\x8f\x4c\x17\x07\x40\xef\xf1\x59\x2f\x3e\xda\x11\xd3\x42\x0a\xc8\xb4\x21\xd9\x3c\xfb\xb3\x5d\xb8"[..]); ctx.update(b"\x62\x81\x80\xe1\x4f\x41\xeb\xdf\xde\x3b\x44\x39\xde\x55\xee\x9c\xd7\x43\xd4\x10\x40\xf3\x45\x7e\xf2\x28\x03\x70\xdd\x65\x96\x19\xfa\x0c\xe6\x95\x80\xc7\x09\x72\x5b\x27\x5a\x6e\xda\x8b\xcb\x82\xa8\x44\x7c\x20\xfd\xf6\x8c\xba\x15\x41\x2f\x83\xe2\xa1\x00\x79\xfe\x93\x99\xa3\xe3\xfa\x61\x97\x5e\xc0\xa6\x40\x41\xc0\xec\xde\x59\xe4\x84\x4e\x9f\x8a\x60\x8c\xb2\x2d\x25\x76\x85\x41\x82"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8d\x15\x4b\xf6\xf9\xcb\x72\xef\xc0\xd8\xb3\x92\x7a\x8f\x69\x00\x60\xd1\xd4\x8b\xbe\x5c\xc7\x20\x94\xd2\xc8\xb1\x49\xa7\x51\x32"[..]); ctx.update(b"\xfc\x15\x0b\x16\x19\xd5\xc3\x44\xd6\x15\xe8\x6f\xca\x1a\x72\x3f\x4e\xeb\x24\xfb\xe2\x1b\x12\xfa\xcd\xe3\x61\x5a\x04\x74\x4e\xf5\x4d\x8a\x71\x91\xa4\x45\x43\x57\xde\x35\xdf\x87\x8c\xb3\x05\x69\x22\x78\x64\x87\x59\x68\x19\x19\xd1\xaf\x73\xc1\xfb\x0f\xf9\x78\x36\x78\xae\xc8\x38\xda\x93\x3d\xb0\x37\x6e\x16\x29\xfc\xca\x3f\x32\x91\x3f\x84\xbc\x2f\xf3\xff\xc3\xf2\x61\xd2\x31\x2f\x59\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3f\x62\x6c\x8b\xb2\x0a\x13\x24\x95\xbd\x30\x22\xb3\xfc\xd0\xce\x06\x04\xb9\x1a\x9d\x70\x13\x2d\xab\x40\x99\xf7\x3d\xde\x23\xd5"[..]); ctx.update(b"\x6d\xad\xbe\xcd\xd1\x5e\x56\x46\xe3\xf3\x7a\x6f\xe5\xb3\x28\xe0\x61\x13\xcc\xe3\xc8\xcf\x07\x28\x59\x39\xaf\xba\x44\xd1\x17\x32\x10\x17\x90\x2b\x3a\x9d\x2f\xf5\x1f\x60\xd1\x8e\x1b\x58\x5d\xcd\xf3\x4e\x49\xe1\x70\xee\x60\xfa\x4d\x1d\xc2\x46\x54\x8d\x2c\x1f\xc3\x8e\x79\x83\xf4\x27\x69\xc4\x3d\x65\xa2\x80\x16\xf3\xf4\xd4\x79\xeb\xe1\xcd\x8f\xec\x5d\x1f\x88\x6d\xd2\x1a\xca\x50\x67\xd9\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x90\x98\xea\x34\xc4\x0b\x54\x1b\x15\x3e\x80\xa8\xbd\x92\xda\x19\x43\x2b\x18\xb7\xd3\x29\x76\x0b\x30\x2f\x8a\x54\xc3\x95\xdd\x06"[..]); ctx.update(b"\x9c\xc5\xfd\x30\x35\xb7\x2d\xc6\x3b\x8c\x3c\x32\x6f\xd0\x13\x08\x1e\x6b\x87\x16\xf5\x26\xd3\xfe\x17\x6b\x45\x25\x6d\x4c\x37\xcc\x3d\xc8\x41\x7d\xff\x49\xad\xa9\x6c\x70\x2b\x8f\xd7\x15\xc6\x5f\xc0\x8a\x17\xa0\xa7\x20\xb9\xcf\x1e\xed\xfd\x49\x22\xcc\xde\x6b\xab\xa4\x37\xf7\x82\xee\x33\xb9\x53\x71\x05\x6b\x03\x50\xda\xd7\x43\x47\x0c\x3b\x66\x32\x99\xf1\x6f\xcf\xd3\x4f\x6f\xc4\x59\xcd\x0e\xe4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb0\xc0\x4f\x24\xbb\x6d\x3d\x4f\xcb\xfd\xf9\x22\x2d\x0e\x88\x6f\x1e\xb6\x0a\x05\x66\xa4\x78\x08\x5f\x76\x23\xa0\x25\xa5\xb9\x81"[..]); ctx.update(b"\xf3\xf0\x63\xfb\xcf\x2d\x74\xaa\x5a\x02\xd2\x40\xc9\x62\xed\x7b\xb1\x19\xb3\xa2\x12\xbd\xb4\x15\x94\xe2\x84\x28\x10\x8e\x61\x31\x52\xed\x16\xe0\x1e\x45\x1f\xcf\x70\x2b\x0e\x5a\x08\xf8\x2e\xb1\x26\x77\x65\x2b\x93\xe0\x5f\xde\xe0\x0a\xe8\x6c\xf2\xdc\x9a\x1f\xbf\x05\xb9\x39\x52\xec\x5b\x85\x15\xea\xcc\x32\x4f\xb8\x30\xe1\xec\x23\x6a\xfd\x7d\x07\x3d\x4b\x7f\x7a\xb1\xc2\xe0\x48\xb9\x9c\xbf\xa0\x12"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\x30\xd7\x93\x60\xb5\x81\xb1\xbb\xfd\xea\xc5\x71\x33\xa3\x39\x44\x4f\x5c\x44\x53\x8c\x92\x16\x31\xea\xba\xf0\x58\x27\x7d\x32"[..]); ctx.update(b"\x84\x07\x39\xa3\xd6\x99\x2c\x13\xec\x63\xe6\xdb\xf4\x6f\x9d\x68\x75\xb2\xbd\x87\xd8\x87\x8a\x7b\x26\x5c\x07\x4e\x13\xab\x17\x64\x3c\x2d\xe3\x56\xad\x4a\x7b\xfd\xa6\xd3\xc0\xcc\x9f\xf3\x81\x63\x89\x63\xe4\x62\x57\xde\x08\x7b\xbd\xd5\xe8\xcc\x37\x63\x83\x6b\x4e\x83\x3a\x42\x17\x81\x79\x1d\xfc\xae\x99\x01\xbe\x58\x05\xc0\xbb\xf9\x9c\xca\x6d\xaf\x57\x46\x34\xec\x2c\x61\x55\x6f\x32\xe6\x42\x73\x05\x10"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x19\x79\x56\x57\xe0\x8c\xfb\xb2\x47\xa1\x7c\xf2\x09\xa4\x90\x5f\x46\xe4\xdd\xf5\x8e\xea\x47\xfe\xee\x0b\xe9\xbb\x9f\x5c\x46\x0f"[..]); ctx.update(b"\x4a\x51\xb4\x93\x93\xab\x4d\x1b\x44\xfb\x6d\xc6\x62\x88\x55\xa3\x4e\x7c\x94\xd1\x3b\x8b\x21\x42\xe5\xd5\xa7\xbf\x81\x0e\x20\x2c\xef\xdc\xa5\x0e\x37\x80\x84\x4a\x33\xb9\x94\x2f\x89\xe5\xc5\xb7\xdd\x6a\xfb\x0a\x44\x54\x1d\x44\xfb\x40\x68\x78\x59\x78\x0a\xf5\x02\x5f\xec\xc8\x5e\x10\xcf\x82\x49\x42\x9a\x3b\x0c\x6f\xf2\xd6\x8c\x35\x0c\x87\xc2\xfc\xbf\x93\x6b\xd9\xde\x57\x01\xb2\xc4\x8c\xe9\xa3\x30\xc9\xee"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x12\x8f\xb4\x11\x4e\x43\xee\xfd\x19\x27\x7c\x70\x8b\xe9\xe6\x87\x3e\x66\xd7\xfd\x59\xc5\x8a\x14\x85\xb7\xb0\x15\xfa\xcf\xa7\x95"[..]); ctx.update(b"\xaf\xc3\x09\xe6\xb7\xb7\x4d\xfb\x0d\x36\x8e\x38\x94\x26\x6f\xc4\xa7\x06\xc3\x32\x5e\x21\xf5\x55\x0d\x07\xa6\x56\x0e\x3d\x97\x03\xc1\x34\xca\x6a\xd0\x78\xe4\xa7\xb8\x2a\xd6\xfa\x85\xb0\xbc\x1d\xdc\xab\x05\xd4\x3f\x29\xd5\xc5\x8d\x1d\xa7\x8a\xc8\x0c\x37\x05\x1b\x08\x9f\xf3\x1c\xe2\xc0\xc4\x4e\x9c\xe3\xab\xea\x1d\xa0\xf1\xdf\x28\x00\x8e\x17\x8f\xde\xfa\xfc\xa4\x93\x41\x3b\xf1\xd2\x56\xc7\x29\xd0\xa9\x22\x5e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x03\xe7\x82\xb0\x1a\x4b\xa1\x0f\x64\x04\x70\xbb\x3c\xae\x48\x7e\xb9\xcb\xba\xab\x8c\x99\x41\x97\x8b\x19\x4f\x6a\x31\x2c\xf7\x9e"[..]); ctx.update(b"\xc5\xae\x75\x0f\x22\x30\x64\x20\x92\x39\x7b\x84\xad\x55\x26\xc4\x6a\xe9\x48\x0a\xda\x16\x89\x28\x16\xe0\xf2\xdb\x76\x90\xb7\x51\x03\x56\x53\xea\x2f\x33\xda\x3c\xc4\x16\x8b\x59\x1b\x46\xa5\x54\x8e\xff\x7d\x01\x2f\x60\xcc\xfd\xbb\x85\x4d\xee\xc9\xf0\x88\x0c\x47\x2d\xe8\xe1\x27\xb5\x14\x4c\x56\x14\x7c\xcc\xee\x47\x32\xfb\xac\x68\xfc\x59\xa4\x8d\xa7\x4b\x33\xed\x9e\x64\x36\x44\xbb\xe2\x79\x79\x5c\x7c\x73\x7e\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\x4b\x7a\xb2\x43\xce\x6e\x6c\x04\xb4\x83\x88\x8b\xa8\xa6\x55\x46\x5c\x21\xd9\x5e\xb6\x0c\x7b\x8d\x6e\x56\x6a\x38\x11\xba\xe2"[..]); ctx.update(b"\x60\x3e\x13\xf6\x14\x99\xe1\x2e\xc6\xb3\x3b\x68\x84\x7a\x28\x1d\x31\x4f\x54\xdc\x70\x5c\x0f\x3f\xc4\x28\x98\x1f\xf5\x68\x9c\x04\xb5\x19\xfa\xdf\x83\xcb\xc9\xfc\xd0\x40\x9c\x32\x60\x35\x04\x5d\xf4\x80\x57\x0e\x26\x5b\xb0\x80\x94\x00\x37\xce\x40\x76\xa3\x64\x37\xaa\xfd\xb3\x71\xc1\xa6\x2a\xf9\xad\x9b\x61\x4d\xfe\xf8\x97\x08\xfb\xbb\x5e\xbe\xf2\xcb\x95\x28\xcc\x39\x97\x81\xe4\xc5\xb2\x2f\x1a\xa4\xdb\xa6\x23\x80\x9f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5f\x76\x96\x2f\xd3\xd3\x73\xe5\xdb\x29\x53\xc0\x82\x3a\x51\xfe\x81\xf8\x74\x45\x0b\xed\xf7\xe4\x68\x76\x39\x4b\x04\xd3\xef\x66"[..]); ctx.update(b"\xe0\x31\x15\xcf\xa1\x9e\xfc\xd7\x96\xda\x38\x90\x63\xc4\xbe\x6a\xcc\xe6\x84\xd9\x83\xf8\xed\xfb\x3d\xa6\x88\x7b\x0b\x94\xfb\xb5\xe8\x9e\x3a\x1a\x8e\x64\xfd\xd6\x8f\x06\x70\xb1\xa0\x2c\x2c\x33\x38\x4a\x66\x0c\x5a\x22\x66\xb3\xae\x8a\x3b\x4c\xd7\x6f\xae\xcf\x01\x1a\x74\x67\xb9\xb2\xa8\x18\x02\x02\x78\xa5\xa5\x7d\x1e\xb1\xc8\x7f\x12\x24\xc2\xd6\x7d\xd0\x2e\x81\xf1\x55\x3e\xb7\x58\x41\x53\x2c\x2b\x7c\xca\x8f\xe5\xe4\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\x07\xee\x6e\xe4\xa5\x88\x71\xa3\x3c\x49\x65\x7f\xaa\x25\x73\xe4\x75\xf1\x19\x18\xc4\xa4\xe3\x80\x1d\x0e\x17\xfb\x93\xc6\xe3"[..]); ctx.update(b"\x0e\x6c\x1d\x58\xb1\xb9\xd3\xa2\xd3\x99\xaa\xfd\x60\x52\x9e\x07\xd4\x83\xa2\x75\x5b\xb7\xe4\x4c\x37\x3b\x53\x55\x63\x2d\x5f\xca\x76\xd6\xff\x56\xc9\x3a\xf9\x3d\xdc\xec\x5e\xd6\xf6\x27\x53\x42\x0c\x1b\x17\x58\xe4\x85\x42\xdf\x7b\x82\x4b\x00\xa3\xa5\x4d\xfa\xf0\x47\x0b\x18\xd5\x1e\x31\xe1\x0b\x12\xdd\x8e\x32\x4b\x5d\xc1\xbb\x8f\x3b\x73\x05\xcb\x76\x2e\xc6\xef\x13\x7d\xad\xff\xd4\xa2\x46\x67\x48\x86\x1d\x90\x04\xf6\x26\xb0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\xab\x2d\xbb\x02\x94\x43\x54\x79\x90\x51\x24\x7b\x1a\x25\xc1\x9f\x36\x96\xe1\xaf\xcb\x50\x2b\x85\x9e\x83\x79\x8b\x33\xfd\x77"[..]); ctx.update(b"\x6d\xb2\xa4\x3a\x22\x9b\x10\xc3\x62\x92\x49\xfc\x51\x36\x46\x8b\x4d\x84\xdf\x7b\x89\xec\x90\xeb\xf7\xaa\x7a\x03\x6c\x53\xaa\x2d\xff\xae\x9e\x81\xb2\xc6\x05\x80\x54\x3d\xc7\x06\xa5\xe3\x45\x7a\xbc\x87\xe2\x48\xa6\x0e\xc2\x91\x50\xc2\xd2\x21\xa6\xec\x08\xa1\xfd\xa4\xec\x0d\xae\xe8\x57\x69\x04\xec\x7a\xb0\x59\xb1\x23\x0e\x7b\xd9\x3c\x4e\x55\xba\x94\x96\xcb\xb1\xe3\x52\xe5\xb8\x08\x6e\x30\x3b\x94\xc8\x61\x28\x8c\xe5\x3c\x46\x6b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8c\xc4\xd3\x9b\x2f\x5b\xa0\xbc\x9d\x2e\xe2\xa8\x77\x7c\xf0\x85\x33\xe6\x0c\xc6\x9b\x65\xa7\xb3\x1c\x5c\x21\x21\x19\x3a\xa3\x1e"[..]); ctx.update(b"\x31\xd9\x95\xf7\xff\x8b\x6d\xe7\x08\x29\xa8\x33\x6c\x61\x0f\x10\xdf\x2c\x86\x61\x07\xa4\x92\x2b\x25\x15\x18\x49\xf8\x56\x68\x61\xdf\x5a\x79\x16\x3d\x02\x76\x7f\x21\x35\x7a\xd8\x27\x33\x99\x78\x99\x26\x1f\x03\xda\xfb\x1c\xe1\x05\x6f\x20\xef\xd1\x6d\x43\x74\xb8\x97\x68\x56\x58\x23\xc3\x8e\x19\xe8\x99\xd9\x10\xb8\x47\xb0\x23\xf1\x86\x7b\x6e\x4f\xed\x02\xe6\x04\xb8\x24\x3c\x0b\xc7\xcb\x05\xb9\xea\x1f\x17\x95\x5b\xfa\x36\x69\x8c\x9c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc9\x9c\x71\x91\xb3\x4c\x9a\xd3\xf9\x41\xd4\xad\x44\x2c\xc8\x65\x20\x5c\xbb\x4c\x2a\x69\x27\xc5\x92\xe8\x31\xcb\xc4\xd3\x6f\xcf"[..]); ctx.update(b"\xcb\x0b\x8c\xb7\xde\x62\x1c\x8e\x0a\x0f\xc6\xbe\x2f\xc1\x8d\x0e\x88\x18\xa2\xc2\xdd\x0b\x32\x19\xfa\x87\x83\x1a\x61\x58\x3f\x90\x3c\x4d\x10\x54\x95\x97\x6c\xca\xc9\x73\xb3\xae\x3a\x09\x77\x11\x45\x93\x1a\x9e\x74\xc1\x9f\x22\xf4\x5c\xba\x4c\x49\x2b\x29\xb1\x40\x13\x47\x12\x25\x81\xdf\xe2\x37\x0d\x3e\x03\x59\x57\x8c\xd1\x0a\x35\x5c\x61\x97\x11\x81\x0a\x8f\x8c\x23\x25\x78\x67\x13\x12\xc0\xa4\x5c\x7c\xf7\xe8\x1b\xdd\x3b\x24\x90\x44\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6d\x2f\x57\xa7\xe4\x2b\x35\x36\x9c\xf2\xcd\x60\xca\xf9\xe6\x5a\xca\x7d\x9a\xa0\x19\xe6\x82\x4b\xb8\x06\x34\x8f\x1a\xcf\x3c\x7c"[..]); ctx.update(b"\x48\xdf\xf7\x8a\xed\x5f\x6e\x82\x30\x54\x92\x4a\x78\xdc\x1b\x8e\x51\xa1\x17\xf1\x61\x01\x81\x52\x9f\x6d\x16\x4e\xbf\x0f\x64\x06\xf0\xb0\x24\x22\xca\xd8\xc9\x16\x82\x37\x59\xa3\x61\x43\x7c\xa1\x74\x23\xd3\xfd\x84\xcc\x8a\xfe\x48\x6a\x31\xcc\xda\x01\xc7\x32\x68\x54\x18\xa3\x2c\x06\x4a\x7b\x9e\xff\xb2\x88\xe8\x11\xec\xc9\x9a\xdb\x2a\x75\x9f\xee\xcc\x3f\x70\x2f\x31\xd9\x87\x7d\xcd\xb7\x17\x93\x7c\x15\xfa\x2f\x16\x3b\xea\x74\x44\x00\xf5\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\xb6\x31\xf0\xf0\x0a\x30\x24\xad\x18\x10\xda\xbf\x02\x71\x1e\x28\x44\x96\x68\xab\xe2\x7f\x69\x38\x09\x42\x26\x89\x68\xd4\xf6"[..]); ctx.update(b"\x06\xcc\x9f\xa5\x42\xce\xb3\x5c\x88\xfb\x6a\xb8\x2c\x29\xd5\xdc\xd5\x30\xf8\x07\xd3\xf1\xc3\xbc\xb3\x97\x44\x21\x10\x1d\x1a\xa6\xac\x11\x2d\xe6\xbf\x97\x9c\xd2\x8e\xb0\xf7\x0c\x40\xbc\xaf\x91\xed\x3e\xca\x9b\xf9\xe0\xdb\xc6\xa0\xb7\x32\x71\xd1\xc7\x50\x67\x40\xca\x9e\xbf\xb7\x2d\x5e\x00\xac\x5c\xe1\x89\x19\x3f\xfa\x30\x88\x04\xb4\x2a\x6d\x20\x40\x2b\xb9\x90\x31\xcd\xac\x65\xec\x36\xeb\x7f\x59\xf5\xd2\x99\xdf\x2e\x0b\x86\x90\xf7\x60\xb9\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x57\x4f\xd8\x2a\x9f\xce\xb8\xf7\xbb\xbf\x24\x4d\x16\xe0\x41\x2c\xbd\xa8\x15\x3b\x72\x08\x46\xc3\x2b\x8f\x10\xfe\x57\x79\xa8\x81"[..]); ctx.update(b"\x8d\x93\x62\x7c\x0b\x7c\xbf\x61\xa7\xfe\x70\xe7\x8c\x2c\x8e\xd2\x3b\x13\x44\xb4\xcf\xed\x31\xbd\x85\x98\x0d\xd3\x7b\x46\x90\xe5\xb8\x75\x8f\x7d\x6d\x22\x69\x95\x7a\x39\xa1\xac\x34\x51\xcc\x19\x66\x96\xae\x9e\x96\x06\xa0\x40\x89\xe1\x34\x56\x09\x5a\x1c\xe1\xe5\x93\x48\x1b\x3a\xc8\x4f\x53\xf1\xcb\x10\xf7\x89\xb0\x99\xf3\x16\xc9\x48\x39\x8a\xd5\x2f\xa1\x34\x74\xbd\xf4\x86\xde\x9b\x43\x1b\xd5\xd5\x7e\xf9\xd8\x3a\x42\x13\x9a\x05\xf1\x12\xb2\xbd\x08"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x34\x4e\xc8\x66\x42\xea\xbb\x20\x6b\x2f\xd9\x30\xe4\xc5\xdd\xe7\x8a\xa8\x78\x57\x7d\x6c\x27\x1c\xb0\x06\x9d\x49\x99\x49\x56\x52"[..]); ctx.update(b"\xd0\xaf\x48\x4b\x8b\xe6\xb4\x1c\x19\x71\xae\x9d\x90\x65\x0a\x1e\x89\x43\x56\xc9\x19\x1d\x6b\xe3\x03\xfa\x42\x4f\x2b\x7c\x09\x54\x4e\xc0\x76\xa0\xf1\x86\x5c\x8c\x97\x92\x7c\xa1\x37\x52\x9d\x5b\xed\xc0\xdf\x2e\xf0\x8a\x4c\xc7\xc4\x70\xb0\x94\xb1\xee\xaa\x86\x73\x1c\x04\x16\x33\xd2\x40\x86\xb6\x0f\x73\x69\xd5\x9c\x57\x65\x2d\xec\x9b\x38\x17\x47\x7d\xf9\xdb\x28\x9b\xa0\x20\xe3\x06\xc9\xa7\x8a\x99\xb5\x39\x12\x89\x92\xde\xb2\x3c\xfc\x50\x8c\x5f\xc3\xaf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb7\xba\x99\x87\x26\x47\x7c\x32\x79\x2e\x9c\x3e\xdd\xc1\xcb\x6f\xeb\x7c\x39\x33\xe4\x9f\x2e\x75\x90\xd8\xce\x7a\x21\x13\xe6\xf8"[..]); ctx.update(b"\xb2\x12\xf7\xef\x04\xff\xcd\xcf\x72\xc3\x9a\x63\x09\x48\x6c\x0e\xeb\x39\x0f\xf8\xf2\x18\xd6\xbd\x97\x8b\x97\x66\x12\xf7\xf8\x98\xc3\x50\xe9\x0b\xd1\x30\x72\x3e\x11\x26\xaf\x69\x29\x50\x19\xb4\xf5\x2c\x06\xa6\x29\xab\x74\xe0\x38\x87\x02\x0b\x75\xd7\x3f\x0f\x78\xe1\x27\x85\xc4\x2f\xeb\x70\xa7\xe5\xf1\x27\x61\x51\x1c\x96\x88\xc4\x4d\xa6\xaa\xa0\x2a\xfa\x35\xb3\x1e\xdc\x94\xc3\xa0\x77\x9b\x6a\xb9\x46\x25\x25\xc0\xcc\xfb\xa7\x69\x86\xf8\x73\xfe\x1e\x6b\xa9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2f\x26\xb9\x6c\x1f\xa3\xf3\xde\xe7\x28\xf1\x75\x84\xe7\x33\xb4\x18\x98\x21\xc6\x59\xb8\x88\x5a\x5f\xb1\xd1\x2d\x60\xd2\xaa\xa9"[..]); ctx.update(b"\x86\x59\x1a\xda\x83\xfb\xa8\x17\x5a\x0f\xe9\x1d\x26\x4e\x7f\x9b\x2d\xf9\x7e\xe4\xc3\x25\x70\xe7\x6b\x57\x9d\x61\x40\x50\x89\x51\x93\x2a\xbd\xad\xd6\xa4\xca\x53\xb8\xbb\x8c\x42\x92\x7a\xac\x0a\x02\x12\x68\x81\xd5\x2d\x97\xb8\x2b\x80\xe7\x2d\xd5\x9f\x6a\x42\x02\x16\x51\xee\x1b\xb5\xf7\xb3\xeb\x2b\x21\xd0\x03\xd7\x84\xb7\x5d\xda\x87\xc1\x3f\x71\x4b\x21\x62\x82\xe8\x17\x54\x74\xfa\x66\x1b\x44\x5d\x07\x1b\xd5\x34\x1f\x3a\x88\x30\x2f\x41\x0d\x0f\x8a\x85\x79\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe3\xed\xbc\x8c\x42\xce\x5d\x23\x84\xdf\xb2\x4f\xb1\xde\x5d\x47\x98\xb1\xbc\x3c\xc7\x8c\x97\x03\x38\x94\x04\x0d\xfa\x6f\xeb\x6c"[..]); ctx.update(b"\x92\xb5\xa8\xe8\x4b\x6a\x2a\xc4\xd5\xb1\xe6\x1d\x63\x80\x4a\xbd\x64\x1d\xd6\x30\x05\x8e\xc6\xd5\xf7\x52\xf1\x35\x72\x4e\xf1\x94\x7a\x0a\x84\xc6\x61\x1d\x32\x44\x8d\xe6\x30\x7f\x7b\x7d\x85\x74\x04\xe9\x6b\x81\xdf\x94\xf8\x77\x68\xfc\xfd\xf0\x9f\xaa\x2f\xe3\x74\x68\x84\x75\x42\xaf\xe0\x12\x99\x5f\xf1\xbd\x40\xb2\x57\xa4\x7a\x73\x09\xf8\x89\x6b\xf4\xfb\x71\x1d\xe5\x5b\xfe\xb3\xa8\xbe\x08\x37\x72\x9e\xf6\x06\x7c\x57\x81\x82\xf1\x7e\xbb\x08\x0a\x75\x4f\x22\x77\x3c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\xed\x0a\x70\x28\x12\x29\x7c\x2a\xa1\xb6\xb4\xb5\x30\xc2\xb5\xed\x17\xec\xfb\xa6\xd5\x17\x91\xcf\x15\x2d\x43\x03\xce\xd2\xe6"[..]); ctx.update(b"\xd2\x84\xa0\xa9\xa4\xde\x5d\x4c\x68\xcc\x23\x88\x4c\x95\xad\x76\x19\xaa\x39\xb2\x0a\x2c\xf4\x01\xde\xae\xb3\x36\x2c\x3c\xe3\x56\xf7\x9c\xc3\xfa\x82\xd3\xd1\xf5\x65\xec\x81\x37\xe1\xf4\x35\xf1\x71\x49\x6a\xfa\xa1\x15\x2f\x72\x23\x15\xdc\xa5\x20\x9f\x00\x31\xcc\xe3\x9b\x6c\x3d\x71\x8e\x00\x7d\xfb\x4f\xd8\xde\x5c\xe1\x40\x8d\xda\x04\x47\x6a\xa8\xa9\x68\x17\xaf\xa8\x6a\x4f\x8f\xb5\x85\x7a\xe0\x91\xc6\x7e\xbd\x7d\xb5\xd7\x83\xf4\x34\xea\xd6\x99\xaa\x96\xe5\x6f\x61\x0d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x65\x4e\xcc\xef\xd0\xa4\xfd\xb2\xac\x0a\xb5\x62\x88\xc6\x43\x99\xb3\x7b\xc4\xd5\x7f\xf4\xa9\xf1\xcc\xe9\x43\x62\xfc\x49\x1b\xda"[..]); ctx.update(b"\xf5\x7f\x0f\x87\x95\x38\x5b\x80\x52\x46\xa0\xa2\x57\x3a\xfc\x27\x43\x46\xa9\xec\xcf\x50\xc6\x26\xb0\x45\x5a\x50\xbf\xb0\x96\x68\x57\x8b\x5a\x5a\xfe\x54\xfb\xbd\x48\x64\x44\xbd\xf9\x7d\xba\x58\x6a\xa2\x24\xce\x2e\x2b\x4b\x52\xf4\x18\xff\x06\xaf\xa6\x5a\x26\xf5\x20\x49\x83\xa5\xf8\x47\x34\xcd\x16\x6c\x88\xcb\x70\xa7\x3f\xb2\xdb\x48\xf9\xef\x20\xc1\xee\x2c\x53\xad\xe0\x74\x60\x11\x4e\x98\xe7\xe2\xeb\xd2\x4a\xc8\x4e\xa9\x04\x22\xeb\x14\x3c\x4a\x42\xe2\x99\x1a\x56\x59\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\x5e\xc8\xb1\x44\xa6\x67\xdc\xea\xe8\xfa\xdd\x28\x7d\xf8\x1c\x10\xef\x3e\xbe\xf8\x7f\xf2\xfb\x56\xe6\x0a\xe7\x08\xa8\x8f\x3b"[..]); ctx.update(b"\x2a\x41\xa5\x2e\x65\x78\x87\x35\x88\xa5\x7f\x11\xf1\xbe\x7c\x7e\xb3\x98\xd0\x1f\x3b\xfd\xec\x2c\x33\xfe\x6b\x65\xa6\x8a\x53\x4a\x65\x40\x97\x8d\xaa\x82\xe0\xc8\xfc\xcb\x8c\x6c\x52\x42\xf7\xf9\x7b\x8f\xfa\x75\xbd\xed\xb2\x17\xbd\x80\x83\x43\x9e\xea\x5c\xbb\x6d\x19\x3c\x13\xbd\x62\xf5\x65\x8e\xd4\x30\x47\x74\xc6\xb1\xfa\xf5\xb3\xdc\xe4\x32\x48\x78\x40\xca\xba\xb4\x15\xfb\x5d\x67\x64\x0a\x73\x9c\xa6\xe5\x41\x4e\x76\x08\x69\x70\x8a\x9d\x73\x31\xe7\xe7\xad\x7d\x55\xe0\x35\xc7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa6\xa1\xb8\xa2\x6f\x6f\x44\x0f\x19\xf1\x6d\xce\x1d\x30\x01\x47\x7d\x73\xee\x7f\x6c\x37\x4b\xce\x29\x22\x16\x7b\x81\x97\x0d\x6a"[..]); ctx.update(b"\x4d\x11\xaa\x5d\x3c\x6b\x69\x00\xf4\x9f\xf9\x0d\xd8\x15\x74\x45\x72\xbe\x56\x48\xb6\x4b\xde\x63\x8b\x9d\xb7\xa9\x87\x7d\xd7\x45\xfa\x8e\xa8\x0e\x2f\x7f\x65\x5c\xee\x85\xc7\x1a\x45\x09\xe2\x1d\x89\x9e\x49\xb4\x97\x35\x79\x81\x5f\x94\x75\x87\xa4\x04\xad\x83\xfd\x4a\x24\x80\x20\xd9\xd2\xa6\x5f\x46\x48\x53\x73\xfc\x92\x6d\x79\x31\x61\xf6\x3a\x19\x6a\xe0\xaf\x59\x09\x23\xc5\xbe\x2a\x0e\x5d\x2f\x69\xda\x97\xe0\x78\x85\x50\xc9\xc1\xde\xe9\x57\x4d\xdc\x4a\x61\xe5\x33\x27\x5d\x77\x29"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfc\x51\x59\xf0\xdd\xd6\xd7\x65\xc8\x5f\xcc\x3f\xc3\xac\x1d\xc0\xd3\x17\xd8\xea\x0b\x11\x0e\x96\xac\x9f\x7a\x39\x8d\xc3\x86\xc5"[..]); ctx.update(b"\x05\xcd\x99\xbf\xe0\x31\xd1\x23\xca\x70\x61\xd3\xde\x09\x56\xf4\xbb\xf1\x64\xba\xd7\x92\xdb\x88\x17\x13\xd6\x59\x9d\xda\xb5\x5e\xe2\x4f\xce\xe8\x04\xe3\x60\x89\x61\x52\xc8\x76\x64\x24\xf8\x30\x9f\x7a\x24\x64\x1a\x07\xbe\x0f\xeb\x5d\xa5\xe5\x07\x6a\x9a\xf4\x58\x42\xf3\x85\x10\x1f\x93\x43\x3c\xa5\x19\x9f\x9c\x6b\x58\x72\xb2\xb8\x08\xe4\x19\x8a\xba\x8e\x18\xdd\x12\xdb\x77\x29\x30\xb4\x91\x2d\x6f\x5c\xab\xeb\x52\x98\x84\xf4\xbb\x14\x2d\xe5\x5e\x02\x1b\x32\x76\x04\x7b\x22\xb6\x4c\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\xa0\x77\x42\xe6\xf1\xf4\x7a\xd0\x20\xed\x66\x84\xed\xc8\xdb\xa4\xaf\x36\xb7\x82\x95\x5f\x0f\x97\x2b\xe3\xae\x98\x0a\xea\x0e"[..]); ctx.update(b"\x52\x96\x84\x39\x8d\x68\xbd\xc1\x9e\x7a\x00\xce\x32\xcc\x1a\x8c\x13\x15\xb9\x7f\x07\x13\x74\x74\xf6\x1f\x0c\xb8\x4a\x04\xf2\x87\x9b\x11\x09\xc7\x8c\x6d\xac\xf7\xf0\xab\xf3\x62\x32\x9e\x32\x98\xf3\x6f\xc3\x1e\xf4\xec\x06\x65\x37\x23\xa5\xf9\x61\x30\x1d\xfb\x63\x53\x7a\xd1\x59\x46\x61\x1c\xb2\xcd\x54\xea\x92\x8e\x32\x2e\x74\x23\xfd\x6d\x14\x6e\xe0\xb9\x8c\x2c\x71\xe3\xbd\xcd\x33\xed\xf0\x84\x5f\xbe\xbd\x9a\xe4\x19\x2d\x07\xac\xd0\x1b\x43\x21\x35\xe0\x5a\xf0\xd2\x2f\x3f\x0c\x5a\x3d\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa0\x70\x49\xb6\xeb\xd7\xb3\x55\x47\x9a\x3d\x80\x2f\xda\x43\x6b\x83\xae\x67\x47\xd7\x41\xcf\x96\x26\xf7\xc6\x2f\x47\xcb\xd5\x63"[..]); ctx.update(b"\x98\x2f\xb5\xf4\xaf\x49\x8a\x4a\x75\xe3\x3a\x03\x32\x35\xea\x3d\xdb\x70\xd9\xd2\x36\x51\x9f\x88\x3f\xf5\xb3\x88\xcb\xef\x30\x12\x6b\x98\xd9\x6e\x93\xa6\x5a\x26\xfb\x00\xd1\x72\x46\xd1\x8c\xf4\xe2\xdb\x14\xa5\x2f\x0f\x6b\x10\xe3\x5a\x93\xbe\xad\xc1\x4f\xf1\x18\xb0\x2e\x95\xb3\x8f\xc4\x73\x6f\x97\x3b\xa8\x48\xe4\x0b\x55\x27\xcb\x05\x99\x07\x6d\x96\xbc\x57\x8c\x4a\xad\xa0\x9e\x8f\xaf\x68\x20\xbc\x4f\x56\x2d\x51\x99\x97\x4f\x80\x8b\x7f\x95\xed\xca\x74\xe6\xb3\x94\x08\x94\xa7\xf6\x65\x34\xe0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\xc6\x0f\xec\x5a\x08\x9a\x23\xf5\xda\x3e\xd2\x49\x2a\xa2\x1f\xcf\x7a\xa3\x61\x83\x85\x0f\xaf\xc1\x5a\xe8\xc6\x3f\x59\x6d\xb0"[..]); ctx.update(b"\xca\x88\x61\x48\x28\xf8\xac\xdb\x5f\xcf\xfa\xb6\xbb\x2f\xb6\x2d\x93\x2b\x78\x08\xe4\xd9\xcc\x31\x39\xa8\x35\xb0\xce\xf4\x71\xd9\xf4\xd8\xff\xc4\xb7\x44\xdf\xfe\xbf\x4f\x99\x7e\x74\xce\x80\xdb\x66\x25\x38\xbc\xeb\x5d\x76\x8f\x0a\x77\x07\x7e\x97\x00\x14\x9e\xa0\xe6\xa4\x6a\x08\x8a\x62\x71\x72\x16\xa1\x4b\x60\x11\x9d\xd1\x9c\x31\x03\x8e\xd8\x70\xb4\x70\x91\x61\xc6\xc3\x39\xc5\xcc\x60\x94\x5a\x58\x22\x63\xf3\xbe\x9a\x40\xcd\x1a\x04\xc9\x21\x94\x79\x00\xf6\xe2\x66\xf2\x39\x0f\x3c\x97\x0f\x7b\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfe\x2d\x41\x83\xcc\xda\xa8\x16\xb4\x44\x6a\x9b\x6c\x07\xd0\xba\x4b\x42\xac\x74\x35\x99\xdb\x5d\xc4\x82\xb1\x94\x1f\x44\x3c\x71"[..]); ctx.update(b"\xab\x6b\x92\xda\xf8\x32\x75\xcb\x9c\x1b\x76\xcf\xb5\x9f\xbc\xc8\xac\x53\x18\x8e\x0b\x69\x80\x91\x8e\x7a\xc0\xc0\x7c\x83\x6c\xa9\x37\x2d\x19\xe1\x12\x51\xcc\xa6\x64\xbb\xb3\xc3\xdb\x2e\x13\xb4\x12\xa9\x82\x0b\x65\xe9\x56\x12\x04\x2f\x5d\xb2\x46\x43\xcf\x93\x40\xb9\x80\x85\x97\x73\x5a\x1f\x92\x67\x0b\xa5\x73\xa2\xfb\x2f\x08\x8d\x81\x08\x7d\x70\x56\x55\x74\x34\x4a\xf7\x57\x6d\x35\xb2\xed\x98\x31\x8e\x2c\xa0\x06\x7d\x4f\xa8\xe6\x3f\x28\x04\x5b\x83\xb6\x88\x7d\x4f\xfa\x06\x68\xa1\x07\x12\xed\x57\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x45\x38\xe1\xae\x1c\xd7\x35\x77\x10\xb5\x6c\x3b\xc6\xf1\xbd\x7a\x85\x64\x11\x8a\x1e\x0f\x9a\xcc\x30\xfc\xf0\xb5\x39\x6e\xef"[..]); ctx.update(b"\xbf\xd4\xc7\xc8\xe9\x08\x58\xcc\xf9\xc8\x83\x4a\xbe\xfd\x9c\x18\x46\xca\x4a\x11\x96\x6f\xdd\x13\x9d\x6d\xe2\x4a\x6b\xeb\xf4\xb1\x9f\x58\xd5\xd5\x1e\x52\xbd\xdd\x0b\xc6\xf1\xc7\xf3\x59\x98\xf4\x47\x07\xca\xe7\x10\x0a\xeb\x4a\xde\xfe\x37\x31\x01\x42\x9d\xa3\xfc\xa1\xd1\x57\x37\x32\x9d\xbb\xf4\x7c\x78\x3a\x84\xde\x59\xbf\xbb\x2f\xcd\x75\xa1\xa1\x48\xd2\x6a\xeb\xb8\xd3\xa9\xa7\x60\x89\xc0\xf8\xe4\xd4\x9b\x71\xa0\x6f\x9e\x32\x3e\x2c\xdb\x54\x88\x81\x89\x88\x7a\x44\xb1\xfa\x9c\xb3\x2b\x7c\x8f\xb7\xc9\xe0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\xb1\x78\x43\xbc\x85\x1a\x72\x1c\x5a\x25\x8e\xef\x57\xb3\x85\x4d\x02\x19\x0e\x73\x2d\x9b\x8e\x7a\x9f\x92\x6a\xc4\x09\xc1\x73"[..]); ctx.update(b"\xc5\x01\x94\x33\xc2\x85\xda\x2b\xb9\x3f\x11\x9e\x58\xb4\xf3\x6c\xd1\xe4\xd9\x9d\xda\x35\xdb\xf4\xf8\xae\x39\xc7\xfe\x65\xfa\x0e\xd0\x3b\xd2\xb9\x6d\xc6\x49\x47\x2d\x8f\x1a\x94\x47\x7e\xd9\xf2\x95\x92\xd9\x7c\x9c\xd5\x4d\xa7\xc7\x90\xad\x1a\xf3\xbb\x5c\xc0\x30\xb7\x87\x1b\xc6\x40\x50\xdb\x77\x9d\x2c\xaf\x04\x19\x89\x5b\xf3\xb7\xb5\x0b\x8e\x22\xfb\xe6\x2f\xe3\x0f\xe7\xbb\xd6\xac\xe8\x6d\xdf\x7b\x00\xd5\xd9\x37\x0f\x20\xcf\x0f\x97\x99\x6f\x4b\xce\x70\xbb\x33\xf1\xba\x02\x2c\xda\xba\x0f\x25\xd5\x5f\xa0\x31"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf7\xc9\x2a\x3f\xb7\xf1\x80\x37\x0d\x62\x8b\xe7\x8d\xe8\x74\xd6\x93\xf7\x4c\xcc\x7a\x54\xc7\x41\x63\x42\x58\xd8\xc5\x12\xfd\x7f"[..]); ctx.update(b"\x84\xb6\x0c\xb3\x72\x0b\xf2\x97\x48\x48\x3c\xf7\xab\xd0\xd1\xf1\xd9\x38\x04\x59\xdf\xa9\x68\x46\x0c\x86\xe5\xd1\xa5\x4f\x0b\x19\xda\xc6\xa7\x8b\xf9\x50\x94\x60\xe2\x9d\xd4\x66\xbb\x8b\xdf\x04\xe5\x48\x3b\x78\x2e\xb7\x4d\x64\x48\x16\x6f\x89\x7a\xdd\x43\xd2\x95\xe9\x46\x94\x2a\xd9\xa8\x14\xfa\xb9\x5b\x4a\xae\xde\x6a\xe4\xc8\x10\x8c\x8e\xda\xef\xf9\x71\xf5\x8f\x7c\xf9\x65\x66\xc9\xdc\x9b\x68\x12\x58\x6b\x70\xd5\xbc\x78\xe2\xf8\x29\xec\x8e\x17\x9a\x6c\xd8\x1d\x22\x4b\x16\x11\x75\xfd\x3a\x33\xaa\xcf\xb1\x48\x3f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\x14\x63\x0a\x39\xdc\xb9\x97\x92\xcc\x4e\x08\xca\xe5\xdd\x07\x89\x73\xd1\x5c\xd1\x9f\x17\xba\xcf\x04\xde\xda\x9e\x62\xc4\x5f"[..]); ctx.update(b"\x14\x36\x5d\x33\x01\x15\x0d\x7c\x5b\xa6\xbb\x8c\x1f\xc2\x6e\x9d\xab\x21\x8f\xc5\xd0\x1c\x9e\xd5\x28\xb7\x24\x82\xaa\xde\xe9\xc2\x7b\xef\x66\x79\x07\x79\x7d\x55\x51\x44\x68\xf6\x87\x91\xf0\x53\xda\xa2\xdf\x59\x8d\x7d\xb7\xd5\x4b\xee\xa4\x93\xbd\xcb\xb0\xc7\x5c\x7b\x36\xad\x84\xb9\x99\x6d\xca\x96\x35\x41\x90\xbd\x96\xd9\xd7\xfb\xe8\xff\x54\xff\xaf\x77\xc5\x5e\xb9\x29\x85\xda\x50\x82\x5e\xe3\xb4\x17\x9f\x5e\xc8\x8b\x6f\xa6\x0b\xb3\x61\xd0\xca\xf9\x49\x34\x94\xfe\x4d\x28\xef\x84\x3f\x0f\x49\x8a\x2a\x93\x31\xb8\x2a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9b\x69\x05\x31\xde\xe9\x48\xa9\xc5\x59\xa2\xe0\xef\xab\x2e\xc8\x24\x15\x1a\x91\x75\xf2\x73\x0a\x03\x0b\x74\x8d\x07\xcb\xaa\x7f"[..]); ctx.update(b"\x4a\x75\x7d\xb9\x3f\x6d\x4c\x65\x29\x21\x1d\x70\xd5\xf8\x49\x17\x99\xc0\xf7\x3a\xe7\xf2\x4b\xbd\x21\x38\xdb\x2e\xaf\x2c\x63\xa8\x50\x63\xb9\xf7\xad\xaa\x03\xfc\x34\x8f\x27\x53\x23\x24\x83\x34\xe3\xff\xdf\x97\x98\x85\x9f\x9c\xf6\x69\x3d\x29\x56\x6f\xf7\xd5\x09\x76\xc5\x05\xec\xb5\x8e\x54\x3c\x45\x9b\x39\xac\xdf\x4c\xe4\xb5\xe8\x0a\x68\x2e\xaa\x7c\x1f\x1c\xe5\xfe\x4a\xcb\x86\x4f\xf9\x1e\xb6\x89\x2b\x23\x16\x57\x35\xea\x49\x62\x68\x98\xb4\x0c\xee\xb7\x81\x61\xf5\xd0\xea\x4a\x10\x3c\xb4\x04\xd9\x37\xf9\xd1\xdc\x36\x2b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1a\xc7\xcc\x7e\x2e\x8e\xa1\x4f\xb1\xb9\x00\x96\xf4\x12\x65\x10\x07\x12\xc5\xdd\x41\x51\x9d\x78\xb2\x78\x6c\xfb\x63\x55\xaf\x72"[..]); ctx.update(b"\xda\x11\xc3\x9c\x77\x25\x0f\x62\x64\xdd\xa4\xb0\x96\x34\x1f\xf9\xc4\xcc\x2c\x90\x06\x33\xb2\x0e\xa1\x66\x4b\xf3\x21\x93\xf7\x90\xa9\x23\x11\x24\x88\xf8\x82\x45\x0c\xf3\x34\x81\x9b\xba\xca\x46\xff\xb8\x8e\xff\x02\x65\xaa\x80\x3b\xc7\x9c\xa4\x27\x39\xe4\x34\x7c\x6b\xff\x0b\xb9\xaa\x99\x78\x02\x61\xff\xe4\x2b\xe0\xd3\xb5\x13\x5d\x03\x72\x33\x38\xfb\x27\x76\x84\x1a\x0b\x4b\xc2\x63\x60\xf9\xef\x76\x9b\x34\xc2\xbe\xc5\xed\x2f\xeb\x21\x6e\x2f\xa3\x0f\xa5\xc3\x74\x30\xc0\x36\x0e\xcb\xfb\xa3\xaf\x6f\xb6\xb8\xde\xda\xcb\xb9\x5c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc1\x63\xcd\x43\xde\x22\x4a\xc5\xc2\x62\xae\x39\xdb\x74\x6c\xfc\xad\x66\x07\x4e\xba\xec\x4a\x6d\xa2\x3d\x86\xb3\x10\x52\x0f\x21"[..]); ctx.update(b"\x33\x41\xca\x02\x0d\x48\x35\x83\x8b\x0d\x6c\x8f\x93\xaa\xae\xbb\x7a\xf6\x07\x30\xd2\x08\xc8\x52\x83\xf6\x36\x9f\x1e\xe2\x7f\xd9\x6d\x38\xf2\x67\x4f\x31\x6e\xf9\xc2\x9c\x1b\x6b\x42\xdd\x59\xec\x52\x36\xf6\x5f\x58\x45\xa4\x01\xad\xce\xaa\x4c\xf5\xbb\xd9\x1c\xac\x61\xc2\x11\x02\x05\x26\x34\xe9\x9f\xae\xdd\x6c\xdd\xdc\xd4\x42\x6b\x42\xb6\xa3\x72\xf2\x9a\x5a\x5f\x35\xf5\x1c\xe5\x80\xbb\x18\x45\xa3\xc7\xcf\xcd\x44\x7d\x26\x9e\x8c\xae\xb9\xb3\x20\xbb\x73\x1f\x53\xfe\x5c\x96\x9a\x65\xb1\x2f\x40\x60\x3a\x68\x5a\xfe\xd8\x6b\xfe\x53"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\x3e\x93\xf2\xb4\x9f\x49\x33\x44\xcc\x3e\xb1\xe9\x45\x4f\x79\x36\x30\x32\xbe\xee\x2f\x7e\xa6\x5b\x3d\x99\x4b\x5c\xae\x43\x8f"[..]); ctx.update(b"\x98\x9f\xc4\x95\x94\xaf\xc7\x34\x05\xba\xce\xe4\xdb\xbe\x71\x35\x80\x4f\x80\x03\x68\xde\x39\xe2\xea\x3b\xbe\xc0\x4e\x59\xc6\xc5\x27\x52\x92\x7e\xe3\xaa\x23\x3b\xa0\xd8\xaa\xb5\x41\x02\x40\xf4\xc1\x09\xd7\x70\xc8\xc5\x70\x77\x7c\x92\x8f\xce\x9a\x0b\xec\x9b\xc5\x15\x6c\x82\x1e\x20\x4f\x0f\x14\xa9\xab\x54\x7e\x03\x19\xd3\xe7\x58\xae\x9e\x28\xeb\x2d\xbc\x3d\x9f\x7a\xcf\x51\xbd\x52\xf4\x1b\xf2\x3a\xeb\x6d\x97\xb5\x78\x0a\x35\xba\x08\xb9\x49\x65\x98\x97\x44\xed\xd3\xb1\xd6\xd6\x7a\xd2\x6c\x68\x09\x9a\xf8\x5f\x98\xd0\xf0\xe4\xff\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb1\x0a\xde\xb6\xa9\x39\x5a\x48\x78\x89\x31\xd4\x5a\x7b\x4e\x4f\x69\x30\x0a\x76\xd8\xb7\x16\xc4\x0c\x61\x4c\x31\x13\xa0\xf0\x51"[..]); ctx.update(b"\xe5\x02\x2f\x4c\x7d\xfe\x2d\xbd\x20\x71\x05\xe2\xf2\x7a\xae\xdd\x5a\x76\x5c\x27\xc0\xbc\x60\xde\x95\x8b\x49\x60\x94\x40\x50\x18\x48\xcc\xf3\x98\xcf\x66\xdf\xe8\xdd\x7d\x13\x1e\x04\xf1\x43\x2f\x32\x82\x7a\x05\x7b\x89\x04\xd2\x18\xe6\x8b\xa3\xb0\x39\x80\x38\xd7\x55\xbd\x13\xd5\xf1\x68\xcf\xa8\xa1\x1a\xb3\x4c\x05\x40\x87\x39\x40\xc2\xa6\x2e\xac\xe3\x55\x2d\xcd\x69\x53\xc6\x83\xfd\xb2\x99\x83\xd4\xe4\x17\x07\x8f\x19\x88\xc5\x60\xc9\x52\x1e\x6f\x8c\x78\x99\x7c\x32\x61\x8f\xc5\x10\xdb\x28\x2a\x98\x5f\x86\x8f\x2d\x97\x3f\x82\x35\x1d\x11"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x32\x93\xa4\xb9\xae\xb8\xa6\x5e\x10\x14\xd3\x84\x75\x00\xff\xc8\x24\x15\x94\xe9\xc4\x56\x4c\xbd\x7c\xe9\x78\xbf\xa5\x07\x67\xfe"[..]); ctx.update(b"\xb1\xf6\x07\x65\x09\x93\x84\x32\x14\x5b\xb1\x5d\xbe\x1a\x7b\x2e\x00\x79\x34\xbe\x5f\x75\x39\x08\xb5\x0f\xd2\x43\x33\x45\x59\x70\xa7\x42\x9f\x2f\xfb\xd2\x8b\xd6\xfe\x18\x04\xc4\x68\x83\x11\xf3\x18\xfe\x3f\xcd\x9f\x67\x44\x41\x02\x43\xe1\x15\xbc\xb0\x0d\x7e\x03\x9a\x4f\xee\x4c\x32\x6c\x2d\x11\x9c\x42\xab\xd2\xe8\xf4\x15\x5a\x44\x47\x26\x43\x70\x4c\xc0\xbc\x72\x40\x3b\x8a\x8a\xb0\xfd\x4d\x68\xe0\x4a\x05\x9d\x6e\x5e\xd4\x50\x33\xb9\x06\x32\x6a\xbb\x4e\xb4\x14\x70\x52\x77\x9b\xad\x6a\x03\xb5\x5c\xa5\xbd\x8b\x14\x0e\x13\x1b\xed\x2d\xfa\xda"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\x2d\x96\x02\xb2\x31\xd3\x32\xd9\x02\xcb\x64\x36\xb1\x5a\xef\x89\xac\xc5\x91\xcb\x86\x26\x23\x3c\xed\x20\xc0\xa6\xe8\x0d\x7a"[..]); ctx.update(b"\x56\xea\x14\xd7\xfc\xb0\xdb\x74\x8f\xf6\x49\xaa\xa5\xd0\xaf\xdc\x23\x57\x52\x8a\x9a\xad\x60\x76\xd7\x3b\x28\x05\xb5\x3d\x89\xe7\x36\x81\xab\xfa\xd2\x6b\xee\x6c\x0f\x3d\x20\x21\x52\x95\xf3\x54\xf5\x38\xae\x80\x99\x0d\x22\x81\xbe\x6d\xe0\xf6\x91\x9a\xa9\xeb\x04\x8c\x26\xb5\x24\xf4\xd9\x1c\xa8\x7b\x54\xc0\xc5\x4a\xa9\xb5\x4a\xd0\x21\x71\xe8\xbf\x31\xe8\xd1\x58\xa9\xf5\x86\xe9\x2f\xfc\xe9\x94\xec\xce\x9a\x51\x85\xcc\x80\x36\x4d\x50\xa6\xf7\xb9\x48\x49\xa9\x14\x24\x2f\xcb\x73\xf3\x3a\x86\xec\xc8\x3c\x34\x03\x63\x0d\x20\x65\x0d\xdb\x8c\xd9\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4b\xea\xe3\x51\x5b\xa3\x5e\xc8\xcb\xd1\xd9\x45\x67\xe2\x2b\x0d\x78\x09\xc4\x66\xab\xfb\xaf\xe9\x61\x03\x49\x59\x7b\xa1\x5b\x45"[..]); } } nettle-7.1.0/src/hash/sha3_384.rs000064400000000000000000001522450072674642500145010ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha3_384, nettle_sha3_384_digest, nettle_sha3_384_init, nettle_sha3_384_update, sha3_384_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 384 bit variant of the Secure Hash Algorithm 3 (SHA-3) defined in FIPS 202. #[allow(non_camel_case_types)] pub struct Sha3_384 { context: sha3_384_ctx, } impl_write_for_hash!(Sha3_384); impl Clone for Sha3_384 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha3_384_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha3_384 { context: ctx } } } } impl Default for Sha3_384 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha3_384_init(&mut ctx as *mut _); } Sha3_384 { context: ctx } } } impl Hash for Sha3_384 { fn digest_size(&self) -> usize { ::nettle_sys::SHA3_384_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha3_384_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha3_384_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha3_384 { type Context = sha3_384_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha3_384 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha3_384::default(); } // CAVS 19.0 // "SHA3-384 ShortMsg" information for "SHA3AllBytes1-28-16" // Length values represented in bits // Generated on Thu Jan 28 13:32:46 2016 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha3_384::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d\x01\x10\x7d\x85\x2e\x4c\x24\x85\xc5\x1a\x50\xaa\xaa\x94\xfc\x61\x99\x5e\x71\xbb\xee\x98\x3a\x2a\xc3\x71\x38\x31\x26\x4a\xdb\x47\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04"[..]); ctx.update(b"\x80"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\x41\x38\x48\x52\xe1\x0f\xf1\x0d\x5f\xb6\xa7\x21\x3a\x4a\x6c\x15\xcc\xc8\x6d\x8b\xc1\x06\x8a\xc0\x4f\x69\x27\x71\x42\x94\x4f\x4e\xe5\x0d\x91\xfd\xc5\x65\x53\xdb\x06\xb2\xf5\x03\x9c\x8a\xb7"[..]); ctx.update(b"\xfb\x52"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd7\x3a\x9d\x0e\x7f\x18\x02\x35\x2e\xa5\x4f\x3e\x06\x2d\x39\x10\x57\x7b\xf8\x7e\xdd\xa4\x81\x01\xde\x92\xa3\xde\x95\x7e\x69\x8b\x83\x60\x85\xf5\xf1\x0c\xab\x1d\xe1\x9f\xd0\xc9\x06\xe4\x83\x85"[..]); ctx.update(b"\x6a\xb7\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xea\x12\xd6\xd3\x2d\x69\xad\x21\x54\xa5\x7e\x0e\x1b\xe4\x81\xa4\x5a\xdd\x73\x9e\xe7\xdd\x6e\x2a\x27\xe5\x44\xb6\xc8\xb5\xad\x12\x26\x54\xbb\xf9\x51\x34\xd5\x67\x98\x71\x56\x29\x5d\x5e\x57\xdb"[..]); ctx.update(b"\x11\x58\x7d\xcb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcb\x6e\x6c\xe4\xa2\x66\xd4\x38\xdd\xd5\x28\x67\xf2\xe1\x83\x02\x1b\xe5\x02\x23\xc7\xd5\x7f\x8f\xdc\xaa\x18\x09\x3a\x9d\x01\x26\x60\x7d\xf0\x26\xc0\x25\xbf\xf4\x0b\xc3\x14\xaf\x43\xfd\x8a\x08"[..]); ctx.update(b"\x4d\x7f\xc6\xca\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe5\x70\xd4\x63\xa0\x10\xc7\x1b\x78\xac\xd7\xf9\x79\x0c\x78\xce\x94\x6e\x00\xcc\x54\xda\xe8\x2b\xfc\x38\x33\xa1\x0f\x0d\x8d\x35\xb0\x3c\xbb\x4a\xa2\xf9\xba\x4b\x27\x49\x88\x07\xa3\x97\xcd\x47"[..]); ctx.update(b"\x5a\x66\x59\xe9\xf0\xe7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\xb1\xf3\xf6\x3b\x90\x7f\x96\x88\x21\x18\x5a\x7f\xe3\x0b\x16\xd4\x7e\x1d\x6e\xe5\xb9\xc8\x0b\xe6\x89\x47\x85\x4d\xe7\xa8\xef\x4a\x03\xa6\xb2\xe4\xec\x96\xab\xdd\x4f\xa2\x9a\xb9\x79\x6f\x28"[..]); ctx.update(b"\x17\x51\x0e\xca\x2f\xe1\x1b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x35\xfb\xa6\x95\x8b\x6c\x68\xea\xe8\xf2\xb5\xf5\xbd\xf5\xeb\xcc\x56\x52\x52\xbc\x70\xf9\x83\x54\x8c\x2d\xfd\x54\x06\xf1\x11\xa0\xa9\x5b\x1b\xb9\xa6\x39\x98\x8c\x8d\x65\xda\x91\x2d\x2c\x3e\xa2"[..]); ctx.update(b"\xc4\x4a\x2c\x58\xc8\x4c\x39\x3a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x60\xad\x40\xf9\x64\xd0\xed\xcf\x19\x28\x1e\x41\x5f\x73\x89\x96\x82\x75\xff\x61\x31\x99\xa0\x69\xc9\x16\xa0\xff\x7e\xf6\x55\x03\xb7\x40\x68\x31\x62\xa6\x22\xb9\x13\xd4\x3a\x46\x55\x9e\x91\x3c"[..]); ctx.update(b"\xa3\x6e\x5a\x59\x04\x3b\x63\x33\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbd\x04\x56\x61\x66\x34\x36\xd0\x77\x20\xff\x3c\x8b\x6f\x92\x20\x66\xdf\xe2\x44\x45\x6a\x56\xca\x46\xdf\xb3\xf7\xe2\x71\x11\x6d\x93\x21\x07\xc7\xb0\x4c\xc7\xc6\x01\x73\xe0\x8d\x0c\x2e\x10\x7c"[..]); ctx.update(b"\xc0\x92\x0f\x2b\xd1\xe2\xd3\x02\x25\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3d\x15\x84\x22\x04\x09\xf8\x8d\x38\x40\x9a\x29\xec\xae\xbb\x49\x0e\xf8\x84\xb5\xac\xba\x2c\x7e\xaf\x23\x91\x4b\xab\x7f\x5f\x0f\xc9\x7e\xe1\xe6\x33\x6f\x88\xdf\xd4\xd0\xa0\x6e\x90\x2c\xcd\x25"[..]); ctx.update(b"\x70\xae\x73\x1a\xf5\xe0\xd9\x2d\x26\x4e\xc9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x56\x33\x59\xfd\x93\xfe\x09\xf3\xfe\x49\xfc\xf5\xf1\x7e\x7f\x92\xaa\xb5\x89\xcd\xec\x3e\x55\xe4\xc3\x71\x5e\x77\x75\x81\x4b\xbb\xfb\x8c\x4c\x73\x2e\x28\xd3\xb6\xe6\x40\x48\x60\x81\x2d\xc6\xe9"[..]); ctx.update(b"\x69\xc7\x4a\x9b\x0d\xb5\x38\xee\xff\x64\xd9\x3d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\xc6\x63\x89\xca\x2c\x32\x0a\x39\x02\x2a\xa4\x41\xfa\x88\x4f\xbc\x6e\xd2\xd3\xcc\x9a\xc4\x75\x37\x2d\x94\x7d\x49\x60\x57\x9a\x64\xe0\x61\xa2\x97\xd1\x83\x1d\x35\x24\xf9\x8d\x80\x94\x40\x4b"[..]); ctx.update(b"\xa4\xa9\x32\x7b\xe2\x1b\x92\x77\xe0\x8c\x40\xab\xc7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\x1f\x5d\xa5\xff\x9e\x24\x60\xc9\x93\x48\x07\x0d\x50\x68\xd8\xa3\xd7\xff\xce\xc7\xfd\x0e\x6f\x68\xf6\xcd\x4a\x2e\xf4\x22\x6d\xf8\xd9\xb4\x61\x3c\x3b\x0d\x10\xa1\x68\xea\xf5\x4e\xab\xe0\x1a"[..]); ctx.update(b"\xcc\x47\x64\xd3\xe2\x95\x09\x72\x98\xf2\xaf\x88\x82\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x10\xf2\x87\xf2\x56\x64\x3a\xd0\xdf\xb5\x95\x5d\xd3\x45\x87\x88\x2e\x44\x5c\xd5\xae\x8d\xa3\x37\xe7\xc1\x70\xfc\x0c\x1e\x48\xa0\x3f\xb7\xa5\x4e\xc7\x13\x35\x11\x3d\xbd\xcc\xcc\xc9\x44\xda\x41"[..]); ctx.update( b"\x5a\x23\xad\x0c\xe8\x9e\x0f\xb1\xdf\x4a\x95\xbb\x24\x88\xf0", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x23\x84\x06\x71\xe7\x57\x0a\x24\x8c\xf3\x57\x9c\x7c\x88\x10\xb5\xfc\xc3\x5b\x97\x5a\x3a\x43\xb5\x06\xcc\x67\xfa\xef\xa6\xdb\xe1\xc9\x45\xab\xc0\x9a\x90\x3e\x19\x9f\x75\x9d\xcb\xc7\xf2\xc4\xd0"[..]); ctx.update( b"\x65\xb2\x7f\x6c\x55\x78\xa4\xd5\xd9\xf6\x51\x9c\x55\x4c\x30\x97", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdd\x73\x4f\x49\x87\xfe\x1a\x71\x45\x5c\xf9\xfb\x1e\xe8\x98\x68\x82\xc8\x24\x48\x82\x7a\x78\x80\xfc\x90\xd2\x04\x3c\x33\xb5\xcb\xc0\xed\x58\xb8\x52\x9e\x4c\x6b\xc3\xa7\x28\x88\x29\xe0\xa4\x0d"[..]); ctx.update(b"\xa7\x48\x47\x93\x0a\x03\xab\xee\xa4\x73\xe1\xf3\xdc\x30\xb8\x88\x15"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdb\xa6\xf9\x29\xfe\x55\xf9\xd6\x6c\x5f\x67\xc0\xaf\x3b\x82\xf1\x7b\xcf\x58\xb3\x67\x52\xf3\x16\x5c\x16\x08\x3f\xea\x8f\xd4\x78\xee\x69\x03\xf2\x7f\x82\x0a\xd2\xdd\x99\x50\xaf\xb4\x8c\x67\x00"[..]); ctx.update(b"\x6e\xfa\xf7\x8e\xd4\xd2\x93\x92\x7e\xef\x2c\x3a\x71\x93\x0e\x6e\x88\x7a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x82\x18\x49\x8a\xb0\x1b\x63\x04\x1c\x2b\xa0\x70\x9e\x33\x09\x49\x61\x24\xdd\xf0\x90\x45\x43\xa9\xe0\xd9\xd0\x96\xa7\x50\xdd\xa9\x7f\x7a\x02\x20\x8a\xf3\xd8\xc6\x18\xd4\xbe\x7c\x2b\xb2\xa2\x88"[..]); ctx.update(b"\xfd\x03\x9e\xb6\xe4\x65\x73\x88\xb9\x47\xec\x01\xe7\x37\xef\xbb\xad\x47\xda"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc5\xb3\x13\x0e\xf8\xdb\xc5\x80\xe1\x10\x3f\xec\xae\x69\xc9\xa8\x82\xd9\xeb\xf5\xa3\xde\xf5\x93\x8b\x07\xf8\x43\x45\x2a\x09\xc9\xf7\x2f\x0d\xbc\xa9\x1d\x33\xb0\x21\xcf\x6a\xa6\xfe\x60\xd2\xed"[..]); ctx.update(b"\x9c\x69\x49\x43\x38\x9b\xdc\x4e\x05\xad\x7c\x2f\x63\xce\xac\x28\x20\xe1\xd2\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\x92\xc0\x25\xc5\xc5\xf3\xd1\x27\x52\x13\xc1\xdf\x9b\xf9\xeb\x6d\x21\x88\xed\xa9\x0a\xb5\xbf\xfe\x63\x1f\x1d\xbf\x70\xeb\xd6\x28\xca\xee\x88\xb7\xd1\x49\xe1\xac\x4e\x26\x28\x73\x97\x9a\xfe"[..]); ctx.update(b"\x0f\xb1\x83\x57\xb0\x18\xb9\xbb\xb2\xcb\xb4\xca\xc5\x0b\xc8\x56\x09\xc9\x2b\x8e\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\x64\x30\x6c\x99\xe3\x79\x87\x90\xf0\x92\x3f\xe9\x2d\xbf\x2f\x96\xc3\x90\x71\x27\xda\xca\xa4\x67\xc7\x66\xac\x75\x78\x80\x62\x58\x92\x72\xcb\x76\x90\xb8\xaf\x20\x30\xdd\x8b\xd6\x1a\x3d\xf2"[..]); ctx.update(b"\x26\xcb\x40\xa4\x60\xe2\xe7\x27\xae\xb8\x67\xe0\x14\x0d\x0f\x34\x79\x01\x10\xde\xb5\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xaf\x2a\x42\xa4\xc6\x7c\x32\x26\xc5\x5b\x89\x60\x5b\x0d\xee\x27\xe7\x96\xc2\x79\x21\x15\xf6\x09\x72\x03\xdb\x5a\xed\x89\xe3\x5f\x56\x3a\x82\x46\xd3\x99\xfd\xe0\x0c\x2a\x5b\x97\xed\x5a\x5e\x17"[..]); ctx.update(b"\x66\x90\xa3\xa0\x37\x3c\x82\x9f\xac\xc5\x6f\x82\x43\x82\xf4\xfe\xed\x6e\xb1\x84\x64\x2b\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\xe1\xb6\x8b\xc9\xe2\xda\xef\xc1\x9b\x56\x7d\xec\x91\x1e\xf4\x6f\x5f\x37\xa7\x4f\xdb\xbb\x61\x55\xe7\xe6\x46\xf2\x73\x5d\xf2\xac\x44\xe2\x39\x68\x9e\xb5\xb5\x36\x46\x5d\xc5\x71\xe5\x5c\xb2"[..]); ctx.update(b"\x7d\x80\xb1\x60\xc4\xb5\x36\xa3\xbe\xb7\x99\x80\x59\x93\x44\x04\x7c\x5f\x82\xa1\xdf\xc3\xee\xd4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x04\x1c\xc5\x86\x1b\xa3\x34\x56\x3c\x61\xd4\xef\x97\x10\xd4\x89\x6c\x31\x1c\x92\xed\xbe\x0d\x7c\xd5\x3e\x80\x3b\xf2\xf4\xeb\x60\x57\x23\x55\x70\x77\x0c\xe8\x7c\x55\x20\xd7\xec\x14\x19\x87\x22"[..]); ctx.update(b"\x02\x12\x82\x83\xff\xc0\xcf\xe2\x54\xac\x8f\x54\x2b\xe3\xf0\x5f\xbe\x4e\x85\x5d\xd2\x2a\xe9\x8a\x81"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x40\x98\x1a\x76\x6d\x72\x5f\x83\xd3\x34\xe8\x98\x29\x65\x03\x3a\x5f\xbb\x51\x07\xd9\x4f\xfe\xf3\x3b\x1f\x70\x0c\xd4\x63\x48\x09\x1a\x49\xf6\x62\x0c\x37\xae\x3e\xf5\xb2\x05\x13\x49\x48\x26"[..]); ctx.update(b"\x27\x91\x1d\xd0\xa6\x84\x3c\xca\xe9\x65\xd8\x76\xaa\x19\x16\xf1\xdc\xd7\x1e\x51\x8f\x7f\x21\x97\x15\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf5\x9f\x84\x28\x55\x59\x84\xd1\x52\x6c\xde\xd8\x12\x9c\x64\x9f\xb1\xb6\x83\xd3\x5c\xec\x7c\x5e\x12\x09\x44\x1a\x6a\x9e\x7c\x17\xf0\x78\x41\x51\xb5\xab\x8a\x8c\x49\x2b\x40\x2a\x3a\xcb\x98\xc4"[..]); ctx.update(b"\xd9\x37\x8b\xb6\x6e\x8c\x8d\xee\x55\x6d\x69\x1c\xbc\x9f\xdd\xdd\x63\x33\xca\x5d\x50\x66\x88\x62\xc3\xc5\x7d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x99\x45\x32\xd1\xa5\x57\xe9\x90\xb1\xcc\x9e\x03\x95\xa2\xad\x8b\x05\x61\x9c\xa3\x22\xdb\x9d\xa3\xc4\xed\x2e\xe1\x94\xc0\x51\xd0\x45\x82\xfd\xe7\x2d\xd2\xb8\xf6\x74\xcf\x6e\xc9\x58\xdb\x75\xda"[..]); ctx.update(b"\xae\x18\x28\x04\x7c\x5f\x82\xa7\xb9\x71\x2f\x33\x99\x83\x21\x24\xb8\x92\xf2\xf7\xae\xa5\x1c\x8f\xe3\x53\x6c\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd5\x11\x11\xf8\xbf\xfb\x44\xd8\x1a\xd1\x96\x83\x19\x8f\x29\xd2\x03\x31\x44\xd3\xcd\x85\x6c\x74\x9c\xac\x5b\x9c\xae\x0e\x71\x2f\x50\x0f\x8d\x0e\xf8\x13\xf3\x8e\x30\x5c\xe1\x75\xa7\xd6\x16\x2c"[..]); ctx.update(b"\x7d\xd2\xd7\x6f\xa0\x54\xcf\x46\x1e\x13\x2e\x9e\xf9\x14\xac\xdc\x53\x08\x0a\x50\x8c\xdc\x53\x68\xab\x8c\x62\x24\xff"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6c\x0b\x33\x95\xe4\xc8\x65\x18\xab\x0a\x06\x26\x73\x20\xee\x9e\xc9\x5e\x50\x38\x5b\x7a\x25\x27\xdd\xaa\x1b\xd0\xea\xd2\x62\xc5\x61\x22\xd4\xf4\xeb\x08\xb0\xae\x22\xb3\xee\x7e\x6f\x44\xdd\x18"[..]); ctx.update(b"\x6f\xd7\x28\x88\xa0\x21\xf3\x6e\x55\x09\x67\xcb\x56\x05\xb5\x5b\x78\x65\x7c\x92\x72\xd9\x3c\x3d\xed\x34\x0d\x67\xda\x6f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x05\x51\x58\x3a\x5b\x40\x07\x40\x1c\x77\xef\x43\x82\xfd\x8e\x24\x5c\x9c\xf1\x2e\x97\x6c\x97\x66\xaf\x6b\x7a\xe3\xc7\xe0\x7a\x82\xb3\x07\x9f\x90\x3b\x08\x3d\x5e\xc8\x5c\xb9\x4e\x46\xa8\x5a\xc0"[..]); ctx.update(b"\xd5\x00\xeb\x95\x46\x55\x36\x19\xcd\xc3\x1e\x08\x48\xc5\x02\xdb\x92\xd5\x47\xef\xef\x3a\xe5\xee\xaa\x22\x25\x8a\xfc\xf0\xa9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5e\xdd\xe2\xf9\x4f\x86\x95\xf2\x77\xec\x05\xef\xcc\x00\x76\x1f\xaf\xd2\x72\x20\x0a\xed\x0e\x63\xd2\x21\xc2\xb6\xc6\x5b\x49\x72\xa6\x52\x6f\x9a\x1f\x2e\x6a\xce\x0e\x81\x93\x8f\x04\x3f\xe8\x77"[..]); ctx.update(b"\x61\x89\x59\x7e\x01\x98\xa1\x8c\x65\xfa\x0b\xdd\x07\x97\xf1\x30\x37\xc7\x5c\x40\x58\xb7\xd3\x45\x4c\x0f\x71\xbd\x2d\xd1\x3b\x6c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x11\x06\x30\xca\x76\x31\xb7\x62\x0e\x6b\xee\x6e\xd6\xe9\x29\x09\x89\x65\x57\x19\x36\xc3\x48\x29\x48\x49\x83\xeb\xa9\x53\x2b\x81\x75\x52\x8c\x22\x8c\x57\x43\x94\x53\xf0\x27\xa4\xf7\xc8\x3c\xa3"[..]); ctx.update(b"\x24\x3b\x94\x1d\x74\x85\x41\xaf\x30\x3f\x8e\x9d\x2c\x37\x1c\xd0\x3e\x43\x7d\x62\xa9\xdf\x48\x5d\xdc\x17\x6d\xc6\x5d\xa8\xc7\xda\x00"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\x84\x20\x1f\x7a\x55\x5e\xa3\xc5\xde\xeb\x01\x9f\xd9\xe8\xc1\x61\xe1\xb8\x97\x56\x04\x5e\x47\x5b\x14\x1e\xc5\x13\x5c\xe5\xa4\x1c\x93\xe5\xe1\xf7\x95\x34\xd3\x6f\xd8\x34\x5b\xa4\x34\xda\x43"[..]); ctx.update(b"\x2d\xc3\xd7\x89\x58\x2c\x1a\x80\x6c\x3b\x49\x1d\x59\x72\xef\x8f\x17\x33\xf1\xf5\xe0\x28\x66\xdc\x9d\xe2\xa8\x02\x9e\xc0\xab\x60\x8d\x13"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x05\xa3\x90\x3b\x51\x9c\xdf\x67\x91\x20\xc7\xcc\xb4\xef\x17\x8b\x58\xe4\x50\x2f\xcd\x46\x13\x60\x98\x8f\xa0\x66\x69\x29\x48\x51\xe6\x29\xd9\xdd\x3e\x77\xff\xb7\x3d\x24\x59\x9d\x5d\x3e\xdd\x36"[..]); ctx.update(b"\xe5\xb3\xf6\x96\x2f\xe5\x72\x30\x78\x0b\x3d\x55\xb2\x9e\xff\xe0\xdf\xeb\xde\x2c\x81\xba\x97\xd4\x51\x2e\xcd\xbd\x33\xec\xa1\x57\x6a\x7f\x82"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7a\xc2\x77\x6a\xfb\x74\xf5\x5b\xbc\x4f\x6e\xcc\xf8\x25\xee\x13\xac\x74\x45\xfb\x54\x97\x4e\x6c\x24\xeb\xc0\xf0\x3f\xdc\xd8\x53\x01\x99\xa6\x11\x06\xa3\x1b\x42\x79\xe0\x22\x01\xee\x0f\x54\xfd"[..]); ctx.update(b"\xda\x03\x48\x6a\xa3\xce\xbb\xd6\x50\x2e\x9f\x5a\x6f\x0f\x83\x5e\x97\x3a\x58\x1b\xef\xcc\x1a\xad\xef\xe7\xb3\x69\x6b\xa7\x1c\x70\xcd\x58\xc5\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\xc4\x4c\xee\xc0\xbb\x7d\xc0\xf6\x64\xeb\xe4\x42\x30\x19\x2b\x5b\x0b\xb6\x46\xbb\x94\x4d\x23\xfa\x1f\xf3\x58\x6d\xc0\x52\x3f\xa9\xd7\xf0\xdd\x6d\xf5\x44\x9a\xb9\xed\xd9\xa1\x09\x6b\x07\xdc"[..]); ctx.update(b"\x3c\x68\x6d\x32\x1b\xa6\x61\x85\xcd\xca\x83\xba\x9f\x41\x98\x4f\xa6\x1b\x82\x6e\xf5\x6b\x13\x6e\x13\xf1\x23\x9d\xad\xf6\xe0\x3d\x87\x78\x66\xcc\xb8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\x62\x4e\xdd\x9f\x2c\x3a\x32\xb5\x6c\x53\xd9\xe8\x13\xc0\x1d\x66\xbc\xfe\x42\x4c\x4a\x96\x90\x7d\x52\xac\x1d\xdd\x68\x37\x0e\xc8\x6d\xac\x67\x50\x4a\x90\xe8\xa8\xe7\x55\x02\xe0\x10\x81\xd2"[..]); ctx.update(b"\x4d\xcf\xf9\x9f\xac\x33\x84\x0f\x65\x32\x54\x7f\xb6\x9b\x45\x69\x02\xd6\x71\x8f\xd5\xd4\x53\x8e\x23\x46\x2d\xb6\xd0\x0d\xa6\x19\x75\xf2\xb8\xe2\x62\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\x37\xdd\x27\x99\x7c\x1b\xb7\xe6\xdc\x40\x51\x70\x06\x6e\x74\xc6\xce\x51\x7c\x02\x9e\xd8\xdc\xe1\x26\xd0\x25\xda\x74\xe0\xb8\xe8\x6d\xa5\x67\xe8\xd7\xd8\xd5\xb5\xd3\xe2\xa5\x46\xdf\x74\x89"[..]); ctx.update(b"\x27\x99\xf6\x72\x32\x88\x34\xd7\xea\xef\x94\x39\x79\x5d\x35\xce\x93\xc9\x09\x4f\x58\xde\xd9\xf1\x7c\x96\x8a\x97\xa5\x0a\x9e\x46\x14\x89\xfe\xd9\x88\xe7\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\xcf\xc2\x3c\x97\xcb\x13\x91\x0b\x80\x8e\x70\x33\x80\x9a\x45\xaa\x0b\x7f\x71\x38\xde\x61\x8c\x2c\xa6\x22\xc8\xb8\x13\xc9\x88\xe2\x64\xaf\x3b\x96\xc7\x92\x5d\xcb\xd1\xd2\x76\x17\x57\xd8\x00"[..]); ctx.update(b"\xc7\xe9\x47\x50\x78\x22\xf2\x8a\x56\x27\x45\xa8\xfe\x6f\xed\x6c\xb4\x7d\x73\x14\x58\x04\xc8\x94\x95\x4e\x21\x24\x5c\xde\x04\xfa\x91\x55\xa3\x59\x04\x92\x6a\xca"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8b\xdd\xf3\xba\xeb\xbc\x5b\x04\xfe\x0b\x0a\x9c\x3c\x2b\x73\x0a\xbe\x91\x8c\xe4\x89\x2d\x28\x43\xc6\x13\xee\x96\xda\x02\x28\x51\x2f\x0d\x13\x07\xc7\xd1\xa8\x92\x2e\x79\xa9\x2e\x95\x7d\xd1\x8e"[..]); ctx.update(b"\x6c\x49\x7b\xf6\xff\x69\xcb\x39\xe3\xfa\xa3\x49\x21\x2b\x8b\x66\x91\xca\x23\x79\x05\xac\x00\x99\xc4\x50\xb6\xd3\x3a\xbf\x36\x2b\xed\xb6\x5b\xde\xb3\x07\xbf\xea\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\x39\xfa\xb6\x19\x1b\x35\x24\x62\x78\x52\x2c\xfa\xce\xe0\xcd\x5b\x15\x58\x0a\x26\xc5\x05\xae\x3c\x46\xb4\xb1\xc2\x57\x20\x16\xb4\x8f\x1b\x01\x2b\xbb\xed\xec\x47\x91\x69\x50\xfb\xb3\x3a\x1d"[..]); ctx.update(b"\xd1\x59\x36\xf3\xb0\xc9\x01\x82\x71\x81\x2b\x4c\x81\x45\x3c\x44\x57\xc7\xed\xd1\x10\xbc\xea\x7f\x57\x35\xd6\xf5\x88\x2d\x8f\x27\x15\x5e\xb4\xcc\x28\x5a\x65\x13\x8a\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\x93\xee\xef\x0a\xa3\x39\x2c\x93\xd9\xc6\xca\x89\xc0\x8b\x31\x76\x22\x57\x2d\x4d\xe2\x28\x6a\x4b\x9a\xe6\xc2\xf9\xc9\xe0\xe6\x4e\xe6\xc4\x83\xd4\xf1\x08\x59\x07\x7e\x3c\x68\x68\x43\x02\x14"[..]); ctx.update(b"\xdf\x18\x13\x9f\x34\xb8\x90\x4e\xf0\x68\x1c\x1b\x7a\x3c\x86\x65\x3e\x44\xb2\x53\x5d\x6c\xec\xd1\xa2\xa1\x7c\xd5\xb9\x35\x7b\xe7\x9b\x85\xe5\xe0\x4d\xd9\xef\xf2\xca\x8b\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdb\x9e\x17\x1d\x6e\x33\x36\x63\x1c\x9c\xee\xc6\xb4\xd7\x32\xce\x62\xb0\x15\x93\x92\x69\xfb\x69\xfa\xe7\xd2\x27\x25\x50\x0e\x8a\x2f\xc9\xf1\x45\x9c\xf0\xa3\x1f\xb9\xd1\x6d\x7c\x44\x58\x3f\x52"[..]); ctx.update(b"\x04\x59\xdc\xbc\x14\x93\x33\xea\x2f\x93\x7b\x77\x9a\x5f\x37\x28\x14\x84\x49\xa9\xae\xa3\x66\x2c\xdd\x2c\xc6\x53\xce\x6a\x20\x50\xf9\xc0\xd5\x4b\xf9\x32\x6c\x03\x9b\x26\x3e\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x46\x4b\xa4\x09\xfb\xb4\x5e\x98\x5f\x84\xee\x24\x66\x2e\xb7\xc0\x42\xc3\xc2\xad\x96\x49\xf1\xac\x4a\x8b\x2b\xe9\xc0\x7d\x37\xed\x2e\x42\x84\x36\x20\x57\x49\x3f\x6a\x7e\x52\xc3\x56\xb0\x5b\xc5"[..]); ctx.update(b"\xeb\x3f\x70\x02\xc8\x35\x22\x70\x34\x0b\x8d\xa8\x64\x36\x22\xe5\xf7\xe3\x2c\xdb\x20\x8a\x0d\xec\x06\xc6\xcb\x9e\x6b\x64\xcc\x4d\x8c\xb9\xde\x1d\x49\x39\x7b\x33\x86\x46\x4a\x25\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa2\x6b\xd7\x6c\xe4\x2d\x81\x8d\xbe\xc4\x62\xd8\xfe\x7c\xdd\x95\x7e\x6b\x84\xae\x87\x50\xfb\x5e\x1c\x9c\x76\xbc\x60\x00\xe2\x37\x37\xe0\x73\xa5\x9b\x46\x00\xe5\x05\x65\x24\xed\xc6\x67\x90\x9d"[..]); ctx.update(b"\x47\xe3\xe3\xd8\xc6\x8a\xc9\xd9\xf4\xb3\x75\x9d\x8c\x7d\x9d\xd9\x01\xe3\x5b\x09\x6e\xe4\xc8\xb6\xcb\xe0\xcd\xf4\x67\x46\x36\x30\x92\x6c\x08\x28\x9a\xbe\x15\x3b\xfa\x1b\xcd\xe3\xcd\x7c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb5\x04\xef\x47\x5a\x56\x8f\x9c\xab\xa8\x35\x2a\x0b\x2d\x24\x3a\xcd\xf3\xd2\xb4\x1d\x88\x90\xa6\xfb\x3a\xbb\x8a\xa2\x8a\x29\xe0\xc7\x52\x7d\x20\xe2\xd7\x9b\x25\xb4\x00\xec\x27\xc3\x14\xdb\x72"[..]); ctx.update(b"\x83\x8d\x9c\x18\x1c\x5a\xb5\x95\x92\x72\x3b\xd6\x93\x60\xe0\xd7\xfd\x15\x23\x2b\xea\xda\x75\x91\xea\x89\x9a\xc7\x8f\xfd\x53\xa3\x2f\xc7\x3a\x5f\xe5\x22\xed\x35\xd9\x2a\x6e\x2b\xc1\x48\xca"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x53\xe9\x9e\x11\x58\xd5\x90\x32\xff\xe4\xb5\xea\x30\x4c\x7d\x2f\x7a\x61\xb6\xb2\xa9\x6a\xc9\x78\x32\xca\x26\x01\x35\x49\xfe\x3f\x7d\xcd\xf9\x26\xbd\x74\xce\xab\xe4\xf1\xff\x17\x2d\xae\xd6\xe6"[..]); ctx.update(b"\xa9\x0d\x2a\xa5\xb2\x41\xe1\xca\x9d\xab\x5b\x6d\xc0\x5c\x3e\x2c\x93\xfc\x5a\x22\x10\xa6\x31\x5d\x60\xf9\xb7\x91\xb3\x6b\x56\x0d\x70\xe1\x35\xef\x8e\x7d\xba\x94\x41\xb7\x4e\x53\xda\xb0\x60\x6b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\x16\x88\x1c\xe1\x56\xf4\x5f\xdf\xdb\x45\x08\x8e\x3f\x23\xbe\x1b\x4c\x5a\x7a\x6a\x35\x31\x5d\x36\xc5\x1c\x75\xf2\x75\x73\x33\x19\xac\xa1\x85\xd4\xab\x33\x13\x0f\xfe\x45\xf7\x51\xf1\xbb\xc5"[..]); ctx.update(b"\x8c\x29\x34\x5d\x3a\x09\x1a\x5d\x5d\x71\xab\x8f\x5a\x06\x8a\x57\x11\xf7\xba\x00\xb1\x83\x0d\x5e\xd0\xbc\xdf\xb1\xbb\x8b\x03\xcd\x0a\xf5\xfe\x78\x78\x9c\x73\x14\xf2\x89\xdf\x7e\xee\x28\x87\x35\xfe"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe2\x7b\x39\xa9\x62\x55\xff\x69\xc4\x52\x85\xfc\xa6\xed\xaa\xa3\x95\x4c\xe3\x2c\x1e\x3d\x9b\x1f\x60\xc1\xb6\x67\x65\x94\xbb\x45\xca\xf0\x88\x9f\xc1\x1d\xaf\x93\xa1\xb6\x07\x46\x22\x96\x89\xdd"[..]); ctx.update(b"\x32\x87\x6f\xee\xfe\x99\x15\xa3\x23\x99\x08\x34\x72\xe3\xc3\x80\x5e\xf2\x61\x80\x0b\x25\x58\x2a\xa7\xc3\x63\x95\xfd\x3e\xc0\x5d\x47\xb4\x9c\x49\x44\xbb\xcc\x2b\x8b\x5e\xbd\x08\x1f\x63\xae\x79\x43\xd0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\x64\x33\xcd\xb6\x9a\x60\x74\x33\xea\x2e\xb7\x7d\x87\xd3\x32\x88\x67\xdc\x40\x76\xb6\x7c\xcf\x17\xf5\x0f\x9e\x08\xe8\x9a\x86\x62\x4b\x60\xf2\xec\xdb\x8a\xff\xcd\x43\x1f\xc1\x31\x73\xfe\x75"[..]); ctx.update(b"\xe2\xe7\x7e\xb5\x4f\x32\x1f\x86\xf5\x2e\xa3\xd3\xc8\xcd\xc3\xbc\x74\xd8\xb4\xf2\xf3\x34\x59\x1e\x5e\x63\xb7\x81\x03\x4d\xa9\xd7\xb9\x41\xd5\x82\x70\x37\xde\xe4\x0c\x58\xdc\x0d\x74\xc0\x09\x96\xe5\x82\xbc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa3\x52\xab\x33\xca\x73\x04\x82\xc3\x76\xbd\xc5\x73\xc9\xd1\xdc\x6d\x35\x97\xf9\xbe\x9f\x79\x8b\x74\xa5\x7b\xea\xa8\xe9\xc5\x7b\x78\xee\x67\x61\x05\x6e\xb6\x73\x63\xe8\x82\xfe\xfc\xad\x4f\xb9"[..]); ctx.update(b"\xda\x14\xb6\xd0\xb2\xec\x4c\xf1\xe7\xc7\x90\xe7\xf8\xf4\x21\x2b\x8f\x4d\x05\xf5\x0e\x75\xe2\xa5\x6a\x5d\x70\x62\x3c\x0d\x2e\x01\x15\xa1\x54\x28\x12\x91\x09\xb3\xb1\x36\xd7\x56\xe3\x8a\x5c\x84\x63\x30\x42\x90"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xaa\xe7\xad\x97\x7e\x17\xac\x0e\x56\x0c\x0e\x01\x86\x43\x34\x20\xf9\xfd\xdc\xd1\x91\xb9\xe9\x15\x67\xce\xe0\x5d\xf8\x8f\x1e\x1a\xee\x50\x42\x4a\x31\x39\x98\xa8\x73\xf7\xa9\xc2\x89\xa0\x22\x17"[..]); ctx.update(b"\x2d\xb0\x6f\x09\xab\xaa\x6a\x9e\x94\x2d\x62\x74\x1e\xac\xd0\xaa\x3b\x60\xd8\x68\xbd\xdf\x87\x17\xbe\xf0\x59\xd2\x3f\x9e\xfe\x17\x0f\x8b\x5d\xc3\xef\x87\xda\x3d\xf3\x61\xd4\xf1\x2b\xfd\x72\x00\x83\xa7\xa0\x35\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\xd4\xe3\xe5\xab\xcb\x1b\x59\xca\x6f\x55\x1e\xb4\x3b\x43\xff\x64\x89\x05\x11\xf7\x3a\x90\x83\xa2\xce\x6e\x9c\x28\x61\xc6\xe9\x66\x4c\x76\x56\x29\x02\x4f\x4b\x01\xb0\xcd\x15\x94\xa5\x98\x1b"[..]); ctx.update(b"\x26\xba\xd2\x3e\x51\xc4\x56\x0c\x17\x20\x76\x53\x8b\x28\x71\x67\x82\xee\x63\x04\x96\x2f\x68\xe2\x71\x82\x04\x89\x48\xd5\xc3\x67\xa5\x1a\x1c\x20\x6a\x3e\x9b\x25\x13\x5b\x40\x88\x3b\x2e\x22\x0f\x61\xcb\x57\x87\xed\x8f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa4\x4c\x7f\x84\xab\x96\x2f\x68\x28\x34\x04\xf8\xc5\xc4\x02\x9d\xbc\x35\xd2\x13\x8e\x07\x5c\x93\x27\x58\x0b\xaf\x89\xf2\x92\x93\x7b\xf9\x94\x22\xe4\x57\x56\xb3\xf9\x42\xbf\x0a\x5a\xe4\xac\xb6"[..]); ctx.update(b"\x77\xa9\xf6\x52\xa0\x03\xa8\x3d\x22\xfb\x84\x9b\x73\xfe\xd7\xd3\x78\x30\xc0\xdc\x53\xf8\x9c\xea\x7d\xbe\xc2\x4e\x14\xf3\x71\x97\x76\x52\x06\xfe\x0e\x66\x72\x01\x6e\x4d\xec\x4d\x9e\xbb\xe3\xe1\xb4\x42\x37\x71\xa5\xd0\xa8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\xc8\xbb\x39\xbb\x2a\xad\x41\x9a\x00\xa8\x02\x16\xec\x71\xec\x5e\xc9\xab\x54\xc4\x19\x27\xe3\xe3\xf2\xf4\x8f\x07\x9a\x58\x86\xd7\xfe\x89\xdb\x98\xc8\x07\xab\x68\x6d\x23\x39\x00\x1d\x62\x52"[..]); ctx.update(b"\x26\x8c\x7b\x3a\x84\x84\x9f\xec\x5c\x76\x9b\xc4\xad\x37\x7d\xea\x10\xc9\xd2\x0c\x91\xdd\x17\xfd\xbd\x96\x70\xa2\xfc\x90\x9d\x0e\x21\x21\x29\xec\x40\xde\xe4\x1d\xbf\x61\x94\xa3\xb0\x4a\xe8\xbe\x5e\x84\xad\x54\x26\xca\x44\x96"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0d\xfc\x6f\xfc\xf4\xa3\x87\xec\x09\xff\x86\x2c\x61\x39\xa6\xf7\xac\x77\xab\xb2\xb5\xe1\xf6\xdc\x81\x4e\xb7\x15\x25\xf8\x65\x7a\xc7\x4a\x76\x97\xc2\x97\x5c\x70\xa5\x43\xaf\x0e\x22\x7d\x03\xca"[..]); ctx.update(b"\xb8\x32\x43\x41\xa6\x89\x1a\x6b\x5e\x00\x1a\x7d\x2e\xbb\xa6\xe0\x2e\x83\x35\xc1\x24\x18\x53\x09\xa4\xc9\xe9\x90\x7c\x43\xbd\x8d\x4f\xa7\x3c\x52\x7f\xdf\x78\x36\x50\x31\x6d\xd2\x4b\x14\x88\x70\xe1\x43\x6a\xc0\x51\x11\xe9\xcd\xcc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\x78\xd1\xcc\x17\xfb\x6d\x54\x12\x9d\x04\x98\x7d\x47\x74\xfa\x84\x6d\xca\xc4\xba\x8b\x6b\x72\xf4\x1e\x63\xdc\x38\x7c\xe0\x08\x1b\xa2\x9f\xb2\xc1\x7c\x67\x44\xed\xae\x24\xe6\x69\xcc\x9e\x75"[..]); ctx.update(b"\x5e\xf8\xb3\xd7\x9d\x29\x9b\xee\x2c\x41\x45\x60\xc7\xde\x62\x6c\xc0\xd9\xfb\x42\x98\x84\xaa\x69\xcc\x30\x09\x5e\xf1\xf3\x6b\x7e\x03\xa8\xca\x25\xfb\x36\x01\x18\x9f\x16\x3b\x20\x9e\x0f\xac\xf8\xdc\x44\x7f\x69\x0b\x71\x0f\xb4\x7b\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7e\xc9\x50\x5f\x33\xf4\xa5\x49\x35\x74\x42\x2d\xe0\x78\xe0\x49\x0b\x61\xbe\x8e\x8d\x6f\x15\x81\x92\xbb\x7d\x2b\xdc\x2d\xc3\x35\x59\x8d\xc8\x8d\x9b\x44\x3c\xd1\xc1\x4b\x88\x3a\x77\x11\x9d\xf1"[..]); ctx.update(b"\xad\x73\x21\xc9\xa8\xb8\xf0\xbf\xe1\x00\x81\x11\x14\x27\x0d\xaa\xd5\x7f\x6e\x88\x77\x23\x26\xb6\x2d\x88\xa3\x7a\x6f\x55\xc2\xcf\x9f\x75\x91\x15\xed\x6a\x59\x08\x78\xe4\xdc\xef\xb5\x92\xdb\x15\x15\x38\xdb\x7d\xe2\x02\x29\xd2\x6a\x18\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\x82\xd2\xca\xa5\x37\x29\x4e\x80\x9e\x9d\xf8\x37\xb1\xb0\x7e\x2f\x1d\xf0\x7d\x0f\x4c\x12\xe1\x24\x59\xf5\x6e\xea\xa4\x78\xd5\xb3\xa4\x1e\x51\x9d\x94\x14\xea\xfa\x5d\xdd\x56\x61\xc8\x31\xba"[..]); ctx.update(b"\x07\x19\xd9\x66\x45\x41\xf0\xa8\x24\xf7\x1c\x83\xb8\x09\xbb\x6a\xfc\x97\x3c\x9f\x74\x28\xe1\xed\x11\xf7\xc2\x9a\x55\x8e\x16\x98\xb7\x96\xae\xfb\x49\xee\xc2\xb0\x98\xfa\xf0\x6b\xd4\x3e\x82\xe1\x31\x2b\xf0\x38\x8c\x38\xa5\xbb\x52\x35\x06\xd3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\x2c\x05\xf6\x78\xdf\x92\x88\x3d\x56\xe1\x92\x21\x39\x1f\xb0\x0d\x0f\x0a\xfc\xec\x51\xd3\xe0\xfe\xb1\x5b\xa2\xfb\x60\x69\x3b\x09\xd6\x91\x18\xaf\x64\x96\x48\x93\x32\x59\xd7\xb1\xe2\x40\xab"[..]); ctx.update(b"\x54\x15\xc2\x59\x6a\xa7\xd2\x1e\x85\x5b\xe9\x84\x91\xbd\x70\x23\x57\xc1\x9f\x21\xf4\x62\x94\xf9\x8a\x8a\xa3\x7b\x35\x32\xee\x15\x41\xca\x35\x50\x9a\xdb\xef\x9d\x83\xeb\x99\x52\x8b\xa1\x4e\xf0\xbd\x29\x98\xa7\x18\xda\x86\x1c\x3f\x16\xfe\x69\x71"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8f\x9f\xd7\xd8\x79\xd6\xb5\x1e\xe8\x43\xe1\xfb\xcd\x40\xbb\x67\x44\x9a\xe7\x44\xdb\x9f\x67\x3e\x34\x52\xf0\x28\xcb\x01\x89\xd9\xcb\x0f\xef\x7b\xdb\x5c\x76\x0d\x63\xfe\xa0\xe3\xba\x3d\xd8\xd1"[..]); ctx.update(b"\xb9\x79\xa2\x5a\x42\x4b\x1e\x4c\x7e\xa7\x1b\x66\x45\x54\x52\x48\x49\x8a\x2b\x8c\x4b\x56\x8e\x4c\x8f\x3f\xf6\xe5\x8d\x2a\xc8\xfb\xe9\x7b\xe4\xbe\xa5\x7d\x79\x6b\x96\x04\x1d\x15\x14\x51\x1d\xa5\xf6\x35\x11\x20\xbe\x7a\xb4\x28\x10\x7e\xf3\xc6\x69\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe2\x48\xa6\x4b\x6e\xf1\x12\xbf\x3d\x29\x94\x8b\x1c\x99\x58\x08\xe5\x06\xc0\x49\xf3\x90\x6d\x74\xc3\xee\x1e\x4d\x9f\x35\x16\x58\x68\x19\x01\xfe\x42\xc8\xe2\x80\x24\xfe\x31\x01\x4e\x2d\x34\x2b"[..]); ctx.update(b"\xe6\x4c\x7b\xb9\xcd\x99\xce\x54\x7d\x43\xde\x3c\xc3\xb6\xf7\xd8\x7a\x2d\xf9\xd8\xa4\x76\x0c\x18\xba\xf5\x90\xc7\x40\xec\x53\xc8\x9b\xfa\x07\x58\x27\xe1\xf3\xf2\x85\x8c\xe8\x6f\x32\x50\x77\x72\x5e\x72\x61\x03\xfb\xe9\x4f\x7a\x14\x66\xc3\x9f\x60\x92\x4f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\xe5\xa7\x2d\x25\x95\xf3\x87\x14\xc6\x19\x8a\xc1\x4f\x8a\x5c\xdd\x89\x4d\xcf\x9b\x4b\x8e\x97\x51\x74\xb1\x00\xdf\x7b\xbf\x4f\x7c\xe2\x91\xb4\x86\x4f\x27\xc0\xb6\x4e\x63\x30\xf6\xc1\xc8\x2c"[..]); ctx.update(b"\x91\xb7\xa1\xfd\x0e\x20\x07\x2d\x9c\x5b\xe7\x19\x6e\x5e\xaf\x8d\xf3\x6f\xdf\x14\x58\x95\xb3\x0d\x4e\x4c\x02\x01\x0d\x7c\x66\x34\x99\xac\x9d\x7a\x44\x73\x2f\x4c\x74\x30\x51\x1b\xa6\xfb\x0a\xe4\xb3\xdc\x94\x05\x52\x3a\x05\x4f\xdf\x96\x2f\x5c\x5b\x79\xc4\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x07\xc2\xe0\xae\xae\x30\xda\x83\xb5\xa6\xb3\x20\xaa\x1c\xf7\x27\xb1\x0c\x20\x34\x58\x3d\x7a\xcd\xa5\x56\x48\xfa\x3d\xaa\x01\x7a\xa1\x55\x88\xb6\xe2\x14\x91\x01\xc5\x6e\x3d\x7d\xf7\xc7\x6d\xf1"[..]); ctx.update(b"\x5b\xbc\x2d\x4e\xfe\x63\xcb\xfc\x9f\xc2\x21\xdd\x8d\x83\x84\x07\x5a\x79\xc8\x0a\x27\xd6\xa8\xc5\x21\x9e\x67\x7f\x4c\x5b\xb8\x33\x80\x13\xdc\x2a\xb1\x77\x0a\xcf\x73\x5d\x13\xc0\xbc\x70\x46\x21\xec\x26\x91\x35\x0c\xf3\xea\x2f\x53\xbd\xed\x45\xef\x8f\xc7\x07\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdd\x0b\xbf\xe4\xb7\x99\x64\x21\x91\xab\xe3\x16\xdf\x9d\x59\xa3\x74\x35\x66\x77\x8b\x44\x59\xc5\x1c\x3b\xe3\xf6\x58\xbd\xce\x45\x51\x6a\xd1\x88\xfb\xe1\xa8\xca\xd8\xa1\xfa\x78\xf8\xeb\xb6\x45"[..]); ctx.update(b"\x12\x95\x49\x27\x8e\x89\x76\xc3\x8b\x55\x05\x81\x57\x25\x40\x0c\x3d\x20\x81\xed\xf1\x41\xad\x00\x2e\x62\xff\x29\x9d\x9a\x07\x43\xf9\xc9\xf2\x59\x71\x71\x0b\x19\x4d\xc8\x82\x85\xd5\x0b\x6c\xec\x6e\x14\x0c\x19\x07\x2f\x51\xca\xb3\x2a\x9f\x64\x97\xab\xd3\xe4\x07\xc6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xca\x26\xae\xc5\x27\xfa\xdc\xd5\xeb\xeb\x4e\xaf\xa7\xc1\x02\xf7\x9a\x3c\x2e\xdb\x45\x2a\xfd\x04\xf6\x16\x2d\xd7\xa1\x7b\xdd\x1a\xad\x7d\x61\x65\x08\xa8\x9a\x3e\xc6\xa4\x07\x91\xd9\x15\xac\xc8"[..]); ctx.update(b"\xb9\xa9\xf3\x78\xad\xef\xf4\x33\x7b\xc7\xec\x10\xd5\x26\xc6\xdd\xa0\x70\x28\x37\x55\x49\xf7\xfd\xa7\xa8\x1d\x05\x66\x2c\x8a\x0d\xa3\xb4\x78\xf4\x15\x2a\xf4\x2a\xbb\x9f\x9a\x65\xc3\x9d\xa0\x95\xab\xb8\x16\x1b\xa6\x67\x6b\x35\x41\x12\x34\xbd\x46\x6c\x29\x14\xe0\x03\x70"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x99\x91\x4f\x68\x4e\x0b\x31\x7f\x93\x38\xaf\x0c\x71\xe9\x65\x5a\x3a\xf7\x15\x3e\xb9\xfa\xba\xae\x61\x45\x4b\xf8\xde\x9e\x0b\xfd\x27\x4c\x1e\xff\x6c\x4b\x55\x0e\x47\xaf\xcb\x3b\x20\xfa\x7d\x9e"[..]); ctx.update(b"\x10\x1d\xa5\xb0\x97\x00\xdc\xad\xf8\x0e\x5b\x79\x00\xf4\xe9\x4c\x54\xd5\xf1\x75\x56\x9a\x85\x4e\x48\x8a\xa3\x6f\xb4\x1a\xb7\x22\x0b\x06\x62\x17\x8c\xa0\x7a\x59\x67\x68\x52\x81\x23\xde\x3b\x2a\x3d\x94\x4a\xa4\x12\x87\x5c\xed\xfe\xaf\x58\xdc\xc6\xd5\xb4\xa0\x33\xa5\x3b\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd3\xe3\x2c\x9b\x27\x1e\x11\xe4\x96\x83\x97\xd8\x5d\x76\x93\x8b\x97\x4a\xc1\xba\x55\xbc\xbe\x8d\x7b\x7d\xa0\x2d\xbd\x7e\x3b\x9c\x9a\xf0\xd9\x8b\xbd\x7e\x50\xc4\x36\xfc\xf9\xe3\x55\x1e\x34\x32"[..]); ctx.update(b"\x14\x76\x1b\xbc\x56\x85\xb5\xde\x69\x29\x73\xe2\xdf\x7c\x9c\x47\x50\x88\x9c\x19\xa9\x52\xf9\x12\xc8\x17\x89\x05\x46\xd5\xe3\x7d\x94\x0d\x13\xa1\x4a\xc7\x92\x5a\xbb\xd8\x75\xb8\xcd\x60\xe4\x92\x08\x96\xce\x6d\xec\xc8\xdb\x9f\x88\x9d\xa2\xb5\x48\x9e\x1d\x11\x0f\xf4\x59\xd8\x85"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x27\x22\x22\xed\x50\x63\x1a\xff\x46\x5c\x0e\x6f\xe4\x9e\xcd\xfd\xca\x98\x3b\xcb\x72\x31\xe5\x09\x03\xe2\x00\xb3\x35\xb8\x45\x10\x82\x02\xc2\x83\x15\x91\x2c\x9c\x4f\xd5\x0e\x2c\x6f\x13\xa9\xea"[..]); ctx.update(b"\xed\x53\x80\x09\xae\xae\xd3\x28\x4c\x29\xa6\x25\x37\x02\x90\x49\x67\xe0\xea\x97\x9f\x0a\x34\xa5\xf3\xd7\xb5\xab\x88\x66\x62\xda\x9b\x8e\x01\xef\xc4\x18\x8e\x07\x7c\x2c\xde\xb5\xde\x0a\x82\x52\xaa\xfb\xee\x94\x8f\x86\xdb\x62\xaa\xe6\xe9\xe7\x4a\xbc\x89\xe6\xf6\x02\x1a\x4d\xb1\x40"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x83\x61\xb6\x80\x24\x3b\x16\x61\xd6\xf1\xdf\x53\xdb\x36\x3c\xae\x41\xc2\xeb\xb7\x43\x8c\x00\x60\x6d\x76\xb9\xc2\xa2\x53\xfa\xa1\xf0\x9d\x6f\x52\x0d\x69\xd6\x92\xec\x1d\xca\x0c\x78\x85\x11\x9c"[..]); ctx.update(b"\xc4\x34\xd8\x84\x68\xf1\xed\xa2\x38\x48\xd0\x80\x4b\x47\x69\x33\xf2\x4b\xae\xad\xec\x69\x74\x3d\xd9\x0d\x84\x55\xf1\xe1\xf2\x90\xf6\xf1\xaa\xf3\x67\x0c\x4c\x74\xf7\x6d\x3a\xb8\x3e\x9b\xef\x21\xad\x8d\x92\x08\xc7\x12\xca\x47\x8e\x70\xd5\xfb\x3c\x4b\xd4\x88\x34\xc9\x69\xdd\x38\xf4\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9c\x26\xe9\x6f\xcc\x09\xa7\x6c\xc1\x3d\x24\xad\x25\xc9\xce\xf4\x30\x0e\x96\xe9\x7e\x4f\xb5\x9b\x44\x1b\xaf\xfe\xd0\x7f\x6a\x70\xb1\x46\x4f\x25\x48\xc7\xfd\x78\x39\x81\x0d\xbb\x9e\x9c\x1e\x18"[..]); ctx.update(b"\x30\x64\xe5\xba\x1e\x77\x51\xbf\x71\x98\xe0\x81\x1f\xf4\xd4\xca\x17\xd1\x31\x1c\x25\xd9\xc3\xa3\x16\xb5\x62\x69\x1c\xde\x75\xc9\x74\xb0\xb5\x26\x45\xc1\x34\xdd\xcc\x70\x9d\x77\xb6\xc1\xbd\x24\xcd\x68\x42\x65\xd7\x23\xc3\x08\xbb\x4d\x01\x59\xe6\xb1\x6d\x97\xed\x9c\xea\xa5\x74\x36\xd3\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1e\xa7\x79\x73\x9b\x20\x4a\xbe\x91\x1b\x49\x23\xe6\xf6\x0f\xec\xe2\x71\xee\xdf\xc7\xf0\x74\xfe\x19\x19\xf0\xcb\xc6\xce\x2a\x99\x23\x4b\x00\x33\x89\x52\x08\x84\xb6\x60\x16\x5f\x5a\x1e\x80\xf8"[..]); ctx.update(b"\x89\xd9\x52\x1a\xd8\x4b\x1c\x9a\xfc\x2f\xbd\x0e\xdc\x22\x71\x93\xac\xd3\x33\x07\x64\xb0\xd2\xcb\x71\xbf\x47\xc7\xaa\xc9\x46\xaf\x85\xbe\x13\x85\x8b\x55\x97\x60\x09\xf3\xb3\x6b\x09\xce\xd4\x30\x80\x52\xc8\x17\xc9\xc4\xd0\x29\x52\x25\xf6\x1a\x96\x59\xa0\x87\x4b\x88\x66\x7c\xdc\xc5\x21\x39\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x42\x09\xbb\x8f\x86\x9f\x6f\x17\xc8\xd5\xc3\x68\xc4\x89\xac\x51\xa7\x5e\x24\xa8\x5a\x12\xde\x1b\x16\xfe\xfc\x29\x2c\xe6\x36\xff\x8f\xa3\x60\xe8\x2f\x05\x68\x4f\x6b\x0b\x07\x4b\xa3\x70\xa9\x33"[..]); ctx.update(b"\x32\x16\x66\x2d\xa0\x22\x79\x93\xd8\x82\x88\x18\x71\x77\xa0\x28\x7d\xe4\xec\xcf\x24\x5d\x7c\x71\x8b\x80\x45\xbb\xfb\x88\x69\xd9\x3f\x1f\xb9\xe9\x4d\x74\x78\xb0\x29\x8e\x62\x8c\x07\xe0\xed\xaa\xb0\x1d\xcf\x79\x26\x4d\xc0\x5f\x8b\x21\x81\xaa\x3f\x83\x1d\xc9\x49\x72\x6f\xbc\xf8\x0d\xe4\xc9\xc9\xed"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x64\xc4\x5e\x01\x8c\xfb\xc8\x8f\x8f\x4f\xfe\x3c\xef\x0d\xf3\xa9\x4a\xab\x30\x49\xfa\xfa\xe2\x8e\x28\xef\xbb\x2a\x4b\x94\x80\x9e\xb3\x02\xca\xf9\x01\x01\x0a\xbf\xa1\x94\xf7\x29\x65\x66\x3d\x35"[..]); ctx.update(b"\xe7\x76\xe6\x74\x9c\x5b\x6c\x7d\xef\x59\xcb\x98\x34\x09\x84\x53\x92\x80\xa9\x87\x4f\x80\x41\x2d\x4d\xf0\xee\x73\xd5\x8a\xcd\x10\x94\xd4\x9e\xd4\xe3\x51\x25\x83\x4c\xf8\xcf\xe3\x49\xe5\x99\x14\x4e\x4f\x2e\x20\x0a\xba\x4f\xd3\xeb\x6d\x78\xcd\xe0\x27\xc1\xd5\x62\x0e\x02\x70\xb5\xe8\x3a\xb2\x6b\x8d\x32"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\xbd\x67\xb7\xf2\x58\x7b\x0b\xda\x54\x87\xcc\x45\xd0\x0e\x43\x65\xf1\xee\x40\x07\x3c\xdf\x0d\x23\xa5\xea\x3f\xba\x01\xee\xf4\x2a\x46\xbf\xba\xc5\x30\x6d\x67\xbe\x02\xd8\xd9\x18\xae\x5c\x9a"[..]); ctx.update(b"\x5d\x8f\x84\xb2\xf2\x08\xb5\x8a\x68\xe8\x8c\xe8\xef\xb5\x43\xa8\x40\x4f\x0e\xc0\xc9\x80\x5c\x76\x0a\xd3\x59\xd1\x3f\xaa\xb8\x4d\x3f\x8b\xb1\xd2\xa4\xbb\x45\xe7\x2c\x0e\xc9\x24\x5f\xfd\xa2\xe5\x72\xf9\x4e\x46\x6c\xff\xa4\x4b\x87\x6d\x5c\x5e\xd9\x14\xd1\xff\x33\x8e\x06\xb7\x4a\xd1\xe7\x4d\x14\x05\xd2\x3d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\x73\x50\x30\x77\x48\xc2\x94\x67\xf0\x01\x03\xd0\xa0\x7c\x3c\x22\x8c\x5f\x49\x4f\xc8\x8f\xe2\x35\x2c\xa5\xd1\x04\x49\xd0\xdd\xa7\x07\x67\x80\xc0\x54\x39\xa0\x96\x94\xeb\x52\x8d\x1f\x47\x7a"[..]); ctx.update(b"\x35\x7d\x57\x65\x59\x50\x65\xef\xe2\x81\xaf\xb8\xd0\x21\xd4\x76\x4f\xba\x09\x1a\xdd\xe0\x5e\x02\xaf\x0a\x43\x70\x51\xa0\x4a\x3b\x8e\x55\x2e\xc4\x8f\xb7\x15\x2c\x47\x04\x12\xc4\x0e\x40\xee\xc5\x8b\x84\x28\x42\xd8\x99\x3a\x5a\xe1\xc6\x1e\xb2\x0d\xe5\x11\x23\x21\xbc\x97\xaf\x61\x8b\xbf\xba\xf8\xe2\xa8\x76\x99"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x32\x28\x69\x70\x20\x4c\x34\x51\x95\x8f\x51\x55\xf0\x90\x44\x8f\x06\x1d\xd8\x1b\x13\x6a\x14\x59\x2a\x32\x04\xc6\xb0\x8e\x92\x2e\xe5\xbb\x6d\x65\x34\xdb\xf8\xef\xb4\xbb\x73\x87\x09\x2c\x84\x00"[..]); ctx.update(b"\xa8\xcb\x78\xe1\x48\x5c\xbb\x7a\x94\x74\xc1\xc1\xf8\xe0\xf3\x07\xcd\xa5\x13\x9a\x7e\x94\x7d\xf5\xea\x20\xac\x33\x0a\x6d\xff\xca\xd4\xa9\xbd\x75\x5f\x9f\x58\x72\x47\x89\xee\xee\x53\x26\x15\xbe\x55\x0d\xd8\x4f\x52\x41\xfd\xe0\xe3\x05\x8a\xee\xdb\xf2\x87\xf0\x2a\x46\x04\x45\x02\x7f\x5e\x6b\x38\x29\xbf\x71\xec\xf4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x51\x16\x8b\xfe\xef\x8a\x98\x1c\x0d\xef\x0c\x4c\xb0\x67\xba\xf1\x5c\xe5\xfe\xb8\xd5\xf7\xe9\xd6\x07\x6b\x28\x36\x26\x73\x91\xae\xe1\xfd\x3a\x0b\x5d\x34\x34\xce\xb5\xcf\x2d\x6f\xa0\x6f\xa0\x63"[..]); ctx.update(b"\x81\xac\xca\x82\x54\x5e\x76\x7a\xb5\x9d\xcc\x75\x0a\x09\x84\x9c\xeb\xad\x08\xff\x31\xc9\x29\x7f\x4f\xd5\x10\xeb\xe6\xc2\x77\x69\x93\x83\x19\x18\x0c\xcc\x66\xf3\x6b\x1a\x7c\xf9\xc9\xf3\x53\x8b\x0f\x6f\x37\x15\x09\xf7\x7c\xf0\xbc\x4d\x6d\x87\xfa\xcc\x85\xb9\x33\xf2\xe2\x7f\x8e\x1b\xf6\xcf\x38\x8f\x80\xc0\xfc\xbf\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\xe4\x4d\x65\x09\x98\x68\x93\xa8\x41\x47\x53\xb5\x7d\x11\xf9\xc5\x54\xd8\x9c\x15\xad\x6d\x70\x68\x7c\x56\xc6\xc2\xac\x73\x53\x7a\xcb\xb0\xd5\x1f\x48\xe6\xbe\xa6\xcf\x76\x2d\x58\x89\x0d\x7a"[..]); ctx.update(b"\x94\x98\x74\x98\xb1\xca\x87\xa6\xf3\xfa\x4b\x99\x9d\xb7\x26\x11\x5c\x45\x5d\x0e\xc2\x40\x29\xb2\xf5\x81\x0e\x49\xa9\x46\x68\x86\x4b\x8c\x47\x0f\x7f\xc0\x7c\x3d\xcd\x97\xf4\x1c\x97\x3b\x45\xba\x4f\xa7\x87\x9e\xe7\x54\x65\x96\x88\x15\x73\xb6\x86\x3f\xc3\x9d\x94\x0e\xb3\xfa\x34\x44\x08\x4f\x72\x13\x41\xf5\xd2\x3d\x25\x61"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa7\x33\xb1\x18\xbe\x72\xa1\x87\xdd\xcb\xe5\xba\x67\xe0\x4b\x58\x9f\x9c\xd9\xf8\x48\x2c\x4b\xd9\xd6\x4c\x58\x0a\xba\x7d\x19\xd2\xd1\xf9\xc1\xdd\xf9\x5f\xe6\xef\xde\xff\xd4\x4f\x67\xfc\xab\xb5"[..]); ctx.update(b"\xde\x6b\x32\xc2\xd4\x0d\x06\x59\x16\x6d\xb2\x35\x25\x9b\x53\x0e\xa4\x3f\x44\xe7\x5d\x8b\x3e\x9e\x85\x6e\xc4\xc1\x41\x0b\xbe\xa3\x69\x69\x64\xaf\x8b\x6c\x5d\xfd\x33\x04\x28\x23\x69\xa4\xbc\x4e\x7c\xf6\x6b\x91\xfe\xcd\x0c\x7c\x10\x5b\x59\xf1\xe0\xa4\x96\x33\x6f\x32\x74\x40\x98\x0a\x34\x61\x4e\xe0\x0f\xff\x25\x87\xd6\xb8\x13"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\xba\x30\xc0\xb5\xfc\x18\x5b\x32\x45\x31\x3b\x83\xdd\x04\x81\x14\x59\x53\x10\x11\x28\x91\x47\x65\x78\x4a\xf7\x51\x74\x5b\x8a\x2b\x6a\x90\xa4\x34\x54\x8f\x3a\xda\xf1\xf0\x7f\x18\x64\x98\x90"[..]); ctx.update(b"\x85\x42\x11\xbe\xda\xcc\x19\xf7\x7b\x46\xcf\xa4\x47\xa4\xad\x67\x2e\xa9\xb6\x43\xf0\x9f\x5c\xf5\x27\x4b\xa2\x88\x88\x20\x7e\x24\x66\xb3\x81\x27\x77\x6f\xb9\x76\xdb\x8a\xd7\x16\x5a\x37\x8d\xf6\xee\x1e\x3a\x0f\x81\x09\xc9\xaf\xf7\xe0\xd6\x12\x6f\xd7\x13\x33\xc6\xe6\xeb\xe1\x5d\x7a\x65\x15\x1d\x6a\x4a\x83\xb8\x2c\x8a\x6f\x31\x49"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xca\x85\x63\x2a\x9f\x7c\x32\xac\x47\x05\xc6\x45\x87\x70\x02\x5d\xda\x4f\xd0\x7a\x8d\x5d\x69\x21\xb8\x97\xb0\xda\x49\x0d\x64\x40\x05\x87\x64\x9f\x2d\x20\xbf\x60\x8b\x9a\x18\xd0\x71\xb6\x3b\x48"[..]); ctx.update(b"\x82\x23\x73\xd9\xd3\xd5\xb0\x6a\x8d\xa4\x8a\x43\x09\x57\x40\xfb\x98\xc9\xca\xf7\x17\x35\x0f\xd2\xc3\xb0\x58\x02\x4f\xf7\x05\xb9\x34\x6b\x7f\x0a\x49\x5a\x6d\x4d\x93\x80\x2b\xc4\x5e\xce\x77\x7f\x8c\x6a\x6e\x7c\x2e\xf6\xb8\x13\x51\x15\xff\x91\x1a\x2b\xa5\x24\x16\x65\xb6\xf7\xcb\xfa\x1b\x9d\x93\xb0\x11\xb3\xaa\xa1\xda\xc1\x85\x3f\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\x84\x58\x7c\x8c\x6e\x54\x35\x3a\x60\x32\xe7\x50\x59\x02\xef\x7f\x0f\x05\x38\xdd\x1b\xb3\x29\x22\xe1\x3a\x7d\x4d\x98\xc4\x7a\x54\x10\x15\x38\x1e\xab\x27\xe9\x18\x63\x98\x12\x0d\xa7\xfb\x32"[..]); ctx.update(b"\xc0\x4b\x70\x1f\x68\x80\x92\xbb\xd1\xcf\x42\x17\xbc\x4b\x58\x77\xf2\xe6\x0c\x08\x7b\xda\xc4\x66\x11\x48\x2a\x61\xd5\x1f\x82\x01\x40\x40\x3b\xc8\x5b\xe0\xc3\x36\x33\x2d\xa0\x93\x87\x34\xbd\xe8\xc5\x02\x01\x4f\x35\x09\x26\x6c\x73\xc6\xc9\x3c\x22\xa1\xbd\x0d\xdf\x15\xa5\xce\x74\x10\xc2\x89\x4e\x9d\x09\x2e\x32\xc0\x79\x92\x2b\xa1\xab\xb7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\xc5\x85\x50\x3f\x15\xa5\x26\x11\x36\x08\xbc\x18\x31\x80\xb1\xcb\x80\xf4\xd1\xb4\x66\xc5\x76\xbf\x02\x1b\x1c\xe7\xa1\x52\x83\x91\xf7\x0e\x10\x44\x66\x81\x84\x9f\xa8\xa6\x43\xcb\x2b\x68\x28"[..]); ctx.update(b"\x00\x9d\xd8\x21\xcb\xed\x12\x35\x88\x0f\xe6\x47\xe1\x91\xfe\x6f\x65\x55\xfd\xc9\x8b\x8a\xad\x0f\xf3\xda\x5a\x6d\xf0\xe5\x79\x90\x44\xef\x8e\x01\x2a\xd5\x4c\xb1\x9a\x46\xfd\xd5\xc8\x2f\x24\xf3\xee\x77\x61\x3d\x4b\xed\x96\x1f\x6b\x7f\x48\x14\xaa\xac\x48\xbd\xf4\x3c\x92\x34\xce\x2e\x75\x9e\x9a\xf2\xf4\xff\x16\xd8\x6d\x53\x27\xc9\x78\xda\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x02\xa0\x9d\x37\xd3\x1e\x43\x65\xc2\x6b\xec\x0e\xaa\xce\xcf\x29\xee\xa4\xe8\xd2\x1a\xb9\x15\xdd\x60\x52\x48\x76\x4d\x96\x4f\x10\xeb\xb8\xfa\xfd\xb5\x91\x98\x2d\x33\x86\x9a\x1d\x08\xa7\xe3\x13"[..]); ctx.update(b"\x0b\x7d\xd6\x70\x9d\x55\xe0\xd5\x26\xd6\x4c\x0c\x5a\xf4\x0a\xcf\x59\x5b\xe3\x53\xd7\x05\xbe\x7b\x7a\x0b\x1c\x4c\x83\xbb\xe6\xa1\xb1\xec\x68\x1f\x62\x8e\x9d\x6c\xfc\x85\xad\x9c\x8b\xb8\xb4\xec\xac\x64\xc5\xb3\xa9\xb7\x2f\x95\xe5\x9a\xfe\xfa\x7b\xce\xc5\xbe\x22\x3a\x9b\x2b\x54\x83\x64\x24\xaf\xde\x52\xa2\x9b\x22\xab\x65\x2d\x22\xcc\xe3\x4b\x39"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x84\xae\x39\xd9\x59\xb7\x95\x55\x23\x17\x46\xad\x5b\x33\x68\x9a\x31\x72\x0e\xd0\x07\x0f\x67\x72\x14\x79\x77\xed\xd0\xae\xad\x07\xfb\x8b\x7b\x71\xb0\xbd\x58\x7e\xbc\x5c\x1a\x80\xd5\x64\xc7"[..]); ctx.update(b"\x3e\x9b\x65\xd7\xbf\x42\x39\x42\x0a\xfa\x86\x39\xc8\x19\x5b\x63\x90\x2b\x24\x49\x5b\x95\xc4\x14\x39\x78\xe4\x98\x43\xd8\x8a\x92\xd1\xfe\xed\x2e\xed\x1a\x88\xcd\x07\x2d\x6d\x04\xea\x26\xdc\xe8\xee\x4b\x14\x89\x6f\xdb\x69\xbc\x7f\xf2\x97\x1e\xd8\xac\x56\x55\x14\x8d\x2e\x99\x21\x21\x8d\x74\xef\xdf\x17\xc5\x6b\x53\x3d\x0b\xb1\x7d\x11\xe0\x7d\x74\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xab\x78\x90\xd1\xb5\x1a\xf1\x02\x85\x75\x2b\xf9\xda\x5e\xee\x5c\x3e\x87\xa2\x85\xdc\x33\x26\x2d\x02\x61\xaa\x9a\x57\x5f\x30\x3e\x94\x84\x5d\x7a\xb2\x1b\x48\xf4\xe6\x88\x45\x68\xcd\x78\xb5\x50"[..]); ctx.update(b"\x94\x36\xda\x43\x3d\x1e\xbd\x10\xb9\x46\xb1\x29\xcb\x34\xbc\xce\xc9\xb8\xf7\x05\xaa\xba\x3f\x85\x61\x35\x2e\xd3\x6a\x84\x49\xab\xa2\xdd\x7b\xa1\x5b\x1b\xc3\x08\xb0\xc0\x29\x13\x16\x3a\xf6\x3a\x34\x65\x24\xdf\xf5\x52\x14\x32\xdb\x47\x7f\x52\x96\x06\xaf\xb5\xd5\x52\xef\xc9\x5c\xb0\x40\xdb\x56\x6b\x4d\x39\xed\xda\xa1\x93\x19\xe5\x18\xa7\xb5\xc6\x93\x1e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x96\x8a\xe9\x10\x4f\x9c\x90\x7c\x5a\x72\x93\x62\x50\xdf\xed\xd6\x2c\xd0\x4f\x6e\x5d\xdd\x2c\x11\x34\x90\x80\x8a\x11\x88\x44\x49\xaa\xef\x5d\x01\x3e\xa3\x99\x3a\x6c\xb6\xfc\x5c\x08\x75\x44\x08"[..]); ctx.update(b"\x37\x25\x4b\xf9\xbc\x7c\xd4\xed\x72\xe7\x2b\x6b\xb6\x23\xa0\xcc\x8e\xeb\x96\x3d\x82\x7a\xef\x65\xad\x4b\xc5\x49\x13\x23\x5b\x6d\x35\x51\x53\x3c\xe3\x34\x21\xaa\x52\xff\xbf\x18\x6e\xb9\xa2\x78\x71\x88\xee\xb1\xb5\x2e\xe6\x45\xc6\xd4\xa6\x31\xbc\x07\x14\x15\xc8\x00\x14\x94\x0c\x28\xfb\xfe\xb0\xdb\x47\x2c\x32\x6c\x8d\xac\xfd\x6a\xb2\x1f\x3e\x22\x5e\xde\xf3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x97\x5e\x10\xfa\xc9\xaa\x77\xb7\x80\xe5\xf6\xc2\x15\x1e\xc4\xa3\xc7\x2f\xf2\x6e\x41\x23\x3c\xc7\x74\xc0\x74\xdf\x1b\x78\xcc\xe5\xaf\x11\x91\xba\x95\x5a\x0b\xce\x15\x92\x6a\xe6\x91\xb0\xff\xe7"[..]); ctx.update(b"\x79\xe7\x7c\xd0\x8a\x6e\xf7\x70\xbb\xe4\xbe\xdf\x61\x55\x7e\xa6\x32\xb4\x2d\x78\x63\x71\x49\x67\x0d\x4d\x61\x57\xd5\x6e\xd7\xb2\xcc\xae\xe4\x5d\x94\x39\xdc\xeb\xc5\x57\xb4\x11\x8e\x86\xc1\x5a\xa0\xcc\xc2\x1c\x47\x4b\x21\xab\xda\x16\x76\xcc\x56\x43\x4d\x6d\x46\x42\x29\x93\xe6\x6d\xc9\x93\x87\xdf\xa9\x85\x35\x8a\xcc\xf6\x98\x84\xb9\xdd\x18\xa2\xc4\xd0\x44\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\x72\x9f\x5f\x99\xa5\x4f\x5a\x3e\xa6\x92\x33\xff\x9d\x52\x23\x92\xd4\x59\x6e\xb6\xac\x2b\xbb\x07\x49\x2e\xce\x3c\x67\x31\x74\x12\xbb\x47\xae\x31\x7d\xdd\x20\x53\x6c\x3a\xdc\x00\x38\x62\xf1"[..]); ctx.update(b"\x64\xb7\x6c\xb5\x54\xf6\xbe\xcc\x23\x8a\x3f\xcf\xc3\xeb\x97\x99\x36\x67\xec\x82\xfd\xc3\xfb\x28\xd4\x25\x67\x70\x9c\x32\x50\xc7\x99\x73\x28\xae\xdd\xfd\xc2\x75\x04\x51\xac\x46\x22\x81\xbf\x66\xfa\x94\xf4\xb8\x71\x2c\x7a\x83\x42\x66\x05\x74\xf2\x02\x68\xe7\x07\xc4\x66\x62\x75\x19\xc5\x62\x59\xfe\xa5\x5b\xe9\x1e\x10\xfa\xab\x3a\xd2\xad\xe6\xce\x8b\x65\x57\xf2\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x26\xd4\x8e\xf5\x06\x7d\x70\x4e\xe9\xe2\xa6\x4e\x39\x9d\xe2\x30\x68\x90\x8b\x3c\x91\x1f\xfc\x40\x56\xc1\x68\x36\x2c\x37\x38\x5c\x92\xd3\x7d\x51\x35\x4b\x65\x05\xa8\x2c\x4d\x22\xfe\xc3\x7e\xaa"[..]); ctx.update(b"\x3d\xf2\x78\x29\xbf\xb1\xab\x7d\x38\x1f\x14\x6b\x30\x37\x0e\xf5\x6b\x39\x2b\x73\xb3\x5b\x1b\xe5\xd8\xbb\xcf\x88\xf4\x99\xdd\xa7\xf3\xc3\x27\xb4\x53\x50\xb8\x97\x29\x91\xee\x46\x65\x45\xde\x96\x56\x0c\xf4\x51\x71\x1f\xda\x88\x4e\x3d\x9b\x2a\xf3\xe9\x09\xd6\x55\xd2\x5c\xee\x1c\x93\x1b\xed\xa7\x9c\x40\xfa\x50\x70\x97\xbd\xf1\x12\x67\x71\xa7\xb9\x54\x3a\xd5\xcb\x84\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5f\xa4\xeb\xfa\x24\x15\x02\x36\xc0\x34\x09\xf0\x85\x7b\x31\xcb\x95\xb0\x15\x0f\x38\x1c\x88\x58\xb0\x15\x59\x95\x7b\x12\x68\xf7\x3c\x69\x87\x09\x23\x3e\x6b\x15\x46\x86\x75\xa1\x02\xd0\xc5\xe5"[..]); ctx.update(b"\xb0\x0f\x4e\x67\xca\x08\xcc\xfa\x32\xb2\x69\x8f\x70\x41\x1d\x8f\x57\x0f\x69\xc8\x96\xe1\x8e\xc8\x89\x6c\xfe\x89\x55\x18\x10\x54\x33\x03\xf7\xdf\x0c\x49\xf5\xb9\x47\x83\xcc\xe7\xdf\x8d\x76\xd0\xb8\x8d\x15\x56\x33\x30\x2d\x46\x00\x37\x11\xf2\x33\x33\x9b\x1c\x9a\x8c\x20\x16\x4e\xc8\xa3\x28\x89\x0a\x49\x32\xb7\xd9\x0d\x92\xd0\x23\xb5\x48\xe4\x82\x05\x58\xf8\xbd\x32\x70\x10"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xea\xa7\x56\xb5\x89\x2f\xdf\xc7\x93\xd7\x4e\x3f\x9f\x4d\x6c\x7a\x5a\x6a\x22\x41\xdd\x11\xe0\xc3\x8c\xed\x59\xc8\xec\x7b\xe3\x77\xa4\x1d\x1d\x06\x77\x4a\x59\x70\xce\x97\x22\xd8\xe1\x19\xd0\xad"[..]); ctx.update(b"\xa4\xf9\x5f\x6a\x46\xa9\xcb\xf3\x84\xa7\xe9\x8e\x10\x2d\x1f\xdc\x96\x83\x9d\x1b\xf2\x6b\x35\xa5\xa0\xbd\x6c\xb9\x73\x4f\xd1\x7e\x8a\x17\x8d\x45\x81\x94\x3c\x0f\xe4\x69\xfb\x4f\xe9\x4c\xc2\xf1\x5e\x1e\xf5\x9a\xe0\x5b\x35\x32\x4e\xb5\x7c\xa0\x7d\xfc\x69\xd4\x2d\x41\xd8\x0b\x3c\x3b\xb6\x4e\x1a\xea\x14\x3c\x7d\x79\x79\x0a\x56\x69\x7d\xc8\x03\xec\x93\xe6\xc6\x8f\x27\xf6\x76\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1a\xff\x8d\x9c\x64\xf0\xc1\x62\xed\x01\x95\xd1\xf3\xa3\x42\xa0\x10\xd1\x4b\xe0\x63\x69\x03\xc4\x80\x20\xba\x42\xde\x1c\xfa\x8b\x98\xae\x21\x42\xd8\x9a\xf3\xe6\x9e\x9e\xb4\xc7\x35\x85\x7d\xd1"[..]); ctx.update(b"\x02\x71\x30\x84\xbf\x93\xfd\xc3\x51\x35\x51\x52\x43\xc3\xbc\x0f\x4b\x2b\x44\x7f\x2d\x34\x61\xc0\xdc\x10\x4c\xbf\xe2\x34\x79\xab\x03\x67\x62\xa9\x1d\x19\x87\xc9\x53\xf7\xb3\x38\x6a\xbc\x80\xb8\x73\x4a\x1d\x4e\xab\xf9\x4f\x3a\x9f\x2f\xb6\x2c\x94\x31\x52\xb5\x25\x38\x46\xfc\x2e\xc8\xdb\xb2\xe9\x3d\xc7\x48\x57\xa7\xb0\x5f\xe2\xd7\xec\x80\x40\xba\x8b\x0d\x9a\xe6\x97\x77\xee\x73\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\xda\x02\x11\x4e\x34\x1a\x36\x36\xf0\x08\x22\xb3\x2b\xd2\x1a\x8a\x1f\x7b\x39\xf2\x95\x6b\xd9\x7f\x39\x34\x6f\xed\xf9\xaa\xe6\x3b\x30\x4c\x65\xc9\x3a\x54\x1e\x8b\xcd\xa5\x49\x57\x6d\x5f\x27"[..]); ctx.update(b"\x00\xce\x22\x5e\xae\xa2\x48\x43\x40\x6f\xa4\x2c\xc8\x45\x0e\x66\xf7\x6a\xc9\xf5\x49\xb8\x59\x1f\x7d\x40\x94\x2f\x48\x33\xfc\x73\x4a\x03\x4c\x87\x41\xc5\x51\xd5\x7d\xda\xfb\x5d\x94\xce\xb4\xb2\x56\x80\xf0\x45\x03\x83\x06\xe6\xbc\xc5\x3e\x88\x38\x6e\x2b\x45\xb8\x0b\x3b\xa2\x3d\xec\x8c\x13\xf8\xca\x01\xc2\x02\xae\x96\x8c\x4d\x0d\xf0\x4c\xdb\x38\x39\x5d\x2d\xf4\x2a\x5a\xff\x64\x69\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\xd6\xe0\xd9\x65\x75\xa9\xb8\xca\x08\x3e\xe9\xec\x2e\xad\x57\xdd\xf7\x2b\x97\xd7\x70\x90\x86\xa2\xf4\xa7\x49\xd3\xf6\x1d\x16\x42\x34\x63\x48\x75\x62\xc7\xf0\x9a\xba\x1b\x26\xe8\xca\xe4\x7b"[..]); ctx.update(b"\x7a\xf3\xfe\xed\x9b\x0f\x6e\x94\x08\xe8\xc0\x39\x7c\x9b\xb6\x71\xd0\xf3\xf8\x09\x26\xd2\xf4\x8f\x68\xd2\xe8\x14\xf1\x2b\x3d\x31\x89\xd8\x17\x48\x97\xf5\x2a\x0c\x92\x6c\xcf\x44\xb9\xd0\x57\xcc\x04\x89\x9f\xdc\x5a\x32\xe4\x8c\x04\x3f\xd9\x98\x62\xe3\xf7\x61\xdc\x31\x15\x35\x1c\x81\x38\xd0\x7a\x15\xac\x23\xb8\xfc\x54\x54\xf0\x37\x3e\x05\xca\x1b\x7a\xd9\xf2\xf6\x2d\x34\xca\xf5\xe1\x43\x5c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x00\xe9\x5f\x4e\x8a\x32\xa0\x3e\x0a\x3a\xfb\xa0\xfd\x62\xc7\xc3\xc7\x12\x0b\x41\xe2\x97\xa7\xff\x14\x95\x8c\x0b\xdf\x01\x5a\x47\x8f\x7b\xab\x9a\x22\x08\x2b\xfb\x0d\x20\x6e\x88\xf4\x68\x51\x17"[..]); ctx.update(b"\x2e\xae\x76\xf4\xe7\xf4\x8d\x36\xcd\x83\x60\x78\x13\xce\x6b\xd9\xab\x0e\xcf\x84\x6a\xd9\x99\xdf\x67\xf6\x47\x06\xa4\x70\x89\x77\xf0\xe9\x44\x0f\x0b\x31\xdc\x35\x0c\x17\xb3\x55\x00\x7f\xed\x90\xd4\xb5\x77\xb1\x75\x01\x47\x63\x35\x7c\xe5\xa2\x71\x21\x2a\x70\x70\x27\x47\xc9\x8f\x8f\x0a\xd8\x9b\xf9\x5d\x6b\x7f\xbb\x10\xa5\x1f\x34\xd8\xf2\x83\x5e\x97\x40\x38\xa3\xdd\x6d\xf3\xf2\xaf\xfb\x78\x11"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xeb\x39\x6c\xfa\xf2\x6e\xe2\x77\x5a\xf3\xc9\xa3\xa3\x04\x76\x64\xca\x34\xcb\xc2\x28\xcc\xbb\x96\x6d\xf1\x87\xd5\x18\x71\x7d\xf6\xa3\x28\xec\xc3\x16\xed\x0e\xd0\x9b\x17\x00\x80\xec\xcc\x48\x6f"[..]); ctx.update(b"\x09\x3e\x56\xd3\x3b\xd9\x33\x7a\xd2\xad\x26\x8d\x14\xba\xc6\x9a\x64\xa8\xa7\x36\x13\x50\xcf\x9f\x78\x7e\x69\xa0\x43\xf5\xbe\xb5\x0e\xb4\x60\x70\x35\x78\xa8\x1b\xe8\x82\x63\x9f\x7e\x9a\xc9\xa5\x0c\x54\xaf\xfa\x37\x92\xfd\x38\x46\x4a\x61\xa3\x7c\x8a\x45\x51\xa4\xb9\xff\x8e\xed\x1f\x48\x7e\xf8\xa8\xf0\x04\x30\xe4\xd0\xe3\x5a\x53\xff\x23\x6c\xe0\x49\xb7\xa3\xab\xdc\x5c\xd0\x0b\x45\xc4\xf3\xd4\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\x33\x91\x28\x48\x6e\x5b\x27\x4f\xc4\xed\x53\x8c\x0e\xc9\xe5\x7f\x78\x0e\x9c\x50\x0c\x5f\x92\xb0\x4a\xe8\x1a\x22\xfb\xee\xbf\x37\x85\x25\x9a\x0b\xb3\xb6\xd9\xb4\x7f\x31\x87\x3c\xd8\xdf\xfa"[..]); ctx.update(b"\x05\x93\xba\xbe\x7a\x62\x02\x07\x7c\x02\x6e\x25\x3c\xb4\xc6\x0e\xe7\xba\xd7\xb1\xc3\x1a\x20\xda\x7a\xa0\xce\x56\xb6\x22\xeb\x57\xed\x07\xd2\x1a\x7f\x0a\xe6\xc6\xfe\x3c\x83\x98\xcc\x48\x35\x3d\xec\xfb\x28\x7f\x12\x04\xe0\x24\xfc\xf8\x2a\x13\x05\x99\x53\xb9\xf8\x57\x97\xab\x22\x17\xdc\x8d\xab\x34\xa1\x32\x26\xc3\x31\x04\x66\x1c\x1c\xa7\x93\x96\xe7\xd9\x7e\x91\x03\x9d\x32\xba\xfc\x98\xcc\x8a\xf3\xbb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x59\x81\x81\x5c\x16\x18\xcc\x49\xcd\x5c\xf7\x1a\x4b\x7b\x32\xb8\xcd\x7b\x7e\xf5\x53\xbf\xae\xf2\x14\x9a\xc7\x23\xff\x25\x82\xa2\xd3\x45\xc5\xbd\x05\x94\x3e\x15\x5c\xed\x1e\x5f\x09\x1c\x56\x01"[..]); ctx.update(b"\xae\x18\x28\x04\x7c\x5f\x82\xa7\xb9\x71\x2f\x33\x99\x83\x21\x24\xb8\x92\xf2\xf7\xae\xa5\x1c\x8f\xe3\x53\x6c\xd6\xa5\x84\xb4\xa7\x77\x7c\xc1\xec\xac\x15\x8c\x03\x35\x4b\xb4\x67\xb8\xfe\x2c\x8c\xe2\xf4\x31\x0a\xfd\x1e\x80\xfe\xc5\x1c\xc5\xad\x77\x02\x56\x6b\x2c\x5d\x21\xbc\x65\x71\xe4\xb8\xe7\xc5\x9c\xb4\xc9\xe2\x3f\x1e\xcb\x57\xad\xa9\xe9\x00\xe4\xaa\x30\x88\x74\xc2\xd1\x2d\x34\xbe\x74\xc3\x32\xbb\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x72\x57\xf5\xbf\xa7\xd3\x3d\x1c\xf5\xf4\x55\x0d\x0c\xb7\x87\x50\xe8\x4c\x5b\x7d\x25\x02\x7d\xa6\xac\xec\x64\xbd\xf3\x08\x79\xa0\xe5\xc9\x7f\xe7\xc4\x68\xe7\x43\xaa\x5e\xc2\xbd\xdb\x29\xd1\x93"[..]); ctx.update(b"\x3b\xce\xed\xf5\xdf\x8f\xe6\x99\x87\x1d\xec\xb7\xdd\x48\x20\x3e\x25\x18\xfb\x0f\xce\x0f\x86\x5f\x46\xad\xce\x5c\x13\x3a\x92\x13\x20\xbf\x40\x91\x54\x56\x20\x48\x69\xa3\xce\xb5\xfc\xa3\xed\x40\xe0\xa4\x1a\x64\xb8\x95\x1f\x0f\xc5\x80\x69\x4c\xfc\x55\xbd\x1f\x5c\xe9\x26\xb0\x7e\x3e\x32\xac\x6e\x05\x5d\xe9\xb9\x61\xce\x49\xc7\xee\x41\xe0\x6b\x02\x45\x59\xb9\x33\xa7\x95\x18\x19\x2e\x96\x98\x55\x88\x9c\x85\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x60\xd7\xf8\xbd\x85\xfb\x7a\x13\x70\x1d\xb5\xad\xed\x2b\x77\x71\xab\x5e\x47\x6e\xc3\x4f\x1f\xd4\x29\x89\x78\xde\xfb\xd2\xb3\x1b\xb2\x97\x93\x91\x55\x9a\x16\x4b\x3e\xd2\x8f\x6a\x39\x03\x1a\x11"[..]); ctx.update(b"\x6c\x36\x14\x76\x52\xe7\x1b\x56\x0b\xec\xbc\xa1\xe7\x65\x6c\x81\xb4\xf7\x0b\xec\xe2\x63\x21\xd5\xe5\x5e\x67\xa3\xdb\x9d\x89\xe2\x6f\x2f\x2a\x38\xfd\x0f\x28\x9b\xf7\xfa\x22\xc2\x87\x7e\x38\xd9\x75\x54\x12\x79\x4c\xef\x24\xd7\xb8\x55\x30\x3c\x33\x2e\x0c\xb5\xe0\x1a\xa5\x0b\xb7\x48\x44\xf5\xe3\x45\x10\x8d\x68\x11\xd5\x01\x09\x78\x03\x8b\x69\x9f\xfa\xa3\x70\xde\x84\x73\xf0\xcd\xa3\x8b\x89\xa2\x8e\xd6\xca\xba\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb1\x31\x91\x92\xdf\x11\xfa\xa0\x0d\x3c\x4b\x06\x8b\xec\xc8\xf1\xba\x3b\x00\xe0\xd1\xff\x1f\x93\xc1\x1a\x36\x63\x52\x2f\xdb\x92\xab\x3c\xca\x38\x96\x34\x68\x7c\x63\x2e\x0a\x4b\x5a\x26\xce\x92"[..]); ctx.update(b"\x92\xc4\x1d\x34\xbd\x24\x9c\x18\x2a\xd4\xe1\x8e\x3b\x85\x67\x70\x76\x6f\x17\x57\x20\x96\x75\x02\x0d\x4c\x1c\xf7\xb6\xf7\x68\x6c\x8c\x14\x72\x67\x8c\x7c\x41\x25\x14\xe6\x3e\xb9\xf5\xae\xe9\xf5\xc9\xd5\xcb\x8d\x87\x48\xab\x7a\x54\x65\x05\x9d\x9c\xbb\xb8\xa5\x62\x11\xff\x32\xd4\xaa\xa2\x3a\x23\xc8\x6e\xad\x91\x6f\xe2\x54\xcc\x6b\x2b\xff\x7a\x95\x53\xdf\x15\x51\xb5\x31\xf9\x5b\xb4\x1c\xbb\xc4\xac\xdd\xbd\x37\x29\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x71\x30\x7e\xec\x13\x55\xf7\x3e\x5b\x72\x6e\xd9\xef\xa1\x12\x90\x86\xaf\x81\x36\x4e\x30\xa2\x91\xf6\x84\xdf\xad\xe6\x93\xcc\x4b\xc3\xd6\xff\xcb\x7f\x3b\x40\x12\xa2\x19\x76\xff\x9e\xdc\xab\x61"[..]); } } nettle-7.1.0/src/hash/sha3_512.rs000064400000000000000000001132050072674642500144630ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha3_512, nettle_sha3_512_digest, nettle_sha3_512_init, nettle_sha3_512_update, sha3_512_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 512 bit variant of the Secure Hash Algorithm 3 (SHA-3) defined in FIPS 202. #[allow(non_camel_case_types)] pub struct Sha3_512 { context: sha3_512_ctx, } impl_write_for_hash!(Sha3_512); impl Clone for Sha3_512 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha3_512_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha3_512 { context: ctx } } } } impl Default for Sha3_512 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha3_512_init(&mut ctx as *mut _); } Sha3_512 { context: ctx } } } impl Hash for Sha3_512 { fn digest_size(&self) -> usize { ::nettle_sys::SHA3_512_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha3_512_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha3_512_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha3_512 { type Context = sha3_512_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha3_512 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha3_512::default(); } // CAVS 19.0 // "SHA3-512 ShortMsg" information for "SHA3AllBytes1-28-16" // Length values represented in bits // Generated on Thu Jan 28 13:32:47 2016 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha3_512::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5\xc8\xb5\x67\xdc\x18\x5a\x75\x6e\x97\xc9\x82\x16\x4f\xe2\x58\x59\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c\x11\xe3\xe9\x40\x2c\x3a\xc5\x58\xf5\x00\x19\x9d\x95\xb6\xd3\xe3\x01\x75\x85\x86\x28\x1d\xcd\x26"[..]); ctx.update(b"\xe5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x15\x02\x40\xba\xf9\x5f\xb3\x6f\x8c\xcb\x87\xa1\x9a\x41\x76\x7e\x7a\xed\x95\x12\x50\x75\xa2\xb2\xdb\xba\x6e\x56\x5e\x1c\xe8\x57\x5f\x2b\x04\x2b\x62\xe2\x9a\x04\xe9\x44\x03\x14\xa8\x21\xc6\x22\x41\x82\x96\x4d\x8b\x55\x7b\x16\xa4\x92\xb3\x80\x6f\x4c\x39\xc1"[..]); ctx.update(b"\xef\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\x9b\x41\x24\xd2\xb1\x74\x73\x1d\xb1\x45\x85\xc2\x53\x19\x4c\x86\x19\xa6\x82\x94\xc8\xc4\x89\x47\x87\x93\x16\xfe\xf2\x49\xb1\x57\x5d\xa8\x1a\xb7\x2a\xad\x8f\xae\x08\xd2\x4e\xce\x75\xca\x1b\xe4\x6d\x06\x34\x14\x37\x05\xd7\x9d\x2f\x51\x77\x85\x6a\x04\x37"[..]); ctx.update(b"\x37\xd5\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\xa9\x6b\x15\x47\xe6\x40\x2c\x0e\xee\x78\x1a\xca\xa6\x60\x79\x7e\xfe\x26\xec\x00\xb4\xf2\xe0\xae\xc4\xa6\xd1\x06\x88\xdd\x64\xcb\xd7\xf1\x2b\x3b\x6c\x7f\x80\x2e\x20\x96\xc0\x41\x20\x8b\x92\x89\xae\xc3\x80\xd1\xa7\x48\xfd\xfc\xd4\x12\x85\x53\xd7\x81\xe3"[..]); ctx.update(b"\xfc\x7b\x8c\xda"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\xa5\x42\x2d\x6b\x15\xeb\x1f\x22\x3e\xbe\x4f\x4a\x52\x81\xbc\x68\x24\xd1\x59\x9d\x97\x9f\x4c\x6f\xe4\x56\x95\xca\x89\x01\x42\x60\xb8\x59\xa2\xd4\x6e\xbf\x75\xf5\x1f\xf2\x04\x92\x79\x32\xc7\x92\x70\xdd\x7a\xef\x97\x56\x57\xbb\x48\xfe\x09\xd8\xea\x00\x8e"[..]); ctx.update(b"\x47\x75\xc8\x6b\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xce\x96\xda\x8b\xcd\x6b\xc9\xd8\x14\x19\xf0\xdd\x33\x08\xe3\xef\x54\x1b\xc7\xb0\x30\xee\xe1\x33\x9c\xf8\xb3\xc4\xe8\x42\x0c\xd3\x03\x18\x0f\x8d\xa7\x70\x37\xc8\xc1\xae\x37\x5c\xab\x81\xee\x47\x57\x10\x92\x3b\x95\x19\xad\xbd\xde\xdb\x36\xdb\x0c\x19\x9f\x70"[..]); ctx.update(b"\x71\xa9\x86\xd2\xf6\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xde\xf6\xaa\xc2\xb0\x8c\x98\xd5\x6a\x05\x01\xa8\xcb\x93\xf5\xb4\x7d\x63\x22\xda\xf9\x9e\x03\x25\x54\x57\xc3\x03\x32\x63\x95\xf7\x65\x57\x69\x30\xf8\x57\x1d\x89\xc0\x1e\x72\x7c\xc7\x9c\x2d\x44\x97\xf8\x5c\x45\x69\x1b\x55\x4e\x20\xda\x81\x0c\x2b\xc8\x65\xef"[..]); ctx.update(b"\xec\x83\xd7\x07\xa1\x41\x4a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x84\xfd\x37\x75\xba\xc5\xb8\x7e\x55\x0d\x03\xec\x6f\xe4\x90\x5c\xc6\x0e\x85\x1a\x4c\x33\xa6\x18\x58\xd4\xe7\xd8\xa3\x4d\x47\x1f\x05\x00\x8b\x9a\x1d\x63\x04\x44\x45\xdf\x5a\x9f\xce\x95\x8c\xb0\x12\xa6\xac\x77\x8e\xcf\x45\x10\x4b\x0f\xcb\x97\x9a\xa4\x69\x2d"[..]); ctx.update(b"\xaf\x53\xfa\x3f\xf8\xa3\xcf\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x03\xc2\xac\x02\xde\x17\x65\x49\x7a\x0a\x6a\xf4\x66\xfb\x64\x75\x8e\x32\x83\xed\x83\xd0\x2c\x0e\xdb\x39\x04\xfd\x3c\xf2\x96\x44\x2e\x79\x00\x18\xd4\xbf\x4c\xe5\x5b\xc8\x69\xce\xbb\x4a\xa1\xa7\x99\xaf\xc9\xd9\x87\xe7\x76\xfe\xf5\xdf\xe6\x62\x8e\x24\xde\x97"[..]); ctx.update(b"\x3d\x60\x93\x96\x69\x50\xab\xd8\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x53\xe3\x0d\xa8\xb7\x4a\xe7\x6a\xbf\x1f\x65\x76\x16\x53\xeb\xfb\xe8\x78\x82\xe9\xea\x0e\xa5\x64\xad\xdd\x7c\xfd\x5a\x65\x24\x57\x8a\xd6\xbe\x01\x4d\x77\x99\x79\x9e\xf5\xe1\x5c\x67\x95\x82\xb7\x91\x15\x9a\xdd\x82\x3b\x95\xc9\x1e\x26\xde\x62\xdc\xb7\x4c\xfa"[..]); ctx.update(b"\x1c\xa9\x84\xdc\xc9\x13\x34\x43\x70\xcf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\x15\xea\x0e\xef\xfb\x99\xb9\xb2\x46\xa0\xe3\x4d\xaf\x39\x47\x85\x26\x84\xc3\xd6\x18\x26\x01\x19\xa2\x28\x35\x65\x9e\x4f\x23\xd4\xeb\x66\xa1\x5d\x0a\xff\xb8\xe9\x37\x71\x57\x8f\x5e\x8f\x25\xb7\xa5\xf2\xa5\x5f\x51\x1f\xb8\xb9\x63\x25\xba\x2c\xd1\x48\x16"[..]); ctx.update(b"\xfc\x7b\x8c\xda\xde\xbe\x48\x58\x8f\x68\x51"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\x43\x9b\xb1\x28\x51\x20\xb3\xc4\x36\x31\xa0\x0a\x3b\x5a\xc0\xba\xdb\x41\x13\x58\x6a\x3d\xd4\xf7\xc6\x6c\x5d\x81\x01\x2f\x74\x12\x61\x7b\x16\x9f\xa6\xd7\x0f\x8e\x0a\x19\xe5\xe2\x58\xe9\x9a\x0e\xd2\xdc\xfa\x77\x4c\x86\x4c\x62\xa0\x10\xe9\xb9\x0c\xa0\x0d"[..]); ctx.update(b"\xec\xb9\x07\xad\xfb\x85\xf9\x15\x4a\x3c\x23\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\xae\x34\xfe\xd2\xef\x51\xa3\x83\xfb\x85\x32\x96\xe4\xb7\x97\xe4\x8e\x00\xca\xd2\x7f\x09\x4d\x2f\x41\x1c\x40\x0c\x49\x60\xca\x4c\x61\x0b\xf3\xdc\x40\xe9\x4e\xcf\xd0\xc7\xa1\x8e\x41\x88\x77\xe1\x82\xca\x3a\xe5\xca\x51\x36\xe2\x85\x6a\x55\x31\x71\x0f\x48"[..]); ctx.update(b"\xd9\x1a\x9c\x32\x4e\xce\x84\xb0\x72\xd0\x75\x36\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\x1f\x06\xc4\xd1\xc0\xd0\x66\xbd\xd8\x50\xab\x1a\x78\xb8\x32\x96\xeb\xa0\xca\x42\x3b\xb1\x74\xd7\x42\x83\xf4\x66\x28\xe6\x09\x55\x39\x21\x4a\xdf\xd8\x2b\x46\x2e\x8e\x92\x04\xa3\x97\xa8\x3c\x68\x42\xb7\x21\xa3\x2e\x8b\xb0\x30\x92\x7a\x56\x8f\x3c\x29\xe6"[..]); ctx.update(b"\xc6\x1a\x91\x88\x81\x2a\xe7\x39\x94\xbc\x0d\x6d\x40\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x06\x9e\x6a\xb1\x67\x5f\xed\x8d\x44\x10\x5f\x3b\x62\xbb\xf5\xb8\xff\x7a\xe8\x04\x09\x89\x86\x87\x9b\x11\xe0\xd7\xd9\xb1\xb4\xcb\x7b\xc4\x7a\xeb\x74\x20\x1f\x50\x9d\xdc\x92\xe5\x63\x3a\xbd\x2c\xbe\x0d\xdc\xa2\x48\x0e\x99\x08\xaf\xa6\x32\xc8\xc8\xd5\xaf\x2a"[..]); ctx.update( b"\xa6\xe7\xb2\x18\x44\x98\x40\xd1\x34\xb5\x66\x29\x0d\xc8\x96", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\x05\xa2\x1c\xe0\x0b\x28\x90\x22\x19\x3b\x70\xb5\x35\xe6\x62\x6f\x32\x47\x39\x54\x29\x78\xf5\xb3\x07\x19\x4f\xcf\x0a\x59\x88\xf5\x42\xc0\x83\x8a\x04\x43\xbb\x9b\xb8\xff\x92\x2a\x6a\x17\x7f\xdb\xd1\x2c\xf8\x05\xf3\xed\x80\x9c\x48\xe9\x76\x9c\x8b\xbd\x91"[..]); ctx.update( b"\x05\x40\x95\xba\x53\x1e\xec\x22\x11\x3c\xc3\x45\xe8\x37\x95\xc7", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf3\xad\xf5\xcc\xf2\x83\x0c\xd6\x21\x95\x80\x21\xef\x99\x82\x52\xf2\xb6\xbc\x4c\x13\x50\x96\x83\x95\x86\xd5\x06\x4a\x29\x78\x15\x4e\xa0\x76\xc6\x00\xa9\x73\x64\xbc\xe0\xe9\xaa\xb4\x3b\x7f\x1f\x2d\xa9\x35\x37\x08\x9d\xe9\x50\x55\x76\x74\xae\x62\x51\xca\x4d"[..]); ctx.update(b"\x5b\x1e\xc1\xc4\xe9\x20\xf5\xb9\x95\xb6\xa7\x88\xb6\xe9\x89\xac\x29"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\x5e\xea\x17\xca\x47\x85\x48\x2c\x19\xcd\x66\x8b\x8d\xd2\x91\x32\x16\x90\x33\x11\xfa\x21\xf6\xb6\x70\xb9\xb5\x73\x26\x4f\x88\x75\xb5\xd3\xc0\x71\xd9\x2d\x63\x55\x65\x49\xe5\x23\xb2\xaf\x1f\x1a\x50\x8b\xd1\xf1\x05\xd2\x9a\x43\x6f\x45\x5c\xd2\xca\x16\x04"[..]); ctx.update(b"\x13\x3b\x49\x7b\x00\x93\x27\x73\xa5\x3b\xa9\xbf\x8e\x61\xd5\x9f\x05\xf4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x78\x39\x64\xa1\xcf\x41\xd6\xd2\x10\xa8\xd7\xc8\x1c\xe6\x97\x0a\xa6\x2c\x90\x53\xcb\x89\xe1\x5f\x88\x05\x39\x57\xec\xf6\x07\xf4\x2a\xf0\x88\x04\xe7\x6f\x2f\xbd\xbb\x31\x80\x9c\x9e\xef\xc6\x0e\x23\x3d\x66\x24\x36\x7a\x3b\x9c\x30\xf8\xee\x5f\x65\xbe\x56\xac"[..]); ctx.update(b"\x88\xc0\x50\xea\x6b\x66\xb0\x12\x56\xbd\xa2\x99\xf3\x99\x39\x8e\x1e\x31\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\xf7\xfc\x8e\x90\x14\xf3\x5c\x4b\xde\x6a\x2c\x7c\xe1\x96\x5d\x9c\x17\x93\xf2\x5c\x14\x10\x21\xcc\x1c\x69\x7d\x11\x13\x63\xb3\x85\x49\x53\xc2\xb4\x00\x9d\xf4\x18\x78\xb5\x55\x8e\x78\xa9\xa9\x09\x2c\x22\xb8\xba\xa0\xed\x6b\xac\xa0\x05\x45\x5c\x6c\xca\x70"[..]); ctx.update(b"\xd7\xd5\x36\x33\x50\x70\x9e\x96\x93\x9e\x6b\x68\xb3\xbb\xde\xf6\x99\x9a\xc8\xd9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7a\x46\xbe\xca\x55\x3f\xff\xa8\x02\x1b\x09\x89\xf4\x0a\x65\x63\xa8\xaf\xb6\x41\xe8\x13\x30\x90\xbc\x03\x4a\xb6\x76\x3e\x96\xd7\xb7\xa0\xda\x4d\xe3\xab\xd5\xa6\x7d\x80\x85\xf7\xc2\x8b\x21\xa2\x4a\xef\xb3\x59\xc3\x7f\xac\x61\xd3\xa5\x37\x4b\x4b\x1f\xb6\xbb"[..]); ctx.update(b"\x54\x74\x6a\x7b\xa2\x8b\x5f\x26\x3d\x24\x96\xbd\x00\x80\xd8\x35\x20\xcd\x2d\xc5\x03"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd7\x70\x48\xdf\x60\xe2\x0d\x03\xd3\x36\xbf\xa6\x34\xbc\x99\x31\xc2\xd3\xc1\xe1\x06\x5d\x3a\x07\xf1\x4a\xe0\x1a\x08\x5f\xe7\xe7\xfe\x6a\x89\xdc\x4c\x78\x80\xf1\x03\x89\x38\xaa\x8f\xcd\x99\xd2\xa7\x82\xd1\xbb\xe5\xee\xc7\x90\x85\x81\x73\xc7\x83\x0c\x87\xa2"[..]); ctx.update(b"\x73\xdf\x78\x85\x83\x06\x33\xfc\x66\xc9\xeb\x16\x94\x0b\x01\x7e\x9c\x6f\x9f\x87\x19\x78"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0e\xde\xe1\xea\x01\x9a\x5c\x00\x4f\xd8\xae\x9d\xc8\xc2\xdd\x38\xd4\x33\x1a\xbe\x29\x68\xe1\xe9\xe0\xc1\x28\xd2\x50\x6d\xb9\x81\xa3\x07\xc0\xf1\x9b\xc2\xe6\x24\x87\xa9\x29\x92\xaf\x77\x58\x8d\x3a\xb7\x85\x4f\xe1\xb6\x83\x02\xf7\x96\xb9\xdc\xd9\xf3\x36\xdf"[..]); ctx.update(b"\x14\xcb\x35\xfa\x93\x3e\x49\xb0\xd0\xa4\x00\x18\x3c\xbb\xea\x09\x9c\x44\x99\x5f\xae\x11\x63"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xaf\x2e\xf4\xb0\xc0\x1e\x38\x1b\x4c\x38\x22\x08\xb6\x6a\xd9\x5d\x75\x9e\xc9\x1e\x38\x6e\x95\x39\x84\xaa\x5f\x07\x77\x46\x32\xd5\x3b\x58\x1e\xba\x32\xed\x1d\x36\x9c\x46\xb0\xa5\x7f\xee\x64\xa0\x2a\x0e\x51\x07\xc2\x2f\x14\xf2\x22\x7b\x1d\x11\x42\x4b\xec\xb5"[..]); ctx.update(b"\x75\xa0\x68\x69\xca\x2a\x6e\xa8\x57\xe2\x6e\x78\xbb\x78\xa1\x39\xa6\x71\xcc\xb0\x98\xd8\x20\x5a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\xbe\x19\x34\x38\x55\x22\xae\x1d\x73\x96\x66\xf3\x95\xf1\xd7\xf9\x99\x78\xd6\x28\x83\xa2\x61\xad\xf5\xd6\x18\xd0\x12\xdf\xab\x52\x24\x57\x56\x34\x44\x68\x76\xb8\x6b\x3e\x5f\x76\x09\xd3\x97\xd3\x38\xa7\x84\xb4\x31\x10\x27\xb1\x02\x4d\xdf\xd4\x99\x5a\x0a"[..]); ctx.update(b"\xb4\x13\xab\x36\x4d\xd4\x10\x57\x3b\x53\xf4\xc2\xf2\x89\x82\xca\x07\x06\x17\x26\xe5\xd9\x99\xf3\xc2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x28\x9e\x88\x9b\x25\xf9\xf3\x8f\xac\xfc\xcf\x3b\xdb\xce\xea\x06\xef\x3b\xaa\xd6\xe9\x61\x2b\x72\x32\xcd\x55\x3f\x48\x84\xa7\xa6\x42\xf6\x58\x3a\x1a\x58\x9d\x4d\xcb\x2d\xc7\x71\xf1\xff\x6d\x71\x1b\x85\xf7\x31\x14\x5a\x89\xb1\x00\x68\x0f\x9a\x55\xdc\xbb\x3f"[..]); ctx.update(b"\xd7\xf9\x05\x39\x84\x21\x3e\xba\xbc\x84\x2f\xd8\xce\x48\x36\x09\xa9\xaf\x5d\xc1\x40\xec\xdb\xe6\x33\x36"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf1\x67\xcb\x30\xe4\xba\xcb\xdc\x5e\xd5\x3b\xc6\x15\xf8\xc9\xea\x19\xad\x4f\x6b\xd8\x5c\xa0\xff\x5f\xb1\xf1\xcb\xe5\xb5\x76\xbd\xa4\x92\x76\xaa\x58\x14\x29\x1a\x7e\x32\x0f\x1d\x68\x7b\x16\xba\x8d\x7d\xaa\xb2\xb3\xd7\xe9\xaf\x3c\xd9\xf8\x4a\x1e\x99\x79\xa1"[..]); ctx.update(b"\x9b\x7f\x9d\x11\xbe\x48\xe7\x86\xa1\x1a\x47\x2a\xb2\x34\x4c\x57\xad\xf6\x2f\x7c\x1d\x4e\x6d\x28\x20\x74\xb6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x82\xfa\x52\x5d\x5e\xfa\xa3\xcc\xe3\x9b\xff\xef\x8e\xee\x01\xaf\xb5\x20\x67\x09\x7f\x89\x65\xcd\xe7\x17\x03\x34\x53\x22\x64\x5e\xae\x59\xdb\xae\xbe\xd0\x80\x56\x93\x10\x4d\xfb\x0c\x58\x11\xc5\x82\x8d\xa9\xa7\x5d\x81\x2e\x55\x62\x61\x52\x48\xc0\x3f\xf8\x80"[..]); ctx.update(b"\x11\x57\x84\xb1\xfc\xcf\xab\xca\x45\x7c\x4e\x27\xa2\x4a\x78\x32\x28\x0b\x7e\x7d\x6a\x12\x3f\xfc\xe5\xfd\xab\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xec\x12\xc4\xed\x5a\xe8\x48\x08\x88\x3c\x53\x51\x00\x3f\x7e\x26\xe1\xea\xf5\x09\xc8\x66\xb3\x57\xf9\x74\x72\xe5\xe1\x9c\x84\xf9\x9f\x16\xdb\xbb\x8b\xff\xf0\x60\xd6\xc0\xfe\x0c\xa9\xc3\x4a\x21\x0c\x90\x9b\x05\xf6\xa8\x1f\x44\x16\x27\xce\x8e\x66\x6f\x6d\xc7"[..]); ctx.update(b"\xc3\xb1\xad\x16\xb2\x87\x7d\xef\x8d\x08\x04\x77\xd8\xb5\x91\x52\xfe\x5e\x84\xf3\xf3\x38\x0d\x55\x18\x2f\x36\xeb\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4b\x91\x44\xed\xee\xec\x28\xfd\x52\xba\x41\x76\xa7\x8e\x08\x0e\x57\x78\x2d\x23\x29\xb6\x7d\x8a\xc8\x78\x0b\xb6\xe8\xc2\x05\x75\x83\x17\x2a\xf1\xd0\x68\x92\x2f\xea\xaf\xf7\x59\xbe\x5a\x6e\xa5\x48\xf5\xdb\x51\xf4\xc3\x4d\xfe\x72\x36\xca\x09\xa6\x79\x21\xc7"[..]); ctx.update(b"\x4c\x66\xca\x7a\x01\x12\x9e\xac\xa1\xd9\x9a\x08\xdd\x72\x26\xa5\x82\x4b\x84\x0d\x06\xd0\x05\x9c\x60\xe9\x7d\x29\x1d\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x56\x7c\x46\xf2\xf6\x36\x22\x3b\xd5\xed\x3d\xc9\x8c\x3f\x7a\x73\x9b\x42\x89\x8e\x70\x88\x6f\x13\x2e\xac\x43\xc2\xa6\xfa\xda\xbe\x0d\xd9\xf1\xb6\xbc\x4a\x93\x65\xe5\x23\x22\x95\xac\x1a\xc3\x47\x01\xb0\xfb\x18\x1d\x2f\x7f\x07\xa7\x9d\x03\x3d\xd4\x26\xd5\xa2"[..]); ctx.update(b"\x48\x10\x41\xc2\xf5\x66\x62\x31\x6e\xe8\x5a\x10\xb9\x8e\x10\x3c\x8d\x48\x80\x4f\x6f\x95\x02\xcf\x1b\x51\xcf\xa5\x25\xce\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x46\xf0\x05\x8a\xbe\x67\x81\x95\xb5\x76\xdf\x5c\x7e\xb8\xd7\x39\x46\x8c\xad\x19\x08\xf7\x95\x3e\xa3\x9c\x93\xfa\x1d\x96\x84\x5c\x38\xa2\x93\x4d\x23\x80\x48\x64\xa8\x36\x8d\xae\x38\x19\x1d\x98\x30\x53\xcc\xd0\x45\xa9\xab\x87\xef\x26\x19\xe9\xdd\x50\xc8\xc1"[..]); ctx.update(b"\x7c\x16\x88\x21\x7b\x31\x32\x78\xb9\xea\xe8\xed\xcf\x8a\xa4\x27\x16\x14\x29\x6d\x0c\x1e\x89\x16\xf9\xe0\xe9\x40\xd2\x8b\x88\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\x7b\xa4\xde\x74\xd0\x5b\xb6\xdf\x89\x91\x11\x2e\x4d\x37\x3b\xfc\xed\x37\xac\xde\x13\x04\xe0\xf6\x64\xf2\x9f\xa1\x26\xcb\x49\x7c\x8a\x1b\x71\x7b\x99\x29\x12\x08\x83\xec\x88\x98\x96\x8e\x46\x49\x01\x3b\x76\x0a\x21\x80\xa9\xdc\x0f\xc9\xb2\x7f\x5b\x7f\x3b"[..]); ctx.update(b"\x78\x5f\x65\x13\xfc\xd9\x2b\x67\x4c\x45\x0e\x85\xda\x22\x25\x7b\x8e\x85\xbf\xa6\x5e\x5d\x9b\x1b\x1f\xfc\x5c\x46\x9a\xd3\x37\xd1\xe3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x11\xd6\xe4\xc5\xc5\xf7\x6d\x26\x87\x6c\x59\x76\xb6\xf5\x55\xc2\x55\xc7\x85\xb2\xf2\x8b\x67\x00\xca\x2d\x8b\x3b\x3f\xa5\x85\x63\x62\x39\x27\x77\x73\x33\x0f\x4c\xf8\xc5\xd5\x20\x3b\xcc\x09\x1b\x8d\x47\xe7\x74\x3b\xbc\x0b\x5a\x2c\x54\x44\x4e\xe2\xac\xce"[..]); ctx.update(b"\x34\xf4\x46\x8e\x2d\x56\x7b\x1e\x32\x6c\x09\x42\x97\x0e\xfa\x32\xc5\xca\x2e\x95\xd4\x2c\x98\xeb\x5d\x3c\xab\x28\x89\x49\x0e\xa1\x6e\xe5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x49\xad\xfa\x33\x5e\x18\x3c\x94\xb3\x16\x01\x54\xd6\x69\x8e\x31\x8c\x8b\x5d\xd1\x00\xb0\x22\x7e\x3e\x34\xca\xbe\xa1\xfe\x0f\x74\x53\x26\x22\x0f\x64\x26\x39\x61\x34\x99\x96\xbb\xe1\xaa\xe9\x05\x4d\xe6\x40\x6e\x8b\x35\x04\x08\xab\x0b\x9f\x65\x6b\xb8\xda\xf7"[..]); ctx.update(b"\x53\xa0\x12\x1c\x89\x93\xb6\xf6\xee\xc9\x21\xd2\x44\x50\x35\xdd\x90\x65\x4a\xdd\x12\x98\xc6\x72\x7a\x2a\xed\x9b\x59\xba\xfb\x7d\xd6\x20\x70"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x91\x8b\x4d\x92\xe1\xfc\xb6\x5a\x4c\x1f\xa0\xbd\x75\xc5\x62\xac\x9d\x83\x18\x6b\xb2\xfb\xfa\xe5\xc4\x78\x4d\xe3\x1a\x14\x65\x45\x46\xe1\x07\xdf\x0e\x79\x07\x6b\x86\x87\xbb\x38\x41\xc8\x3b\xa9\x18\x1f\x99\x56\xcd\x43\x42\x8b\xa7\x2f\x60\x38\x81\xb3\x3a\x71"[..]); ctx.update(b"\xd3\x0f\xa4\xb4\x0c\x9f\x84\xac\x9b\xcb\xb5\x35\xe8\x69\x89\xec\x6d\x1b\xec\x9b\x1b\x22\xe9\xb0\xf9\x73\x70\xed\x0f\x0d\x56\x60\x82\x89\x9d\x96"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\xf1\x04\xc1\xda\x4a\xf3\x14\xd6\xbc\xeb\x34\xec\xa1\xdf\xe4\xe6\x74\x84\x51\x9e\xb7\x6b\xa3\x8e\x47\x01\xe1\x13\xe6\xcb\xc0\x20\x0d\xf8\x6e\x44\x39\xd6\x74\xb0\xf4\x2c\x72\x23\x33\x60\x47\x8b\xa5\x24\x43\x84\xd2\x8e\x38\x8c\x87\xaa\xa8\x17\x00\x7c\x69"[..]); ctx.update(b"\xf3\x4d\x10\x02\x69\xae\xe3\xea\xd1\x56\x89\x5e\x86\x44\xd4\x74\x94\x64\xd5\x92\x1d\x61\x57\xdf\xfc\xbb\xad\xf7\xa7\x19\xae\xe3\x5a\xe0\xfd\x48\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x56\x5a\x1d\xd9\xd4\x9f\x8d\xde\xfb\x79\xa3\xc7\xa2\x09\xf5\x3f\x0b\xc9\xf5\x39\x62\x69\xb1\xce\x2a\x2b\x28\x3a\x3c\xb4\x5e\xe3\xae\x65\x2e\x4c\xa1\x0b\x26\xce\xd7\xe5\x23\x62\x27\x00\x6c\x94\xa3\x75\x53\xdb\x1b\x6f\xe5\xc0\xc2\xed\xed\x75\x6c\x89\x6b\xb1"[..]); ctx.update(b"\x12\x52\x97\x69\xfe\x51\x91\xd3\xfc\xe8\x60\xf4\x34\xab\x11\x30\xce\x38\x9d\x34\x0f\xca\x23\x2c\xc5\x0b\x75\x36\xe6\x2a\xd6\x17\x74\x2e\x02\x2e\xa3\x8a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xda\xee\x10\xe8\x15\xff\xf0\xf0\x98\x5d\x20\x88\x86\xe2\x2f\x9b\xf2\x0a\x36\x43\xeb\x9a\x29\xfd\xa4\x69\xb6\xa7\xdc\xd5\x4b\x52\x13\xc8\x51\xd6\xf1\x93\x38\xd6\x36\x88\xfe\x1f\x02\x93\x6c\x5d\xae\x1b\x7c\x6d\x59\x06\xa1\x3a\x9e\xeb\x93\x44\x00\xb6\xfe\x8c"[..]); ctx.update(b"\xb2\xe3\xa0\xeb\x36\xbf\x16\xaf\xb6\x18\xbf\xd4\x2a\x56\x78\x91\x79\x14\x7e\xff\xec\xc6\x84\xd8\xe3\x9f\x03\x7e\xc7\xb2\xd2\x3f\x3f\x57\xf6\xd7\xa7\xd0\xbb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x04\x02\x9d\x6d\x9e\x8e\x39\x4a\xfa\x38\x7f\x1d\x03\xab\x6b\x8a\x0a\x6c\xba\xb4\xb6\xb3\xc8\x6e\xf6\x2f\x71\x42\xab\x3c\x10\x83\x88\xd4\x2c\xb8\x72\x58\xb9\xe6\xd3\x6e\x58\x14\xd8\xa6\x62\x65\x7c\xf7\x17\xb3\x5a\x57\x08\x36\x5e\x8e\xc0\x39\x6e\xc5\x54\x6b"[..]); ctx.update(b"\x25\xc4\xa5\xf4\xa0\x7f\x2b\x81\xe0\x53\x33\x13\x66\x4b\xf6\x15\xc7\x32\x57\xe6\xb2\x93\x0e\x75\x2f\xe5\x05\x0e\x25\xff\x02\x73\x1f\xd2\x87\x2f\x4f\x56\xf7\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xec\x2d\x38\xe5\xbb\x5d\x7b\x18\x43\x8d\x5f\x20\x29\xc8\x6d\x05\xa0\x35\x10\xdb\x0e\x66\xaa\x29\x9c\x28\x63\x5a\xbd\x09\x88\xc5\x8b\xe2\x03\xf0\x4b\x7e\x0c\xc2\x54\x51\xd1\x8f\x23\x41\xcd\x46\xf8\x70\x5d\x46\xc2\x06\x6d\xaf\xab\x30\xd9\x0d\x63\xbf\x3d\x2c"[..]); ctx.update(b"\x13\x4b\xb8\xe7\xea\x5f\xf9\xed\xb6\x9e\x8f\x6b\xbd\x49\x8e\xb4\x53\x75\x80\xb7\xfb\xa7\xad\x31\xd0\xa0\x99\x21\x23\x7a\xcd\x7d\x66\xf4\xda\x23\x48\x0b\x9c\x12\x22"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8f\x96\x6a\xef\x96\x83\x1a\x14\x99\xd6\x35\x60\xb2\x57\x80\x21\xad\x97\x0b\xf7\x55\x7b\x8b\xf8\x07\x8b\x3e\x12\xce\xfa\xb1\x22\xfe\x71\xb1\x21\x2d\xc7\x04\xf7\x09\x4a\x40\xb3\x6b\x71\xd3\xad\x7c\xe2\xd3\x0f\x72\xc1\xba\xa4\xd4\xbb\xcc\xb3\x25\x11\x98\xac"[..]); ctx.update(b"\xf7\x93\x25\x6f\x03\x9f\xad\x11\xaf\x24\xce\xe4\xd2\x23\xcd\x2a\x77\x15\x98\x28\x99\x95\xab\x80\x2b\x59\x30\xba\x5c\x66\x6a\x24\x18\x84\x53\xdc\xd2\xf0\x84\x2b\x81\x52"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\xc3\xd9\x71\x25\x35\x15\x3a\x3e\x20\x6b\x10\x33\x92\x9c\x0f\xd9\xd9\x37\xc3\x9b\xa1\x3c\xf1\xa6\x54\x4d\xfb\xd6\x8e\xbc\x94\x86\x7b\x15\xfd\xa3\xf1\xd3\x0b\x00\xbf\x47\xf2\xc4\xbf\x41\xda\xbd\xea\xa5\xc3\x97\xda\xe9\x01\xc5\x7d\xb9\xcd\x77\xdd\xbc\xc0"[..]); ctx.update(b"\x23\xcc\x7f\x90\x52\xd5\xe2\x2e\x67\x12\xfa\xb8\x8e\x8d\xfa\xa9\x28\xb6\xe0\x15\xca\x58\x9c\x3b\x89\xcb\x74\x5b\x75\x6c\xa7\xc7\x63\x4a\x50\x3b\xf0\x22\x8e\x71\xc2\x8e\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\xcf\x3a\xd6\x06\x42\x18\xee\x10\x1a\x55\x5d\x20\xfa\xb6\xcb\xeb\x6b\x14\x5b\x4e\xeb\x9c\x8c\x97\x1f\xc7\xce\x05\x58\x1a\x34\xb3\xc5\x21\x79\x59\x0e\x8a\x13\x4b\xe2\xe8\x8c\x7e\x54\x98\x75\xf4\xff\x89\xb9\x63\x74\xc6\x99\x59\x60\xde\x3a\x50\x98\xcc\xed"[..]); ctx.update(b"\xa6\x0b\x7b\x3d\xf1\x5b\x3f\x1b\x19\xdb\x15\xd4\x80\x38\x8b\x0f\x3b\x00\x83\x73\x69\xaa\x2c\xc7\xc3\xd7\x31\x57\x75\xd7\x30\x9a\x2d\x6f\x6d\x13\x71\xd9\xc8\x75\x35\x0d\xec\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8d\x65\x16\x05\xc6\xb3\x2b\xf0\x22\xea\x06\xce\x63\x06\xb2\xca\x6b\x5b\xa2\x78\x1a\xf8\x7c\xa2\x37\x58\x60\x31\x5c\x83\xad\x88\x74\x30\x30\xd1\x48\xed\x8d\x73\x19\x4c\x46\x1e\xc1\xe8\x4c\x04\x5f\xc9\x14\x70\x57\x47\x61\x4c\x04\xc8\x86\x5b\x51\xda\x94\xf7"[..]); ctx.update(b"\x27\x45\xdd\x2f\x1b\x21\x5e\xa5\x09\xa9\x12\xe5\x76\x1c\xcc\xc4\xf1\x9f\xa9\x3b\xa3\x84\x45\xc5\x28\xcb\x2f\x09\x9d\xe9\x9a\xb9\xfa\xc9\x55\xba\xa2\x11\xfd\x85\x39\xa6\x71\xcd\xb6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4a\xf9\x18\xeb\x67\x6c\xe2\x78\xc7\x30\x21\x2e\xf7\x9d\x81\x87\x73\xa7\x6a\x43\xc7\x4d\x64\x3f\x23\x8e\x9b\x61\xac\xaf\x40\x30\xc6\x17\xc4\xd6\xb3\xb7\x51\x4c\x59\xb3\xe5\xe9\x5d\x82\xe1\xe1\xe3\x54\x43\xe8\x51\x71\x8b\x13\xb6\x3e\x70\xb1\x23\xd1\xb7\x2c"[..]); ctx.update(b"\x88\xad\xee\x4b\x46\xd2\xa1\x09\xc3\x6f\xcf\xb6\x60\xf1\x7f\x48\x06\x2f\x7a\x74\x67\x9f\xb0\x7e\x86\xca\xd8\x4f\x79\xfd\x57\xc8\x6d\x42\x63\x56\xec\x8e\x68\xc6\x5b\x3c\xaa\x5b\xc7\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x62\x57\xac\xb9\xf5\x89\xc9\x19\xc9\x3c\x0a\xdc\x4e\x90\x7f\xe0\x11\xbe\xf6\x01\x8f\xbb\x18\xe6\x18\xba\x6f\xcc\x8c\xbc\x5e\x40\x64\x1b\xe5\x89\xe8\x6d\xbb\x0c\xf7\xd7\xd6\xbf\x33\xb9\x8d\x84\x58\xcc\xe0\xaf\x78\x57\xf5\xa7\xc7\x64\x7c\xf3\x50\xe2\x5a\xf0"[..]); ctx.update(b"\x7d\x40\xf2\xdc\x4a\xf3\xcf\xa1\x2b\x00\xd6\x49\x40\xdc\x32\xa2\x2d\x66\xd8\x1c\xb6\x28\xbe\x2b\x8d\xda\x47\xed\x67\x28\x02\x0d\x55\xb6\x95\xe7\x52\x60\xf4\xec\x18\xc6\xd7\x48\x39\x08\x6a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x46\xc8\x4a\x0a\x02\xd8\x98\xed\x58\x85\xce\x99\xc4\x7c\x77\xaf\xd2\x9a\xe0\x15\xd0\x27\xf2\x48\x5d\x63\x0f\x9b\x41\xd0\x0b\x7c\x1f\x1f\xaf\x6c\xe5\x7a\x08\xb6\x04\xb3\x50\x21\xf7\xf7\x96\x00\x38\x19\x94\xb7\x31\xbd\x8e\x6a\x5b\x01\x0a\xeb\x90\xe1\xeb"[..]); ctx.update(b"\x36\x89\xd8\x83\x6a\xf0\xdc\x13\x2f\x85\xb2\x12\xeb\x67\x0b\x41\xec\xf9\xd4\xab\xa1\x41\x09\x2a\x0a\x8e\xca\x2e\x6d\x5e\xb0\xba\x4b\x7e\x61\xaf\x92\x73\x62\x4d\x14\x19\x2d\xf7\x38\x8a\x84\x36"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\x35\x5e\x61\xd6\x6e\x40\xf7\x50\xd0\xa9\xa8\xe8\xa8\x8c\xd6\xf9\xbf\x60\x70\xb7\xef\xa7\x64\x42\x69\x87\x40\xb4\x48\x7e\xa6\xc6\x44\xd1\x65\x4e\xf1\x6a\x26\x52\x04\xe0\x30\x84\xa1\x4c\xaf\xdc\xcf\x8f\xf2\x98\xcd\x54\xc0\xb4\x00\x99\x67\xb6\xdd\x47\xcc"[..]); ctx.update(b"\x58\xff\x23\xde\xe2\x29\x8c\x2c\xa7\x14\x62\x27\x78\x9c\x1d\x40\x93\x55\x10\x47\x19\x2d\x86\x2f\xc3\x4c\x11\x12\xd1\x3f\x1f\x74\x44\x56\xce\xcc\x4d\x4a\x02\x41\x05\x23\xb4\xb1\x5e\x59\x8d\xf7\x5a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xac\xa8\x9a\xa5\x47\xc4\x61\x73\xb4\xb2\xa3\x80\xba\x98\x0d\xa6\xf9\xac\x08\x4f\x46\xac\x9d\xde\xa5\xe4\x16\x4a\xee\xf3\x1a\x99\x55\xb8\x14\xa4\x5a\xec\x1d\x8c\xe3\x40\xbd\x37\x68\x09\x52\xc5\xd6\x82\x26\xdd\xa1\xca\xc2\x67\x7f\x73\xc9\xfd\x91\x74\xfd\x13"[..]); ctx.update(b"\x67\xf3\xf2\x3d\xf3\xbd\x8e\xbe\xb0\x09\x64\x52\xfe\x47\x75\xfd\x9c\xc7\x1f\xbb\x6e\x72\xfd\xcc\x7e\xb8\x09\x4f\x42\xc9\x03\x12\x1d\x08\x17\xa9\x27\xbc\xba\xbd\x31\x09\xd5\xa7\x04\x20\x25\x3d\xea\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf4\x20\x7c\xc5\x65\xf2\x66\xa2\x45\xf2\x9b\xf2\x0b\x95\xb5\xd9\xa8\x3e\x1b\xb6\x8a\xd9\x88\xed\xc9\x1f\xaa\x25\xf2\x52\x86\xc8\x39\x8b\xac\x7d\xd6\x62\x82\x59\xbf\xf9\x8f\x28\x36\x0f\x26\x3d\xfc\x54\xc4\x22\x8b\xc4\x37\xc5\x69\x1d\xe1\x21\x9b\x75\x8d\x9f"[..]); ctx.update(b"\xa2\x25\x07\x0c\x2c\xb1\x22\xc3\x35\x4c\x74\xa2\x54\xfc\x7b\x84\x06\x1c\xba\x33\x00\x5c\xab\x88\xc4\x09\xfb\xd3\x73\x8f\xf6\x7c\xe2\x3c\x41\xeb\xef\x46\xc7\xa6\x16\x10\xf5\xb9\x3f\xa9\x2a\x5b\xda\x95\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe8\x15\xa9\xa4\xe4\x88\x7b\xe0\x14\x63\x5e\x97\x95\x83\x41\xe0\x51\x93\x14\xb3\xa3\x28\x9e\x18\x35\x12\x1b\x15\x3b\x46\x22\x72\xb0\xac\xa4\x18\xbe\x96\xd6\x0e\x5a\xb3\x55\xd3\xeb\x46\x36\x97\xc0\x19\x1e\xb5\x22\xb6\x0b\x84\x63\xd8\x9f\x4c\x3f\x1b\xf1\x42"[..]); ctx.update(b"\x6a\xa0\x88\x67\x77\xe9\x9c\x9a\xcd\x5f\x1d\xb6\xe1\x2b\xda\x59\xa8\x07\xf9\x24\x11\xae\x99\xc9\xd4\x90\xb5\x65\x6a\xcb\x4b\x11\x5c\x57\xbe\xb3\xc1\x80\x7a\x1b\x02\x9a\xd6\x4b\xe1\xf0\x3e\x15\xba\xfd\x91\xec"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x24\x1f\x2e\xba\xf7\xad\x09\xe1\x73\xb1\x84\x24\x4e\x69\xac\xd7\xeb\xc9\x47\x74\xd0\xfa\x39\x02\xcb\xf2\x67\xd4\x80\x60\x63\xb0\x44\x13\x1b\xcf\x4a\xf4\xcf\x18\x0e\xb7\xbd\x4e\x79\x60\xce\x5f\xe3\xdc\x6a\xeb\xfc\x6b\x90\xee\xc4\x61\xf4\x14\xf7\x9a\x67\xd9"[..]); ctx.update(b"\x6a\x06\x09\x2a\x3c\xd2\x21\xae\x86\xb2\x86\xb3\x1f\x32\x62\x48\x27\x04\x72\xc5\xea\x51\x0c\xb9\x06\x4d\x60\x24\xd1\x0e\xfe\xe7\xf5\x9e\x98\x78\x5d\x4f\x09\xda\x55\x4e\x97\xcd\xec\x7b\x75\x42\x9d\x78\x8c\x11\x2f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd1\x4a\x1a\x47\xf2\xbe\xf9\xe0\xd4\xb3\xe9\x0a\x6b\xe9\xab\x58\x93\xe1\x11\x0b\x12\xdb\x38\xd3\x3f\xfb\x9a\x61\xe1\x66\x1a\xec\xc4\xea\x10\x08\x39\xcf\xee\x58\xa1\xc5\xaf\xf7\x29\x15\xc1\x41\x70\xdd\x99\xe1\x3f\x71\xb0\xa5\xfc\x19\x85\xbf\x43\x41\x5c\xb0"[..]); ctx.update(b"\xdf\xc3\xfa\x61\xf7\xff\xfc\x7c\x88\xed\x90\xe5\x1d\xfc\x39\xa4\xf2\x88\xb5\x0d\x58\xac\x83\x38\x5b\x58\xa3\xb2\xa3\xa3\x9d\x72\x98\x62\xc4\x0f\xca\xf9\xbc\x30\x8f\x71\x3a\x43\xee\xcb\x0b\x72\xbb\x94\x58\xd2\x04\xba"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x94\x7b\xc8\x73\xdc\x41\xdf\x19\x5f\x80\x45\xde\xb6\xea\x1b\x84\x0f\x63\x39\x17\xe7\x9c\x70\xa8\x8d\x38\xb8\x86\x21\x97\xdc\x2a\xb0\xcc\x63\x14\xe9\x74\xfb\x5b\xa7\xe1\x70\x3b\x22\xb1\x30\x9e\x37\xbd\x43\x08\x79\x05\x6b\xdc\x16\x65\x73\x07\x5a\x9c\x5e\x04"[..]); ctx.update(b"\x52\x95\x8b\x1f\xf0\x04\x9e\xfa\x5d\x05\x0a\xb3\x81\xec\x99\x73\x2e\x55\x4d\xcd\x03\x72\x5d\xa9\x91\xa3\x7a\x80\xbd\x47\x56\xcf\x65\xd3\x67\xc5\x47\x21\xe9\x3f\x1e\x0a\x22\xf7\x0d\x36\xe9\xf8\x41\x33\x69\x56\xd3\xc5\x23"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9c\xc5\xaa\xd0\xf5\x29\xf4\xba\xc4\x91\xd7\x33\x53\x7b\x69\xc8\xec\x70\x0f\xe3\x8a\xb4\x23\xd8\x15\xe0\x92\x7c\x86\x57\xf9\xcb\x8f\x42\x07\x76\x2d\x81\x6a\xb6\x97\x58\x01\x22\x06\x6b\xc2\xb6\x8f\x41\x77\x33\x5d\x0a\x6e\x90\x81\x54\x07\x79\xe5\x72\xc4\x1f"[..]); ctx.update(b"\x30\x2f\xa8\x4f\xda\xa8\x20\x81\xb1\x19\x2b\x84\x7b\x81\xdd\xea\x10\xa9\xf0\x5a\x0f\x04\x13\x8f\xd1\xda\x84\xa3\x9b\xa5\xe1\x8e\x18\xbc\x3c\xea\x06\x2e\x6d\xf9\x2f\xf1\xac\xe8\x9b\x3c\x5f\x55\x04\x31\x30\x10\x8a\xbf\x63\x1e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8c\x8e\xaa\xe9\xa4\x45\x64\x3a\x37\xdf\x34\xcf\xa6\xa7\xf0\x9d\xec\xca\xb2\xa2\x22\xc4\x21\xd2\xfc\x57\x4b\xbc\x56\x41\xe5\x04\x35\x43\x91\xe8\x1e\xb5\x13\x02\x80\xb1\x22\x68\x12\x55\x6d\x47\x4e\x95\x1b\xb7\x8d\xbd\xd9\xb7\x7d\x19\xf6\x47\xe2\xe7\xd7\xbe"[..]); ctx.update(b"\xb8\x2f\x50\x0d\x6b\xc2\xdd\xdc\xdc\x16\x2d\x46\xcb\xfa\xa5\xae\x64\x02\x5d\x5c\x1c\xd7\x24\x72\xdc\xd2\xc4\x21\x61\xc9\x87\x1c\xe3\x29\xf9\x4d\xf4\x45\xf0\xc8\xac\xee\xca\xfd\x03\x44\xf6\x31\x7e\xcb\xb6\x2f\x0e\xc2\x22\x3a\x35"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x55\xc6\x9d\x7a\xcc\xd1\x79\xd5\xd9\xfc\xc5\x22\xf7\x94\xe7\xaf\x5f\x0e\xec\x71\x98\xff\xa3\x9f\x80\xfb\x55\xb8\x66\xc0\x85\x7f\xf3\xe7\xae\xef\x33\xe1\x30\xd9\xc7\x4e\xf9\x06\x06\xca\x82\x1d\x20\xb7\x60\x8b\x12\xe6\xe5\x61\xf9\xe6\xc7\x12\x2a\xce\x3d\xb0"[..]); ctx.update(b"\x86\xda\x91\x07\xca\x3e\x16\xa2\xb5\x89\x50\xe6\x56\xa1\x5c\x08\x5b\x88\x03\x3e\x79\x31\x3e\x2c\x0f\x92\xf9\x9f\x06\xfa\x18\x7e\xfb\xa5\xb8\xfe\xa0\x8e\xb7\x14\x5f\x84\x76\x30\x41\x80\xdd\x28\x0f\x36\xa0\x72\xb7\xea\xc1\x97\xf0\x85"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0d\x3b\x1a\x04\x59\xb4\xec\xa8\x01\xe0\x73\x7f\xf9\xea\x4a\x12\xb9\xa4\x83\xa7\x3a\x8a\x92\x74\x2a\x93\xc2\x97\xb7\x14\x93\x26\xbd\x92\xc1\x64\x3c\x81\x77\xc8\x92\x44\x82\xab\x3b\xbd\x91\x6c\x41\x75\x80\xcc\x75\xd3\xd3\xae\x09\x6d\xe5\x31\xbc\x5d\xc3\x55"[..]); ctx.update(b"\x14\x1a\x6e\xaf\xe1\x57\x05\x3e\x78\x0a\xc7\xa5\x7b\x97\x99\x06\x16\xce\x17\x59\xed\x13\x2c\xb4\x53\xbc\xdf\xca\xbd\xbb\x70\xb3\x76\x7d\xa4\xeb\x94\x12\x5d\x9c\x2a\x8d\x6d\x20\xbf\xae\xac\xc1\xff\xbe\x49\xc4\xb1\xbb\x5d\xa7\xe9\xb5\xc6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbd\xbd\xd5\xb9\x4c\xdc\x89\x46\x6e\x76\x70\xc6\x3b\xa6\xa5\x5b\x58\x29\x4e\x93\xb3\x51\x26\x1a\x54\x57\xbf\x5a\x40\xf1\xb5\xb2\xe0\xac\xc7\xfc\xeb\x1b\xfb\x4c\x88\x72\x77\x7e\xee\xaf\xf7\x92\x7f\xd3\x63\x5c\xa1\x8c\x99\x6d\x87\x0b\xf8\x6b\x12\xb8\x9b\xa5"[..]); ctx.update(b"\x6e\x0c\x65\xee\x09\x43\xe3\x4d\x9b\xbd\x27\xa8\x54\x76\x90\xf2\x29\x1f\x5a\x86\xd7\x13\xc2\xbe\x25\x8e\x6a\xc1\x69\x19\xfe\x9c\x4d\x49\x18\x95\xd3\xa9\x61\xbb\x97\xf5\xfa\xc2\x55\x89\x1a\x0e\xaa\x18\xf8\x0e\x1f\xa1\xeb\xcb\x63\x9f\xcf\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\xeb\xb9\x92\xb8\xd3\x9d\xaa\xe9\x73\xe3\x81\x3a\x50\xe9\xe7\x9a\x67\xd8\x45\x8a\x6f\x17\xf9\x7a\x6d\xd3\x0d\xd7\xd1\x1d\x95\x70\x1a\x11\x12\x9f\xfe\xaf\x7d\x45\x78\x1b\x21\xca\xc0\xc4\xc0\x34\xe3\x89\xd7\x59\x0d\xf5\xbe\xeb\x98\x05\x07\x2d\x01\x83\xb9"[..]); ctx.update(b"\x57\x78\x0b\x1c\x79\xe6\x7f\xc3\xbe\xaa\xbe\xad\x4a\x67\xa8\xcc\x98\xb8\x3f\xa7\x64\x7e\xae\x50\xc8\x79\x8b\x96\xa5\x16\x59\x7b\x44\x88\x51\xe9\x3d\x1a\x62\xa0\x98\xc4\x76\x73\x33\xfc\xf7\xb4\x63\xce\x91\xed\xde\x2f\x3a\xd0\xd9\x8f\x70\x71\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3e\xf3\x6c\x3e\xff\xad\x6e\xb5\xad\x2d\x0a\x67\x78\x0f\x80\xd1\xb9\x0e\xfc\xb7\x4d\xb2\x04\x10\xc2\x26\x1a\x3a\xb0\xf7\x84\x42\x9d\xf8\x74\x81\x47\x48\xdc\x1b\x6e\xfa\xab\x3d\x06\xdd\x0a\x41\xba\x54\xfc\xe5\x9b\x67\xd4\x58\x38\xea\xa4\xaa\x1f\xad\xfa\x0f"[..]); ctx.update(b"\xbc\xc9\x84\x9d\xa4\x09\x1d\x0e\xdf\xe9\x08\xe7\xc3\x38\x6b\x0c\xad\xad\xb2\x85\x98\x29\xc9\xdf\xee\x3d\x8e\xcf\x9d\xec\x86\x19\x6e\xb2\xce\xb0\x93\xc5\x55\x1f\x7e\x9a\x49\x27\xfa\xab\xcf\xaa\x74\x78\xf7\xc8\x99\xcb\xef\x47\x27\x41\x77\x38\xfc\x06"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1f\xcd\x8a\x2c\x7b\x4f\xd9\x8f\xcd\xc5\xfa\x66\x5b\xab\x49\xbd\xe3\xf9\xf5\x56\xaa\x66\xb3\x64\x66\x38\xf5\xa2\xd3\x80\x61\x92\xf8\xa3\x31\x45\xd8\xd0\xc5\x35\xc8\x5a\xdf\xf3\xcc\x0e\xa3\xc2\x71\x5b\x33\xce\xc9\xf8\x88\x6e\x9f\x43\x77\xb3\x63\x2e\x90\x55"[..]); ctx.update(b"\x05\xa3\x28\x29\x64\x2e\xd4\x80\x8d\x65\x54\xd1\x6b\x9b\x80\x23\x35\x3c\xe6\x5a\x93\x5d\x12\x66\x02\x97\x0d\xba\x79\x16\x23\x00\x4d\xed\xe9\x0b\x52\xac\x7f\x0d\x43\x35\x13\x0a\x63\xcb\xa6\x8c\x65\x6c\x13\x99\x89\x61\x4d\xe2\x09\x13\xe8\x3d\xb3\x20\xdb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x49\xd8\x74\x7b\xb5\x3d\xdd\xe6\xd1\x48\x59\x65\x20\x86\x70\xd1\x13\x0b\xf3\x56\x19\xd7\x50\x6a\x2f\x20\x40\xd1\x12\x9f\xcf\x03\x20\x20\x7e\x5b\x36\xfe\xa0\x83\xe8\x4f\xfc\x98\x75\x5e\x69\x1a\xd8\xbd\x5d\xc6\x6f\x89\x72\xcb\x98\x57\x38\x93\x44\xe1\x1a\xad"[..]); ctx.update(b"\x56\xac\x4f\x68\x45\xa4\x51\xda\xc3\xe8\x88\x6f\x97\xf7\x02\x4b\x64\xb1\xb1\xe9\xc5\x18\x1c\x05\x9b\x57\x55\xb9\xa6\x04\x2b\xe6\x53\xa2\xa0\xd5\xd5\x6a\x9e\x1e\x77\x4b\xe5\xc9\x31\x2f\x48\xb4\x79\x80\x19\x34\x5b\xea\xe2\xff\xcc\x63\x55\x4a\x3c\x69\x86\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5f\xde\x5c\x57\xa3\x1f\xeb\xb9\x80\x61\xf2\x7e\x45\x06\xfa\x5c\x24\x55\x06\x33\x6e\xe9\x0d\x59\x5c\x91\xd7\x91\xa5\x97\x5c\x71\x2b\x3a\xb9\xb3\xb5\x86\x8f\x94\x1d\xb0\xae\xb4\xc6\xd2\x83\x7c\x44\x47\x44\x2f\x84\x02\xe0\xe1\x50\xa9\xdc\x0e\xf1\x78\xdc\xa8"[..]); ctx.update(b"\x8a\x22\x9f\x8d\x02\x94\xfe\x90\xd4\xcc\x8c\x87\x54\x60\xd5\xd6\x23\xf9\x32\x87\xf9\x05\xa9\x99\xa2\xab\x0f\x9a\x47\x04\x6f\x78\xef\x88\xb0\x94\x45\xc6\x71\x18\x9c\x59\x38\x8b\x30\x17\xcc\xa2\xaf\x8b\xdf\x59\xf8\xa6\xf0\x43\x22\xb1\x70\x1e\xc0\x86\x24\xab\x63"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x16\xb0\xfd\x23\x9c\xc6\x32\x84\x2c\x44\x3e\x1b\x92\xd2\x86\xdd\x51\x9c\xfc\x61\x6a\x41\xf2\x45\x6d\xd5\xcd\xde\xbd\x10\x70\x3c\x3e\x9c\xb6\x69\x00\x4b\x7f\x16\x9b\xb4\xf9\x9f\x35\x0e\xc9\x69\x04\xb0\xe8\xdd\x4d\xe8\xe6\xbe\x99\x53\xdc\x89\x2c\x65\x09\x9f"[..]); ctx.update(b"\x87\xd6\xaa\x99\x79\x02\x5b\x24\x37\xea\x81\x59\xea\x1d\x3e\x5d\x6f\x17\xf0\xa5\xb9\x13\xb5\x69\x70\x21\x2f\x56\xde\x78\x84\x84\x0c\x0d\xa9\xa7\x28\x65\xe1\x89\x2a\xa7\x80\xb8\xb8\xf5\xf5\x7b\x46\xfc\x07\x0b\x81\xca\x5f\x00\xee\xe0\x47\x0a\xce\x89\xb1\xe1\x46\x6a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd8\x16\xac\xf1\x79\x7d\xec\xfe\x34\xf4\xcc\x49\xe5\x2a\xa5\x05\xcc\x59\xbd\x17\xfe\x69\xdc\x95\x43\xfa\xd8\x2e\x9c\xf9\x62\x98\x18\x30\x21\xf7\x04\x05\x4d\x3d\x06\xad\xde\x2b\xf5\x4e\x82\xa0\x90\xa5\x7b\x23\x9e\x88\xda\xa0\x4c\xb7\x6c\x4f\xc9\x12\x78\x43"[..]); ctx.update(b"\x08\x23\x61\x6a\xb8\x7e\x49\x04\x30\x86\x28\xc2\x22\x6e\x72\x1b\xb4\x16\x9b\x7d\x34\xe8\x74\x4a\x07\x00\xb7\x21\xe3\x8f\xe0\x5e\x3f\x81\x3f\xe4\x07\x5d\x4c\x1a\x93\x6d\x3a\x33\xda\x20\xcf\xb3\xe3\xac\x72\x2e\x7d\xf7\x86\x53\x30\xb8\xf6\x2a\x73\xd9\x11\x9a\x1f\x21\x99"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\xda\x6b\xe4\x40\x3a\x4f\xd7\x84\xc5\x9b\xe4\xe7\x1c\x65\x8a\x78\xbb\x8c\x5d\x7d\x57\x1c\x5e\x81\x6f\xbb\x3e\x21\x8a\x41\x62\xf6\x2d\xe1\xc2\x85\xf3\x77\x97\x81\xcb\x55\x06\xe2\x9c\x94\xe1\xb7\xc7\xd6\x5a\xf2\xaa\x71\xea\x5c\x96\xd9\x58\x5b\x5e\x45\xd5"[..]); ctx.update(b"\x7d\x2d\x91\x3c\x24\x60\xc0\x98\x98\xb2\x03\x66\xae\x34\x77\x5b\x15\x64\xf1\x0e\xde\xa4\x9c\x07\x3c\xeb\xe4\x19\x89\xbb\x93\xf3\x8a\x53\x3a\xf1\xf4\x25\xd3\x38\x2f\x8a\xa4\x01\x59\xb5\x67\x35\x8e\xe5\xa7\x3b\x67\xdf\x6d\x0d\xc0\x9c\x1c\x92\xbf\x3f\x9a\x28\x12\x4a\xb0\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\xa1\xe1\x9a\x52\xb8\x6c\xf4\x14\xd9\x77\x76\x8b\xb5\x35\xb7\xe5\x81\x71\x17\xd4\x36\xb4\x42\x5e\xc8\xd7\x75\xe8\xcb\x0e\x0b\x53\x80\x72\x21\x38\x84\xc7\xff\x1b\xb9\xca\x99\x84\xc8\x2d\x65\xcb\x01\x15\xcc\x07\x33\x2b\x0e\xa9\x03\xe3\xb3\x86\x50\xe8\x8e"[..]); ctx.update(b"\xfc\xa5\xf6\x8f\xd2\xd3\xa5\x21\x87\xb3\x49\xa8\xd2\x72\x6b\x60\x8f\xcc\xea\x7d\xb4\x2e\x90\x6b\x87\x18\xe8\x5a\x0e\xc6\x54\xfa\xc7\x0f\x5a\x83\x9a\x8d\x3f\xf9\x0c\xfe\xd7\xae\xb5\xea\x9b\x08\xf4\x87\xfc\x84\xe1\xd9\xf7\xfb\x83\x1d\xea\x25\x44\x68\xa6\x5b\xa1\x8c\xc5\xa1\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2c\x74\xf8\x46\xec\xc7\x22\xea\x4a\x1e\xb1\x16\x2e\x23\x1b\x69\x03\x29\x1f\xff\xa9\x5d\xd5\xe1\xd1\x7d\xbc\x2c\x2b\xe7\xdf\xe5\x49\xa8\x0d\xd3\x44\x87\xd7\x14\x13\x0d\xdc\x99\x24\xae\xd9\x04\xad\x55\xf4\x9c\x91\xc8\x0c\xeb\x05\xc0\xc0\x34\xda\xe0\xa0\xa4"[..]); ctx.update(b"\x88\x1f\xf7\x0c\xa3\x4a\x3e\x1a\x0e\x86\x4f\xd2\x61\x5c\xa2\xa0\xe6\x3d\xef\x25\x4e\x68\x8c\x37\xa2\x0e\xf6\x29\x7c\xb3\xae\x4c\x76\xd7\x46\xb5\xe3\xd6\xbb\x41\xbd\x0d\x05\xd7\xdf\x3e\xed\xed\x74\x35\x1f\x4e\xb0\xac\x80\x1a\xbe\x6d\xc1\x0e\xf9\xb6\x35\x05\x5e\xe1\xdf\xbf\x41\x44"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9a\x10\xa7\xce\x23\xc0\x49\x7f\xe8\x78\x39\x27\xf8\x33\x23\x2a\xe6\x64\xf1\xe1\xb9\x13\x02\x26\x6b\x6a\xce\x25\xa9\xc2\x53\xd1\xec\xab\x1a\xaa\xa6\x2f\x86\x54\x69\x48\x0b\x21\x45\xed\x0e\x48\x9a\xe3\xf3\xf9\xf7\xe6\xda\x27\x49\x2c\x81\xb0\x7e\x60\x6f\xb6"[..]); ctx.update(b"\xb0\xde\x04\x30\xc2\x00\xd7\x4b\xf4\x1e\xa0\xc9\x2f\x8f\x28\xe1\x1b\x68\x00\x6a\x88\x4e\x0d\x4b\x0d\x88\x45\x33\xee\x58\xb3\x8a\x43\x8c\xc1\xa7\x57\x50\xb6\x43\x4f\x46\x7e\x2d\x0c\xd9\xaa\x40\x52\xce\xb7\x93\x29\x1b\x93\xef\x83\xfd\x5d\x86\x20\x45\x6c\xe1\xaf\xf2\x94\x1b\x36\x05\xa4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9e\x9e\x46\x9c\xa9\x22\x6c\xd0\x12\xf5\xc9\xcc\x39\xc9\x6a\xdc\x22\xf4\x20\x03\x0f\xce\xe3\x05\xa0\xed\x27\x97\x4e\x3c\x80\x27\x01\x60\x3d\xac\x87\x3a\xe4\x47\x6e\x9c\x3d\x57\xe5\x55\x24\x48\x3f\xc0\x1a\xda\xef\x87\xda\xa9\xe3\x04\x07\x8c\x59\x80\x27\x57"[..]); ctx.update(b"\x0c\xe9\xf8\xc3\xa9\x90\xc2\x68\xf3\x4e\xfd\x9b\xef\xdb\x0f\x7c\x4e\xf8\x46\x6c\xfd\xb0\x11\x71\xf8\xde\x70\xdc\x5f\xef\xa9\x2a\xcb\xe9\x3d\x29\xe2\xac\x1a\x5c\x29\x79\x12\x9f\x1a\xb0\x8c\x0e\x77\xde\x79\x24\xdd\xf6\x8a\x20\x9c\xdf\xa0\xad\xc6\x2f\x85\xc1\x86\x37\xd9\xc6\xb3\x3f\x4f\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb0\x18\xa2\x0f\xcf\x83\x1d\xde\x29\x0e\x4f\xb1\x8c\x56\x34\x2e\xfe\x13\x84\x72\xcb\xe1\x42\xda\x6b\x77\xee\xa4\xfc\xe5\x25\x88\xc0\x4c\x80\x8e\xb3\x29\x12\xfa\xa3\x45\x24\x5a\x85\x03\x46\xfa\xec\x46\xc3\xa1\x6d\x39\xbd\x2e\x1d\xdb\x18\x16\xbc\x57\xd2\xda"[..]); } } nettle-7.1.0/src/hash/sha512.rs000064400000000000000000002355440072674642500142540ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha512, nettle_sha512_digest, nettle_sha512_init, nettle_sha512_update, sha512_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 512 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4. pub struct Sha512 { context: sha512_ctx, } impl_write_for_hash!(Sha512); impl Clone for Sha512 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha512_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha512 { context: ctx } } } } impl Default for Sha512 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha512_init(&mut ctx as *mut _); } Sha512 { context: ctx } } } impl Hash for Sha512 { fn digest_size(&self) -> usize { ::nettle_sys::SHA512_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha512_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha512_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha512 { type Context = sha512_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha512 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha512::default(); } // CAVS 11.0 // "SHA-512 ShortMsg" information // SHA-512 tests are configured for BYTE oriented implementations // Generated on Tue Mar 15 08:23:49 2011 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha512::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\x83\xe1\x35\x7e\xef\xb8\xbd\xf1\x54\x28\x50\xd6\x6d\x80\x07\xd6\x20\xe4\x05\x0b\x57\x15\xdc\x83\xf4\xa9\x21\xd3\x6c\xe9\xce\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0\xff\x83\x18\xd2\x87\x7e\xec\x2f\x63\xb9\x31\xbd\x47\x41\x7a\x81\xa5\x38\x32\x7a\xf9\x27\xda\x3e"[..]); ctx.update(b"\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x31\xa6\xa6\x15\x5e\x50\x9d\xee\x59\xa7\xf4\x51\xeb\x35\x32\x4d\x8f\x8f\x2d\xf6\xe3\x70\x88\x94\x74\x0f\x98\xfd\xee\x23\x88\x9f\x4d\xe5\xad\xb0\xc5\x01\x0d\xfb\x55\x5c\xda\x77\xc8\xab\x5d\xc9\x02\x09\x4c\x52\xde\x32\x78\xf3\x5a\x75\xeb\xc2\x5f\x09\x3a"[..]); ctx.update(b"\x90\x83"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x55\x58\x6e\xbb\xa4\x87\x68\xae\xb3\x23\x65\x5a\xb6\xf4\x29\x8f\xc9\xf6\x70\x96\x4f\xc2\xe5\xf2\x73\x1e\x34\xdf\xa4\xb0\xc0\x9e\x6e\x1e\x12\xe3\xd7\x28\x6b\x31\x45\xc6\x1c\x20\x47\xfb\x1a\x2a\x12\x97\xf3\x6d\xa6\x41\x60\xb3\x1f\xa4\xc8\xc2\xcd\xdd\x2f\xb4"[..]); ctx.update(b"\x0a\x55\xdb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x79\x52\x58\x5e\x53\x30\xcb\x24\x7d\x72\xba\xe6\x96\xfc\x8a\x6b\x0f\x7d\x08\x04\x57\x7e\x34\x7d\x99\xbc\x1b\x11\xe5\x2f\x38\x49\x85\xa4\x28\x44\x93\x82\x30\x6a\x89\x26\x1a\xe1\x43\xc2\xf3\xfb\x61\x38\x04\xab\x20\xb4\x2d\xc0\x97\xe5\xbf\x4a\x96\xef\x91\x9b"[..]); ctx.update(b"\x23\xbe\x86\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\xd4\x2c\x8e\xad\xea\x35\xa6\x99\x90\xc6\x3a\x76\x2f\x33\x06\x14\xa4\x69\x99\x77\xf0\x58\xad\xb9\x88\xf4\x06\xfb\x0b\xe8\xf2\xea\x3d\xce\x3a\x2b\xbd\x1d\x82\x7b\x70\xb9\xb2\x99\xae\x6f\x9e\x50\x58\xee\x97\xb5\x0b\xd4\x92\x2d\x6d\x37\xdd\xc7\x61\xf8\xeb"[..]); ctx.update(b"\xeb\x0c\xa9\x46\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd3\x9e\xce\xdf\xe6\xe7\x05\xa8\x21\xae\xe4\xf5\x8b\xfc\x48\x9c\x3d\x94\x33\xeb\x4a\xc1\xb0\x3a\x97\xe3\x21\xa2\x58\x6b\x40\xdd\x05\x22\xf4\x0f\xa5\xae\xf3\x6a\xff\xf5\x91\xa7\x8c\x91\x6b\xfc\x6d\x1c\xa5\x15\xc4\x98\x3d\xd8\x69\x5b\x1e\xc7\x95\x1d\x72\x3e"[..]); ctx.update(b"\x38\x66\x7f\x39\x27\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\x70\x8b\x8f\xf0\x5d\x97\x4d\x6a\xf0\x80\x1c\x15\x2b\x95\xf5\xfa\x5c\x06\xaf\x9a\x35\x23\x0c\x5b\xea\x27\x52\xf0\x31\xf9\xbd\x84\xbd\x84\x47\x17\xb3\xad\xd3\x08\xa7\x0d\xc7\x77\xf9\x08\x13\xc2\x0b\x47\xb1\x63\x85\x66\x4e\xef\xc8\x84\x49\xf0\x4f\x21\x31"[..]); ctx.update(b"\xb3\x9f\x71\xaa\xa8\xa1\x08"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x25\x8b\x8e\xfa\x05\xb4\xa0\x6b\x1e\x63\xc7\xa3\xf9\x25\xc5\xef\x11\xfa\x03\xe3\xd4\x7d\x63\x1b\xf4\xd4\x74\x98\x37\x83\xd8\xc0\xb0\x94\x49\x00\x9e\x84\x2f\xc9\xfa\x15\xde\x58\x6c\x67\xcf\x89\x55\xa1\x7d\x79\x0b\x20\xf4\x1d\xad\xf6\x7e\xe8\xcd\xcd\xfc\xe6"[..]); ctx.update(b"\x6f\x8d\x58\xb7\xca\xb1\x88\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa3\x94\x1d\xef\x28\x03\xc8\xdf\xc0\x8f\x20\xc0\x6b\xa7\xe9\xa3\x32\xae\x0c\x67\xe4\x7a\xe5\x73\x65\xc2\x43\xef\x40\x05\x9b\x11\xbe\x22\xc9\x1d\xa6\xa8\x0c\x2c\xff\x07\x42\xa8\xf4\xbc\xd9\x41\xbd\xee\x0b\x86\x1e\xc8\x72\xb2\x15\x43\x3c\xe8\xdc\xf3\xc0\x31"[..]); ctx.update(b"\x16\x2b\x0c\xf9\xb3\x75\x0f\x94\x38"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\xe2\x17\x30\x5d\xc3\x43\x92\xaa\x4b\x8e\x57\xf6\x4f\x5a\x3a\xfd\xd2\x7f\x1f\xa9\x69\xa9\xa2\x60\x83\x53\xf8\x2b\x95\xcf\xb4\xae\x84\x59\x8d\x01\x57\x5a\x57\x8a\x10\x68\xa5\x9b\x34\xb5\x04\x5f\xf6\xd5\x29\x9c\x5c\xb7\xee\x17\x18\x07\x01\xb2\xd1\xd6\x95"[..]); ctx.update(b"\xba\xd7\xc6\x18\xf4\x5b\xe2\x07\x97\x5e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\x86\x82\x89\x59\xd1\xf8\x22\x54\x06\x8b\xe0\xbd\x14\xb6\xa8\x8f\x59\xf5\x34\x06\x1f\xb2\x03\x76\xa0\x54\x10\x52\xdd\x36\x35\xed\xf3\xc6\xf0\xca\x3d\x08\x77\x5e\x13\x52\x5d\xf9\x33\x3a\x21\x13\xc0\xb2\xaf\x76\x51\x58\x87\x52\x99\x10\xb6\xc7\x93\xc8\xa5"[..]); ctx.update(b"\x62\x13\xe1\x0a\x44\x20\xe0\xd9\xb7\x70\x37"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x99\x82\xdc\x2a\x04\xdf\xf1\x65\x56\x7f\x27\x6f\xd4\x63\xef\xef\x2b\x36\x9f\xa2\xfb\xca\x8c\xee\x31\xce\x0d\xe8\xa7\x9a\x2e\xb0\xb5\x3e\x43\x7f\x7d\x9d\x1f\x41\xc7\x1d\x72\x5c\xab\xb9\x49\xb5\x13\x07\x5b\xad\x17\x40\xc9\xee\xfb\xf6\xa5\xc6\x63\x34\x00\xc7"[..]); ctx.update(b"\x63\x32\xc3\xc2\xa0\xa6\x25\xa6\x1d\xf7\x18\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9d\x60\x37\x5d\x98\x58\xd9\xf2\x41\x6f\xb8\x6f\xa0\xa2\x18\x9e\xe4\x21\x3e\x87\x10\x31\x4f\xd1\xeb\xed\x0f\xd1\x58\xb0\x43\xe6\xe7\xc9\xa7\x6d\x62\xc6\xba\x1e\x1d\x41\x1a\x73\x09\x02\x30\x9e\xc6\x76\xdd\x49\x14\x33\xc6\xef\x66\xc8\xf1\x16\x23\x3d\x6c\xe7"[..]); ctx.update(b"\xf4\x7b\xe3\xa2\xb0\x19\xd1\xbe\xed\xed\xf5\xb8\x0c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb9\x42\x92\x62\x5c\xaa\x28\xc7\xbe\x24\xa0\x99\x7e\xb7\x32\x80\x62\xa7\x6d\x9b\x52\x9c\x0f\x1d\x56\x8f\x85\x0d\xf6\xd5\x69\xb5\xe8\x4d\xf0\x7e\x9e\x24\x6b\xe2\x32\x03\x3f\xfa\xc3\xad\xf2\xd1\x8f\x92\xab\x9d\xac\xfc\x0e\xcf\x08\xaf\xf7\x14\x5f\x0b\x83\x3b"[..]); ctx.update(b"\xb1\x71\x5f\x78\x2f\xf0\x2c\x6b\x88\x93\x7f\x05\x41\x16"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xee\x1a\x56\xee\x78\x18\x2e\xc4\x1d\x2c\x3a\xb3\x3d\x4c\x41\x87\x1d\x43\x7c\x5c\x1c\xa0\x60\xee\x9e\x21\x9c\xb8\x36\x89\xb4\xe5\xa4\x17\x4d\xfd\xab\x5d\x1d\x10\x96\xa3\x1a\x7c\x8d\x3a\xbd\xa7\x5c\x1b\x5e\x6d\xa9\x7e\x18\x14\x90\x1c\x50\x5b\x0b\xc0\x7f\x25"[..]); ctx.update( b"\x9b\xcd\x52\x62\x86\x8c\xd9\xc8\xa9\x6c\x9e\x82\x98\x7f\x03", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2e\x07\x66\x2a\x00\x1b\x97\x55\xae\x92\x2c\x8e\x8a\x95\x75\x6d\xb5\x34\x1d\xc0\xf2\xe6\x2a\xe1\xcf\x82\x70\x38\xf3\x3c\xe0\x55\xf6\x3a\xd5\xc0\x0b\x65\x39\x14\x28\x43\x4d\xdc\x01\xe5\x53\x5e\x7f\xec\xbf\x53\xdb\x66\xd9\x30\x99\xb8\xe0\xb7\xe4\x4e\x4b\x25"[..]); ctx.update( b"\xcd\x67\xbd\x40\x54\xaa\xa3\xba\xa0\xdb\x17\x8c\xe2\x32\xfd\x5a", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0d\x85\x21\xf8\xf2\xf3\x90\x03\x32\xd1\xa1\xa5\x5c\x60\xba\x81\xd0\x4d\x28\xdf\xe8\xc5\x04\xb6\x32\x8a\xe7\x87\x92\x5f\xe0\x18\x8f\x2b\xa9\x1c\x3a\x9f\x0c\x16\x53\xc4\xbf\x0a\xda\x35\x64\x55\xea\x36\xfd\x31\xf8\xe7\x3e\x39\x51\xca\xd4\xeb\xba\x8c\x6e\x04"[..]); ctx.update(b"\x6b\xa0\x04\xfd\x17\x67\x91\xef\xb3\x81\xb8\x62\xe2\x98\xc6\x7b\x08"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x11\x2e\x19\x14\x4a\x9c\x51\xa2\x23\xa0\x02\xb9\x77\x45\x99\x20\xe3\x8a\xfd\x4c\xa6\x10\xbd\x1c\x53\x23\x49\xe9\xfa\x7c\x0d\x50\x32\x15\xc0\x1a\xd7\x0e\x1b\x2a\xc5\x13\x3c\xf2\xd1\x0c\x9e\x8c\x1a\x4c\x94\x05\xf2\x91\xda\x2d\xc4\x5f\x70\x67\x61\xc5\xe8\xfe"[..]); ctx.update(b"\xc6\xa1\x70\x93\x65\x68\x65\x10\x20\xed\xfe\x15\xdf\x80\x12\xac\xda\x8d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc3\x6c\x10\x0c\xdb\x6c\x8c\x45\xb0\x72\xf1\x82\x56\xd6\x3a\x66\xc9\x84\x3a\xcb\x4d\x07\xde\x62\xe0\x60\x07\x11\xd4\xfb\xe6\x4c\x8c\xf3\x14\xec\x34\x57\xc9\x03\x08\x14\x7c\xb7\xac\x7e\x4d\x07\x3b\xa1\x0f\x0c\xed\x78\xea\x72\x4a\x47\x4b\x32\xda\xe7\x12\x31"[..]); ctx.update(b"\x61\xbe\x0c\x9f\x5c\xf6\x27\x45\xc7\xda\x47\xc1\x04\x59\x71\x94\xdb\x24\x5c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\x79\x24\x9a\x3c\xa5\xf1\x4c\x29\x45\x67\x10\x11\x4b\xa6\xf6\x13\x6b\x34\xc3\xfc\x9f\x6f\xb9\x1b\x59\xd4\x91\xaf\x78\x2d\x6b\x23\x7e\xb7\x1a\xaf\xfd\xd3\x80\x79\x46\x1c\xf6\x90\xa4\x6d\x9a\x4d\xdd\x60\x2d\x19\x80\x8a\xb6\x23\x5d\x1d\x8a\xa0\x1e\x82\x00"[..]); ctx.update(b"\xe0\x70\x56\xd4\xf7\x27\x7b\xc5\x48\x09\x95\x77\x72\x0a\x58\x1e\xec\x94\x14\x1d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x59\xf1\x85\x63\x03\xff\x16\x5e\x2a\xb5\x68\x3d\xdd\xeb\x6e\x8a\xd8\x1f\x15\xbb\x57\x85\x79\xb9\x99\xeb\x57\x46\x68\x0f\x22\xcf\xec\x6d\xba\x74\x1e\x59\x1c\xa4\xd9\xe5\x39\x04\x83\x77\x01\xb3\x74\xbe\x74\xbb\xc0\x84\x7a\x92\x17\x9a\xc2\xb6\x74\x96\xd8\x07"[..]); ctx.update(b"\x67\xeb\xda\x0a\x35\x73\xa9\xa5\x87\x51\xd4\x16\x9e\x10\xc7\xe8\x66\x3f\xeb\xb3\xa8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\x96\x3f\x81\xcf\xab\xfc\xa7\x1d\xe4\x73\x9f\xd2\x4a\x10\xce\x38\x97\xbb\xa1\xd7\x16\x90\x7f\xc0\xa2\x84\x90\xc1\x92\xa7\xfc\x3c\xcb\x8d\xb1\xf9\x1a\xf7\xa2\xd2\x50\xd6\x61\x7f\x0d\xfd\x15\x19\xd2\x21\xd6\x18\xa0\x2e\x3e\x3f\xa9\x04\x1c\xf3\x5e\xd1\xea"[..]); ctx.update(b"\x63\xe0\x9d\xb9\x9e\xb4\xcd\x62\x38\x67\x78\x59\xa5\x67\xdf\x31\x3c\x85\x20\xd8\x45\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x90\x83\xe5\x34\x8b\x08\xeb\x98\x10\xb2\xd1\x57\x81\xd8\x26\x58\x45\x41\x0d\xe5\x4f\xe6\x17\x50\xd4\xb9\x38\x53\x69\x06\x49\xad\xc6\xe7\x24\x90\xbc\x2b\x7c\x36\x5e\x23\x90\x57\x3d\x94\x14\xbe\xcc\x09\x39\x71\x9e\x0c\xb7\x8e\xca\x6b\x2c\x80\xc2\xfd\xa9\x20"[..]); ctx.update(b"\xf3\xe0\x6b\x4b\xd7\x9e\x38\x0a\x65\xcb\x67\x9a\x98\xcc\xd7\x32\x56\x3c\xc5\xeb\xe8\x92\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\x31\x5f\x10\x6b\x07\xc5\x9e\xed\xc5\xab\x1d\xf8\x13\xb3\xc0\xb9\x03\x06\x0e\x72\x17\xcc\x01\x0e\x90\x70\x27\x85\x12\xa8\x85\x00\x8d\xac\x8b\x24\x72\xa5\x21\xe7\x78\x35\xa7\xf4\xde\xad\xc1\xd5\x91\xaa\x23\xb6\x24\xb6\x99\x48\xa9\x9b\xb6\x01\x21\xc5\x4e"[..]); ctx.update(b"\x16\xb1\x70\x74\xd3\xe3\xd9\x75\x57\xf9\xed\x77\xd9\x20\xb4\xb1\xbf\xf4\xe8\x45\xb3\x45\xa9\x22"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x68\x84\x13\x45\x82\xa7\x60\x04\x64\x33\xab\xcb\xd5\x3d\xb8\xff\x1a\x89\x99\x58\x62\xf3\x05\xb8\x87\x02\x0f\x6d\xa6\xc7\xb9\x03\xa3\x14\x72\x1e\x97\x2b\xf4\x38\x48\x3f\x45\x2a\x8b\x09\x59\x62\x98\xa5\x76\xc9\x03\xc9\x1d\xf4\xa4\x14\xc7\xbd\x20\xfd\x1d\x07"[..]); ctx.update(b"\x3e\xdf\x93\x25\x13\x49\xd2\x28\x06\xbe\xd2\x53\x45\xfd\x5c\x19\x0a\xac\x96\xd6\xcd\xb2\xd7\x58\xb8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\x9e\x0d\xaf\x66\x05\xe5\xb0\xc3\x0e\x1e\xc8\xbb\x98\xe7\xa3\xbd\x7b\x33\xb3\x88\xbd\xb4\x57\x45\x2d\xab\x50\x95\x94\x40\x6c\x8e\x7b\x84\x1e\x6f\x4e\x75\xc8\xd6\xfb\xd6\x14\xd5\xeb\x9e\x56\xc3\x59\xbf\xaf\xb4\x28\x57\x54\x78\x7a\xb7\x2b\x46\xdd\x33\xf0"[..]); ctx.update(b"\xb2\xd5\xa1\x4f\x01\xe6\xb7\x78\x88\x8c\x56\x2a\x05\x9e\xc8\x19\xad\x89\x99\x2d\x16\xa0\x9f\x7a\x54\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xab\x2e\x7d\x74\x5d\x8a\xd3\x93\x43\x9a\xf2\xa3\xfb\xc9\xcd\xc2\x55\x10\xd4\xa0\x4e\x78\xb5\x26\xe1\x2b\x1c\x0b\xe3\xb2\x29\x66\x87\x2e\xbe\x65\x2e\x2f\x46\xed\x5c\x5a\xce\xcd\x2f\x23\x3a\x91\x75\xdd\x29\x5e\xbe\xb3\xa0\x70\x6f\xc6\x6f\xa1\xb1\x37\x04\x2b"[..]); ctx.update(b"\x84\x4b\x66\xf1\x2b\xa0\xc5\xf9\xe9\x27\x31\xf5\x71\x53\x9d\x1e\xef\x33\x2e\x15\x49\xa4\x9d\xbf\xa4\xc6\xde"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc3\xf9\xc5\x78\x19\x25\x77\x47\x83\xae\x9d\x83\x97\x72\xd7\x51\x3d\xfc\xea\x8c\x5a\xf8\xda\x26\x2c\x19\x6f\x9f\xe8\x01\x35\xb2\xb0\xc8\xc6\xca\x0a\x16\x04\xe0\xa3\x46\x02\x47\x62\x0d\xe2\x0b\x29\x9f\x2d\xb7\x87\x19\x82\xd2\x7c\x21\x76\xae\x5f\xa7\xad\x65"[..]); ctx.update(b"\x6b\x6c\xc6\x92\xd3\x98\x60\xb1\xf3\x02\x03\x65\x3e\x25\xd0\x9c\x01\xe6\xa8\x04\x3c\x1a\x9c\xb8\xb2\x49\xa4\x1e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2e\x52\x63\xd9\xa4\xf2\x1b\x21\x0e\x0e\x16\x1e\xd3\x9d\xf4\x41\x02\x86\x43\x25\x78\x86\x47\x26\x1a\x6e\x70\xea\x4b\x1e\xe0\xab\xb5\x7b\x57\x49\x9b\xc8\x21\x58\xd8\x23\x36\xdd\x53\xf1\xef\x44\x64\xc6\xa0\x81\x26\xe1\x38\xb2\xcc\x08\x92\xf7\x65\xf6\xaf\x85"[..]); ctx.update(b"\xab\x1f\xc9\xee\x84\x5e\xeb\x20\x5e\xc1\x37\x25\xda\xf1\xfb\x1f\x5d\x50\x62\x9b\x14\xea\x9a\x22\x35\xa9\x35\x0a\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x72\xd1\x88\xa9\xdf\x5f\x3b\x00\x05\x7b\xca\x22\xc9\x2c\x0f\x82\x28\x42\x2d\x97\x43\x02\xd2\x2d\x4b\x32\x2e\x7a\x6c\x8f\xc3\xb2\xb5\x0e\xc7\x4c\x68\x42\x78\x1f\x29\xf7\x07\x5c\x3d\x4b\xd0\x65\x87\x86\x48\x84\x6c\x39\xbb\x3e\x4e\x26\x92\xc0\xf0\x53\xf7\xed"[..]); ctx.update(b"\x59\x4e\xd8\x2a\xcf\xc0\x3c\x0e\x35\x9c\xc5\x60\xb8\xe4\xb8\x5f\x6e\xe7\x7e\xe5\x9a\x70\x02\x3c\x2b\x3d\x5b\x32\x85\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5e\xf3\x22\xcb\x40\x14\xec\xbb\x71\x3a\x13\x65\x96\x12\xa2\x22\x22\x59\x84\xd3\x1c\x18\x7d\xeb\xc4\x45\x9b\xa7\x90\x1f\x03\xda\xc7\x75\x40\x0a\xcf\xe3\x51\x0b\x30\x6b\x79\x89\x4f\xb0\xe8\x43\x7b\x41\x21\x50\xc9\x19\x3e\xe5\xa2\x16\x43\x06\xeb\xb7\x83\x01"[..]); ctx.update(b"\xf2\xc6\x6e\xfb\xf2\xa7\x6c\x5b\x04\x18\x60\xea\x57\x61\x03\xcd\x8c\x6b\x25\xe5\x0e\xca\x9f\xf6\xa2\xfa\x88\x08\x3f\xe9\xac"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x79\x78\xf9\x3e\xf7\xed\x02\xc4\xa2\x4a\xbe\xcb\xa1\x24\xd1\x4d\xd2\x14\xe1\x49\x2f\xf1\xe1\x68\x30\x4c\x0e\xab\x89\x63\x7d\xa0\xf7\xa5\x69\xc4\x3d\xc4\x56\x2b\xdb\x94\x04\xa0\x18\xb6\x31\x4f\xe0\xee\xba\xcc\xfb\x25\xba\x76\x50\x6a\xa7\xe9\xdc\xd9\x56\xa7"[..]); ctx.update(b"\x8c\xcb\x08\xd2\xa1\xa2\x82\xaa\x8c\xc9\x99\x02\xec\xaf\x0f\x67\xa9\xf2\x1c\xff\xe2\x80\x05\xcb\x27\xfc\xf1\x29\xe9\x63\xf9\x9d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\x51\xde\xf2\xf9\x12\x73\x86\xee\xa8\xd4\xda\xe1\xea\x8d\x8e\x49\xb2\xad\xd0\x50\x9f\x27\xcc\xbc\xe7\xd9\xe9\x50\xac\x7d\xb0\x1d\x5b\xca\x57\x9c\x27\x1b\x9f\x2d\x80\x67\x30\xd8\x8f\x58\x25\x2f\xd0\xc2\x58\x78\x51\xc3\xac\x8a\x0e\x72\xb4\xe1\xdc\x0d\xa6"[..]); ctx.update(b"\x9f\x8c\x49\x32\x0a\xf9\x37\x0c\xd3\xdb\x20\xe9\xb5\x0d\x3e\xaa\x59\xa6\x23\x2d\x7a\x86\xfb\x7d\x47\x2f\x12\x45\x08\xd7\x96\x8b\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\xb0\x02\xf1\x5c\x4d\x48\xbe\x85\x17\xf7\xed\x89\xdf\x30\x2f\xb1\x43\x5c\x94\x35\xef\xef\xed\x58\xf3\xeb\x8e\xa1\x19\x10\x62\x3f\x1e\xb9\x02\x8a\x66\xe0\x21\x21\xa7\xf0\x8a\x7c\x60\x42\x26\xf2\x32\x4f\x48\x3e\x91\x54\x8d\xbb\xd2\xc4\x41\xab\x70\x4c\xe5"[..]); ctx.update(b"\x4a\xb9\xaa\x06\x94\x75\xe5\x4b\x25\xe5\x68\x8a\x52\xdd\x4a\xcd\x13\x41\x69\xc8\x58\x10\x5f\x01\xa0\xa1\xb1\x34\xc7\x2d\x4a\xf5\x1f\x8e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x48\xba\x5a\x63\xab\xa7\xe7\xbd\x8e\x42\x04\x75\x33\x11\x25\xa9\x47\x92\x8c\x67\xfd\xb0\x0f\x65\xc4\x08\x0d\x9a\x0b\x99\xc0\x67\x24\x24\xe7\x6a\x1b\xa6\xbd\x76\xdf\xe4\x92\xc7\x30\xf6\xf9\xad\xcc\xae\xe7\xbb\x11\x57\x1a\xad\xb3\x1f\x6b\xb6\x28\xcf\xa9\x33"[..]); ctx.update(b"\xf0\xc1\xd3\x40\x7d\xe9\x2e\xf7\x42\x1e\x42\xdf\x5c\x9a\xb3\x1d\x2e\xc0\xa7\x50\xa9\x52\x28\x69\xcb\xe4\xca\xbd\x66\x90\x8d\x58\x23\xec\x04"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9e\x75\xc5\xbc\xa2\xc2\xaf\x1d\x77\x39\x78\x7f\x46\xe1\xd9\x81\xc4\xf9\x8e\x49\x3d\x07\x24\xb5\x25\x2c\x2f\xba\xe3\xc5\x26\x71\x9f\x1d\x27\xe6\xcc\xd0\xd7\x05\x24\x02\x81\xe8\xfb\xf3\xdb\x75\xb9\xb3\x20\x5c\x14\x13\x43\x6d\x3b\x5d\x14\x00\x04\xb8\xcc\xa1"[..]); ctx.update(b"\xae\x8c\x9f\x8f\xb4\x1b\x51\x9b\x6d\x94\x38\x33\xfe\x1c\x32\xd1\xc4\x29\x2f\xb1\xdd\xf1\xdb\xe2\xeb\x22\x7d\x9e\x14\xd3\x1e\xd7\x4e\xba\xef\x12"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x04\x2f\x9f\xd0\xa4\xed\x3d\x9f\xec\x36\x55\xae\x11\x01\x1c\x6f\x2b\xc7\xe4\x57\xe8\x81\x2b\x6d\x8b\xe2\xcd\x45\xfc\x6c\x43\x2a\x94\x55\x8c\x88\xf2\x2c\x01\x43\x96\x18\x86\x5e\x8e\x49\xe5\x09\xc4\x48\xb3\x42\xca\x91\x4b\x12\x03\x44\xaa\xf7\xbc\xbd\xca\x18"[..]); ctx.update(b"\xda\x39\xfb\x86\x23\x7f\x00\x30\x38\x44\xe6\x1f\xc6\xcf\xe7\x79\xe4\x2a\xf5\x33\x49\x83\x95\x90\xbc\xd2\xf0\xe4\xcb\xbc\x27\x9e\xc0\xb7\xe8\x85\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xec\xb4\x3d\xe8\xc2\x33\xa7\x31\xb3\x8e\x30\xc5\x69\x6f\x88\x76\x76\x1b\x7e\xa7\x2e\xfe\x28\x3f\xd0\x7b\xed\xf2\x00\x29\xf4\x7c\x6d\x2a\x44\x27\x82\x3e\x10\x0f\xb0\x87\xab\xaf\x22\xd7\xef\xf4\x2a\x95\x1c\x97\xc3\xdd\x05\xf4\x8a\x20\x16\x3f\xa4\x36\x7c\xba"[..]); ctx.update(b"\x3e\x72\x71\xd2\x07\x0e\xf0\x95\x39\x46\x20\xc4\xb0\x16\x57\x6c\x15\x0f\x34\xbe\xa6\x07\x84\x61\x3a\x0f\x66\x0d\x7f\xa5\xae\x56\x87\x2b\x88\xc5\x83\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\x54\xd0\xda\x63\x4a\xb2\x26\x60\x61\xac\xc1\x23\xac\xb4\x07\x65\x0f\xfe\x91\x64\xa2\x2d\xe3\xfe\x29\xbf\x05\x39\x3b\x2a\xec\xe9\x2c\xf4\xdb\x00\xea\x5b\x43\x41\xc3\x1d\xdb\x7d\xe1\x51\x68\x3c\x8a\x71\xb5\xa4\x4d\x5c\x31\x75\x79\x0f\xea\xc6\x7d\x18\xee"[..]); ctx.update(b"\x31\x1f\xb6\x7f\x6a\x07\x84\xbb\x01\xa2\xd5\xa3\xf3\x09\x2c\x40\x7a\x9d\x33\x22\x31\x9d\xff\x9a\x79\xf8\x94\x29\x1c\x5f\xac\x37\x31\x9f\xb4\x08\x40\x2e\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\x70\xfe\x91\x3a\xbb\x0a\x4b\x4f\x53\xb6\x58\x1a\xe1\x83\x22\xcd\x05\x32\x85\x14\x55\x66\x07\xf3\xf4\xd7\xb6\xa2\xac\x8e\x91\x85\xd9\x4d\x94\x7d\x8b\x9c\x88\xe0\xef\xa6\x6d\x89\xb5\x9f\x74\x39\xc7\x5f\xda\xdd\x18\x16\xf7\x41\x23\x06\xab\x2b\x59\xd6\x64"[..]); ctx.update(b"\x76\x51\xab\x49\x1b\x8f\xa8\x6f\x96\x9d\x42\x97\x7d\x09\xdf\x5f\x8b\xee\x3e\x58\x99\x18\x0b\x52\xc9\x68\xb0\xdb\x05\x7a\x6f\x02\xa8\x86\xad\x61\x7a\x84\x91\x5a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf3\x5e\x50\xe2\xe0\x2b\x87\x81\x34\x5f\x8c\xeb\x21\x98\xf0\x68\xba\x10\x34\x76\xf7\x15\xcf\xb4\x87\xa4\x52\x88\x2c\x9f\x0d\xe0\xc7\x20\xb2\xa0\x88\xa3\x9d\x06\xa8\xa6\xb6\x4c\xe4\xd6\x47\x0d\xfe\xad\xc4\xf6\x5a\xe0\x66\x72\xc0\x57\xe2\x9f\x14\xc4\xda\xf9"[..]); ctx.update(b"\xdb\xe5\xdb\x68\x5e\xd7\xcb\x84\x8c\x09\x45\x24\xc1\x72\x35\x19\xd4\x9d\xc6\x6e\xf9\xfe\x6d\x57\xe6\x86\x2a\x64\x35\x75\x0b\xfa\x0a\x70\xf1\x04\xf5\xd3\x96\xe6\x1a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2f\xa6\xe5\xb2\xc4\x43\xa6\x80\x50\xf0\x93\xe7\xfb\x71\x3b\xd6\xb1\x8f\x62\x74\xc0\x61\xed\x61\xd7\x9b\xf0\x68\x8a\x61\xdb\xa1\x94\x0b\xcc\x30\x99\x82\x76\x86\x09\x43\xab\x03\x89\x02\x89\x6d\x0f\xbf\x59\xb8\x8b\x07\xc8\x0d\xe9\x27\x03\x70\x97\x15\x0c\x40"[..]); ctx.update(b"\x9f\xa8\x3e\x96\xb2\xa6\xdf\x23\xfb\x37\x28\x95\x01\x56\x78\xe0\xb2\xc9\xcd\x18\xa8\x54\x2c\x3e\xaa\x2c\x43\x5a\x76\xae\x4d\xc9\xbd\x51\x36\xd9\x70\xda\xff\x93\x3a\xcf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\x2c\x0e\xc8\x8a\x3e\x53\x47\xcf\x0e\xa9\xc0\x78\x83\x83\x00\xef\x73\x56\xf9\xa6\xc3\x42\x06\x32\x77\xc1\x06\xb8\x80\xa0\x0e\xd2\xbe\x20\x5c\x13\x06\x40\x97\xbd\x37\x2f\xde\x38\x00\x7b\xc3\x06\x56\x1e\xb4\xe7\x4b\xba\x2b\xb2\x0b\xd3\x54\xaa\x69\x0c\xa6"[..]); ctx.update(b"\x8a\x5a\x45\xe3\x98\xba\xc1\xd9\xb8\x96\xb5\xa2\xb4\xe3\x56\x6b\x91\xd8\x0a\xd2\x0c\x97\x7e\xa7\x45\x0f\xf2\xef\xb5\x21\xd8\x2f\x65\x01\x9e\xe7\x62\xe0\xc8\x5c\x6c\xc8\x41"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\x70\x46\x20\xf4\x06\x6d\x79\xc1\xff\x67\x75\x29\x80\xf3\x9e\xf3\xd9\xc1\x02\x3f\xa5\xa2\x13\xa5\x26\x53\x76\xb1\x4a\x15\x16\x6f\xfe\x06\x9b\x51\xdf\x77\x10\xd8\x90\x7f\xef\x94\x06\xbf\x37\x5d\x50\x2c\xe0\x86\xac\x82\xaf\xf1\x72\x29\xaa\xa7\xa5\xa3\x34"[..]); ctx.update(b"\x49\xcf\xff\xda\xf4\xd0\x31\xe3\x3b\x1d\x28\xa4\x47\x45\x05\x45\xf6\xc4\x29\x3b\x38\xd5\xaf\xbc\xb9\x88\x39\x76\xc0\x14\xf0\x80\x57\x6e\xc6\x91\xac\x1b\xff\x70\xb7\x42\xef\xab"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8b\xcc\x4f\x1e\xa2\xb7\x86\x2e\xf1\x59\x1b\xfa\x73\x91\x66\x65\xde\x8f\xaf\x65\x43\x9d\xdf\x5c\xc1\xbe\x43\xce\xbf\xd5\xf6\x0f\x20\x5e\x83\x5a\x2b\x18\x6b\x67\x5b\x04\x12\x58\xc5\xcf\xf4\x26\x69\x31\x6c\xe2\x5b\x46\xa2\xf4\xd4\x21\x8e\x10\x2f\x0f\x5d\x6f"[..]); ctx.update(b"\x2f\xf8\x45\xd8\x5e\xfb\xc4\xfa\x56\x37\xe9\x44\x8d\x95\x04\x96\xf1\x9d\x8d\x57\xda\x99\xb7\xbd\x3d\xf7\x47\x48\x22\xf0\xa7\x90\x58\x67\x36\x41\x67\x14\xe3\x64\xc6\xe1\xfa\xe0\x4e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x23\x6f\x6f\x4e\xd6\xe8\x58\xc0\x2d\x51\x78\x7e\x60\xc5\x78\xf7\x31\xf6\x94\xf8\xe5\x2b\x5d\xf4\xec\xd5\xb0\x4d\xff\x14\xc7\x8e\x56\xba\xd1\x02\x8d\x6f\x62\x6c\x29\xd8\x5a\xee\xe1\x51\xa2\xa2\x84\x6d\x3e\xed\x5c\xfa\xfa\x98\x54\xa6\x9f\xea\x8a\xf6\xd0\x4a"[..]); ctx.update(b"\xcf\xca\x05\xfd\x89\x3c\x0f\x00\x5f\x5f\xf7\x96\xf4\xda\x19\xba\x27\xa1\xe7\x29\x95\x6b\x8b\x71\x5e\x67\xce\x4b\x2d\x2a\x38\x2a\x72\xec\x78\x14\xf2\xf5\x07\xb1\x82\x52\x09\xa2\x0f\xcc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd8\x09\x69\x28\x4a\x45\x65\xad\xd4\xda\xd6\xab\x9b\x3b\xdf\x53\x44\x61\x42\xf8\x4a\xaf\x92\xd4\xb2\x3d\xd2\x2e\xe7\x24\x1e\x6c\x81\x48\x9a\xc8\xb2\x46\xed\xcb\x6d\xf9\xbd\x7b\x23\xd9\x1a\x0c\x51\x7f\x54\x6f\xeb\xa4\xed\x57\x90\xa2\xbe\x6e\x16\x5c\x17\x09"[..]); ctx.update(b"\xcf\xc4\x25\x75\x9a\x9c\x36\xbb\x9f\x4b\x32\xee\xd7\x76\x7a\xf6\x56\x6f\x68\xde\xd0\xad\xea\xe2\x5c\x7a\x70\xca\x78\xec\x09\x77\x4d\x16\xc8\xbc\x35\x7f\x6d\x6f\x7b\xd4\x41\xbf\x62\xd9\x42"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb5\x87\xa7\x85\xcd\xf4\x55\xcc\x9c\x54\x4e\x75\x6c\x1e\x30\x63\x00\xaa\x3c\x59\xf8\x72\x50\x12\xe6\x8a\xb4\xd5\x40\x20\xb6\xd2\x27\xa1\x64\xd9\xf8\x3c\x90\x5e\x86\xf8\xce\xbe\xef\x70\x8a\x69\xf9\x76\xd6\xe7\xb1\x8b\x9b\xf7\x8e\x9b\x98\xcc\x4a\x5c\xd1\xb6"[..]); ctx.update(b"\x09\x7c\x9d\xb9\x19\x51\x52\x42\xc9\x9d\x97\x3a\xcb\x1d\xc4\xed\x48\x27\x68\xf9\x74\xeb\x83\xb4\x65\xf9\xf6\xc8\x25\x03\x37\x20\x06\xe4\x49\x08\x35\xe2\xec\x8f\x92\x30\x11\x30\xbf\xb7\x90\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xff\x5a\x37\x6f\x93\x8e\x73\x01\x4c\xae\xf7\xfe\x39\x62\x94\x4a\x72\x30\xd0\x20\xb7\x08\x78\x69\xeb\xe7\xec\x70\x30\x27\x21\xcd\x06\xfc\xdc\x98\x1c\x89\x3a\x42\x5d\x05\xe2\xf9\x9f\xe1\x98\xe4\xdb\x50\xa0\x88\xae\xe2\xbf\x12\x63\x21\x21\x10\xef\xed\x42\x2c"[..]); ctx.update(b"\x77\xe7\x3d\x38\x7e\x7b\xc8\x04\x19\xeb\xf5\x48\x2b\x61\xd5\x25\x5c\xaf\x81\x9f\xb5\x92\x51\xff\x6a\x38\x4e\x75\xf6\x01\xea\x02\x6d\x83\xef\x95\x0e\xd0\xb6\x75\x18\xfb\x99\xde\xe0\xd8\xaa\xef\x1f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\xc8\x9c\xd8\x82\xec\x94\x5c\xc8\x88\xfb\x9a\x01\x27\xd3\x5e\x58\x5e\xcc\x14\xa7\x5e\x4b\x5b\x3d\x83\x30\x53\x8d\x22\xda\x28\xcf\x6a\xf1\xeb\xec\x96\xdc\x24\x7f\x10\x9c\xd2\xaa\xab\x97\x56\xe6\x94\x6a\x3d\x80\xdb\x83\x63\xa4\xda\x3e\x6d\xdb\xb5\x10\xa1"[..]); ctx.update(b"\x31\x7e\x5d\x9a\xc7\x3e\xd0\x63\x3f\xa1\x8e\xbe\xbb\xca\x79\x09\xec\x3a\x5e\xf7\x90\x47\x8f\x9c\x38\xca\xce\xc4\x4f\x19\x6d\x89\x58\x35\xb4\x25\x77\x44\x83\x04\x33\x41\x38\x1e\x7a\xf2\xd3\x83\xe5\x1a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb1\x0b\xb0\x44\x91\xb9\xc0\xc3\x34\x70\x9b\x40\x7c\xda\x1d\x50\x3e\xfb\x6b\x63\xee\x94\x4f\x2d\x36\x6b\x68\x55\xe6\xe6\x3e\x5b\x80\x11\x5b\xe4\xbe\x7f\xf6\x3e\xde\xcd\xfb\x59\x23\x79\x2e\x68\x12\x39\x76\xd7\x92\x12\xb3\x88\x4d\xec\x21\x79\xd1\xfc\xf3\x82"[..]); ctx.update(b"\x20\x94\x61\xf2\x06\x66\xa3\x46\xfe\xdf\x4a\x53\x0f\x41\xa6\xfa\x28\x0c\x43\x66\x57\x67\xbe\x92\x3b\xc1\xd8\x0b\xbc\xb8\xc9\xf8\xf9\x3a\xd7\x57\x82\xea\x26\x89\xc8\xc5\xd2\x11\xd2\x05\x3b\x99\x31\x45\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x67\xb7\xa3\x28\xd9\x44\x40\x56\xa5\x2c\xa2\xf6\x95\xc5\xd3\xf3\xba\xaf\xb6\x25\xa1\x4f\xb3\x2e\xee\x8f\xf2\x6a\x40\xcc\xb2\x96\xbe\xc1\x77\x1a\x82\x6b\x55\xf7\xdd\xb6\x17\x0d\x4c\xaf\x77\x95\xb6\x12\x44\x8e\x66\xa0\xf1\x93\x56\xfe\x50\x59\x27\x14\x9b\x47"[..]); ctx.update(b"\x5d\x61\xaa\x45\xc4\x46\xf3\xbf\x93\x60\x4b\x05\x11\x31\x3b\x4e\x2f\x30\x6d\x6b\x04\x6f\xbd\x94\x79\x7b\x92\x67\x46\x83\x6f\x2e\x1d\xbd\xc5\x61\x24\x06\x0c\x6c\xa9\xc9\x11\xb1\x12\x21\x92\xd1\x12\x42\x08\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd3\x93\x1b\xde\x2b\xde\x82\x71\xed\x18\xca\x0b\x91\x48\xb1\x2f\x6f\x16\x16\x1e\x63\x7e\x37\x6f\xc9\x61\xf6\x5b\xc3\x3b\xca\xcf\x2f\x6a\xdd\xf2\x6a\x3e\xaa\x81\xb1\x96\x65\x3c\xc3\x7e\x8a\x73\x9e\xc5\xb3\xdf\x87\x0d\x8c\x38\xc8\xf2\x86\x91\xc2\x2a\x39\xbb"[..]); ctx.update(b"\x92\x88\xc7\x95\xbb\x0b\x86\xc0\x41\x9d\x9c\x56\x37\xdc\xc3\x7b\x39\xbf\xa1\x8d\x44\x1e\x3f\xbf\xca\x75\xbc\x03\x06\xe5\x43\x2e\x8e\x7b\x3a\x56\x27\xb5\xbc\x7f\xdc\x42\x4a\x77\x52\x0a\xbd\xff\x56\x6e\x7f\x2b\xb8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe3\x63\xd0\xe9\x5d\x8c\xd1\x8c\x38\x40\x16\xeb\xee\xd6\xd9\x9c\x4f\xa2\x76\x8e\x2b\xd5\x8f\xca\x01\x9c\x51\x08\xb9\xcd\xe1\xcb\x46\xf3\xf8\x84\x02\x8a\x55\xce\x28\x2e\xc3\x10\xa1\x00\x37\xfa\xa1\xb1\x6b\x4a\x6a\x66\x99\x57\xf0\xb0\x0f\x35\x0b\xbd\x63\xd0"[..]); ctx.update(b"\x78\x04\x27\xdc\x16\x4b\x2f\x69\xb8\xc7\xd5\x69\x26\x6f\x46\x1e\x2d\x30\xc8\x8c\x4c\xd6\x05\x7f\xb0\x30\xa6\xcf\x63\x6f\x24\xe3\xc0\xd0\xdb\x74\x2a\x7b\x61\x93\xfd\xaa\x15\xee\xc5\x0d\xfb\x4f\xae\x6e\xc7\x65\x3c\x91"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\x64\xb0\x09\xfb\x1b\xf9\x96\xde\x12\xe0\x30\xb9\xd6\xe0\x60\x8a\xe8\xb9\xdb\xf2\xac\xfb\x9b\xeb\x76\xfc\x53\x61\xcc\x10\x4e\xe8\x5c\x2a\x46\xfb\x7b\x4c\xee\x90\x84\x83\x12\xda\x30\x2d\xe4\x9a\xfe\x61\xc5\x46\x47\x7e\x2b\x25\xd2\x23\xd5\xe3\xd3\x35\x60"[..]); ctx.update(b"\xec\x2a\x92\xe4\x7f\x69\x2b\x53\xc1\x35\x54\x75\xc7\x1c\xef\xf0\xb0\x95\x2a\x8b\x35\x41\xb2\x93\x82\x70\x24\x7d\x44\xe7\xc5\xcc\x04\xe1\x72\x36\xb3\x53\xda\x02\x86\x74\xea\xb4\x04\x7d\x89\xec\x5d\xad\x86\x8c\xfd\x91\xce"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\x3a\xca\x61\x47\xbf\xcb\xbc\x72\xc3\x77\xef\xa8\xd5\x36\x54\xba\x08\x30\xc5\xa6\xa8\x9e\x1d\x2a\x19\xb7\x13\xe6\x8f\xb5\x34\x64\x0d\xeb\x83\x3c\xa5\x12\x24\x71\x66\xdd\x27\x3b\x58\x97\xe5\x7d\x52\x6f\x88\xee\xf5\x8f\x6f\xf9\x7b\xae\xe0\xb4\xee\x56\x44"[..]); ctx.update(b"\xc9\x9e\x31\xad\x4e\x23\xac\x68\xe1\x5e\x60\x5d\x0b\x02\x43\x7f\x81\x47\xc4\x4f\x54\x45\xa5\x5b\x68\xa1\x09\x05\x27\x6c\xce\x86\x76\x48\x1c\x33\xe8\xcd\x3e\xfe\x32\x2b\xb1\x3f\xe0\x10\x7b\xb5\x46\xcc\xbe\xc7\xb8\xb3\x8d\x10"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x52\x99\x2d\x45\xa8\x82\x21\xd9\x72\x95\x8e\x9f\x28\x54\xad\xaa\x9a\x21\xd2\xbf\x70\x51\xe1\xf1\x01\x9a\xe7\x80\x04\xda\x50\xc5\xb5\x5c\x14\x4a\x02\xaf\xff\xe5\x39\xd7\x53\x94\x9a\x2b\x05\x65\x34\xf5\xb4\xc2\x1f\x24\x8a\x05\xba\xa5\x2a\x6c\x38\xc7\xf5\xdd"[..]); ctx.update(b"\x9a\xa3\xe8\xad\x92\x77\x7d\xfe\xb1\x21\xa6\x46\xce\x2e\x91\x8d\x1e\x12\xb3\x07\x54\xbc\x09\x47\x0d\x6d\xa4\xaf\x6c\xc9\x64\x2b\x01\x2f\x04\x1f\xf0\x46\x56\x9d\x4f\xd8\xd0\xdc\xcf\xe4\x48\xe5\x9f\xee\xfc\x90\x8d\x9a\xd5\xaf\x6f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x99\x4d\x1c\xda\x4d\xe4\x0a\xff\x47\x13\x23\x7c\xf9\xf7\x8f\x70\x33\xaf\x83\x36\x9a\xc9\xc6\x4e\x50\x40\x91\xea\x2f\x1c\xaf\xf6\xc5\x15\x2d\x6a\x0c\x56\x08\xf8\x28\x86\xc0\x09\x3b\x3d\x7f\xba\xdd\x49\xdf\xd1\xf9\xe0\xf8\x5a\xcc\xf2\x3b\xc7\xda\xd4\x89\x04"[..]); ctx.update(b"\x58\x42\x51\x2c\x37\x31\x25\x11\xa3\xd8\xae\x41\xf5\x80\x1d\xf6\x0c\xd6\x82\xd5\x8b\x4a\x99\x73\x42\xb6\xe7\x17\xe9\x40\x06\xc2\x14\x81\x3e\x6c\x63\xe7\x55\x91\xf9\x57\xa7\xec\x30\x17\x79\x83\x8b\xec\x8a\xe3\xed\x7f\xeb\xad\x08\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x97\x63\xc4\x33\x31\xad\x0e\xb2\x79\xd7\x04\xc5\xf6\xe9\x7e\x02\xda\x87\x24\x11\x50\x26\x82\x7f\x88\x9e\x9f\xcd\xa2\x1f\x60\xfd\x23\x08\x94\xab\x35\xab\xb7\x19\x89\x0f\x3a\xfa\x51\xaf\xd3\x1b\xc6\x85\x21\x83\xb9\xc5\x10\x59\x91\x0a\xf4\x60\xab\xd2\x47\x4d"[..]); ctx.update(b"\xca\x14\xe2\xea\x2f\x37\xc7\x8f\x78\xef\x28\x0f\x58\x70\x7e\xc5\x49\xa3\x1a\x94\x36\x10\x73\xe3\x77\x01\xbf\xe5\x03\xe4\xc0\x1e\xe1\xf2\xe1\x23\xe0\x0e\x81\xa1\x88\xf0\x8f\xa0\x50\x82\x57\x09\x12\x8a\x9b\x66\xbb\x8a\xe6\xea\x47\xe4\x1d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x46\x00\xe0\x22\xa0\x22\x58\x73\x9f\x67\xfd\xd3\x67\xcc\x1e\x66\x26\x31\xfb\x08\x79\x18\x76\x83\x52\x06\x2b\x9b\x3c\x8d\xe8\xdb\xca\x0e\x9e\xc7\x51\xb9\x1f\x28\x46\x94\xfb\xdd\xb8\xd3\x25\xc0\x63\x7b\xcc\xb2\x1d\xd2\xef\xa9\x2e\x48\xdb\xab\x2e\x5e\x9c\x26"[..]); ctx.update(b"\x64\x76\x29\xc7\x79\xb2\x4c\x1e\x76\xf4\x17\x44\xab\xa1\x71\x59\x48\x75\x32\xa0\x15\x6a\x7d\x82\x64\xdb\x50\xd6\x45\xe9\x59\x5f\xf8\x1e\x0c\x96\xa8\x50\xf2\xaa\x56\xc8\x44\xc6\x13\xa4\xb8\x92\x72\x7a\x9b\xfc\x3d\x3e\x20\x38\x67\x66\xf8\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\xc8\x42\xfc\x2d\x3b\x7e\xb3\x1d\x2d\x30\x44\xdf\x3e\xc3\x2a\xf1\x14\xfe\xaa\x7c\xfc\x27\xeb\xc8\x63\x0f\x46\xab\x6f\x0c\x54\x3f\x59\xb8\x12\xe7\x76\xe5\x30\x38\x61\xd1\x7d\xa3\xf1\xf1\x60\x97\x64\x1f\x3b\x80\x8d\x4d\x5c\xb3\xe4\x83\x94\x64\x09\x74\x6c"[..]); ctx.update(b"\x1c\x5d\xc0\xd1\xdd\x2e\x4c\x71\x76\x35\xff\x3e\x9b\x67\xca\xf9\x57\xae\xc0\xf8\xf6\x3c\x1b\x1e\x22\x1e\x80\x0a\x4c\x14\x84\x8f\x4e\xa0\x6e\x64\x4e\x5d\x3e\x1d\xe5\x92\xef\x5a\x80\x07\xfa\x3f\x07\x17\x1b\x24\xbd\x07\x57\x8d\x68\x96\x3e\x5c\xb1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcb\xf1\xea\x86\xfa\x5b\x3d\xbf\x67\xbe\x82\xfa\xc4\x1e\x84\xcc\xcd\x0d\x29\x6c\x75\x71\x69\xb3\x78\x37\xd2\x73\xcc\xc0\x15\xee\xcd\x10\x2b\x9c\xe1\xcf\xf6\x8f\xdc\x7f\x05\xd2\x2f\x2b\x77\x47\x34\xf6\x2d\xed\x54\xc8\xee\x0b\xf5\x7a\x5a\x82\x01\x0d\x74\xf5"[..]); ctx.update(b"\x8a\x55\x5e\x75\x47\x7d\x06\x5b\x3a\xf7\xe6\x15\x47\x5f\x37\xc0\xa6\x67\xf7\x3a\x4c\x7a\xf5\xe4\xa6\x9f\x28\xa6\x8d\x9f\x44\x34\x77\x6a\x8f\x90\xea\xb7\xf1\xd1\x37\xeb\x4b\x22\x64\x3c\x0a\x0d\x6a\x16\xfc\xfa\xa1\xbd\x62\xf2\x78\x35\x46\xa9\x69\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc0\x88\xe4\xa3\xd7\xda\x2f\x6f\x99\xa8\xf3\xf7\x17\x36\x11\x08\x87\x2b\x8f\xfe\xf9\x21\xb3\x83\xc2\x4b\x80\x61\xd4\xe7\xc2\x7f\xc5\x6f\x4f\x20\xdc\x8f\x95\x2a\x14\x04\x3c\x56\x50\xb5\xa9\xe7\x77\xc4\x9c\x41\xcf\xeb\x3f\x2d\xe9\x7e\xe2\xe1\x6b\x2c\x39\x24"[..]); ctx.update(b"\xeb\xb3\xe2\xad\x78\x03\x50\x8b\xa4\x6e\x81\xe2\x20\xb1\xcf\xf3\x3e\xa8\x38\x15\x04\x11\x0e\x9f\x80\x92\xef\x08\x5a\xfe\xf8\x4d\xb0\xd4\x36\x93\x1d\x08\x5d\x0e\x1b\x06\xbd\x21\x8c\xf5\x71\xc7\x93\x38\xda\x31\xa8\x3b\x4c\xb1\xec\x6c\x06\xd6\xb9\x87\x68"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf3\x34\x28\xd8\xfc\x67\xaa\x2c\xc1\xad\xcb\x28\x22\xf3\x7f\x29\xcb\xd7\x2a\xbf\xf6\x81\x90\x48\x3e\x41\x58\x24\xf0\xbc\xec\xd4\x47\xcb\x4f\x05\xa9\xc4\x70\x31\xb9\xc5\x0e\x04\x11\xc5\x52\xf3\x1c\xd0\x4c\x30\xce\xa2\xbc\x64\xbc\xf8\x25\xa5\xf8\xa6\x60\x28"[..]); ctx.update(b"\xc1\xca\x70\xae\x12\x79\xba\x0b\x91\x81\x57\x55\x8b\x49\x20\xd6\xb7\xfb\xa8\xa0\x6b\xe5\x15\x17\x0f\x20\x2f\xaf\xd3\x6f\xb7\xf7\x9d\x69\xfa\xd7\x45\xdb\xa6\x15\x05\x68\xdb\x1e\x2b\x72\x85\x04\x11\x3e\xea\xc3\x4f\x52\x7f\xc8\x2f\x22\x00\xb4\x62\xec\xbf\x5d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x04\x6e\x46\x62\x39\x12\xb3\x93\x2b\x8d\x66\x2a\xb4\x25\x83\x42\x38\x43\x20\x63\x01\xb5\x8b\xf2\x0a\xb6\xd7\x6f\xd4\x7f\x1c\xbb\xcf\x42\x1d\xf5\x36\xec\xd7\xe5\x6d\xb5\x35\x4e\x7e\x0f\x98\x82\x2d\x21\x29\xc1\x97\xf6\xf0\xf2\x22\xb8\xec\x52\x31\xf3\x96\x7d"[..]); ctx.update(b"\xd3\xdd\xdd\xf8\x05\xb1\x67\x8a\x02\xe3\x92\x00\xf6\x44\x00\x47\xac\xbb\x06\x2e\x4a\x2f\x04\x6a\x3c\xa7\xf1\xdd\x6e\xb0\x3a\x18\xbe\x00\xcd\x1e\xb1\x58\x70\x6a\x64\xaf\x58\x34\xc6\x8c\xf7\xf1\x05\xb4\x15\x19\x46\x05\x22\x2c\x99\xa2\xcb\xf7\x2c\x50\xcb\x14\xbf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xba\xe7\xc5\xd5\x90\xbf\x25\xa4\x93\xd8\xf4\x8b\x8b\x46\x38\xcc\xb1\x05\x41\xc6\x79\x96\xe4\x72\x87\xb9\x84\x32\x20\x09\xd2\x7d\x13\x48\xf3\xef\x29\x99\xf5\xee\x0d\x38\xe1\x12\xcd\x5a\x80\x7a\x57\x83\x0c\xdc\x31\x8a\x11\x81\xe6\xc4\x65\x3c\xdb\x8c\xf1\x22"[..]); ctx.update(b"\x8e\x8e\xf8\xaa\x33\x6b\x3b\x98\x89\x4c\x31\x26\xc7\x18\x78\x91\x06\x18\x83\x8c\x00\xac\x85\x90\x17\x3c\x91\x74\x99\x72\xff\x3d\x42\xa6\x11\x37\x02\x9a\xd7\x45\x01\x68\x4f\x75\xe1\xb8\xd1\xd7\x43\x36\xaa\x90\x8c\x44\x08\x2a\xe9\xeb\x16\x2e\x90\x18\x67\xf5\x49\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x41\x67\x29\x31\x55\x8a\x93\x76\x25\x22\xb1\xd5\x53\x89\xec\xf1\xb8\xc0\xfe\xb8\xb8\x8f\x45\x87\xfb\xd4\x17\xca\x80\x90\x55\xb0\xcb\x63\x0d\x8b\xea\x13\x3a\xb7\xf6\xcf\x1f\x21\xc6\xb3\x5e\x2e\x25\xc0\xd1\x95\x83\x25\x88\x08\xe6\xc2\x3e\x1a\x75\x33\x61\x03"[..]); ctx.update(b"\x52\x76\x1e\x1d\xac\x0e\xae\xa8\x98\xe0\xb0\x7c\xd2\x4f\x4b\x2e\x6b\xb7\xbc\x20\x0e\xa4\xb0\x52\x88\x42\xf1\x7b\x87\x15\x45\x59\xa2\xea\x94\x45\x9a\x0e\x48\x0a\xe0\xbd\xf9\xf7\x57\xdd\x4a\x33\x5a\xed\x0e\x51\x01\x38\xb0\x24\xa0\x4e\xd1\xd5\x91\xb4\x32\x32\x34\xdb\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb8\x26\xfe\x80\x49\x4e\x19\xc5\x1b\x42\xf2\x58\x2b\x2d\x08\x0b\xa6\xb9\x05\x12\xf3\x5f\x2d\xb6\x7d\xd7\xfd\x5e\xe5\x32\xea\xa1\x64\x98\xaf\xba\x08\xb4\x99\x6c\xbc\xfd\xf8\xd1\xa2\xdf\x6b\x1d\xa9\x39\xe8\x26\x51\x15\xa4\x8a\xef\xa4\x2f\x38\x20\x5d\xb4\x36"[..]); ctx.update(b"\x38\x04\xeb\xc4\x3c\xbe\xa8\x0c\x2b\xd7\xe4\xfd\xa5\xc5\x51\x55\x00\xcd\x2d\x2b\x84\x6a\x13\x78\xdb\xf2\x18\xd5\xc3\x77\x13\x86\x06\xeb\x3c\xb8\xac\x88\xf9\x07\x6f\x6f\xf4\x43\x6f\x90\x71\x74\x27\xc9\xdf\x1b\xa0\x52\xac\xbb\xe4\x58\x5e\x98\xb6\xe8\xe0\xbf\x80\x0f\x19\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\xdd\x6d\x87\xbc\x67\x73\x05\x1e\x52\x04\x7f\xd4\x44\x99\x6a\xfa\x81\x24\xb0\x48\x3f\xe1\x21\x87\x7f\x98\x55\x34\x48\x77\x2b\xd0\xe7\x75\x1f\xc6\x55\xe9\xcc\x2d\x29\x83\x02\x11\x01\x5d\x31\x0f\x19\x14\x74\xca\x6a\xdc\x04\x77\xa1\x87\xc0\x3b\x8f\xe2\x52"[..]); ctx.update(b"\x22\x49\xd6\x98\xc4\xd8\x07\xa8\xe7\xb4\xde\x21\xc4\x85\x73\x89\x59\xa0\xd6\x7e\x5d\x2c\xa6\xf7\x79\x83\xdf\xcc\xb5\xdb\xf4\x79\x31\x26\x1e\x1f\x15\x37\xf3\xcb\xca\x25\x3a\xfb\x6b\xf4\xfe\x5e\x76\x72\xe1\xdc\xc8\x60\xb3\xd6\xc8\xd2\x43\xaf\xe2\xd9\x75\x8b\x37\x5e\x95\x56\x92"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6a\xf4\x45\x63\xfc\x46\x8d\x51\x18\x2f\x6c\x3b\xe5\x8d\x45\x93\x2a\xf1\xd9\x85\xc6\xf2\x83\x97\x6c\x91\xa9\xff\x42\x1f\x38\x3f\xe2\x1d\xc7\x32\x2f\x39\x7c\xce\xad\x58\x3e\x26\xb3\xe3\xfd\xa0\x67\x97\x6a\x7f\x34\x66\x5d\xf2\x5a\x2c\xed\x7b\x4b\x09\xcd\xec"[..]); ctx.update(b"\x32\xa9\xc1\x70\x33\x65\x8c\x54\xf2\x2c\x71\x35\xdd\xfc\x87\x9d\xe9\x4d\x79\x59\x3e\xf2\xdc\x7d\x30\x41\xbf\xa8\x72\x73\x83\x89\x86\x4e\xed\xa2\x78\x01\x79\x4c\xcc\x4f\xf1\xfc\xb5\xef\x3f\xc4\x88\x33\x80\x1d\x6f\xe9\x59\xe3\x62\x7f\x8e\xa1\x53\x6a\xd0\x0f\xa9\xc7\xd7\xd9\xf0\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6a\x47\x69\x9d\xd3\xad\xa2\xf1\x1b\xc4\xea\x42\x07\x2b\x06\xcc\x20\x85\x7b\xf1\x64\x49\x7d\xf1\x28\x54\x00\xc2\x50\xf5\x84\x8b\x6f\x71\x95\x7d\xbd\xc8\x45\xf5\xda\xea\xb9\x13\x03\x66\x61\xf6\x93\x87\x89\x3f\xc2\xd6\x1c\x25\xfa\x59\xb9\xd8\x5b\x19\xf4\x01"[..]); ctx.update(b"\x3d\x65\xf6\x9a\x59\x0a\x5b\xaa\xab\xcd\x27\x4f\xe3\xef\x9e\x88\x92\x0f\xfc\x7a\xdf\x05\xc1\x6d\x7b\x0f\x4d\x18\xd7\x2b\xac\x1e\x94\xc3\xb3\xd8\x3b\x8f\x4c\x55\x2e\xb8\x0e\x9f\xde\x39\x11\x40\x3f\x8b\x00\x05\x79\x81\x6f\x02\xe1\x71\x6f\xd6\x27\x94\x60\x31\xd0\xaf\x07\x93\xe7\xf3\xe1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xff\xb2\xd9\x45\x09\x43\xc2\x4b\x59\x33\xc2\x48\x12\x45\x9b\x75\xd3\xd9\xf3\x80\x34\x4c\x9b\xc0\x6f\xa3\xe1\x7e\xe4\x48\xec\xa2\xf9\x8f\xf7\x9f\x7e\x22\x35\xcc\xd9\xf9\xa8\x17\x6f\x68\xa2\x25\x4b\xbc\x9b\x83\x4d\x6a\xc8\xd2\xbf\xdb\xc1\x59\x7c\x43\x2c\x9f"[..]); ctx.update(b"\x76\xff\x8b\x20\xa1\x8c\xf1\x04\xf6\xcd\xb6\x5e\x2b\xa8\xf6\x6e\xcf\x84\x4a\xf7\xe8\x5e\x8e\xf2\xda\x19\xe8\x84\x8a\x16\x05\x2e\xc4\x05\xa6\x44\xda\xfb\x5c\xa0\x8e\xc4\x8f\x97\x32\x7a\xc5\x2c\x0e\x56\x21\x84\x02\xc7\x2a\x9a\x6d\xc1\xcf\x34\x4d\x58\xa7\x16\xa7\x8d\x7d\x75\x29\x68\x0b\xae"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\x85\x81\x44\xc6\xd7\x09\xdd\x06\x89\xa5\x26\xa5\x48\xa4\x3f\x17\x49\x49\x50\xba\x2a\xc2\x05\x44\x79\x9e\x8e\xa2\x72\x01\xd7\x8b\xce\x5b\x92\x1e\x29\xa7\xb4\x02\x92\x78\xe6\x83\x41\xef\x2a\x0c\xa4\xba\x38\x94\x56\x6b\x3c\x8f\x89\x50\xe3\xe5\x45\xa6\x89"[..]); ctx.update(b"\xca\x88\xdd\xdf\xc8\x76\xa1\x2f\x45\xf1\x95\x62\xbc\x9c\xa2\x50\xf4\x32\x67\xab\x25\x1a\x7f\x34\x5c\x3c\x02\x2e\x20\x14\x4e\x13\x56\x04\x07\x87\x62\xef\x5c\x8a\x8f\x03\x8c\xf1\xb1\xd6\xa9\x17\x09\xb5\x9d\xd0\x68\x39\x6a\x9e\x97\x1a\xb6\x28\xf7\x48\x86\xe7\x65\x38\x4a\x23\x60\x7c\x1a\x1e\x6e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4f\x3d\x9e\xee\xf3\x49\xca\x51\xa7\xe4\x19\xaf\x16\x86\xf4\x27\x95\xab\xde\x58\xa8\x53\x35\xce\x68\xd4\x96\xe8\x1e\x44\x36\xa8\x0a\x61\xdc\x14\x3a\x43\x00\x00\x8c\x23\xa3\xe7\x1f\x4b\xa9\x87\x43\x19\x5a\x36\x94\xa8\xd0\x2f\xee\x11\xbd\x31\x45\x69\xab\xc0"[..]); ctx.update(b"\x0a\x78\xb1\x6b\x40\x26\xf7\xec\x06\x3d\xb4\xe7\xb7\x7c\x42\xa2\x98\xe5\x24\xe2\x68\x09\x3c\x50\x38\x85\x3e\x21\x7d\xcd\x65\xf6\x64\x28\x65\x01\x65\xfc\xa0\x6a\x1b\x4c\x9c\xf1\x53\x7f\xb5\xd4\x63\x63\x0f\xf3\xbd\x71\xcf\x32\xc3\x53\x8b\x1f\xdd\xa3\xfe\xd5\xc9\xf6\x01\x20\x33\x19\xb7\xe1\x86\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x60\x95\xc3\xdf\x5b\x9d\xb7\xce\x52\x4d\x76\x12\x3f\x77\x42\x1c\xe8\x88\xb8\x6a\x47\x7a\xe8\xc6\xdb\x1d\x0b\xe8\xd3\x26\xd2\x2c\x85\x29\x15\xab\x03\xc0\xc8\x1a\x5b\x7a\xc7\x1e\x2c\x14\xe7\x4b\xda\x17\xa7\x8d\x2b\x10\x58\x5f\xa2\x14\xf6\x54\x6e\xb7\x10\xa0"[..]); ctx.update(b"\x20\xf1\x0e\xf9\xa0\xe6\x12\x86\x75\x34\x01\x71\xcd\x24\x8d\xf3\x0b\x58\x65\x57\x62\x0b\x61\x5c\xa3\x9a\x00\xdb\x53\x43\x15\xa9\x01\x2d\xbd\xbf\xd6\xa9\x94\x98\x6e\xb8\x29\xdb\xe6\xcd\xaf\x3a\x37\xd4\xf5\x9a\xc2\x72\x98\x74\x2c\x8f\x77\x7b\x6b\x12\x67\x7f\x21\xeb\x28\x91\x29\x57\x98\x68\x70\x5f\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\xea\xd3\xf8\x60\xea\xbb\xd3\x6c\x77\x0d\x66\xc7\x35\x6f\x81\x07\xac\xd1\x48\x5c\x7c\x94\x17\x8c\x2e\xaa\xbd\x50\x26\x6d\x76\x45\xd0\x09\x97\x25\x86\xef\x83\xed\x43\xed\x92\x88\x21\x37\xdf\x51\x17\xb8\x8f\x35\x23\x1b\x89\x4e\xc1\x74\x1a\xe7\x50\x11\x45"[..]); ctx.update(b"\x99\x5c\x8f\x74\x7e\xa4\x18\xf7\xd6\x3a\xba\x22\x60\xb3\x4a\xc3\xc7\xdc\xee\xbb\x78\x43\x8c\xa4\xb1\xf9\x82\xb7\xdb\x97\x98\xec\x1a\x7f\x32\x62\x22\x64\xcb\x02\x4c\x0d\x9e\x60\xe9\x55\xa6\xe1\xd6\x77\xc9\x23\x51\x88\x51\x99\x0a\x45\x9b\x76\x7d\x0f\x13\xcd\x80\x34\x60\xf6\x18\x70\xdb\x33\x91\xb4\x46\x93"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa0\x0a\x60\x1e\xde\xac\xa8\x30\x41\xdc\x45\x2d\x43\x8a\x8d\xe5\x49\x59\x4e\x25\xd8\x43\xc2\xcf\x60\xa0\xe0\x09\xfb\x92\xd8\x7a\xbe\x28\xa7\x26\x90\xab\x65\x7c\x8d\x35\xb4\x3c\xd0\x2d\x22\xec\x07\x55\xde\x22\x9d\x1f\x92\x2f\xa6\xca\x18\xa6\xd6\xc2\xaa\xae"[..]); ctx.update(b"\x0f\xeb\x23\xc7\xe4\xa1\x9b\xcb\xd7\x0b\xd3\x00\xd7\x6e\xc9\x04\x5d\x69\x6f\x8c\x96\x87\xf4\x9e\xc4\x15\x44\x00\xe2\x31\xd2\xf0\x86\x24\x95\x15\x0c\xf2\x50\xb6\xf1\x2f\x17\x2a\x7d\x13\x0f\x8f\xa5\xd1\x75\xbf\x2f\x25\xe2\x80\x17\x2c\xcd\xfb\x32\x79\x51\x70\x11\x65\x30\x27\x28\xa6\x19\xaa\x2f\x24\x26\x31\xc9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xee\xb6\xde\xe3\x0c\x11\x9f\xb1\xe1\xeb\x5c\x15\xff\x2b\x32\xd8\xb9\xc7\x46\x4a\x4e\x4c\xc6\x81\x5c\xd2\x51\xa6\xba\xe2\x9b\x49\x96\x1d\xd5\xc2\xfa\x9c\x44\xa9\xb1\x42\xca\x06\x2c\x70\x72\xcb\xf3\xdb\x04\x29\x9b\x76\x77\x89\x04\x01\x96\xbf\x0c\x06\xaa\x76"[..]); ctx.update(b"\xac\x59\xa1\x10\x62\x3f\x1a\x64\x66\x6f\x16\x0e\xd3\x29\x26\x67\x6c\xb5\xbe\x25\xdd\x9d\x96\x2f\x44\x19\x51\xb0\xef\xcb\x5d\x6a\x67\xac\x1a\x4e\xae\x47\x3e\x49\xc6\x25\x78\x60\x72\x88\x53\xff\x41\x5c\x5e\x8e\xc7\x6a\x8a\x46\x2e\xcf\xd3\x43\xee\xac\x22\xda\xd8\x20\x72\x2c\x59\x73\x32\xfb\xfd\x94\xeb\xbd\x32\xc6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\x5e\xa9\x42\xae\x0a\x47\xe7\x3b\x02\xb1\x44\x2e\x5b\x26\x08\x3d\xb7\x93\x07\xf6\x4d\xd3\x4a\x03\x9c\x47\x6f\xaf\x18\xd5\xc5\x14\xbb\x77\xa2\xc4\x12\xa6\x07\x4a\x7a\xfc\x32\x6e\xa6\x6c\x74\xe5\x70\x5f\xe2\xab\xba\xbf\x27\x43\x33\x32\x5a\x15\xb6\x1f\xd9"[..]); ctx.update(b"\x9e\x3e\x10\x77\xe1\x33\x3a\x1f\xb1\xaa\x63\x3c\xcf\x2f\x74\x65\x88\xad\x42\x64\x89\xea\x08\xdf\xf5\x51\x14\x38\xb5\xf4\xc0\xb1\x10\xd1\xa4\xd4\x7b\x54\x0a\x12\xb2\x1e\xa2\xaa\x07\x05\x78\xcc\xfa\x5c\x22\xfe\x0b\x74\x3e\xc0\xcc\x62\x1c\x6b\x3a\x03\xb7\x5f\x4d\x3e\xea\x5d\xce\x89\xe0\x32\x69\xaf\xcd\x96\x03\xd0\xdb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4b\x5c\x5d\xf8\x0c\x34\x4c\x12\x38\x8c\x72\x38\x56\xcd\x06\x96\x5b\x21\x90\xaf\x65\x24\x80\x47\x67\x47\xdc\x21\x95\xea\x37\x16\xf8\x7c\x17\x62\x35\x95\x83\xa5\xf3\x15\x22\xf8\x3f\x78\x33\xbe\xc3\x0f\x1f\x47\xd1\x45\x40\x41\x7d\xd4\x63\xf5\xd2\x58\xcd\x4a"[..]); ctx.update(b"\xe8\x81\xe3\x28\x4c\x79\xd8\xf5\x23\x7e\x69\x9e\x4f\xbc\xa8\x40\x90\xc6\x64\xbb\x53\x22\x9f\x58\xcb\x08\x42\xb0\x43\x67\x10\xc9\xb3\x29\xd9\x81\x91\xb8\xf0\x30\xe9\xc1\xdf\x89\xb0\x38\x58\xc1\x56\x9c\x6f\xf4\x9a\x7c\x07\xc4\xa2\x3a\x8a\x43\x4b\x0f\xde\x13\xbe\x4f\x94\xcb\x44\xee\x62\x9d\x5b\x44\xd3\x36\x09\x0d\x3d\xe6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\x7d\x80\x71\xc7\x87\x1e\xf9\x25\x6c\xff\x32\xaa\x63\xea\x03\x14\x04\xfa\x5e\xe4\xec\x09\xc5\x6a\xfd\xd5\xda\x91\x9b\x0c\xc8\x4a\x9d\x35\xd1\x42\xc4\x17\x71\x52\x03\x31\x60\x11\xcc\x62\x0c\xd6\x85\x5b\xb1\x17\x06\x3a\x5e\x52\x86\x7f\xac\xc6\x80\xd5\xf4"[..]); ctx.update(b"\xe5\x85\x21\x09\x89\x11\x50\x3d\xe8\x43\x11\x38\x7d\x37\x5c\x25\x92\x9e\x6e\x55\x07\x6e\xb6\x93\x4f\xd8\xf2\xb1\xbb\x7b\x96\x67\xfb\xd7\x6d\x5e\xe2\x04\x82\x87\x69\xa3\x41\xb1\xf7\x16\xda\x5b\xdf\xec\xe6\xc6\x2a\x9f\x4d\x4f\x98\x82\x67\xfc\xe1\xf5\x61\x55\x40\xdb\xe3\x75\x32\x4e\xef\x60\x7c\x91\x0d\x97\x6b\x45\xa5\xea\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\x7b\xa0\x56\xfa\x41\xf4\x3b\x8e\x19\x87\x07\x2a\x09\xe8\x28\xc7\x1c\x5f\xf6\xad\x4e\x37\xf9\xab\x6b\x89\xe2\xa0\x78\x93\x3d\xd2\x30\x52\xfa\x72\xc6\x61\x5b\x61\x39\x04\x25\x9e\x9f\xf9\xb5\x5e\xf7\xb9\x23\xb8\x9b\xc8\x75\x2f\x6b\xab\xdd\xd2\x56\xe1\x17"[..]); ctx.update(b"\x37\x96\xcf\x51\xb8\x72\x66\x52\xa4\x20\x47\x33\xb8\xfb\xb0\x47\xcf\x00\xfb\x91\xa9\x83\x7e\x22\xec\x22\xb1\xa2\x68\xf8\x8e\x2c\x9f\x13\x3e\x5f\x85\x27\xf1\xb1\x84\x83\x0e\x07\xc3\x45\x8c\x83\xa8\xca\x9f\x9d\x9c\x69\x98\x76\x0e\x61\x06\x68\xba\x0f\x22\xe2\x2b\x65\x6a\x73\x7e\x97\x8b\x24\x6a\x17\x84\x0b\x7d\xc4\x09\x1d\xa8\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\xa4\x66\x19\x9a\xcb\xcb\xc9\x3f\x2c\xe0\x42\x96\x85\x08\xc0\x46\x90\x16\x31\xe3\x11\x8a\x2d\x0b\xf3\x9a\x9b\x42\xb4\x19\x7a\x37\x9b\x3a\x86\xcd\xec\xa9\xdf\x2d\xe1\xa3\xeb\x71\xb7\x9a\xe9\xbf\x2d\x65\x75\xea\xdf\x18\x78\x02\x9c\x40\x93\x13\x3f\x54\xd3"[..]); ctx.update(b"\x9a\xf6\x08\xd0\x31\xcc\xf3\x09\xd7\x27\x3c\x60\x7a\x8e\x5e\x36\x84\x0d\x44\x9b\x55\xdb\x5b\x13\xf0\x3a\xeb\x9a\xf4\x9f\xa7\xe7\xcf\x13\x83\xee\x2e\xd9\xc5\xa8\xb7\x51\x5f\x16\xfb\x1c\x7c\x84\xa6\x81\x59\x0b\xf9\x0f\x56\x59\x7b\x84\x4d\xb5\xeb\xee\x22\x3d\x78\x10\x9b\x72\x35\x07\x72\xf7\xc7\x2e\xa9\x96\x60\x3e\x1e\x84\xf2\xba\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf0\xde\xd9\x49\x5b\x4f\x64\xca\xc5\x85\xbe\x8a\x73\x7c\xfa\x14\x24\x7a\x4a\x81\xcd\xf7\xf0\x1e\xbc\xb1\x34\xac\xe7\x1f\x5a\x83\xdf\x2c\xd7\x2e\x77\x73\xfe\xa1\xe8\x2b\xea\xe1\x7e\x13\x85\x73\x72\x79\x2c\x82\x31\xe2\xab\x9f\xbe\xb6\x33\xe3\x99\xd5\xf0\xae"[..]); ctx.update(b"\xd0\xdf\x1b\xdf\x1d\xf6\x20\x32\x41\x72\x2f\xb9\xc9\xc1\xcf\x74\x05\x01\x74\x97\xae\x15\x45\x38\xcc\xf9\x22\x4a\xd7\x52\xe6\xce\x1d\x4a\xe9\x48\x63\x9a\xca\x70\xcf\xe8\x6b\x2b\x06\x54\x3c\xb9\x91\x4e\xbd\x30\x85\xaa\x3e\x29\x63\xf6\xe9\xb9\x3d\x0b\x03\xa3\x1a\xe2\x6f\xcb\x9c\xa9\x74\xee\xe0\x16\xc0\x91\xa6\xfc\xac\x37\xb2\x1c\xc1\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc2\xda\x3e\xa3\xc8\xa3\xfd\x88\xa5\xbc\x5d\xea\x2b\xc0\x76\xf8\x61\xab\xed\xef\xae\x5a\x5f\xbd\x94\x1d\xdf\xd1\xc4\x1c\xc3\x31\x2e\xb2\xdc\x82\x6c\x2c\x0f\x65\x41\x4f\xe7\x2e\xbe\xe4\x47\xd2\xf9\xb1\xa6\xa5\x63\x02\x66\x0d\x1f\x86\x63\x2e\xe8\x0a\x17\x5f"[..]); ctx.update(b"\x8c\xbc\x94\x80\x55\x3a\xce\xf7\xbc\xdb\xa9\x71\x6e\xa8\xd6\x6b\x41\x31\x78\x09\x17\xde\x2b\x0b\x04\x80\x45\xfc\xb3\x2b\x5c\xac\x05\x48\x08\xe1\xfc\xe6\xe9\x4a\xd8\x51\xec\xb4\x7f\xe6\xcb\x80\x22\x25\xd3\x55\x1e\x08\xea\x12\x20\x93\xd0\x07\x8d\xad\xa5\x64\x21\x2e\xac\xf1\xd6\x39\x4e\x00\x07\xcc\x62\xa1\xd5\x95\xab\x14\xca\x08\xa2\x84\xbc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x63\xb3\x9b\x88\xce\xb8\x48\x18\x8b\x37\x31\x6e\x04\x56\x0e\x75\xa5\x34\x0a\xb8\xd4\x17\x93\x2d\x23\x1c\x99\x7e\x89\x2b\x41\xda\xa6\x9d\x9f\xe3\xe9\xa1\x4d\xd1\x9c\xcf\xbb\xfa\x01\x48\x8c\x20\x8e\x7b\x94\x6c\xfa\xf1\x6c\xa2\xb1\xbf\x7c\x8d\x8d\xa4\xe6\xb2"[..]); ctx.update(b"\x38\xf1\x84\x44\x8f\x3c\xf8\x2a\x54\xca\xfc\x55\x6a\xff\x33\x6f\x23\xf9\x14\x9e\x61\x21\x34\xb3\xfc\x00\xc8\xa5\x64\x55\x65\x3d\x88\x64\x0b\x12\xf6\x90\x62\xb8\x43\x2c\x43\x35\xad\x8f\x7a\xb4\xff\x66\xcb\x7e\xb5\x4f\x33\x25\x61\xa3\x6f\x02\x4d\x92\xc3\xe2\x62\x76\xf4\xfd\x48\x61\x96\x28\xcf\xf8\x8e\x4b\x8e\x85\xcf\x14\xca\x47\x67\xed\x99\x0d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9a\x49\x26\x5f\xc6\x41\xc5\x9f\x1a\x91\x87\x2c\xda\xe4\x90\xd3\xda\x73\xc0\xc6\x0f\xd5\x96\x48\xe1\xd1\x7d\xba\x1a\x64\x7a\x5b\x95\x62\x93\x92\xbb\x4f\xf5\x16\x3d\x1a\x3c\xb4\x54\x27\xc1\x43\x7a\x3b\x2e\x1d\x9f\x03\x0c\x0a\x8b\xcc\x5e\xd2\x2d\xa9\xe2\xed"[..]); ctx.update(b"\x70\x90\x06\x18\xb1\xe9\xe9\xdb\x62\x29\x6f\xb6\xc6\x59\x0c\x9f\x10\xb0\xa6\x32\x76\x5c\x48\x9c\x88\x7f\x1a\xb7\xc0\x77\x91\x76\x5a\x62\xe3\x84\x65\xe1\xbe\x28\x1b\x1d\x39\x6c\x6e\x08\x0b\x7e\xe3\xe6\xfa\x56\xa3\x0b\x97\x99\xd0\xe6\x29\xbe\x15\x3e\xe7\x6f\x81\xbc\x6a\x32\x95\xaa\x61\x48\x9b\xfa\x87\xd5\x3a\x8a\xd2\x42\x48\xa6\xed\xe0\xdf\xcf\xe9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1c\x8c\x33\x57\xff\x1f\x8d\x6a\xc4\xde\xfb\x3a\xf4\x62\xa7\x3e\x09\x15\x9e\x3a\x20\xc6\x50\x6e\xdd\x8c\xd3\x05\x2d\xf9\x41\xc8\x1f\x68\xc5\xfb\xb8\x93\x91\x26\x19\xe2\x86\x40\x97\x7f\xe8\xea\xae\x8e\x9d\x5d\x4e\x7d\x5f\x13\x25\x52\xce\xfa\xb4\x54\x0b\xac"[..]); ctx.update(b"\x4e\x6d\xda\xe0\xd8\x05\xaf\xcd\x10\xa0\x55\xbc\xe5\x84\xc8\x48\xd0\x50\xfb\x29\xfe\x8f\x1c\x64\xb1\x8e\x1a\xbf\xe4\x6b\x65\x78\x2e\x6f\xf5\x36\xe8\x9d\x8d\x40\x92\x8b\x41\xed\x73\x71\x36\x5c\x80\x80\xa9\x64\x7f\x75\x32\xce\x6c\x6d\x4a\xc2\x1c\xfb\x0c\x80\x20\x78\x38\x51\xec\x9a\x7d\xbc\x39\x48\xf8\xfc\xa7\xad\xf8\xb2\xa7\x8c\x04\xd8\x98\xd3\x1f\xf6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x2f\x99\x6c\x77\x9b\x91\xb3\xc4\x63\x93\x11\xf5\x4f\xab\xbd\xde\x7e\x22\x12\xb5\x3d\xba\xe4\x82\x8c\x83\x99\x58\x8f\xc0\x0d\x3b\x2a\xe6\x09\x18\xaa\xaf\x6b\xb4\x8b\xc7\x57\xe5\x2b\x2b\xce\xa8\x4f\x5d\x15\xbf\x4e\xc2\x5d\x55\x19\xfb\x54\xf6\xf2\x6e\x1b"[..]); ctx.update(b"\x69\x68\x25\xf6\xd6\xea\x81\x73\xec\x47\xd0\x95\x9a\x40\x1c\x4d\xdf\x69\xf8\xf0\x8d\xdd\x67\x8a\x4d\x2f\xf9\x76\xe3\xa4\x37\x2b\xb3\x9f\x41\x59\x84\x5c\xb6\x35\x85\xe1\xd4\x10\x8d\x32\xe1\x2f\xa7\xc5\xc9\xd7\xce\x35\x08\xa7\xf5\x3a\xca\x2b\x4b\xd9\x51\xad\xbc\xd8\x98\x4e\xbb\x75\x36\x56\x3f\x58\x84\xc9\x0b\xc5\x02\x3b\x33\x16\xf7\xe4\xdc\x69\x58\xf7\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\xe9\x40\xca\x96\xb0\x00\x11\x37\x5d\xaa\x95\xc6\x5f\x66\x90\x7d\x69\xb3\xeb\x3b\x8d\x77\x9e\x6f\xc9\x71\xaf\xcc\x05\xe9\x90\xbc\x4c\x54\x1f\x43\x45\x90\xf6\xb1\x8b\x68\xc0\x80\xd0\xf2\x44\x75\xa3\xe7\x64\xe9\xcb\x85\x34\x33\x01\x31\x4e\xe2\xfb\x66\x1e"[..]); ctx.update(b"\x79\xec\xdf\xd4\x7a\x29\xa7\x42\x20\xa5\x28\x19\xce\x45\x89\x74\x7f\x2b\x30\xb3\x64\xd0\x85\x2c\xce\x52\xf9\x1e\x4f\x0f\x48\xe6\x1c\x72\xfa\x76\xb6\x0d\x30\x02\xca\xe8\x9d\xfc\x55\x19\xd3\x43\x0b\x95\xc0\x98\xfa\x46\x78\x51\x6b\x5e\x35\x51\x09\xea\x9b\x37\x45\xaa\x41\xd6\xf8\x20\x6e\xe6\x4a\xe7\x20\xf8\xd4\x46\x53\xb0\x01\x05\x7f\x2e\xba\x7f\x63\xcd\x42\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xba\x3d\x0f\xe0\x44\x70\xf4\xcf\x8f\x08\xc4\x6d\x82\xae\x3a\xfd\x1c\xae\xa8\xc1\x3b\xeb\xbe\x02\x6b\x5c\x17\x77\xaa\x59\x86\x0a\xf2\xe3\xda\x77\x51\x84\x4e\x0b\xe2\x40\x72\xaf\x48\xbc\x8a\x6f\xd7\x76\x78\xaa\xee\x04\xe0\x8f\x63\x39\x5f\x5c\x8a\x46\x57\x63"[..]); ctx.update(b"\x92\x63\xfe\x75\xe8\xf6\xc7\xd5\xd6\x42\xe2\xca\x6a\x6e\xea\x4f\x44\xe9\xa0\xf2\x49\x51\x3e\xd7\x9c\x94\x09\xff\xca\x55\x26\xca\x44\x91\xae\xbb\x13\x82\x05\x7c\xc7\xc3\x67\x22\xb0\xb6\xc3\xb1\x51\x23\xcd\xe3\x12\x21\x4f\x25\x35\x3a\xbf\xe3\x0b\xca\x17\x05\x68\xa8\xe1\xba\x54\x08\x91\x74\x03\xa0\x18\x34\x08\x0a\xb6\x07\xc5\x6a\x10\xd0\x26\x50\x82\x49\x8f\xe0\xb6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x77\x36\xd7\xa7\xfc\x1e\xb0\x58\x57\xce\x7d\x88\xab\xff\xfa\x87\xf5\x8c\x67\x0b\xfd\xfc\x0a\x80\x31\xf6\x0f\x37\x9e\x4b\x6a\xd9\x4a\xc8\xf1\x3f\xfe\x28\xc6\x97\x80\x9b\x5c\xfa\xc7\xf1\x3b\xe0\x1e\x74\x96\xa8\x52\x37\xc4\x02\x55\x39\x05\x1f\xb2\xe3\x2f\xb6"[..]); ctx.update(b"\x78\xc1\x7b\xfe\x0e\x02\xeb\x52\x6d\x1a\x44\xa1\xac\x12\x7b\xe0\x82\x18\x14\x52\xb6\x25\x39\x4b\xd6\xdc\x09\x3a\x2c\xb4\x32\xe6\xee\x59\xc2\xf8\xb5\x50\x3a\xba\x30\xda\xe4\x1e\x1a\x1c\x67\x02\x69\x7c\x99\xb2\xc9\x4e\x94\xaf\x48\xb0\x0c\xaf\x53\xb2\xe0\xe4\xe1\xbb\xee\x81\xee\x28\x2c\x7b\x2b\x35\xf5\x8c\xf4\x21\xa0\x7e\x82\x8d\x57\xa6\x62\x26\x26\xaf\x25\x83\x53\x99"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb5\x6b\x6e\x34\x31\x66\x32\x85\x23\xe0\xd1\x69\x3e\x51\x74\xda\x64\x3a\xe8\x3c\xf6\x9c\x85\xa7\xb3\xc3\xbe\xe2\x47\xb7\x7b\x84\x70\x20\x69\xd9\xe6\xb4\xca\xb0\x3b\xf1\x7f\xe6\x12\x00\x9b\xf4\x23\x96\x83\xca\x78\xca\x7e\x87\x6a\xca\x7d\x07\x60\x3b\xa7\x14"[..]); ctx.update(b"\x29\x8b\xb3\x04\xa9\x20\xf9\x60\x44\x7d\x8f\xd3\x8b\x06\x1b\xf8\xfe\x4a\xc1\xf8\x71\xd8\xa0\xfe\xb4\x54\x9f\xeb\x72\xca\x69\x4a\x5a\x41\xb6\x86\x7d\x94\xcd\x5a\xf7\x7d\x46\x8a\xd2\xf3\x15\xd1\x27\xb6\xc4\x1a\x86\x28\x00\xf3\x98\x5e\x57\x3e\x03\x77\x40\x29\x8e\x2c\x5c\x61\x86\xa9\xfb\x83\x60\x9b\xe2\xd4\x9f\x8b\x4c\x31\xf9\x6a\x2e\x49\xb5\x6d\xbf\x09\x57\x1b\x38\x58\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x34\xe3\x87\x86\x27\x90\x4f\xfb\xbb\xd8\x52\x66\xcc\x97\x3c\x34\xf9\x31\xe3\xca\xb5\xd4\xc3\x1f\x84\x1c\x55\x3d\xd6\x9f\x84\x83\x82\x06\x06\x7d\xf4\xf9\xf3\xb9\x10\x20\x01\xbe\x19\x26\x71\x51\xe6\x73\xf5\xc2\xd4\xc2\xf8\x43\x8a\x69\x99\xa0\xa3\x25\x48\x7d"[..]); ctx.update(b"\xa3\xcf\x71\x4b\xf1\x12\x64\x7e\x72\x7e\x8c\xfd\x46\x49\x9a\xcd\x35\xa6\x40\xdd\x39\x3d\xdd\x26\x3c\xd8\x5c\xf6\x22\x5f\x59\x89\x0a\x06\x86\xda\xd1\xc5\x4e\xb8\xd8\x09\xb8\x1c\x08\xa9\x8d\xba\x13\x1b\xbd\xd6\xfc\xe8\xff\x59\xd9\x5d\xb8\x24\xd8\x83\x1e\xa4\x80\x52\x9d\xa7\x39\x22\x7a\x6e\x0f\x62\xb6\x03\xb3\x8c\x35\xcd\xc2\x58\x1f\x61\x4a\x31\x87\x9b\x8b\xe5\x4a\xee\xfa\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6f\x23\x0a\xe4\x90\x3d\xdb\xef\x0b\xa3\x84\xc2\xe3\x50\x6e\xab\x31\x8b\xfd\x1a\x46\xea\x76\x09\x9f\x65\xa3\xfd\x52\x9c\x91\xbc\x28\x65\xb9\xfd\x94\x3e\x34\x6d\xe6\x46\x26\xb8\x52\x9f\x9d\xb1\x37\x7b\xf2\xc5\xe0\x12\x9c\x66\xb5\x0c\x6a\x5c\xfb\x36\x4b\x3a"[..]); ctx.update(b"\x0a\x42\x7a\xe5\x5e\xf3\xa7\xe6\x04\x4a\x08\xcf\x61\x28\xcb\xaa\xab\xfd\x77\x6c\x4e\x93\x74\x70\x8f\x2e\xce\x24\x6f\xd7\x36\x03\xd2\xf5\x4a\xc3\xe0\x1d\x16\xcf\xac\x2b\xda\xf7\x13\x92\x0d\x66\xe8\xf0\xa3\xd5\x4e\xe6\x8c\xff\x64\x26\x7d\x55\x28\xcd\xf2\xf2\x95\xf4\x74\xd1\x0f\x81\x17\x3e\x01\x43\x48\x8a\xc5\x3f\xc5\x03\xc4\x44\xed\x23\xde\xc6\x3a\x08\x0c\xe9\x0c\x24\x43\xdb\xa8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\xbb\xe5\xd0\xcf\x13\xdd\xf4\x1c\x14\x36\x74\x8a\x5d\x1c\xca\xe2\x94\x85\x47\xb4\x52\xc2\x17\x1c\x7c\x8e\x8b\x66\xc6\xae\x4d\xe3\xc0\xe8\xb2\x96\x2b\xcb\x60\xd3\xde\x36\x08\x47\x9f\x80\xe4\x55\xc9\x02\x4d\x97\x16\xc3\x8f\x6f\x12\x06\x86\x1a\xb1\xea\xac"[..]); ctx.update(b"\x2c\xbb\xb8\x75\x11\xf4\x94\x8e\xfe\xc3\xa6\x1b\x51\x1e\xde\xdb\x1d\xda\x8b\x6e\xcf\xc0\x21\x0c\x11\xe4\x3a\x77\xee\x32\xdc\x2e\x37\x4a\xfa\xe4\x26\x8e\x3d\x30\x42\x78\x04\x86\x82\x32\xa9\x66\xb5\x60\x06\xd3\x21\x40\x37\x07\x6b\xf6\xa2\x65\xb7\x21\x35\xaf\x0f\xb2\xef\x79\x09\xfe\xa2\xde\xa4\x12\xf7\x71\x74\x46\xb2\x76\xff\x15\x37\x53\x66\x2b\x4d\x41\x48\xc0\x23\x47\xe3\x25\x91\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\x89\x7b\x87\xa8\xa1\xcf\x83\x5c\x43\x4f\x6d\x39\x1c\x9e\x52\x27\x35\x1a\xf9\xd3\xe2\x0a\x33\x89\xc7\x96\xb9\x8b\x42\x42\x81\xa5\x90\x68\xd9\xc8\xd5\x67\xec\x2b\xeb\xc4\x35\xb0\x12\x6b\x05\x9e\x2d\x86\x39\x4a\x98\x54\xd6\x61\x1e\x1c\x92\x2f\x38\x54\x96"[..]); ctx.update(b"\x2b\x23\x32\x4c\x99\x92\xf6\x0a\x7f\xc0\x10\x15\x9a\x03\xcb\x9a\x2b\x29\x0d\xf4\xfa\x6a\x82\x35\x9b\x9a\xf6\x02\xf0\xa4\x03\xa5\xef\x33\xed\x5d\xa5\xb2\xca\xf8\x7b\x77\xe6\xa4\xb9\x3b\x65\x03\x48\xce\x2a\x7d\xbc\x08\xf8\xda\x92\x03\xd7\x10\xb5\x87\xba\x59\x47\xc6\x5e\x89\x9f\x4a\x75\x9f\x8e\x2b\x04\x9a\xe7\x85\x0a\x8e\x3e\x29\x62\xf6\xef\x93\xea\x4c\x63\x1d\xe5\xd7\x8e\x72\x9e\xc5\xbc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\xee\xa0\xb3\x73\xed\x09\xcf\x1c\x91\x9c\x51\xd8\x6d\x64\x2c\x91\x25\xe0\xee\x81\x69\x8d\xc4\xcb\xad\xf0\x2e\x9e\x69\x25\xef\xb5\x62\xfd\x9b\x87\x30\x1a\x63\x77\xca\x19\x2b\xe7\x9c\x41\x18\xde\xab\xc4\x50\xb5\x46\x39\x00\x0c\x2e\x31\x29\x45\x45\x1f\xb5"[..]); ctx.update(b"\x40\x22\xf9\x30\xc7\x03\x3b\x00\xd9\x86\xc6\x5f\xf6\xbb\xbd\xf9\xeb\xd0\xe5\x8c\x52\x84\x4f\xf6\x58\xdf\x38\x93\xc3\x20\x2d\xc5\x33\xf8\x73\xd4\xa7\xf5\xa5\xf9\x44\x41\x9f\xb5\x52\x8c\x9b\x67\x88\x47\x9a\x1e\x89\x13\x06\xac\xae\x79\x95\xfc\x06\xdb\x70\xa5\x9b\xaa\x95\xbe\xf7\xda\x79\xf5\xe7\x93\xf2\xdb\x7f\x2a\x55\x82\x5e\x4f\xdb\x4a\x34\x88\x4a\xf8\x81\xde\xd1\x08\x9f\xd5\x33\x45\x02\xa2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x03\x58\x77\x5b\xbb\x73\x3c\xcc\x49\xe7\x8f\x54\x4a\xee\xe5\x12\x37\x0d\x48\x0d\x0e\x13\xc7\xe8\xd5\xc4\x44\xc4\x23\xe5\x92\x14\x6b\x45\xfd\xb9\x1a\x1b\x69\x4d\x35\xe3\x6b\x60\xe4\xbc\x83\x97\xfc\xa8\xbb\x97\x90\xe6\x19\x33\x97\x78\xb9\xcd\x1a\xbe\x3f\xe9"[..]); ctx.update(b"\x1c\xb7\x7b\xa4\x3c\xe7\x7e\x23\x6b\x9f\xc9\x25\xf5\x89\xb1\xc0\x70\x78\x0a\x84\xf9\x9e\x8f\x50\xc1\xff\x84\x6a\xc9\x25\x99\xcf\xe9\x16\x12\xc8\x17\x83\x25\xbe\xe6\x42\xa3\x4f\x4d\xff\xdb\xa2\xaa\x2e\xbc\xf7\x06\x43\x39\x82\x9b\x26\xf2\x79\x93\xe1\x10\x6c\x13\x9c\x70\xd5\x78\xcc\x05\xf0\xe1\xa7\x77\xcc\xed\xdb\x10\xa2\xc6\x7f\xd9\x67\x5e\x4a\x00\x9d\xf8\x03\x7d\x6e\xeb\x38\xf5\xfb\xa2\x33\xdf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x65\x02\xf4\x65\x51\xa3\xfa\xb3\xa9\x64\x28\xfb\x97\x80\x1d\x7a\x4a\xa2\xf1\x7f\xef\x66\x03\x23\x8d\xf8\x4e\x17\xc7\x43\x09\xed\x3d\x94\x89\xc8\xb1\x6a\x93\x84\xee\x63\x4a\x3f\x86\xd0\xb3\xba\x9a\x4d\xbc\x9c\x51\xec\x8b\xd4\xbf\x8d\x61\xde\x6d\x3d\x87\xd7"[..]); ctx.update(b"\x52\x16\x7d\xe2\xd6\xc5\x02\xd9\x9f\xa1\x0c\x27\xb2\xab\x62\x03\xbd\xeb\xc2\xca\xfb\xbf\xde\xf1\x58\x72\xa4\x3d\xd6\x10\xc2\x36\x2f\x79\x6a\xd9\xbc\xb5\x52\x8d\x95\x87\x00\x58\xfa\x45\x44\x53\xf1\xe6\x06\x5b\x31\x5d\x41\x0a\x3f\x26\x50\xe5\xd7\x1e\x69\xd7\x8d\x97\x67\xdf\xb4\xac\xcc\x05\x7f\xd2\x06\x92\x66\xb0\xf1\x80\xcb\x31\x9e\x30\xde\xd7\x53\x5b\xbe\x52\xd2\x4b\xe1\x51\xde\x4b\xb5\x98\xfc\x5c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x25\xcb\x3e\xd3\x98\x3a\x91\xb4\xcf\x37\xa6\x51\x93\x91\x6c\x5e\x3e\x21\x1b\x63\xe9\x43\xe2\xf7\xb5\x0a\x85\xd3\x49\xa4\x63\xb9\x41\xaa\xd3\x3e\xff\x16\x56\x1b\xdf\xdc\x92\xfd\xa0\x6a\x4e\x1d\x94\xb1\x62\xde\x48\xf0\x6d\x3c\x62\x69\x40\xb3\x10\x20\x92\x5f"[..]); ctx.update(b"\xce\xde\x66\x97\xd4\x22\xdd\xaa\x78\xe2\xd5\x5a\xe0\x80\xb8\xb9\xe9\x35\x6c\x69\xbc\x55\x82\x01\xa2\xd4\xb0\xb3\x19\x0a\x81\x2c\x27\xb3\x4b\xbc\xee\x3a\x62\xb7\x81\x37\x8b\x1b\xf6\x36\xb3\x72\xbc\xba\xe1\xfa\x2f\x81\x6a\x04\x6a\x0a\x64\x9a\x5c\x55\x5c\x64\x1f\xea\x4c\xcd\x84\x1c\xc7\x61\xf3\x8f\x77\x79\x72\xf8\xc9\x1b\x03\x24\xe7\x1c\x33\x3c\xe7\x87\xf0\x47\x41\x43\x9b\xf0\x87\xef\x5e\x89\x50\x11\xc0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0b\xe4\x2a\x25\xd7\x7a\xc6\xad\x99\x5c\x6b\xe4\x8e\x78\x33\x80\xba\xd2\x5a\x61\x73\x2f\x87\xce\xfb\x0c\xce\x1a\x76\x9c\xd6\x90\x81\xf4\x94\xa1\xa1\x2d\x65\x76\x64\xef\x2b\x4d\x9c\x41\xf2\xee\x83\xf6\xe9\xa8\x43\x27\xd8\x75\x6a\xf9\xf9\x85\x59\x5e\x7d\x3b"[..]); ctx.update(b"\x56\xd1\x8d\x3e\x2e\x49\x64\x40\xd0\xa5\xc9\xe1\xbc\xb4\x64\xfa\xf5\xbc\x70\xa8\xb5\x62\x12\x4f\x5f\xc9\xe9\xde\xb5\xfe\xe6\x54\x4b\x94\x5e\x83\x3b\x8b\x5d\x13\x1b\x77\x3e\xcb\x2c\xdd\x78\x0c\xd4\xe1\xbb\x9e\x4f\x1e\x3c\xb0\xa1\xd6\x4d\x19\xcf\x4b\x30\xe4\x4e\x6c\x2d\x0c\xbc\xb4\xe2\x84\xce\x50\xdb\x7a\x8a\x80\x62\xdd\xb6\x3f\x98\x1d\x90\x26\xc5\x32\xbf\x8e\xed\xdf\x8a\xf5\xa4\x38\x48\xa3\x22\x62\x17\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x98\x2d\xc6\x1c\x91\xa9\x37\x70\x58\x2e\xee\x80\x25\xaa\x55\xda\x8e\x9e\xdb\x96\x6b\xf5\xcf\x70\xd4\xa6\x53\x4c\x0d\x53\xa2\x78\x9a\x8c\x4f\xb6\x5b\x7f\xed\x47\x8c\xda\x02\xed\x1e\x0d\x19\x8d\x85\xc5\xc7\x35\xb2\x41\x7c\x5f\xab\x5d\x34\xe9\x69\xfc\x8e\x7e"[..]); ctx.update(b"\x25\xa7\x32\x0d\xfa\xec\x5a\xf6\x5d\xa4\xd0\xf8\x68\x8e\x29\xe8\xe9\x55\x32\xec\xc1\x66\x79\xea\x8a\xff\x0f\x40\x7d\x89\x8d\xb6\x92\x28\x55\xb0\xe8\x90\x1a\xa9\x68\x1a\xa3\xdc\xa6\x17\xcb\x44\x07\x64\xcd\xc7\x29\x3f\xbe\xaf\x7f\x58\x5b\x59\x3c\x2b\x05\x31\x73\x8e\x0a\xde\x7c\x86\x26\xb9\x99\x5f\x4a\x84\xd9\xfc\x9b\x59\x3d\x6b\xbe\xe0\x1a\xbc\x53\xc5\xbe\x14\xbf\x69\x56\xfd\x2f\xd8\x10\x00\xda\xfc\x7c\x76\x86"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x9c\x92\x8c\x3d\x55\x10\x92\x5b\xfe\x98\x65\x90\x25\xb0\xed\x7c\x01\xac\xd4\xd5\x9a\x9b\xf1\xc5\x48\x63\xa0\x88\x09\x17\x71\xdc\x9d\x40\x7b\xdb\xf8\x3b\x0f\x44\xb0\x90\x2e\x10\x34\x9b\xa7\x9c\x84\xd0\x98\x1d\x5e\x8c\x4f\x5c\x73\x3a\x11\x7f\xed\x07\x90"[..]); ctx.update(b"\x3d\x71\x77\xb2\x8f\xfd\x91\x6e\x7e\x06\x34\x89\x58\x33\xba\x0b\xd9\xe0\x65\x3d\xf2\xcc\x42\x02\xc8\x11\x53\x6a\x00\x5a\xec\x85\x3a\x50\x5e\x75\xdb\x55\xd3\xc7\x10\x75\x79\x04\x10\x99\xe3\x82\xa1\xfe\xac\x80\xdd\xe6\x5d\x72\x36\x8e\x90\x9a\xb8\x5f\x56\xd8\x8e\x68\xd7\xc3\xc8\x0c\x38\xf8\x5b\xf8\xc2\xb3\x69\x59\x40\x9c\xc3\x4b\xa8\xe3\xad\x94\xfe\x8e\xe1\x92\x76\x12\xd6\x72\xd9\x21\x41\xa3\x29\xc4\xdd\x8a\x88\xa9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\xa3\x31\x50\x8c\xd7\xd9\x4f\xcc\xe5\x6a\x66\xbf\x65\xf2\x08\x70\xa2\x81\xc8\x44\x2f\x8d\xbd\x4c\x23\x71\x45\x4a\x2b\x66\xf8\xd0\x99\x4a\x0b\x67\x69\x2e\x77\x1e\xfc\x6a\x5e\x0b\x88\x7a\xca\xe7\xd6\xf4\xec\x73\x38\xe1\xaa\x89\xf2\xab\xc7\x03\x4c\x4e\x4c"[..]); ctx.update(b"\xc0\x33\xe4\xa5\x12\x29\x7c\xae\xcd\xbe\xad\x89\x2b\x11\xa9\xf7\x00\x7a\xf9\xa7\x4b\xca\xb8\x9e\x0b\xd4\xff\xdd\x54\x2c\xa0\x3e\xa1\x2e\x17\xa0\x6c\x42\xbd\x43\xfc\x5f\x3f\x75\x7f\xce\x4f\x6f\x58\x31\x99\x7a\xba\xc3\xf9\x56\x76\xe1\xeb\xdb\x11\xca\x43\xe1\x1a\xa3\x1e\x5e\xba\xbe\x18\xce\x8d\x1b\xbf\xd8\xb0\x2f\x48\x2e\x1c\xe5\x81\xb5\x32\xe3\x07\xe6\x96\x0e\xb9\x74\x41\x50\x6c\x2e\xd2\x99\xe1\x28\x25\x23\xf4\x15\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x95\xac\x9b\x7d\x22\xaa\x45\x89\x21\x87\x4c\x4b\x43\x31\xe7\xd6\x47\x61\x85\x32\x17\xc3\xf8\x3c\x60\x1a\xbc\xbc\xcd\x7e\x2e\xaa\x6c\xa6\xce\x9a\x22\xeb\xcf\xe5\x04\x6d\x52\xf8\xa0\x90\x97\xf0\x43\xab\x8b\xc5\x92\x43\xfd\x77\x00\x90\xbb\x43\x2c\x31\x55\xe9"[..]); ctx.update(b"\x69\xff\xf0\xf1\xa3\xdb\xfb\x36\xe3\x2f\x02\x58\x19\xfa\x99\xea\x9a\x0e\xda\xef\x73\x14\x5b\xf7\xfc\xd0\x5d\x8b\xb0\xa6\x46\xcb\x3b\x5d\x52\x56\xd5\x24\x85\x6a\xcf\xd2\xe4\x4d\x6b\x72\xe4\xeb\xf1\xff\x23\xc0\xff\x6c\x56\xf8\x21\xe7\x82\xd5\xa1\x5f\x70\x52\xa1\x44\x5b\x06\x66\x8e\xeb\x4a\xf7\x00\x67\x9e\xe7\xae\x26\x49\x6f\xbd\x46\x40\xc0\x6a\xa1\x49\x96\x4d\xfd\x60\x11\xdf\x83\x5a\xc1\x3b\x73\xc8\xff\x21\x15\x1e\x84\x40"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\xd4\xda\xa6\x52\x55\x8d\x1c\x12\xbe\xb0\xf5\x66\x2c\x71\x2f\x32\x5b\x4c\x80\x2f\xc6\xeb\x9e\xe0\x39\xc9\x49\xd0\x02\xbb\x78\x6f\x1a\x73\x27\x12\xbe\x94\x1f\x9c\x5c\x79\xb3\xe5\xc4\x30\x64\xd6\x3a\x38\x57\x8e\x5a\x54\xee\x52\x6a\xcb\x73\x5b\x9a\xd4\x5f"[..]); ctx.update(b"\xb2\xc4\x39\xc9\x7a\xb7\xc6\x37\x36\xb3\x79\x63\x24\xd6\x8e\xeb\x7a\x47\x1e\xd1\x42\xbd\x96\x22\x68\x41\x67\xd6\x12\x34\xff\xf8\x2f\x93\xf9\x07\x53\x7a\x90\x9b\xc2\xe7\x5a\x4b\xcb\xc1\x33\xcf\x57\x19\x76\x62\xc1\xaf\x74\x6a\xe8\xb8\x1e\x5b\x83\xde\x05\xd9\xb5\x89\x85\x1d\xe2\x5d\x3c\x99\xc0\x04\xc1\xdf\xb1\x2d\x93\xbf\x50\xd4\x50\xaf\x49\xc4\x28\x71\x6f\x5b\x90\xef\x08\x8e\x3b\x6a\x6b\x2c\x46\xd3\xce\x67\xb3\x79\x59\x90\x18"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\x8e\xc8\x3b\xe5\xfa\x66\x9e\x6e\xc8\xdb\x90\xac\xa9\x67\x6c\xfe\x2e\xc0\xd5\xe8\xe7\xa2\x43\x16\x87\xbb\x95\x3c\x0a\x30\x0b\xe3\xdb\x40\x75\xcc\xa3\xba\xc4\xdf\xa4\xd9\x71\xba\xf0\xfa\x1a\xff\x46\x63\x9d\xb4\xb2\x38\x85\x6f\xf3\x6d\x1d\xfc\xd5\x20\xf1"[..]); ctx.update(b"\xc0\x16\xf5\x22\xf2\x6b\x74\x70\xe9\x22\xb9\xa2\x87\xe6\xd4\x5f\x6c\x28\x81\x3b\x68\xc1\x45\x7e\x36\xd9\xba\x26\x67\x08\x27\x2f\x9c\xbc\x54\x11\xf8\xdb\x9d\x8b\xd5\xa9\x44\x9f\xb6\xeb\x0c\xde\x7d\x4d\x03\xe5\xdf\x01\x9f\x28\x14\xa9\x0c\xee\xd3\x77\xc5\x9d\x7d\x92\x62\x38\x99\xbc\xb0\x26\x80\x33\x07\x35\x59\xd4\xd8\xde\x48\x86\x86\xcb\xe3\xd6\x77\x96\xe6\xdf\x6a\xd4\x27\x6d\x0b\x52\xcc\x62\xc4\x9e\xbb\x58\xd7\xc9\x52\x87\xaa\x6c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x02\xf1\xa9\x9b\x47\xe1\x02\xb3\xb7\x31\x40\xc6\x77\x1b\x07\xee\x6c\x33\xb3\x71\x5e\x9c\x40\x27\xc4\x41\xbe\xe4\x05\x11\xb7\x35\xd9\x5e\x50\x8b\xae\xa7\x8d\xa2\x6f\xde\xd9\xb7\x03\x8e\x9a\x53\xde\xfa\x58\x44\x8a\xba\x40\xdc\x1e\x62\xd7\xec\x59\x21\x07"[..]); ctx.update(b"\xa7\x66\xb2\xa7\xef\x91\x67\x21\xf4\x67\x7b\x67\xdb\xc6\x5e\xf9\xb4\xd1\xbd\xa1\xad\x4e\x53\xfc\x85\x4b\x02\x36\x44\x08\x22\x15\x2a\x11\x19\x39\xe5\xab\x2b\xa2\x07\x71\x94\x72\xb6\x3f\xd4\xf4\xa5\x4f\x4b\xde\x44\xa2\x05\xd3\x34\xa2\xd7\x2c\xfe\x05\xab\xf8\x04\xf4\x18\x41\xb8\x6d\x36\x92\x0b\xe6\xb0\xb5\x29\x33\x1a\xc1\x63\xa9\x85\x55\x6c\x84\x51\x1e\xc9\x86\x43\x9f\x83\xe1\xd7\x31\x1f\x57\xd8\x48\xcf\xa0\x2d\xf9\xea\x0c\xf6\xb9\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdd\xd6\x0f\x93\xa3\xba\xbc\x78\x29\x9c\xf7\x63\xe7\x91\x9d\x45\xac\x6f\x47\x97\x00\xe1\xad\xb0\x5a\xb1\x37\xac\xdf\x89\xc1\x52\x1e\xcb\x9d\xfe\xac\xd0\x91\xe5\x8c\xa5\x7a\x1d\xb9\x64\xa9\xc3\xcd\x1f\xa3\x91\x92\xcc\x1e\x9f\x73\x4c\xaa\x1c\x5f\xa6\x29\x75"[..]); ctx.update(b"\x10\xf2\xbe\x77\xa4\x05\x57\x71\xa6\x70\x07\xcd\x86\x30\xe3\x23\x0e\x38\x28\x84\x99\xcb\x16\x03\x80\x29\x01\x74\xd6\x6d\xa5\x74\x55\xb6\xba\xaa\x97\x85\xc8\x4c\x8a\x66\x3d\xe4\x1e\xd3\xbd\x54\x40\x55\xb9\x17\x0c\xec\x43\xcb\x3e\xb1\x20\xec\xea\xba\x1f\xe3\x6e\x3e\xaa\x3f\xa4\xf9\x9b\x42\x5c\xd2\x51\x9f\x09\xbc\x02\x82\xba\xda\x52\xd1\x4c\xe6\x25\xb1\xde\xd3\xb2\x4d\x86\xb1\xda\xd3\x42\xd2\xb7\xbe\x32\x2b\x77\x5b\x04\xfc\x6b\x86\xaf\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x72\xfa\x33\xd4\x63\xb3\x34\x3c\xec\x57\xc2\x0c\x66\x97\x9c\x33\xe1\xad\x06\x7b\xfc\x70\x34\x54\x69\x6a\xab\x5d\xd0\x00\x3b\xc1\x94\x31\x8f\x4a\x8e\xbb\xc7\x45\x03\xfe\xb7\x21\x1a\x47\x2d\xad\xee\x99\x1e\xfe\x3e\x38\xf2\x1a\x13\x10\xf8\xa7\x6e\xac\x80"[..]); ctx.update(b"\x32\x45\x33\xe6\x85\xf1\x85\x2e\x35\x8e\xea\x8e\xa8\xb8\x1c\x28\x8b\x3f\x3b\xeb\x1f\x2b\xc2\xb8\xd3\xfd\xba\xc3\x18\x38\x2e\x3d\x71\x20\xde\x30\xc9\xc2\x37\xaa\x0a\x34\x83\x1d\xeb\x1e\x5e\x06\x0a\x79\x69\xcd\x3a\x97\x42\xec\x1e\x64\xb3\x54\xf7\xeb\x29\x0c\xba\x1c\x68\x1c\x66\xcc\x7e\xa9\x94\xfd\xf5\x61\x4f\x60\x4d\x1a\x27\x18\xaa\xb5\x81\xc1\xc9\x49\x31\xb1\x38\x7e\x4b\x7d\xc7\x36\x35\xbf\x3a\x73\x01\x17\x40\x75\xfa\x70\xa9\x22\x7d\x85\xd3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\x26\xc5\x17\x07\x29\xd0\x81\x41\x53\xbe\xcb\x95\xf1\xb6\x5c\xd4\x2f\x9a\x6d\x06\x49\xd9\x14\xe4\xf6\x9d\x93\x8b\x5e\x9d\xc0\x41\xcd\x0f\x5c\x8d\xa0\xb4\x84\xd7\xc7\xbc\x7b\x1b\xde\xfb\x08\xfe\x8b\x1b\xfe\xdc\x81\x10\x93\x45\xbc\x9e\x9a\x39\x9f\xee\xdf"[..]); ctx.update(b"\x51\x89\x85\x97\x7e\xe2\x1d\x2b\xf6\x22\xa2\x05\x67\x12\x4f\xcb\xf1\x1c\x72\xdf\x80\x53\x65\x83\x5a\xb3\xc0\x41\xf4\xa9\xcd\x8a\x0a\xd6\x3c\x9d\xee\x10\x18\xaa\x21\xa9\xfa\x37\x20\xf4\x7d\xc4\x80\x06\xf1\xaa\x3d\xba\x54\x49\x50\xf8\x7e\x62\x7f\x36\x9b\xc2\x79\x3e\xde\x21\x22\x32\x74\x49\x2c\xce\xb7\x7b\xe7\xee\xa5\x0e\x5a\x50\x90\x59\x92\x9a\x16\xd3\x3a\x9f\x54\x79\x6c\xde\x57\x70\xc7\x4b\xd3\xec\xc2\x53\x18\x50\x3f\x1a\x41\x97\x64\x07\xaf\xf2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc0\x09\x26\xa3\x74\xcd\xe5\x5b\x8f\xbd\x77\xf5\x0d\xa1\x36\x3d\xa1\x97\x44\xd3\xf4\x64\xe0\x7c\xe3\x17\x94\xc5\xa6\x1b\x6f\x9c\x85\x68\x9f\xa1\xcf\xe1\x36\x55\x35\x27\xfd\x87\x6b\xe9\x16\x73\xc2\xca\xc2\xdd\x15\x7b\x2d\xef\xea\x36\x08\x51\xb6\xd9\x2c\xf4"[..]); ctx.update(b"\x91\x59\x76\x72\x75\xba\x6f\x79\xcb\xb3\xd5\x8c\x01\x08\x33\x9d\x8c\x6a\x41\x13\x89\x91\xab\x7a\xa5\x8b\x14\x79\x3b\x54\x5b\x04\xbd\xa6\x1d\xd2\x55\x12\x7b\x12\xcc\x50\x1d\x5a\xaa\xd4\x76\xe0\x9f\xa1\x4a\xec\x21\x62\x6e\x8d\x57\xb7\xd0\x8c\x36\xcd\xb7\x9e\xea\x31\x4b\xdd\x77\xe6\x57\x79\xa0\xb5\x4e\xab\x08\xc4\x8c\xeb\x97\x6a\xdf\x63\x1f\x42\x46\xa3\x3f\x7e\xf8\x96\x88\x7e\xa8\xb5\xdf\xa2\x08\x7a\x22\x5c\x8c\x18\x0f\x89\x70\x69\x61\x01\xfc\x28\x3b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\xd3\x38\x0a\x90\x86\x8d\xe1\x7d\xee\x4b\xd4\xd7\xf9\x0d\x75\x12\x69\x6f\x0a\x92\xb2\xd0\x89\x24\x0d\x61\xa9\xd2\x0c\xd3\xaf\x09\x4c\x78\xbf\x46\x6c\x2d\x40\x4d\xd2\xf6\x62\xec\x5f\x4a\x29\x9b\xe2\xad\xea\xdf\x62\x7b\x98\xe5\x0e\x1c\x07\x2b\x76\x9d\x62"[..]); ctx.update(b"\xfe\x2d\x8a\xe2\x00\xe6\x65\x7f\xdc\x74\x94\xaf\x5a\x12\xb2\xae\x94\x03\x48\xf1\xf9\x83\xf0\xba\x98\xfe\xbb\xe9\x9c\x80\xd1\x15\x12\x6d\x57\xdb\xf3\x72\x96\x76\x5e\xbb\x59\x90\x25\x66\x96\x58\x8b\x38\x51\xd5\x4c\x8f\xbe\x7a\xde\x98\xa6\xfa\xf7\xc2\x0b\x5e\x4f\x73\x0f\x54\xa7\xf9\x12\xca\x0a\xc3\x1b\xbb\x53\xd1\x79\x49\xef\x69\xaa\x0d\xe4\x0c\x7b\xab\x12\xa8\x71\xa9\xb9\x0f\x68\x81\x3c\xa8\x7a\xf4\x25\x64\x22\xa2\x68\xf4\xa1\xd8\xec\x3a\xa1\xa9\x47\xfd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\x25\xa8\x60\x8d\xf0\xf6\xa0\x1c\x34\xcd\xec\x01\x2d\x4c\xb2\x58\x52\xe1\xb1\x00\xb6\x81\x72\xfc\x4e\x86\xac\x8b\x71\x26\xb6\x48\x59\xcb\x9e\x76\x7a\x7e\x59\x06\x09\x89\xce\xdb\xd9\x25\xaf\xc4\x75\xca\x73\x69\xbd\x43\xf8\x5a\xe5\x90\xe2\x24\xe0\x36\xdd"[..]); ctx.update(b"\xdc\x28\x48\x4e\xbf\xd2\x93\xd6\x2a\xc7\x59\xd5\x75\x4b\xdf\x50\x24\x23\xe4\xd4\x19\xfa\x79\x02\x08\x05\x13\x4b\x2c\xe3\xdf\xf7\x38\xc7\x55\x6c\x91\xd8\x10\xad\xba\xd8\xdd\x21\x0f\x04\x12\x96\xb7\x3c\x21\x85\xd4\x64\x6c\x97\xfc\x0a\x5b\x69\xed\x49\xac\x8c\x7c\xed\x0b\xd1\xcf\xd7\xe3\xc3\xcc\xa4\x73\x74\xd1\x89\x24\x7d\xa6\x81\x1a\x40\xb0\xab\x09\x70\x67\xed\x4a\xd4\x0a\xde\x2e\x47\x91\xe3\x92\x04\xe3\x98\xb3\x20\x49\x71\x44\x58\x22\xa1\xbe\x0d\xd9\x3a\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x61\x51\x15\xd2\xe8\xb6\x2e\x34\x5a\xda\xa4\xbd\xb9\x53\x95\xa3\xb4\xfe\x27\xd7\x1c\x4a\x11\x1b\x86\xc1\x84\x14\x63\xc5\xf0\x3d\x6b\x20\xd1\x64\xa3\x99\x48\xab\x08\xae\x06\x07\x20\xd0\x5c\x10\xf6\x02\x2e\x5c\x8c\xaf\x2f\xa3\xbc\xa2\xe0\x4d\x9c\x53\x9d\xed"[..]); ctx.update(b"\x5a\xf8\xc0\xf2\x6d\xb4\xe9\x9b\x47\xec\x2e\x4a\x01\xa7\x86\xe7\x78\x99\xe4\x6d\x46\x4a\xc3\x37\xf1\x75\x02\x7b\x61\xae\xf3\x14\x98\x48\xaf\x84\x9d\x76\xac\x39\xb9\xb0\x91\x0f\xe6\x59\x48\x17\x85\x9e\x55\x97\x4f\xa1\x67\x51\x8e\xd7\x2d\x08\x8d\xae\x6b\x41\x4d\x74\x4d\x47\x79\x74\xfb\x71\x9c\x62\x6d\xa7\x92\xf9\x81\x23\x3d\xe2\x4b\x75\x79\xd8\xac\xca\x51\x0a\x26\x6d\x73\xc0\xee\x8e\xe1\x42\x43\x43\xea\xf6\xff\xcc\x59\xc8\x6c\x1b\xec\xce\x58\x94\x07\x2c\x6c\x11"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\xda\x28\x4d\x5b\x65\x56\x50\x8b\xe5\x4c\x8a\xb6\xc9\x7b\xbd\x47\x29\x95\xc6\xbb\xd5\x85\x91\x7e\xcd\xb5\x4e\xa9\x16\x72\x08\xda\xaa\x07\x0a\x7b\x2b\x7d\x8e\x93\xce\x13\x15\xf0\xd1\xef\x8d\x69\x66\x74\x29\xc4\x4d\xc5\xee\x14\x99\xde\x57\xb2\x29\xa3\x98"[..]); ctx.update(b"\x49\xcd\x0b\xa0\xdf\x5b\xb3\xf4\x3f\x68\x46\x4e\x3e\x83\xe9\xcb\xd5\xd5\xee\x07\x7f\xfa\x55\x91\xe3\x0f\x93\x9c\xb3\x0c\x93\xf7\xd4\x54\xfb\x3f\xbf\x8b\xb0\x53\x27\xa8\x9c\x08\xdc\x4b\xaf\x1e\xef\x50\x23\x73\x17\xa4\x05\x77\x53\x57\xf1\xe0\xd1\xf3\x1d\x9f\x0f\x0d\x98\x12\x40\x19\xd4\x7b\xf1\x83\x63\xb1\xec\xfb\xfe\x15\x5c\x10\xcb\xc8\x33\x00\xe0\x1b\xc9\xce\x03\x47\xc5\x96\xb3\x5f\x41\x1e\x6d\x82\x29\xad\x28\x55\xe4\x20\x22\xb0\x37\x3a\xde\x98\x66\x3c\x6d\x6e\x9c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x30\xcb\xf0\x67\x9a\x97\xc8\x71\x57\x4d\x2f\xc0\x5d\x7a\xa7\x60\xc6\xbc\x8a\x86\x4b\x7d\x24\x6c\x39\xb9\xe8\x12\xf9\xb7\xff\x7b\x4e\xf5\x19\x7d\xd5\xb6\x94\x93\x30\x66\x88\xb8\x56\x4d\xe1\xad\x47\xd7\x55\x05\xc9\x13\xba\x6a\x78\x78\x8f\x8c\xaf\x57\x88\xbd"[..]); ctx.update(b"\xa8\xa3\x7d\xfc\x08\x3a\xd2\xf4\x7f\xff\x46\x87\x38\xbf\x8b\x72\x8e\xb7\xf1\x90\x7e\x42\x7f\xa1\x5c\xb4\x42\x4b\xc6\x85\xe5\x5e\xd7\xb2\x82\x5c\x9c\x60\xb8\x39\xcc\xc2\xfe\x5f\xb3\x3e\x36\xf5\x70\xcb\x86\x61\x60\x9e\x63\x0b\xda\x05\xee\x64\x1d\x93\x84\x28\x86\x7d\x90\xe0\x07\x44\xa4\xaa\xd4\x94\xc9\x3c\x5f\x6d\x13\x27\x87\x80\x78\x59\x0c\xdc\xe1\xe6\x47\xc9\x82\x08\x18\xf4\x67\x64\x1f\xcd\x50\x8e\x2f\x2e\xbf\xd0\xff\x3d\x4f\x27\x23\x93\x47\x8f\x3b\x9e\x6f\x80\x6b\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8e\x1c\x91\x72\x9b\xe8\xeb\x40\x22\x6f\x6c\x58\xa0\x29\x38\x0e\xf7\xed\xb9\xdc\x16\x6a\x5c\x3c\xdb\xce\xfe\x90\xbd\x30\xd8\x5c\xb7\xc4\xb2\x48\xe6\x6a\xbf\x0a\x3a\x4c\x84\x22\x81\x29\x9b\xef\x6d\xb8\x88\x58\xd9\xe5\xab\x52\x44\xf7\x0b\x79\x69\xe1\xc0\x72"[..]); ctx.update(b"\x36\xaf\x17\x59\x54\x94\xef\x79\x3c\x42\xf4\x84\x10\x24\x6d\xf0\x7d\x05\x93\x6a\x91\x8a\xfe\x74\xcd\x00\x5e\x53\x7c\x58\x6b\x28\x43\x70\x1f\x5d\xf8\x95\x22\x42\xb7\x45\x86\xf8\x33\x39\xb4\x8f\x4b\xa3\xa6\x6b\xde\xb4\x57\xec\xdf\x61\x78\x4e\xac\x67\x65\xcd\x9b\x8c\x57\x0d\xd6\x28\xdb\xba\x6a\xe5\x83\x6b\x9a\xc3\xdb\xcd\x79\x5f\x9e\xfd\xb8\x74\x2a\x35\xbc\xa2\x32\xab\xf3\x6e\xb3\xb6\x69\x8b\x29\x33\x96\x58\x02\x27\x7b\xa9\x53\xa6\xed\xca\xca\xf3\x30\xc1\xe4\xe8\xc7\xd4\x5f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x15\x8b\xfc\x34\x8a\x30\xb4\xfa\xbb\xe3\x55\xa7\xd4\x4b\xdc\x21\x22\xa4\xc8\x50\x44\x4c\x03\xf2\x89\x00\x3c\xe0\x1b\xfc\x1e\xbf\x3e\xcc\x0f\xeb\xb6\xa8\xff\x52\x3d\x25\xdb\x76\x81\xb0\x5b\xdc\xe0\x48\xd1\x19\x43\xab\x47\x6c\x19\x67\xcf\x65\x56\xc4\xa1\x20"[..]); ctx.update(b"\x42\xd6\x6e\xdc\x5f\x22\xe0\xc1\x3c\x25\x50\x4c\x51\x01\xa5\xd1\x72\xd2\xdb\x72\x09\xe4\x61\xef\xa3\x23\xc0\xbf\xae\xd2\x7e\x5f\x80\x80\x42\xea\x9c\x38\x38\xea\x31\xf9\xb7\x6d\xe4\x65\x22\x5c\xcf\xbd\x0c\x09\xca\x0d\x9f\x07\xe9\xa4\x3e\x3e\x46\xc7\x69\x3e\x00\xa7\xe1\xd4\x83\x90\x0d\xdb\x0a\x62\x9d\x55\x63\x45\x6d\xbb\xf2\x99\xac\x91\xf9\x2c\x3d\x3c\x17\xb0\x5d\x18\x0e\x6c\x87\xc6\xc9\x31\x94\xc3\x9d\x90\x27\x3f\xcf\x4a\x48\x2c\x56\x08\x4f\x95\xe3\x4c\x04\x31\x1f\xa8\x04\x38"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x06\x1a\xfb\x11\x9a\x3c\x60\x87\x6e\x04\xc1\x0f\x12\xad\x0f\x4b\x97\x75\x93\xdc\x5a\x2d\x21\x09\x6a\x57\xe7\xd3\xf7\xd4\xd4\x4f\xde\xf9\x34\xb2\xc1\x7d\x75\x30\x67\x4e\x4f\x4a\x1c\x17\x6d\xbd\xcc\x54\x81\x1a\x22\xe1\xb8\x71\x2e\x41\x92\xfc\x2d\x4b\xf8\xe8"[..]); ctx.update(b"\xf9\x1b\xb2\xe1\xa9\xc4\xcd\x96\xbf\x25\x04\x26\xb3\xa6\xaf\xd9\xb8\x7a\xc5\x1e\x93\x25\x4d\x2d\xae\x3b\x16\xec\x68\x6b\xa8\x0f\xb0\xbd\x7a\x84\xd2\x18\x66\x0e\x90\x07\x59\x30\x75\xbc\x4f\x4c\x66\x56\x7f\x0c\x7a\x5f\xd2\x01\x0c\x99\x9a\x8a\x0e\xfa\x81\xf8\x9f\xf5\xbf\xef\xe0\xfb\x91\x0f\x04\x42\xe6\xd4\xa7\xc5\x5b\xbb\x61\x8c\x69\xa7\x9a\x2d\xdd\x82\xa0\x93\x89\x27\xf6\xfe\x3a\x80\xf0\x4b\xea\xeb\x7c\x76\x36\xe3\x43\x5d\x12\xdc\xf1\xc6\xbb\x6e\xd0\xa4\xed\xb6\x9c\x96\x57\xfa\x93"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\x69\x2c\x8c\x69\x4e\xe0\xa3\x56\x5f\x37\xa2\x99\xe0\x00\x6b\x85\xab\x4a\x82\x1b\x20\xe7\x67\x98\x22\x02\x29\xf6\x56\xef\xc6\xa2\x02\x11\xa4\xe7\xe4\xed\x77\xfa\xcd\xe0\xd7\x0e\x4d\x5d\x95\xbc\x8e\xd1\xd7\xa5\x6d\x8d\xf1\x44\x6d\x56\x2f\x04\x4b\x34\x4c"[..]); ctx.update(b"\xd1\xeb\x96\x1c\xa6\xa8\xf6\x7c\x49\xb6\x1e\x4d\x3c\xea\xa2\xa1\xde\x6f\x0e\xa9\x27\xb1\x32\xbf\x98\x7a\xbd\xaa\x72\x5b\x0e\x1e\x27\x4e\x46\x83\x0e\x99\xa2\xf7\x5a\xf6\x08\x96\x4d\xf0\xdf\xf9\xa9\x90\x24\xfc\x68\x39\xba\xc5\xac\xd1\x02\x02\xf9\x21\xac\x71\xa2\x7f\xcd\xa6\x81\xaa\x31\x09\xeb\xf5\xf2\x1e\xe3\xa8\x49\x09\x8e\xa3\xa5\x51\xe8\x44\xfa\xe4\xb4\x8b\x5c\x5b\xb9\x7c\xcc\x80\x2b\xc5\x52\x0d\x68\xa1\x4c\xb7\xe5\xfc\x05\x6b\x67\xd8\x89\xd8\x76\xef\xb8\x2d\x0e\x9a\x9a\x24\x99\xf1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\xb2\xc7\x6e\xc2\x07\x12\x0d\xe4\xb3\x20\xc7\xfe\x06\x9e\x60\x2c\x9c\x38\xf2\x57\x59\x6d\xa7\x36\x93\x95\xe8\x7e\xb6\x4b\x3a\xcf\xf9\x88\xc1\x83\x9a\xc2\x69\xd5\x01\x2c\x09\x3f\x9e\xdd\x4b\x7c\xab\xf1\x3b\xde\xa7\xd4\x2e\x96\x9a\xb1\x08\x26\x9c\x6a\xb0"[..]); ctx.update(b"\xad\xf2\x26\x32\x00\xf3\x76\x88\x6b\xa7\xb6\xf5\xe4\x41\x1d\x5f\x07\xf7\xd9\xd1\x01\x59\x0c\x73\xac\xe1\x14\xba\xfb\xcb\x0f\xdc\x99\x26\x9e\x87\xcd\x2c\xea\xd2\xa1\xcf\xe5\x74\x43\x94\xd3\x33\xab\xa4\x08\xa0\x7e\x21\xf3\x02\x33\xb6\x5b\x90\x74\x72\xe9\xe3\xc7\xd6\xe7\xaa\x6d\x2c\x47\xa0\x8a\x1b\xe7\xbb\x87\x79\x13\xa6\xb5\x60\x4c\x72\x33\x84\x47\x89\x11\xc3\x39\xe3\xb5\xfe\x52\x7c\x7e\x28\x87\x05\xa8\x9c\x95\xd9\x70\xb4\x43\x34\x78\x97\xe7\x9f\x6c\x52\x2b\xaf\xe6\x2b\x11\xef\x8f\x31\x35"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3c\x23\xd2\xd8\xcf\x4d\xb6\xac\x6a\x42\xe2\x72\x08\x18\x0f\x37\x66\x8b\xef\x5e\xe0\xa3\xf8\x79\x48\x3c\x8e\x60\x4e\x7f\x42\x58\x3f\x20\x20\x37\xb8\xd2\x42\xc0\x4a\x87\x34\x5b\x8b\xe6\xdc\x8b\x12\x1d\x64\x84\xb9\xed\xad\x0d\x73\xc8\x94\xc1\x28\x8f\x5c\xae"[..]); ctx.update(b"\x18\xe7\x5b\x47\xd8\x98\xac\x62\x9c\x48\xe8\x0d\xbf\xb7\x5d\xae\x1e\x17\x00\xb7\x71\x16\x5e\xcc\xdb\x18\xd6\x28\xbf\xc4\x06\x3d\xd6\xc3\x83\x9a\x7e\xc4\xcd\x12\x55\xc4\x82\x1b\x07\x8c\xd1\x74\x64\x7b\x32\x0b\xb6\x85\x54\x1d\x51\x7c\x57\x9f\x6b\x8e\x3c\xdd\x2e\x10\x9a\x61\x0c\x7a\x92\x16\x53\xb2\x04\xad\x01\x8d\x03\x40\xd9\x93\x87\x35\xb6\x02\x62\x66\x20\x16\x76\x7e\x1d\x88\x24\xa6\x49\x54\x08\x62\x29\xc0\xe3\xb5\xbd\x9a\xd8\x8c\x54\xc1\xdc\x5a\xa4\xe7\x68\xff\x1a\x94\x70\xee\x6f\x6e\x99\x8f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x01\xc7\x56\xb7\xc2\x0b\x5f\x95\xfd\x2b\x07\x9a\xb6\xa5\x0f\x28\xb9\x46\xfb\x16\x26\x6b\x07\xc6\x06\x09\x45\xdc\x4f\xe9\xe0\xd2\x79\xc5\xb1\x50\x5b\x9e\xc7\xd8\xf8\xf3\xc9\xeb\xf0\xc5\xee\x93\x65\xae\xc0\x8c\xf2\x78\xd6\x5b\x64\xda\xec\xcc\x19\xd3\xcb\xf4"[..]); ctx.update(b"\xc2\x96\x33\x42\xcf\xaa\x88\xcc\xd1\x02\xa2\x58\xe6\xd6\x29\xf6\xb0\xd3\x67\xdd\x55\x11\x65\x02\xca\x44\x51\xea\x52\x36\x23\xbc\x41\x75\x81\x9a\x06\x48\xdf\x31\x68\xe8\xea\x8f\x10\xed\x27\x35\x48\x07\xd7\x6e\x02\xee\x1f\xdf\x1c\x9c\x65\x5e\xe2\xb9\xfd\x08\xd5\x57\x05\x8d\xab\xdf\x8d\xcf\x96\x4b\xfc\xac\xc9\x96\xae\x17\x39\x71\xe2\x6e\xa0\x38\xd4\x07\xc8\x24\x26\x0d\x06\xc2\x84\x8a\x04\xa4\x88\xc4\xc4\x56\xdb\xcd\xe2\x93\x9e\x56\x1a\xb9\x08\xc4\x09\x7b\x50\x86\x38\xd6\xcd\xa5\x56\x46\x5c\x9c\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa4\xd2\xf5\x93\x93\xa5\xfe\xa6\x12\xc3\xc7\x45\xf4\xbb\x9f\x41\xaa\xf3\xa3\xce\x16\x79\xaa\x8a\xfc\x1a\x62\xba\xa4\xed\x45\x28\x19\x41\x8c\x8a\xe1\xa1\xe6\x58\x75\x79\x76\x69\x23\x90\xfc\x43\xd4\xde\xcf\x7d\x85\x5c\xd8\xb4\x98\xb6\xdc\x60\xca\xe0\x5a\x90"[..]); ctx.update(b"\x85\x36\x0c\x3d\x42\x57\xd9\x87\x8e\x2f\x5c\x16\xd3\xcd\x7d\x07\x47\xdf\x3d\x23\x1e\x1a\x8f\x63\xfd\xdc\x69\xb3\xb1\x10\x1a\xf7\x21\x53\xde\x4c\x81\x54\xb0\x90\xc9\x81\x5f\x24\x66\xe0\xe4\xf0\x2f\x3a\xf3\xa8\x9a\x7f\xd0\x4e\x30\x66\x64\xf9\x3e\x54\x90\xd4\xce\x7f\xc1\x69\xd5\x53\xc5\x20\xae\x15\xdd\x02\xc7\xc6\x13\xc3\x9b\x4a\xcd\x00\xe0\xc9\xa3\xc5\x01\x56\x6e\x52\xce\xce\xa1\x1f\x73\x03\xdd\x1d\xa6\x1a\xbf\x3f\x25\x32\xfd\x39\x60\x47\xb1\x88\x72\x55\xf4\xb2\x56\xc0\xaf\xcf\x58\xf3\xae\x48\xc9\x47"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe8\x35\x2d\xdc\xac\x59\xe3\x77\xea\x0f\x9c\x32\xbb\xb4\x3d\xfd\x1b\x6c\x82\x9f\xad\x19\x54\x24\x0c\x41\xb7\xc4\x5b\x0b\x09\xdb\x11\x06\x4b\x64\xe2\x44\x2a\x96\xf6\x53\x0a\xac\x2c\x4a\xbf\x3b\xeb\x1e\xae\x77\xf2\xbc\xe4\xef\xe8\x8f\xee\x1a\x70\xcf\x54\x23"[..]); ctx.update(b"\xc1\x3e\x6c\xa3\xab\xb8\x93\xaa\x5f\x82\xc4\xa8\xef\x75\x44\x60\x62\x8a\xf6\xb7\x5a\xf0\x21\x68\xf4\x5b\x72\xf8\xf0\x9e\x45\xed\x12\x7c\x20\x3b\xc7\xbb\x80\xff\x0c\x7b\xd9\x6f\x8c\xc6\xd8\x11\x08\x68\xeb\x2c\xfc\x01\x03\x7d\x80\x58\x99\x2a\x6c\xf2\xef\xfc\xbf\xe4\x98\xc8\x42\xe5\x3a\x2e\x68\xa7\x93\x86\x79\x68\xba\x18\xef\xc4\xa7\x8b\x21\xcd\xf6\xa1\x1e\x5d\xe8\x21\xdc\xab\xab\x14\x92\x1d\xdb\x33\x62\x5d\x48\xa1\x3b\xaf\xfa\xd6\xfe\x82\x72\xdb\xdf\x44\x33\xbd\x0f\x7b\x81\x3c\x98\x12\x69\xc3\x88\xf0\x01"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\x56\xf7\x7f\x68\x83\xd0\xbd\x4f\xac\xe8\xb8\xd5\x57\xf1\x44\x66\x19\x89\xf6\x6d\x51\xb1\xfe\x4b\x8f\xc7\x12\x4d\x66\xd9\xd2\x02\x18\x61\x6f\xea\x1b\xcf\x86\xc0\x8d\x63\xbf\x8f\x2f\x21\x84\x5a\x3e\x51\x90\x83\xb9\x37\xe7\x0a\xa7\xc3\x58\x31\x0b\x5a\x7c"[..]); ctx.update(b"\xfd\x22\x03\xe4\x67\x57\x4e\x83\x4a\xb0\x7c\x90\x97\xae\x16\x45\x32\xf2\x4b\xe1\xeb\x5d\x88\xf1\xaf\x77\x48\xce\xff\x0d\x2c\x67\xa2\x1f\x4e\x40\x97\xf9\xd3\xbb\x4e\x9f\xbf\x97\x18\x6e\x0d\xb6\xdb\x01\x00\x23\x0a\x52\xb4\x53\xd4\x21\xf8\xab\x9c\x9a\x60\x43\xaa\x32\x95\xea\x20\xd2\xf0\x6a\x2f\x37\x47\x0d\x8a\x99\x07\x5f\x1b\x8a\x83\x36\xf6\x22\x8c\xf0\x8b\x59\x42\xfc\x1f\xb4\x29\x9c\x7d\x24\x80\xe8\xe8\x2b\xce\x17\x55\x40\xbd\xfa\xd7\x75\x2b\xc9\x5b\x57\x7f\x22\x95\x15\x39\x4f\x3a\xe5\xce\xc8\x70\xa4\xb2\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa2\x1b\x10\x77\xd5\x2b\x27\xac\x54\x5a\xf6\x3b\x32\x74\x6c\x6e\x3c\x51\xcb\x0c\xb9\xf2\x81\xeb\x9f\x35\x80\xa6\xd4\x99\x6d\x5c\x99\x17\xd2\xa6\xe4\x84\x62\x7a\x9d\x5a\x06\xfa\x1b\x25\x32\x7a\x9d\x71\x0e\x02\x73\x87\xfc\x3e\x07\xd7\xc4\xd1\x4c\x60\x86\xcc"[..]); } } nettle-7.1.0/src/hash/sha512_224.rs000064400000000000000000001715520072674642500146410ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha512_224, nettle_sha512_224_digest, nettle_sha512_224_init, nettle_sha512_update, sha512_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 512 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4, truncated to 224 /// bit. #[allow(non_camel_case_types)] pub struct Sha512_224 { context: sha512_ctx, } impl_write_for_hash!(Sha512_224); impl Clone for Sha512_224 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha512_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha512_224 { context: ctx } } } } impl Default for Sha512_224 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha512_224_init(&mut ctx as *mut _); } Sha512_224 { context: ctx } } } impl Hash for Sha512_224 { fn digest_size(&self) -> usize { ::nettle_sys::SHA512_224_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha512_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha512_224_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha512_224 { type Context = sha512_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha512_224 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha512_224::default(); } // CAVS 21.1 // "SHA-512/224 ShortMsg" information for "sha_values" // SHA-512/224 tests are configured for BYTE oriented implementations // Generated on Mon Jul 10 14:34:13 2017 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha512_224::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\xd0\xdd\x02\x80\x6f\xa8\x9e\x25\xde\x06\x0c\x19\xd3\xac\x86\xca\xbb\x87\xd6\xa0\xdd\xd0\x5c\x33\x3b\x84\xf4"[..]); ctx.update(b"\xcf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x41\x99\x23\x9e\x87\xd4\x7b\x6f\xed\xa0\x16\x80\x2b\xf3\x67\xfb\x6e\x8b\x56\x55\xef\xf6\x22\x5c\xb2\x66\x8f\x4a"[..]); ctx.update(b"\xca\x2d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\x2b\x99\xb5\x93\xb8\x5e\x14\x7f\x03\x19\x86\xc2\xa9\xed\xfd\xb4\xff\xd9\xf2\x4c\x77\xc4\x52\xd3\x39\xc9\xfc"[..]); ctx.update(b"\x49\x76\x04"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa9\xc3\x45\xd5\x8a\x95\x9a\xf2\x0a\x42\xc8\x4e\x28\x52\x3b\xa4\x7e\x3b\xf8\xfa\xd8\xe8\xc3\xf3\x2b\x7a\x72\xae"[..]); ctx.update(b"\xc2\xeb\x0c\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc5\xb9\x7f\x1e\x46\xd9\x1c\x39\x40\xbe\x8c\xfe\xf1\xe4\x9b\xaa\x77\xb4\x75\xdb\x94\x3e\x49\xf0\x0c\xdd\xbe\x72"[..]); ctx.update(b"\xd2\x8b\xc2\xaa\x3f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe7\x9d\xe5\x52\x12\x0a\x87\x58\x5e\x73\x13\xe2\x4e\xcd\x74\x13\x9a\x3b\xe9\xba\x28\x12\x93\x6c\x4b\x33\xca\x23"[..]); ctx.update(b"\xb4\x14\x2c\xa7\x9f\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2a\x0e\xd8\xeb\x0e\x18\xbc\x18\x9f\x5c\x83\x6d\xc6\xa5\x82\x5b\xaa\x6f\x72\x86\xfa\x5b\x96\x89\xb6\x41\xbb\x3b"[..]); ctx.update(b"\x8d\xae\xdf\x3c\x42\x0c\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4e\xda\xc9\x1a\x8e\xba\x35\xa1\x43\x1e\xf4\xd4\x97\x05\xdb\x12\xda\x38\x2a\x78\x6d\x15\x63\x67\x74\xcb\xd7\x08"[..]); ctx.update(b"\x69\x63\x44\x69\x13\x77\x14\x10"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\xf6\xc3\x73\x63\x7e\x6a\x5e\x89\xd6\xe8\x88\x11\x11\x0c\x5c\x3f\xa1\x2e\x49\x71\x44\x91\x29\x14\xc5\x46\xe1"[..]); ctx.update(b"\x6f\x31\x6a\xb2\xb4\x0f\x09\x68\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\x99\x54\x2e\x9a\x78\xd1\x40\x39\x29\xc4\x34\x69\x93\xe2\x13\xb8\x3c\x32\xf9\x12\x74\xbd\xdb\xc6\x3e\x41\x92"[..]); ctx.update(b"\x58\x19\xa7\x7f\xa1\xa8\xf9\xc3\x5d\x17"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2e\x94\x4a\x5c\x53\x4b\x80\x92\x2f\x6c\x21\xe9\x72\x77\xb4\xa0\x1a\x4a\x0f\xa6\x52\xd6\xd4\x0b\x37\xfb\x0f\xc9"[..]); ctx.update(b"\x3c\x7e\x03\x84\x01\xfa\x74\xc6\xc0\x6e\x41"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa7\x4a\xf6\x88\x19\xaf\xe8\x1b\xcd\xac\xeb\xa6\x42\x01\xc0\xd4\x1f\x84\x3e\x4b\x08\xe4\x00\x2a\x37\x5b\xe7\x61"[..]); ctx.update(b"\xe2\x43\xb9\xf9\x01\x85\x54\x47\xfa\x2a\xf3\x02"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x33\x0c\x77\xed\x20\xdc\x93\xca\xbf\x0d\xf3\x44\x2c\x62\x0c\x9d\xf5\xc7\xa0\x2d\x7c\x79\xfc\x1d\x2f\xf7\xff\x94"[..]); ctx.update(b"\xc5\xf9\x42\xed\xc4\x64\x07\xc6\x01\x9c\xd9\x26\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\x80\xa0\xd8\x36\x83\xcb\x7e\x79\xd8\x12\xab\x5d\x42\x88\x39\x9c\x78\x89\x5c\x6a\x91\x8e\x99\xa2\x83\x91\x55"[..]); ctx.update(b"\xe5\x7d\x4c\x47\x8a\xd6\xa6\x4b\x8b\xf3\x35\x2e\x75\xb6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\xb3\xe8\xf5\xa1\xfb\x60\x3c\x67\x06\x0c\x12\xa7\x36\xe5\x7c\x5c\xcc\x0b\x89\xfc\x62\xc9\x0b\x02\xdd\x92\x6b"[..]); ctx.update( b"\x32\xd0\x49\x92\x8a\x58\x3b\x5b\x95\x47\x85\x80\x5d\x8b\x26", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\x18\xf8\x7e\x8e\x6b\x54\xec\x43\x36\x44\x2f\x76\xed\xa0\xb3\x2d\xcb\x64\xd4\x63\xc0\xbe\x69\xe3\x48\xf8\x6c\x34"[..]); ctx.update( b"\x3b\x25\x42\xcb\x3f\xa5\x60\xdd\x0d\x79\x6d\x59\xee\x15\x1f\xee", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdc\x4a\xb3\x4d\xb2\x41\xb3\xfc\x20\x55\xc5\x4f\x70\xa8\xfd\x30\x45\x23\xd8\xc4\x20\x28\x52\xf5\xf0\x77\x64\x4f"[..]); ctx.update(b"\xec\xbe\x36\x79\x59\xa9\x1b\x15\xeb\x08\x04\x8b\x33\x75\x2e\xf7\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb7\x6e\xaa\x7d\xde\x45\xed\x50\xc0\x7b\x5b\xaf\xaf\xbf\xdc\xc0\x95\x9c\x1a\x64\xec\xa7\xad\xc3\x91\xab\xa2\x45"[..]); ctx.update(b"\x40\xbd\x7d\x47\xb6\x36\xc2\xa7\x49\xa2\x47\xfd\xda\x75\x80\x7c\x23\x8b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x08\x7e\xd6\x8f\x1d\xb9\x0f\xfb\x2f\xb4\xff\x7d\xc4\xb1\x7f\xe0\x81\x00\xb6\x43\x83\x85\x03\x78\xef\x54\x33\x39"[..]); ctx.update(b"\x33\x1c\x89\x39\xef\x68\x5a\xe0\xef\xcd\x40\x30\x37\x8a\x8b\x0a\xb7\x20\xc7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x97\x87\x4d\x56\x29\x6a\x28\xf8\xdf\x28\x04\x48\xf7\x6a\x9e\x80\x66\x05\xda\x25\x7a\x60\x83\x59\x8f\x23\x2e\x4d"[..]); ctx.update(b"\x26\x63\x4d\x1e\xb3\xcc\x27\x93\x83\x0c\x97\xf4\x96\x74\xbd\xa7\x47\x43\xeb\x8f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x82\x94\xb1\x12\x58\x8d\xfb\x9c\x55\x3a\xc8\x8f\xbd\x84\x41\x72\x2c\xec\x6a\x1d\x43\x53\x11\xfe\x72\xe0\x11\x0c"[..]); ctx.update(b"\x62\xed\x23\xab\x88\xc3\x0f\xe1\x35\x0f\x70\x2f\x3b\x6d\x45\x25\x3a\x0f\xc6\xae\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x30\x9d\xb7\x06\x38\x77\x1e\x2e\xec\x30\x9a\xbf\xda\x21\x9e\x5f\x13\xba\xc5\xfa\x9d\x5e\x84\xe7\x27\x76\x4b\xca"[..]); ctx.update(b"\x82\x7d\xbb\xe3\x6f\xb2\x66\x3c\x95\xea\xf8\x1c\x7c\xe4\x41\xdc\xa6\x64\x05\x05\x0a\xd8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\xe7\x86\xa9\x3d\xc9\x0e\x96\x47\x1e\x46\x69\x50\xa5\xa0\xf7\xf1\x42\xca\x69\xc1\x25\x1b\x93\x2e\x8b\xbf\x45"[..]); ctx.update(b"\xa2\xad\xa6\x1a\x95\xcf\x8f\xb6\xf9\x3c\xbd\x0a\xa6\x7b\x70\xe2\x86\xdc\x85\x3a\xfa\x51\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe8\x21\x24\x7c\x7b\xc7\xac\x8e\xf0\x7f\xb3\x1a\xc2\x5f\xb4\x8a\x3f\xbc\x50\xfd\xe3\x99\xa3\xcb\x58\x89\x54\x5f"[..]); ctx.update(b"\x56\x33\xee\x7b\x88\x70\x00\x2c\x01\xa3\xc6\xf6\x8f\x78\x12\xf1\x3a\xdf\xe0\xbf\x6f\xa7\x94\xbf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc3\x4b\x46\x78\x58\xb6\x52\x02\xfd\x8c\x73\xff\xac\x67\xcd\x8e\xe5\x51\x18\xd1\x2b\xeb\x2b\x11\x0b\x63\xae\x43"[..]); ctx.update(b"\xda\x1d\xd1\xeb\xea\x3c\xc9\x47\x4c\xf2\x55\xdc\x23\xe3\x56\x95\x02\x6e\x86\xd6\x09\x3a\xba\xb2\x51"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe6\x50\x80\x2f\x29\xad\x20\xb9\x00\x14\x8c\xf3\xe9\x36\x13\x99\xe6\x20\x7d\x45\x52\x57\xfb\xae\x3e\xfe\xe5\x0c"[..]); ctx.update(b"\x8f\x71\xc9\x34\x4c\xe6\xa5\x35\xd1\x04\x80\x3d\x22\x11\x9f\x57\xb5\xf9\x47\x7e\x25\x38\x17\xa5\x2a\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6b\x3a\x28\x8b\xd8\x41\x37\xcd\x76\x00\xcc\xf2\xd2\xab\x9b\x79\x7d\x0e\x87\xa1\x8c\xcb\x46\x81\x83\x39\x62\x35"[..]); ctx.update(b"\xd6\x68\xa2\x17\x80\x59\x40\x24\xdb\x02\x5d\xcb\x37\x3e\xf3\x63\x9b\xcd\x57\x43\x14\x55\x27\xe2\x4d\xa6\x7d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2b\x93\x44\x6d\x3a\xa2\xf1\xf9\xea\x85\x8e\x47\x80\x6c\xc4\x72\xf4\x0e\x33\x08\x5b\x7c\x7a\x65\x22\xcf\x65\x48"[..]); ctx.update(b"\x03\xf8\xcf\x98\x03\x5e\xac\x15\x8f\xf1\x8f\xd9\x3b\x44\xcd\xb6\x21\x59\x72\x55\xd7\xc3\xd9\x7a\x9e\x08\x79\x89"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\xfc\x5f\x50\x8d\xee\xd8\xbf\x74\x88\x3b\x6f\xde\xf8\xc3\xe0\xc8\x63\x06\xe7\xf1\xd6\x30\x0c\xce\x4d\x36\xdc"[..]); ctx.update(b"\x2a\x1f\x57\x99\x83\x60\xe9\x21\x6f\x50\x40\xe8\xf7\x5f\x5b\xff\xba\x43\x68\xee\xed\xed\xe5\x4a\xa0\xbb\x05\x8a\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbd\xc9\x1e\x67\x9f\xc2\xf4\xe4\x0a\xf1\x3f\x03\xec\xa3\xf6\x1a\x7b\xa3\x3a\xc2\xc6\x13\xd9\x48\xed\x7f\xc0\xbc"[..]); ctx.update(b"\xcd\x5f\xee\x5f\xde\x5e\x9a\xa2\x88\x4b\x4f\x48\x82\xcf\xa7\xd5\x57\x1f\x8f\xd5\x72\xc5\xf9\xbf\x77\xa3\xd2\x1f\xda\x35"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x72\xb4\x34\x17\xb0\x71\xf4\x81\x18\x33\x02\x77\x31\xb0\xca\x28\x54\x9c\x03\x57\x53\x0f\xe2\x58\xca\x00\x53\x3e"[..]); ctx.update(b"\xa9\xa7\x30\x38\xa2\x8e\x40\xfe\xb3\x74\x81\x9d\xf3\xa2\x6d\xb8\x46\xfd\xa2\x84\xde\x7e\x88\xdb\x01\xe2\x34\x8c\x0c\xa3\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa5\xba\xdd\xce\xed\x5b\x58\x61\x4c\x95\xb8\xa6\x21\xd5\x8c\xd4\xb1\x25\x59\xbd\x34\x79\x5e\xf5\xbe\x9c\xd6\x03"[..]); ctx.update(b"\xbe\x48\x50\xf5\xbe\x6c\xb6\x8c\xdb\xa5\x94\x8e\x3b\x94\xdb\xbc\xe8\x29\x89\xaa\x75\xb9\x70\x73\xe5\x51\x39\xaa\xc8\x49\xa8\x94"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc1\x1e\xed\xaa\xdc\x52\x49\xce\xfa\xfc\x5a\x9f\xad\xf3\x9e\x81\x2d\xb7\x00\xbd\x27\x67\xb8\xde\x1c\xdd\x60\x99"[..]); ctx.update(b"\xce\xd7\x8b\xf0\x73\x4a\x52\x7f\x5c\x07\xef\x6c\x8a\xdf\x80\xae\x25\x2b\x8c\xff\x10\x0d\x39\x3e\xc1\xf8\xc0\x11\x50\x72\x1f\xce\xcd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd4\x23\x7a\xa1\x95\x6d\x37\xa6\xdc\xab\x7b\x07\x26\x9f\x18\x22\x8f\x7e\x31\x56\xc3\x55\x5c\xf4\xd3\xd6\x8c\x1a"[..]); ctx.update(b"\xe4\x00\xbc\x89\x94\xcf\xf2\x3e\xae\x18\x9d\xf3\xb1\xe7\xe4\x40\xa6\xb5\xb1\x78\x61\x97\x12\x81\x05\xb5\xdf\xe2\xc6\xfe\x9d\x1e\xf3\x1a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\x35\x1a\xdf\xfe\xfc\xfb\x5e\x39\x08\x54\x61\xf8\xbf\xf5\xf5\x65\x2a\x5a\xa5\xa0\x40\x1f\x04\xd4\xf5\x64\x52"[..]); ctx.update(b"\xf1\x52\x84\xa1\x1c\x61\xe1\x29\xea\x06\x06\xbd\x65\x31\xf2\xf1\x21\x37\x76\xe0\x1e\x25\x3d\x1d\xef\x53\x0b\xed\x1c\x3c\x42\xb3\xc6\x8c\xaa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfa\x42\x5b\xc7\x32\xd6\x03\x35\x66\xc0\x73\x56\x0b\x2c\x5f\xe3\x22\xaa\x4f\xa2\x2a\xaa\x3e\xc5\x11\x54\xff\xd8"[..]); ctx.update(b"\xd8\x58\xee\xd9\x42\xfe\x92\x6b\x52\xba\xda\x62\x3f\xb8\xd0\xf1\x84\x58\xe4\x16\x33\x32\xe1\xc1\x8c\x58\x1f\x38\xce\xda\xfb\xba\x4d\x90\x84\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb2\xb3\x08\xdb\x94\x8d\x71\x69\xc8\xee\xbb\x4d\x7a\x19\xbe\x96\xd5\xc4\xb5\x84\x95\x93\xec\x58\x7d\x38\x65\xe6"[..]); ctx.update(b"\x78\xb8\xad\x23\x72\x63\x23\x98\xcf\x56\x71\x7d\xf3\xb1\x41\xa4\xf3\x8d\x5d\x83\x02\x9b\xc1\xf0\x2d\x07\xf5\x29\x49\xa3\x99\x17\x29\x41\x41\xd4\x14"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x71\xbe\x05\x86\x2b\x44\xe9\xf5\x7a\xd9\xbe\x17\xf1\xde\x18\x54\x71\xea\xbd\x11\x1c\x17\x25\xe8\x35\xe0\x96\x25"[..]); ctx.update(b"\xfa\xff\x89\x4c\x4a\x2e\xd7\x0c\x4c\x9d\x67\x03\xb6\xbc\x3a\x3d\x2b\x2c\xba\x8f\x04\x76\x9d\xe3\x50\xfc\x0c\xd0\x19\x30\x05\x6e\xea\x03\xfe\x68\x8d\xa1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x59\xf5\xa8\xc8\x43\xb9\x82\x98\x9a\x08\xe6\x85\x2e\x34\xf0\xc0\x33\x97\xc9\x9a\x87\x86\x4d\xfb\x1b\xba\xfe\x1c"[..]); ctx.update(b"\xe6\x06\x5e\x1e\xb7\xcf\x90\x1c\x3b\x08\xdb\xa4\xae\xca\x7d\x46\x73\xc3\xfd\xbe\x60\x39\x1c\x1b\x5d\x4d\x09\x20\x2d\x7d\xd4\xea\x8b\x6d\x25\xd3\x79\xe7\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xea\x85\x64\xc9\x88\xcb\x67\xe3\x02\xbd\x40\xdf\x21\xa5\xf7\x96\xa0\xa1\x16\x84\x64\x93\xc8\x6c\x3a\x1d\x08\x0e"[..]); ctx.update(b"\x02\x9d\x14\xc5\xa4\xa5\x7a\x64\x9a\x86\xc5\xf2\xe0\x22\xe6\xee\x09\x8f\x29\xc9\xd4\x60\x65\x48\xff\x27\x75\x29\x60\x38\xec\x09\x31\xaf\x05\x85\xac\xb4\xd9\xa0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x71\x66\x68\xcb\xa7\xb1\xc0\xdd\xc1\xc4\xb3\xe6\xfe\x3f\x89\x17\xea\xda\x62\x50\x6b\x68\x55\xe5\xaf\x2b\x54\xe5"[..]); ctx.update(b"\xe3\x08\x9c\x05\xce\x15\x49\xc4\x7a\x97\x78\x5d\x82\x47\x4c\x73\xcb\x09\x6a\x27\xc5\x20\x5d\xe8\xed\x9e\x3a\x8c\x97\x1f\x7f\xa0\xea\xb7\x41\xfd\x2c\x29\x87\x9c\x40"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x75\xa0\xfa\x97\x8c\x45\xd2\x68\x12\x4d\x8c\xd9\xef\x0a\x08\xec\xab\xbb\xed\x53\x41\x2c\xfc\x7c\xb1\xc0\x03\x98"[..]); ctx.update(b"\x90\x1d\xb0\xf7\x0f\x2d\x10\x62\x6a\x8a\xf4\x08\xc5\xd1\x51\x96\x69\x3d\x49\x38\x21\x78\xad\x0d\xe3\xb1\xc1\xd8\xb3\xef\x3f\xf8\xc5\xa5\x9e\x9a\xe2\x86\x93\x2d\x0c\x9a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\x70\xa4\x19\x9f\xe4\xc7\xbc\x33\x07\x60\xc1\x19\x7e\x79\x45\x7b\x16\x44\x76\x4e\x28\xa6\x2d\x38\x6a\x78\xb4"[..]); ctx.update(b"\x04\x31\xa7\xbf\xbb\xec\x1b\xb8\x11\x6a\x62\xe1\xdb\x7e\x13\x46\x86\x2d\x31\xad\x51\x10\xff\x1b\xb9\xfa\x16\x9a\x35\xdb\xb4\x3a\x24\xe4\x57\x56\x04\xec\x8b\x18\xe4\x13\x00"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1e\x75\x90\xe4\x08\xc0\x38\xb7\x94\xe9\x82\x0b\x25\xd0\x11\xc2\x62\x06\x2b\x96\xd1\x11\xdc\xcc\x46\xdc\x67\x83"[..]); ctx.update(b"\xd1\x41\x75\x3c\xef\x2e\x1b\x44\x2e\xb0\x17\x08\xf4\x67\x19\xcd\x86\x53\xb2\x2e\x1d\x97\x09\x07\x3d\x7c\xcf\x92\x42\xb8\x75\xd0\x3c\xf1\x9c\x2b\xfc\x7d\xcd\x59\x6f\x6c\x6a\x83"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0f\x35\x7b\x8c\xa6\x76\xa8\x6c\xa6\x36\x20\xb2\x23\x93\x27\xac\xcb\xd4\x25\x28\x14\xa6\xb8\xc5\x68\x95\xea\x58"[..]); ctx.update(b"\xce\x94\xe0\x12\x6b\x02\x0d\x68\x11\x5a\x5e\xa4\x10\x83\xb4\x71\x7a\x13\xd9\xc5\x7a\x5b\x6d\x0a\xe7\xa3\x23\x7c\x19\xb6\x2d\xd2\xfc\xa2\xf4\x20\x62\xb9\x0d\xfc\x9e\xdb\x68\xe0\x4e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x93\x5d\x39\x1d\x62\x6a\x13\x57\x72\x31\x9e\xc9\x3f\xd6\x52\xbd\x9f\xd5\x68\x01\x07\xc9\x87\x87\x2a\xe6\x72\x12"[..]); ctx.update(b"\xef\xc2\xd8\x1b\x30\x04\x3b\xb2\x6c\x8d\x2c\x7a\x7d\x5b\xfe\x8e\xe5\x79\xe4\x63\x12\x2d\x56\xa0\xe1\x72\xb6\x30\x60\xa8\x34\x95\xd8\x8b\xef\x7f\x0b\x62\x5c\x9d\xba\x78\xec\xb3\x6a\xd0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd9\x21\x47\x89\xb7\xb7\x36\xa7\xb2\x8c\xeb\xff\x88\x29\xa3\x99\x9f\xf0\xc7\x49\x60\x95\xb1\x30\xc1\xe2\xe8\x29"[..]); ctx.update(b"\x5b\x27\xd6\xfe\x99\x81\xd1\x36\xb5\x21\x57\xb8\x39\xbb\x5b\x78\xd7\x84\x4d\xf5\xa3\x97\xef\xbe\x80\x98\x64\x35\xd8\x98\x89\x93\x91\x39\x89\x2c\x3c\x13\xac\xf5\x8f\x56\x70\x43\x15\xb0\xdb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4c\x79\x2b\xb6\xb1\xe3\x3a\x3a\x04\x2d\xd4\xa6\x9a\xda\x80\x2e\x3e\xc0\xbd\x83\x9d\xaa\x88\x63\x5b\x22\x5e\xfb"[..]); ctx.update(b"\x4d\xbe\x12\x90\x52\x4b\xd7\x3d\x9d\xb5\xf2\x1f\x9d\x03\x5e\x18\x3d\xc2\x85\xb8\x5b\xa7\x55\x05\x7c\x76\x97\x77\xbe\x22\x7c\x47\x0e\x36\x79\xea\x9a\x73\x55\xd8\x89\xbb\x81\x91\xea\x2e\xa7\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x33\xa5\xa8\xd6\x11\x9b\xb6\xdd\x7b\x2e\x72\xec\xe8\xe4\xd5\xd0\x2a\xa9\x90\x48\xc0\x45\x91\x69\xee\x9e\x6d\x04"[..]); ctx.update(b"\xbd\xfa\x17\x39\x95\xa5\xb9\x9f\xba\x74\xd8\xe2\x55\xb7\x11\x77\x17\x31\xa8\xe1\x85\x1d\x7d\xd6\x93\x73\x3b\x9d\x75\x67\xd3\xba\xb2\x32\x29\xcd\x7a\x16\x0c\xb8\x39\x9c\x6c\x00\x6c\x21\xc7\x76\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x33\xc9\x34\xb5\x10\x20\x63\x21\x3e\x7b\x53\x67\x5c\x47\xb1\x9c\x39\x7f\xc3\xa5\x1f\xb3\x7a\xb4\x6e\x17\x9b\x10"[..]); ctx.update(b"\x94\x63\xc5\x63\xaa\x1f\xda\x89\x47\x57\x39\x8e\x11\xb0\x4a\x4b\x4c\xee\x0d\xce\x9d\xab\x01\xad\x13\x4f\x44\x9a\x67\x3c\xfb\x38\x83\x49\xf4\x2e\x42\x72\x8a\x79\x77\xce\xc9\x06\x30\xc1\xd3\x80\x3c\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4c\xae\x18\xa3\x9a\x5c\xa4\x51\x2b\x95\x9d\xa0\x6b\xc9\xd6\x3d\x07\x16\x80\x84\xe3\x5a\xaf\x03\xc8\xba\x5d\x8d"[..]); ctx.update(b"\x2e\xe6\xe8\x13\xec\x84\xc2\xad\xed\x58\x00\xfc\x1c\xae\x94\xc0\x90\x54\xe2\x5d\x6b\xf0\xc4\xd1\x02\x96\xd1\xe8\x3e\x9a\xdf\xb3\x42\xa3\xc6\x36\x4d\x01\x67\x61\xe2\x41\xed\x42\x27\xfe\x53\x78\x8c\xfa\x27"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x89\xc6\x92\x9b\x3c\x19\xa1\x47\x2a\x45\x24\xe1\x42\x78\x23\x76\x8e\x46\x45\x1e\x48\xfa\xa7\xa7\xdb\x7c\x86\x04"[..]); ctx.update(b"\x86\x48\x33\xcb\x29\x12\xfa\x44\x92\x92\x87\xbd\x0d\xb7\x98\x49\x68\xe5\x92\x0d\x49\xf9\x72\x5d\xc4\x87\x07\x22\x2d\x65\x5f\x7f\x2b\x6e\x7f\xb4\x0e\x80\x56\x42\x63\xc7\xf4\x50\xc5\x3e\xf8\x4d\xf6\x72\x47\xd7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2c\x10\x2a\x83\x49\xc4\xe3\x62\xab\xd6\xa2\x58\x21\x77\x63\x22\x98\x98\xe2\x7c\x2e\x72\x1c\x73\xbc\x88\x07\x52"[..]); ctx.update(b"\xe4\xdf\xe6\x97\x23\xd4\x30\x83\x4b\xdc\xda\x7f\xa1\x38\xf1\xfd\x26\xf2\x26\x74\xbe\x71\x16\x9d\x91\x4a\xcf\xe2\xb2\x59\x90\x14\xff\x11\xd1\x5c\x48\x10\x83\x74\xb3\xf6\x99\x16\x5e\x78\xc7\xb5\x47\xb0\x8a\x6c\x69"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x52\x31\x0b\xac\xf7\x8d\xdd\x40\xd7\xe9\x3e\xb3\x21\xda\x4d\xe5\x41\xa7\x29\x6f\x98\xf0\xad\x97\x45\x91\x58\x87"[..]); ctx.update(b"\x6a\x30\x00\x17\x6d\x0b\x02\x99\x92\xd9\x21\xe1\x02\xee\xee\x94\xdf\xb9\xb0\x29\xd4\x01\x9e\x4a\xf0\x6f\x51\x7d\xb4\x4d\x78\x03\x6a\x8d\xce\x00\xb9\x0d\x49\xdd\x77\x19\x94\xeb\xbe\x32\xc0\x49\x42\x0d\x37\x07\xe1\xdf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x07\xde\x1e\xd3\xf8\xea\x77\x4a\x8e\x5e\x08\x06\x69\x20\x6c\x85\x72\xed\xbc\x3f\x16\x58\x70\x91\x3a\xb1\xe4\xf6"[..]); ctx.update(b"\x55\xca\xb8\x76\x55\x60\x79\xef\xf9\x8b\xf7\xb9\x0e\x31\x8f\x8f\xf5\x83\xc2\xbe\x55\xde\x88\x2c\x0d\xef\xe6\x99\x6d\x1b\xc2\x25\xa5\x1e\xf7\x12\x7d\xf2\xa5\xcc\x47\xf2\xca\x26\x12\x3f\x17\xe7\x21\x63\xfc\x85\x9c\x34\x06"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x81\x1f\xd9\x07\xf3\xf7\x4b\x9f\x21\x41\x93\x04\x8d\x70\xed\xa4\x4f\x3a\x74\x65\xcd\xb8\x82\x17\x3b\xf7\x9a\x0a"[..]); ctx.update(b"\x5d\xab\x01\x6d\x4f\xeb\x42\xea\x60\x61\x23\xc0\xac\x4c\x32\x59\xcc\x71\x77\xaf\x9c\xc9\x55\xa6\x41\x77\xb2\x9f\x6b\xfc\x58\x4a\xd8\xae\x9a\xbb\x1a\x67\x3a\xc1\x99\x7a\x8a\x73\xdb\xeb\xd2\x0b\x03\xdf\xf2\xf8\x98\x51\x48\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x34\x0b\x5a\x71\xed\x65\x40\x7a\x68\x67\x06\xb0\x68\xed\xb9\x2d\x0a\xd2\xa0\x79\xc1\xc8\x8b\xf7\x8a\xd8\xa3\xa0"[..]); ctx.update(b"\x09\x21\xaf\xb4\x03\xaf\xd3\x1e\x8b\x08\x39\xdc\xc1\x5b\xa2\xc0\xfc\x32\xbc\xc9\x0f\xa7\x8f\xf8\xcc\xd5\x19\x60\xc7\x8e\x35\x7d\x5d\x4c\xc2\xc6\xf4\x69\x00\x85\x83\x92\x3d\xe7\x56\x79\xb2\x4f\x0b\xca\xa8\xf0\xe1\x61\xdf\x9b\x32"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdd\x30\x88\x2c\xda\x21\x44\xb3\x1a\xb1\x79\xe8\xf9\x05\x46\x01\x68\xb8\x75\x8d\x8b\xe8\xd8\x07\x8d\xd6\x10\xab"[..]); ctx.update(b"\xc0\xfa\xcb\x87\xb9\x28\x3d\x87\xfd\xd0\x27\x60\xe4\xfa\x43\x7b\x89\x6b\x13\xde\x28\x78\x6b\xa0\xcb\x19\x2f\x9f\x26\x3e\x5e\x75\xbf\x66\x4f\xa7\x52\x6d\x3b\x20\x73\xa5\xfc\xde\x75\x29\x14\xec\x8b\x6e\xf1\x90\x2d\x1b\x70\xc5\xbd\x1b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1e\x7a\xdf\x07\x37\x57\x2d\x1a\xaa\x5d\x4c\x91\x7c\x94\xd0\x5d\xc0\x92\xd6\xe5\x90\x59\xdf\x65\x94\x90\xf1\xc7"[..]); ctx.update(b"\xe0\xea\xfe\x1a\xed\x71\x9f\xd7\x12\x2a\x3e\xdc\x9d\xf7\xc4\xbe\xdf\xbc\x1b\x0c\x3b\x1b\xe6\x31\x7c\x82\x6f\x9c\x6b\x68\xe0\x1e\xa2\xd3\xb7\x93\x9b\x1e\x74\xc4\x0c\xf9\x94\x8c\x77\xb1\xc3\x3a\xfc\xb2\x4e\x37\x73\x4a\xd7\xe9\xb7\xaf\x4c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc2\x60\x13\x01\x97\xdc\x77\x74\x31\x3c\x75\x84\x3d\xd8\x20\xd5\x89\xa6\x8d\xf5\x9e\x1a\xef\x7c\xf3\x47\xf5\x65"[..]); ctx.update(b"\xc3\x2a\xd1\xf8\x21\xfb\xd8\xb5\xb7\x15\x3e\xa8\xaa\x11\x05\x5e\xa8\xfb\xde\x54\x86\x60\xec\xae\x28\xa8\xcb\x2b\xa2\xa6\xd1\x59\x9c\x6e\x93\x05\xfb\x67\xab\xf6\xbe\xa1\xb9\xdb\x25\x68\xa8\x81\x19\x19\x33\x49\xc8\x34\xa7\xda\x90\xb3\xea\x13"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc9\x1e\xe4\xc7\x40\xa5\x66\x3b\x3b\x19\xed\x77\x8a\x05\x16\xc0\x1a\x3c\x0c\xbd\x3d\xfd\x6c\x09\xef\x1a\xfd\xb9"[..]); ctx.update(b"\x26\x57\xc6\x25\xf5\xea\x51\xf6\x6b\x13\x75\xf4\x79\x12\x3d\x86\x3b\xa0\x51\x4d\x20\x84\x30\x57\x4c\x61\xba\x96\x3a\xd2\xf1\x91\xa6\xb8\x00\x5a\xaa\xd3\x7d\xc0\x27\x90\xeb\xc5\x66\x22\x83\x53\xff\xd4\x34\x2a\xfa\x9e\xe8\x1d\x35\xf6\x09\x7e\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x92\xf1\x33\x4f\x25\x32\x60\xe5\x13\xd5\xe6\xf0\xd1\xa6\xaf\x6e\xd2\xfb\xbc\xdb\x7f\xac\x85\xc3\x9d\x6d\x40\x40"[..]); ctx.update(b"\x56\x55\xc3\x67\x1f\xbd\x82\x88\xea\x14\x94\x4a\xf9\x25\xea\xec\x65\x34\x08\xf5\x62\x33\x65\x0f\xc4\x39\x10\x18\xc2\x2f\x99\x77\xfa\xcd\x2f\xac\xb6\xc5\x06\x2b\x6e\x3d\xfc\x6b\x8e\x83\x7b\x3a\x78\xfc\xa1\x53\xcd\x5e\x9e\x32\xe9\x1f\x5e\x27\xac\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x58\xd6\xe8\x3b\xa0\x28\x33\xba\x0e\x23\xfe\x34\x72\xd2\x8e\x8f\x98\x63\x98\x62\x0f\x74\x64\xff\x18\xe9\xf6\xea"[..]); ctx.update(b"\x35\x0b\xd6\x01\x8c\xbb\xed\x86\xe0\x50\xb3\xe7\xe6\x06\x83\xe1\xf6\x19\xb7\x3b\x4c\x2e\x76\x4b\x74\xee\xcd\xbb\x00\xf4\x01\x8d\x7c\xe9\x24\x5d\xa4\xed\xe7\xe6\xd4\x39\xaf\xc8\xbf\x03\xeb\x89\x64\xa2\xa4\xd9\x3e\xf3\x55\x1a\xbb\xfb\xfe\x1f\xf0\xce\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\xec\x85\x4e\x63\x2b\x2c\x13\x2d\x50\x5a\xff\xe1\xbc\x00\xdd\xbe\x99\x45\x2e\x5b\x59\xba\x76\xa0\x2d\xd8\x38"[..]); ctx.update(b"\x4c\xd2\x73\x24\xc2\x83\x64\x87\x3c\x6d\xdb\xc3\xe3\xa7\xe2\xcd\xa9\xe8\xa7\x2a\xd2\xf7\x22\x01\xb2\x62\xf8\x74\xb8\x73\x9f\x30\xab\x60\xc3\x43\x34\xc2\xe9\x2f\x9d\x48\x53\x3c\xd8\xad\x23\x12\xc3\xe7\xc3\x86\xaa\xa2\x83\xb5\x0d\xec\x84\x4f\xa4\x32\xd6\x36"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xce\xd6\x08\x17\x61\xff\x52\x59\xf1\x32\xaa\x83\x1b\x7a\x1b\x43\x2d\x09\x3f\xc8\x57\xda\x0e\xee\xb8\x2b\xe7\x1f"[..]); ctx.update(b"\xa4\xf2\x06\x3f\xe6\xec\x17\x55\x0d\x7a\xa8\x31\x09\x19\x52\xdc\x4d\xc0\x41\xa2\x83\xc4\x88\x18\x7e\xf9\xb7\x5e\x70\x1a\xb0\xa2\x5d\x6a\xb6\xe5\xcf\x9c\xc7\x02\xcc\xf0\x2c\xec\x05\xa0\x4e\x37\x50\x7a\xcb\xda\x58\xce\xc9\x33\x93\x8a\x8b\x4b\x75\xa4\x42\x5c\xe4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xaf\x6b\x7f\xaf\xcb\xe9\xcb\x25\x00\x3c\x57\x02\x99\x5f\xd6\x56\x36\x5a\x20\xe1\x13\xc8\xe5\xb1\x03\x12\xcd\xf0"[..]); ctx.update(b"\xc1\xd3\x0f\x33\xab\x4b\x41\x0d\x0f\x8a\x80\x9e\xb5\xcb\x68\x1e\xc9\x15\x3b\xde\x26\x69\x3b\x20\xd4\x40\x57\x2c\xce\x35\x0a\xa0\x09\xfe\x81\x08\xb3\xa0\xfc\xae\xb8\xe3\x76\xb4\x8b\x04\x88\x5f\x23\xab\x8b\xb6\x44\x1c\xfd\x4c\xff\xb1\x25\x5a\x7c\x88\xfa\x10\xf7\x79"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x40\x8f\x4f\xae\x70\xd0\xfd\x74\x5a\xe4\x4e\xd6\x67\x40\xbd\xf1\xfe\xc0\xdd\x4e\x23\xdb\x06\x92\x0c\x6f\x8e\xc5"[..]); ctx.update(b"\x61\xb3\x4b\x8a\xaa\xe2\xe1\x9e\x2d\x61\x92\x46\x42\x35\x1a\xde\x2b\xaa\x69\x25\xf7\xa3\xa7\x35\xa7\x2e\x76\xb9\x90\x5b\x77\x5a\x00\x4f\x0f\x7a\x24\x94\x6b\x25\x29\xb3\xc1\x44\xa2\x05\xd9\x14\x2a\xc6\xcd\xd7\x4a\x6b\x0d\xca\x9d\x35\xa5\x56\x31\x07\xc3\x8a\x31\x75\x73"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x19\x65\x8b\x28\x5d\xb6\xcb\x9d\xbb\x4c\xea\xbf\xe6\x71\x43\x4c\xf1\xb8\x54\x55\xa8\xb4\xda\x38\x5e\xad\x83\x0c"[..]); ctx.update(b"\x34\x13\xb0\x9d\x3d\x12\xa3\x33\x68\x0f\x79\x8c\x0e\x48\x87\x76\x57\x9d\x3f\x6a\x65\xf2\x04\x12\xce\xd5\x3c\x08\x50\x60\xa6\xe1\xc0\x61\xed\x6a\x44\xb9\x7e\x31\xc2\x02\x97\x47\x98\x75\xa1\x45\x8e\x0a\xc0\x8d\x08\xe0\xa8\xd2\x81\xe0\xb2\xdb\x34\x9e\x2f\x83\x1c\x7f\xfc\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x00\x8a\x3c\x6c\xa5\x78\x53\xad\xb1\xaf\x5d\x44\x59\x5e\x62\x01\x6b\x7a\xf4\x72\x26\x49\x2b\x9f\x3c\x1a\x97\x13"[..]); ctx.update(b"\xb6\xe6\x90\xd1\x7d\x9d\x7f\x07\x18\x55\x02\xbf\x6d\x27\x5c\x84\xe3\xac\x4f\x5f\x77\xc3\xd4\xb3\x0d\x8e\x10\x66\x03\xbe\x84\x41\x0c\x11\x84\x9a\x3c\x18\xea\x30\x5f\x3e\x0b\x56\x8f\x06\xea\x54\x06\x94\xac\x0a\x30\x6f\x4c\xd6\x04\x85\x90\xb8\x95\x70\x3c\xb4\xe4\xf7\x85\x78\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf5\x1d\xd5\x94\xc7\xdf\xec\xce\xf9\x5e\x3d\x40\x24\xbb\x00\xf9\x31\xa9\xe9\x51\x69\x58\xc3\x2d\x22\x59\xf5\xca"[..]); ctx.update(b"\x13\xe6\xb1\xb4\xf0\x21\xd6\x10\xc8\x1c\x97\xf0\xf9\x52\xda\xba\x27\x66\x03\x4d\x81\x5b\x5d\xda\x46\x03\xbc\xf7\x88\xba\x60\xee\x31\x54\x1d\x5b\x43\x53\xb9\xf6\x64\x5d\x96\xad\x99\xee\x90\xf6\x52\x4b\x29\x63\xa7\xb7\xe4\x76\xe1\xe8\xee\xb8\x3c\xbc\x03\x05\xeb\x29\x90\x2a\x5d\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\x90\x0c\x5a\xe3\x07\x4f\xe7\x3e\x6c\x4e\xef\x51\xf7\x85\xe5\x79\x47\xba\xfb\xe1\xd8\xde\xa3\x88\x68\xe3\xd1"[..]); ctx.update(b"\x3a\x30\x0f\x9c\x2d\xc3\x53\x19\x17\x22\x20\x34\x79\x18\x24\xb4\x94\x36\xbe\x4d\xda\x76\x0f\x67\xa2\x1e\x54\x21\x1f\xe7\x73\x94\x93\x5f\xd3\x5c\xc0\x8c\x71\x55\x9f\xd2\x31\xa2\x55\x16\x72\xf4\x63\x24\xe4\x08\x1d\x4e\x9e\x72\x5d\x56\x6b\x9a\x78\x8f\x65\x04\x71\x3e\xc6\xd4\x6d\x46\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd7\x1c\x18\xaf\xd4\x48\x11\x3a\x45\xd0\x6b\xa6\x16\xa1\x94\x5a\x56\x7e\x26\xf3\x36\xcb\x94\xa4\x5c\x25\x19\xd7"[..]); ctx.update(b"\x81\xc6\x4d\x23\x13\xdc\xe3\x12\x6b\xa1\x6d\x32\x16\xc0\xf3\x34\x91\x0f\x06\x3b\x00\x72\x0b\xe3\x22\xfd\xd6\x82\x85\x58\x7b\xae\xf6\x68\x60\xff\x3c\x2b\x97\x15\x06\xe4\x6b\xdd\x21\x79\x39\x11\xee\x19\x82\xfe\x14\x21\x3d\x8a\x72\x41\x72\x75\x58\xdb\x04\xdf\xf6\xab\xcf\x0b\x14\xad\xf2\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc8\x5a\xcd\x75\xec\x4d\xde\xf1\xf1\x79\xf9\x8f\xdc\xf8\xe0\x06\xa1\xd8\x0a\xfc\x14\x74\x93\x10\xaa\x97\x59\x9d"[..]); ctx.update(b"\x09\x64\x5b\x92\x0b\xf8\x17\x35\xd6\xb5\xca\xa4\x3b\xb7\x6d\xfd\xa7\x49\x70\x03\xa6\x59\x5c\x2c\xa6\x2a\xb7\xf5\xfe\x49\x28\x79\x2e\xc2\xdb\x42\x68\x93\x27\x5f\x50\x61\x6e\xb6\x01\x6a\x45\x9c\x50\xbb\xd5\xa3\x54\xa3\x81\xb3\x26\x67\xca\x5d\xe5\x37\x6f\x6b\xfd\x61\xd8\xbc\xa9\xc5\xb4\x4f\xb7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x65\x0e\x31\xa8\x1d\xcc\x7f\x34\x98\x90\x0d\x20\x5d\x61\x1b\x10\x1e\x89\xd7\x24\x3e\x1d\xd7\x75\x51\xb6\xc4\x22"[..]); ctx.update(b"\x3f\xd1\xd8\xfb\x9e\x7f\xaf\x18\xa4\x9a\x1b\xdc\x77\xfb\xa0\x93\xcb\xe0\x9a\xf0\x0d\x46\x19\x99\xe1\x9a\xee\xe7\xcf\x91\x06\xe6\x39\x55\xf7\xa4\x91\xe1\xd9\xa8\xc9\xae\x57\xc0\x0a\x8f\x05\x00\xa8\xd9\xf5\x07\x56\xc8\x85\x84\x96\x1e\x7a\xf9\x74\x0d\x53\xbf\x74\x57\xd7\x4b\xc9\xb4\xf1\xaf\xc7\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\x25\x89\xe9\x42\x89\x0f\xed\x8f\x99\xec\xfe\x02\xd3\xa5\x16\x83\xa5\xda\x58\x2b\xe9\xda\xdd\x25\x30\x5d\x33"[..]); ctx.update(b"\x5a\xf0\xeb\x31\x6e\x79\x3f\xa9\xea\x9d\x51\x41\xfa\x26\xcd\xc3\xcf\xcf\x98\x52\x97\x61\x63\xa8\xac\x1d\x81\xa1\x0b\x5a\xf5\xfd\x09\x6f\xd0\x61\x41\xd3\xba\xa0\xd1\x83\xce\x39\xc6\xa4\xab\x21\xd4\x6a\xc7\xc2\x4b\x38\x07\x43\x46\x09\x8d\x0a\x25\x0e\xd2\x7f\x3e\x98\xf4\x13\xd0\x39\x51\x82\x38\x26\x54"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8f\x4c\x6a\x61\x32\x1c\x6e\x50\x0c\xf0\xdc\x2b\x7d\x7d\x97\xda\x93\x01\xf7\x14\x20\xfa\xc6\x04\xfe\xae\x19\xf2"[..]); ctx.update(b"\xb2\x6d\x32\x33\xb5\x51\x02\x90\x77\xbe\xea\x92\x85\x98\x89\x69\x1a\xc3\x85\x3a\x9f\x97\x2b\x2a\x6e\x8e\x55\xb8\xdb\x40\x91\x4f\x75\x92\x7f\x1b\x89\x2a\x7b\x1d\xe8\x26\x7c\x7a\xea\x0d\x3c\x19\xb3\x05\x9a\x6c\xb5\x47\x3c\x8e\x76\xd1\x78\x8f\x94\x5a\x75\x0c\x06\x8b\x8d\x02\xa4\x6c\xf6\xe3\xea\x1d\xa2\xea"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x4d\x83\x60\xf3\x69\x2d\xef\xa1\x1e\xda\x02\x7f\x94\x09\x9b\x30\x54\xb8\x41\xf8\x09\xd2\xae\xef\xc8\x85\xd2\xb8"[..]); ctx.update(b"\x6f\xb0\xf3\x85\x6d\xcc\x9a\xdd\xbd\x15\x59\x16\xf0\x22\x76\x30\x95\x9f\x01\xc7\x64\xac\xab\x99\xbc\x80\xdc\x43\x50\x52\xff\x4b\x1d\x79\x21\x63\x9f\xd2\xba\xec\x44\x62\xca\xba\x21\x3c\x28\x17\xe3\xa5\x17\x0a\x09\x77\x1b\xd9\x51\xc3\x0b\xcc\x70\xba\x66\x34\x06\xce\xea\xac\xd1\x14\x63\x9f\x21\xed\xc2\x0a\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x71\xf8\xe0\x9f\x91\x1d\xc8\xac\x67\x99\x9c\x10\xc0\x59\xc2\x03\xaf\x4a\xf5\xe4\x36\xee\xd8\xf8\xa9\x7a\x6f\x2d"[..]); ctx.update(b"\x84\x71\xe9\x39\xd4\x53\x14\x86\xc1\x4c\x25\x9a\xee\xc6\xf3\xc0\x0d\xfd\xd6\xc0\x50\xa8\xba\xa8\x20\xdb\x71\xcc\x12\x2c\x4e\x0c\x17\x15\xef\x55\xf3\x99\x5a\x6b\xf0\x2a\x4c\xe5\xd3\xcb\xcd\x79\x0f\x72\x08\x79\x39\xb0\x5a\x9e\xbc\x93\xa9\x05\xce\xcc\xf7\x77\xa2\x0d\x36\xed\xdf\xb5\x5e\x53\x52\xaf\xbe\x8d\xdf\x97"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x06\x5c\xb9\x3b\xb2\x40\x60\x03\x77\x64\x40\xd9\xa0\x2a\xf1\xe4\x17\x0e\x77\x7c\x7d\x2c\x13\xa1\x13\x26\x2c\xe0"[..]); ctx.update(b"\xc8\x7a\x74\x48\xb7\x18\x9a\x11\xe5\x32\xa4\x32\x08\x74\x18\x64\x07\xfb\x32\x47\x0d\x18\x90\x4c\xdd\x51\x2f\xd2\x65\xa9\x96\x8f\x95\x22\x51\x32\x71\x7f\xa1\x46\x65\x4e\x72\x5a\xd9\x26\x8d\x5f\x06\x2e\x0f\x51\x08\xde\x1a\x1a\x34\x0a\xca\xb3\xab\x1c\x6b\x8c\x2f\xa1\xe9\x2e\x36\x07\x87\x1f\x3d\xa4\xd4\x05\x5f\xfb\xdc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa3\x9c\x7c\x5e\xac\xdb\x22\x66\x95\x87\xa1\x84\x6c\x29\x75\xb4\x1f\x9b\x74\x83\x3d\x99\x79\xde\x2d\x7f\x11\xc2"[..]); ctx.update(b"\x26\x46\x5e\xa0\x6d\xbb\x61\xb4\x19\x3a\x98\x2c\x98\x4a\x03\x58\x08\x5f\xd6\xf1\x4c\xa0\x27\xff\x60\xed\xe9\xfa\xe9\x21\x1d\x30\x11\x94\x47\x66\x91\xe5\x1f\xc2\x0f\xf6\x8a\xe9\xab\x37\xc8\x64\xd5\x28\xef\x48\x61\x19\x98\x16\xdd\x34\xd8\xe0\x22\xbe\x72\xad\x29\x9a\x4a\x1f\x20\x0f\x1d\x53\xbd\xcb\x70\x09\xd3\x27\xc6\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\xaf\xd5\xf9\x23\xbc\x7b\xae\x23\x4f\x14\xff\xd6\x62\xf1\x74\xb4\xd1\x79\xc7\x24\x1d\xdb\x57\x57\x6f\xe5\x02"[..]); ctx.update(b"\x5d\xbf\x5c\x27\x11\xe2\x6f\xba\x34\x23\xec\xbf\xf0\xd5\x6e\xb8\xc9\x34\xcb\x6f\x78\xee\x8e\x96\xf6\xe2\xa8\xaa\xd7\x27\x62\x1d\xd9\x50\x96\xb3\xbd\xee\x1f\x2d\x55\x57\x8e\x25\xdf\xa6\x1e\x39\x91\x03\xeb\x6b\x75\x25\x5e\xc8\x77\x14\xec\x48\xbd\x34\x00\xf6\x36\x7f\x35\x50\x76\x12\xc9\xf1\xc1\xeb\x4f\x6d\x65\xf1\xa3\x7d\x4d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xec\x5a\x13\x99\x36\xf2\xc4\x2a\x1f\x41\x10\xe2\xc5\x2b\xf7\xc3\xcd\x3b\xae\x49\x95\x5c\x60\x8f\xad\xfa\x16\x3d"[..]); ctx.update(b"\x25\xbe\x46\xe3\xdf\x25\x95\xaa\xaa\x9b\xe9\xd2\x10\x17\xaa\x2d\x64\x30\x67\x20\x48\x8c\x79\xb4\x71\x9c\xe3\xea\xaf\x86\x7d\x4f\x27\x63\x52\xd1\xe3\xab\x46\xd1\x8e\xed\xfc\x79\x78\xc4\xf6\x50\xe1\x06\xfe\x0b\x73\x3e\xc5\xa7\x10\x5d\xcb\xb4\xce\xac\x7e\xf4\x40\x05\xa6\x24\xf8\x43\x00\x1a\x49\xf7\x29\x10\x52\x5d\xbe\x40\x37\x8e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x27\x6a\x0d\xbb\x54\x2f\xb6\x9e\xd4\x09\xa9\x19\x94\x62\x5f\x84\x69\xb0\x51\xbe\x25\xb5\x96\x8b\x3a\x6f\xb0\xe3"[..]); ctx.update(b"\x2b\xf6\x9b\x4b\x50\x31\x2f\x07\xfc\xd6\x8d\x46\x6e\x32\x9c\xea\x51\x5a\xf2\xbc\x9b\x78\xdf\x5e\xb6\x64\xae\x82\xde\x74\x27\x5a\xca\x94\x59\x4f\x8e\x99\x96\xf6\xc0\xd2\xbe\x40\xd9\xe0\xc1\xf1\xdf\xc8\x5f\x53\x41\x47\x32\x2b\x03\x66\xef\xec\x1a\x4d\xe9\x2b\x1a\x5c\xd6\x53\x0e\x78\xd6\x9a\xa7\xa3\xb1\x33\x9a\xd0\x60\xc5\x43\xf5\xd0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\xa6\x61\x10\xf9\x3a\xd7\x87\x39\x23\xb9\x73\x36\xc2\x3e\x87\x64\x2e\x79\xc7\x89\x7d\x90\x11\xdd\xec\xf0\x3a"[..]); ctx.update(b"\xa8\x1a\x32\x13\x9d\x69\xfb\xd6\x40\x00\xf8\xd4\xa6\xee\x10\x29\x0c\xcc\x83\xe8\xc9\xe7\x7b\x60\x81\xa2\xe5\x9e\x9c\x15\x7e\x33\xf6\xfa\x31\x37\xd8\xca\xa0\x8d\x28\x23\x01\x69\xdc\x6d\x2b\x10\xb4\xbd\xf0\xdf\x29\xf9\xae\x8f\xa1\x3e\x21\xb7\xe4\x7e\x7b\x92\xd3\x6e\xb7\x03\x58\x9f\x2a\xd6\x99\xea\x5b\x49\x71\x12\x14\xcb\x20\xa5\xb9\x03"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x41\x43\xfa\x44\x8d\xe5\xeb\xc1\x4a\xa2\x04\xd9\x34\xee\x39\x71\x05\x1c\x4e\x30\x74\xd4\xca\xaf\x0c\xc6\x2a\xf1"[..]); ctx.update(b"\x47\x1e\x43\x4b\x7e\xf3\x9a\x05\x51\xb2\xed\x92\x50\x00\x63\x53\xec\xd9\x15\xc8\x2b\x77\x64\x9e\xa1\x76\x8f\xe9\x9b\x35\x85\xae\x9d\x7f\xf7\xa4\x0f\x6b\xb2\x3b\x33\x80\x2c\xde\x5a\x1d\x5c\x75\x58\x18\xcf\x2f\x35\xa6\xf9\x7e\x25\x7b\xc9\x63\xba\x32\x80\xeb\x59\xee\xc2\xfa\xeb\x42\xed\x47\xd4\x4e\xab\xa8\x29\x2b\xc3\x90\x1d\x8a\x35\xd5\xbd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa1\x2a\x51\xa5\x9f\x11\x6f\x87\xf7\x57\xf2\xfd\xe3\x0e\x11\x98\x0d\x7d\x96\xeb\xc9\x59\x77\x4a\x73\x4e\xde\x74"[..]); ctx.update(b"\x3e\x34\x6c\x6a\xaf\x8f\x97\x76\x20\xc3\xac\x68\xfb\x60\x8a\xef\x43\x2d\x6c\xab\x29\x6d\x1a\x93\xda\x62\x61\x94\x9c\x10\xc0\x7a\x19\x43\x64\x14\xfa\xd3\x57\x93\xb8\x27\xf4\x34\xaf\xf8\x9e\x1f\x75\x57\xb1\x8e\x69\xf2\xb9\x31\x8f\x93\xe2\xd2\x9b\xe9\xb0\x35\x4b\x8b\xf0\x42\xfa\x3a\xef\x65\x73\x66\xe9\x36\x03\xf4\xc4\x55\xd2\x3f\xfe\x98\x72\x5d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x30\x74\x67\x39\x6d\x59\x10\x3a\x89\x7e\x6a\x5b\x16\xdb\xaa\x2a\x0d\xc3\x65\xe2\x23\x95\x46\x5a\x03\x5f\xd2\x93"[..]); ctx.update(b"\x1c\xe1\xf0\x1b\x46\xb4\xc9\xe0\x4c\xe4\xb5\xe2\x2f\xbb\xed\x4b\x02\x54\x27\xc5\x58\x48\xb0\x3d\xf9\x8b\xbb\xe7\xd9\x90\xf9\x83\x4a\xb4\x69\xde\x70\xd9\x72\x9b\xf5\x51\x2f\x33\xff\xff\x0a\x3b\x5f\xb8\x8c\xe6\x0c\xef\x73\xca\xcf\x92\x05\xe7\x3f\x2f\xa5\xe5\xf0\x5b\xa4\x9d\xe8\x54\x59\xdb\x52\xe5\x74\x62\x77\x8a\x8f\x31\xe9\xd5\x06\x05\x01\x10\x09"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\xa9\x4e\x26\x39\x44\x85\xeb\x0a\x9e\x3f\x3d\x3d\x9a\x60\x83\xb3\x5d\xae\xd5\xf0\xc8\x89\xbc\x78\x92\x4c\x35"[..]); ctx.update(b"\xd6\x24\xf6\x3f\x53\xbe\x3d\x6c\x0a\x20\xc1\x22\x63\xe4\x43\x6e\x46\x24\x07\xd7\x2e\x3d\x85\x42\x80\xd3\x61\x13\x1c\x16\x9d\x95\x31\x43\x0e\x9c\x55\x6d\x0c\x69\xd5\x7d\x6e\xcd\x49\x78\xb6\x92\x6c\x00\x88\x16\x2b\x1e\x61\x39\xfc\x3e\x85\x79\x71\x7b\x39\x5c\x0d\x1d\x33\x0f\x56\x60\x4f\x4c\x2b\x78\x83\x80\x58\xd1\x15\x2e\x68\x9b\x0b\x8e\xbb\x86\xe4\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\xcd\xd5\x23\xd9\x22\x36\x2a\xd4\x63\x21\x6f\x34\x0f\x25\x4e\x76\xaa\xaa\x0b\x45\xf6\xdf\xfc\xa3\x0d\x55\xd0"[..]); ctx.update(b"\x7f\x60\x11\x32\xa3\x83\x3a\x3e\x2a\x33\xa0\xf1\xa0\x58\xd6\xa2\xdb\x06\xf1\x1e\x39\xaf\xec\x88\x29\x97\x4b\x64\xed\x89\xff\xee\x9e\xc9\x8a\xb0\x70\x49\x63\x53\x37\x1f\x9c\xb6\x2a\x37\xc2\x3d\xe7\x45\x05\x6c\xb8\xfe\x98\xb4\x15\x88\x5b\x8c\x6a\x2f\xb8\xc4\x1a\x59\xca\x16\xc3\xbc\xc5\xff\xc4\xce\x92\xcd\xfc\x7d\xb9\xf8\xd5\x21\x84\xb5\x81\xaf\x62\xc9\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x10\x87\x1c\x0e\x56\x2e\x11\xaa\x59\x40\x6e\xb4\xbc\xc8\x32\xef\xe4\x94\x22\x60\xef\x08\xcf\xcf\x99\xe7\xdb\x58"[..]); ctx.update(b"\x12\xbf\x3a\x33\x37\xd3\xb6\xd5\x53\xbb\x8c\xea\x92\xc3\x69\xb9\x30\x04\x8e\xd2\x90\x2c\x81\xf0\x88\x82\x03\x24\xff\x24\x43\x30\xbb\x93\x51\x31\x74\x72\xd5\x82\x2d\x8b\x01\xdc\xc4\x13\xc4\xc2\xc7\x2f\x41\x1c\x89\xb7\x7f\x22\x75\x39\x62\x7b\xa3\x41\xda\xa6\xa9\xd7\x5a\x9a\xb4\x4a\x8c\xa9\xd7\x2c\x43\xaa\xa2\x9e\xb1\x57\xf7\xce\xda\xf4\x19\xbd\x48\x32\x06\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6f\x76\x38\x86\xf2\x73\xaa\x5f\x94\x3e\xce\xcf\x7b\x76\x5d\x83\xed\x1a\x78\xb4\x3a\xbe\xf2\x59\x07\x22\x6b\x52"[..]); ctx.update(b"\x42\x4f\x1d\x07\xb7\x08\xe6\x0c\xc4\xd0\x03\x96\xcb\x0e\x90\x59\x7f\x39\x77\xae\xa7\x90\x4b\xe6\x1f\x0b\x74\xde\x1f\x91\x8d\xd3\xbf\x6b\x0a\x78\xbb\xf9\x1e\x46\x74\xa3\xdc\x14\x38\x13\x9c\xe7\xc3\xa1\xa0\x0b\x06\x0f\xf7\x63\x27\x77\xa2\xfd\xc8\x81\xf6\xe9\x8c\xd9\x41\x4c\xd7\xe1\xb0\xb0\xd6\xa3\x70\x9e\xc0\x09\x14\x6f\x5b\x50\x37\x5f\xc1\xba\x62\xe3\x64\x83\x30"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x77\x42\xc1\x51\x1f\xc5\xa0\x29\x76\x34\xfb\x3d\x92\x8a\x05\x86\x26\x51\x8b\x7f\xb8\x8d\xb4\x28\xe2\xa2\x82\xae"[..]); ctx.update(b"\x87\xe1\xb9\xed\xc7\xc6\x57\x69\x98\xca\x27\xa4\x1e\xcf\x90\x41\x03\x27\xad\xb9\x6d\xb5\xe8\xa1\x2d\x4e\xca\x2c\x3a\x65\x11\xf0\x5d\xe8\x03\xed\x2d\x65\x03\xcb\x3e\x71\x62\x63\x96\x4a\x77\x81\x60\xbb\xf2\xe8\xe5\x40\x6d\x97\xb7\x6b\x44\x4b\x2f\x86\xa7\x45\x1a\x7a\xed\x4d\xb0\xf0\x2b\xf7\xc6\xb5\x06\x25\x44\x63\xc5\xcd\xd8\x3e\xab\xfd\xec\x5c\x83\x1c\xd6\x09\x7c\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x43\x31\xfb\xe4\x8d\x8a\x7f\xd2\xe6\x9a\xb0\x27\x95\x09\x13\x1d\x44\xeb\x13\x24\x27\x31\x17\x24\xe2\xdc\x19\xcc"[..]); ctx.update(b"\x8f\xd0\x70\x56\x84\xca\x32\x3c\x8a\xce\x2e\x77\x91\xd4\x07\x69\x7d\x05\xd5\x22\x35\x7d\xd2\x3b\xf6\x4f\x55\x01\xee\xc9\x05\xd7\x06\xfa\x46\xd5\xff\x72\xf8\xb5\xc0\x49\x61\xf0\xee\x63\x67\x24\xbe\xf1\x03\xb9\x07\x3b\xf2\xc4\x9c\x9e\xae\x2b\xd8\xd0\x9c\x0b\x7a\x6c\x87\x56\xb3\xaa\x4d\xc1\x7e\x6d\xd8\xdd\x30\x84\x50\x83\x50\x29\x8f\x76\xa8\xce\xd6\x44\x9c\x1a\xbe\x6d\xbb"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x43\xee\x3b\x23\x4e\xa9\x12\x28\xc0\x53\x58\xfa\x56\xbb\x50\x72\x03\x1f\xa4\x13\xbe\x37\x14\x13\xa2\x57\xa0\xda"[..]); ctx.update(b"\xbd\xcc\xba\x55\x40\x77\x61\xa6\xb9\x0a\xe8\x8e\xce\xa8\xb9\x5c\xe1\x3a\xe6\x6a\x34\x06\x6d\x50\x51\x84\xbb\x58\xa9\x6c\x6e\x32\x7b\x14\x5f\xe9\xf7\xf9\xe0\x16\xa4\x9b\x42\x54\xff\x8f\x9b\xf3\x65\xcf\xc5\xf1\x32\x54\xaa\x25\x2b\xe7\xbf\xbe\x19\x34\xcf\xec\xb7\x20\xfa\xdd\xce\x5c\xfd\xeb\x9f\x3a\xb4\x14\x81\xc0\xdd\xaa\xcb\xfc\x1e\x4b\xf4\x96\x4a\x14\xf9\xac\xe0\x12\xff\xd9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x21\xfa\x86\x6d\x86\x95\x00\x80\x99\xe4\x00\x21\x0d\x04\xa2\x01\x37\x01\x88\x7d\x7a\xfa\x98\xe8\x32\x4e\x96\xde"[..]); ctx.update(b"\xa8\xaa\x23\x6c\xde\x55\x7d\x8d\x36\x5e\x6e\xd3\x56\x63\x6e\xe9\x11\x7f\x7a\xe9\xe6\xbf\xb7\x72\xc9\xda\x59\xfb\x27\x1c\xc3\x67\x24\xa4\xef\xd9\x27\xcf\x11\xc9\x98\xf4\x77\x58\xe8\x52\xb4\xe0\xd2\x46\xfd\xd0\xe1\xc2\xd3\xb7\x33\xfa\xe3\x9e\x7c\x60\x2a\x9b\x4d\xd3\x5c\xa3\x97\x13\x87\xa0\x6b\x79\xf3\xc3\x03\xe5\x4e\x1c\x06\xf7\x05\x68\x08\x82\xf5\x2a\x50\x3d\x43\xfd\xdf\xbc\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x10\x2f\xb3\x63\x2c\x67\x52\x24\xb3\x0f\xfa\xa5\xa3\x22\xae\xf3\x35\x4e\x1f\xf0\x18\x3c\xdb\xfd\x06\xe5\xa1\x7f"[..]); ctx.update(b"\x44\xc6\xc7\x5e\x37\x7f\x21\xfc\x9c\xd7\xc1\x64\xca\x5c\x4c\xb8\x2c\x55\x38\xa5\x8d\xfb\x32\x39\x92\xe6\xbc\xf5\x88\xc6\x1b\x24\x60\x53\x70\x6b\xf8\x87\x25\xa0\x9d\x0a\x8a\xdf\xcd\xee\xc0\xdb\x41\x9c\xd7\x73\x2b\x0e\x33\x86\xbc\x3f\x34\x07\xe9\xe0\x16\x54\x6f\x4d\x15\xc3\x14\xbf\xd5\x7e\x30\xc3\x02\x92\x6d\xeb\x33\x42\xcb\xc3\x15\xa1\xe7\x06\xc5\x60\x7c\x12\x7d\xe4\x2a\x9a\x73\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb9\xb6\x29\x86\xee\xbd\xb3\x5c\x88\xb1\x2e\x02\x57\x53\x7a\x05\x39\x4e\xf5\xa1\x6f\xad\x01\xc2\xfe\xc5\x7d\x6f"[..]); ctx.update(b"\xd3\xc4\xa0\xb1\x7f\x46\xcc\x56\x53\xbb\xd8\x30\x0d\xfb\x0d\xf6\xd0\xaf\x3f\xb7\xc7\x63\x9a\x83\x0b\xdc\x9f\x68\xc7\xab\x69\xa0\x9a\x02\x35\x08\x3c\xc7\x21\xd4\x65\xe7\x34\x81\xea\xed\x9f\x0c\x29\xd3\x42\x62\xa8\x17\x72\x17\xf9\x12\xfa\x5a\xe1\x86\x5f\x29\xb9\x76\x69\xc1\x13\x3a\xde\x59\xa1\xd2\x91\x0f\x53\x7b\x9b\x23\xc0\x80\xe9\x63\xc7\x53\xf7\xe6\x76\xdc\xda\xfd\x2a\x11\x84\x67\xf8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x49\xe4\x55\x3a\x6c\x26\xe7\xa8\x2c\xf7\x0b\x15\x52\x80\x37\xcd\xd6\x58\xae\x33\x65\x3b\xf4\xce\x8e\x86\x79\x9b"[..]); ctx.update(b"\xf6\xe3\xdf\x95\xa4\x52\x6a\xaf\x67\x1b\x1a\xb9\x34\x2d\xb3\xba\x0a\x60\x43\xda\x82\xb3\x55\xc4\xa8\xd7\x66\x4e\x09\xf2\x9d\x5c\x0d\x9d\xb6\x01\x87\x2e\x40\xe8\x8b\x3d\x08\xf3\x80\x61\xd5\x21\x75\x3b\x55\xb5\xb9\xb6\x58\x95\xa5\x8c\x3c\xf0\xbd\x0d\xa8\x23\xf8\x1c\x7e\xde\x5b\x7a\x0a\x82\xcc\x47\x80\xce\x26\xc5\xa5\xbb\x89\x60\xcc\xa4\xf4\xeb\x04\xaa\x15\x2d\x90\x57\x5f\x9c\x97\x82\x5e\x68"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x48\x54\xcb\x2a\x3a\x9c\x9e\x3e\xc9\x1b\x4e\x7d\x79\xa7\x53\xf6\xe2\x24\x0f\x4b\x6e\x20\x50\x59\x0d\x6f\x16\x47"[..]); ctx.update(b"\xc4\x72\x24\x4b\xd3\x32\x5a\x84\xd3\x72\x20\xe7\xca\x6e\xcd\x40\xe3\xf2\x0e\x52\x67\x7a\x81\x1c\xe8\x98\x7f\x5b\xc0\x96\x39\x50\xba\x5c\x06\xc3\x0e\x95\xfb\x48\x93\x0e\xbd\xc1\x30\x5e\x93\x24\x93\xcc\xbf\x7f\x26\x6d\x0f\x39\x3f\x8d\xaf\x9a\x98\x50\x41\x8d\xfe\x99\x2f\xa5\x4d\x2b\x40\x5f\x9b\x0f\x6a\xa7\xb4\x35\xe8\x9d\xc7\x5e\x8c\x98\x5e\x38\x55\x6b\x93\xcb\x44\xe8\x81\x15\x6c\xa3\xfa\xf1\x49"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd4\x59\x40\x09\x05\xf4\xc1\xee\xff\x90\xde\xcd\x9c\xc9\x94\xb3\x94\xb2\x14\x30\x37\x9d\x63\x28\xc0\x3a\xf4\x36"[..]); ctx.update(b"\x8f\xf0\x52\x08\x05\xa3\x36\xaa\x76\x8a\x1a\x75\xf2\xbe\xc3\xea\x87\x6a\xc2\x24\x6f\x2d\x49\x60\x87\xbf\x3e\xbc\x03\xd8\x8e\x3f\x60\x4d\xc4\x1a\x9b\x7c\xda\x2d\xa1\xeb\x4e\xcd\x06\x2c\x79\xc5\xf9\x04\x1d\x9a\x78\xcc\x3d\x14\xc0\x16\x31\xf9\x08\x94\xf9\x1c\x6e\x36\xd2\x96\x32\x93\x07\x54\x22\x8a\x0a\xd2\x55\x29\xc3\x25\x1c\xcd\x28\x3f\x36\x8b\x0e\x6f\x43\xcf\x3e\x27\x7b\x43\xcc\x02\xa0\xf3\xa4\x05"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x61\x6f\xa8\x49\x5f\x55\xe7\x7a\x30\x8c\x22\x3a\xfe\x47\x0b\x42\xc0\xe1\xa0\x14\x57\x4a\xa3\x6d\x01\xf4\x84\xbb"[..]); ctx.update(b"\x6a\x4c\xef\x9b\x8d\xca\x0a\xd7\x76\x75\x15\xc8\xa6\x1a\xc3\x2c\x73\x0b\x28\x94\xb6\x0a\x10\x6b\xc5\x69\x95\x34\xa1\x70\xf1\x13\x70\xff\x90\x8f\x2d\x74\x6a\x96\x9e\xcf\x8f\xc1\x86\x15\x03\xda\x1d\xf2\xcd\x9c\xbd\xa1\x4b\xb9\xde\x11\xc8\x22\x44\x40\x50\x82\x77\xeb\xc3\x0b\x74\x6a\x29\x76\xa2\xd6\x45\x45\x07\x6c\x6d\x4c\xbc\x36\x99\x6f\x9e\xe8\xb9\xad\x47\x08\x4c\x5e\x3d\x51\x2e\xb8\x68\x5a\xb1\x98\xca"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd2\x04\x90\xeb\x96\x33\xa3\x21\xa6\x9e\xb2\x7d\x42\xdd\x61\x9a\xce\xee\x53\x3e\x85\x00\x75\xfd\x16\x58\x9b\xef"[..]); ctx.update(b"\x9a\x4f\xd4\x4a\x08\xd9\xf5\xe7\x73\x16\x03\xac\x92\xb1\x8e\x3d\x88\x0f\xf2\xd5\xb9\xd7\xce\xe6\xdb\xb2\xb7\xff\x50\x4f\x2d\xf3\xb3\xab\xcd\x38\xb1\x8f\xc9\x8d\x1a\x5a\x96\xdf\x37\x00\xe4\x6e\x5f\x53\xd3\x2c\xc5\x81\x64\x65\x94\xde\x2d\xa5\x3e\xe4\x52\xd7\x10\x78\xb0\xaa\x0b\x6f\x5b\x39\xef\x51\x4b\xea\x98\x5d\x52\x96\x8d\xcd\x51\xeb\xd7\x5b\xac\x0f\x0f\x03\xfb\x86\xbb\x0b\x03\x56\xdb\x41\xe4\x69\xbe\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbf\x3a\x90\xe1\xe0\xe8\xb1\xa2\x0b\x08\x33\x1d\xa3\xc1\x99\x6c\x83\x95\xa1\xe3\xb8\x35\x79\x9f\x87\x9c\xc7\xdf"[..]); ctx.update(b"\xaf\xce\x17\x3b\x05\x7b\x48\x40\x6e\x16\x35\x84\xc8\xd8\xc1\xa9\x3b\x15\x80\x46\x12\xc2\x27\x8d\xca\x34\x41\x2b\x69\x2a\x24\x70\x12\x0e\x24\xb0\xd5\x78\x06\xe9\xcb\xf4\xb8\xa5\x63\x05\x3f\x22\xf7\x6a\xf0\xb1\xa3\x9f\xe3\x5c\x56\xa7\xa5\xcb\x29\x09\x2d\x69\xf0\x19\x11\xc2\x0f\x78\xfa\x2f\x90\xde\x56\xb6\x72\x17\x4c\x2c\x43\x4c\xf5\x9c\xf1\x84\xc9\xed\xdd\x6a\x57\xbe\x31\x51\x3a\x95\x74\x75\x48\x39\x5b\x84\x0c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\x3d\x08\x13\x91\x39\xaf\x96\xf2\x28\x10\xc8\xe8\x44\x3a\x78\x1c\x88\x34\x4b\x73\xb9\xb7\x17\xa9\x7f\x4a\x04"[..]); ctx.update(b"\x54\x21\xcb\xce\x30\x7d\x2c\x89\xa2\x7a\x7b\x0a\x1d\x51\x5e\x69\x27\x00\x2b\xb6\x5d\x3f\x09\x90\xb8\xb4\x52\xf3\x10\x6a\x3c\x52\xde\x80\xb9\xe6\x46\x1e\x9b\x45\x55\xad\xfc\x36\x87\x48\xdd\xc4\x8c\x6d\x0d\x91\x4b\xf9\x4d\x6d\x28\x53\xb1\x27\x82\xe7\x49\xa3\x80\xd6\x01\x2d\x0e\xeb\xc6\x0d\x22\xd2\xea\x5c\x44\x84\xca\x16\x4d\x06\xae\x70\x6f\x53\xf0\x6b\x75\x97\x61\xa9\x4c\x9d\xe8\x7f\xc3\x8b\x6c\x4d\x8f\xcd\xf4\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\xc1\xdc\xf5\x93\x42\x49\x91\x95\xa6\x1a\x06\x61\xaf\x7a\x8e\x96\x09\x76\x60\xa9\xf7\xe5\x76\x57\x2f\x3d\x0b"[..]); ctx.update(b"\x5a\xdd\x90\x71\xd1\xd5\xd1\x79\x9c\x0f\x92\x23\x10\x9b\x76\x1b\x7b\x9e\xe1\xc3\x0a\xa2\x00\x25\xea\x30\x0a\x2b\xae\xa1\xc5\x12\xf1\x31\x4b\x1c\x3c\x55\x0e\x85\x2a\x4f\x1a\xb9\xc9\xff\x9a\xc4\x44\xfc\x9e\x0a\xbf\xe3\x1b\x38\x83\xef\x33\x7a\x5b\xca\xb7\xef\x3d\xa3\xeb\x5a\x2d\x81\x89\x1a\x5f\xd7\x08\x5c\x9c\x58\x1d\x8f\xe6\x0c\x83\x18\x5f\xa4\xf8\x47\x67\x0b\x88\x8a\x05\x3d\x0d\xe1\x88\x5c\xf7\x92\x6e\x01\x49\x1e\x84"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0c\x37\x04\x10\xdc\x8e\x22\xee\x61\xc4\x9d\x7a\x3b\xd3\xd7\xe8\x0c\xc4\xf3\xf5\x1a\xcb\x26\xae\x4e\xc5\xa3\xa1"[..]); ctx.update(b"\xe9\x65\xba\x8d\x12\x36\xa1\x0b\x36\x2c\xd7\x5c\xac\xd0\x17\x5c\xad\x0a\xf6\x5e\x13\xd9\xc5\x7a\x60\x47\xb7\x29\x02\x9d\x47\x0f\xd6\xd3\xd4\x17\xea\x4a\x8e\xc5\x87\xbe\x96\xc8\x6f\x76\x61\xcf\x63\xbd\x5e\x9e\xe8\x96\xd8\x61\x4b\xac\x1d\x40\xe3\x88\xe0\x33\x96\x06\xdc\x18\x9e\x0a\xba\x03\x8d\x6f\x35\xd5\x8f\x40\x7c\x10\xf0\x2b\xd7\xe9\xde\x32\x8e\x9f\x6f\xa4\x07\x0c\xe6\x4c\x2e\x7a\x32\xe8\x19\xb7\xb7\xdd\xed\x6c\x51\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\x5c\x4a\x7f\xa4\x91\xe7\xdb\xe3\xa2\xc8\x60\x4b\x07\xba\xb0\xe2\xa2\xe3\x4b\x27\x0e\x16\xb4\x39\x2e\x97\x16"[..]); ctx.update(b"\x31\x41\x58\x33\x6f\xbf\x78\x45\x25\x1e\x1a\x62\x06\x13\xad\x8c\x1a\x59\x96\xe5\x12\xae\x25\xcd\xd9\x1e\xc8\x4b\x6b\x83\x7f\xae\xea\x4d\x90\x74\xef\x7f\x7c\x6a\x1e\xfa\x31\x15\xfd\xfe\x81\x51\x06\xee\xd3\x38\xfa\x53\x19\x45\x79\x24\x02\xb9\xd0\x45\x70\x3e\x12\x4d\x2c\xcb\x6a\x8c\xd9\xc7\xaf\x4d\x26\x71\x39\x58\x48\x7f\xf3\xbb\xa8\x05\xb2\xca\xd8\x99\xc5\x65\xcc\xb5\xce\x79\x47\x5d\xd0\xc9\x93\x01\x88\xef\x75\xa4\x01\x9d\x60"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd6\xcd\x19\x01\xbb\xea\xf4\xb6\x9a\x7c\x21\x1c\x50\x54\x6f\xce\x35\x38\xa8\x38\x84\x60\xec\x29\xff\x81\x66\xdf"[..]); ctx.update(b"\x2c\x2d\x86\x19\x7b\x39\xc1\x94\xc6\x5a\x93\xbd\xad\xc7\x2a\x9e\x59\x0f\xa7\x5f\xa8\xae\x6b\x75\x8a\xdf\x91\x16\xab\xb2\xbb\xf0\x52\x5e\x12\x1a\x89\xd8\x88\x4b\x7e\xa5\x61\x4a\x29\xec\xf1\xa5\x2f\xcf\xa7\xa6\x06\xfb\x4a\x83\x5a\x7e\x83\xd5\xb0\xda\x9c\x4b\x4a\x57\x87\xa0\x4a\x9d\x22\xca\x1a\x81\xb9\x75\x0a\x20\xcc\xaf\x3b\x2a\x13\xe5\xbd\x81\xc0\x0e\xf4\x03\x04\x26\x40\xa3\xd4\xde\xdc\xbf\xed\x92\x07\xae\x16\x7b\x62\x98\xa5\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x49\xda\xe2\x1e\x77\x33\xce\x09\xe3\x92\xdd\x98\x0e\xc3\xa0\xc2\xc5\x42\x69\x37\x6e\x23\x1c\x19\xdc\xf5\xa7\x74"[..]); ctx.update(b"\xbc\x10\x6b\x07\x1b\x53\xc4\xd8\x55\xe1\xa3\xdd\xa4\x1d\xb1\xa7\xa4\x46\x05\x86\xb4\x48\xa3\xfd\x9f\xd8\x42\x74\x7c\xbf\x53\x2d\xd2\x76\x3e\x79\x00\xf4\xef\x2c\xdc\xc4\x91\x4e\x9b\x5a\x99\x13\xf1\xa7\x07\x0d\x78\xeb\xe8\xa1\x56\xcb\x20\xb8\x1b\xa3\x66\xb6\xe8\x1d\x90\xb0\xd6\x03\x11\xda\x95\x51\xc0\x3e\x54\x8f\xdb\xb4\xe1\x5d\x4b\x0e\x12\x50\x29\x93\x63\xfc\x82\xaf\xe0\x52\x57\xe8\x46\x2d\xe8\x14\x65\x27\x33\xc9\xc8\xb1\xb7\x16\x98"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3b\xaf\xf8\xbc\x1f\x43\x51\xfc\x62\xca\x40\x90\x4a\x00\x21\x98\xb5\xef\x69\x24\xaf\xba\x1d\x1f\xc6\x1d\x8a\xe1"[..]); ctx.update(b"\xf6\x27\x84\x8c\x4a\xfe\xcd\x8d\xf3\x3d\xa1\x9c\x60\x6a\xff\x11\x9a\x37\x62\xc6\x1c\x05\x39\xc3\xe6\xa8\x96\x1b\xcd\x6a\x2a\x11\x15\x52\x71\x7f\x41\xa6\x2a\x79\x2a\xae\x0a\x2d\x4f\xbb\xb1\x0d\x6c\x68\xdd\x31\x4e\x20\xde\xf6\xe5\xe0\x4a\xec\x9b\x3e\xf1\xef\xe4\xab\x13\x93\x16\xf5\xd1\xc6\x7c\x10\xe2\xb0\xa5\x15\x87\xde\x02\x8b\xc1\xa0\xb1\xe6\xc1\xaf\x93\x4d\xa0\x13\xa4\xa0\x50\x44\x8c\xba\xd3\x90\x71\xf3\xaa\xbc\x10\xe9\x91\xee\x0c\x81"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2e\x0b\x54\x55\xcc\xe6\x92\x62\x06\x6f\xdb\xf9\x39\x0a\xd0\xdc\x56\x13\x8b\x22\x1b\x75\xd5\x12\x98\xbb\x5b\x2e"[..]); ctx.update(b"\x15\xcb\x77\x7e\xf3\xe4\x51\xb9\x28\xdb\xf2\x88\xe4\x6a\x36\x27\x04\x4f\xf5\xde\x42\xad\xd8\x84\xa9\xaf\x6b\x42\x4d\x6e\x73\x99\x38\x15\x81\xa6\xa7\x43\xc7\xa5\x77\xb0\x2b\xb5\xda\x14\x9a\xda\x4e\x44\x9f\x48\xd0\x9e\x34\xdf\x4c\xa8\xd8\xf2\x59\xf4\xe1\x4c\x23\x47\x14\x75\xa8\xf9\x73\x31\x28\x9f\x56\x4a\xd6\xe8\xbd\x8f\xd4\xc5\xe5\x1d\x5e\xcd\x19\xdd\x46\xdf\xcb\x4e\xa0\x09\xe3\x85\xbe\xa8\x57\x72\x5f\xd1\xfc\x64\x23\xf0\x9c\xcf\x42\xaf\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9f\xa1\x25\x61\xf1\xdf\x9a\x2d\x79\x32\x92\xe0\xf4\xdf\x53\x27\xaf\x52\x93\x36\xb5\xb2\x11\x89\x52\xf5\xc2\x4e"[..]); ctx.update(b"\xd2\x4d\xf7\x5a\x00\xcf\x92\x67\x7b\xb4\x1a\x62\x0f\xae\x51\x97\x23\x93\x7e\xbf\xe1\xf7\xb4\x30\x97\x00\x56\x50\x5d\x76\xdb\x4f\xf9\x1a\xcf\x16\xff\x39\x1a\x7a\x3d\x80\x85\xb6\x55\x12\x7a\x18\xac\xd8\x0b\xfa\x83\x18\x37\xf4\x64\x4a\x68\x50\xc0\x27\x3f\xbe\xd6\x02\x94\x49\xd6\x5b\xb9\x8a\x47\xb2\xff\x1c\xa6\x99\x7c\x50\x50\x0d\x0b\x21\xa2\x06\x93\x6a\x5e\x4d\x8d\x56\x50\x8e\xc0\x18\x32\xae\x4f\xdd\xce\x5e\xf6\xff\x62\xf1\x91\x7c\x48\x6a\xde\xa6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\xae\x12\xea\x96\x52\x26\x9e\xa2\xaa\xfc\x65\x6c\xb8\x34\x24\x74\x6e\xa1\xd5\xd4\x91\xf9\xa1\x59\x59\x4b\x2a"[..]); ctx.update(b"\x73\x09\x63\xb1\xa4\x62\xd2\x34\xe8\x70\x5d\xb9\x27\x8c\xc5\x8d\xcb\x81\x7b\xec\x6c\x9e\x62\xbc\xad\x0a\xd5\x7c\x61\x58\xec\x77\xf3\x5b\xfb\x3d\x04\x3c\x5c\x53\x55\xc9\x6f\x2a\xe8\x10\xde\x4e\x62\x2d\x26\xe0\xb4\x60\x53\x46\xfa\x63\x0a\x21\xa3\xfa\xcd\x7f\xd3\xcb\x7b\x53\x05\x70\x16\x22\xf5\xcb\xc9\xfe\xbd\x99\x2a\xb8\x3e\x4a\xbc\x52\xc1\x11\xb8\xb3\xde\x37\x0d\x9e\x9e\xb4\xa5\xe5\xdc\x00\xea\xda\xf1\x27\x89\x07\x90\x1c\x75\x1f\xee\x4f\x30\x34\x26"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x46\xc7\x04\x6a\xa6\x33\xfb\x5b\xc4\xd6\x95\x2f\x85\x3e\x39\xc5\x3e\x77\x10\x09\x18\x3b\x66\x96\x15\x93\xa3\xcf"[..]); ctx.update(b"\xc1\x46\x0b\x2e\x1e\x38\x5c\x0b\x57\x56\xe2\x10\xbf\xfa\xa8\xf1\xcb\x12\xeb\xc3\xc6\x0e\x71\x05\xc5\xfd\x1c\xe0\xde\xf2\xbe\xae\x95\xad\x2f\xba\x97\x77\x9d\x46\xab\x4e\x24\xd3\xe5\x42\x9e\x9c\x1c\x1f\xbd\x64\x9f\x4c\x57\x71\x24\xf3\x00\xd9\x01\x62\xde\xfc\x9f\xb2\xb9\x52\x2b\xa6\x52\x67\x8e\xd5\xf6\x23\xa0\x0c\x52\x4f\x98\xee\x89\x55\xc8\xdd\x84\x47\x87\x1e\x8a\x23\x6e\x37\x10\x56\xc7\x9c\xd2\x7e\x42\x8b\x22\x74\xea\x35\x80\x8a\x58\x1e\x6c\x11\x26\xc6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd8\x40\x2e\xe6\x34\xe1\x8c\x96\x7d\x11\x0b\xd7\x05\x3a\x30\x2d\xa6\x50\xcc\xb3\x8f\x25\x9c\xbe\xe5\xa2\x47\x15"[..]); ctx.update(b"\x48\xa8\x4e\x3c\x48\x50\xa2\x9e\x43\x3c\x8a\x24\x3b\xf4\xbe\xb0\x5b\x8a\x5b\xff\x38\xcc\x41\x81\x58\xbf\xb9\x68\xf1\x49\x5c\xff\xf2\x2e\x30\x3e\x47\x3e\x13\x9b\x59\xcc\x5d\x22\xd5\x61\xc1\xc8\xaf\xb2\x74\xfd\x66\xd0\x91\x80\x89\x9f\xbd\x77\x7a\x89\x07\xbf\x72\x73\x11\x81\xc5\xf0\x75\x06\x68\xb5\x62\xcc\xb0\x4e\x86\xd9\x5c\x0f\x31\x4f\xd6\x4c\xb7\x41\xb6\xcd\x16\xc5\x88\x7c\xd8\x4a\xcf\x61\x3b\x2c\x4a\xd0\x90\x86\x75\xe1\xe1\x48\x53\x21\xd6\x89\x6b\x87\xd9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\x48\x80\x8c\x1a\x4d\x1d\xc1\xb8\x2e\xba\xb4\xcf\xfc\x9d\x8c\xf5\xc2\x51\xd0\x45\xdc\x8a\xff\xd7\x56\xda\xe3"[..]); ctx.update(b"\x41\xb2\xb0\x71\xee\x6a\x8e\x0b\xc6\x2e\x9e\x03\xa8\x70\x5f\x6d\xa2\x18\xe6\x9b\x11\x1c\x23\x4c\x0a\x51\x65\x20\xf9\x81\x20\x4f\x88\xbd\xef\x9b\xc3\xf4\xd5\x83\x79\xc5\xc8\xba\xe5\x92\x70\xd7\x8d\xd6\x2c\x4e\x6b\xb8\x56\x9f\x4b\xe0\xc8\xcd\x74\x89\x9e\x12\x8a\xd7\x3e\xd1\xb3\x6b\x96\xcc\xf9\x36\xa5\x97\xf0\x8a\x3d\x4d\x98\x77\x07\x81\x84\x54\xc7\x77\x3c\x9c\xe1\x94\xe1\xfc\x1d\x14\x0f\xa9\xa7\xfb\x07\xf7\x5a\x4e\x0e\x28\x3d\x82\x10\x81\x4e\x35\x89\xa4\x7f\x1c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x87\x76\xf0\x80\x70\xe3\x85\x82\xd4\x60\x41\x70\xa9\xe6\x58\xfc\x17\x03\x4c\xbd\xe9\xe0\x3a\x00\x2e\x72\x81\x31"[..]); ctx.update(b"\x54\xbf\x37\x59\x44\xc0\x02\xcc\xac\x87\xf5\x5f\xf3\xeb\x58\xc4\x58\x44\xf6\x2d\x91\x7d\xdd\x03\xb2\x6b\x5f\xdb\x51\x5d\x5c\xa6\xe8\xf5\xc4\x27\x7a\x36\x57\xab\x7a\xdd\xaf\xf4\xe8\xf5\x81\x76\xbd\xa6\x20\xc6\x89\x4e\x42\x4f\x5b\xd3\x07\x47\xe1\x37\x37\xe1\xd0\x6c\xcb\xc4\x86\x6a\xb0\xbd\xef\x80\xc7\xb0\xa5\xe7\x30\xd5\x5b\x9d\xc8\x20\x7b\x70\xf0\x01\x0e\x59\x91\x4e\xdd\x0c\x5d\x7e\xd5\xcd\x57\x17\xb0\x85\x95\x69\xd2\x15\x44\x7d\x71\xea\xee\x49\xf9\xd2\xf8\x25\xaf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0c\xd6\x90\x73\x6d\xd1\xf3\x90\x69\x4f\x65\xc3\xb8\x9e\x0c\xc2\x26\x9f\x3b\x82\x08\xc8\x06\x92\x9a\x8f\x8c\xb9"[..]); ctx.update(b"\xd9\x24\xb1\x6d\xfe\x2f\x61\x2d\x92\x3b\x25\x66\x9b\x45\xd9\x11\x7d\x30\xa3\x53\x1d\x5d\x30\xad\x47\x7c\x41\x73\x4d\xa2\x67\x7f\xf1\x9b\x0a\x26\x85\x81\xb0\x6b\x51\x8d\x7c\x73\x35\x2e\xf5\x39\x90\x58\x0a\x83\x60\x1f\x52\x15\xaa\x84\x98\x24\x1c\x8f\x96\x0d\xf1\x9e\x01\x47\x15\xfc\xc6\x96\x89\xb5\x94\x82\x0a\xa9\x9a\x08\xed\xe0\x92\x8f\x4e\x1d\xfe\x1e\x69\xb6\xb1\xcb\x48\xa2\x92\x77\x9f\xd4\x9d\xb8\xf4\xc7\x2a\x17\x02\x5b\x72\x7c\x60\xdf\x4f\xe6\x5e\x6f\x43\x5f\x30\x80"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x30\x4e\x38\x68\x92\x50\x38\x0e\x32\x25\x05\xb4\xe2\x3f\xff\x35\xb3\x41\xe2\xd9\x4c\xc6\x2c\xfb\x44\xb5\x1d\xb5"[..]); ctx.update(b"\x7d\x2d\x12\xb3\x51\xa7\x03\x06\x23\x0e\x7d\xcc\x76\x64\xca\x38\x83\x92\x80\x93\x39\x5b\xa8\xd5\x82\x8f\x1f\x76\xc8\x81\x3d\x82\xb8\xba\xb5\xec\x45\xef\xbc\x24\xf0\x31\x6e\xeb\x47\x64\x6d\x67\xac\xf2\xcb\x72\x58\xc1\x2a\x38\xa0\x62\x21\x01\x76\x8b\xe2\x4b\x32\xc7\x1a\x1c\x93\x6c\x19\x96\x00\xcd\x33\xcc\x14\xb2\x66\xd4\x5a\x05\x3d\x1e\x55\xce\xf3\x03\xc4\x62\xdc\xa1\x23\xd6\x01\xe7\x75\xba\x0a\xec\x41\x04\x62\x85\xdb\x4b\x95\x16\xe4\x36\xfd\xa8\x14\x33\x9d\x3c\x37\x6c\x4d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x40\xa7\x94\x7a\xad\x6c\x1e\x73\x43\x6d\x78\x67\x20\x38\xfb\x99\xa4\xed\x7c\xb1\x45\x44\x5e\x27\x66\x43\xcf\x38"[..]); ctx.update(b"\x5f\xee\x68\x78\x02\xa5\xaa\xc1\x33\x29\x17\xcc\x5d\x0a\x94\x39\xad\x95\xc7\x64\x21\x9b\xce\x45\xe2\x74\x30\x94\xd3\x44\x13\x30\x6a\x7d\xb0\xc1\xbf\xa5\x05\x9c\xe2\x5a\xc9\xe8\x72\x93\xa5\xff\x6b\x28\xa1\x17\x40\x95\xdd\x22\x2a\xfb\x81\xf3\xbf\x67\xf6\xa1\xc6\x57\x57\x30\x4a\x7a\x22\x6e\xed\xb8\x34\x1c\x7f\x72\xf4\x4e\xcf\x0b\xce\x15\xc1\xa7\xe3\x5a\xa1\x32\xfe\x0d\xb7\xa5\xca\x80\x1c\x84\x43\x0d\xcc\xab\x6b\xff\xfb\x4b\x3e\xb0\xad\x30\xe7\xee\x81\x45\x34\xa3\xcd\x59\x48\xb5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd6\x65\x7f\x11\x5d\xb7\x59\x44\x47\x44\xa1\x25\xe4\x0a\xde\x36\x1d\x8a\x40\xfd\x88\xc9\x11\x87\xdc\x5a\x50\xb3"[..]); ctx.update(b"\x69\x67\x30\xb7\xec\xa2\x70\x66\xd5\x41\xc4\x15\x0a\x22\xe6\xa6\xb0\x62\xc9\x51\xf2\x17\x7d\xf6\xfd\x42\x54\xb1\x4f\xff\x43\xb0\x32\xff\x8a\x41\x83\x38\x97\x2f\xb8\xdb\x28\x4f\x22\x87\xb1\x56\x6e\xbc\xfd\xed\x72\x92\x17\x08\x27\xab\x6b\x73\xf1\x66\x29\xad\x27\x55\xea\xfa\xcf\xf2\x96\xb4\xa9\x8d\x85\xe2\x70\x89\xe4\x0c\x5c\xc8\x5b\x4d\xeb\x64\xec\xa9\xe1\xa0\x1f\xa1\x8d\x1e\x5c\x05\x4f\x52\x98\x0a\x57\x36\x34\x9c\xaf\x3f\x21\xf5\x7c\x90\x49\x6f\x81\x6f\x2a\x96\xe4\xf5\xc4\x82\x35"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\x1d\x6c\x2b\x64\x5d\x1e\xaa\x7a\x7d\xd6\x81\x40\xfb\xb7\xc2\x3d\xd4\xac\x03\x47\x88\x7a\x78\x2e\x4c\x34\x42"[..]); ctx.update(b"\xc8\x99\x5c\xe0\x9a\x8d\x80\xb7\x90\x78\x99\x15\xb7\x7e\x53\xcb\x2b\xa0\xb3\x97\x43\x27\xf0\xa5\x09\x46\x85\x55\xed\xfb\x84\x3f\xba\x36\x2d\x75\xc8\x3d\xbf\x07\x74\x4f\x8e\xcd\xcd\x87\x56\x60\x90\x04\xcf\x6a\x57\x47\x81\x20\x0d\xdc\xda\x0c\xa5\x3d\x7e\x10\x0b\xf3\xde\xa8\x5b\xfe\x0c\x6f\x52\x77\xce\xe5\x02\x74\xf1\x6f\xc9\x2c\xdf\x9f\x83\x5c\x74\xb6\xff\xe9\x0e\x67\xb0\xc6\xe3\xde\xa5\x18\x98\x01\xbb\x98\x0f\xf6\x12\x39\x80\xe5\xbd\x0c\xcb\xff\xbe\x60\x0c\xbf\x31\x2d\x70\x6f\xc7\xb3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\x6a\xd1\x6c\x59\x57\xb5\x4e\xe6\x69\x1d\x22\x7b\x2d\x2e\xcf\x93\x48\xb6\x84\x35\xa5\x06\x47\xa2\xcd\x55\xc9"[..]); ctx.update(b"\x24\x7f\x87\x54\xb0\x08\xac\xea\x23\x4d\x3b\x5c\xab\x5c\x61\x3a\x69\x5a\xf8\xfe\xbd\xbc\xf3\xe4\xc5\xbb\xfd\xfb\x20\x01\x5d\x7c\xf8\xa9\x1d\x5b\x3f\x66\x6b\x1d\x38\x02\x3f\xe9\x3a\x0b\x3e\xe1\xb1\xc9\xdf\xb3\x65\x72\xcc\x6a\xff\xa1\x8b\x8b\xc9\x05\x5d\x5d\xb5\x56\x66\x88\xa1\x8e\x0f\xe1\xd9\x55\xa9\x85\xdd\xbd\x53\x25\x65\x2f\x1d\xa0\xa3\xa6\x6d\xd7\xc8\x1a\xa2\xbd\xc9\x40\xf8\xad\x63\x70\xab\x01\x5d\xe6\x60\xe0\x0d\x2e\xc0\x57\x1d\xda\x66\xab\x8f\x76\xfb\xee\xff\xbe\x9f\xd1\x28\x0e\x8b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfe\x66\x02\x6c\x1c\x24\x10\x92\x7f\xa4\x42\xcc\x12\x2d\x5a\xed\x90\x30\x82\x73\x40\x1d\x42\x9f\xd1\xac\x8f\x61"[..]); ctx.update(b"\x93\xdb\xad\xa7\x1b\x89\x0e\x80\xd9\xb8\x8a\x33\x8a\x7d\xf0\x20\xa7\xbf\x9f\xfd\x98\x98\x53\x62\x25\xfd\x3e\x8a\x2d\xa2\x5b\x58\x9a\x18\xff\x98\x94\x38\xb1\x88\xf5\xc5\x3b\x96\xfd\x4d\x01\x6c\x48\x50\x92\x2a\xfc\xa5\x7d\xf2\x47\x18\x66\xaa\x09\x58\x58\xfd\xcd\x11\x5d\xa3\xfe\x55\x4c\xe3\x58\x40\xe3\x56\x9c\xdc\x15\xed\x88\x42\xa5\x35\x06\x02\xf4\xda\xa4\xc5\x18\x6b\x44\x31\x2d\x5c\x14\x0d\xf0\x51\xc1\xa6\x8a\x9a\xe8\x71\xa9\xf9\xce\xf1\xd5\xac\x50\xdb\x02\xa7\x1d\x79\x61\x22\x22\x4c\x7c\x53"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf7\x31\x54\xe7\x6b\x59\x98\xe0\x79\x2f\xb0\xab\x1d\x72\x1e\xe7\x30\xb6\x4a\x1b\x3a\x54\x30\x61\xfc\x76\xcd\x17"[..]); ctx.update(b"\x61\x78\x73\x6e\xa6\xaf\xf4\xb9\x9e\x7d\xa9\x7d\xee\x00\x0a\xdf\x72\xb3\x70\x69\xdf\x8a\xd5\xbb\xa6\x3f\xdb\x7e\x1b\xe6\x10\x9a\xd6\xc8\x71\xa9\x59\x6e\x2d\xab\xf4\xfc\xab\xfb\xe6\xc1\xcd\x82\xc5\x0b\x77\x2a\x20\x40\x4b\x95\x62\x2a\xb7\x10\xf9\x93\x32\xc2\xb8\x12\xc2\x29\x7a\x24\xc2\xc8\x09\x7e\xe2\x19\x3e\xa2\x6f\xc9\x69\xb1\xd5\x24\xf2\x80\x62\xcf\x41\xed\x4c\xb5\xdc\x74\xf6\x43\xcf\xfd\x6f\xd8\x51\xf8\x3b\x77\xa4\xac\x57\xc0\x3d\xcc\x77\x1e\x25\x4c\x92\x41\x9f\x72\xa0\xcf\x0b\x30\xa3\x56\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x33\xa7\x42\x53\x16\xd2\xf6\xbe\x1b\xdb\xb8\x70\xd9\x53\x13\x2d\x55\xe2\x9f\xdf\x85\x30\x46\x39\x77\x94\x09\x08"[..]); ctx.update(b"\x1c\x21\xb5\x84\x23\x12\x11\x1a\x9e\x27\x82\xfe\x97\x91\x7e\x94\x6b\x8d\x65\x98\x7c\x43\xc9\x1b\x27\xed\x0c\xc8\xf6\x3b\x31\x6c\x16\xf6\xec\xb6\x0b\xe5\xfb\x3b\xa2\xed\xb9\xbc\x27\x7b\xf1\xac\xd9\x27\xf0\xed\x9b\x91\xde\xdb\xec\x8f\x4e\x8b\x19\x8b\x13\x54\xb1\x26\x55\x8f\x3a\x21\xe5\x9c\x22\x7e\xce\x26\xf9\xe2\x2d\xa7\xdd\x3e\x42\x2e\x35\xae\xc6\x60\xa2\xa2\x7f\xbc\x32\x3b\x13\x24\xd7\xf8\x1a\x99\x18\x91\x76\x47\x07\x23\xe7\xc1\x73\x8e\xda\x8d\x5e\x1b\x82\xe3\xb1\x63\x2a\xb2\x2f\x6c\xca\xe4\xa8\x14"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdb\x43\xca\x3d\xd7\xbc\xa3\xd8\x99\x64\x86\x92\xe4\xed\x8f\x03\x11\x96\x28\xdf\x31\x3e\x15\x73\x72\x3c\x58\xe9"[..]); ctx.update(b"\x4b\x98\x95\x23\x5c\xb4\x95\x6a\xef\xff\xe8\x15\x41\x52\x52\xe7\xd6\xb2\x19\x21\xbd\x7f\x67\x53\x15\xef\xf0\x71\xd0\xbb\xd4\x29\xb7\x18\xc7\x74\xae\xe9\x6f\x6c\x3a\x33\x0d\x5d\x40\xd1\x60\x1e\x10\x69\xc7\xa2\xa1\x9e\xa5\xca\x1e\x87\x09\x7d\xa2\x60\x8f\xfb\x41\x80\x81\x6e\x47\x8b\x42\xc3\xc4\xe9\xed\xb7\x48\x77\x39\x35\xeb\x7c\xa0\xdf\x90\xde\xc0\xeb\x6b\x96\x01\x30\xc1\x61\x78\x80\xef\xb8\x0b\x39\xae\x03\xd6\x17\x95\x0a\xce\x4c\xe0\xac\xa4\xd3\x6f\xd3\xed\x01\x12\xa7\x7f\x5d\x03\x02\x1e\xb1\xb4\x24\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9a\x91\x76\xe9\x7a\xec\x99\xab\x07\xf4\x68\xf6\xa2\x26\x87\x67\x10\xd6\xd8\x77\x02\x1d\x27\x06\x1d\x4d\x01\x32"[..]); ctx.update(b"\x9e\x12\x78\x70\xbe\x24\x31\xbc\xb4\xf4\xeb\x4e\xfd\x5c\x2a\x6c\x58\x70\xc5\x5e\x7a\x5e\x3b\x75\x03\x99\x4a\x4c\xb1\x36\xbe\x4e\xd3\x96\x88\x78\x01\x45\x0f\x60\x0b\x22\xcb\x77\x2f\xc0\x0f\x8b\x8f\x0d\x26\x90\xe2\x31\xa2\x9f\x69\xb9\xf1\x3f\x24\xf5\x31\xe4\x47\x9e\x45\xb5\xe8\xbc\x29\x92\xfa\xc7\x82\x56\x7e\x0d\x7a\x59\xf8\x53\xca\x3a\x20\xbf\x18\xdb\xdb\xf6\x84\xac\x69\x81\x7e\x2d\xe0\x75\xda\xae\xd9\x53\x26\x59\x69\x2d\x3b\x73\x53\x0a\x12\xdf\x7b\x8c\xd9\xe4\x9e\xd0\x46\x30\x41\x96\x2c\x1c\xe7\xa2\x4c\x31"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7e\x2c\xf6\x22\x66\x23\x53\x57\x84\xc5\x9c\xd6\xa7\xb2\x7d\xac\x60\xee\x23\xfd\xce\x8a\x80\x4d\xbd\x6d\xfe\xdd"[..]); } } nettle-7.1.0/src/hash/sha512_256.rs000064400000000000000000001755720072674642500146540ustar 00000000000000use nettle_sys::{ nettle_hash, nettle_sha512_256, nettle_sha512_256_digest, nettle_sha512_256_init, nettle_sha512_update, sha512_ctx, }; use std::default::Default; use std::mem::zeroed; use crate::hash::NettleHash; use crate::hash::Hash; /// 512 bit variant of the Secure Hash Algorithm 2 (SHA-2) defined in FIPS 180-4, truncated to 256 /// bit. #[allow(non_camel_case_types)] pub struct Sha512_256 { context: sha512_ctx, } impl_write_for_hash!(Sha512_256); impl Clone for Sha512_256 { fn clone(&self) -> Self { use std::intrinsics::copy_nonoverlapping; unsafe { let mut ctx: sha512_ctx = zeroed(); copy_nonoverlapping(&self.context, &mut ctx, 1); Sha512_256 { context: ctx } } } } impl Default for Sha512_256 { fn default() -> Self { let mut ctx = unsafe { zeroed() }; unsafe { nettle_sha512_256_init(&mut ctx as *mut _); } Sha512_256 { context: ctx } } } impl Hash for Sha512_256 { fn digest_size(&self) -> usize { ::nettle_sys::SHA512_256_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_sha512_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) { unsafe { nettle_sha512_256_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } } fn box_clone(&self) -> Box { Box::new(self.clone()) } } impl NettleHash for Sha512_256 { type Context = sha512_ctx; unsafe fn nettle_hash() -> &'static nettle_hash { &nettle_sha512_256 } } #[cfg(test)] mod tests { use super::*; #[test] fn do_nothing() { let _ = Sha512_256::default(); } // CAVS 21.1 // "SHA-512/256 ShortMsg" information for "sha_values" // SHA-512/256 tests are configured for BYTE oriented implementations // Generated on Mon Jul 10 14:34:21 2017 #[test] fn nist_cavs_short_msg() { let mut ctx = Sha512_256::default(); let mut digest = vec![0u8; ctx.digest_size()]; ctx.digest(&mut digest); assert_eq!(digest, &b"\xc6\x72\xb8\xd1\xef\x56\xed\x28\xab\x87\xc3\x62\x2c\x51\x14\x06\x9b\xdd\x3a\xd7\xb8\xf9\x73\x74\x98\xd0\xc0\x1e\xce\xf0\x96\x7a"[..]); ctx.update(b"\xfa"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc4\xef\x36\x92\x3c\x64\xe5\x1e\x87\x57\x20\xe5\x50\x29\x8a\x5a\xb8\xa3\xf2\xf8\x75\xb1\xe1\xa4\xc9\xb9\x5b\xab\xf7\x34\x4f\xef"[..]); ctx.update(b"\x74\xe4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0c\x99\x42\x28\xb8\xd3\xbd\x5e\xa5\xb5\x25\x91\x57\xa9\xbb\xa7\xa1\x93\x11\x8a\xd2\x28\x17\xe6\xfb\xed\x2d\xf1\xa3\x2a\x41\x48"[..]); ctx.update(b"\x6f\x63\xb4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa9\xe2\x42\x7c\xec\x31\x4b\x28\x14\xaa\xba\x87\x03\x94\x85\xfc\x8d\x3a\xde\x99\x2f\xa1\xd9\xac\xbb\x7f\x67\x69\x46\x0a\x73\x17"[..]); ctx.update(b"\x2b\xf9\x8e\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x97\xd4\x55\xe6\x88\x1a\xdb\xb8\xbf\x26\xdd\xc3\xef\x12\x0d\xf4\xab\xb3\x30\xad\xf8\xed\x2a\xc7\xa4\xb6\xcc\xe4\xa1\x72\x70\x68"[..]); ctx.update(b"\x77\xd2\xee\x3f\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x32\x9d\x0a\xe2\x6d\xf3\x64\x6f\xb7\xdb\x0b\x32\x2c\xf1\xf3\x48\x8d\x53\x81\xf6\x6e\xb3\x76\xfe\xe4\x0f\x05\x96\xd6\xd9\xdc\x4b"[..]); ctx.update(b"\x7d\xae\x8f\xc0\x20\xd9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x44\x70\x44\xf0\x3b\xc3\x0e\x2c\xaa\x24\x5d\x26\xce\x4c\x72\xc1\x45\x4f\x70\x8c\xfc\xd9\xa2\x15\x84\x1a\x88\xcf\x5e\xcd\x20\x95"[..]); ctx.update(b"\x5b\x48\xb8\xb0\x1a\x59\xd5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x1a\x86\xb4\xd3\x4c\xd1\x04\xc1\x3b\x5b\x8d\x41\x97\x84\xce\x4c\x6d\x35\x59\x4f\x2a\x93\x00\xe8\x14\x68\xf4\xdc\x06\x34\x83\x2a"[..]); ctx.update(b"\xb4\xe2\xe8\x50\x1f\x54\xbe\x91"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd2\x52\x65\xbf\x9c\xbc\x0d\xd2\xf1\x08\xa2\xf5\xe8\xf6\x9d\xb7\xd1\x5e\x5b\x8f\xe9\x10\x0f\xe8\x87\xda\xe2\x0b\x6e\x05\x4f\xe8"[..]); ctx.update(b"\x90\x1d\xb0\xf7\x0f\x2d\x10\x62\x6a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\x4c\xe7\xa7\x60\xc8\x5e\x67\x87\x2f\xfc\xa1\x72\x2b\x1b\x77\x41\x03\x2d\x91\x39\x21\x10\x77\xf9\x63\xa3\x2d\x9f\x84\x77\x1b"[..]); ctx.update(b"\xf2\x4d\x98\x59\x1e\xe3\xc7\x32\xa1\x72"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xda\x23\x4c\x1d\x6d\x18\xad\x8f\x53\x07\x0e\x4e\x5b\x9c\xff\x75\x38\x5c\x13\xf3\xe4\x4b\x01\x4f\xc4\x5c\x35\x09\xd0\xd0\x6a\xdb"[..]); ctx.update(b"\xbf\xb2\x72\x53\x7f\x02\x1a\xde\x9b\xb3\x30"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7c\x49\xa5\x9a\x3c\x3f\xd8\xe2\x4d\xe8\x58\x54\xf6\x8a\x3b\x7e\xc6\x0c\x20\x31\x74\x2a\x9a\x2d\xab\xf4\x91\x99\xd8\x8c\x2d\xb5"[..]); ctx.update(b"\x0a\x5f\x74\x24\xba\xbb\x5c\xb8\x57\x15\xfb\x17"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\xd4\x0c\x51\x50\x26\x00\xf3\xa0\xee\xc7\xb3\xa3\xad\xdb\xf6\x67\x2e\xee\xcc\x50\xb3\xde\x2f\xd8\x6d\xd1\xc0\xa4\x7e\x8a\x3f"[..]); ctx.update(b"\x57\xa1\x03\x08\xaa\x20\x60\xae\xca\xd0\x5a\xdb\x2d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa5\x20\x8e\xce\x1d\xe1\x34\x2d\x02\xea\x9a\xb7\xcf\xe5\x37\xa2\xc8\x1f\xa0\xea\xed\xb4\x27\xa7\xb3\xcb\x6c\x29\x19\x59\xa6\xa8"[..]); ctx.update(b"\x5e\x46\x74\xe9\x7a\x25\x7c\x23\x1d\x8e\x91\x39\x1d\x0a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa8\x8d\x7c\xbb\x6e\x31\xe8\x7a\x6c\x99\x73\x4f\x59\x9d\x15\x88\xcb\x94\x39\x97\x9b\x82\x10\x80\x0e\xca\x0a\xa2\x06\x7c\xd5\x56"[..]); ctx.update( b"\xba\x10\xb0\xda\x70\xe2\xa0\x17\xcd\xc6\x3f\x99\x6d\xbc\x1b", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf8\xa5\xaa\x22\x93\x74\x53\x71\x9e\xb4\x0b\x1d\xcf\x68\xa3\x46\xe2\x02\xba\x22\x5f\x4d\x7a\xcc\x87\xe5\xa7\x36\xab\xed\x34\x23"[..]); ctx.update( b"\xa3\x48\x19\x96\xc1\x09\xc9\xef\xb6\x69\x2b\x82\x17\x39\x21\xb6", ); ctx.digest(&mut digest); assert_eq!(digest, &b"\xfb\xa0\xf0\x81\x3c\xa5\xc5\x13\xd0\xb5\x47\x41\x9a\x15\xe2\x7a\x70\x97\xd3\xeb\x28\x0a\x29\x8c\x1c\x69\x3b\x55\xe0\x3d\x2d\x2c"[..]); ctx.update(b"\x08\x77\xc2\x0c\xdd\xcc\x86\xb8\x33\xf7\xbc\x2d\xcf\x7a\x70\x9a\x2e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf4\xc3\xa2\x60\x4e\x27\x25\xe4\xd1\x79\xed\xd1\xb4\x45\xba\x48\x99\x79\xf4\xea\x59\x37\xe0\xc6\xb2\x0b\x42\x2c\x72\x0d\x8b\xfa"[..]); ctx.update(b"\x69\x44\x5b\xd1\x2f\x02\x2f\x6a\x66\x9b\xeb\xe0\x46\x77\x29\xf4\xdc\x7c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x26\xbf\x70\x9b\x34\x74\x55\x4a\xb8\xdd\x12\xd9\x52\x4f\xac\xa4\x30\x34\x11\x8b\xd9\x55\xfc\x52\xcb\x1f\x35\x5c\x6d\xf2\x23\x91"[..]); ctx.update(b"\xf7\x51\xf4\x28\xa0\xaf\x0b\x90\xa9\x12\xa3\xbe\x78\xda\xf1\x2a\x76\x5b\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5e\x0f\x8a\x87\x39\xf5\x56\xda\xba\x4d\xa4\xe8\x61\xf3\x9d\x1e\xda\xae\xce\x02\x04\x96\x39\x42\xa4\xe6\x6a\x11\xec\x1f\xcf\x13"[..]); ctx.update(b"\x19\x82\x9a\x8c\x72\x3c\x58\xca\x95\x80\xcd\xf0\xda\xd2\xb6\xd3\x8c\xdf\x60\xa5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3a\xa7\x91\xb3\x96\xab\x81\xdf\x91\x07\x27\x8b\x8d\xd1\xc4\x6e\xe5\x75\x79\xdb\x4c\xf5\xf9\xb8\x3c\x54\xb3\x7b\x0a\x60\x1f\xc9"[..]); ctx.update(b"\xae\x43\x13\x2a\xc3\x0d\xe1\x80\xc2\x4d\xad\xb8\x86\x02\xca\xea\x91\x36\x6b\x8e\x51"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb9\xf0\x14\x1b\xa0\x06\xa3\x98\x39\x72\xdb\xaa\x5e\x2b\xfe\x71\x52\xe3\x81\x10\xe0\x24\x75\xf0\x3d\x84\xb0\xa3\xc7\x43\xcd\xa9"[..]); ctx.update(b"\x8d\x27\x82\xa7\x84\x3a\xa4\x77\xb8\xf3\xbc\xa9\xf9\xf2\xba\xfb\x58\x13\xdb\x4c\x8c\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x54\x24\xb3\x19\x89\x03\x18\x09\xb5\xfc\x89\x69\xb7\xc4\x8b\x5d\xc0\xc2\x33\xfc\x34\xff\xb5\xb2\x23\xcd\x5f\x3a\x97\x12\xa8\xd6"[..]); ctx.update(b"\x72\x32\x1f\xff\xd7\x91\x8d\x4f\x5c\xea\x10\x5c\xb0\xb8\x84\xa2\x35\x6a\xf1\x1e\xbe\x12\x67"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\xe3\xfb\x33\xe7\xf8\x5b\x1a\xd5\x63\x4f\xbb\xce\x9b\x5f\x99\x09\xf3\x32\x9f\x4d\x74\xac\xad\x3d\xd0\x94\x1c\x15\x31\xcf\x54"[..]); ctx.update(b"\xa7\xef\xce\x3e\x31\x43\x3f\xe6\x8d\x75\x14\x5d\x84\xbb\x02\x96\x0f\xb9\x68\x87\x1a\x3c\x2f\x7f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8f\xf0\xbe\x06\x01\xe3\xae\x92\x90\x71\x5a\xed\x30\x63\x4b\x13\xb8\xeb\x6f\x3c\x8b\x32\x94\xee\x9b\x1f\xc3\x42\xc2\x60\x31\x3e"[..]); ctx.update(b"\xd4\xd0\x22\xcf\x90\xe6\x43\x7a\xa0\xbf\xdb\x89\x28\x42\x44\xc1\x6d\xee\x0b\x48\x8b\xc3\x45\xab\x66"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcb\x3a\x62\xfe\xb0\x48\x4b\xe0\xff\x9b\x56\xea\x92\x41\x4c\x70\x83\xf2\xb5\x77\x6e\x88\x35\x08\xb3\xa6\x1e\x57\x30\x5e\xe8\x3c"[..]); ctx.update(b"\x95\xde\x55\x28\x7a\xd3\xcf\xf6\x9e\xfe\xc6\xe9\x7c\x81\x24\x56\xe4\x7b\xe2\x5e\x43\x34\x70\xc3\x25\x9b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x41\xc7\x02\x7d\x16\xe3\x72\x59\x64\x5d\x01\x73\xc8\x61\x41\xf3\x8d\x80\x8e\x9e\x27\xdc\x2d\xfe\xea\xf3\x35\xed\x7c\x99\x49\x0c"[..]); ctx.update(b"\x63\xd8\xcf\xd7\x27\x68\xc4\x49\x20\xd7\xb0\x15\x46\x04\x89\xad\x57\x8c\x06\x3b\xe1\x90\x53\x88\x9c\xb8\x09"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x87\x6e\x59\xc8\xa6\x4f\xaf\x9d\x66\x5f\x7c\xde\x5d\x42\xfb\xb3\x31\xba\x81\x8d\xdc\xd2\x84\x49\x1a\xc5\x1e\xd5\x0e\x16\x13\xbe"[..]); ctx.update(b"\xbd\x2c\x5a\x91\x16\xbf\x0d\x75\xb3\x49\x8c\xe2\xee\x4b\xa2\x86\x8e\x06\xe0\xc0\x47\xec\x40\xb1\x81\x54\x08\x96"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xeb\x53\x7d\xf0\x4d\x51\x2c\x2f\xc8\x44\x02\x0f\x8f\xf3\x2e\x04\x3c\x04\x61\x4b\x88\xce\xa0\xa4\xe0\x5e\x0f\xf3\x2c\xcf\xfa\x06"[..]); ctx.update(b"\x37\xa4\x56\x43\xa2\x80\xa9\xd1\xa1\xc8\x3e\x09\x4e\x01\x17\x3a\xcd\x8a\xa1\x68\x25\x25\x2d\xee\x4e\xb3\xa3\x67\x8c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x80\xbc\xa5\xba\x3e\x63\x2e\x8b\xad\x15\x89\xcd\x02\xd7\x5d\x7d\x3e\x6a\x1a\xa9\xff\x64\xc2\xb9\x82\xd5\x72\xf3\xd0\x0d\x94\x7d"[..]); ctx.update(b"\xa7\xbe\x84\x01\x4e\x8d\x09\xd8\xd5\x16\x57\x78\x9c\x07\xf2\x9f\x7d\xa4\x9c\x5b\x5c\x0f\x83\x6f\xff\xc6\xba\xf8\x20\x6d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc5\x75\xb2\xba\x07\x5a\x63\xc4\x54\x00\x84\x49\x36\x36\xde\xab\xe9\xb8\xdf\x61\x95\x2f\x07\x15\x59\x39\x4d\x4d\xab\x81\x0e\x08"[..]); ctx.update(b"\x93\xc4\x5f\xb9\x1d\xcb\xa4\x20\x82\x0b\xd3\xfe\xe3\x34\xb4\x8f\xdf\x7b\x73\xd7\xb4\x31\xeb\xdb\xa7\x9b\x23\x10\xa7\xfe\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x98\x15\x18\x39\xb8\xf3\x57\x4e\x0a\x0b\x9f\x19\xe8\x4a\xfe\xb1\xc6\x20\xfb\x2d\xce\xf2\x48\x14\x9c\x00\x61\x32\x33\x33\x79\x97"[..]); ctx.update(b"\x1b\x77\xc8\xdc\xfd\x2f\xc4\xb5\x46\x17\x05\x4f\xa6\xb1\x4d\x6e\x9d\x09\xce\x91\x85\xa3\x4a\x7f\xd2\xb2\x79\x23\x99\x8a\xab\x99"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x68\x3b\x48\x68\x61\xe5\x98\xda\xbb\xa7\x40\xac\x91\x95\x22\xcf\x3b\x60\x9c\x18\x20\x5b\x6b\xec\xa4\xcc\xbe\x6b\x0f\x6d\xc6\xdb"[..]); ctx.update(b"\x8d\x5c\xb9\x33\x40\x1b\x35\xdc\x34\xb1\x5d\xe0\xf5\x47\x4d\x3c\x9b\x6a\xeb\x90\x57\x53\x1b\x7f\x4b\x6b\x32\x59\x9f\x0e\xae\xf7\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x16\xc5\x23\xd2\xb8\x83\x0e\xa9\x0d\xd6\xb6\xb1\xca\x49\xe4\xb5\x16\x73\x00\x6c\xa3\x0f\xf4\x7a\x4d\xcd\x4e\x7b\x35\xad\x4f\x62"[..]); ctx.update(b"\xd6\xa6\x6d\x66\xbf\x54\x6b\x97\xeb\xd0\x33\xcb\xed\x35\x04\x93\x1e\x45\x29\x63\x34\xae\x28\xf4\x17\x8d\x3d\xe6\xf0\x31\x06\xaa\x82\x21"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3f\x60\x7a\x5c\x7a\xef\x13\xfe\x98\xdc\x9f\x6b\x6a\x4b\x52\x97\x9e\x7c\x68\x78\x1e\xf5\xe1\x2f\x69\xde\xd2\x0c\x49\x7e\xda\x47"[..]); ctx.update(b"\xce\x88\x5f\xfb\x34\x0f\xd7\xa4\x3e\x21\x50\x69\x9b\x3f\x98\xef\x33\x42\x70\x03\x67\x94\xec\x75\x9a\xa0\x1d\x29\xf0\x87\xed\x6b\x55\x15\x49"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x10\x71\xf8\xb5\x73\x28\xb7\x67\x20\x9c\x15\xa4\x3e\x1d\x84\x52\x76\x38\x65\xac\x93\xd5\x8f\x93\xc8\x40\x87\x6c\x1a\x5b\x21\xe0"[..]); ctx.update(b"\xf2\xc2\x8d\x68\x54\x86\xbe\x99\xaf\xe8\x7b\xf9\x0c\x9f\x30\x93\x57\xb4\x4f\x60\xb6\x88\x44\x6a\x19\x18\xaa\x32\x11\x80\xbf\x4f\xe5\xbe\x15\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x35\xbd\x19\x2c\xc1\x0f\xa2\x4b\xd7\x95\x4e\x0e\x0e\xe2\x0c\x09\x44\x0e\xfc\x64\x16\xe9\x4c\xa2\x5a\x47\xe7\x65\xbf\x32\xef\x1d"[..]); ctx.update(b"\x96\xe8\xe3\x0c\x75\xfe\xc8\x2b\xef\x4d\xe7\xec\x8e\x05\x3e\xa6\x61\xcb\x72\xbc\x4e\xb9\xc1\xc1\xaa\xa6\x38\xdf\x07\xa8\x26\x79\x4d\xd8\xd0\x0f\x0d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb5\x56\x79\x8f\x76\xef\x74\x2c\xc1\xeb\x5d\x10\x73\x2a\x92\x5f\xd8\x20\x8b\x4f\x07\x9a\x6c\x0e\x1f\xe0\xd9\x2f\xd8\x75\x64\xa5"[..]); ctx.update(b"\x29\x15\xc9\xb5\x88\x35\xf0\xec\x1e\x01\x1f\xe5\xe6\xdb\x40\xae\x3e\xf3\xd8\x90\xe2\x68\x93\x4d\x1b\xb0\x24\xa6\x34\x39\x4b\x20\x2e\x50\x37\x08\xb5\x43"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x68\x88\x5b\x4e\x3a\xe2\x17\x23\x05\xac\xaa\xd2\x5f\xfe\x90\x94\xc7\x23\x48\xee\x9d\x7b\x0a\xcc\x20\x02\x9e\x26\xa7\xd0\x13"[..]); ctx.update(b"\x67\x3c\xcc\xe2\x80\x7c\xb4\x76\x22\xb7\xe0\x9e\xe8\xef\xd8\x12\xb4\x4f\xae\xef\x43\x6c\x30\x15\x05\xcc\x63\xcd\x2c\xa5\x2d\xb0\x03\xe6\x52\xc4\x82\x7b\xa2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc7\x75\x20\x98\xc3\xb5\xfc\xea\x98\x42\x5a\x18\x0a\x5c\x96\x14\x6b\x44\x3a\xa8\xd7\x6a\x0c\x79\xfd\xcf\x37\x16\xbd\xd2\xb9\x06"[..]); ctx.update(b"\xc1\xa6\xac\x69\xf4\x80\x08\xdb\x50\x95\x86\x65\xdf\x9d\x91\x1b\x78\xdf\xe5\x19\xd9\xf3\x43\x66\xf6\xcd\x69\x1f\x90\xf7\x41\xd1\x08\x1e\x59\x26\x76\xd0\x93\xc4"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbd\x18\xaf\x5b\x2b\x24\xd7\x69\xea\xde\x52\x5c\x8f\xcd\x53\x52\x12\xab\xf8\xe5\xdf\x18\x0d\x7f\x3e\x3d\x02\x30\x33\xfc\xe1\x92"[..]); ctx.update(b"\x3c\xd1\x23\xae\x7b\xfd\x2b\x31\x61\x3e\xcc\x5e\xe8\xb8\x6e\x8e\x59\xa5\x2f\xf4\x6a\xeb\x2b\xcf\xa9\xf4\xfb\xe4\x1e\xba\x7b\x2c\x2c\x21\xd0\xca\xb9\x8a\xaa\x3f\x8f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7c\xe1\x97\x14\xe1\xd3\xbe\x68\x0d\xde\x0e\x91\x9d\x90\x15\x7a\xab\xca\x76\x43\x9d\xf8\xf0\x97\x9d\x19\xb3\xa6\x86\xdf\x6b\x28"[..]); ctx.update(b"\xa5\x2d\xde\x5a\xea\x1f\x04\x39\x9c\x5d\x91\xfb\x5c\x4e\x62\xda\x06\xb7\x3a\x5d\x9b\xdc\x5a\x92\x7f\xe8\x52\x98\xe5\x8e\x16\x61\x87\xf1\x54\xb6\x9a\xc1\x05\x7c\x01\xa7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x03\x5d\x36\x2a\x42\x65\x03\x14\x34\xc3\xaa\x15\x3a\xb4\xae\xf6\xb0\x0d\x51\x76\x22\x71\x97\x43\x0b\xb6\x28\x84\xa0\x85\xc5\xfe"[..]); ctx.update(b"\x38\x19\x06\x80\x83\x94\xc5\xf9\x38\x5a\x06\xbc\x9b\x6e\x52\x80\x95\xe6\xf6\xac\x07\xf0\xfc\x75\x5e\x13\x59\x47\x68\xb7\x68\x67\x66\xe8\x97\xd6\x62\x57\x61\x78\xc2\xa1\x7c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\xea\x52\x98\xaf\x2a\xa3\x11\xa5\xb5\x3f\x8b\x28\x38\xdf\xc0\x08\xae\x47\x0b\xf9\x6d\x2b\xb6\x79\x47\x35\xea\x72\x10\x88\x79"[..]); ctx.update(b"\xa0\x4a\x5d\x5d\x61\x3d\x23\x70\x3a\xb8\xdd\x00\x93\xd3\x54\x82\x9c\x54\x49\x82\x3b\xcf\x09\xeb\x49\x12\x41\x83\xfd\xc0\x14\xb5\xa8\x3b\x6b\x93\xa3\xc7\x8c\x1b\x86\xed\xef\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\xe6\x88\xd5\xe9\xd0\xde\x9d\xe8\x34\xbe\xfe\x5c\x08\x29\x64\x4d\xef\x9c\x5d\xa7\x1a\xe0\xda\x4f\x79\xd1\x89\x04\x87\xe2\x5b"[..]); ctx.update(b"\x17\x5e\x10\x59\x93\x1a\x94\xe6\xe3\x7e\xa5\x3c\x87\xe3\xc7\x1d\x46\xbe\x2f\x41\x0b\x21\x31\xf8\xf2\x85\xf8\x10\xa3\xc6\x79\xf9\xdf\x6f\xa9\x27\x58\x38\xee\xb8\xc6\xcd\xd4\x57\x37"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x56\x41\x03\x6e\xf6\x22\x1e\x08\xe3\xc7\x95\xb2\xad\x56\x6a\xac\x9a\x69\xf8\x5d\xf1\xa8\xd3\x5b\x3e\xa2\xb7\x80\xce\xd3\x34\x21"[..]); ctx.update(b"\x3c\xe3\x8a\x2e\x28\x7f\xda\x13\x38\x4c\xb3\x06\x23\x7e\x8c\x74\x35\x78\x48\x81\x8d\x34\x0a\x94\x88\xe6\x4a\x15\x7d\xdc\x29\x75\xab\xa9\x01\x6f\x6f\x82\x41\x8e\xbb\xe8\x78\xf0\xc3\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbc\x20\x41\x02\x9b\x16\x89\x5a\xfb\x1f\x59\xf7\x28\x0f\x8a\x8f\x09\xbe\x5d\xd2\x41\xc6\x75\x34\x3f\x7a\xd8\xd7\x5b\x83\x4b\x75"[..]); ctx.update(b"\x96\x28\xa1\x95\xca\x6e\x70\x8c\xfc\xcf\x9f\x43\x4d\xbe\x6c\x51\x05\x32\x7f\x0f\x28\xee\x1c\xfd\x4a\x06\x9d\x62\xa3\x9f\x20\x33\x66\xf6\x7d\x36\x4f\xa4\x7b\x67\x7b\x20\x43\x9b\x7d\x85\x14"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdf\x6d\x89\x1d\x2c\x20\x43\x54\xb8\x27\xf5\x30\xc5\x46\x52\x94\x0c\xb4\x83\xf5\x8d\x6b\x43\x39\x73\x75\x2c\x1f\xd1\xd2\xf8\x4d"[..]); ctx.update(b"\xd8\x5b\xdb\x2d\xf5\xd7\x2f\x21\x90\xe4\xb3\xd4\xfa\x5b\x6d\x84\x8a\x08\x8b\xfc\xf0\xaf\x52\xb8\xc6\x4c\x58\x4a\x68\x9f\xf3\xfc\x06\xe8\xf1\xb7\xf7\xf0\x89\x23\x50\x48\x92\x10\xb6\xd5\xf3\x15"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xeb\x26\x81\xed\xf9\x2a\x1f\x55\x59\xd1\x01\x77\x11\x0a\xd2\x1f\xfd\x3f\xc1\x29\x6e\x3c\xc8\x3e\xce\x32\xe4\x2f\x56\xef\x7d\xed"[..]); ctx.update(b"\xd0\x78\xa5\xdc\x6e\xc5\x89\x11\x71\x19\xba\x3c\xfb\x9b\x11\xde\x57\xfc\xcb\x56\x3b\xad\xe8\xb3\x4a\x4f\xd2\xc7\xdd\x6b\x3f\x7c\x03\x63\x58\x6c\xc7\xa8\x1b\xab\xb1\x2e\xfe\xe7\x8f\x1d\xd5\xb4\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x0f\xc7\x04\x6f\x02\xd0\x70\x64\x2d\x82\x1c\x74\x67\x85\xf2\x09\xbb\x33\x26\x90\xbb\x34\x33\x5e\x6c\x64\x28\x05\x17\x93\xe1\xa9"[..]); ctx.update(b"\xb7\xae\x60\x37\xd9\xb4\x52\x99\x4f\xb7\x55\xaa\x0c\xf5\x7f\xbc\x68\x72\x98\x06\x0a\x47\x1f\x9b\x0c\x3d\x8e\x9d\x5a\x9a\xe0\xad\x5b\x3b\x4f\xa7\xd4\xe3\x62\x8c\x09\xd3\x27\xc0\x25\x9b\xbd\x76\xdb\x2f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcd\x10\x40\xa0\xd9\x43\x82\xa6\x44\x6a\x69\x1c\x0a\x07\xc4\xf6\x43\xed\xc1\x1e\x31\x03\xe3\x43\x60\x86\x03\xb5\xbd\x10\x1b\xe3"[..]); ctx.update(b"\x62\xf0\x16\xdf\xc3\x8a\x4c\x70\xb7\xf9\x5d\x66\x9e\x2d\x47\x57\x04\x90\x9e\x13\xc9\x97\xd3\xda\x7e\x96\xb6\xcd\x11\xd8\x3a\xa3\xad\xef\x78\x9d\xdc\x49\xf7\xbc\xef\x04\x2b\x31\x9f\x03\x3b\x15\xf4\x42\x08"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8a\xee\x50\x57\x2b\x6b\x15\x5c\xf4\x0d\x6e\xd6\xc7\x38\xbd\xbc\xaf\xf2\xad\xe0\x9b\xd4\xd8\xbc\x9c\x2f\x9a\x67\x33\x73\xc4\x4f"[..]); ctx.update(b"\xbe\x89\x08\x98\xb0\x3f\x7c\xb5\x2a\x9d\x43\x00\xac\x2e\x8a\x80\x71\x51\x02\xb1\x53\x8f\xe3\x7c\xe9\x2c\x31\x65\xf2\xfc\x3e\x07\xf6\x78\x70\xbd\x2a\x11\x44\xa3\x95\xc5\x93\xbd\x71\xef\x14\x75\xd4\x63\x23\x4b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\x15\x6f\x2f\x41\x6c\xce\xeb\x9a\x6a\x25\x20\xe7\x9b\xba\x52\x95\xb5\x84\xc5\x96\x06\xfb\xdf\xda\x6e\xd1\x3e\xd9\xd9\x9a\xf0"[..]); ctx.update(b"\xc1\x21\x49\xee\xd4\x11\x3e\xfa\x31\xbb\x3c\x4b\x9a\xa9\x33\x63\x9a\x0e\x1c\xa7\x16\x06\x2e\xbe\x25\x1e\x55\x3a\x22\x17\xe0\x7a\xff\xe7\x79\xce\xdb\x01\x5b\xdd\xd7\xd6\xbf\x44\x26\x9c\x97\x80\x64\x4e\x7f\x0e\x29"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\x94\x15\x56\xb3\x7c\x22\xc9\xd8\x41\xbd\x0b\x1c\x4e\x5d\x87\x78\xb1\xc5\x98\xd8\xb1\xec\x55\xc4\xcf\xf1\x1c\xc7\x40\x2d\x05"[..]); ctx.update(b"\xc5\x79\xbf\xfa\x93\x96\x17\x2a\xa1\xd6\x54\xb4\x79\x30\xe6\x5f\x95\xc0\xc7\x4b\x6a\xbd\xa3\x82\xa5\xab\x3b\xd0\xb4\xd2\x0b\xd5\x88\xee\x2a\x58\x99\x28\x73\xde\x2b\x45\xe2\x7b\xd0\x1e\x40\xe9\x2f\x50\x03\xd7\x03\x34"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x63\xf8\x98\xb4\xfe\x7a\x7d\x8c\x7a\xc7\x76\xed\x78\x11\xa9\x22\x05\x27\x91\x40\x64\x29\x31\x8f\xd5\x38\x6a\x8f\x78\x64\xcf\xc6"[..]); ctx.update(b"\x71\xb5\x8f\x40\xe2\x8b\xd9\x42\x7f\x0f\x78\x21\xec\xe9\xc6\xe0\xf3\x4b\x7f\x5c\xc9\x24\x22\x26\x92\x97\x9a\x8e\x28\xab\x1e\x00\x18\x44\x56\x94\xee\x52\xbf\xe0\xb3\x48\x50\x11\xb3\xd0\x5e\x3a\x84\xbc\xbd\xeb\x43\x40\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x76\x14\x58\x2f\x42\xd5\xa9\x07\xd4\xce\xba\x00\x25\x79\x8e\xe6\x1d\x38\x07\x24\x85\xf5\x4b\xa3\xd7\x42\xf2\x95\x03\xf1\x91\x1f"[..]); ctx.update(b"\x59\x23\x35\x63\x9c\xd4\xf2\xf9\xae\x66\x24\xe8\x95\xd6\xa7\x29\xb5\x07\x9e\xe1\xf4\x5a\xba\x91\x1b\x7f\xb9\x8c\x7f\x8b\x2c\xaf\xe2\x4a\x7e\x4c\x94\xd6\x32\x67\xdd\x68\x6c\x25\xa0\x6f\xb3\x81\x38\xdf\xf5\x41\xa6\xcc\xcb\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x68\xd6\x4c\xb4\x33\x1b\x71\xe7\x2b\x42\xc8\x8b\x8f\x65\x13\xf4\xbc\x17\xd9\x95\x25\x4f\x04\xdc\x2b\x7c\xac\x02\x2a\xd5\xed\xfa"[..]); ctx.update(b"\xe2\x6e\x1d\xc8\x93\xfd\xce\xd8\x33\xea\xe1\x5a\xc0\x4e\xd4\x62\x4a\x07\xe3\xc8\x9d\xc3\xd1\xd8\x20\x5b\xe4\x4b\xfd\x63\x32\x77\x82\xff\x1b\xc2\xc8\xf7\x17\x5c\x92\x0e\xb2\x2e\x77\x90\xd4\x0d\x44\x2b\x46\x34\x9c\xff\x72\xf1\xe1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe1\x47\x0b\x2f\x44\xe3\x95\x5d\x2b\x54\x96\x29\x26\x79\xd9\x08\x6b\x7c\x0a\xa9\x4f\x0d\x51\x6e\x53\xa1\x42\xe4\x86\xc6\xde\xd8"[..]); ctx.update(b"\x7d\xef\x4d\x43\x9a\x9b\x7a\x6c\x57\x00\xbb\x91\x68\x8b\x1c\xa6\xc4\xec\xdf\xf2\x63\xc6\x64\x64\x46\xab\x4d\x2a\xb9\x47\xdf\x80\xd5\xdb\xaa\xc6\x48\xee\x6c\xd6\x59\x3f\x33\x94\x26\xfd\xc2\xc7\x30\x3a\x36\x27\x1a\x9e\xe9\xb6\xae\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xa5\x95\x91\xe2\x8e\xb9\x2d\xfb\xf2\x90\xa0\x67\x72\xbb\x14\x56\x55\x97\x9c\xd0\xfa\x0d\xf1\x5b\xf8\x2a\xa2\x76\x65\xab\xac\x03"[..]); ctx.update(b"\x28\x39\x98\xb5\xe2\x39\x4f\xb1\xce\x1c\xee\x35\x5b\x67\x7e\x79\xf8\x9a\x09\xaa\x28\xfa\x52\xd5\xd9\x93\xc3\x07\xf2\x7e\xa7\xb3\x2b\x60\x99\x53\x21\x33\x3c\x52\xaa\x49\x2d\x2a\x65\x8d\x36\xca\x96\x0d\xc5\x3a\x31\xb5\x9c\x81\x35\x5d\xc9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x82\xf2\x7f\x2a\xbb\xe5\xfc\x21\x84\xb4\x28\xeb\x92\x55\x1e\x89\x8a\x51\x77\xe9\x97\xe3\x37\xee\xbd\xc4\x93\x20\x09\x5c\x60\x5e"[..]); ctx.update(b"\x09\xf3\x52\xd1\xae\x80\x7b\x25\x8a\x9d\x49\x87\x3a\x4c\x4a\xa4\xc6\x3b\xfb\x52\xbf\x91\x80\x72\x8a\xe7\x98\x1b\xfb\x93\xd1\xf5\x26\x2d\xf8\xe2\x71\x4c\xd4\xe4\xee\x91\x14\x3b\xe8\xe7\x85\xcd\xbc\x08\x88\xcb\xea\x44\xc4\x92\x6c\x7e\x18\xcf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc3\x0e\xfc\xcc\xac\xda\x26\xde\xd1\x6e\x92\xb0\xf2\xf2\xe6\x67\xdc\x98\xf2\x89\xa7\x54\xca\xc6\x28\xdf\xcb\x42\x1e\xcc\x72\x40"[..]); ctx.update(b"\xe6\xc2\xb2\x47\x89\x34\x8d\x64\x6a\x26\x3f\xfc\xdb\x6f\xcd\x51\x1e\x1a\xac\x52\x7b\x22\x7a\x7a\x90\x7a\xec\xf6\xe9\x50\x08\x06\xd0\x93\x94\xa5\x66\xb3\xce\x6c\xf3\xa8\x5d\xb4\x7b\x35\x88\xfb\x92\x6e\xa6\x89\x70\x78\xd5\x52\x48\x90\xef\x1f\xd6"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbf\x9a\xe2\x94\x1d\x2b\xb9\x48\xd3\x3a\xe2\xa8\x22\xe8\x73\x8f\x74\x4b\x5a\x9d\x69\x29\x97\x71\x9b\xd1\xa1\x18\x74\x3a\x07\x31"[..]); ctx.update(b"\xb0\x99\xe1\xb5\x23\x48\xf9\x3a\x6c\x22\x89\x6c\x72\x85\x4a\xb0\x4f\x2d\xd3\xd1\xf9\x4c\x5f\xad\x21\xdd\xd1\x2e\x5b\x35\xf5\x7c\x80\xdb\x09\x71\x50\x99\x7c\x4e\x5c\xd3\xf5\xac\x24\x18\x97\xb5\x7c\xf7\x84\x93\x34\x14\x9f\x29\xf7\x7b\x97\x01\x74\x33"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x01\xd5\x82\xc8\x2c\xe6\xe6\xa8\xc0\xcf\xa8\x17\x92\x11\x0b\xc9\x50\xfa\x55\xe3\x1c\x10\x1c\xc6\xf2\xdf\x6b\x2a\xeb\xc1\x89\x25"[..]); ctx.update(b"\xac\x40\x65\xc8\xdc\xd5\x80\x31\xb7\x47\x5c\x3d\xeb\xe0\x32\x16\x8f\xa9\xf7\xae\x5a\xd0\x2d\x48\x13\x4d\xfe\x3b\x48\xc5\x8b\xf2\x43\xaf\x82\x38\x3a\xb5\xee\xb2\xc6\x5d\x54\xad\x96\xe8\xfb\x1b\x65\x7b\x8b\xd7\x29\x7c\xda\x31\x8e\x3f\x02\xa6\xa2\xe2\xb7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9f\xb9\xd7\xe6\xb8\x1e\x86\xe4\x41\x69\x5c\xa5\xc7\x62\xcf\x3b\x77\x35\xa7\x5d\xbc\x4b\x2b\x1e\x3e\x56\x67\x84\x8f\x6c\xdd\x73"[..]); ctx.update(b"\xd2\xbc\x0c\xe7\x21\x7f\xf2\xe9\x44\xe1\xae\x47\xad\x58\x73\xbf\x39\x1f\x1b\x0c\xc0\x7f\x61\x51\xeb\x4c\x50\xbb\x45\xb2\xfb\x62\x95\x32\x6f\x71\x6c\xe7\xe6\x87\xfa\x0e\x3d\x5d\x25\xc5\xa8\xa8\xdd\x13\xa5\x41\xa9\x29\x2e\x83\x86\xe7\x33\xf4\xf2\xa2\x47\x28"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x9c\x1f\xea\x57\x86\x70\x2d\x02\x7b\xb5\xb6\x6b\x3f\xa9\x2d\xe3\x46\x21\xa8\x62\x69\x82\xec\x21\xc0\xec\xf8\xda\xa7\x9d\xea\x05"[..]); ctx.update(b"\xa8\x2a\xa0\x79\xad\x87\x8c\xf1\xd6\x99\xe9\x61\x2f\xd3\xae\xf6\x03\xdf\x30\xc3\xe8\x90\x43\x58\xfb\x18\xa2\x97\x6d\x7b\x91\xc3\x3f\x43\xc0\xda\x49\x76\x73\x25\x81\xc5\xe0\x0d\x7a\x06\xd8\x30\x2b\xe4\xaa\xb4\xf2\xd5\x45\xdb\xd9\x4d\x9c\xd8\x17\x32\x4f\xe2\xda"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x46\xeb\x49\xbf\xc5\xb2\xee\x3c\x97\xb9\x11\x02\x52\x5b\x66\x66\xd5\x6b\xff\xaa\xb4\xba\xa0\x30\x59\xb8\x9f\x24\xec\x4b\x56\x22"[..]); ctx.update(b"\x72\xfe\xe2\x94\x94\xc2\x5b\x11\x9b\x6c\x5a\x60\x0c\x46\x8e\xc2\x2e\x42\xaf\x5b\xa9\x3e\xb7\x94\x52\x86\x4e\xbe\x46\x9a\x86\xf8\x36\x32\xc8\x52\x01\x80\x0f\x32\x88\xb5\x53\xf7\xbe\xc6\x49\xdd\xfe\x70\x49\x20\xa2\x7a\x8f\x65\xd1\x3a\xa7\x55\x98\x5a\x23\x8b\x3c\xdc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf7\xee\xdd\xf0\x8d\x3c\x1a\xb5\x24\x16\x7c\x90\x8b\xcd\x86\x13\xd5\x81\xcb\x0d\x03\x52\x0d\x7b\x6b\x64\xd1\x81\xbf\x13\xbf\x1e"[..]); ctx.update(b"\xfe\xb7\xa0\x94\xdf\xfb\x5c\x0c\xb6\xf7\x23\xc1\xb5\xe7\xd7\x64\xd4\xab\x5f\x89\x6b\x13\xe4\x09\x00\x59\x40\xa4\x5d\xef\xb3\xeb\xe6\x7b\xd8\x5e\x2a\x21\xd8\xd1\xb8\x00\xde\x14\x34\xff\xcb\xd2\xaa\xc9\x2a\xba\x21\x16\x66\xdd\x74\x2d\x3a\x57\x5d\xa6\x6a\x32\xd3\x75\xb1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x40\xcf\xd8\x8d\x61\x3b\xc7\xd1\x05\xe1\x78\x08\x1d\x2e\x3c\x5a\x09\xcd\x62\x94\x65\x82\x19\x09\xdb\xc1\xe9\xb8\xcd\x04\xa2\x66"[..]); ctx.update(b"\x8c\xe3\x1c\xa2\xab\x2e\x7c\xff\x5f\xf5\xbc\xbc\xee\x36\x74\x63\xcd\x5e\xee\x65\xb8\x0b\xdb\x01\x01\x16\x44\x67\x29\xd1\xc3\x1e\xad\x8d\xf2\xa3\x22\x60\x24\x53\x84\x25\x53\x8a\xcc\xc3\x5a\x0d\xc0\xb3\x64\xa5\x0f\xbc\xa5\x0d\x9d\x01\x48\x0e\x1c\x3e\xa8\xe9\xdc\x4f\xc2\xf5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xd6\x1f\xcf\x2c\x31\x78\xcb\xf3\x40\x42\xa0\xfc\x02\x86\x9f\x46\x70\xea\x40\x0e\xa3\x84\xcc\xf0\x4d\x84\x60\x80\x6f\xe1\x1d\xce"[..]); ctx.update(b"\x49\x63\xa3\x6a\xf5\x62\xe0\x45\xec\x25\xe3\x9a\x0d\x9c\x2a\x03\x5d\x4f\x6d\x62\x04\x4f\xc9\x75\x98\x6d\x1e\xaa\x9e\xab\xb6\x34\x4e\xf0\x27\x5e\x97\x00\x7a\x1f\x63\xaa\x8c\xef\x1c\x44\xb5\xda\x6f\x54\xa8\xd3\x50\x90\x9a\x4a\x3e\x09\xa7\x01\xc8\xa3\x71\x1b\x50\xc8\x0a\x76\x0f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x69\xdf\x54\xc0\xfb\xb3\x58\x59\xb5\xfb\x24\x7c\x92\xb5\x66\x5e\xd2\x79\x62\xf0\x42\xa7\x90\x51\x9d\xb8\xce\x27\x34\x3b\x95\x90"[..]); ctx.update(b"\x06\x63\xac\x24\x6f\x64\x34\x27\xd7\x19\x8f\xeb\x54\x91\x9f\x97\xf9\xe0\x36\x86\x4d\xc3\x2c\x02\xfc\x87\xaf\x50\xcd\x26\xdb\xee\xd4\xb4\x8a\x18\xe9\xf9\x6e\x90\x59\x60\x5d\x9f\xdb\x10\xeb\x57\xc5\x58\x3e\x1c\x7f\x50\x1e\x63\x38\xbd\x4c\xb8\xd9\x36\x15\x06\x37\x85\x26\x13\x8d\x50"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xdb\x45\x8a\x32\x7d\xd2\x1b\xb9\xc0\x73\xbd\x57\x36\xa7\x45\xe4\x67\x53\x8d\x94\x76\xb7\x64\x7b\x74\xdc\xd1\x70\x31\xba\xd7\x2d"[..]); ctx.update(b"\xe7\x0d\xf9\xce\x76\x33\x4c\xc2\x09\x6c\x0e\x71\x5d\x8c\x96\x65\x24\x92\xb5\xb6\x63\x7d\x3e\x80\x19\x61\xc5\x94\x21\xb9\xa6\x6e\x59\xff\x4a\x68\x04\x7a\xa5\x2d\x6d\x58\x03\x6f\xce\xfc\x05\xdd\x6f\x99\xe6\x4f\x12\x00\x03\x44\x8f\xb6\x9b\x8f\xbc\x4a\xd3\x4d\x8f\xe5\xfd\x1a\x87\x23\x19"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\x9b\xe9\xde\xed\xbd\x16\xe9\x48\xee\xbf\x8a\xa5\x83\x8d\x27\x6e\x0e\x6e\x29\x55\x70\xc4\x9e\xad\xc9\xf2\x7c\x0e\x2e\x57\x98"[..]); ctx.update(b"\xdd\xda\xd5\x81\x58\x34\xa9\x9d\x79\xab\xf4\xed\x36\xaf\x74\x06\x5b\x2e\x70\xe8\x7c\xb8\x48\x3b\x2e\xe2\x50\xd8\x77\xe8\xde\x8b\x82\x96\xa2\x17\x97\x68\x36\x7b\x4b\xf0\xf6\x74\xf4\x78\x12\x43\x60\xe9\xe2\xb0\xc7\xeb\x79\x4f\xfd\x4e\x7c\x02\xec\xa9\x35\xbf\x42\x40\xe3\x94\x67\x2b\x54\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x13\xb1\x1a\x38\xef\x74\xab\x16\xbd\x65\xb8\x4e\x83\xd3\x48\x48\xbf\x3c\x56\xe6\xca\xb5\xc5\x6c\xc0\x54\x1e\x78\x3d\xf1\xd4\xb7"[..]); ctx.update(b"\x84\x61\x7b\xcd\xea\x87\x42\x0c\xb0\xe9\x3f\xee\xbf\xde\x3a\xab\xbf\x7c\xc7\x17\x80\x65\xc8\x1c\x99\xe3\x33\x68\x4f\x38\x15\x63\xb8\x2f\xd7\x64\x20\xf7\xc0\x24\xab\x31\xbc\x73\x3c\x48\x5c\x29\x96\x01\x1d\x60\xc1\x53\xed\xe0\xb0\x78\xeb\xdb\x20\x44\x6f\xdb\xc3\xb6\x4a\xf8\x9e\xcd\x4f\x4e\xaf"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5b\xb5\x1b\xcf\xee\xdc\x61\x8a\x28\xcc\xf3\xbb\xd9\x6b\xe0\x89\x72\xee\xb1\xbc\x22\xd9\xbb\x64\x88\x3d\xab\xdc\x6c\x3c\x6b\x54"[..]); ctx.update(b"\x97\x0f\x5a\x93\x08\xf9\x29\xc5\xde\x78\xe8\x11\x9b\x96\xca\xf0\xad\x9c\x4a\x06\xf1\x82\xc7\x3e\x75\xa9\x71\x1c\x82\xcd\x69\x4f\xda\x35\x24\x86\x3e\x2c\x11\x85\x33\xb5\x7b\x78\x06\x7b\xb0\x87\x0e\x07\x63\xaa\x31\x35\x4f\xbf\xa9\xe9\x1d\xda\x08\xfe\x88\xdc\x7a\x7f\xbf\x47\x4b\x1a\x0a\x50\xa9\xd1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x93\x0a\x9c\x33\xe3\x93\xae\x8b\x1c\x39\xe0\x72\xb0\x8f\x97\x2a\xd8\x40\xdb\x54\x01\xa4\xed\xed\x1f\x1f\xd1\x4f\x8a\x0f\x68\xc6"[..]); ctx.update(b"\xf2\x9e\xc4\x43\xa7\xc4\xbf\x4f\xcb\xc2\xcc\x4e\x99\x2f\x3b\x1e\x0c\x70\xeb\xf6\x0a\x20\x19\xef\xdc\xb6\x76\xc3\xe2\x61\x7c\xd4\x85\x37\x01\x70\x6c\x8f\x0d\x53\xf3\xab\xe9\x6d\xd9\x9b\x78\xe6\x38\x5d\xca\x60\xbb\x49\xef\x7c\x0b\xad\x09\x9f\x8a\xb4\xa5\xf6\x44\x8c\x4c\xb7\x23\xc7\x54\xaa\x62\x02\xfc"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\xd1\xcb\x5d\x93\x0d\x73\xf0\x19\x99\x53\x3b\x03\x53\x13\xa5\x4b\x1e\x2c\xc2\x23\xf0\x7a\xf8\x29\x42\x42\x30\xb8\x40\x51\x77"[..]); ctx.update(b"\x49\x13\x70\x9a\x09\xe6\x06\xf0\x03\x49\x26\xf2\x1c\xe0\xfa\xee\xfc\x04\x83\xb5\xc0\xad\xe9\x9f\xef\x95\x0f\xd0\xb0\x9a\x6b\xba\x3a\x64\x15\xe3\x8b\x49\x1d\xe8\x5d\x6d\x22\xc3\x56\x2e\x20\x49\x7f\xbf\x8a\xf6\xf7\x12\x99\xed\xe9\xfc\xe3\x3b\xbb\x94\x2f\x5c\x88\xdc\x88\x00\xd1\xa3\x90\x0f\x6f\xa9\x17\xea"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x09\x48\xd1\xdc\x7a\x0a\x01\x72\xd3\xda\xe4\xae\x40\xd1\x28\x44\x4f\x2f\x63\x09\xb4\x43\xad\x6a\x8a\xb3\x84\x9d\xef\x60\x6a\x7e"[..]); ctx.update(b"\x33\x65\xdc\x87\xc7\xf2\x9b\x50\x92\x5f\x2d\x50\xb1\xe4\x37\xa4\x9c\xa9\x95\xca\xac\x35\xfc\xb3\xdb\x29\xdd\x19\xcc\x2e\x8c\x13\x0b\x2c\xa1\xe7\x95\xbd\x9f\x1f\x9b\xe1\xd3\xdf\x83\xf3\x7f\x75\x30\xdb\x38\x32\x83\x86\x8d\x78\x21\x93\xe9\x15\x77\x4f\xbb\xcf\xfc\xe4\xd3\x40\xb6\xcd\x0f\xe5\x00\x8d\x38\x71\x8a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x57\x9d\x6c\x49\x2d\xcf\xb0\x32\xb9\x27\x2a\xa0\xf5\x4d\x13\xec\xe0\xfb\x22\x76\x61\x9d\xd7\xe7\x5f\x86\xae\xf3\xf5\x8b\xfa\xea"[..]); ctx.update(b"\x45\xa8\x99\xee\x24\xce\x1e\xb7\xff\xe1\x3a\xa5\xac\xb0\x8c\xab\xe9\x4f\xf0\x03\x95\x71\x53\xb7\x20\x19\xc6\x66\x40\x72\xd0\x45\xe5\xfa\x09\x64\x70\xe6\xe4\x33\x1f\xc3\xcd\x44\xcc\x59\x74\x52\xd8\xd4\x68\x83\x62\x26\xe7\xea\xbc\xa7\xf5\x50\x1f\xfe\xab\x34\x9d\x45\xd2\x10\x58\x68\xb0\xde\xf2\xce\x22\xdb\x44\x3c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x5c\x08\x8c\xd0\xc1\x8b\xf6\x99\xed\xf4\x7d\xdb\xbd\x1e\x11\xc9\xca\xa9\x16\x1b\x85\x2a\x60\x24\x49\x2e\x7a\xb7\xdd\x57\x45\xee"[..]); ctx.update(b"\x38\x9d\x76\xc1\x8d\x8d\x11\xeb\x5b\x7e\x6e\x80\xd7\x9f\x93\xbe\x52\xc7\x84\xeb\x11\x01\xb7\xf3\x59\x48\xc7\x52\xc9\x8f\x6c\x34\xed\x05\xab\xdb\x0f\x96\x4a\x42\x50\xb5\x87\x00\xf8\x59\x0a\x6e\x0b\x45\x17\x0c\x1d\x8d\x08\x21\x66\x56\xfb\xa2\x19\xdd\xc8\x55\xf2\xbb\x36\x36\x0e\x67\x6e\x1a\x00\xfc\xaf\x92\x21\x3c\x44"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\x2d\x1b\x0a\xcc\x09\x7e\xdd\xc1\x3d\xbb\xa9\x1d\x2c\x14\x47\x74\xf4\xbf\x1b\xa2\x27\x57\x70\xb5\x28\x58\x47\x1d\xe2\x6c\xa1"[..]); ctx.update(b"\x12\x0b\x80\xb4\x4a\x24\x35\xd4\x78\x37\x66\x41\x6e\xde\x17\x84\xe0\x0d\x34\x67\xc7\xed\x1b\x63\x04\xe7\x5b\x58\x46\xfe\xbb\x81\x2d\x63\x7f\xa6\xb0\x43\xe6\x93\xbc\xe4\xf7\xca\x1d\xf0\x7d\x75\xa2\x11\x51\x9e\x7c\xbd\xd7\xa2\xe8\x54\xcb\xe3\x0e\x68\x3e\xbe\x28\x5b\xdb\xbd\xe6\x30\x6f\x0d\x11\x9b\xa9\x32\x70\x5a\x1e\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x20\x08\x18\xa7\xfa\x96\x34\x23\xd0\xa9\x0b\xd8\x54\x75\xd6\x7b\xef\xdf\xa4\x3b\xb4\x9b\xe7\xc0\x26\xb9\x69\x37\x43\x40\x4d\xcd"[..]); ctx.update(b"\x71\x37\x05\x67\x4e\x20\x06\x6d\x61\xbf\xe9\xca\x76\x3a\x87\x05\xcb\x6c\xa1\xe8\xcf\x95\xc6\xd7\x29\x50\x76\x61\xfc\xc6\x87\x15\x69\x22\xc8\x97\x56\x45\xe5\xf3\x6e\xba\x8a\x30\x69\xec\xcb\x29\x8e\x96\xc4\x98\x76\x7c\x7c\x74\x12\x59\x10\x7d\xf0\x18\x0d\x15\xb9\x46\x1d\x51\xff\xc8\xe6\x50\x35\xc9\x2f\xcb\xff\xf7\x44\xee\xad"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x78\x6e\xa3\x68\x15\x64\x77\x61\x6f\xd7\x60\x39\xf9\xb1\xca\xaa\x95\x76\x3a\xdc\xeb\xc1\xcf\xda\xe8\x19\x8f\x82\xa4\x11\x82\xa9"[..]); ctx.update(b"\x12\x3c\xca\xec\x52\x2c\x29\x83\xb6\xcc\x2e\x06\xb0\x90\x0c\x33\x1d\xb4\x9d\xc5\xd5\x80\x9c\xdf\x80\xcb\x14\xae\xac\xbe\x18\x4b\x1d\xda\xb5\xde\x64\x3c\x25\x09\xb4\x20\x45\x84\xf0\xa5\x4a\x04\x08\xd0\xaf\x62\x86\xd2\x71\xf9\x64\x8e\x7f\x50\x21\x56\x6c\xf9\x14\xf5\x68\xb8\xff\xf3\x6e\xe8\xe7\x14\xbf\x1b\x23\x22\x8e\x01\xb4\xec"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x91\xb3\xe2\x46\x35\x58\x94\x1d\x06\x26\x93\x6a\x8d\x27\x57\x22\xfe\x2e\x60\x0b\xb2\x4d\xf7\x8d\x7c\x46\x75\x26\x75\xd1\xc4\xda"[..]); ctx.update(b"\x75\xd0\x40\xdd\xea\x04\x28\xd8\x23\x1d\xce\x4f\xbc\x98\xcc\x4a\x2f\x57\x8a\x5f\x47\x47\x53\x79\xd7\x40\xae\xd8\xab\x2c\xeb\x59\xbf\x6c\xfc\xf8\xaf\x77\x86\x93\x6f\xc4\x38\xf1\x3c\xeb\x5c\x02\xd2\x07\xab\x68\xe0\x5e\x66\x37\xb9\x44\xa2\xf9\x4c\x3c\xe4\xf6\x56\x61\xed\xb2\xd6\x04\xd7\xb6\xc2\x97\x61\x93\xf8\xc9\x88\x25\x77\xf3\x57"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x74\x9b\xae\x93\x22\xaf\x58\x84\x95\xdb\xc0\xce\x42\x6d\xeb\xd9\xe9\xcc\x4c\x02\xf5\x0c\x52\xca\x24\x6b\x55\x82\x84\x0a\x86\xcb"[..]); ctx.update(b"\x7c\x23\x8a\xaf\xde\x6a\xab\xab\x17\x7f\x71\x8e\x0c\xfe\x13\x86\xcb\x14\x21\xb4\x79\x9b\x15\x78\x8b\x86\x2b\xf0\x3a\x80\x72\xbb\x30\xd0\x23\x03\x88\x80\x32\xba\xf5\xbe\x24\x23\x41\x82\x20\x95\xfa\x71\x48\x7c\x68\x02\x4a\xa0\xc1\xdf\x31\xaa\xa0\x8e\x82\xe4\xb4\x50\x84\x40\xb5\x49\xdf\x9c\x9d\xe2\x68\x44\x14\x6c\x3c\xb8\x2c\x06\x0c\xb0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x36\xba\x7b\xf5\x3f\x7d\x25\x37\x38\xf5\x90\xee\x25\xc6\x12\x0e\x0e\x89\xb1\xb8\x9c\x2a\x06\x91\xdb\x6d\x38\xb7\x2c\x20\x05\x5b"[..]); ctx.update(b"\x47\x0b\xe1\xab\x59\x5f\x8b\xfc\xbe\x65\x1a\xaf\xbe\x58\xa9\x0c\xd4\xd7\x2d\xba\x54\xf3\x43\x7a\x50\x87\x2c\x16\xbd\xc8\x15\x93\xd2\x1c\x9c\xae\xb1\x30\x91\x87\x49\x44\xf9\x97\x7b\xca\x59\xe7\x7b\x30\x31\x84\x7a\xfa\xc6\x2e\x82\x13\x24\x50\xa1\x65\x64\x35\x49\xa7\x2b\x78\xf7\x76\x73\xbc\x13\xa8\x8e\x9e\x17\xdd\x67\xe8\xf4\x56\x0c\x07\xb2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8e\xf8\xd6\x47\x2e\x09\xf5\x66\xf7\x0e\x17\xb4\x54\x48\x9c\x19\x3d\x11\xfd\x99\x85\x5f\x7e\x69\xc0\xee\xd3\x89\x51\x5d\xf5\x77"[..]); ctx.update(b"\x69\x73\xb2\xd5\xfd\x42\xe7\x8a\x22\x45\xc7\x6f\x25\x68\x1d\x70\x4e\xa1\x94\xe2\xb5\x78\x28\x1e\x58\xc6\xdb\x6f\x6b\xbd\xa9\x2f\xef\x28\xbd\x2c\x86\xf4\xe5\x51\x86\xf0\x44\x82\x4c\xd1\x47\xc7\xd3\x79\xda\xad\x85\x79\xdb\xe9\x50\xd4\xce\x3f\xfd\x06\xd3\xa2\xbd\x44\xd6\x9d\x05\x06\x06\xf1\x9c\xc3\x88\x80\xf3\xfb\x6c\x69\xb4\x7b\xe0\x75\x9d\xdd"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x22\x6f\xa5\x4a\xb3\x1f\x5a\x78\xea\xb4\xf9\x2b\x10\x97\x2f\xcf\xc8\xcc\xad\x25\xe0\xff\xa4\x93\x65\xda\x83\xf2\x72\x20\xf6\xcd"[..]); ctx.update(b"\xc4\xd0\xd1\x4c\x93\x05\x88\x65\xd0\xfb\xe2\xe6\xe1\x4e\x99\xf1\x70\xce\xcd\x75\xc1\x83\xf9\x53\x43\xef\x26\xbf\x65\x92\x5f\xe9\xaa\xb4\x64\xdd\x00\x5e\xa3\xa8\x4e\xaa\x63\xbd\x4c\x3c\x43\x97\x97\x11\xe3\x9f\x05\x78\xe1\x4f\x35\x5d\x07\x98\x6b\xcd\xc2\x81\x9b\xb7\xd6\x12\xc4\xf0\x51\x70\x80\x7a\xbd\x49\xd8\x06\x9a\x72\x5c\xb7\x0c\xcf\x74\x29\xd0"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x88\xe1\x83\xa7\x94\xf4\x78\xa8\x50\x85\x69\x66\xfd\xed\xd7\x1b\x14\xd8\xab\xa7\x28\x19\xfb\x26\xf1\x4d\x23\x15\xc6\x7f\x2d\xeb"[..]); ctx.update(b"\x73\x66\x17\x99\xc7\xd2\xe2\x4e\xa4\x84\x29\x9d\x8c\x8c\x11\x25\x73\x9d\xce\x5c\xc3\x07\xc3\x27\xa3\xe5\xea\xa8\x79\x98\x77\x57\xad\x74\xb8\x55\xb1\xb8\x40\xfd\x3e\xc4\x44\xbb\xe0\x86\x45\x21\xb4\x36\xef\x37\x70\x43\x42\x13\xa5\x8d\xef\xaa\x41\xd4\x05\xe6\x58\x70\xcc\xf9\x24\x43\xf1\xf0\x4a\xed\xe4\x8b\x5e\x3e\x7f\x4c\xaa\xf1\xe8\xce\x2b\x97\xb8\x58"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\x1a\xff\xd1\xb1\x94\xbc\x0a\xfc\x38\x9a\x2c\xb2\x32\x81\x24\x4a\x8d\x80\xa5\x24\x26\x2b\x25\x60\xd5\x8f\x7f\x6d\x22\x6f\x51"[..]); ctx.update(b"\xd4\x90\x63\x45\x3b\x77\x9b\x18\x93\x3d\x23\x33\x69\x88\x16\x17\xc9\x87\xfe\xf4\xb1\x8e\xea\x6f\xc6\x00\xc1\xa2\x46\x72\xd5\x64\x3e\x0d\xbb\xcb\xfd\x34\x5b\xf0\xc8\x67\x43\xf2\xcf\x68\x41\x3e\x60\x9c\x30\x0d\x5b\xb3\x12\x2e\xe6\x8c\x5f\x05\x61\x52\x9d\xd4\x9d\xec\x31\x39\x48\x94\x75\xf8\xac\xc5\x0a\xfb\x9a\x5b\x70\x97\xa0\xf6\xd3\x11\x82\x9f\x28\x61\xe8"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x67\x68\x94\x6a\x3a\x27\xf4\x62\x88\xdd\xfd\x4c\xb7\xb5\xfc\x9e\x27\xcd\x3b\xa4\x6e\xc9\x59\xe6\xf3\xd0\xcb\x5b\xff\x68\xe2\x26"[..]); ctx.update(b"\x90\x58\x88\x12\x13\x60\xfe\x46\xf8\x6d\xdd\xd1\x19\x07\x61\x95\x21\x34\x43\xf3\x39\x90\x7f\x87\xe5\xa0\x5b\x12\x28\x64\xa5\xb7\xef\x2b\x3c\x6b\xad\xab\xd2\xa7\x42\x51\xef\x5f\x21\xd6\x39\x38\xb2\x13\xf4\xf6\xf5\x16\xc5\x33\x69\x75\xbb\x57\x2c\xe2\x8f\xc4\x63\x00\x2b\x51\xdc\x76\x6a\xfa\xf2\x41\x1f\xd6\xb1\x4e\x58\x49\x3b\x48\xe4\x7a\x6a\xaf\x12\x07\xb7\x2a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x14\x5f\xf2\x62\xe2\x03\x95\x7a\x88\xa8\x75\xef\x98\x6a\xc4\x84\x20\x4b\x20\xd9\xc4\xbe\x7d\x35\xad\x59\x61\x27\x64\x99\x1d\x49"[..]); ctx.update(b"\xb7\x52\xac\x4a\xdc\x97\x01\x21\x19\xd8\x95\xa8\x00\xf3\x18\xdb\x6a\xe7\xe3\xc7\x03\x44\x94\x9d\x09\xe0\xf8\x05\x50\xcc\x2f\xb4\x8a\x86\x0a\x41\xc5\x70\xb8\x34\x35\x81\xa2\x61\x34\x3b\x93\x74\x87\xdd\x1c\xcc\xe3\xd9\x37\x8d\xaf\x88\x2a\xf0\x0c\x1d\xae\xde\x13\xd8\x51\xbe\x5d\x7c\x19\x8b\xc9\x02\x6a\x29\x79\x8f\x29\xf9\x1e\xa4\x22\xab\x76\x94\xa7\x53\x13\x3c\x7a"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x2f\x39\x9d\xc5\x53\xda\x60\x7b\x1c\x2d\x49\x0e\x64\x61\x66\x4a\x5a\x2c\x00\x7f\x18\x00\xd7\x6a\x2a\xaf\x77\x42\xa8\x6b\x96\x17"[..]); ctx.update(b"\x1e\xf7\x00\x1c\x52\x80\x39\x38\xe9\x37\xd9\x3f\x5c\x85\x3f\x66\x1c\xe4\x83\xb4\x26\x2e\xac\x63\xd8\x1a\x23\x89\x03\x03\x68\xf8\x41\xec\x04\x62\x89\xc2\xbf\xc1\x00\xe0\x12\xf5\x12\xd9\xdf\xaf\xc2\x71\x60\x8f\x3e\xec\x5e\x89\xb7\x8c\xa3\x8d\x6f\x55\xb1\x67\x14\x13\xb4\xe4\x4c\x9e\xb6\x36\x91\x5d\x12\x99\x3f\x09\x2b\x37\xeb\xb3\x5d\x49\xf7\x09\x34\x80\x63\xd5\xdc\xa3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x77\xe3\x71\x34\x9c\x46\x6f\x6c\x33\x1f\xac\x02\x84\x98\x75\x37\xc1\x5d\x04\x30\xe3\xf0\xcc\xa8\xf1\xfe\x2a\xa7\xc7\x94\xef\x09"[..]); ctx.update(b"\x28\x4b\xff\x3b\x6a\x68\x3f\xf2\x20\xf5\xcb\xfd\x3c\x2f\xb8\xa7\x2b\xdb\x85\x06\xfc\xdd\x5b\x2d\xc5\x07\x94\xa3\x42\x2f\x7b\x14\xc0\x84\x52\x47\x39\x22\x9a\x50\xc1\xe3\x8e\x07\x20\x78\xf1\xb8\xc1\xb9\x09\x1c\xcb\x3a\xec\x88\x8d\x1f\xfa\x65\x1f\x31\xab\xe0\x46\x31\x8b\xe2\x99\x6c\x82\x43\xe2\x8f\x59\x3b\xc7\xbd\x7a\x19\xaa\xdf\xf7\x37\xcd\x3b\xce\x2d\xba\x49\x6c\x45\xe2"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xbf\xaa\x54\x96\x35\x21\xe6\xe1\xac\x72\xb5\x5e\xe4\xd6\x54\xc0\x41\xf6\x2b\x73\xad\x5a\x53\x05\xc5\x8f\x47\xbb\x25\xdb\x7c\xc2"[..]); ctx.update(b"\x08\x1d\x08\x39\x7e\x13\x53\x07\x3f\x8d\xf2\x46\x75\x58\x8a\xd2\x15\xe4\xdc\x36\x15\xa5\x9d\x2a\xd9\xb9\x81\x5a\xee\xcb\x9a\x69\xfa\x37\xe0\x36\xf3\x6f\x11\x5e\x90\x9d\xbb\x02\xfd\x8a\x96\xca\xd3\xbe\x18\x29\x47\xe9\x44\xe3\xa2\x81\xc3\xcd\xf1\xad\x35\xd4\xfd\x62\xc9\x41\x7d\xcb\x0b\x3c\x8b\xef\xfe\x8e\x55\x8e\x6b\xab\x15\x4b\x78\xef\x43\x11\x7c\x28\x08\xaf\x12\x55\xf7\xc5"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xea\x8f\xbe\x27\x3c\xd2\xbb\x3a\xb9\xcc\x7f\x36\x40\xfb\x4e\x31\x53\xa0\x28\xd8\xba\x9a\x88\x0b\x3b\x82\x19\x00\x6c\x28\x28\x1f"[..]); ctx.update(b"\x1e\xd6\x24\x4a\x59\x96\xd5\xa4\x42\x3c\x01\x06\xa4\xb8\xe7\x85\xd7\x50\xc7\x31\x38\x43\xf3\xdf\xd6\xac\x27\x2c\x6e\xaa\x1d\xbe\x9a\xbe\x5d\xcd\x45\x74\x53\xe2\x62\x46\xa3\xdf\xdd\xbd\xc1\x40\xd2\xd9\xbc\xa0\xfe\xb3\x5a\x7f\x73\x61\x6a\x42\x8f\x1a\x56\x7b\x2e\x9a\xf8\x6b\x1f\xc8\xae\xc6\xd5\x97\xb1\xb5\x5f\x2a\xa2\x21\x9b\x3b\x66\x2f\xa6\xbd\x34\x07\x96\xc0\xec\xda\x6c\x96\xab"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x8f\xc2\x26\x35\x17\xc8\x5d\x7a\xb8\x92\x65\x95\xb8\x04\x7b\x4b\x83\x8a\x07\x5a\x29\xb2\x4d\xa7\x12\x30\x3c\x3e\x6e\x59\x7e\x49"[..]); ctx.update(b"\x63\x18\x87\x81\xf4\xe9\xcb\xd1\xe8\x9a\x54\xa6\x5d\xa0\x53\xb9\x37\x22\xe1\x10\x6f\x00\xf0\x24\xad\x15\x82\x42\x1a\xb9\x19\x32\x6f\x8a\x6e\x17\x53\x6d\x65\x96\xe3\xcf\x41\x3a\x92\x31\x14\x17\x33\xe3\x7a\xae\x54\x0f\x87\x11\xce\xfa\xfe\x48\x9a\x87\xc4\xf2\xe6\xfd\x94\x2f\x68\x09\xf3\xbe\xf3\x07\x67\x63\x48\x7d\xe4\x8c\x2e\xe8\x87\x33\xc5\xbc\x87\x06\x17\xa6\x68\xc6\xf0\x14\x71\xed"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x91\xa8\xe2\x85\x02\x90\x85\xe2\x24\x98\x70\x78\x06\x64\x86\xb6\xc6\x05\xcb\xac\x27\xe4\x9e\x84\xf4\x63\x97\x10\xdd\xd0\x5d\x33"[..]); ctx.update(b"\x37\x11\x71\xb6\x26\xcc\xea\x8b\x29\x80\xdc\xd3\x3b\xcb\xb8\x49\xfe\x57\xd2\x01\x00\x0b\xc2\x44\x3d\x83\x0a\x9b\xe6\xbe\xfa\x2a\x61\x17\xd1\x3f\x91\x77\x25\x2b\x57\xc8\x85\x51\x59\xad\x5c\x7c\x02\x70\x18\x76\xca\x3c\x8c\xd6\xb7\x8c\x93\x19\x23\xe3\xf7\xf4\xc1\xbe\x91\xe9\xdb\xc6\xb1\x19\xdd\x4b\xc0\x59\x17\xee\x23\x87\xbf\x9d\x63\x1f\x35\xc5\x8b\x09\x8b\xc2\xd2\xb5\x45\x9b\x7a\x6a\x5d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xe6\x86\x55\x14\x9d\xc1\x4b\xc5\x75\x9b\x8c\xac\xb7\xc2\xd2\xa8\x50\x45\x6a\x64\xa8\x7a\xf4\x1d\xe8\x4f\x56\x7f\xfe\x9c\x5e\x60"[..]); ctx.update(b"\x9b\xf7\xc7\xd9\x90\x59\x24\x85\x89\xb1\x8a\x3f\xd3\xb0\x3f\x4a\x72\xd2\x1d\x2a\xac\xd6\x35\xb5\xcc\x71\xb8\x6d\x20\x43\x18\x0d\x44\x0a\x6a\x62\xa2\x16\x0f\x5c\x3a\xfd\x93\x65\x9f\x8f\xd5\xf1\x42\x0c\x68\x57\xf3\x95\x3a\xdf\xa5\xe1\x73\x1c\x72\x31\xa0\x7c\xdf\x86\x11\x1d\x60\x11\x7f\xe2\x1f\xeb\xf3\xc7\xf9\x06\xe2\x71\xc9\x64\x9d\x0a\xea\x86\xe9\x4b\xf7\x28\xe9\xda\xd5\x2b\x45\xd7\xf4\xd3"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x5b\x95\x54\x15\x58\xad\x0a\x9a\x20\xcb\x91\x11\x6e\xda\x03\xc5\xa6\x94\xca\x95\xea\xb1\xca\xf5\xc0\xd1\x50\x18\x99\xd3\xbd"[..]); ctx.update(b"\x19\x73\x26\x3a\x26\xd4\xa4\x18\xc6\x91\xdd\x5f\x5c\xcb\x7d\xd7\x24\x1e\xbc\xae\x24\xcc\xeb\xbe\x60\x17\x4c\x0f\x4e\xee\x27\x9d\x89\xcc\x1a\x5b\xc9\xde\xb1\x77\x13\x64\x37\xe0\x2d\x59\xcb\x06\x55\x56\xb6\xe1\x32\xb4\xfb\x34\x0b\xf1\x30\x13\x37\x54\x8d\xa3\xd5\xd4\x43\x21\xbd\x37\x0e\x25\xb6\x77\x0e\x28\xe9\x69\xd3\x44\x95\xa0\xb7\x3c\x05\x90\x70\xbc\xbf\xef\xe5\xe2\xff\x61\x41\xfc\x63\x53\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x39\xd8\x74\x0d\x56\xe5\x8f\x02\x7a\x6a\xf1\x3c\xce\x9b\x64\x84\xb2\x3f\xa6\xb3\x69\x33\x54\x17\x5c\x03\x4a\xc1\x77\x8a\x1a\x75"[..]); ctx.update(b"\xec\x8e\xe6\x5c\xef\x05\x45\x2d\xef\xe8\x32\xe0\xa3\xa3\xba\x61\x16\xa8\xd5\xd6\xa8\x63\x8e\x2e\x56\x6f\x63\xfd\x3c\x0a\xef\x87\x58\xc6\xc6\x1a\x91\x82\xa1\xa2\xf8\x99\xbb\x77\x4d\x59\x7a\x79\xc5\xb7\x52\x5f\x0a\x40\xe7\x4c\x84\x53\x71\xa3\xd7\x8e\x65\x1d\xad\x86\x52\x19\xb5\xbb\x08\x33\xec\xcb\x00\x17\x1b\xe5\xf8\x98\xa0\x81\xde\xfc\x72\x4e\xef\x9a\x60\x6c\x20\xa8\x99\xdc\xbd\x4e\x71\x35\x50\xfe"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x3e\x7a\x65\x2d\x89\xdf\x9e\xd7\xca\xcf\x53\xd0\x33\x99\x7c\x87\x52\x8b\x8c\xc3\x7d\x59\xb8\xea\xfb\xed\xbe\x4e\x8e\x9c\x5c\x3b"[..]); ctx.update(b"\xdf\x41\x0a\x8b\x65\xf1\x71\x39\xfc\x8e\xb8\x49\x5d\xf8\x13\xb1\xf6\xf9\xf1\xb7\x47\x1c\x7e\x62\x8c\xc3\x6d\x2e\x9c\x74\xf6\x03\x11\x74\x1a\x68\xa9\x97\x2e\xf5\xec\x56\x97\x06\x0f\x22\xd3\xb7\x19\xf8\xb9\x0c\x44\x36\x01\x6f\xa6\xad\x06\x60\x10\xf7\xcb\x68\x37\x0a\x3c\x4e\x11\x0e\xb7\x8e\x82\x6c\xcb\x07\x38\x28\x40\xf4\xd4\x70\x57\x1d\x4a\x75\x52\x4f\x8a\x79\x37\x09\x60\x29\xd2\x78\x98\x2e\xf9\xa5\x67"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\x4c\x87\x88\x03\x60\x98\xf4\x9c\x23\x01\x65\x34\xd0\x32\x93\x9d\x5e\x96\x38\xe3\xe4\xe8\x47\x45\x33\xf5\x2b\x66\x8f\x2d\xa1"[..]); ctx.update(b"\x27\xc2\xee\x5f\x63\xc1\x14\xc1\xf6\x15\x30\x68\x5c\x19\xc2\x1a\x4b\x7d\x47\xb3\x42\x8e\x6b\x82\x65\xb8\x7b\xf0\x88\x49\x19\x62\x8a\x77\x33\x61\xe4\xa5\x36\xf9\x81\xe2\x7e\x5e\xd1\xb3\x12\xd6\x19\x12\x8e\xd2\x0d\xb6\x60\x5e\xa0\x95\x37\xbc\x1b\xa8\xb9\x4c\x6c\xee\x75\xb0\xc1\xb3\x18\x2c\x56\x12\xe3\x53\x8b\xb9\x5c\xe0\x3a\xec\x44\xe2\x47\xcd\xca\x1c\x79\xda\xfe\xab\x88\xb7\x88\xe9\x77\x2e\x9a\x92\x23\x74"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xcf\x02\x7f\x60\x17\x61\x8d\x97\x0d\xa8\x38\x65\xd8\xda\x56\x0f\x45\x4c\xe2\xbd\x86\xaf\x59\x62\x4f\xb8\x7c\x8e\x48\xbe\xb2\x08"[..]); ctx.update(b"\x2f\x51\x0b\x72\xad\x1a\x26\xfe\xad\x66\x9c\xca\xfe\x9a\xd0\xfe\x31\xce\x0a\x12\xf3\xd0\x6b\xee\x9a\x6c\x27\x50\xfd\xeb\xee\x6d\x89\xda\xab\xdb\x91\x0d\x71\xae\xe6\xe3\xb2\xe2\xa8\xca\xb3\xf9\x5b\x06\x3c\xe4\x3d\xaf\x94\x27\xd7\xf9\xad\x39\xd3\xb9\x9b\x29\x0d\x24\x4a\x87\xed\xd9\x71\x82\xf3\x22\xc2\x4e\x93\x76\x64\xc9\x44\x43\xa2\x5d\xd4\xeb\xe5\x28\xfe\x0c\xdf\x5a\x3e\x05\x0a\xdf\xe4\xb6\x51\x3f\x68\x87\x0c"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x89\x69\x72\x7f\x52\x2a\xb3\x92\xd1\x1c\x3c\xfa\x7d\x02\xfa\x2f\x9b\x45\x7a\x1d\xe2\xaf\xd3\x60\xac\x9b\x2b\x4f\xec\xe8\x4e\x32"[..]); ctx.update(b"\x2a\x81\xeb\x0e\x6f\x1d\x13\xdf\x65\x44\xc6\x93\x21\xc5\x61\xa4\x89\xff\x9d\x77\xb9\xae\x11\xd7\xa6\x04\xf8\xa2\x01\xfc\x35\xc2\x5f\xeb\x94\x5f\x96\x57\x53\x53\x6a\x0d\xe1\xdf\x69\x6e\xe5\x9c\x13\x0a\x82\xb4\x3e\x70\xd9\x51\xb9\x43\xd0\x56\x30\x91\x12\x4e\x4f\x61\x58\xa1\x2a\x8b\xe6\x0e\xdd\xcd\x58\x55\x6f\x1a\x9e\x34\xfd\x35\x46\x95\x14\x7f\xf9\x06\x5e\x0e\x49\x69\x81\xfe\xaa\xed\x44\x0c\xbd\x3d\xf4\x60\xd5\xf7"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x38\x18\xa1\x4b\x4a\xbd\x90\x0c\x82\x32\x75\xd4\x5a\xfe\xa6\xed\x1d\xf6\xcc\x65\x9e\xb3\xef\x38\x74\x45\xf8\xad\x39\x03\x62\x3f"[..]); ctx.update(b"\x9a\xa1\xfa\x54\x0a\xcb\x4d\x2a\x59\xa6\xa3\xaa\x8c\x2f\xdb\xcd\x0a\x4a\x17\xb6\xb5\x55\x08\xe6\x5a\x03\x6c\xb3\x4b\x68\xd4\xf6\x4a\x50\xab\x05\xa9\xd5\x74\xe1\xb0\x31\x53\xb0\x3f\xd0\xcf\x6d\xb4\xaa\xd6\xde\x0f\xcf\x01\xc6\x55\x43\x1a\x5d\x32\x0d\xdc\xfd\xe1\x8b\xf9\x1e\x51\x08\x62\x84\x80\x90\xc2\xb7\x2b\x03\x4b\xb4\xaa\x69\xb6\xe2\x16\x85\x85\x47\xac\xad\x8c\xfc\x76\xd9\xaf\xde\x28\xf9\xed\x87\x48\x8c\x9e\x7d\x91"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf9\x42\x4b\x3d\xd7\x9d\x55\x5e\x2f\x5f\x8a\x18\x59\x33\xf7\x7d\xb9\x58\x64\xf4\xb5\x97\xee\x80\x5d\x5b\x62\xfe\x03\x96\x67\x3e"[..]); ctx.update(b"\xcc\xf2\xcc\x0c\xd2\x23\xb8\x0e\xbb\xd4\x9d\xb9\xed\xe7\xa2\x28\x62\x81\x2d\xbc\x4b\x1a\xa6\xc9\xfa\xd0\x7f\x8e\xfe\x01\x71\x6b\x90\x18\x08\x4e\x2e\xa7\x61\x6f\x85\xb7\x33\x3d\x94\x5c\x0c\x97\x0f\x8c\xdd\x40\x01\x30\xb9\x8d\xb6\x7c\xda\x61\xd8\x7c\xe5\x5b\xd8\xf0\x6e\x4e\x8f\x5a\xbf\xf2\x26\x55\xd5\xd9\x33\x28\xac\xa4\x24\x9b\xbd\x76\xe1\x0a\xc4\xa9\xad\xb7\xc6\xc0\x4d\x64\x53\x9d\x6d\x22\x09\xf5\x3f\x64\x59\x00\x65\x57"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x06\xd1\xcd\x54\x4f\x95\x41\x60\xad\xe8\x3a\x10\x2e\xb9\x35\xf7\xf9\x48\x00\x95\x91\xb3\xea\xda\xf4\x76\x58\x68\xc6\x34\x50\xd8"[..]); ctx.update(b"\x5a\xa1\xb8\x5c\xa8\x4f\x24\xf4\x87\xf6\x9e\x79\x62\x68\x82\x65\x18\x15\x4b\xd6\xa2\x24\x58\x3e\xf6\xc3\xf1\x5c\x2b\xbb\x85\x6b\xdd\x47\x35\x99\xd3\x26\x97\xba\xdf\xef\xb3\x3e\x06\xa5\x52\x60\xe1\x8b\x79\xa1\x43\x39\x30\x75\x1d\xf0\x87\x3c\x9e\x2b\xdb\x73\x9e\x76\x56\x2c\x3c\x83\xb5\xbb\xc6\x7b\x4e\xb3\xda\x92\x51\x11\xcb\xde\x4e\xb6\x46\x69\xf7\x1b\x36\x85\x28\x40\xe4\x5f\x24\xe5\x63\xd7\x22\xfd\x2b\x8f\x08\x60\x04\x42\x76"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc7\x60\xde\x56\x12\xec\x9d\x04\x78\x48\x72\x7b\x26\x1c\x88\x76\xb6\xc3\x3b\x2c\x57\xee\x1a\xc9\x9d\xa0\x89\x0c\x00\x9b\x95\x40"[..]); ctx.update(b"\xb6\x13\xee\xbb\xad\x7a\x18\x60\x92\x8a\xe7\x32\x9a\x38\xcf\xe8\x6f\x11\x74\xa5\x79\x74\x0e\xcc\x5c\xff\x12\x16\xc2\x47\x0f\xe2\x5a\xcc\xd5\xcc\x21\x2c\xdd\x80\xe0\x96\xe5\xd1\xf5\x82\xdb\x05\x57\x9f\xfc\x73\xd5\x0d\x3d\x51\x9e\xcd\xea\xc7\x06\x76\x8d\x47\x87\x29\x11\x21\x06\xc6\x27\x52\x58\x60\xe9\x9d\x05\xef\xbd\xde\x4c\x45\x7d\x9a\x67\x44\xd5\xda\x10\x4d\xec\x3a\x43\xfb\x46\x3d\x46\x12\xe9\xe3\xe7\xb2\xbe\x7e\x05\xd1\x3b\xc1"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x01\x24\x99\xf4\xe6\xe2\xaf\x3b\x53\x0d\x26\x4b\xce\x97\xe3\x44\x40\x5f\xfe\x59\xc0\x4b\x31\x43\x2e\x7f\x04\x46\xa6\xef\x33\xae"[..]); ctx.update(b"\x82\x3e\xf0\x9a\x0a\x65\x7d\x28\xff\xe8\x17\x3b\x6c\xf0\x4b\xf4\x79\x5a\x96\xb3\x9b\x19\x33\x96\x08\xd5\x32\x3c\x6e\xd8\xca\xcf\xe4\x2b\xf0\x41\x21\xfc\x28\xd5\xeb\x43\x9c\xe2\xd3\xa6\x6b\xd4\x20\x99\x43\x73\x09\xc9\x32\x68\x27\xbb\xb9\xfc\x29\xb0\x23\x24\xca\xcd\x14\xbb\x00\x78\x65\x0e\x76\x05\x2f\x9d\x3d\x92\x26\x20\xbf\x2f\x29\xc9\xf4\x43\x17\xc9\xd8\x2b\xe3\x15\x1c\x23\xeb\x6a\x1b\x6a\x85\x8e\x11\xa1\xdb\xda\x87\x74\xfa\xf5\x12"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x08\x04\x2c\x79\x50\x72\x68\xfd\xce\xbf\x12\x71\x96\x10\x21\x9d\x13\x64\x11\x7e\x66\x91\x6b\x9e\x0c\x1a\x2a\xed\xf5\xb4\xa8\xdf"[..]); ctx.update(b"\x96\x07\xcc\xa4\x58\x73\xad\xd1\x9a\x93\xdc\xcf\x3d\x0f\x79\x0e\x85\x6f\xf3\x0b\x84\xc8\x21\x1a\xd6\x9b\x8e\x62\x8f\xfa\x14\x29\x72\xec\xac\x52\x64\x13\x84\x23\x20\x8c\x52\x4c\x2b\x17\xe9\x25\x0b\x78\x09\x38\xb4\x1d\x7c\xff\x43\x00\x5e\xef\xee\xcf\xbd\xb5\x3b\x4b\x62\xbf\x71\xee\xed\xfe\x4c\xd0\x28\xea\xf5\xcb\x95\xc7\x31\xdd\x49\x27\xd9\xcf\xfd\xb1\x8a\x14\x63\x20\x9d\xf4\xb6\x8f\x5a\xea\x95\xf3\x68\x4a\x11\xe9\x88\x26\x05\xb2\x84\x73"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x73\xb4\x08\x6d\x69\x0a\xce\x69\x40\xc0\x19\x12\xac\xb3\xa5\x7b\xfc\x15\xc4\xa1\x6c\x40\xa9\x0b\x43\x29\xf1\xfa\x9f\x30\x85\xd2"[..]); ctx.update(b"\x57\x31\xf4\x67\xc5\xb9\x23\xc4\x3a\xf9\xc5\xfa\x84\x9a\xad\x21\xab\x8d\xd7\xdb\x1c\xa1\xa6\x87\x06\x55\x71\xb7\x05\xea\x3e\xe4\xfe\xbd\xcd\x61\x4a\xd4\xd9\x8e\x16\xb7\x9a\x4e\x09\x81\x8e\xbb\x28\x36\x79\x18\xf7\x57\xab\x06\xe1\xb4\x81\xfb\xda\x82\x2e\xf1\x43\xad\xbb\x5b\x0e\x70\x4d\x5d\x22\x22\xa7\x3c\x01\x53\xef\x14\xa8\x17\xb5\xc9\xb7\xa2\x31\x3f\xd1\x15\xcc\xce\x46\x98\xe3\xf0\xef\xa9\xc7\x3d\x5a\xb3\x08\x9a\x27\xe3\xf3\xad\xb2\x37\x59"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf5\x25\x3b\x5c\x69\xdb\x9c\x72\x4a\xeb\xf7\x62\xec\x51\xc2\x21\xf8\xa4\xd4\xe2\x17\x4a\x4b\x7f\x56\xe4\xd6\x9a\xa4\x4a\xdf\xa3"[..]); ctx.update(b"\x92\xb2\x3c\x0b\xc4\xd8\xd0\x7d\x22\xe2\x88\x12\x71\x0d\xff\x06\xcb\x9b\xbe\xce\xa2\xc9\x60\xac\x02\x00\xf4\x80\x16\x4f\xa2\xe1\xee\x19\x92\x6c\x7f\x0b\x09\x5c\xec\x51\xd5\x5c\x04\x0a\xec\x99\x0b\xf9\x50\x1a\xbd\x7d\x35\x54\x90\xc3\x66\xf9\x3a\x3a\xe5\x12\x73\x47\xd1\x4d\xfc\x3b\x8d\x98\xe0\x82\x1f\xee\xfa\x1c\xd6\x71\xb7\x52\x30\xba\x1d\xa1\xfa\x6d\x0c\xfb\xb9\x10\xc4\x2f\x49\x1d\xa8\xa5\xc4\x55\x42\x4e\xa6\x58\x86\xdb\x2e\x73\x5b\x2d\x07\xb9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x55\xa0\x59\x7f\x11\xff\x71\xc4\x26\x20\x17\x15\xbe\xb5\x85\xf2\x54\xbb\x31\xc1\xdb\xad\xe5\x33\xf0\x4e\x49\x9c\x33\x91\xff\x79"[..]); ctx.update(b"\xbc\xc5\x1e\xa0\xa6\x65\x64\xa1\x71\xda\xbf\xa2\x79\xe3\x84\xf4\xd9\xfd\xcb\xa3\x80\x28\x21\x57\x88\xee\x7d\x78\xc3\xa2\x76\x95\x96\xe6\xb2\x07\x0a\x6f\xa2\xd1\x20\x0d\x6c\xcb\x65\xe5\x29\x00\xc7\x01\x51\x54\xa7\x0c\x73\x6a\x2f\x56\x2a\xc4\xe6\x1f\x4c\x2c\x81\x11\x64\x53\xfd\x0e\x63\xb9\xea\x2c\x92\xcc\x0a\xfe\xcb\x54\x1a\x16\xe9\x0e\xf0\xc7\x7d\x97\xc6\x30\xc3\x8c\xd6\x75\xd4\xf0\x27\x50\x1c\xce\xa6\xc9\x0f\x1f\x78\x41\x18\xed\x8f\xb5\xd2\xb9\x7b"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xc1\x6c\xa7\x9c\x0a\xb4\x4f\x39\xda\x1c\x65\xe8\x94\x3a\xd2\xe9\x08\x88\xc3\xd8\x0b\x5e\x3b\x3b\x1b\xff\x59\x40\x8b\x59\xd6\xf3"[..]); ctx.update(b"\x21\x83\xbf\x54\x65\xb1\x83\x59\xa4\x51\xcf\x30\x30\xba\xb0\x7f\xa7\x61\xd1\x19\x26\x44\x4c\x7d\xba\x88\xc0\xa0\x17\x60\xa4\xec\x8d\x32\xdb\x88\x37\xf5\x88\xda\x76\xde\x23\x4a\x9d\x3b\xcd\x49\xee\x9f\xe0\x92\xc6\x3f\xcb\xb0\x14\x9c\x1d\xc1\x0f\x62\xdf\x79\x29\x90\x27\x6a\x3e\xda\xea\x82\x12\x4c\x12\xd5\xfa\x2f\xd0\x9c\xd9\x30\x34\x7e\x4e\xbf\xfb\x0f\x2c\xb6\xa8\x97\x2b\x3b\xd6\x14\xdd\xe7\xcc\x82\xe3\x28\x52\x59\x60\xe3\xc3\x58\xae\x5e\x64\x81\x50\x5e"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x7e\x5b\x4b\xd8\x08\xb9\x00\x73\x5c\x0f\xe6\x65\xda\x94\x37\xda\xca\xf8\x52\x49\xdf\x65\x3c\x6e\xe7\x2f\xb2\x96\xe8\xa9\xb8\xbb"[..]); ctx.update(b"\x95\x9b\xa9\x4b\x72\x8a\x8a\xdf\x53\x51\x35\x21\x02\x25\x58\x18\x3a\x63\x2e\x24\xad\x82\xa3\x90\x4b\x47\xb9\x66\xc2\x37\x2a\x87\x41\x52\x4f\xfa\x82\xfe\x40\x85\x07\x42\x3d\x7a\xa4\x34\x4d\xd4\x3d\xb5\x24\x82\xd1\x5b\x4a\x03\xb7\xaf\x7a\x33\x28\x99\x49\x65\xfe\x18\x08\xb1\xbb\x36\xea\x90\xcd\x3c\x6a\xa6\x11\x22\xe7\xde\x95\x49\x91\xbc\xa2\x6d\x89\xef\xfa\xd5\x44\x26\x5e\xcc\x31\x25\x53\x55\x9b\x18\x26\x1b\xd0\x27\x2e\xa7\x83\x4a\x51\xd5\x6f\x5f\xc9\x89\x3d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x85\xc2\xf1\x25\xe6\xd1\x1f\x83\x18\x07\x82\x0c\xcf\x0a\x53\x93\x27\x13\xdb\xce\xf3\xe2\x3b\x0e\x3c\x0a\xad\x8f\x89\x13\x9c\xc4"[..]); ctx.update(b"\x30\xd6\x2f\xf4\x26\x3a\x73\x1a\x20\x50\x69\xcf\x7c\x0a\x0d\xb0\xb5\x0d\x3d\xb1\x3f\x08\xc0\x0f\xb2\x45\x86\x86\x2b\x7e\x31\xc5\xef\xf1\xd5\x1f\x52\xb6\xfc\x83\xd8\x51\xee\xae\x99\x84\x2f\x9f\xea\x67\x48\x4b\x39\xba\xca\x93\x39\x79\x91\x73\x40\xb1\x46\x7c\xed\x93\x27\x84\x0d\xc6\x0b\x9c\xbf\x02\xa0\x42\xd7\xdb\xf8\xd8\x81\xda\x44\x55\x27\xd2\xdf\x3b\x94\x71\x8e\xc9\x59\x16\x06\x71\x6f\xe2\xae\x8c\x1f\x12\xa7\x4d\x1f\x8c\x0a\xf3\xfe\xb7\x70\x43\xc1\x90\xb8\x36"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x45\x43\x37\x8e\xd5\xa0\x54\x55\x78\x89\xb4\x63\x4d\x4a\xa7\x7b\xd3\x07\x26\xb7\x97\x23\x50\x10\xd6\xa4\x92\x0b\xf9\xcc\x3b\x40"[..]); ctx.update(b"\x37\x61\xa4\x86\x12\x49\xc4\xe0\x11\x5b\x99\x7c\x2c\x87\xe8\x5e\x5e\xa2\xbc\xaf\x44\xae\xa3\x1a\xe6\x5c\x19\x75\xd5\xcf\x45\xa4\x76\xa3\xe3\xba\x9d\x2e\x82\x62\x5d\x05\xef\x7e\x1f\xc2\xf1\x0d\xf2\x05\x36\x52\x22\xb9\x8e\x33\x0c\x99\x57\xdf\x30\xf2\x38\xb3\x88\xaa\x13\x5f\x19\x81\x34\x44\xc7\x97\xcf\x21\x6d\x2f\xa9\xef\x2d\xb2\x15\x09\x05\xf7\x22\x90\xa3\xc1\x13\x0e\x7b\x89\x0f\x59\x16\x7e\x1a\xbb\xad\xcb\x44\x4f\xf6\x18\x20\xae\x3e\x53\x78\xcb\xb8\xb0\x3f\x1c\x15"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x08\x81\x67\xf1\x2e\x82\xa4\x56\x98\xca\xd2\x5b\x40\x5d\xa5\xe2\x4a\x0f\x45\x15\xb2\x8b\x91\x5b\xfe\x79\x9d\x09\x90\x72\x35\x98"[..]); ctx.update(b"\x6e\x26\xe2\xb4\x1b\x80\xf2\x6b\x87\xcb\xa9\xbf\x5e\x11\xb7\x34\x61\x1e\x89\x11\x0c\x92\x10\x15\x76\x34\xc5\x66\x7a\x89\xea\xca\x14\xa6\x12\x19\x0d\x42\xe3\xf3\xdb\x0f\x1b\xae\xc3\x4b\xd1\x92\x40\x91\xfe\x49\xa8\xf6\x3b\x91\x0d\x51\xcc\x34\x61\xda\xde\x3a\xde\xf7\x0d\x5d\xa5\x52\x29\xbd\xa6\x2f\x3a\xd5\xbf\xfd\xc1\xae\x28\x2a\x41\x52\x0e\x3c\xfe\x84\x7e\x1e\x05\xae\x85\xb7\x6c\x1b\x96\xc1\xdb\x66\x2b\xd9\x4c\x33\xaf\xd2\x0e\x1c\x9c\x4f\x10\xef\xe1\x91\x5c\x16\x86\x8d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xad\x54\x90\x04\xc7\x5f\xa7\x81\x8d\xfa\x6e\x90\x60\x62\xa8\x50\x58\x9f\x7a\x8d\x17\xa1\xc4\x11\xfc\x95\x51\x68\x21\x5e\x45\xcc"[..]); ctx.update(b"\xfe\x8b\x3d\xca\x28\x30\x22\xda\xf7\x02\x2a\x88\xdf\xb8\xff\x61\x84\x75\x09\xc4\x1e\x9c\xec\x4f\x22\xe6\x52\x97\x1f\xb2\xea\x1c\xe5\x9c\xb1\x7c\xed\x50\x70\xe6\xf5\xa1\x85\xd2\xeb\xd5\xe7\xef\x0c\x43\x65\x5d\x4d\x21\x2e\x1d\xfa\x97\x96\xc6\x9d\x17\x17\x79\x21\xf1\x96\x16\x37\x22\xe8\xb0\xf9\x6d\x95\x3f\xcd\xae\xdc\x95\x8d\x6a\xf7\x94\xe5\xaa\xa0\x9d\xfc\x0a\xd3\x4b\x56\x0d\xd6\x62\xf9\xb3\x77\x02\xce\x4e\x95\x21\x4b\x91\xe1\x38\x4f\xea\xe6\x3b\x4d\x12\x47\xcf\xad\xe2\x48"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x37\xa8\x9a\x63\xb4\xa3\x0e\x6a\x21\x54\x9a\x24\x5a\x26\x33\xee\x5f\xdb\x61\x8e\x67\x49\xf6\x05\x22\xf5\xad\x03\xa3\x4d\x44\x65"[..]); ctx.update(b"\x04\xc4\x8b\x4c\x37\xa0\xda\xfe\x8a\xb2\xc5\x17\xee\xb4\x72\x38\x56\x61\x00\x13\x76\x29\x6a\xc5\xca\x2a\xaf\x67\xdb\x5c\x30\xdf\xbe\x0b\x59\xfc\xdd\x8b\x83\xc3\xfa\x27\x19\x03\x70\x5a\xfa\x30\xbc\x42\x1f\x6d\x3d\x51\x7e\xeb\x38\x46\x2e\x72\x1f\x5b\xcb\x3d\x13\xc0\x1c\x0b\xa7\x49\xf3\x73\xe7\x64\x55\x78\x99\x4d\xdb\x5d\xc2\x85\x58\xbb\x6c\x80\xbc\xd0\xa7\x9d\x39\x1a\xce\x5c\xa4\x24\x0b\xcc\x1d\xa1\x1d\x42\xf2\xb7\x59\x50\xc1\x9d\xef\xf5\xdd\x68\x6f\x12\xf3\x22\x8c\x1d\xee\x1d"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x29\xa6\xb0\x43\x53\xea\x82\xf3\xf2\xa2\x85\x03\xa1\x25\x23\x3f\x8a\xfc\x5b\x60\x19\x21\x63\x7a\x0a\x24\xb8\x34\x36\xab\xf9\xb5"[..]); ctx.update(b"\xbc\x43\xae\x59\xc1\xbe\xd7\x4f\xd4\xeb\x61\xbe\x97\xb0\x27\x6e\xc5\xad\xda\x96\xc6\x7c\x3b\x46\x80\x37\x8e\x02\x6f\x3b\x4b\xaf\xf8\x2c\x16\xb4\xfa\x3a\xf1\x59\xa7\xa2\xb1\x72\x92\x77\xae\x42\x08\xa2\xbf\x9a\xa4\x28\x66\x41\x1e\xab\x47\x98\x64\x34\xdf\x7e\xec\x2f\x72\x72\x48\xb7\x45\xf7\xfb\x14\x0e\x3d\x8b\x82\xa9\xfd\xd7\x34\x0c\xa5\xab\x99\x7d\xb5\x92\xde\x03\x69\xeb\xb4\x1a\x98\x3f\x53\xaa\xdc\xd2\xbf\x3a\xf3\x78\x4a\x61\x65\xaa\x5a\x7e\x67\xd9\x6c\xa9\x00\x02\x59\xea\x6a\x83"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\x12\x44\x58\x71\x79\xef\xf2\x88\x81\xbb\x80\xb0\x2d\x19\x39\x08\xa4\xc4\xd0\x14\xb4\xda\x5b\x7e\x93\xc0\x9e\x2b\x29\x64\xf5"[..]); ctx.update(b"\xdd\xad\x78\x97\x28\x58\x10\x44\xff\x76\x0f\x79\x09\x9e\x01\xa2\xcf\xc9\x4b\xa2\x7a\x07\x0e\x22\xde\x71\x4e\x28\xb8\x5f\x54\xeb\x34\xdb\x50\xe6\xb3\x55\x43\x2b\xca\x98\x1c\xfa\x8e\xfc\x21\x92\x0f\xdd\x91\x47\x22\x4d\x88\xd5\x64\x06\x22\xf4\x7b\xa2\xe3\x2c\x9f\x0f\x57\xeb\x5a\x3d\xf5\xd5\x8b\x19\x49\x5b\xb1\xbf\x53\x8f\x66\xeb\x2a\x36\x2a\xb1\xe4\x1f\x62\x6f\xba\xb4\xa0\xff\x68\xcf\x25\x31\xd3\xcf\xa5\x78\xee\xea\x4a\xe3\xde\xc5\xfb\x4f\x5d\x41\xdd\xdc\x5c\x98\x1a\x9d\xec\xaa\xe2\x94"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x6e\x3f\xf9\x6f\x4e\x4a\x72\x2c\x91\x23\x92\xb3\xb5\xfa\x20\xae\x76\x2c\xce\xf2\x44\xc0\x11\x26\x87\x20\x96\x21\x84\x38\x3a\x66"[..]); ctx.update(b"\x8c\x72\x14\xe1\x4e\xb6\xe0\xee\x14\xde\x3c\xa0\xed\xcb\x51\x0a\xec\x50\x79\xb3\xd1\x43\xff\x48\xe5\xd3\x26\x8d\x26\x1b\x6c\x99\xa4\xf8\x0f\x43\x2b\x18\xd1\xd8\x22\x54\xf8\x0f\xb3\x40\x9a\x3e\x2d\x00\x17\xcd\xa6\x5d\xe7\xeb\xe4\x18\x96\x81\x7e\x7d\x0c\x64\x3e\x3c\x12\xcf\xca\x75\x12\x10\x83\x12\x1e\x81\xae\x59\x34\xba\xd2\xc1\xc1\x05\x60\x05\x63\x13\x99\x78\xf3\xed\xad\x98\xc3\x2c\x20\xe5\x24\x6d\x72\xf4\x2c\x00\xff\xbf\xb6\xe0\x24\x3f\xa9\xe8\xa3\x3d\x7e\x43\x49\x65\xfc\x25\xce\x9c\x46"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\xb4\xe5\xed\xda\x4f\xb4\xf7\xc0\xe7\x34\xcb\xcc\xa3\xc7\x8d\xbd\x6f\x2c\x9a\x99\x7a\xe8\x5a\x63\x94\x10\x8c\xbc\x5c\x56\x7d"[..]); ctx.update(b"\x3b\x76\x6f\xbb\xa3\x33\x99\x59\xb1\x94\x16\x3c\x36\xb4\xeb\x65\x05\xac\x17\xe7\xb2\x4e\x75\x3e\x99\x16\xe3\xe1\x22\x5d\xa4\x1b\x44\xd0\x03\x16\x48\x21\x39\x39\xd0\xfc\x91\xb3\x17\x3d\xca\x58\x7a\x60\xbd\xad\x38\x38\x40\x3e\x76\xe4\x49\x38\x86\x00\x57\x33\x68\x18\x0d\x50\x91\x62\x20\x84\xec\xac\x74\x33\x1f\x93\x82\x01\x0f\xf6\xfd\xe5\xa6\xaa\xb5\x7f\xd4\x6f\xbb\xab\xd3\x23\xc6\x56\xb0\x36\xd5\x90\x07\x5e\x16\xe3\x0e\x8c\x07\xe3\xd4\x1e\xdb\x07\xcb\x56\x1f\xb7\x85\x0b\x9d\xa6\xbb\x9e\x81\x62"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb4\x50\xe0\x83\xd9\xf3\xf5\x82\x84\xef\x80\x02\x3e\x3b\xac\xb1\x82\x6e\x56\x0a\x22\xf6\xe6\x62\x5d\x14\xad\x13\x48\xdf\x96\xb1"[..]); ctx.update(b"\x6e\xd8\xa9\xf9\xf2\xba\xf5\x7e\x65\x9a\xed\x12\x78\x33\xed\xee\x90\x25\xa8\x48\x1c\xf6\x1d\x77\x25\x56\xc7\x58\x26\xa7\x14\xf0\x1f\xbc\x19\x53\xe5\xe1\x84\xc4\xbc\x1c\xd2\x1d\x27\xb3\xc2\x72\xff\xee\x09\xf1\xc3\x1e\x47\x0c\x2f\xde\x3a\xdb\x10\x99\x31\xbb\x56\x4d\xc4\x3c\x6b\x8e\xc3\x3a\xc3\xcd\x6c\x49\xb5\xda\xe1\x57\x89\xa8\xd9\x8c\xd2\x51\x95\x75\xfe\x59\x16\x62\x2b\x37\x8d\x0c\x3c\x11\x13\x7b\x2c\xc8\x9a\x27\xa3\x34\x23\x5e\xc7\xb1\x32\xe5\x55\xda\x7f\xe2\xf0\x94\xef\xf9\xb9\x4f\xc2\xb6\x1f"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x17\x31\x2a\x26\xef\x9b\x41\xff\xeb\xe3\x1e\xe7\xee\x51\x16\x27\x04\xa2\xf0\x5a\x59\x05\xff\x8b\x69\x2f\xd6\x03\x94\x2e\x96\x68"[..]); ctx.update(b"\xdc\xb4\x58\x19\x3c\x4b\xa8\x2a\x45\xbf\xdf\x02\x80\x00\x84\x1e\x4a\x8c\x67\x1f\x8e\x2b\x84\x1d\xd4\xdc\x2a\x3d\x7b\x0f\x5d\x86\x42\x14\x78\xf0\x0e\xd4\x17\xbe\xe7\xbf\x33\x0e\x43\x05\x8f\xaf\x87\x09\x53\x32\xcb\x13\xf7\x44\xdd\x44\x63\x3b\x89\xd0\x55\xee\x18\x67\x02\xca\x17\xf4\x00\x22\x5a\x8a\x63\xc7\x40\x9b\x27\xd9\x37\x6c\xce\xdc\x83\xc5\x49\x0e\x3c\xed\x1c\xf8\x96\xd6\xbe\x44\x66\x94\x3e\xce\xe1\x13\x2c\xfe\xa6\x0a\xb7\x54\xff\x2b\x13\x44\x63\x9d\x1e\x45\x40\xab\x42\x25\xf8\xbe\x9d\x9f\x29\x88"); ctx.digest(&mut digest); assert_eq!(digest, &b"\x93\x92\xce\x14\xd3\x44\xde\x05\xe4\xf8\x7f\x63\x4b\x45\x70\x79\x34\x3e\x27\x0f\xff\x5b\x5c\x7b\x73\x1e\x9f\xef\x13\x71\x15\xdd"[..]); ctx.update(b"\x3e\x3a\x52\xd3\x26\x1e\x11\x94\x24\x97\x86\xd6\xc0\xe1\x8d\x52\xd9\x2f\x1c\x76\x39\xf0\x79\xc2\x6c\x51\xaa\x72\xd1\x03\x2e\x5d\xf1\x3e\xea\x1d\x10\x06\x66\x70\x02\xad\x39\xde\x40\x99\xc2\x9c\x3b\x47\x19\xb1\xf0\x90\x45\x57\xbd\x2b\xb0\xa4\x73\x74\xd8\x69\xac\x6b\x46\x5b\x5f\x00\xc4\x70\xb1\x8e\xcb\x8c\x0e\xa5\x3b\x5d\x79\x0c\x4e\x83\x20\x06\xcf\xf5\x34\xd5\x87\xa0\xf7\x7d\xf9\x51\x17\xca\x4f\xd4\x3a\x94\x93\x5e\xda\x42\x22\x28\x53\x8d\x5e\x5d\x3a\x87\xa4\x36\xf1\xdb\x7e\x63\x78\x56\x19\xae\x86\xa6\xf9"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xb3\x4e\x72\xce\xfe\xfb\x63\xd6\xe3\x09\xbc\xfb\x4f\x0b\x1d\x35\x0f\x2c\x5c\x58\x2d\xe3\xb9\x3a\xd1\x37\xf9\x21\xa9\x2a\x7e\x79"[..]); ctx.update(b"\xbc\x81\x73\xc8\x78\xca\x60\xe9\xa0\xf8\x23\xf9\xa5\x89\xd4\xff\x84\x54\x7b\x38\x9b\x11\x7f\xb6\xbb\x1b\x61\x4e\x7e\x75\xa9\xb1\xdb\x0b\x21\xd9\xf7\x3b\x42\xa7\x3e\x94\xec\xca\xb3\xde\x5a\xe2\x84\x5a\x54\xe5\xe2\x4b\xa6\xc2\x0f\xb4\xd2\x45\xb9\x64\x02\x3b\x86\x30\x40\xd6\xf0\x80\xe9\x53\x53\x0d\x5f\xd9\x44\xe8\xff\xa5\x25\xbf\x53\x64\xf6\x5c\x88\xe0\x6e\x6e\x22\xdf\x4b\x8c\xee\x48\xe6\x77\x38\x88\x0a\x9f\x3f\x34\x06\xe9\xe6\xf0\x01\xb0\xac\x8f\x8e\x0a\xde\x7c\x81\x4c\x0c\x58\x00\xd0\xb9\xe4\xdd\xf5\x56\x22"); ctx.digest(&mut digest); assert_eq!(digest, &b"\xf6\x91\xd0\x1e\xe9\xab\x67\x5f\x38\x72\x31\x3b\x77\xe6\xa4\x54\x3c\x71\xe3\xe8\x9a\xa9\x4c\x48\xf9\x1d\x6e\xe7\xfa\x1a\xb4\xfb"[..]); } } nettle-7.1.0/src/helper.rs000064400000000000000000000024400072674642500135700ustar 00000000000000use crate::{Error, Result}; use nettle_sys::{ __gmpz_clear, __mpz_struct, nettle_mpz_get_str_256, nettle_mpz_init_set_str_256_u, nettle_mpz_sizeinbase_256_u, }; use std::mem::zeroed; pub fn convert_gmpz_to_buffer(mut mpz: __mpz_struct) -> Box<[u8]> { unsafe { let mut ret = vec![0u8; nettle_mpz_sizeinbase_256_u(&mut mpz)]; nettle_mpz_get_str_256(ret.len(), ret.as_mut_ptr(), &mut mpz); while ret.len() > 1 && ret[0] == 0 { ret.remove(0); } ret.into() } } /// Convert the buffer to an mpz number. /// /// This inits the mpz number. Take care not to init twice! pub fn convert_buffer_to_gmpz(buf: &[u8]) -> __mpz_struct { unsafe { let mut ret = zeroed(); nettle_mpz_init_set_str_256_u(&mut ret, buf.len(), buf.as_ptr()); ret } } pub fn write_gmpz_into_slice( mut mpz: __mpz_struct, slice: &mut [u8], arg: &'static str, ) -> Result<()> { unsafe { if nettle_mpz_sizeinbase_256_u(&mut mpz as *mut _) > slice.len() { __gmpz_clear(&mut mpz); Err(Error::InvalidArgument { argument_name: arg }) } else { nettle_mpz_get_str_256(slice.len(), slice.as_mut_ptr(), &mut mpz); __gmpz_clear(&mut mpz); Ok(()) } } } nettle-7.1.0/src/kdf/hkdf.rs000064400000000000000000000157430072674642500140030ustar 00000000000000use nettle_sys::{nettle_hkdf_expand, nettle_hkdf_extract}; use crate::hash::NettleHash; use crate::mac::Hmac; use crate::mac::Mac; /// H. Krawczyks HMAC-based key derivation function (RFC 5869). /// /// Derives `key` from `secret`, public `salt` and optional context `info`. pub fn hkdf( secret: &[u8], salt: &[u8], info: &[u8], key: &mut [u8], ) { let mut extract = Hmac::::with_key(salt); let mut digest = vec![0u8; extract.mac_size()]; unsafe { nettle_hkdf_extract( (&mut extract as *mut Hmac) as *mut _, Some(Hmac::::nettle_update), Some(Hmac::::nettle_digest), digest.len(), secret.len(), secret.as_ptr(), digest.as_mut_ptr(), ); } let mut expand = Hmac::::with_key(&digest); unsafe { nettle_hkdf_expand( (&mut expand as *mut Hmac) as *mut _, Some(Hmac::::nettle_update), Some(Hmac::::nettle_digest), digest.len(), info.len(), info.as_ptr(), key.len(), key.as_mut_ptr(), ); } } #[cfg(test)] mod tests { use super::*; use crate::hash::insecure_do_not_use::Sha1; use crate::hash::Sha256; #[test] fn rfc_5869_case_1() { let secret = &b"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"[..]; let salt = &b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c"[..]; let info = &b"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9"[..]; let mut key = vec![0u8; 42]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x3c\xb2\x5f\x25\xfa\xac\xd5\x7a\x90\x43\x4f\x64\xd0\x36\x2f\x2a\x2d\x2d\x0a\x90\xcf\x1a\x5a\x4c\x5d\xb0\x2d\x56\xec\xc4\xc5\xbf\x34\x00\x72\x08\xd5\xb8\x87\x18\x58\x65"[..]); } #[test] fn rfc_5869_case_2() { let secret = &b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"[..]; let salt = &b"\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf"[..]; let info = &b"\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"[..]; let mut key = vec![0u8; 82]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\xb1\x1e\x39\x8d\xc8\x03\x27\xa1\xc8\xe7\xf7\x8c\x59\x6a\x49\x34\x4f\x01\x2e\xda\x2d\x4e\xfa\xd8\xa0\x50\xcc\x4c\x19\xaf\xa9\x7c\x59\x04\x5a\x99\xca\xc7\x82\x72\x71\xcb\x41\xc6\x5e\x59\x0e\x09\xda\x32\x75\x60\x0c\x2f\x09\xb8\x36\x77\x93\xa9\xac\xa3\xdb\x71\xcc\x30\xc5\x81\x79\xec\x3e\x87\xc1\x4c\x01\xd5\xc1\xf3\x43\x4f\x1d\x87"[..]); } #[test] fn rfc_5869_case_3() { let secret = &b"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"[..]; let salt = &[]; let info = &[]; let mut key = vec![0u8; 42]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x8d\xa4\xe7\x75\xa5\x63\xc1\x8f\x71\x5f\x80\x2a\x06\x3c\x5a\x31\xb8\xa1\x1f\x5c\x5e\xe1\x87\x9e\xc3\x45\x4e\x5f\x3c\x73\x8d\x2d\x9d\x20\x13\x95\xfa\xa4\xb6\x1a\x96\xc8"[..]); } #[test] fn rfc_5869_case_4() { let secret = &b"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"[..]; let salt = &b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c"[..]; let info = &b"\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9"[..]; let mut key = vec![0u8; 42]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x08\x5a\x01\xea\x1b\x10\xf3\x69\x33\x06\x8b\x56\xef\xa5\xad\x81\xa4\xf1\x4b\x82\x2f\x5b\x09\x15\x68\xa9\xcd\xd4\xf1\x55\xfd\xa2\xc2\x2e\x42\x24\x78\xd3\x05\xf3\xf8\x96"[..]); } #[test] fn rfc_5869_case_5() { let secret = &b"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"[..]; let salt = &b"\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf"[..]; let info = &b"\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"[..]; let mut key = vec![0u8; 82]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x0b\xd7\x70\xa7\x4d\x11\x60\xf7\xc9\xf1\x2c\xd5\x91\x2a\x06\xeb\xff\x6a\xdc\xae\x89\x9d\x92\x19\x1f\xe4\x30\x56\x73\xba\x2f\xfe\x8f\xa3\xf1\xa4\xe5\xad\x79\xf3\xf3\x34\xb3\xb2\x02\xb2\x17\x3c\x48\x6e\xa3\x7c\xe3\xd3\x97\xed\x03\x4c\x7f\x9d\xfe\xb1\x5c\x5e\x92\x73\x36\xd0\x44\x1f\x4c\x43\x00\xe2\xcf\xf0\xd0\x90\x0b\x52\xd3\xb4"[..]); } #[test] fn rfc_5869_case_6() { let secret = &b"\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"[..]; let salt = &[]; let info = &[]; let mut key = vec![0u8; 42]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x0a\xc1\xaf\x70\x02\xb3\xd7\x61\xd1\xe5\x52\x98\xda\x9d\x05\x06\xb9\xae\x52\x05\x72\x20\xa3\x06\xe0\x7b\x6b\x87\xe8\xdf\x21\xd0\xea\x00\x03\x3d\xe0\x39\x84\xd3\x49\x18"[..]); } #[test] fn rfc_5869_case_7() { let secret = &b"\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"[..]; let salt = &[]; let info = &[]; let mut key = vec![0u8; 42]; hkdf::(secret, salt, info, &mut key); assert_eq!(&key[..], &b"\x2c\x91\x11\x72\x04\xd7\x45\xf3\x50\x0d\x63\x6a\x62\xf6\x4f\x0a\xb3\xba\xe5\x48\xaa\x53\xd4\x23\xb0\xd1\xf2\x7e\xbb\xa6\xf5\xe5\x67\x3a\x08\x1d\x70\xcc\xe7\xac\xfc\x48"[..]); } } nettle-7.1.0/src/kdf/mod.rs000064400000000000000000000001550072674642500136350ustar 00000000000000//! Key derivation functions mod hkdf; pub use self::hkdf::hkdf; mod pbkdf2; pub use self::pbkdf2::pbkdf2; nettle-7.1.0/src/kdf/pbkdf2.rs000064400000000000000000000055250072674642500142340ustar 00000000000000use nettle_sys::nettle_pbkdf2; use crate::hash::NettleHash; use crate::mac::Hmac; use crate::mac::Mac; /// Password-based Key derivation function 2 (RFC 6070). /// /// Derives `key` from a secret `password` and a public `salt`. pub fn pbkdf2( password: &[u8], salt: &[u8], iterations: u32, key: &mut [u8], ) { let mut hmac = Hmac::::with_key(password); unsafe { nettle_pbkdf2( (&mut hmac as *mut Hmac) as *mut _, Some(Hmac::::nettle_update), Some(Hmac::::nettle_digest), hmac.mac_size(), iterations, salt.len(), salt.as_ptr(), key.len(), key.as_mut_ptr(), ); } } #[cfg(test)] mod tests { use super::*; use crate::hash::insecure_do_not_use::Sha1; #[test] fn rfc_6070_case_1() { let password = &b"password"[..]; let salt = &b"salt"[..]; let mut key = vec![0u8; 20]; pbkdf2::(password, salt, 1, &mut key); assert_eq!(&key[..], &b"\x0c\x60\xc8\x0f\x96\x1f\x0e\x71\xf3\xa9\xb5\x24\xaf\x60\x12\x06\x2f\xe0\x37\xa6"[..]); } #[test] fn rfc_6070_case_2() { let password = &b"password"[..]; let salt = &b"salt"[..]; let mut key = vec![0u8; 20]; pbkdf2::(password, salt, 2, &mut key); assert_eq!(&key[..], &b"\xea\x6c\x01\x4d\xc7\x2d\x6f\x8c\xcd\x1e\xd9\x2a\xce\x1d\x41\xf0\xd8\xde\x89\x57"[..]); } #[test] fn rfc_6070_case_3() { let password = &b"password"[..]; let salt = &b"salt"[..]; let mut key = vec![0u8; 20]; pbkdf2::(password, salt, 4096, &mut key); assert_eq!(&key[..], &b"\x4b\x00\x79\x01\xb7\x65\x48\x9a\xbe\xad\x49\xd9\x26\xf7\x21\xd0\x65\xa4\x29\xc1"[..]); } #[test] fn rfc_6070_case_4() { let password = &b"password"[..]; let salt = &b"salt"[..]; let mut key = vec![0u8; 20]; pbkdf2::(password, salt, 16777216, &mut key); assert_eq!(&key[..], &b"\xee\xfe\x3d\x61\xcd\x4d\xa4\xe4\xe9\x94\x5b\x3d\x6b\xa2\x15\x8c\x26\x34\xe9\x84"[..]); } #[test] fn rfc_6070_case_5() { let password = &b"passwordPASSWORDpassword"[..]; let salt = &b"saltSALTsaltSALTsaltSALTsaltSALTsalt"[..]; let mut key = vec![0u8; 25]; pbkdf2::(password, salt, 4096, &mut key); assert_eq!(&key[..], &b"\x3d\x2e\xec\x4f\xe4\x1c\x84\x9b\x80\xc8\xd8\x36\x62\xc0\xe4\x4a\x8b\x29\x1a\x96\x4c\xf2\xf0\x70\x38"[..]); } #[test] fn rfc_6070_case_6() { let password = &b"pass\x00word"[..]; let salt = &b"sa\x00lt"[..]; let mut key = vec![0u8; 16]; pbkdf2::(password, salt, 4096, &mut key); assert_eq!(&key[..], &b"\x56\xfa\x6a\xa7\x55\x48\x09\x9d\xcc\x37\xd7\xf0\x34\x25\xe0\xc3"[..]); } } nettle-7.1.0/src/lib.rs000064400000000000000000000012400072674642500130540ustar 00000000000000//! Rust bindings for the [Nettle cryptographic //! library](https://www.lysator.liu.se/~nisse/nettle/). #![warn(missing_docs)] // Allow Struct { field: field } #![allow(clippy::redundant_field_names)] // Allow module name repetition, e.g. modname::modname #![allow(clippy::module_inception)] extern crate libc; extern crate nettle_sys; extern crate getrandom; mod errors; pub use crate::errors::{Error, Result}; mod helper; pub mod hash; pub mod cipher; pub mod mode; pub mod aead; pub mod mac; pub mod kdf; pub mod rsa; pub mod random; pub mod ecc; pub mod curve25519; pub mod curve448; pub mod dsa; pub mod ecdh; pub mod ecdsa; pub mod ed25519; pub mod ed448; nettle-7.1.0/src/mac/hmac.rs000064400000000000000000000735660072674642500140020ustar 00000000000000use libc::size_t; use nettle_sys::{nettle_hmac_digest, nettle_hmac_set_key, nettle_hmac_update}; use std::mem::zeroed; use std::os::raw::c_void; use std::slice; use crate::hash::NettleHash; use crate::{hash::Hash, mac::Mac, Result}; /// Hashed message authentication code. pub struct Hmac { outer: H::Context, inner: H::Context, state: H::Context, } impl Hmac { /// Create a new MAC instance with secret `key`. pub fn with_key(key: &[u8]) -> Self { unsafe { let mut ret: Hmac = zeroed(); nettle_hmac_set_key( (&mut ret.outer as *mut H::Context) as *mut _, (&mut ret.inner as *mut H::Context) as *mut _, (&mut ret.state as *mut H::Context) as *mut _, H::nettle_hash() as *const _, key.len(), key.as_ptr(), ); ret } } #[doc(hidden)] pub extern "C" fn nettle_update( ctx: *mut c_void, length: size_t, src: *const u8, ) { unsafe { let ctx: &mut Hmac = &mut *(ctx as *mut Hmac); let src = slice::from_raw_parts(src, length); ctx.update(src); } } #[doc(hidden)] pub extern "C" fn nettle_digest( ctx: *mut c_void, length: size_t, dst: *mut u8, ) { unsafe { let ctx: &mut Hmac = &mut *(ctx as *mut Hmac); let src = slice::from_raw_parts_mut(dst, length); ctx.digest(src).unwrap(); } } } impl Mac for Hmac { fn mac_size(&self) -> usize { H::default().digest_size() } fn update(&mut self, data: &[u8]) { unsafe { nettle_hmac_update( (&mut self.state as *mut H::Context) as *mut _, H::nettle_hash() as *const _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { unsafe { nettle_hmac_digest( (&self.outer as *const H::Context) as *const _, (&self.inner as *const H::Context) as *const _, (&mut self.state as *mut H::Context) as *mut _, H::nettle_hash() as *const _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; use crate::hash::insecure_do_not_use::Sha1; use crate::hash::{Sha224, Sha256, Sha384, Sha512}; #[test] fn cavp_sha1() { { let mut hmac = Hmac::::with_key( &b"\x82\xf3\xb6\x9a\x1b\xff\x4d\xe1\x5c\x33"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\xfc\xd6\xd9\x8b\xef\x45\xed\x68\x50\x80\x6e\x96\xf2\x55\xfa\x0c\x81\x14\xb7\x28\x73\xab\xe8\xf4\x3c\x10\xbe\xa7\xc1\xdf\x70\x6f\x10\x45\x8e\x6d\x4e\x1c\x92\x01\xf0\x57\xb8\x49\x2f\xa1\x0f\xe4\xb5\x41\xd0\xfc\x9d\x41\xef\x83\x9a\xcf\xf1\xbc\x76\xe3\xfd\xfe\xbf\x22\x35\xb5\xbd\x03\x47\xa9\xa6\x30\x3e\x83\x15\x2f\x9f\x8d\xb9\x41\xb1\xb9\x4a\x8a\x1c\xe5\xc2\x73\xb5\x5d\xc9\x4d\x99\xa1\x71\x37\x79\x69\x23\x41\x34\xe7\xda\xd1\xab\x4c\x8e\x46\xd1\x8d\xf4\xdc\x01\x67\x64\xcf\x95\xa1\x1a\xc4\xb4\x91\xa2\x64\x6b\xe1"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x1b\xa0\xe6\x6c\xf7\x2e\xfc\x34\x92\x07"[..], &digest[..10] ); } { let mut hmac = Hmac::::with_key( &b"\x47\x66\xe6\xfe\x5d\xff\xc9\x8a\x5c\x50"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\xd6\x8b\x82\x8a\x15\x3f\x51\x98\xc0\x05\xee\x36\xc0\xaf\x2f\xf9\x2e\x84\x90\x75\x17\xf0\x1d\x9b\x7c\x79\x93\x46\x9d\xf5\xc2\x10\x78\xfa\x35\x6a\x8c\x97\x15\xec\xe2\x41\x4b\xe9\x4e\x10\xe5\x47\xf3\x2c\xbb\x8d\x05\x82\x52\x3e\xd3\xbb\x00\x66\x04\x6e\x51\x72\x20\x94\xaa\x44\x53\x3d\x2c\x87\x6e\x82\xdb\x40\x2f\xbb\x00\xa6\xc2\xf2\xcc\x34\x87\x97\x3d\xfc\x16\x74\x46\x3e\x81\xe4\x2a\x39\xd9\x40\x29\x41\xf3\x9b\x5e\x12\x6b\xaf\xe8\x64\xea\x16\x48\xc0\xa5\xbe\x0a\x91\x26\x97\xa8\x7e\x4f\x8e\xab\xf7\x9c\xbf\x13\x0e"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x00\x7e\x45\x04\x04\x1a\x12\xf9\xe3\x45"[..], &digest[..10] ); } { let mut hmac = Hmac::::with_key( &b"\x0f\x94\x2d\x98\xa5\xc4\x06\x15\x59\x67"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\xf8\x4d\x0d\x81\x3d\x2e\x9e\x77\x9e\x85\x70\xbd\xdb\xdf\x6f\xdc\x6b\xaa\xde\x5a\xcb\x3c\x4c\xde\x16\x18\xc4\x94\xd6\x6d\x45\xd3\x19\xe0\x71\xfe\xc8\x8b\x89\xa8\x35\x46\x99\xfb\xf3\x25\xf0\x5a\xea\x42\xd3\x45\xaa\xbc\x73\x7d\x00\xff\x1c\x69\xc7\x46\xae\xb9\x01\x5f\x51\x49\x27\xae\x65\x48\xbd\x75\xb8\x99\x28\x53\xfc\x79\xc4\x0a\x78\x63\x32\x85\xfd\x30\xef\x19\x1c\x83\x2b\x0b\x96\x64\xd8\x52\x14\x2b\x01\x9f\x18\xa0\x5d\x9b\x34\x60\x24\x6f\x7a\x83\x21\x8a\x33\x7b\x09\x9e\xd4\x3f\x0b\xec\x2d\xaa\xa8\xc2\xe4\x1d"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\xc1\x9d\x05\xa8\x08\x05\x4b\x80\x39\xf9"[..], &digest[..10] ); } { let mut hmac = Hmac::::with_key( &b"\x78\xcb\x19\x4a\x95\x8f\xc1\xb9\x5e\x35"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\xd6\xeb\x23\xc5\xea\x87\xfd\x67\xb9\x43\x92\x8b\xe0\x52\x18\x23\xdc\x50\x8a\xcb\x2a\xd5\xf0\xfd\xac\x49\xe0\x84\x4f\xfa\x45\x33\xeb\x6b\x5f\xd6\x6b\xf0\x0b\x69\x2d\x77\x45\x88\xac\xa9\xeb\x27\x5c\x32\xc3\x83\xd5\x5c\xc0\x58\x34\xe3\x81\x55\xbe\x05\x1b\xcd\xc7\xd8\x18\xaf\xd3\xe0\xc0\xb8\xfa\xe1\x97\xe7\x91\xf2\x26\x32\x06\xd3\xfe\x77\x0c\x80\xfb\xb5\xf8\x06\xc6\x7c\x6b\x96\x9d\xa2\x32\xd8\x57\x38\x6a\x81\xa2\xbc\xe8\x28\x90\x90\xd8\x56\x52\xab\xa3\xdc\x43\x8f\x17\x69\x28\x7b\xc2\x5b\xb5\xe1\x9e\xd6\x54\x1a"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x53\x9d\x5c\xbb\x60\x73\x9e\x15\x21\x96"[..], &digest[..10] ); } { let mut hmac = Hmac::::with_key( &b"\x2b\xaa\x67\x31\xc3\x67\xe0\xf8\x18\xab"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\xa6\x4e\xc0\xd9\x33\x60\x97\x6b\x75\xf5\x0e\xa5\x32\xc3\xd5\x01\x46\x4a\x39\x2c\x00\xab\xa5\x72\xc9\xbd\x69\x77\x06\x5e\xbb\x29\x40\x07\xfb\xf2\x82\xa4\x3c\x32\x03\xa2\xff\xec\x05\x49\x41\xc0\xfd\x4c\xb9\x19\xf4\x9e\x5b\xa7\x2d\x88\x20\x10\x08\xf9\x09\xe2\x26\x1d\x62\xcd\xce\x30\x44\x0f\x90\x95\x5d\x2f\x28\x22\xf3\xee\xa5\xbf\x27\x7b\xca\x2f\x77\xe6\xb4\x2d\x87\xd7\xbd\xbb\x21\x80\xa1\xb7\x7a\xd0\xdf\xaf\xb7\xe9\x62\xf6\xaf\xd5\x61\xf7\xf3\x74\x84\xca\x0c\xb9\x48\x05\x03\x16\xa4\xd5\x27\x35\xed\x4d\x0a\xe9"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x2d\xdc\x8c\x48\x03\xe5\xa4\xc7\x87\x1c"[..], &digest[..10] ); } { let mut hmac = Hmac::::with_key( &b"\xc1\xf4\xf1\xac\x1a\xdf\x93\xdf\x6e\x58"[..], ); let mut digest = vec![0u8; 20]; hmac.update(&b"\x5f\x45\x86\x57\xda\x5a\xec\x73\xd8\xaa\x5e\x34\x8b\xed\xc6\xaf\x48\x73\x41\x59\x3a\x0a\x74\x12\x56\x22\x23\x62\x91\x2f\xff\x02\x51\x4f\xc0\x9e\x22\x2d\x74\xd9\xab\x25\x17\x92\xe0\xa9\x63\x65\x79\xe3\xe9\x75\xa2\x9b\x61\x69\xf4\x5c\x3f\xb5\xa4\xd2\x87\x1b\xfa\x77\xe1\x71\x05\x6f\xf0\xa4\x8e\xaf\xe0\xfd\x4a\x65\x3e\xa3\x53\x94\x0d\x62\xd9\xff\x16\xaa\x15\x49\x7f\xdb\x7f\x5a\x9f\xbf\x41\x05\x11\x58\xeb\xe7\x07\xdd\x68\x92\xe1\xff\x31\xeb\xff\x70\xc0\xd0\xd3\xa6\x48\xfe\x3a\xdd\xa3\x32\x0c\x5b\x8c\x8f\xf1\xf7"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\xc1\xeb\xf8\x96\xbd\x26\xa3\x0c\xf6\x68"[..], &digest[..10] ); } } #[test] fn cavp_sha224() { { let mut hmac = Hmac::::with_key(&b"\x37\x14\x70\x78\x39\xda\xf7\x91\x22\xc7\x82\x41\x63\x51\x38\x5e\x88\xa8\x1d\x31\xc9\xf6\x41\xd8\xdc\xe5\x38\xe9\x0e\x63\xc9\x58\x92\xa2\xea\x9b\x19\x62\xed\x0b\xa3\x72\xf4\x8e\x94\x74\xaa\x73\x0a\xe2"[..]); let mut digest = vec![0u8; 28]; hmac.update(&b"\x41\x18\x43\xa2\x13\x87\x84\x6f\x3b\x9e\xd5\xfc\x54\x5a\xca\xdf\xa5\xb7\x03\x86\xf6\x2d\xa4\xd9\xa2\x7b\x04\x1b\xee\xa3\xaa\x11\x99\x36\x75\x67\xb4\xd1\x1a\x4f\xb4\xe8\xd4\x6b\xc6\xc2\x56\xed\x62\xc5\x05\xfd\x23\xf4\x64\x5b\xd6\xb6\xcf\x45\xd1\xd9\x6d\x9b\x86\xd6\x60\x41\x57\x57\x3e\xc5\xac\xf6\xc5\x41\x43\x48\xca\x83\xc8\x1a\x73\x6c\xa6\xfa\xa6\x96\x1c\xfa\xc1\x39\x93\xb0\x8c\x50\x2f\x81\x6c\xf7\xa4\x20\xd9\x18\x4b\x51\x11\x46\x75\xf3\x0e\xe9\xff\x3d\xb6\x9c\x26\x48\x53\xd3\x9d\xcd\x42\xc1\xdd\x31\xef\x79"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x33\xf1\x7a\xc8\xa5\xc6\xb5\x25\xdb\x8b\x86\x44\xb6\xab"[..], &digest[..14] ); } { let mut hmac = Hmac::::with_key(&b"\xce\x4c\x92\x6c\x09\x22\xba\x36\x26\x9a\x20\xd6\x0d\xcf\x08\xd4\x3a\x1c\xea\x12\x0f\x26\x6a\xf7\x6f\x1c\x8a\xcd\x88\x3d\x1f\x68\xf0\x9b\x82\x09\xf4\x1f\x87\x82\x2d\xce\xb3\x9a\x54\x4a\xa9\xb2\x56\x9c"[..]); let mut digest = vec![0u8; 28]; hmac.update(&b"\x41\x0a\xc8\x70\x3f\x31\x2f\xe4\x26\xf0\xd1\xa6\x2d\x36\x2d\x44\x78\x25\x2f\x11\xdf\xc7\x0b\x78\xf0\xfc\x6c\x91\x37\xb7\xce\xf2\xbd\x6a\x28\xc8\xce\xbf\xcf\x26\xff\x89\x97\x9c\x70\xfa\x3b\x0c\x4f\x16\xff\xb9\x9d\x67\x93\xa1\x35\xf3\x3b\x0d\x0a\x6b\x2d\x66\xb0\xa5\x3a\x4a\x1e\x4c\xb1\xdf\xb2\xd7\x81\x67\x75\xb7\x9d\x15\xa1\xd5\xa5\x1f\x60\x3b\xc2\x15\xd7\x11\xd2\x71\x63\xcc\xc5\x6f\x22\xa2\x46\x1f\xb6\x41\x9e\xb8\x45\xc0\xd6\x2f\xc4\xd6\x1c\x08\x76\x4a\x69\x6d\xaf\xaa\x60\x7d\xde\x40\x78\xe6\xca\x42\x5d\xb6"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x90\x08\x42\xbb\x91\x6f\xb0\xdf\xf7\xab\xe3\x7e\xd8\xf6"[..], &digest[..14] ); } { let mut hmac = Hmac::::with_key(&b"\x54\x3a\x1e\x5d\xc9\x38\x44\xc8\x36\x2e\xec\x72\x94\x3e\x7f\xae\x3e\x66\xd4\x8b\x55\x54\xae\x4c\x63\x7c\x86\x18\x3e\x67\x8b\xf3\x30\x4e\xe8\xed\x54\xe7\x45\x99\x43\x7f\x90\xc1\xf0\x49\xfd\x58\xd1\xf6"[..]); let mut digest = vec![0u8; 28]; hmac.update(&b"\xa5\xe1\xaa\x46\x37\x03\xf6\x8b\x32\xfe\x85\xa0\xee\x16\x98\x92\xda\x4e\x39\x11\x70\x89\xce\xbd\x68\xf0\xef\xa1\x2c\x93\x75\xfd\x8d\x53\xd3\x49\xb4\xff\xaa\x76\x5b\xbd\x97\x77\x3d\xac\x50\x00\xca\xc7\xef\x8e\x20\x0d\x8d\xa7\x37\xdf\x13\x63\x5b\xa9\x4d\x2b\xe0\xc4\x40\xc1\x11\x9b\xbe\x80\x69\x0d\x37\xe6\x06\x13\xd2\x4f\x5a\xa3\xbc\x03\x24\xd4\xc0\x73\x9e\x42\x19\xc0\xf8\xb4\x84\x7d\x06\xfc\x99\xb6\x36\x1f\x5a\x31\xc4\xb6\x0d\xf3\x31\x94\x47\x06\xf1\xa9\x4a\x7a\x64\x26\x90\xaa\x07\xe2\xa8\xc1\xec\xfd\x41\x7c"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x73\x33\xe3\x65\xfc\xc3\xab\x2e\x51\x10\x14\x4e\x62\xab"[..], &digest[..14] ); } { let mut hmac = Hmac::::with_key(&b"\xdc\x57\xaf\xb9\x18\x74\x27\x28\x86\x3d\xd8\x36\x3a\xc3\x9d\x22\x0c\xd2\x25\xab\x48\xd1\x49\x1b\xa7\xea\x9c\x84\x7e\x6b\x44\x4a\x36\x6c\x09\xe1\xfc\xb3\xac\xd8\xb9\xd4\x7a\x17\x45\x9c\x20\x65\xd8\xb0"[..]); let mut digest = vec![0u8; 28]; hmac.update(&b"\xf7\x91\xbe\x39\xf3\xb7\x42\x08\xb3\x27\x20\x2b\x57\x56\x82\x70\x84\x24\x60\x45\xfb\x19\xac\x1f\x71\xee\xcd\x1c\x9b\x4f\x4f\xe7\x88\xdf\xd9\xdc\x33\x7d\x5f\x6c\x59\xc6\x98\xc3\x88\xda\xb3\xa9\x79\x63\x46\xa6\x9f\xd4\x87\x6a\x00\xef\xbe\x6b\x44\x8a\xfa\xd0\x0b\x92\x03\x8e\x84\x50\x91\xd1\x3c\xeb\xbb\x9d\x33\x2f\xb2\xb5\x35\x8c\xaf\xbc\x67\x62\x2a\x9a\x21\x7c\x4d\x21\xfb\xda\xa8\xf1\x2b\xb3\x26\x98\x0e\xba\x40\xfe\x04\xa1\x70\x01\x81\xdb\xe9\x5c\x61\xa7\x85\xcd\x7c\x4a\xff\x77\x7b\x9b\x62\x85\xea\xc5\xc1\x10"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\x03\xd7\x96\x76\x59\xbc\x07\xf2\x87\xf2\xe4\x7d\x8e\x30"[..], &digest[..14] ); } { let mut hmac = Hmac::::with_key(&b"\x06\xe7\x21\x0d\xef\x08\x6f\x58\xb2\x10\xa7\x01\x06\x68\xe0\xd2\x5c\x52\xa4\x42\x1c\x1f\x4f\x48\x32\xa3\xb8\x71\xc9\xe6\x13\x31\x56\x1c\x16\x76\xd9\xd7\x5b\x83\x60\x7c\x06\xfc\xcc\xf3\xa7\x3d\xd7\xa3"[..]); let mut digest = vec![0u8; 28]; hmac.update(&b"\xce\x7b\xe9\x70\xd6\x62\x72\x56\xe2\x45\xfc\x65\xec\xc0\xfc\x50\xab\x41\x7b\x0b\x15\x78\xbc\xdc\x23\x08\x1f\xb5\xd4\x83\x45\xc1\x74\x95\x75\x3d\x1e\x7f\x3e\x89\x80\xc7\x5e\x7f\xde\x2e\xe3\x03\x59\xe3\x90\xdb\x72\xf6\x82\xc2\xca\x0f\x14\xb7\x2b\x60\xff\x9b\xcc\xd8\xc6\xfb\xd1\x9a\x51\x2b\x12\xad\xd7\x94\x1d\xf5\x02\x4e\x7e\x62\x4e\xf2\x3e\x67\xb3\xa9\xa9\xae\x83\x89\x54\x0a\x95\x22\x5f\xad\xa3\x53\xf8\x9b\xf1\x63\x20\x5e\x2f\x4c\xb2\xfb\xa1\x5a\xa1\x26\x7d\xf5\x81\xb2\x95\xbb\x49\x4b\x35\xd3\x57\x67\x4f\x7d"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!( &b"\xc5\x00\x41\x35\xb9\xbb\x6d\x83\x64\x30\x55\x03\xf7\x03"[..], &digest[..14] ); } } #[test] fn cavp_sha256() { { let mut hmac = Hmac::::with_key(&b"\x6f\x35\x62\x8d\x65\x81\x34\x35\x53\x4b\x5d\x67\xfb\xdb\x54\xcb\x33\x40\x3d\x04\xe8\x43\x10\x3e\x63\x99\xf8\x06\xcb\x5d\xf9\x5f\xeb\xbd\xd6\x12\x36\xf3\x32\x45"[..]); let mut digest = vec![0u8; 32]; hmac.update(&b"\x75\x2c\xff\x52\xe4\xb9\x07\x68\x55\x8e\x53\x69\xe7\x5d\x97\xc6\x96\x43\x50\x9a\x5e\x59\x04\xe0\xa3\x86\xcb\xe4\xd0\x97\x0e\xf7\x3f\x91\x8f\x67\x59\x45\xa9\xae\xfe\x26\xda\xea\x27\x58\x7e\x8d\xc9\x09\xdd\x56\xfd\x04\x68\x80\x5f\x83\x40\x39\xb3\x45\xf8\x55\xcf\xe1\x9c\x44\xb5\x5a\xf2\x41\xff\xf3\xff\xcd\x80\x45\xcd\x5c\x28\x8e\x6c\x4e\x28\x4c\x37\x20\x57\x0b\x58\xe4\xd4\x7b\x8f\xee\xed\xc5\x2f\xd1\x40\x1f\x69\x8a\x20\x9f\xcc\xfa\x3b\x4c\x0d\x9a\x79\x7b\x04\x6a\x27\x59\xf8\x2a\x54\xc4\x1c\xcd\x7b\x5f\x59\x2b"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x05\xd1\x24\x3e\x64\x65\xed\x96\x20\xc9\xae\xc1\xc3\x51\xa1\x86"[..], &digest[..16]); } { let mut hmac = Hmac::::with_key(&b"\x17\xb5\x28\x58\xe3\xe1\x35\xbe\x44\x40\xd7\xdf\x0c\xa9\x96\xf4\x1c\xcb\x78\xb7\xd8\xcc\x19\x24\xd8\x30\xfe\x81\xe0\xfd\x27\x9c\x13\x1c\xe3\x54\x63\x03\xe9\x5a"[..]); let mut digest = vec![0u8; 32]; hmac.update(&b"\xe0\xef\xf0\x0f\x3c\x46\xe9\x6c\x8d\x5b\xd1\x81\x28\x3e\x46\x05\x34\x8e\x3f\xa1\x0b\x47\x94\x5d\xe3\xdc\xc1\x59\xae\x86\xe7\xbd\x3f\xdb\x13\xf2\xad\xa2\xc3\x13\xfc\xe6\xa6\x9e\xfa\x49\xa4\x70\x68\x9b\x1e\xf0\x5a\xab\x77\x8a\xe1\x5d\xd3\x5f\xe6\xfd\x1e\x3a\x59\xd3\x51\xc6\x8c\xf8\xf0\xff\xd9\x68\xd7\xe7\x8b\x57\x37\x7a\xfc\xc9\xdc\xe3\xfa\x5d\xb1\xf0\x6f\x69\x85\xc4\x41\x4c\x0f\xcc\x78\x00\x30\xf4\x9f\xef\x79\x1a\x6c\x08\xed\xc2\xa3\x11\x08\x0c\x37\x3f\x00\xe4\xb2\x04\x4a\x79\xd8\x28\x60\xf0\x87\x1b\xc2\x59"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xc4\x06\x14\x27\x76\x4f\x97\x94\x68\xac\x42\x28\x91\xde\xa9\xca"[..], &digest[..16]); } { let mut hmac = Hmac::::with_key(&b"\x7c\x67\x41\x0e\x0a\x9e\x3d\x7a\xe4\xf3\xd0\x4e\xff\x1c\x27\x16\x89\x1e\x82\x1c\x6e\xc1\xdc\x82\x21\x42\xce\x8d\x99\x49\xb1\x44\x9a\x1a\x03\x3a\x35\x0f\x0b\xa8"[..]); let mut digest = vec![0u8; 32]; hmac.update(&b"\xbf\xd1\x66\x79\x3a\xbd\xcf\xfb\xbd\x56\xdf\x76\x91\x50\xd1\x46\x6c\x18\xa6\x7a\xf4\x52\xc7\xe6\x7f\x86\xed\x74\x1d\x16\x3e\xbb\xd8\x74\xb9\xd3\x3a\x91\xd3\x67\x10\x99\x62\x0b\x6e\xdd\xbb\xd0\xf3\x11\x17\x16\x4e\xb7\x3c\xa2\x01\xdb\x59\xf1\x65\x01\x31\xcb\xef\x5c\x7b\x1b\xb1\x40\x89\xfd\x24\xda\x29\x19\x24\x1f\xc9\x30\x3c\x02\xde\xf4\x24\xea\x86\x1d\x88\x63\x6b\xb9\x0b\x13\xeb\xc3\x8c\xf1\x77\xf8\xa8\xb1\x39\xe6\x80\x82\xfa\x46\xbc\xfc\x42\x8b\xd0\x54\xc1\xbb\x7d\xd3\xed\x7e\x9b\x86\xed\x75\x17\x36\xb6\xcc"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x1a\x0d\x42\x7e\x79\xa7\xbd\xca\x7b\x11\x57\x93\x39\xd0\xff\x77"[..], &digest[..16]); } { let mut hmac = Hmac::::with_key(&b"\xb2\xc4\x50\x12\x8d\x07\x44\x42\x1c\x3f\x31\xfa\xb3\x7b\xbc\xdf\xb5\xa2\xff\x2f\xb7\x06\xd1\xf7\xe2\x3c\x48\x86\x99\x2c\x7d\x21\x5c\x64\x8f\xf8\xed\xb2\xeb\x59"[..]); let mut digest = vec![0u8; 32]; hmac.update(&b"\xf6\x98\x9e\xbb\x07\xaa\xda\xee\xf9\x70\xf0\xb5\xce\xb8\x06\xec\xff\xe7\x7c\xc2\x0f\x3c\x22\x1a\x66\x59\xa9\x31\x5d\xff\x58\x81\x96\x19\x00\xe6\x8e\xfc\x32\x00\x75\xed\xaf\xd8\x3d\xe3\x20\xc6\xf1\x8f\x08\x92\x48\x9a\xf6\xd9\x7a\x2e\xff\xb2\x52\xb7\x6b\x92\x84\xeb\xaf\x6d\x42\x08\x9c\x1e\x0a\x5c\xd5\x09\xc2\x0b\x86\xff\x06\x0d\x53\x62\xc1\x76\x8f\x89\xfa\xfa\xaf\x65\xf1\xb0\xfe\x65\x6b\x16\x92\x98\x4a\x56\x7e\x12\x60\xc7\x49\x90\x85\xb7\x9f\x5f\xe7\x68\x47\x79\xa2\x58\x55\xf2\x91\xc5\xa1\x92\x63\x71\x77\xc4"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xf0\xd7\xc6\x36\x77\x03\x3a\xda\x0b\x50\x2a\x4e\x95\xb2\x0e\x43"[..], &digest[..16]); } { let mut hmac = Hmac::::with_key(&b"\xa7\x74\x43\x21\xd7\x39\x38\xb8\xee\xa1\x37\x54\x90\x90\x29\x88\x1b\xbd\x72\x74\x39\xfe\x27\x31\xb1\xc6\x7b\x70\x83\xeb\x7b\x5d\x33\xad\xfc\xca\x65\xf5\xd1\x89"[..]); let mut digest = vec![0u8; 32]; hmac.update(&b"\x71\x29\x9c\xa3\xda\xff\x23\x31\x08\x2d\xb3\x70\xbd\xf8\xce\xec\x22\x7b\x71\xbd\xc4\x9c\x3b\x14\xdc\x3f\xd2\x13\xd3\xba\x83\xe2\x05\x88\x28\xff\xc6\x41\x4f\xd5\xa2\xc9\x98\x91\xe9\xc8\x5f\x31\x6c\x5b\x9b\xdd\x81\x0a\x06\x7b\x4d\xf9\x7f\x7e\x42\x62\xac\xfe\xe6\x42\xe3\x0e\xd6\x53\x4b\x4a\x0b\x3b\x3e\xaf\x5d\x03\xf2\xb0\x45\xca\x59\x85\xe7\xbb\x45\xc7\x50\x3c\xd0\x3a\xfc\x68\xfb\xea\x9b\xc0\x95\x79\x14\x1d\x5f\xb7\xcb\xea\x6d\x73\x20\x8f\xcf\x91\x38\x30\x71\x5d\xff\x98\x40\x1f\x6d\x70\x8e\xf0\x09\xb5\xb8\xcb"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xf6\x30\x2c\x5f\xd7\xc8\x49\x5e\x23\x3b\x5d\x61\x29\xf3\x61\xda"[..], &digest[..16]); } } #[test] fn cavp_sha384() { { let mut hmac = Hmac::::with_key(&b"\xf1\x6a\xd7\x37\x90\xca\x39\xc7\xf9\x85\x6c\x44\x83\x20\x2e\x7f\x8e\x0c\x82\x83\xc7\xd5\x0d\x6d\xa7\x9c\xc0\x7d\x3d\xc7\xb7\x6c\x2e\xf7\x61\x00\xfa\x3a\xe2\xdf\x80\x83\xb5\xa1\xc5\x57\x96\x28\xf1\xc8"[..]); let mut digest = vec![0u8; 48]; hmac.update(&b"\x98\x70\x00\x76\x54\xeb\xc3\xd2\x8f\x88\x3b\xb8\x32\xe0\xb3\x17\x00\xf9\x23\xd9\xc9\xb1\x01\x68\xe0\x60\x59\x71\xcf\xb9\x20\xe8\x48\xf1\xc6\x4c\x5f\x24\x0a\x2c\xf7\xf4\x12\xea\x7a\x73\xbb\xbf\xce\x43\x2e\xff\x84\xfb\xb4\x9e\x52\xcd\xcb\xf4\xc3\x66\x79\xbd\x2d\x16\xe0\x64\xe4\x31\x13\x81\xad\xb5\x28\xa0\x75\x2c\x8e\x44\x43\xd4\xa1\x2b\x6c\xfe\x7c\xd4\x06\xb4\x0e\x3f\x9e\x9e\x71\xf4\x2e\x27\x76\x46\x49\xdb\x85\xd9\x99\x13\xa4\x62\x8b\xd5\xd5\xae\x49\xf6\xa5\xe6\xe9\x81\x02\x11\xe3\x5d\x4d\xda\xc9\x29\xb0\x93"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x79\xe2\x4a\x20\x3b\xf4\x20\x74\xe7\x2c\x8b\x4a\x02\x22\xaf\xac\xe3\xe8\xce\x7b\x40\x04\xce\xc2"[..], &digest[..24]); } { let mut hmac = Hmac::::with_key(&b"\xa5\x70\x9b\xa5\x52\x9c\xb9\xa1\xa2\x27\xf0\xbe\x44\x8e\x11\x9a\x35\x6f\x92\xe1\x3e\xfc\x34\x63\xbe\xaa\xe4\x6a\xa9\x29\xdf\x4a\xd1\x99\x1a\x39\x64\xfb\xe1\x61\xb6\xe5\xbe\x34\x41\x7a\x9c\x00\xeb\x9a"[..]); let mut digest = vec![0u8; 48]; hmac.update(&b"\x4f\x56\x9d\x60\x40\x56\x63\xff\xd4\x89\x37\x77\xcb\xc3\x71\x55\xd4\x03\xe2\xb0\xf5\x48\x5d\xa4\x2c\xa6\x75\x03\x57\x98\x89\x46\x51\x98\xfe\xca\x5e\xed\xcc\x39\xc9\xc5\x3c\x45\xcb\x83\xf0\x9d\xaf\x5a\x23\x19\x34\x1b\x32\x38\x33\x4b\x5b\xcd\x81\x79\xc5\xf5\x17\xce\xc1\x4c\x70\xe6\x50\x61\x33\xde\xe5\x67\x12\xaf\x6c\x2d\xf2\xba\x8a\x50\x4c\xa4\x27\xaf\xd3\x63\x2a\x1f\x57\x99\x83\x60\xe9\x21\x6f\x50\x40\xe8\xf7\x5f\x5b\xff\xba\x43\x68\xee\xed\xed\xe5\x4a\xa0\xbb\x05\x8a\x43\xef\x55\x16\x68\x60\x9f\xa1\xcb\x6f"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x24\x7e\xb5\x1a\x39\x7b\xa3\x69\xec\xba\x43\xb9\x5a\x46\xa9\x33\xcf\xf0\xb1\x00\x57\x14\xf0\xe5"[..], &digest[..24]); } { let mut hmac = Hmac::::with_key(&b"\x18\x7c\x04\x7e\x4e\xd5\x49\x03\x05\x22\x53\x55\xfb\xb3\x81\x68\x29\x32\x24\x5b\x01\xda\xe0\x4d\xf5\xe4\x56\x72\x38\x42\xff\x66\xc8\x90\x5b\xc1\xac\x48\x4c\xeb\x7a\x35\xbc\x32\x1d\x2a\x86\x19\xd5\xf3"[..]); let mut digest = vec![0u8; 48]; hmac.update(&b"\x16\x26\x3d\xd9\x50\x36\x12\x81\x19\xd7\x81\x86\x5e\x4f\x81\x8a\x86\x7b\x50\x66\x55\x1e\x71\x1f\x11\x79\xf6\x16\xe4\x1c\xfb\x7e\x82\xfb\x73\x13\x0b\xc4\x27\x09\x33\x70\xfb\x43\xa0\x19\x73\xc6\x94\x0b\x77\x6d\xcb\x1d\x53\xde\xa7\x42\x02\xbc\x8a\x5b\xac\x1f\x83\x4f\x6d\x41\x2e\x5e\x58\x7a\xd5\xb2\xbc\x6e\xdb\x37\xa5\x85\x5b\xad\xa6\x9b\x0c\xfc\xd6\xf9\x68\xc7\x19\x84\x0d\x43\xa1\x35\x63\x4a\xb4\xc9\x7f\xab\xaf\xba\x47\xc5\x4b\x6d\xd7\x54\x1f\xad\x24\x8a\x66\x58\xdf\x62\x03\x58\x9d\x31\xc2\xd5\x34\x7d\xe1\xa9"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x74\x11\x8d\x1b\x4c\x60\xc9\xdd\x70\x29\x82\x9e\x27\x98\x7f\x40\xaa\x9f\xa5\x4b\x7f\x9c\x0c\x00"[..], &digest[..24]); } { let mut hmac = Hmac::::with_key(&b"\x07\xc6\x45\x41\xd0\xcc\x4c\x23\x85\xdf\xc4\xe7\xf4\x9d\xa4\x39\x6d\x2c\x4a\x8d\xde\xce\xc0\x58\x3d\xb6\x3d\x7f\x26\x1b\xef\x0f\xc6\x8a\xf7\x30\xf7\x80\xb6\x54\xac\x38\x47\xb4\x90\xc2\x4c\xfd\xea\x55"[..]); let mut digest = vec![0u8; 48]; hmac.update(&b"\xf7\x45\x7e\x98\x68\x55\x64\xe3\xd3\x6b\x5a\x9a\x23\x59\x39\x43\x98\xeb\xeb\x2e\x0f\x1d\xd1\x4d\x84\x8b\x62\x45\xd5\x29\x15\xc5\xc8\x34\x81\x17\x50\x69\xc3\xf5\x0c\x74\x21\x9d\x11\xab\xed\x28\xe9\xfc\xab\x17\xdb\x24\x76\x2f\x6d\x22\x9f\x87\x28\xec\x98\xdf\x9b\x60\x10\x33\xa3\x7d\x60\x90\xe9\xd3\x26\x27\xab\x38\x2f\xa0\xc0\xbd\x9b\xb0\xd6\xe1\x3b\xee\xff\x04\x3e\xe2\x6c\x1e\x0d\x5f\x77\xb0\x73\x13\xe7\xfb\x01\x5d\x70\x71\xb1\x5e\x7a\x69\xc9\x53\x24\x16\x02\x22\x87\xba\xea\x32\x3f\x17\x87\x80\x28\x26\x3d\xf0"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x22\xe1\x6e\xa2\xa8\xa7\x37\x73\x89\xf2\x3f\x92\xe1\xb6\x89\x55\x50\x15\xf2\xa5\xf2\xe3\xc8\x7d"[..], &digest[..24]); } { let mut hmac = Hmac::::with_key(&b"\x36\x5b\x14\x5e\x50\x7e\x97\x52\x40\x88\x29\xc6\x9c\x87\x32\xda\x16\x35\x14\xb3\x51\x7a\xa6\x1d\xf3\x31\xe4\x74\xfc\x2f\xe5\xc4\x56\x81\x0d\x2f\xac\xf6\x83\x8f\x80\xde\xe5\x5d\x78\x10\x3b\xd2\xf9\x32"[..]); let mut digest = vec![0u8; 48]; hmac.update(&b"\x63\x7d\x20\x92\xa1\xf5\x62\x0f\xa2\xca\x9f\x65\xb1\xa7\x22\xc9\xfe\x92\x30\x7a\x9e\xd6\x2f\x52\xd4\x41\x0e\x9a\x8f\x90\xe0\x23\x33\x28\xca\x92\x9c\x07\x20\xfc\x61\xf9\xcb\xb3\x55\x0f\xee\x5f\x54\x4d\xc9\x50\x3c\xa3\xdd\x12\x39\x1f\x50\x42\x46\x60\x94\xa1\xf0\x4e\x44\x67\x5d\x08\x4e\xda\x8e\x1e\x57\x1e\xe1\x01\x5b\x4f\xda\xb7\x94\xcd\x22\xd3\x9e\xd7\xd0\xa5\xd8\x5c\xe8\xae\x0d\x0d\x21\x56\x54\xb7\xec\xe2\x34\xd0\xb1\xa0\x0c\x50\x5c\x64\xb2\xc2\x18\x38\x5b\x9a\x5a\x50\xbb\xc9\x22\x3c\x6d\x8f\x7e\x61\x94\x90"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xa0\x16\x27\x4a\x2e\x32\x02\x54\x7b\xe4\xf9\xa3\x83\x0b\x2b\x8e\xec\x39\xdc\xdf\xd1\xa8\xca\x7c"[..], &digest[..24]); } } #[test] fn cavp_sha512() { { let mut hmac = Hmac::::with_key(&b"\x72\x63\x74\xc4\xb8\xdf\x51\x75\x10\xdb\x91\x59\xb7\x30\xf9\x34\x31\xe0\xcd\x46\x8d\x4f\x38\x21\xea\xb0\xed\xb9\x3a\xbd\x0f\xba\x46\xab\x4f\x1e\xf3\x5d\x54\xfe\xc3\xd8\x5f\xa8\x9e\xf7\x2f\xf3\xd3\x5f\x22\xcf\x5a\xb6\x9e\x20\x5c\x10\xaf\xcd\xf4\xaa\xf1\x13\x38\xdb\xb1\x20\x73\x47\x4f\xdd\xb5\x56\xe6\x0b\x8e\xe5\x2f\x91\x16\x3b\xa3\x14\x30\x3e\xe0\xc9\x10\xe6\x4e\x87\xfb\xf3\x02\x21\x4e\xdb\xe3\xf2"[..]); let mut digest = vec![0u8; 64]; hmac.update(&b"\xac\x93\x96\x59\xdc\x5f\x66\x8c\x99\x69\xc0\x53\x04\x22\xe3\x41\x7a\x46\x2c\x8b\x66\x5e\x8d\xb2\x5a\x88\x3a\x62\x5f\x7a\xa5\x9b\x89\xc5\xad\x0e\xce\x57\x12\xca\x17\x44\x2d\x17\x98\xc6\xde\xa2\x5d\x82\xc5\xdb\x26\x0c\xb5\x9c\x75\xae\x65\x0b\xe5\x65\x69\xc1\xbd\x2d\x61\x2c\xc5\x7e\x71\x31\x59\x17\xf1\x16\xbb\xfa\x65\xa0\xae\xb8\xaf\x78\x40\xee\x83\xd3\xe7\x10\x1c\x52\xcf\x65\x2d\x27\x73\x53\x1b\x7a\x6b\xdd\x69\x0b\x84\x6a\x74\x18\x16\xc8\x60\x81\x92\x70\x52\x2a\x5b\x0c\xdf\xa1\xd7\x36\xc5\x01\xc5\x83\xd9\x16"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xbd\x3d\x2d\xf6\xf9\xd2\x84\xb4\x21\xa4\x3e\x5f\x9c\xb9\x4b\xc4\xff\x88\xa8\x82\x43\xf1\xf0\x13\x3b\xad\x0f\xb1\x79\x1f\x65\x69"[..], &digest[..32]); } { let mut hmac = Hmac::::with_key(&b"\xe2\x45\xbe\x9a\x9c\x81\x01\x26\x38\x30\xad\x35\x15\xc1\xc6\xcb\xf2\x85\xa7\xe4\xb3\x62\xeb\xc0\x62\xcb\x8e\x7e\x75\xef\x50\xec\x4f\x31\x5a\x9e\x09\xd9\x24\x3d\x71\x09\x96\x22\x53\xf2\x6e\x23\xf8\x47\xe1\xad\xed\xf2\x85\x14\x05\x07\x6e\x26\xa1\xf6\x97\x06\x2f\x04\x84\x38\xf1\xfc\x26\xf8\x00\x21\xff\xd0\x90\x68\x87\x69\x75\xe4\xcd\xa2\xe7\x82\x61\xdf\x82\xf6\x72\xa3\x90\xf5\x34\x62\x8b\xa5\x84\x90"[..]); let mut digest = vec![0u8; 64]; hmac.update(&b"\x42\x53\x15\xdd\x8e\xcc\xd1\x7a\x84\xc1\xaa\x00\xff\x72\x76\x3f\x99\xdd\xcb\xc2\xc3\x81\xb8\xb2\x15\x67\xb2\xf8\xe2\x63\xd1\xa2\x10\x98\x3d\x88\x26\x3a\xe3\x2f\xa7\x98\x6c\xed\x9f\x59\x6f\x4e\x7b\x05\xe5\xb7\x1d\xc8\xde\x49\x30\x73\x73\x08\xb9\xc4\xfc\x3d\xef\xe7\x83\x19\x4d\x3c\x78\x9a\xe5\x5b\xa5\xb3\xf7\x56\x65\xa7\xc2\x3e\x11\xb6\x9a\xe8\xbc\xfb\x3b\xf0\x20\x95\x5d\xff\xd7\x05\x89\x4a\xcf\xd7\x2a\x5b\xf8\x85\xe7\x14\x3f\x98\x30\xf1\xc0\x10\x17\x8d\x37\x06\x62\x68\xb8\x90\xde\xe7\xa1\xe5\xf6\x9c\xcc\xc1"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xc5\x80\x1d\x80\xa1\x43\x91\x72\x0e\x77\xeb\x7f\xfb\x1a\x0b\x21\xa1\x63\x23\x64\x1c\x9a\x31\x2b\x05\xfd\xc3\x4e\x90\x38\x3c\x85"[..], &digest[..32]); } { let mut hmac = Hmac::::with_key(&b"\x7e\xb7\x2f\x11\x7b\x39\x7c\xef\xcf\xb4\xe7\x5a\xce\x3b\x08\x17\x76\xe4\x6b\x13\x52\x1e\x93\x55\x9d\x45\x3e\x32\xab\x74\xeb\xc0\x85\x9b\x9a\x8d\xd4\xd1\xd3\x90\x00\xeb\xe9\x5f\x98\x4d\x80\xa3\xf5\x00\x4d\xc9\x1a\x05\x1d\xfb\xdf\xe9\x19\x4f\x4f\x9a\x48\x3e\x4e\x79\x55\x57\x7f\xb0\x93\x34\x64\xc6\x3e\xae\xc7\x71\x04\x4d\x59\xab\xc3\x02\x9a\x07\x95\x19\xf8\x46\x0a\x69\x3b\x25\xb4\xce\x20\x7a\xe9\xd9"[..]); let mut digest = vec![0u8; 64]; hmac.update(&b"\x4e\x66\x11\xa6\xd7\x63\x95\xf2\xb0\xe2\x3d\xca\xfc\xc6\x72\xc0\x90\xe7\xc0\x0a\x5f\xb5\xe2\x3d\x35\x1f\x1f\x59\xa9\xb3\xda\x06\x4d\x06\x64\x1d\x27\x56\x14\x6a\x65\x6e\x9a\xb1\x4c\xca\x90\xee\x72\xfc\x52\xe1\x2d\x4e\x10\xca\x4b\xa9\x21\x72\x03\xb5\x9a\x6a\x2c\x42\x20\x97\xad\xe7\xfa\xef\x35\xe8\x6a\x7d\x2c\x5d\x3e\xab\xe9\x91\xa2\xc0\x25\xa9\x38\xa8\xaf\x86\x6b\xf4\x62\xec\x00\x21\x55\xe3\xed\x1d\x51\x5d\x6f\x07\x88\x1a\x57\x36\x83\xc9\xa4\x7e\x5d\x70\x57\xae\x2f\x0d\x83\x5d\xcb\x7e\xa4\xe7\xad\x9e\x31\xb2"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x53\x1b\xb2\x08\x00\xce\xef\x73\x6d\x52\xd3\x23\xa0\x1f\x91\xfe\xd1\xb8\x04\x57\x94\x7b\x1f\x86\x5d\x1f\x6b\x3b\x11\x02\x55\x2f"[..], &digest[..32]); } { let mut hmac = Hmac::::with_key(&b"\x12\x72\x0c\xff\x0c\xa6\x49\xff\x2e\x1c\x93\x55\xcb\xa8\x02\x0f\xc9\x6d\xbe\x05\xaf\x9f\xb4\xbc\x00\x8d\x8d\x8a\xc8\xde\xe0\xfb\x74\x1a\xa6\x74\xe6\x6d\xef\x16\xc9\xa8\xd4\xe5\x22\x89\xad\x2a\x28\x3c\x84\x16\x56\x21\xc9\xa7\xbe\xd0\x46\xd0\xa0\x5b\x56\xd4\x3b\xd3\x52\xf3\xe3\x0d\x4d\x48\x54\xa5\x01\xf2\x46\x44\x08\x72\x42\x1f\x50\x54\xb3\xc0\xc9\x12\x40\x09\x60\x35\x59\x76\x31\xbd\x10\xa2\xf8\xc3"[..]); let mut digest = vec![0u8; 64]; hmac.update(&b"\xde\xf8\xc9\xac\xee\x9d\x9f\x19\x14\x19\x98\x25\x51\x80\x4a\x9a\x94\x11\xc7\xd1\x24\x0b\x22\x24\x3d\xc3\x2f\xa5\xfe\xf2\x8b\x11\x83\x53\xdc\xff\x4e\x6e\x5a\x5d\xeb\xae\x8f\x1d\xd3\xba\x5a\x2c\x92\x02\x3a\xa4\x25\x98\xc9\x42\xa6\x42\x87\x1a\x2b\xcd\xd9\x89\xeb\xa4\x52\x6c\xa2\xa1\x30\x8f\x37\x22\x2a\x69\x9c\x60\x69\x06\xf7\xfc\xd4\x44\xff\xdb\x90\x42\xa8\x34\xc7\x16\x02\xe7\xa9\xbe\x5e\x11\xb1\x59\xb4\xdd\x2a\x98\x41\x9d\xf1\x6f\x74\x19\x7c\x10\x0b\x26\x1b\x19\x7a\x7b\x7e\x0c\x8c\xc1\x78\x01\x4c\xe9\x02\x97"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\xdc\x72\xf7\x04\x9c\x66\xef\xfc\xb8\x20\x84\x80\x59\x51\x6c\x44\xf9\x34\xcc\xb2\xff\xca\x6f\x9f\x8f\x88\x4e\x0e\x1c\x67\xee\xce"[..], &digest[..32]); } { let mut hmac = Hmac::::with_key(&b"\x83\x48\x8a\x05\x03\x29\x05\x75\x4c\xc8\xfc\x56\x9d\x37\xca\xe0\x5f\x0c\x37\x0d\xb6\xac\xaa\xfc\x56\xca\x9a\x93\x98\x2a\x46\x69\xcc\xab\xa6\xe3\xd1\x84\xa1\x9d\xe4\xce\x80\x0b\xb6\x43\xa3\x60\xc1\x45\x72\xae\xdb\x22\x97\x4f\x0c\x96\x6b\x85\x9d\x91\xad\x5d\x71\x3b\x7a\xd9\x99\x35\x79\x4d\x22\x22\x57\x0a\x31\x67\x73\x3a\x53\x2e\xda\x0b\x0e\xb1\x75\x10\xbc\xb5\x81\xe4\x99\x54\x40\x10\x1a\x00\xee\x2e"[..]); let mut digest = vec![0u8; 64]; hmac.update(&b"\xbd\x11\x70\xaf\x91\xfd\xb2\x16\x0d\xb3\x52\x2e\x1b\xc3\xb1\xa3\x49\xd6\xe5\x04\x79\x92\x0a\xc5\xd9\xbe\xdd\x8a\x16\xa7\x87\xa3\xcd\xc2\xb6\xd2\x43\x92\xf2\x55\x55\xcc\x2f\x20\xb2\xba\x9e\x6b\x47\xdd\xc9\x6c\xfb\xd6\xdf\x66\x9d\x87\x4c\xe2\x1a\x75\x8d\x3c\xf4\x70\x43\x62\xef\x77\x86\xd9\x0e\xd6\x7b\x01\xbd\x91\x29\x99\x50\x05\x88\x85\xac\xcd\xdb\xcf\x44\xe3\x40\xed\x48\x07\x86\x42\x18\x65\x3e\xe7\xff\x72\x15\xaa\x1e\x17\x61\x57\xa6\x11\xf9\x37\x4b\x98\x4a\xd7\xf5\x3e\xa7\x0a\xb8\x1b\xe1\x31\x06\x27\x18\xba"[..]); hmac.digest(&mut digest).unwrap(); assert_eq!(&b"\x65\x63\x09\x7d\xb0\x46\x30\x82\x1c\x81\x49\x12\x82\x84\x10\xd2\xcb\x05\x62\x19\xf8\x86\x78\x6d\x6b\xf5\x7a\x5b\x5b\x00\x83\xea"[..], &digest[..32]); } } } nettle-7.1.0/src/mac/insecure_do_not_use/mod.rs000064400000000000000000000003560072674642500176670ustar 00000000000000//! Broken message authentication codes. //! //! The algorithms in this module are known to be broken or too short to be secure. Only use them //! for legacy applications. mod umac; pub use self::umac::{Umac128, Umac32, Umac64, Umac96}; nettle-7.1.0/src/mac/insecure_do_not_use/umac.rs000064400000000000000000000364260072674642500200440ustar 00000000000000use nettle_sys::{ nettle_umac128_digest, nettle_umac128_set_key, nettle_umac128_set_nonce, nettle_umac128_update, nettle_umac32_digest, nettle_umac32_set_key, nettle_umac32_set_nonce, nettle_umac32_update, nettle_umac64_digest, nettle_umac64_set_key, nettle_umac64_set_nonce, nettle_umac64_update, nettle_umac96_digest, nettle_umac96_set_key, nettle_umac96_set_nonce, nettle_umac96_update, umac128_ctx, umac32_ctx, umac64_ctx, umac96_ctx, UMAC128_DIGEST_SIZE, UMAC32_DIGEST_SIZE, UMAC64_DIGEST_SIZE, UMAC96_DIGEST_SIZE, UMAC_KEY_SIZE, }; use std::mem::zeroed; use crate::{Error, mac::Mac, Result}; /// 32 bit variant of the universal MAC (RFC 4418). pub struct Umac32 { context: umac32_ctx, } impl Umac32 { /// Creates a new MAC instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != UMAC_KEY_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "key" }); } unsafe { let mut ret: Umac32 = zeroed(); nettle_umac32_set_key(&mut ret.context as *mut _, key.as_ptr()); nettle_umac32_set_nonce( &mut ret.context as *mut _, nonce.len(), nonce.as_ptr(), ); Ok(ret) } } } impl Mac for Umac32 { fn mac_size(&self) -> usize { UMAC32_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_umac32_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { if digest.len() != self.mac_size() { return Err( Error::InvalidArgument { argument_name: "digest" } ); } unsafe { nettle_umac32_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } /// 64 bit variant of the universal MAC (RFC 4418). pub struct Umac64 { context: umac64_ctx, } impl Umac64 { /// Creates a new MAC instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != UMAC_KEY_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "key" }); } unsafe { let mut ret: Umac64 = zeroed(); nettle_umac64_set_key(&mut ret.context as *mut _, key.as_ptr()); nettle_umac64_set_nonce( &mut ret.context as *mut _, nonce.len(), nonce.as_ptr(), ); Ok(ret) } } } impl Mac for Umac64 { fn mac_size(&self) -> usize { UMAC64_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_umac64_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { if digest.len() != self.mac_size() { return Err( Error::InvalidArgument { argument_name: "digest" } ); } unsafe { nettle_umac64_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } /// 96 bit variant of the universal MAC (RFC 4418). pub struct Umac96 { context: umac96_ctx, } impl Umac96 { /// Creates a new MAC instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != UMAC_KEY_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "key" }); } unsafe { let mut ret: Umac96 = zeroed(); nettle_umac96_set_key(&mut ret.context as *mut _, key.as_ptr()); nettle_umac96_set_nonce( &mut ret.context as *mut _, nonce.len(), nonce.as_ptr(), ); Ok(ret) } } } impl Mac for Umac96 { fn mac_size(&self) -> usize { UMAC96_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_umac96_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { if digest.len() != self.mac_size() { return Err( Error::InvalidArgument { argument_name: "digest" } ); } unsafe { nettle_umac96_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } /// 128 bit variant of the universal MAC (RFC 4418). pub struct Umac128 { context: umac128_ctx, } impl Umac128 { /// Creates a new MAC instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != UMAC_KEY_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "key" }); } unsafe { let mut ret: Umac128 = zeroed(); nettle_umac128_set_key(&mut ret.context as *mut _, key.as_ptr()); nettle_umac128_set_nonce( &mut ret.context as *mut _, nonce.len(), nonce.as_ptr(), ); Ok(ret) } } } impl Mac for Umac128 { fn mac_size(&self) -> usize { UMAC128_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_umac128_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { if digest.len() != self.mac_size() { return Err( Error::InvalidArgument { argument_name: "digest" } ); } unsafe { nettle_umac128_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; /* K = "abcdefghijklmnop" // A 16-byte UMAC key N = "bcdefghi" // An 8-byte nonce The tags generated by UMAC using key K and nonce N are: Message 32-bit Tag 64-bit Tag 96-bit Tag ------- ---------- ---------- ---------- 113145FB 6E155FAD26900BE1 32FEDB100C79AD58F07FF764 'a' * 3 3B91D102 44B5CB542F220104 185E4FE905CBA7BD85E4C2DC 'a' * 2^10 599B350B 26BF2F5D60118BD9 7A54ABE04AF82D60FB298C3C 'a' * 2^15 58DCF532 27F8EF643B0D118D 7B136BD911E4B734286EF2BE 'a' * 2^20 DB6364D1 A4477E87E9F55853 F8ACFA3AC31CFEEA047F7B11 'a' * 2^25 5109A660 2E2DBC36860A0A5F 72C6388BACE3ACE6FBF062D9 'abc' * 1 ABF3A3A0 D4D7B9F6BD4FBFCF 883C3D4B97A61976FFCF2323 'abc' * 500 ABEB3C8B D4CF26DDEFD5C01A 8824A260C53C66A36C9260A6 */ #[test] fn rfc_4418_umac32() { let key = &b"abcdefghijklmnop"[..]; let nonce = &b"bcdefghi"[..]; let msg1 = &b""[..]; let msg2 = &b"aaa"[..]; let msg3 = &vec![b'a'; 0x400][..]; let msg4 = &vec![b'a'; 0x8000][..]; let msg5 = &vec![b'a'; 0x10_0000][..]; let msg6 = &vec![b'a'; 0x200_0000][..]; let msg7 = &b"abc"[..]; { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg1); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x11\x31\x45\xFB"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg2); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x3B\x91\xD1\x02"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg3); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x59\x9B\x35\x0B"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg4); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x58\xDC\xF5\x32"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg5); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xDB\x63\x64\xD1"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg6); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x85\xEE\x5C\xAE"[..]); } { let mut umac32 = Umac32::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac32.mac_size()]; umac32.update(msg7); umac32.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xAB\xF3\xA3\xA0"[..]); } } #[test] fn rfc_4418_umac64() { let key = &b"abcdefghijklmnop"[..]; let nonce = &b"bcdefghi"[..]; let msg1 = &b""[..]; let msg2 = &b"aaa"[..]; let msg3 = &vec![b'a'; 0x400][..]; let msg4 = &vec![b'a'; 0x8000][..]; let msg5 = &vec![b'a'; 0x10_0000][..]; let msg6 = &vec![b'a'; 0x200_0000][..]; let msg7 = &b"abc"[..]; { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg1); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x6E\x15\x5F\xAD\x26\x90\x0B\xE1"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg2); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x44\xB5\xCB\x54\x2F\x22\x01\x04"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg3); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x26\xBF\x2F\x5D\x60\x11\x8B\xD9"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg4); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\x27\xF8\xEF\x64\x3B\x0D\x11\x8D"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg5); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xA4\x47\x7E\x87\xE9\xF5\x58\x53"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg6); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xFA\xCA\x46\xF8\x56\xE9\xB4\x5F"[..]); } { let mut umac64 = Umac64::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac64.mac_size()]; umac64.update(msg7); umac64.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xD4\xD7\xB9\xF6\xBD\x4F\xBF\xCF"[..]); } } #[test] fn rfc_4418_umac96() { let key = &b"abcdefghijklmnop"[..]; let nonce = &b"bcdefghi"[..]; let msg1 = &b""[..]; let msg2 = &b"aaa"[..]; let msg3 = &vec![b'a'; 0x400][..]; let msg4 = &vec![b'a'; 0x8000][..]; let msg5 = &vec![b'a'; 0x10_0000][..]; let msg6 = &vec![b'a'; 0x200_0000][..]; let msg7 = &b"abc"[..]; { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg1); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\x32\xFE\xDB\x10\x0C\x79\xAD\x58\xF0\x7F\xF7\x64"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg2); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\x18\x5E\x4F\xE9\x05\xCB\xA7\xBD\x85\xE4\xC2\xDC"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg3); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\x7A\x54\xAB\xE0\x4A\xF8\x2D\x60\xFB\x29\x8C\x3C"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg4); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\x7B\x13\x6B\xD9\x11\xE4\xB7\x34\x28\x6E\xF2\xBE"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg5); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\xF8\xAC\xFA\x3A\xC3\x1C\xFE\xEA\x04\x7F\x7B\x11"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg6); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\xA6\x21\xC2\x45\x7C\x00\x12\xE6\x4F\x3F\xDA\xE9"[..] ); } { let mut umac96 = Umac96::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0u8; umac96.mac_size()]; umac96.update(msg7); umac96.digest(&mut mac).unwrap(); assert_eq!( &mac[..], &b"\x88\x3C\x3D\x4B\x97\xA6\x19\x76\xFF\xCF\x23\x23"[..] ); } } } nettle-7.1.0/src/mac/mac.rs000064400000000000000000000007530072674642500136160ustar 00000000000000use crate::Result; /// A message authentication code. /// /// A MAC is a symmetric signature primitive. pub trait Mac { /// Size of the MAC tag i.e. the signature in bytes. fn mac_size(&self) -> usize; /// Add data to be signed. fn update(&mut self, data: &[u8]); /// Produce the MAC tag `digest` for all data fed via `update()`. /// /// Returns `InvalidArgument` if digest is not `Self::mac_size`. fn digest(&mut self, digest: &mut [u8]) -> Result<()>; } nettle-7.1.0/src/mac/mod.rs000064400000000000000000000002700072674642500136270ustar 00000000000000//! Message authentication codes. pub mod insecure_do_not_use; mod mac; pub use self::mac::Mac; mod hmac; pub use self::hmac::Hmac; mod poly1305; pub use self::poly1305::Poly1305; nettle-7.1.0/src/mac/poly1305.rs000064400000000000000000000121430072674642500143460ustar 00000000000000use nettle_sys::{ nettle_poly1305_aes_digest, nettle_poly1305_aes_set_key, nettle_poly1305_aes_set_nonce, nettle_poly1305_aes_update, poly1305_aes_ctx, POLY1305_AES_DIGEST_SIZE, POLY1305_AES_KEY_SIZE, POLY1305_AES_NONCE_SIZE, }; use std::mem::zeroed; use crate::{Error, mac::Mac, Result}; /// D.J. Bernsteins Poly1305-AES message authentication code (RFC 7539). pub struct Poly1305 { context: poly1305_aes_ctx, } impl Poly1305 { /// Create a new MAC instance with secret `key` and public `nonce`. pub fn with_key_and_nonce(key: &[u8], nonce: &[u8]) -> Result { if key.len() != POLY1305_AES_KEY_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "key" }); } if nonce.len() != POLY1305_AES_NONCE_SIZE as usize { return Err(Error::InvalidArgument { argument_name: "nonce" }); } unsafe { let mut ret: Poly1305 = zeroed(); nettle_poly1305_aes_set_key( &mut ret.context as *mut _, key.as_ptr(), ); nettle_poly1305_aes_set_nonce( &mut ret.context as *mut _, nonce.as_ptr(), ); Ok(ret) } } } impl Mac for Poly1305 { fn mac_size(&self) -> usize { POLY1305_AES_DIGEST_SIZE as usize } fn update(&mut self, data: &[u8]) { unsafe { nettle_poly1305_aes_update( &mut self.context as *mut _, data.len(), data.as_ptr(), ); } } fn digest(&mut self, digest: &mut [u8]) -> Result<()> { if digest.len() != self.mac_size() { return Err( Error::InvalidArgument { argument_name: "digest" } ); } unsafe { nettle_poly1305_aes_digest( &mut self.context as *mut _, digest.len(), digest.as_mut_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; #[test] fn djb_test_vectors() { { let key = &b"\xec\x07\x4c\x83\x55\x80\x74\x17\x01\x42\x5b\x62\x32\x35\xad\xd6\x85\x1f\xc4\x0c\x34\x67\xac\x0b\xe0\x5c\xc2\x04\x04\xf3\xf7\x00"[..]; let nonce = &b"\xfb\x44\x73\x50\xc4\xe8\x68\xc5\x2a\xc3\x27\x5c\xf9\xd4\x32\x7e"[..]; let msg = &b"\xf3\xf6"[..]; let mut poly1305 = Poly1305::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0; poly1305.mac_size()]; poly1305.update(msg); poly1305.digest(&mut mac).unwrap(); assert_eq!(&mac[..], &b"\xf4\xc6\x33\xc3\x04\x4f\xc1\x45\xf8\x4f\x33\x5c\xb8\x19\x53\xde"[..]); } { let key = &b"\x75\xde\xaa\x25\xc0\x9f\x20\x8e\x1d\xc4\xce\x6b\x5c\xad\x3f\xbf\xa0\xf3\x08\x00\x00\xf4\x64\x00\xd0\xc7\xe9\x07\x6c\x83\x44\x03"[..]; let nonce = &b"\x61\xee\x09\x21\x8d\x29\xb0\xaa\xed\x7e\x15\x4a\x2c\x55\x09\xcc"[..]; let msg = &b""[..]; let res = &b"\xdd\x3f\xab\x22\x51\xf1\x1a\xc7\x59\xf0\x88\x71\x29\xcc\x2e\xe7"[..]; let mut poly1305 = Poly1305::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0; poly1305.mac_size()]; poly1305.update(msg); poly1305.digest(&mut mac).unwrap(); assert_eq!(&mac[..], res); } { let key = &b"\x6a\xcb\x5f\x61\xa7\x17\x6d\xd3\x20\xc5\xc1\xeb\x2e\xdc\xdc\x74\x48\x44\x3d\x0b\xb0\xd2\x11\x09\xc8\x9a\x10\x0b\x5c\xe2\xc2\x08"[..]; let nonce = &b"\xae\x21\x2a\x55\x39\x97\x29\x59\x5d\xea\x45\x8b\xc6\x21\xff\x0e"[..]; let msg = &b"\x66\x3c\xea\x19\x0f\xfb\x83\xd8\x95\x93\xf3\xf4\x76\xb6\xbc\x24\xd7\xe6\x79\x10\x7e\xa2\x6a\xdb\x8c\xaf\x66\x52\xd0\x65\x61\x36"[..]; let res = &b"\x0e\xe1\xc1\x6b\xb7\x3f\x0f\x4f\xd1\x98\x81\x75\x3c\x01\xcd\xbe"[..]; let mut poly1305 = Poly1305::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0; poly1305.mac_size()]; poly1305.update(msg); poly1305.digest(&mut mac).unwrap(); assert_eq!(&mac[..], res); } { let key = &b"\xe1\xa5\x66\x8a\x4d\x5b\x66\xa5\xf6\x8c\xc5\x42\x4e\xd5\x98\x2d\x12\x97\x6a\x08\xc4\x42\x6d\x0c\xe8\xa8\x24\x07\xc4\xf4\x82\x07"[..]; let nonce = &b"\x9a\xe8\x31\xe7\x43\x97\x8d\x3a\x23\x52\x7c\x71\x28\x14\x9e\x3a"[..]; let msg = &b"\xab\x08\x12\x72\x4a\x7f\x1e\x34\x27\x42\xcb\xed\x37\x4d\x94\xd1\x36\xc6\xb8\x79\x5d\x45\xb3\x81\x98\x30\xf2\xc0\x44\x91\xfa\xf0\x99\x0c\x62\xe4\x8b\x80\x18\xb2\xc3\xe4\xa0\xfa\x31\x34\xcb\x67\xfa\x83\xe1\x58\xc9\x94\xd9\x61\xc4\xcb\x21\x09\x5c\x1b\xf9"[..]; let res = &b"\x51\x54\xad\x0d\x2c\xb2\x6e\x01\x27\x4f\xc5\x11\x48\x49\x1f\x1b"[..]; let mut poly1305 = Poly1305::with_key_and_nonce(key, nonce).unwrap(); let mut mac = vec![0; poly1305.mac_size()]; poly1305.update(msg); poly1305.digest(&mut mac).unwrap(); assert_eq!(&mac[..], res); } } } nettle-7.1.0/src/mode/cbc.rs000064400000000000000000000313330072674642500137670ustar 00000000000000use nettle_sys::{nettle_cbc_decrypt, nettle_cbc_encrypt}; use std::cmp::min; use crate::{cipher::Cipher, Error, mode::Mode, Result}; /// Cipher block chaining mode. pub struct Cbc { cipher: C, } impl Cbc { /// Create a new encrypting CBC instance with `key`. pub fn with_encrypt_key(key: &[u8]) -> Result { Ok(Cbc { cipher: C::with_encrypt_key(key)? }) } /// Create a new decrypting CBC instance with `key`. pub fn with_decrypt_key(key: &[u8]) -> Result { Ok(Cbc { cipher: C::with_decrypt_key(key)? }) } } impl Mode for Cbc { fn block_size(&self) -> usize { C::BLOCK_SIZE } fn encrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_encrypt_function(); nettle_cbc_encrypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } fn decrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_decrypt_function(); nettle_cbc_decrypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_cbc_twofish() { use crate::cipher::Twofish; let mut enc = Cbc::::with_encrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Twofish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Twofish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_serpent() { use crate::cipher::Serpent; let mut enc = Cbc::::with_encrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let input = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut output = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Serpent::BLOCK_SIZE]; let mut iv2 = vec![3u8; Serpent::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_des3() { use crate::cipher::Des3; let mut enc = Cbc::::with_encrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let input = vec![1u8; Des3::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des3::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des3::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des3::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des3::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_cast128() { use crate::cipher::Cast128; let mut enc = Cbc::::with_encrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Cast128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Cast128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Cast128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Cast128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Cast128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_camellia128() { use crate::cipher::Camellia128; let mut enc = Cbc::::with_encrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_camellia192() { use crate::cipher::Camellia192; let mut enc = Cbc::::with_encrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_camellia256() { use crate::cipher::Camellia256; let mut enc = Cbc::::with_encrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_blowfish() { use crate::cipher::Blowfish; let mut enc = Cbc::::with_encrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Blowfish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Blowfish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Blowfish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Blowfish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Blowfish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_aes128() { use crate::cipher::Aes128; let mut enc = Cbc::::with_encrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_aes192() { use crate::cipher::Aes192; let mut enc = Cbc::::with_encrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_aes256() { use crate::cipher::Aes256; let mut enc = Cbc::::with_encrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_des() { use crate::cipher::insecure_do_not_use::Des; let mut enc = Cbc::::with_encrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let input = vec![1u8; Des::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_arctwo() { use crate::cipher::insecure_do_not_use::ArcTwo; let mut enc = Cbc::::with_encrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcTwo::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcTwo::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcTwo::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcTwo::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcTwo::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cbc_arcfour() { use crate::cipher::insecure_do_not_use::ArcFour; let mut enc = Cbc::::with_encrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let mut dec = Cbc::::with_decrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcFour::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcFour::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcFour::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcFour::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcFour::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } } nettle-7.1.0/src/mode/cfb.rs000064400000000000000000000313250072674642500137730ustar 00000000000000use nettle_sys::{nettle_cfb_decrypt, nettle_cfb_encrypt}; use std::cmp::min; use crate::{cipher::Cipher, Error, mode::Mode, Result}; /// Cipher feedback mode. pub struct Cfb { cipher: C, } impl Cfb { /// Create a new encrypting CFB instance with `key`. pub fn with_encrypt_key(key: &[u8]) -> Result { Ok(Cfb { cipher: C::with_encrypt_key(key)? }) } /// Create a new decrypting CFB instance with `key`. pub fn with_decrypt_key(key: &[u8]) -> Result { Ok(Cfb { cipher: C::with_encrypt_key(key)? }) } } impl Mode for Cfb { fn block_size(&self) -> usize { C::BLOCK_SIZE } fn encrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_encrypt_function(); nettle_cfb_encrypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } fn decrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_encrypt_function(); nettle_cfb_decrypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_cfb_twofish() { use crate::cipher::Twofish; let mut enc = Cfb::::with_encrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Twofish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Twofish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_serpent() { use crate::cipher::Serpent; let mut enc = Cfb::::with_encrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let input = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut output = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Serpent::BLOCK_SIZE]; let mut iv2 = vec![3u8; Serpent::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_des3() { use crate::cipher::Des3; let mut enc = Cfb::::with_encrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let input = vec![1u8; Des3::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des3::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des3::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des3::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des3::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_cast128() { use crate::cipher::Cast128; let mut enc = Cfb::::with_encrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Cast128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Cast128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Cast128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Cast128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Cast128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_camellia128() { use crate::cipher::Camellia128; let mut enc = Cfb::::with_encrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_camellia192() { use crate::cipher::Camellia192; let mut enc = Cfb::::with_encrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_camellia256() { use crate::cipher::Camellia256; let mut enc = Cfb::::with_encrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_blowfish() { use crate::cipher::Blowfish; let mut enc = Cfb::::with_encrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Blowfish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Blowfish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Blowfish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Blowfish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Blowfish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_aes128() { use crate::cipher::Aes128; let mut enc = Cfb::::with_encrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_aes192() { use crate::cipher::Aes192; let mut enc = Cfb::::with_encrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_aes256() { use crate::cipher::Aes256; let mut enc = Cfb::::with_encrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_des() { use crate::cipher::insecure_do_not_use::Des; let mut enc = Cfb::::with_encrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let input = vec![1u8; Des::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_arctwo() { use crate::cipher::insecure_do_not_use::ArcTwo; let mut enc = Cfb::::with_encrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcTwo::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcTwo::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcTwo::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcTwo::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcTwo::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_cfb_arcfour() { use crate::cipher::insecure_do_not_use::ArcFour; let mut enc = Cfb::::with_encrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let mut dec = Cfb::::with_encrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcFour::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcFour::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcFour::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcFour::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcFour::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } } nettle-7.1.0/src/mode/ctr.rs000064400000000000000000000312610072674642500140300ustar 00000000000000use nettle_sys::nettle_ctr_crypt; use std::cmp::min; use crate::{cipher::Cipher, Error, mode::Mode, Result}; /// Counter mode. pub struct Ctr { cipher: C, } impl Ctr { /// Create a new encrypting CTR instance with `key`. pub fn with_encrypt_key(key: &[u8]) -> Result { Ok(Ctr { cipher: C::with_encrypt_key(key)? }) } /// Create a new decrypting CTR instance with `key`. pub fn with_decrypt_key(key: &[u8]) -> Result { Ok(Ctr { cipher: C::with_encrypt_key(key)? }) } } impl Mode for Ctr { fn block_size(&self) -> usize { C::BLOCK_SIZE } fn encrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_encrypt_function(); nettle_ctr_crypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } fn decrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()> { if iv.len() != C::BLOCK_SIZE { return Err(Error::InvalidArgument { argument_name: "iv" }); } unsafe { let ptr = C::raw_encrypt_function(); nettle_ctr_crypt( self.cipher.context(), ptr.ptr(), C::BLOCK_SIZE, iv.as_mut_ptr(), min(src.len(), dst.len()), dst.as_mut_ptr(), src.as_ptr(), ); } Ok(()) } } #[cfg(test)] mod tests { use super::*; #[test] fn round_trip_ctr_twofish() { use crate::cipher::Twofish; let mut enc = Ctr::::with_encrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Twofish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Twofish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Twofish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Twofish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Twofish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Twofish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_serpent() { use crate::cipher::Serpent; let mut enc = Ctr::::with_encrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Serpent::KEY_SIZE]) .unwrap(); let input = vec![1u8; Serpent::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Serpent::BLOCK_SIZE * 10]; let mut output = vec![3u8; Serpent::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Serpent::BLOCK_SIZE]; let mut iv2 = vec![3u8; Serpent::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_des3() { use crate::cipher::Des3; let mut enc = Ctr::::with_encrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Des3::KEY_SIZE]).unwrap(); let input = vec![1u8; Des3::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des3::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des3::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des3::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des3::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_cast128() { use crate::cipher::Cast128; let mut enc = Ctr::::with_encrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Cast128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Cast128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Cast128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Cast128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Cast128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Cast128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_camellia128() { use crate::cipher::Camellia128; let mut enc = Ctr::::with_encrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![ 0; Camellia128::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_camellia192() { use crate::cipher::Camellia192; let mut enc = Ctr::::with_encrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![ 0; Camellia192::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_camellia256() { use crate::cipher::Camellia256; let mut enc = Ctr::::with_encrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![ 0; Camellia256::KEY_SIZE ]) .unwrap(); let input = vec![1u8; Camellia256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Camellia256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Camellia256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Camellia256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Camellia256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_blowfish() { use crate::cipher::Blowfish; let mut enc = Ctr::::with_encrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Blowfish::KEY_SIZE]) .unwrap(); let input = vec![1u8; Blowfish::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Blowfish::BLOCK_SIZE * 10]; let mut output = vec![3u8; Blowfish::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Blowfish::BLOCK_SIZE]; let mut iv2 = vec![3u8; Blowfish::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_aes128() { use crate::cipher::Aes128; let mut enc = Ctr::::with_encrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Aes128::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes128::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes128::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes128::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes128::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes128::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_aes192() { use crate::cipher::Aes192; let mut enc = Ctr::::with_encrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Aes192::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes192::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes192::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes192::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes192::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes192::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_aes256() { use crate::cipher::Aes256; let mut enc = Ctr::::with_encrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Aes256::KEY_SIZE]) .unwrap(); let input = vec![1u8; Aes256::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Aes256::BLOCK_SIZE * 10]; let mut output = vec![3u8; Aes256::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Aes256::BLOCK_SIZE]; let mut iv2 = vec![3u8; Aes256::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_des() { use crate::cipher::insecure_do_not_use::Des; let mut enc = Ctr::::with_encrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; Des::KEY_SIZE]).unwrap(); let input = vec![1u8; Des::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; Des::BLOCK_SIZE * 10]; let mut output = vec![3u8; Des::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; Des::BLOCK_SIZE]; let mut iv2 = vec![3u8; Des::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_arctwo() { use crate::cipher::insecure_do_not_use::ArcTwo; let mut enc = Ctr::::with_encrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; ArcTwo::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcTwo::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcTwo::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcTwo::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcTwo::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcTwo::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } #[test] fn round_trip_ctr_arcfour() { use crate::cipher::insecure_do_not_use::ArcFour; let mut enc = Ctr::::with_encrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let mut dec = Ctr::::with_encrypt_key(&vec![0; ArcFour::KEY_SIZE]) .unwrap(); let input = vec![1u8; ArcFour::BLOCK_SIZE * 10]; let mut tmp = vec![2u8; ArcFour::BLOCK_SIZE * 10]; let mut output = vec![3u8; ArcFour::BLOCK_SIZE * 10]; let mut iv1 = vec![3u8; ArcFour::BLOCK_SIZE]; let mut iv2 = vec![3u8; ArcFour::BLOCK_SIZE]; enc.encrypt(&mut iv1, &mut tmp, &input).unwrap(); dec.decrypt(&mut iv2, &mut output, &tmp).unwrap(); assert_eq!(input, output); } } nettle-7.1.0/src/mode/mod.rs000064400000000000000000000002640072674642500140160ustar 00000000000000//! Mode of operation for block ciphers. mod mode; pub use self::mode::Mode; mod cbc; pub use self::cbc::Cbc; mod ctr; pub use self::ctr::Ctr; mod cfb; pub use self::cfb::Cfb; nettle-7.1.0/src/mode/mode.rs000064400000000000000000000021140072674642500141570ustar 00000000000000use crate::Result; /// Block cipher mode of operation. /// /// Block modes govern how a block cipher processes data spanning multiple blocks. pub trait Mode { /// Block size of the underlying cipher in bytes. fn block_size(&self) -> usize; /// Encrypt a single block `src` using the initialization vector /// `iv` to a ciphertext block `dst`. /// /// Both `iv` and dst` are updated. The buffer `iv`, `dst` and /// `src` are expected to be at least as large as the block size /// of the underlying cipher. fn encrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()>; /// Decrypt a single ciphertext block `src` using the /// initialization vector `iv` to a plaintext block `dst`. /// /// Both `iv` and dst` are updated. The buffer `iv`, `dst` and /// `src` are expected to be at least as large as the block size /// of the underlying cipher. fn decrypt( &mut self, iv: &mut [u8], dst: &mut [u8], src: &[u8], ) -> Result<()>; } nettle-7.1.0/src/random/mod.rs000064400000000000000000000002070072674642500143470ustar 00000000000000//! Cryptographic random number generators (CRNG). mod types; pub use self::types::Random; mod yarrow; pub use self::yarrow::Yarrow; nettle-7.1.0/src/random/types.rs000064400000000000000000000012260072674642500147360ustar 00000000000000//! Cryptographic random number generators (CRNG). use libc::size_t; use std::os::raw::c_void; /// A cryptographic random number generator. pub trait Random { /// Returns a pointer to the opaque CRNG state. unsafe fn context(&mut self) -> *mut c_void; /// Fills the buffer `dst` with `length` random bytes, advancing the CRNG state `ctx`. unsafe extern "C" fn random_impl( ctx: *mut c_void, length: size_t, dst: *mut u8, ); /// Fills the buffer `random` with random bytes. fn random(&mut self, buf: &mut [u8]) { unsafe { Self::random_impl(self.context(), buf.len(), buf.as_mut_ptr()); } } } nettle-7.1.0/src/random/yarrow.rs000064400000000000000000000057100072674642500151170ustar 00000000000000use libc::size_t; use nettle_sys::{ nettle_yarrow256_init, nettle_yarrow256_is_seeded, nettle_yarrow256_random, nettle_yarrow256_seed, yarrow256_ctx, }; use getrandom::getrandom; use std::mem::{transmute, zeroed}; use std::os::raw::c_void; use std::ptr; use super::Random; /// Yarrow is a secure CRNG developed by Kelsey et.al. /// /// Default instances are seeded using `OsRng`. pub struct Yarrow { context: yarrow256_ctx, } impl Yarrow { /// Create a new CRNG instance for `seed`. pub fn from_seed(seed: &[u8]) -> Yarrow { unsafe { let mut ctx = zeroed(); nettle_yarrow256_init(&mut ctx as *mut _, 0, ptr::null_mut()); nettle_yarrow256_seed( &mut ctx as *mut _, seed.len(), seed.as_ptr(), ); Yarrow { context: ctx } } } } impl Random for Yarrow { unsafe fn context(&mut self) -> *mut c_void { transmute(&mut self.context) } unsafe extern "C" fn random_impl( ctx: *mut c_void, length: size_t, dst: *mut u8, ) { assert_eq!(nettle_yarrow256_is_seeded(ctx as *mut _), 1); nettle_yarrow256_random(ctx as *mut _, length, dst); } } impl Default for Yarrow { fn default() -> Self { let mut seed = vec![0u8; 64]; if let Err(e) = getrandom(&mut seed) { panic!("Failed to initialize random generator: {}", e); } Yarrow::from_seed(&seed) } } #[cfg(test)] mod tests { use super::*; #[test] fn auto_seeded() { let mut rng1 = Yarrow::default(); let mut rng2 = Yarrow::default(); let mut buf1 = vec![0u8; 100]; let mut buf2 = vec![0u8; 100]; let zero = vec![0u8; 100]; rng1.random(&mut buf1); rng2.random(&mut buf2); assert!(buf1 != buf2); assert!(buf1 != zero); assert!(buf1 != zero); } #[test] fn fixed_seed() { let seed = &b"aaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbcccccccccccccccccccdddd"[..]; let mut rng1 = Yarrow::from_seed(seed); let mut rng2 = Yarrow::from_seed(seed); let mut buf1 = vec![0u8; 100]; let mut buf2 = vec![0u8; 100]; let zero = vec![0u8; 100]; rng1.random(&mut buf1); rng2.random(&mut buf2); assert_eq!(buf1, buf2); assert!(buf1 != zero); } #[test] fn random_inteface() { let seed = &b"aaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbcccccccccccccccccccdddd"[..]; let mut rng1 = Yarrow::from_seed(seed); let mut rng2 = Yarrow::from_seed(seed); let mut buf1 = vec![0u8; 100]; let mut buf2 = vec![0u8; 100]; let zero = vec![0u8; 100]; rng1.random(&mut buf1); unsafe { let ctx = rng2.context(); ::random_impl(ctx, buf2.len(), buf2.as_mut_ptr()); } assert_eq!(buf1, buf2); assert!(buf1 != zero); } } nettle-7.1.0/src/rsa/keys.rs000064400000000000000000000501010072674642500140460ustar 00000000000000use nettle_sys::{ __gmpz_add_ui, __gmpz_clear, __gmpz_cmp_ui, __gmpz_fdiv_r, __gmpz_init, __gmpz_invert, __gmpz_mul, __gmpz_set, __gmpz_sub_ui, nettle_mpz_set_str_256_u, nettle_mpz_sizeinbase_256_u, nettle_rsa_generate_keypair, nettle_rsa_private_key_clear, nettle_rsa_private_key_init, nettle_rsa_private_key_prepare, nettle_rsa_public_key_clear, nettle_rsa_public_key_init, nettle_rsa_public_key_prepare, rsa_private_key, rsa_public_key, }; use std::mem::zeroed; use crate::helper::convert_gmpz_to_buffer; use crate::{Error, random::Random, Result}; /// A public RSA key. pub struct PublicKey { pub(crate) context: rsa_public_key, pub(crate) modulo_bytes: usize, } impl PublicKey { /// Creates a new RSA public key with the modulo `n` and the /// public exponent `e`. /// /// Both are expected to be big endian integers. pub fn new(n: &[u8], e: &[u8]) -> Result { unsafe { let mut ctx: rsa_public_key = zeroed(); nettle_rsa_public_key_init(&mut ctx as *mut _); nettle_mpz_set_str_256_u( &mut ctx.e[0] as *mut _, e.len(), e.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.n[0] as *mut _, n.len(), n.as_ptr(), ); let mut ret = PublicKey { context: ctx, modulo_bytes: n.len() }; if nettle_rsa_public_key_prepare(&mut ret.context as *mut _) == 1 { Ok(ret) } else { Err(Error::InvalidArgument { argument_name: "" }) } } } /// Returns the modulo as a big endian integer. pub fn n(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.context.n[0]) } /// Returns the public exponent as a big endian integer. pub fn e(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.context.e[0]) } } impl Clone for PublicKey { fn clone(&self) -> Self { unsafe { let mut ret = zeroed(); nettle_rsa_public_key_init(&mut ret); __gmpz_set(&mut ret.e[0], &self.context.e[0]); __gmpz_set(&mut ret.n[0], &self.context.n[0]); PublicKey { context: ret, modulo_bytes: self.modulo_bytes } } } } impl Drop for PublicKey { fn drop(&mut self) { unsafe { nettle_rsa_public_key_clear(&mut self.context as *mut _); } } } /// A private RSA key. pub struct PrivateKey { pub(crate) context: rsa_private_key, } impl PrivateKey { /// Creates a new private key with the private exponent `d` and /// the two primes `p`/`q`. /// /// If the inverse `inv` for `q` in Z_p is `None` the function /// computes it. /// /// # Notes /// /// This function does time-variable computation on the private /// key that may leak it. See `new_crt` for a time-constant way to /// create a PrivateKey. pub fn new<'a, O: Into>>( d: &[u8], p: &[u8], q: &[u8], inv: O, ) -> Result { unsafe { let mut ctx: rsa_private_key = zeroed(); nettle_rsa_private_key_init(&mut ctx as *mut _); nettle_mpz_set_str_256_u( &mut ctx.d[0] as *mut _, d.len(), d.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.p[0] as *mut _, p.len(), p.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.q[0] as *mut _, q.len(), q.as_ptr(), ); __gmpz_sub_ui(&mut ctx.p[0] as *mut _, &ctx.p[0] as *const _, 1); __gmpz_fdiv_r( &mut ctx.a[0] as *mut _, &ctx.d[0] as *const _, &ctx.p[0] as *const _, ); __gmpz_add_ui(&mut ctx.p[0] as *mut _, &ctx.p[0] as *const _, 1); __gmpz_sub_ui(&mut ctx.q[0] as *mut _, &ctx.q[0] as *const _, 1); __gmpz_fdiv_r( &mut ctx.b[0] as *mut _, &ctx.d[0] as *const _, &ctx.q[0] as *const _, ); __gmpz_add_ui(&mut ctx.q[0] as *mut _, &ctx.q[0] as *const _, 1); if let Some(inv) = inv.into() { nettle_mpz_set_str_256_u( &mut ctx.c[0] as *mut _, inv.len(), inv.as_ptr(), ); } else { __gmpz_invert( &mut ctx.c[0] as *mut _, &ctx.q[0] as *const _, &ctx.p[0] as *const _, ); } let mut ret = PrivateKey { context: ctx }; if nettle_rsa_private_key_prepare(&mut ret.context as *mut _) == 1 { Ok(ret) } else { Err(Error::InvalidArgument { argument_name: "" }) } } } /// Creates a new private key with the two primes `p`/`q`. /// /// The private exponent `d` is given as `dp = d mod p - 1` and /// `dq = d mod q - 1`. If the inverse `inv` of `q` in Z_p is /// `None` the function computes it. /// /// # Notes /// /// If `inv` is `None` the function does time-variable computation /// on the private key that may leak it. pub fn new_crt<'a, O: Into>>( dp: &[u8], dq: &[u8], p: &[u8], q: &[u8], inv: O, ) -> Result { unsafe { let mut ctx: rsa_private_key = zeroed(); // d isn't used in nettle nettle_rsa_private_key_init(&mut ctx as *mut _); nettle_mpz_set_str_256_u( &mut ctx.p[0] as *mut _, p.len(), p.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.q[0] as *mut _, q.len(), q.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.a[0] as *mut _, dp.len(), dp.as_ptr(), ); nettle_mpz_set_str_256_u( &mut ctx.b[0] as *mut _, dq.len(), dq.as_ptr(), ); if let Some(inv) = inv.into() { nettle_mpz_set_str_256_u( &mut ctx.c[0] as *mut _, inv.len(), inv.as_ptr(), ); } else { __gmpz_invert( &mut ctx.c[0] as *mut _, &ctx.q[0] as *const _, &ctx.p[0] as *const _, ); } let mut ret = PrivateKey { context: ctx }; if nettle_rsa_private_key_prepare(&mut ret.context as *mut _) == 1 { Ok(ret) } else { Err(Error::InvalidArgument { argument_name: "" }) } } } /// Computes the public key to this private key. /// /// This only works if the private key was created with `new` /// instead of `new_crt`. /// /// # Notes /// /// This function does time-variable computation on the private /// key that may leak it. pub fn public_key(&self) -> Result { unsafe { let mut p_minus_1 = zeroed(); let mut q_minus_1 = zeroed(); let mut phi = zeroed(); let mut ret: rsa_public_key = zeroed(); nettle_rsa_public_key_init(&mut ret as *mut _); __gmpz_init(&mut p_minus_1); __gmpz_init(&mut q_minus_1); __gmpz_init(&mut phi); __gmpz_sub_ui(&mut p_minus_1, &self.context.p[0], 1); __gmpz_sub_ui(&mut q_minus_1, &self.context.q[0], 1); __gmpz_mul(&mut phi, &p_minus_1, &q_minus_1); __gmpz_invert(&mut ret.e[0], &self.context.d[0], &phi); __gmpz_mul(&mut ret.n[0], &self.context.p[0], &self.context.q[0]); __gmpz_clear(&mut p_minus_1); __gmpz_clear(&mut q_minus_1); __gmpz_clear(&mut phi); let len = nettle_mpz_sizeinbase_256_u(&mut ret.n[0]); let mut ret = PublicKey { context: ret, modulo_bytes: len }; if __gmpz_cmp_ui(&ret.context.e[0], 0) == 0 { Err(Error::InvalidArgument { argument_name: "self" }) } else if nettle_rsa_public_key_prepare(&mut ret.context as *mut _) == 1 { Ok(ret) } else { Err(Error::InvalidArgument { argument_name: "" }) } } } /// Returns the tuple `a`, `b`, `c`. /// /// `a` and `b` are the two RSA primes `p`/`q` with `a` < `b` and /// `c = a^-1 mod b`. pub fn as_rfc4880(&self) -> (Box<[u8]>, Box<[u8]>, Box<[u8]>) { let p = convert_gmpz_to_buffer(self.context.p[0]); let q = convert_gmpz_to_buffer(self.context.q[0]); if p < q { unsafe { // RFC4880: u == p^-1 mod q // Nettle: c == q^-1 mod p let mut inv = zeroed(); __gmpz_init(&mut inv); __gmpz_invert( &mut inv as *mut _, &self.context.p[0] as *const _, &self.context.q[0] as *const _, ); let tmp = convert_gmpz_to_buffer(inv); __gmpz_clear(&mut inv); (p, q, tmp) } } else { let inv = convert_gmpz_to_buffer(self.context.c[0]); (q, p, inv) } } /// Returns the primes `p`/`q` as big endian integers. pub fn primes(&self) -> (Box<[u8]>, Box<[u8]>) { let p = convert_gmpz_to_buffer(self.context.p[0]); let q = convert_gmpz_to_buffer(self.context.q[0]); (p, q) } /// Returns the private exponent `d` as pair of big endian integers `dp = d mod p - 1` and `dq /// = d mod q - 1` and the inverse of `q` in Z_p as third value. pub fn d_crt(&self) -> (Box<[u8]>, Box<[u8]>, Box<[u8]>) { let dp = convert_gmpz_to_buffer(self.context.a[0]); let dq = convert_gmpz_to_buffer(self.context.b[0]); let inv = convert_gmpz_to_buffer(self.context.c[0]); (dp, dq, inv) } /// Returns the private exponent `d` as big endian integer. pub fn d(&self) -> Box<[u8]> { convert_gmpz_to_buffer(self.context.d[0]) } } impl Clone for PrivateKey { fn clone(&self) -> Self { unsafe { let mut ret = zeroed(); nettle_rsa_private_key_init(&mut ret); __gmpz_set(&mut ret.p[0], &self.context.p[0]); __gmpz_set(&mut ret.q[0], &self.context.q[0]); __gmpz_set(&mut ret.a[0], &self.context.a[0]); __gmpz_set(&mut ret.b[0], &self.context.b[0]); PrivateKey { context: ret } } } } impl Drop for PrivateKey { fn drop(&mut self) { unsafe { nettle_rsa_private_key_clear(&mut self.context as *mut _); } } } /// Generates a fresh RSA key pair usable for signing and encryption. /// /// The public modulo `n` will be `modulo_size` bits large. The public /// exponent is fixed to `0x10001`. pub fn generate_keypair( random: &mut R, modulo_size: u32, ) -> Result<(PublicKey, PrivateKey)> { use std::ptr; let e = [0x01, 0x00, 0x01]; unsafe { let mut public_ctx: rsa_public_key = zeroed(); let mut private_ctx: rsa_private_key = zeroed(); nettle_rsa_private_key_init(&mut private_ctx as *mut _); nettle_rsa_public_key_init(&mut public_ctx as *mut _); nettle_mpz_set_str_256_u( &mut public_ctx.e[0] as *mut _, e.len(), e.as_ptr(), ); if nettle_rsa_generate_keypair( &mut public_ctx as *mut _, &mut private_ctx as *mut _, random.context(), Some(R::random_impl), ptr::null_mut(), None, modulo_size, 0, ) == 1 { Ok(( PublicKey { context: public_ctx, modulo_bytes: modulo_size as usize / 8, }, PrivateKey { context: private_ctx }, )) } else { nettle_rsa_public_key_clear(&mut public_ctx as *mut _); nettle_rsa_private_key_clear(&mut private_ctx as *mut _); Err(Error::KeyGenerationFailed) } } } #[cfg(test)] mod tests { use super::*; #[test] fn load_public_key() { let n = &b"\xcc\xc3\x86\x4e\x2b\x3d\x2d\x08\x89\x66\x90\x49\x75\x4f\xb8\x53\xa0\xbe\x04\xd0\x74\x49\x85\xe8\xc7\xf3\x84\x3b\xce\xa0\x12\xc2\x2a\x19\x18\x94\x6e\xda\x69\xb1\x1b\xed\x91\x96\xba\xb2\x58\x0f\x4c\xa6\x5f\xd3\x49\x08\xc5\x40\x58\xe9\xd1\x7a\xb0\x57\xed\x75\xad\xef\x51\x71\x5a\x8d\x9d\x43\x04\x32\x36\xff\xc1\x1f\xf8\x89\x95\x7d\x92\xcd\x72\x60\xb0\xa1\xe6\x20\x63\x1e\x03\x4b\x07\x48\x2d\xd6\xe5\xf6\xad\x30\xa9\x87\x81\x2a\x82\x00\x03\x9f\x53\x05\x71\x11\x65\xf0\xf8\xa8\x6e\xe7\x31\xb8\xd1\xf0\x58\xae\xad\x69\x72\x36\x80\x3b\xdd\x03\x8c\xa6\xc4\xf6\x22\xd7\xd4\x58\x92\xbc\xa0\x26\xd8\xd9\x49\xbe\xfe\x80\x35\x88\x02\xff\x7a\x5a\x40\xc2\xc6\x72\xa9\x3c\xf3\xf0\x61\x60\x45\x3c\xf7\xa1\x96\x66\x54\xde\x9d\xd0\xcb\xeb\xa7\x81\x3b\xda\x29\x0f\xbe\x03\xb0\xfe\xcc\xaf\x19\xdd\xcd\x15\x86\x49\xf8\xc0\xa5\x08\x3b\x2a\x42\x3d\xe2\x00\x33\x6c\x40\x70\x8c\xfc\x4a\x3e\x83\x1e\x7a\x53\x0c\x07\x0f\xc6\xfd\x31\xd5\xf8\x1e\xa7\x73\x47\x67\xf5\x76\x0a\xb1\x02\xa4\xd0\xcb\x79\xb2\xeb\x9c\x93\xa0\x6b\x23\xd2\xa7\x5b\xbb\x40\xa0\x95"[..]; let e = &b"\x01\x00\x01"[..]; assert!(PublicKey::new(n, e).is_ok()); assert!(PublicKey::new(e, n).is_err()); let key1 = PublicKey::new(n, e).unwrap(); assert_eq!(&(*key1.e())[..], e); assert_eq!(&(*key1.n())[..], n); } #[test] fn load_private_key() { let p = &b"\xf8\xb6\x0f\xca\xc8\x11\xf3\x6e\x68\x2f\x87\xd0\xbb\xb0\x46\x7e\x3f\x20\x6e\xf8\x61\xc1\xc8\x64\xa5\xfc\xda\xc2\x01\x4b\xf5\x11\x16\xa6\xd4\x9d\x45\x26\x37\x1e\x32\x1a\x60\x71\x11\xf9\x1a\xb3\x83\x50\xfa\xdc\x95\x96\x73\xbc\x50\xb6\x6d\xc4\x18\x0e\x1d\x0a\x31\xf2\x63\xae\xb5\xad\xb3\xfc\x8f\x1e\x76\x3b\x38\xfa\x2d\x4c\x48\x04\x59\xae\x5f\x49\xc0\x7a\xea\x0c\x37\xeb\xb9\xa6\x23\xff\xf2\x84\x70\x21\xba\x60\xf1\x9c\x85\xe4\xe3\x68\x74\xef\x92\x10\xb1\xcb\x50\x4a\xd2\xdf\xcb\x3a\xbb\xdd\x1c\x1c\x25\xe1\x0c\x45"[..]; let q = &b"\xd2\xc3\xc0\x24\x48\x44\x7d\xe2\x43\x13\xf2\x51\x58\x07\x07\x6a\x7b\xc1\x37\x09\x3d\xc7\xcf\x04\x3d\xfc\xee\x91\x20\x3b\xe7\x94\x3d\xb0\x43\xb8\x19\x56\x77\x0e\xca\x89\xb1\x15\xa5\xbf\x8e\xa7\xe6\xa0\xf8\x89\x71\xef\xc8\x29\xba\xfe\x2e\xd0\xb2\x4d\xf2\xf5\xf0\x0a\x51\x84\x45\x99\x3b\x7d\x43\xa1\x0e\x5f\x2a\x35\x3e\x21\xb2\xe6\x5d\x7d\x37\xa9\xb9\xcb\x29\x9f\x83\x3e\xe7\x8c\xe4\x9a\x1e\xc5\x12\xa6\x5e\x75\x79\x54\x6c\x0d\x0e\x37\x02\x93\xe6\x94\x50\x25\x62\x0d\xf9\x4a\x85\xb2\x8a\xdb\x9b\xcd\xc9\x48\x90\x11"[..]; let d = &b"\xb9\x82\x12\x75\x53\x3b\x13\x47\x7e\xa3\xca\xe8\xa2\x3d\x5d\x33\x76\x97\x70\x69\x22\x51\x51\xde\x38\xf8\x67\xbe\x7f\x4e\x0a\x70\x9a\x0f\x2e\x73\x9b\x92\x88\xda\x8a\x00\xcb\x3b\x91\x5c\xed\xe6\xbe\x7c\xa4\xa8\x18\xac\xb7\x77\xba\x95\xea\xd0\x8a\x5e\xbe\xa5\x34\xb5\x72\x45\x8d\xd2\x6a\xbd\x42\x59\xf3\xf5\xf5\x13\x6f\xe9\xc5\xe3\x84\x52\x58\xe3\x3c\x63\x10\xc8\x1a\xc4\x20\x1b\xa3\x37\x43\x40\x44\x0b\x1d\x90\xce\xa6\x12\xe1\x5d\xf1\x81\x56\xa0\xb2\x77\x63\x59\xc5\xdc\xa1\x4c\x08\x6c\xc5\x92\x7d\x7a\xfa\x95\xe3\x27\xee\x1e\x93\x15\x83\x67\x16\xb4\x25\x66\x2f\x73\x9b\x27\x6e\x09\x72\x8d\xc3\x51\x53\x1c\x58\xc5\xec\x62\x57\xc0\x08\xab\xe6\xf9\x6f\xfb\xf1\xb3\x36\xa5\x0d\x3b\x22\x3a\xa5\xf1\x43\xc9\xf5\x0d\xd3\x40\xba\x9e\xdb\x99\x73\xa1\xfc\xe3\xe7\x43\x50\x00\x3d\x4c\x19\x43\xb8\x5c\x54\x9d\xdc\xe9\xba\x32\x9b\x59\x6c\x13\x04\x19\xe9\x51\x61\x86\xbd\x29\x1d\x5c\x6a\xca\xc0\x65\x38\x3e\x5f\xf6\x41\xfe\xcb\xad\x19\x59\xc2\x6b\x1c\x78\xa5\x63\xeb\xd1\x2a\xc2\x65\x3a\x7d\xc8\x0f\x00\x93\x78\xf2\x7c\x39\xce\xba\xb3\x81"[..]; let inv = &b"\x9c\xa9\x1f\x96\x80\x62\x7f\xb0\xfe\x26\xa8\x82\xfe\x57\x14\xd0\xcc\x9f\xb1\xdd\xf8\x36\xcb\xd8\x25\x6d\x45\xd3\x99\xfb\x85\x2f\x57\x70\x84\xc8\xfd\x12\x52\x2c\xf1\x32\xac\x4c\x25\x02\x17\xed\xf2\x2e\xac\x23\xdd\xec\x9b\xed\x3f\xf6\xb0\xc4\x99\xef\x14\xac\xcd\x4a\x30\xa8\xc5\xff\x47\x8e\x28\xfa\x99\x41\x1c\x4f\xc0\xdd\x59\x1d\x26\x94\x76\x9a\x0b\x64\x7f\xc1\x6f\xf8\x99\x5e\x19\xe3\x70\x43\x9b\x27\x58\x7e\x24\x15\x34\x4f\x2b\x74\x31\xa0\xc9\x41\x20\x41\x57\x44\x62\x04\xd9\xf0\x29\xb4\x43\x34\x4d\x09\xbe\xd3"[..]; let dp = &b"\xd7\x10\xa0\x21\x4a\xd6\x72\xf9\x32\xf0\x7e\xf2\x19\x8a\xb9\xba\x6b\x9e\x01\x37\x99\x58\xf7\x8f\x49\x15\x98\x99\x10\x83\xfd\x3b\xb4\xa9\xb8\xca\xf2\x43\xb4\x7f\xd0\xf5\x8c\x15\xda\x63\xdd\x1a\x03\xe0\x9f\xbc\xe5\x41\x7f\x7d\x05\x12\x6b\x62\x99\x26\x83\x28\x10\xbe\xb8\x42\x18\x6a\x47\x6c\x8a\xd9\xdd\x85\x22\xa4\xfb\x4c\xae\x2d\xcc\xdb\x03\x1d\x04\x6b\x85\x3d\xe1\x91\x5e\x2c\xf3\x8e\x5c\xc8\xf7\x29\xc3\x40\x17\x4d\xb1\x5e\x96\xe2\xf9\xd3\x3c\x2c\x61\x82\x1d\x41\x46\x8e\x2c\xef\xf2\x09\xa6\x48\x14\xdd\x41\x3d"[..]; let dq = &b"\x3d\x1d\xbe\x4d\xc7\x16\xf5\x59\xf3\x11\x89\xa6\xc4\xdb\xe4\xee\x9f\xcc\x3b\x65\x56\xa0\xe6\x0a\xd8\xde\xcb\x5f\x11\xf5\xcd\x05\x53\x8e\x15\x55\x01\x23\xed\x8a\x40\x79\x04\xfc\xbd\xff\x7a\x22\x7d\xe2\x17\xaf\xe3\x76\x20\x98\xd9\x3c\x73\xde\xd8\x95\x79\xea\x8f\x1c\xae\xde\xa8\x3f\xf2\xdc\x34\x0c\x33\xda\xac\xa6\x9b\xc9\xb1\xd2\xd3\x31\x48\x3e\xd3\x3d\x72\x68\x6a\xea\x86\xc2\x78\x57\xa8\xac\x84\xe7\xf1\x64\x27\x36\xaf\xce\x69\x5c\xd2\x46\x89\x0a\x60\xe3\x36\x37\xcf\x1e\x28\xfe\xc8\xfd\x3d\x84\xc2\xe5\x63\xc1"[..]; let n = &b"\xcc\xc3\x86\x4e\x2b\x3d\x2d\x08\x89\x66\x90\x49\x75\x4f\xb8\x53\xa0\xbe\x04\xd0\x74\x49\x85\xe8\xc7\xf3\x84\x3b\xce\xa0\x12\xc2\x2a\x19\x18\x94\x6e\xda\x69\xb1\x1b\xed\x91\x96\xba\xb2\x58\x0f\x4c\xa6\x5f\xd3\x49\x08\xc5\x40\x58\xe9\xd1\x7a\xb0\x57\xed\x75\xad\xef\x51\x71\x5a\x8d\x9d\x43\x04\x32\x36\xff\xc1\x1f\xf8\x89\x95\x7d\x92\xcd\x72\x60\xb0\xa1\xe6\x20\x63\x1e\x03\x4b\x07\x48\x2d\xd6\xe5\xf6\xad\x30\xa9\x87\x81\x2a\x82\x00\x03\x9f\x53\x05\x71\x11\x65\xf0\xf8\xa8\x6e\xe7\x31\xb8\xd1\xf0\x58\xae\xad\x69\x72\x36\x80\x3b\xdd\x03\x8c\xa6\xc4\xf6\x22\xd7\xd4\x58\x92\xbc\xa0\x26\xd8\xd9\x49\xbe\xfe\x80\x35\x88\x02\xff\x7a\x5a\x40\xc2\xc6\x72\xa9\x3c\xf3\xf0\x61\x60\x45\x3c\xf7\xa1\x96\x66\x54\xde\x9d\xd0\xcb\xeb\xa7\x81\x3b\xda\x29\x0f\xbe\x03\xb0\xfe\xcc\xaf\x19\xdd\xcd\x15\x86\x49\xf8\xc0\xa5\x08\x3b\x2a\x42\x3d\xe2\x00\x33\x6c\x40\x70\x8c\xfc\x4a\x3e\x83\x1e\x7a\x53\x0c\x07\x0f\xc6\xfd\x31\xd5\xf8\x1e\xa7\x73\x47\x67\xf5\x76\x0a\xb1\x02\xa4\xd0\xcb\x79\xb2\xeb\x9c\x93\xa0\x6b\x23\xd2\xa7\x5b\xbb\x40\xa0\x95"[..]; let e = &b"\x01\x00\x01"[..]; assert!(PrivateKey::new(d, p, q, None).is_ok()); assert!(PrivateKey::new(d, p, q, inv).is_ok()); assert!(PrivateKey::new_crt(dp, dq, p, q, None).is_ok()); assert!(PrivateKey::new_crt(dp, dq, p, q, inv).is_ok()); let key1 = PrivateKey::new(d, p, q, None).unwrap(); assert_eq!(&(*key1.d())[..], d); let (p1, q1) = key1.primes(); assert_eq!(&(*p1)[..], p); assert_eq!(&(*q1)[..], q); let key2 = PrivateKey::new_crt(dp, dq, p, q, None).unwrap(); let (dp1, dq1, inv1) = key2.d_crt(); assert_eq!(&(*dp1)[..], dp); assert_eq!(&(*dq1)[..], dq); assert_eq!(&(*inv1)[..], inv); let (p2, q2) = key2.primes(); assert_eq!(&(*p2)[..], p); assert_eq!(&(*q2)[..], q); let pubkey1 = key1.public_key().unwrap(); assert_eq!(&pubkey1.n()[..], n); assert_eq!(&pubkey1.e()[..], e); assert!(key2.public_key().is_err()); } #[test] fn generate_keypairs() { use crate::random::Yarrow; let mut rng = Yarrow::default(); assert!(generate_keypair(&mut rng, 1024).is_ok()); assert!(generate_keypair(&mut rng, 2048).is_ok()); assert!(generate_keypair(&mut rng, 4096).is_ok()); } #[test] fn clone() { use crate::random::Yarrow; let mut rng = Yarrow::default(); let (public, private) = generate_keypair(&mut rng, 1024).unwrap(); let _ = public.clone(); let _ = private.clone(); } } nettle-7.1.0/src/rsa/mod.rs000064400000000000000000000010000072674642500136440ustar 00000000000000//! The Rivest, Shamir, Adelman (RSA) cryptosystem. mod keys; pub use self::keys::{generate_keypair, PrivateKey, PublicKey}; mod pkcs1; pub use self::pkcs1::{ decrypt_pkcs1, decrypt_pkcs1_insecure, encrypt_pkcs1, sign_digest_pkcs1, sign_pkcs1, verify_digest_pkcs1, verify_pkcs1, Pkcs1Hash, ASN1_OID_MD2, ASN1_OID_MD5, ASN1_OID_RIPEMD160, ASN1_OID_SHA1, ASN1_OID_SHA224, ASN1_OID_SHA256, ASN1_OID_SHA384, ASN1_OID_SHA512, }; mod pss; pub use self::pss::{sign_pss, verify_pss, PssHash}; nettle-7.1.0/src/rsa/pkcs1.rs000064400000000000000000006031530072674642500141270ustar 00000000000000//! Encryption and siging using PKCS#1. use nettle_sys::{ __gmpz_clear, __gmpz_init, nettle_rsa_decrypt_tr, nettle_rsa_sec_decrypt, nettle_rsa_encrypt, nettle_rsa_pkcs1_sign_tr, nettle_rsa_pkcs1_verify, }; use std::mem::zeroed; use crate::hash::insecure_do_not_use::{Md2, Md5, Sha1, Ripemd160}; use crate::hash::{Sha224, Sha256, Sha384, Sha512}; use crate::rsa::{PrivateKey, PublicKey}; use crate::{helper, Error, hash::Hash, random::Random, Result}; /// Marker trait for hash algorithms usable for PKCS#1 signatures. pub trait Pkcs1Hash: Hash { /// Internal to `sign_pkcs1` and `verify_pkcs1`. fn oid(&self) -> &'static [u8]; } /// ASN.1 OID for MD2 pub const ASN1_OID_MD2: &[u8] = &[ 0x30, 0x20, 0x30, 0x0c, 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x02, 0x05, 0x00, 0x04, 0x10, ]; /// ASN.1 OID for MD5 pub const ASN1_OID_MD5: &[u8] = &[ 0x30, 0x20, 0x30, 0x0c, 0x06, 0x08, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x05, 0x05, 0x00, 0x04, 0x10, ]; /// ASN.1 OID for RipeMD160 pub const ASN1_OID_RIPEMD160: &[u8] = &[ 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x24, 0x03, 0x02, 0x01, 0x05, 0x00, 0x04, 0x14, ]; /// ASN.1 OID for SHA1 pub const ASN1_OID_SHA1: &[u8] = &[ 0x30, 33, 0x30, 9, 0x06, 5, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0, 0x04, 20, ]; /// ASN.1 OID for SHA224 pub const ASN1_OID_SHA224: &[u8] = &[ 0x30, 0x2D, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04, 0x05, 0x00, 0x04, 0x1C, ]; /// ASN.1 OID for SHA256 pub const ASN1_OID_SHA256: &[u8] = &[ 0x30, 49, 0x30, 13, 0x06, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0, 0x04, 32, ]; /// ASN.1 OID for SHA384 pub const ASN1_OID_SHA384: &[u8] = &[ 0x30, 0x41, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02, 0x05, 0x00, 0x04, 0x30, ]; /// ASN.1 OID for SHA512 pub const ASN1_OID_SHA512: &[u8] = &[ 0x30, 81, 0x30, 13, 0x06, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, 0x05, 0, 0x04, 64, ]; impl Pkcs1Hash for Md2 { fn oid(&self) -> &'static [u8] { ASN1_OID_MD2 } } impl Pkcs1Hash for Md5 { fn oid(&self) -> &'static [u8] { ASN1_OID_MD5 } } impl Pkcs1Hash for Sha1 { fn oid(&self) -> &'static [u8] { ASN1_OID_SHA1 } } impl Pkcs1Hash for Ripemd160 { fn oid(&self) -> &'static [u8] { ASN1_OID_RIPEMD160 } } impl Pkcs1Hash for Sha224 { fn oid(&self) -> &'static [u8] { ASN1_OID_SHA224 } } impl Pkcs1Hash for Sha256 { fn oid(&self) -> &'static [u8] { ASN1_OID_SHA256 } } impl Pkcs1Hash for Sha384 { fn oid(&self) -> &'static [u8] { ASN1_OID_SHA384 } } impl Pkcs1Hash for Sha512 { fn oid(&self) -> &'static [u8] { ASN1_OID_SHA512 } } /// Creates a PKCS#1.5 padded RSA signature for `digest_info || digest`. pub fn sign_digest_pkcs1( public: &PublicKey, private: &PrivateKey, digest: &[u8], digest_info: &[u8], random: &mut R, signature: &mut [u8], ) -> Result<()> { unsafe { let mut sig = zeroed(); let mut msg = vec![0u8; digest.len() + digest_info.len()]; msg[0..digest_info.len()].clone_from_slice(digest_info); msg[digest_info.len()..].clone_from_slice(digest); __gmpz_init(&mut sig); if nettle_rsa_pkcs1_sign_tr( &public.context, &private.context, random.context(), Some(R::random_impl), msg.len(), msg.as_ptr(), &mut sig, ) == 1 { helper::write_gmpz_into_slice(sig, signature, "signature") } else { __gmpz_clear(&mut sig); Err(Error::SigningFailed) } } } /// Verifies a PKCS#1.5 padded RSA signature for `digest_info || digest`. pub fn verify_digest_pkcs1( public: &PublicKey, digest: &[u8], digest_info: &[u8], signature: &[u8], ) -> Result { unsafe { let mut sig = helper::convert_buffer_to_gmpz(signature); let mut msg = vec![0u8; digest.len() + digest_info.len()]; msg[0..digest_info.len()].clone_from_slice(digest_info); msg[digest_info.len()..].clone_from_slice(digest); let res = nettle_rsa_pkcs1_verify( &public.context, msg.len(), msg.as_ptr(), &mut sig, ) == 1; __gmpz_clear(&mut sig); Ok(res) } } /// Signs the message hashed with `hash` using `public`/`private`, /// producing `signature`. /// /// The `signature` buffer is expected to be of the size of the modulo /// of `public`. /// /// The function signs the digest produced by `hash` after padding the /// digest using `EMSA-PKCS1-v1_5`. pub fn sign_pkcs1( public: &PublicKey, private: &PrivateKey, hash: &mut H, random: &mut R, signature: &mut [u8], ) -> Result<()> { let mut dst = vec![0u8; hash.digest_size()]; hash.digest(&mut dst); sign_digest_pkcs1(public, private, &dst, hash.oid(), random, signature) } /// Verifies `signature` of the data hashed by `hash` using `public`. /// /// Returns `true` if the signature is valid. /// /// The signature is expected to be padded using `EMSA-PKCS1-v1_5`. pub fn verify_pkcs1( public: &PublicKey, hash: &mut H, signature: &[u8], ) -> Result { let mut dst = vec![0u8; hash.digest_size()]; hash.digest(&mut dst); verify_digest_pkcs1(public, &dst, hash.oid(), signature) } /// Encrypts `plaintext` using `public`, producing `ciphertext`. /// /// `ciphertext` must have the same size as the modulo of `public`. /// /// The plaintext is padded using `RSAES-PKCS1-v1_5`. pub fn encrypt_pkcs1( public: &PublicKey, random: &mut R, plaintext: &[u8], ciphertext: &mut [u8], ) -> Result<()> { unsafe { let mut out = zeroed(); __gmpz_init(&mut out); if nettle_rsa_encrypt( &public.context, random.context(), Some(R::random_impl), plaintext.len(), plaintext.as_ptr(), &mut out, ) == 1 { helper::write_gmpz_into_slice(out, ciphertext, "ciphertext") } else { __gmpz_clear(&mut out); Err(Error::EncryptionFailed) } } } /// Decrypts `ciphertext` using `public`/`private`. /// /// Returns the resulting plaintext. /// /// The ciphertext expected to be padded using /// `RSAES-PKCS1-v1_5`. /// /// # Errors /// /// Returns `InvalidArgument` if `plaintext`'s size is greater or /// equal than `public`'s modulo. pub fn decrypt_pkcs1( public: &PublicKey, private: &PrivateKey, random: &mut R, ciphertext: &[u8], plaintext: &mut [u8], ) -> Result<()> { if plaintext.len() >= public.modulo_bytes { return Err(Error::invalid_argument("plaintext")); } // Fill with random bytes prior to decryption as recommended by // Nettle's documentation. Should the decryption fail, the // plaintext will be unusable. random.random(plaintext); let mut inp = helper::convert_buffer_to_gmpz(ciphertext); unsafe { // Try to decrypt it and ignore the return value as // recommended by Nettle's documentation. nettle_rsa_sec_decrypt( &public.context, &private.context, random.context(), Some(R::random_impl), plaintext.len(), plaintext.as_mut_ptr(), &mut inp, ); __gmpz_clear(&mut inp); } Ok(()) } /// Decrypts `ciphertext` using `public`/`private`. /// /// Returns the resulting plaintext. /// /// The ciphertext expected to be padded using `RSAES-PKCS1-v1_5`. /// /// # Important note: /// /// Side-channel leakage from the caller's use of length and return /// value may still provide an oracle useable for a /// Bleichenbacher-style chosen ciphertext attack. /// /// If you know the size of the plaintext in advance, it is better to /// use [`decrypt_pkcs1`](fn.decrypt_pkcs1.html). /// /// # Errors /// /// Returns `DecryptionFailed` if the decryption failed. pub fn decrypt_pkcs1_insecure( public: &PublicKey, private: &PrivateKey, random: &mut R, ciphertext: &[u8], ) -> Result> { unsafe { let mut inp = helper::convert_buffer_to_gmpz(ciphertext); let mut buf = vec![0u8; public.modulo_bytes]; let mut buf_len = public.modulo_bytes; let res = nettle_rsa_decrypt_tr( &public.context, &private.context, random.context(), Some(R::random_impl), &mut buf_len, buf.as_mut_ptr(), &mut inp, ) == 1; __gmpz_clear(&mut inp); if res { buf.truncate(buf_len); Ok(buf.into()) } else { Err(Error::DecryptionFailed) } } } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; const N: &[u8] = b"\xc8\xa2\x06\x91\x82\x39\x4a\x2a\xb7\xc3\xf4\x19\x0c\x15\x58\x9c\x56\xa2\xd4\xbc\x42\xdc\xa6\x75\xb3\x4c\xc9\x50\xe2\x46\x63\x04\x84\x41\xe8\xaa\x59\x3b\x2b\xc5\x9e\x19\x8b\x8c\x25\x7e\x88\x21\x20\xc6\x23\x36\xe5\xcc\x74\x50\x12\xc7\xff\xb0\x63\xee\xbe\x53\xf3\xc6\x50\x4c\xba\x6c\xfe\x51\xba\xa3\xb6\xd1\x07\x4b\x2f\x39\x81\x71\xf4\xb1\x98\x2f\x4d\x65\xca\xf8\x82\xea\x4d\x56\xf3\x2a\xb5\x7d\x0c\x44\xe6\xad\x4e\x9c\xf5\x7a\x43\x39\xeb\x69\x62\x40\x6e\x35\x0c\x1b\x15\x39\x71\x83\xfb\xf1\xf0\x35\x3c\x9f\xc9\x91"; const E: &[u8] = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"; const D: &[u8] = b"\x5d\xfc\xb1\x11\x07\x2d\x29\x56\x5b\xa1\xdb\x3e\xc4\x8f\x57\x64\x5d\x9d\x88\x04\xed\x59\x8a\x4d\x47\x02\x68\xa8\x90\x67\xa2\xc9\x21\xdf\xf2\x4b\xa2\xe3\x7a\x3c\xe8\x34\x55\x50\x00\xdc\x86\x8e\xe6\x58\x8b\x74\x93\x30\x35\x28\xb1\xb3\xa9\x4f\x0b\x71\x73\x0c\xf1\xe8\x6f\xca\x5a\xee\xdc\x3a\xfa\x16\xf6\x5c\x01\x89\xd8\x10\xdd\xcd\x81\x04\x9e\xbb\xd0\x39\x18\x68\xc5\x0e\xde\xc9\x58\xb3\xa2\xaa\xef\xf6\xa5\x75\x89\x7e\x2f\x20\xa3\xab\x54\x55\xc1\xbf\xa5\x50\x10\xac\x51\xa7\x79\x9b\x1f\xf8\x48\x36\x44\xa3\xd4\x25"; const P: &[u8] = b"\xd0\x6f\xfa\x56\x3b\xd0\xb8\xb9\x7f\x00\x72\xea\x07\x51\x03\xec\x1f\xf0\xb1\x7f\xd6\xbd\xaf\x94\xa7\x5a\xe6\x03\x59\x82\xf6\x80\x24\x9d\x77\xcc\x15\x96\xa6\x54\xf1\x4c\x51\x7a\x13\xb9\x5f\x1a\x8c\x5d\xe8\xcc\x84\xad\x38\xd2\xe6\xaa\x4f\xcd\x54\x1a\x32\xeb"; const Q: &[u8] = b"\xf6\x6a\x24\x68\xb1\x48\x1a\x0d\x6b\x60\x49\x67\xf0\x58\x03\x89\xd6\x06\x1f\x03\x3a\x9b\x57\xb7\x4d\x1b\xef\xe8\x10\x11\x98\x94\x5b\x80\x93\x04\x24\x1d\x02\xfd\x5f\x92\x1f\xe9\x59\xfb\xec\xdb\x18\x00\x54\x86\x9a\xdb\x17\xd3\x21\xf9\xd5\xd5\x98\x12\x3e\x73"; #[test] fn pkcs1_ciphertext_too_short() { let mut rnd = Yarrow::default(); let n = &b"\xc8\xa2\x06\x91\x82\x39\x4a\x2a\xb7\xc3\xf4\x19\x0c\x15\x58\x9c\x56\xa2\xd4\xbc\x42\xdc\xa6\x75\xb3\x4c\xc9\x50\xe2\x46\x63\x04\x84\x41\xe8\xaa\x59\x3b\x2b\xc5\x9e\x19\x8b\x8c\x25\x7e\x88\x21\x20\xc6\x23\x36\xe5\xcc\x74\x50\x12\xc7\xff\xb0\x63\xee\xbe\x53\xf3\xc6\x50\x4c\xba\x6c\xfe\x51\xba\xa3\xb6\xd1\x07\x4b\x2f\x39\x81\x71\xf4\xb1\x98\x2f\x4d\x65\xca\xf8\x82\xea\x4d\x56\xf3\x2a\xb5\x7d\x0c\x44\xe6\xad\x4e\x9c\xf5\x7a\x43\x39\xeb\x69\x62\x40\x6e\x35\x0c\x1b\x15\x39\x71\x83\xfb\xf1\xf0\x35\x3c\x9f\xc9\x91"[..]; let e = &b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"[..]; let public = PublicKey::new(n, e).unwrap(); let mut ciphertext = [0u8; 1]; assert!(encrypt_pkcs1(&public, &mut rnd, &b"123"[..], &mut ciphertext) .is_err()); } /// Insufficient validation of RSA ciphertexts crash Nettle. /// /// See CVE-2021-3580. #[test] fn cve_2021_3580_ciphertext_too_long() { let mut rnd = Yarrow::default(); let public = PublicKey::new(N, E).unwrap(); let private = PrivateKey::new(D, P, Q, None).unwrap(); let ciphertext = vec![1u8; public.n().len() / 8 + 1000]; assert!(decrypt_pkcs1_insecure(&public, &private, &mut rnd, &ciphertext).is_err()); let mut plaintext = vec![0; 256]; assert!(decrypt_pkcs1(&public, &private, &mut rnd, &ciphertext, &mut plaintext).is_err()); } /// Insufficient validation of RSA ciphertexts crash Nettle. /// /// See CVE-2021-3580. #[test] fn cve_2021_3580_zero_ciphertext() { let mut rnd = Yarrow::default(); let public = PublicKey::new(N, E).unwrap(); let private = PrivateKey::new(D, P, Q, None).unwrap(); let ciphertext = vec![0u8; 0]; assert!(decrypt_pkcs1_insecure(&public, &private, &mut rnd, &ciphertext).is_err()); let mut plaintext = vec![0; 256]; assert!(decrypt_pkcs1(&public, &private, &mut rnd, &ciphertext, &mut plaintext).is_err()); } #[test] fn rsa_pkcs15_sign() { let mut rnd = Yarrow::default(); let n = &b"\xc8\xa2\x06\x91\x82\x39\x4a\x2a\xb7\xc3\xf4\x19\x0c\x15\x58\x9c\x56\xa2\xd4\xbc\x42\xdc\xa6\x75\xb3\x4c\xc9\x50\xe2\x46\x63\x04\x84\x41\xe8\xaa\x59\x3b\x2b\xc5\x9e\x19\x8b\x8c\x25\x7e\x88\x21\x20\xc6\x23\x36\xe5\xcc\x74\x50\x12\xc7\xff\xb0\x63\xee\xbe\x53\xf3\xc6\x50\x4c\xba\x6c\xfe\x51\xba\xa3\xb6\xd1\x07\x4b\x2f\x39\x81\x71\xf4\xb1\x98\x2f\x4d\x65\xca\xf8\x82\xea\x4d\x56\xf3\x2a\xb5\x7d\x0c\x44\xe6\xad\x4e\x9c\xf5\x7a\x43\x39\xeb\x69\x62\x40\x6e\x35\x0c\x1b\x15\x39\x71\x83\xfb\xf1\xf0\x35\x3c\x9f\xc9\x91"[..]; let e = &b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"[..]; let d = &b"\x5d\xfc\xb1\x11\x07\x2d\x29\x56\x5b\xa1\xdb\x3e\xc4\x8f\x57\x64\x5d\x9d\x88\x04\xed\x59\x8a\x4d\x47\x02\x68\xa8\x90\x67\xa2\xc9\x21\xdf\xf2\x4b\xa2\xe3\x7a\x3c\xe8\x34\x55\x50\x00\xdc\x86\x8e\xe6\x58\x8b\x74\x93\x30\x35\x28\xb1\xb3\xa9\x4f\x0b\x71\x73\x0c\xf1\xe8\x6f\xca\x5a\xee\xdc\x3a\xfa\x16\xf6\x5c\x01\x89\xd8\x10\xdd\xcd\x81\x04\x9e\xbb\xd0\x39\x18\x68\xc5\x0e\xde\xc9\x58\xb3\xa2\xaa\xef\xf6\xa5\x75\x89\x7e\x2f\x20\xa3\xab\x54\x55\xc1\xbf\xa5\x50\x10\xac\x51\xa7\x79\x9b\x1f\xf8\x48\x36\x44\xa3\xd4\x25"[..]; let p = &b"\xd0\x6f\xfa\x56\x3b\xd0\xb8\xb9\x7f\x00\x72\xea\x07\x51\x03\xec\x1f\xf0\xb1\x7f\xd6\xbd\xaf\x94\xa7\x5a\xe6\x03\x59\x82\xf6\x80\x24\x9d\x77\xcc\x15\x96\xa6\x54\xf1\x4c\x51\x7a\x13\xb9\x5f\x1a\x8c\x5d\xe8\xcc\x84\xad\x38\xd2\xe6\xaa\x4f\xcd\x54\x1a\x32\xeb"[..]; let q = &b"\xf6\x6a\x24\x68\xb1\x48\x1a\x0d\x6b\x60\x49\x67\xf0\x58\x03\x89\xd6\x06\x1f\x03\x3a\x9b\x57\xb7\x4d\x1b\xef\xe8\x10\x11\x98\x94\x5b\x80\x93\x04\x24\x1d\x02\xfd\x5f\x92\x1f\xe9\x59\xfb\xec\xdb\x18\x00\x54\x86\x9a\xdb\x17\xd3\x21\xf9\xd5\xd5\x98\x12\x3e\x73"[..]; let public = PublicKey::new(n, e).unwrap(); let private = PrivateKey::new(d, p, q, None).unwrap(); { let m = &b"\xe8\x31\x27\x42\xae\x23\xc4\x56\xef\x28\xa2\x31\x42\xc4\x49\x08\x95\x83\x27\x65\xda\xdc\xe0\x2a\xfe\x5b\xe5\xd3\x1b\x00\x48\xfb\xee\xe2\xcf\x21\x8b\x17\x47\xad\x4f\xd8\x1a\x2e\x17\xe1\x24\xe6\xaf\x17\xc3\x88\x8e\x6d\x2d\x40\xc0\x08\x07\xf4\x23\xa2\x33\xca\xd6\x2c\xe9\xea\xef\xb7\x09\x85\x6c\x94\xaf\x16\x6d\xba\x08\xe7\xa0\x69\x65\xd7\xfc\x0d\x8e\x5c\xb2\x65\x59\xc4\x60\xe4\x7b\xc0\x88\x58\x9d\x22\x42\xc9\xb3\xe6\x2d\xa4\x89\x6f\xab\x19\x9e\x14\x4e\xc1\x36\xdb\x8d\x84\xab\x84\xbc\xba\x04\xca\x3b\x90\xc8\xe5"[..]; let expected = &b"\x28\x92\x8e\x19\xeb\x86\xf9\xc0\x00\x70\xa5\x9e\xdf\x6b\xf8\x43\x3a\x45\xdf\x49\x5c\xd1\xc7\x36\x13\xc2\x12\x98\x40\xf4\x8c\x4a\x2c\x24\xf1\x1d\xf7\x9b\xc5\xc0\x78\x2b\xce\xdd\xe9\x7d\xbb\xb2\xac\xc6\xe5\x12\xd1\x9f\x08\x50\x27\xcd\x57\x50\x38\x45\x3d\x04\x90\x54\x13\xe9\x47\xe6\xe1\xdd\xdb\xeb\x35\x35\xcd\xb3\xd8\x97\x1f\xe0\x20\x05\x06\x94\x10\x56\xf2\x12\x43\x50\x3c\x83\xea\xdd\xe0\x53\xed\x86\x6c\x0e\x02\x50\xbe\xdd\xd9\x27\xa0\x82\x12\xaa\x8a\xc0\xef\xd6\x16\x31\xef\x89\xd8\xd0\x49\xef\xb3\x6b\xb3\x5f"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x4c\x95\x07\x3d\xac\x19\xd0\x25\x6e\xaa\xdf\xf3\x50\x59\x10\xe4\x31\xdd\x50\x01\x81\x36\xaf\xea\xf6\x90\xb7\xd1\x80\x69\xfc\xc9\x80\xf6\xf5\x41\x35\xc3\x0a\xcb\x76\x9b\xee\x23\xa7\xa7\x2f\x6c\xe6\xd9\x0c\xbc\x85\x8c\x86\xdb\xbd\x64\xba\x48\xa0\x7c\x6d\x7d\x50\xc0\xe9\x74\x6f\x97\x08\x6a\xd6\xc6\x8e\xe3\x8a\x91\xbb\xee\xeb\x22\x21\xaa\x2f\x2f\xb4\x09\x0f\xd8\x20\xd4\xc0\xce\x5f\xf0\x25\xba\x8a\xdf\x43\xdd\xef\x89\xf5\xf3\x65\x3d\xe1\x5e\xdc\xf3\xaa\x80\x38\xd4\x68\x69\x60\xfc\x55\xb2\x91\x7e\xc8\xa8\xf9\xa8"[..]; let expected = &b"\x53\xab\x60\x0a\x41\xc7\x13\x93\xa2\x71\xb0\xf3\x2f\x52\x19\x63\x08\x7e\x56\xeb\xd7\xad\x04\x0e\x4e\xe8\xaa\x7c\x45\x0a\xd1\x8a\xc3\xc6\xa0\x5d\x4a\xe8\x91\x3e\x76\x3c\xfe\x96\x23\xbd\x9c\xb1\xeb\x4b\xed\x1a\x38\x20\x05\x00\xfa\x7d\xf3\xd9\x5d\xea\x48\x5f\x03\x2a\x0a\xb0\xc6\x58\x96\x78\xf9\xe8\x39\x1b\x5c\x2b\x13\x92\x99\x7a\xc9\xf8\x2f\x1d\x16\x88\x78\x91\x6a\xac\xe9\xac\x74\x55\x80\x80\x56\xaf\x81\x55\x23\x1a\x29\xf4\x29\x04\xb7\xab\x87\xa5\xd7\x1e\xd6\x39\x5e\xe0\xa9\xd0\x24\xb0\xca\x3d\x01\xfd\x71\x50"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\xe0\x75\xad\x4b\x0f\x9b\x5b\x20\x37\x6e\x46\x7a\x1a\x35\xe3\x08\x79\x3b\xa3\x8e\xd9\x83\xd0\x38\x87\xb8\xb8\x2e\xda\x63\x0e\x68\xb8\x61\x8d\xc4\x5b\x93\xde\x55\x55\xd7\xbc\xfe\xd2\x37\x56\x40\x1e\x61\xf5\x51\x67\x57\xde\x6e\xc3\x68\x7a\x71\x75\x5f\xb4\xa6\x6c\xfa\xa3\xdb\x0c\x9e\x69\xb6\x31\x48\x5b\x4c\x71\xc7\x62\xee\xa2\x29\xa0\x46\x9c\x73\x57\xa4\x40\x95\x07\x92\xba\x9c\xd7\xae\x02\x2a\x36\xb9\xa9\x23\xc2\xeb\xd2\xaa\x69\x89\x7f\x4c\xce\xba\x0e\x7a\xee\x97\x03\x3d\x03\x81\x07\x25\xa9\xb7\x31\x83\x3f\x27"[..]; let expected = &b"\x64\x26\x09\xce\x08\x4f\x47\x92\x71\xdf\x59\x64\x80\x25\x2e\x2f\x89\x2b\x3e\x79\x82\xdf\xf9\x59\x94\xc3\xee\xda\x78\x7f\x80\xf3\xf6\x19\x8b\xbc\xe3\x3e\xc5\x51\x53\x78\xd4\xb5\x71\xd7\x18\x60\x78\xb7\x5b\x43\xae\xd1\x1d\x34\x25\x47\x38\x6c\x56\x96\xeb\x37\x99\xa0\xb2\x84\x75\xe5\x4c\xd4\xca\x7d\x03\x6d\xcd\x8a\x11\xf5\xe1\x08\x06\xf7\xd3\xb8\xcc\x4f\xcb\x3e\x93\xe8\x57\xbe\x95\x83\x44\xa3\x4e\x12\x68\x09\xc1\x5b\x3d\x33\x66\x1c\xf5\x7b\xf5\xc3\x38\xf0\x7a\xcc\xed\x60\xf1\x40\x19\x33\x5c\x15\x2d\x86\xb3\xb2"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x18\x50\x01\x55\xd2\xe0\x58\x7d\x15\x26\x98\xc0\x7b\xa4\x4d\x4f\x04\xaa\x9a\x90\x0b\x77\xce\x66\x78\xa1\x37\xb2\x38\xb7\x3b\x1a\xea\x24\xa4\x09\xdb\x56\x3c\xf6\x35\x20\x9a\xea\x73\x5d\x3b\x3c\x18\xd7\xd5\x9f\xa1\x67\xe7\x60\xb8\x5d\x95\xe8\xaa\x21\xb3\x88\x1b\x1b\x20\x76\xf9\xd1\x55\x12\xae\x4f\x3d\x6e\x9a\xcc\x48\x0e\xc0\x8a\xbb\xec\xbf\xfe\x4a\xbf\x05\x31\xe8\x7d\x3f\x66\xde\x1f\x13\xfd\x1a\xa4\x12\x97\xca\x58\xe8\x7b\x2a\x56\xd6\x39\x9a\x4c\x63\x8d\xf4\x7e\x4e\x85\x1c\x0e\xc6\xe6\xd9\x7a\xdd\xcd\xe3\x66"[..]; let expected = &b"\x42\xf3\xc3\xc7\x5f\x65\xad\x42\x05\x7b\xfa\xc1\x31\x03\x83\x7b\xf9\xf8\x42\x7c\x6e\xbc\x22\xa3\xad\xf7\xb8\xe4\x7a\x68\x57\xf1\xcb\x17\xd2\xa5\x33\xc0\xa9\x13\xdd\x9a\x8b\xdc\x17\x86\x22\x23\x60\xcb\xd7\xe6\x4b\x45\xfc\xf5\x4f\x5d\xa2\xf3\x42\x30\xab\x48\x06\xa0\x87\xf8\xbe\x47\xf3\x5c\x4e\x8f\xee\x2e\x6a\xa2\x91\x9a\x56\x67\x9c\xe2\xa5\x28\xa4\x4b\xf8\x18\x62\x0d\x5b\x00\xb9\xab\x0e\x1c\x8d\x2d\x72\x2b\x53\xd3\xa8\xcc\xa3\x5a\x99\x0e\xd2\x55\x36\xea\x65\x33\x5e\x82\x53\xa5\x4a\x68\xa6\x4a\x37\x3e\x0e\xd7"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\xf7\xf7\x9f\x9d\xf2\x76\x0f\xc8\x3c\x73\xc7\xcc\xea\x7e\xae\x48\x2d\xcf\xa5\xe0\x2a\xcf\x05\xe1\x05\xdb\x48\x28\x3f\x44\x06\x40\x43\x9a\x24\xca\x3b\x2a\x48\x22\x28\xc5\x8f\x3f\x32\xc3\x83\xdb\x3c\x48\x47\xd4\xbc\xc6\x15\xd3\xca\xc3\xeb\x2b\x77\xdd\x80\x04\x5f\x0b\x7d\xb8\x82\x25\xea\x7d\x4f\xa7\xe6\x45\x02\xb2\x9c\xe2\x30\x53\x72\x6e\xa0\x08\x83\xea\x5d\x80\x50\x25\x09\xa3\xb2\xdf\x74\xd2\x14\x2f\x6e\x70\xde\x22\xd9\xa1\x34\xa5\x02\x51\xe1\xa5\x31\x79\x8e\x74\x7e\x9d\x38\x6f\xe7\x9a\xe1\xde\xa0\x9e\x85\x1b"[..]; let expected = &b"\xac\x2a\xe6\x6b\xca\x1e\xc1\x2a\x66\xa2\x90\x9f\xe2\x14\x8a\x1d\x49\x2d\x1e\xdd\x00\x06\x3b\x8b\x33\xaf\x74\x76\x0d\xc4\x05\x67\x18\xfd\x50\x41\xd4\xdf\xee\x12\xbe\xc7\x08\x1a\xb1\xba\xb2\xd0\xeb\x27\x12\xf3\x34\x50\x9f\x68\x89\xb1\x9d\x75\xd1\xfd\x0f\xc6\x1b\xf1\x29\x76\x10\x9c\x36\x14\xc4\x60\x51\xe2\xa4\x01\xb2\x08\x80\xd6\xe6\x4a\xd6\xa4\x7f\x23\x93\x98\x03\xd1\x38\xaa\x0a\x44\xbc\x41\xba\x63\x03\x07\x46\x62\x22\x48\x77\x14\x31\xdf\xf9\x7e\x8a\x85\x6f\x0b\x61\xd1\x14\xf8\x13\x91\x1e\xe2\x29\x65\x51\x55"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x09\x9b\xf1\x7f\x16\xbc\xfd\x4c\x19\xb3\x4f\xec\xb4\xb3\x23\x3c\x9f\x9f\x98\x71\x8f\x67\xb3\x06\x5d\x95\xa5\xf8\x64\x23\x51\x36\x2b\x90\x09\x53\x44\x33\x98\x7f\x73\xce\x86\xb5\x13\x66\x97\x36\xb6\x52\x95\x35\x0c\x93\x4f\xd4\x06\x63\xe2\x4f\x3a\x10\x37\x77\x8a\x0b\xcd\x63\x00\x3c\xb9\x62\xfd\x99\xeb\x33\x93\xf7\xb2\x79\x2f\x20\x83\x69\x7b\x25\xf6\xc6\x82\xf6\x11\x0f\x16\x2f\xc9\xf7\x6e\x35\xc6\x15\x14\x82\x67\xdd\xff\x3d\x06\xcf\xfb\x0e\x7d\xee\x52\x30\xe8\x74\xa5\xc8\xad\xc4\x1b\x75\xba\xa0\xbe\x28\x0e\x9c"[..]; let expected = &b"\x3a\x2b\x75\x71\x61\x92\x72\xb8\x1d\x35\x62\xa1\x1c\x64\x45\x02\x89\x44\x21\x58\x3e\x02\x87\x9f\x5a\x77\x59\xfb\x64\xec\x2a\xb8\x10\x5f\x7d\x11\x94\x7c\x8e\x4b\xfc\xa8\x72\x19\xe5\x29\x87\xaa\xd3\xb8\x1c\xbd\x48\x31\x66\xed\x78\x15\x2a\xf2\x44\x60\xc9\x08\x87\x9f\x34\xc8\x70\x57\x31\x27\xe3\x44\x8c\x8f\xbf\x43\x02\x83\x50\xc9\x75\xbb\xc3\xa9\x99\x19\x6a\x3e\x99\x61\x22\x8a\x2b\xb1\x5b\x49\x85\xe9\x5b\xba\x97\x0a\xc4\xad\x2a\xc5\xb4\x2a\xc5\x1d\xbc\x65\x09\xef\xfc\x13\x39\x66\x93\x98\x0f\xc8\x9b\xa4\x4c\x7b"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\xfb\x40\xa7\x3d\xc8\x2f\x16\x7f\x9c\x2b\xf9\x8a\x99\x1e\xa8\x2f\xdb\x01\x41\xdb\xad\x44\x87\x1a\xfd\x70\xf0\x5a\x0e\x0b\xf9\xf2\x6d\xbc\xbd\x62\x26\xaf\xc6\xdc\x37\x3b\x23\x04\x45\xc2\xba\xf5\x8e\xd9\xe0\x84\x1f\xa9\x27\xc8\x47\x95\x77\xda\x4b\x1e\x61\xd9\x5b\x03\xaf\x31\xc5\xac\x40\x1d\x69\xc8\x13\x6b\x6d\x36\xa1\x80\x32\x21\x70\x9b\x86\x70\xe5\x5e\x1b\x5d\x5a\x8a\x37\x63\x70\x0a\xae\x5e\xa6\x33\x0e\xee\x2b\x4a\x19\x1c\xf1\x46\x78\x40\x03\xd8\xad\x22\x18\xa9\x4a\x5f\x68\xe3\x60\x0e\xbe\xf2\x3b\xa4\xcf\x8c"[..]; let expected = &b"\xb1\x03\x22\x60\x2c\x28\x4f\x40\x79\xe5\x09\xfa\xf3\xf4\x0a\x3d\x2a\xf3\xab\xef\x9f\x09\x17\x1f\xdd\x16\x46\x9d\x67\x9b\xb9\xad\xc7\xe2\xac\xb1\xad\xdb\x0b\xd5\xb3\x8b\x5c\x4d\x98\x6b\x43\xc7\x9b\x97\x24\xf6\x1e\x99\xb5\xb3\x03\x63\x0b\x62\xd0\xd8\xd5\xf7\x65\x77\xfe\x7e\xa3\x87\x71\x0b\x43\x78\x9e\xe1\xb3\x5b\x61\x4b\x69\x1f\x0a\x27\xb7\x3b\xaf\x6b\xc3\xf2\x8e\xc2\x10\xb9\xd3\xe4\xc5\xa2\x72\x9c\xc1\x20\x3b\x74\xef\x70\xe3\x15\xcf\xe5\xd0\x6e\x04\x0a\xee\x6b\x3d\x22\xd9\x1d\x6e\x22\x9f\x69\x0a\x96\x6d\xd9"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x97\xe7\x49\x60\xdb\xd9\x81\xd4\x6a\xad\xc0\x21\xa6\xcf\x18\x1d\xdd\xe6\xe4\xcf\xcb\x4b\x63\x82\x60\xc0\xa5\x19\xc4\x5f\xab\xa2\x99\xd0\xca\x2e\x80\xbf\x50\xdf\xde\x8d\x6a\x42\xe0\x46\x45\xdf\xbc\xd4\x74\x0f\x3a\x72\x92\x0e\x74\x63\x28\x51\xd9\xe3\xd0\x1a\x78\x5e\x9b\x49\x7c\xe0\xb1\x75\xf2\xcd\x37\x3b\xd3\xd2\x76\xd6\x3e\x1b\x39\xf0\x05\xc6\x76\xb8\x6b\x98\x31\x35\x2c\xef\x9e\xda\xbe\xf8\x86\x5a\xd7\x22\xeb\xbe\x2f\xd3\xef\xb4\x87\x59\xf2\x2a\xea\x23\xfb\x1b\x33\x31\x59\xa9\xcf\xc9\x8a\x6d\xc4\x6c\x5b\x0b"[..]; let expected = &b"\x60\xeb\xc9\xe4\xe2\xe2\xb4\xfa\x6d\x31\xc5\x7d\x0b\x86\x83\x5e\x8d\x20\x1d\x21\xc2\x74\xcf\x54\x52\xcd\xd7\xef\x28\x57\xdc\x78\x0d\xde\x35\x26\xf3\x65\x8c\x4f\x2c\x87\x10\xea\xae\x48\x70\xd2\x75\x99\x7e\x5c\xbb\x26\x8e\x3b\xd2\x51\xf5\x43\xb8\x82\x8f\xeb\x85\xc2\x11\xc8\x58\xe4\x7a\x74\xcb\x12\x2d\xc1\x7f\x26\xfe\x92\xb4\xaf\xee\xcb\xf1\xe2\x0b\xea\x75\xc7\x94\xc0\x48\x2a\xa6\x53\x2e\x87\x95\x5d\xba\x24\x9f\x0f\xa6\x56\x2b\xdf\x8f\x4c\xcd\x8a\x63\xda\x69\xd1\xf3\x37\x52\x3f\x65\x20\x6f\xb8\xeb\x16\x31\x73"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x95\xd0\x46\x24\xb9\x98\x93\x8d\xd0\xa5\xba\x6d\x70\x42\xaa\x88\xa2\x67\x4d\xad\x43\x8a\x0d\x31\xab\xb7\x97\x9d\x8d\xe3\xde\xa4\x1e\x7e\x63\x58\x7a\x47\xb5\x9d\x43\x64\x33\xdd\x8b\xb2\x19\xfd\xf4\x5a\xbb\x90\x15\xa5\x0b\x4b\x20\x11\x61\xb9\xc2\xa4\x7c\x30\x4b\x80\xc4\x04\x0f\xb8\xd1\xfa\x0c\x62\x31\x00\xcd\xed\x66\x1b\x8e\xb5\x2f\xa0\xa0\xd5\x09\xa7\x0f\x3c\xf4\xbd\x83\x04\x7a\xd9\x64\xff\xee\x92\x41\x92\xf2\x8e\x73\xc6\x3b\x3e\xfd\x9c\x99\xc8\xb7\xa1\x31\x45\xac\xc3\x0d\x2d\xc0\x63\xd8\x0f\x96\xab\xe2\x86"[..]; let expected = &b"\x85\x9c\xc4\xfc\xd1\xb8\x8c\xcd\xa6\x95\xb1\x23\x11\xcf\x8b\xdc\xa3\xb4\xc1\x35\xfa\xa1\x1f\x90\x53\xdc\x10\xf4\xbf\x12\xe5\xf2\x17\x9b\xe6\xab\x5a\xd9\x0f\x8d\x11\x5f\x5d\xf7\x95\xa7\x73\x40\xe2\x06\x62\x80\x9f\xa7\x32\xb9\x25\x60\xad\xcf\xfd\xb0\xdd\xb7\x2d\x33\x81\x1e\x94\xf8\x54\x33\x06\x80\xf2\xb2\x38\x30\x09\x95\xa9\x11\x3a\x46\x9a\xfd\x9e\x75\x6f\x64\x92\x08\xd2\x94\x2f\xeb\xff\xb2\x2e\x83\x22\x79\x06\x3e\xc5\xb5\x7a\xb5\x42\xd9\xbb\xc5\x6e\x82\xcd\xc6\xa0\x3b\x00\xd1\x0d\x45\x80\x15\x75\xe9\x49\xe1"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x20\x71\x02\xf5\x98\xec\x28\x00\x45\xbe\x67\x59\x2f\x5b\xba\x25\xba\x2e\x2b\x56\xe0\xd2\x39\x7c\xbe\x85\x7c\xde\x52\xda\x8c\xca\x83\xae\x1e\x29\x61\x5c\x70\x56\xaf\x35\xe8\x31\x9f\x2a\xf8\x6f\xdc\xcc\x44\x34\xcd\x77\x07\xe3\x19\xc9\xb2\x35\x66\x59\xd7\x88\x67\xa6\x46\x7a\x15\x4e\x76\xb7\x3c\x81\x26\x0f\x3a\xb4\x43\xcc\x03\x9a\x0d\x42\x69\x50\x76\xa7\x9b\xd8\xca\x25\xeb\xc8\x95\x2e\xd4\x43\xc2\x10\x3b\x29\x00\xc9\xf5\x8b\x6a\x1c\x8a\x62\x66\xe4\x38\x80\xcd\xa9\x3b\xc6\x4d\x71\x4c\x98\x0c\xd8\x68\x8e\x8e\x63"[..]; let expected = &b"\x77\xf0\xf2\xa0\x48\x48\xfe\x90\xa8\xeb\x35\xab\x5d\x94\xca\xe8\x43\xdb\x61\x02\x4d\x01\x67\x28\x9e\xea\x92\xe5\xd1\xe1\x0a\x52\x6e\x42\x0f\x2d\x33\x4f\x1b\xf2\xaa\x7e\xa4\xe1\x4a\x93\xa6\x8d\xba\x60\xfd\x2e\xde\x58\xb7\x94\xdc\xbd\x37\xdc\xb1\x96\x78\x77\xd6\xb6\x7d\xa3\xfd\xf2\xc0\xc7\x43\x3e\x47\x13\x4d\xde\x00\xc9\xc4\xd4\x07\x2e\x43\x36\x1a\x76\x7a\x52\x76\x75\xd8\xbd\xa7\xd5\x92\x1b\xd4\x83\xc9\x55\x19\x50\x73\x9e\x9b\x2b\xe0\x27\xdf\x30\x15\xb6\x1f\x75\x1a\xc1\xd9\xf3\x7b\xea\x32\x14\xd3\xc8\xdc\x96"[..]; let mut hsh = Sha1::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x64\x4a\x3d\xe6\x10\x0d\xd8\xa3\x6c\x84\x14\x46\xb9\x37\x6b\x34\x5d\x47\x8a\x32\x94\x50\xa6\x6f\x62\x93\x13\xc5\xcc\x55\x13\x3c\x47\x82\xec\xd0\x71\x96\x3d\x74\xff\xbd\x91\x56\xf6\x39\x35\x65\x1f\x05\x47\x11\xb4\xb8\x10\x51\x60\xab\x94\xeb\x67\x5e\x66\xf0\x20\x18\xc1\x85\xac\xce\xd5\xe9\xe2\x46\x5f\xb4\x89\x7d\x7c\x5d\xca\x45\xbf\xff\xe4\x32\x81\x5d\x22\xb7\x78\x23\x0b\x8d\x8c\x6f\xd8\x54\xe5\x8f\x2b\x7d\x49\x0d\xfd\x67\xa5\xe8\xd8\xc8\xe9\x25\x47\x4f\x19\x86\x8c\x88\xa1\x9a\x90\xff\xea\xf6\x20\xa8\x2a\xc1"[..]; let expected = &b"\x48\x11\x57\xd6\x5c\x91\xa0\x9b\x87\x1b\xc9\xf7\x04\xac\x2c\x31\xb1\xe6\xb0\x97\xe0\xd4\x9e\x29\x1e\x03\x7c\x11\xe7\x07\xf4\x8a\xc1\x66\x55\x8e\x9e\x8c\x11\x4e\xe4\x44\xc4\xd6\x49\xe7\xe2\xcf\x73\x74\x26\x9b\x03\x6f\xea\x99\xbb\x35\x66\xd1\x34\xd7\xae\x5d\xd4\x14\x1f\x73\x26\x88\x47\x46\xd3\x96\xbe\x32\x07\xda\x2d\x9f\x56\x86\x25\x85\x99\x3d\xb4\x2c\xe2\x82\xaa\x2f\x04\x8d\x12\xbc\xcf\xf1\x2f\x14\xb9\xd1\xac\x4e\x33\xd3\x71\xfd\x4c\x0d\xe1\x56\x3c\x97\x88\x26\x46\x8e\x6a\x37\x99\xf6\x4d\x39\x85\xd4\x68\x9e"[..]; let mut hsh = Sha224::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x46\x7e\x8e\xa6\x34\xf7\x99\x5d\xc4\x6c\x11\xb8\xab\x0b\x75\x08\x89\x46\x81\xe8\x1c\x35\x02\xc3\xb3\x35\xe8\x97\xe6\xd6\x9d\xf8\x85\xf4\x95\x57\xce\x23\x27\x84\xe3\x51\x9b\x72\x7b\xa6\x84\x3b\xd7\xaf\x50\x63\xf8\xbc\x1d\x61\x0f\x86\xce\x5b\x35\x15\x5e\x32\x5c\xe1\x75\xbe\x85\x38\x39\x5b\x34\xdf\x67\xa4\x21\xfc\xa2\x7e\x31\x33\x0b\x59\xa4\x10\x11\xb2\x90\xa5\x8b\xdc\x8e\x74\x04\x01\xb3\x8f\x55\x64\xc2\xfd\x7a\xe8\x9f\x60\x9e\xd6\x07\xd5\x78\xdb\x7f\x1c\xda\x50\x8a\xf9\x87\xbe\x1f\xd9\x46\xa2\x5a\xb9\x34\x6d"[..]; let expected = &b"\x2b\x1f\xfb\x37\x0d\x51\x8a\x82\x64\x6d\x86\x82\x8d\xb1\xfc\x7e\x8b\xfe\x73\xee\x87\x8d\xa1\x20\xfa\x92\x73\x7c\x91\x74\x68\x89\x95\xf2\x25\x5b\x29\xe8\x3b\x28\xc2\x44\xcc\x56\x3c\x9b\x33\xef\xd3\xf9\xf9\xe1\x63\x8e\x2c\x16\xe2\x4f\x2e\xae\x19\x43\x56\x96\xb2\xf4\xd1\xcf\x73\x06\x4f\xc1\xcf\xcc\xb2\x27\x8c\x01\xf0\x97\x9e\x7d\xe7\x46\x3b\xf8\x41\x7b\xd6\x98\x6f\xbf\x1d\x34\xd3\x82\xa9\x78\xce\x79\x95\x82\x44\x2a\xfc\xc9\x2b\x4f\xe7\x43\x21\x6b\x6f\x15\x1f\x6a\x56\x1d\x97\x9c\xf6\x83\xca\xb6\xaf\x2f\xf4\xc5"[..]; let mut hsh = Sha256::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x46\x7e\x8e\xa6\x34\xf7\x99\x5d\xc4\x6c\x11\xb8\xab\x0b\x75\x08\x89\x46\x81\xe8\x1c\x35\x02\xc3\xb3\x35\xe8\x97\xe6\xd6\x9d\xf8\x85\xf4\x95\x57\xce\x23\x27\x84\xe3\x51\x9b\x72\x7b\xa6\x84\x3b\xd7\xaf\x50\x63\xf8\xbc\x1d\x61\x0f\x86\xce\x5b\x35\x15\x5e\x32\x5c\xe1\x75\xbe\x85\x38\x39\x5b\x34\xdf\x67\xa4\x21\xfc\xa2\x7e\x31\x33\x0b\x59\xa4\x10\x11\xb2\x90\xa5\x8b\xdc\x8e\x74\x04\x01\xb3\x8f\x55\x64\xc2\xfd\x7a\xe8\x9f\x60\x9e\xd6\x07\xd5\x78\xdb\x7f\x1c\xda\x50\x8a\xf9\x87\xbe\x1f\xd9\x46\xa2\x5a\xb9\x34\x6d"[..]; let expected = &b"\xc7\x00\x28\x35\x57\xda\xfd\x1f\x88\x34\xec\x0b\x7a\x7e\xc7\x33\x71\x9c\xb0\xbe\x6e\xdb\x19\xf1\x06\x4e\xe9\x4c\x75\xb8\xd9\xd4\x94\x58\xfa\x18\x4f\x7d\x6d\xfa\x5a\x6d\xa2\xd2\xeb\xee\xf0\x65\x0d\x8a\xf3\x54\x47\x82\x3c\x83\xa7\x73\x78\x24\x50\x9a\x74\x25\x33\x9c\xaf\x99\x10\x1c\xd1\xfe\x3d\xb8\x83\xfb\x98\xd1\x72\x12\x7e\x30\xe3\x8d\x1d\x6f\x9e\x36\x54\x93\x7c\xd6\x8c\xbb\x4e\xa2\x28\xc8\x16\x06\x4f\xa8\xca\x09\x50\xc7\xe7\xb6\xad\x25\x04\x55\x74\xa6\xa4\x06\x3b\x63\xf0\x74\x66\xb2\xcb\x5d\x73\x11\xb7\xcf"[..]; let mut hsh = Sha384::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } { let m = &b"\x46\x7e\x8e\xa6\x34\xf7\x99\x5d\xc4\x6c\x11\xb8\xab\x0b\x75\x08\x89\x46\x81\xe8\x1c\x35\x02\xc3\xb3\x35\xe8\x97\xe6\xd6\x9d\xf8\x85\xf4\x95\x57\xce\x23\x27\x84\xe3\x51\x9b\x72\x7b\xa6\x84\x3b\xd7\xaf\x50\x63\xf8\xbc\x1d\x61\x0f\x86\xce\x5b\x35\x15\x5e\x32\x5c\xe1\x75\xbe\x85\x38\x39\x5b\x34\xdf\x67\xa4\x21\xfc\xa2\x7e\x31\x33\x0b\x59\xa4\x10\x11\xb2\x90\xa5\x8b\xdc\x8e\x74\x04\x01\xb3\x8f\x55\x64\xc2\xfd\x7a\xe8\x9f\x60\x9e\xd6\x07\xd5\x78\xdb\x7f\x1c\xda\x50\x8a\xf9\x87\xbe\x1f\xd9\x46\xa2\x5a\xb9\x34\x6d"[..]; let expected = &b"\x5d\x5c\xf1\x80\xbd\xac\x8a\xe1\x4a\x50\xc4\xe8\xb5\x7b\x88\xba\x68\xb1\xc3\x52\x7d\x34\xa6\x3f\xd3\x90\xf3\x3b\x8b\x02\x5a\x75\xf7\xce\x82\x4f\x1e\x20\xde\x81\x49\x91\x36\x4a\x97\xc2\xab\x9e\x6c\x88\xcd\x19\x6a\xbf\x6c\x4a\x0a\xc6\x60\x13\xa7\x3d\xb9\xe9\x4a\x98\x8a\x46\x65\xa3\x1c\xd4\xe0\x73\x18\x08\xc8\x8e\xc1\x45\x7c\x48\x10\x47\xf3\xe3\x2b\x08\xbf\xf6\x56\x0c\xbe\x85\xce\xc2\x12\x23\x9d\xc8\xb2\x54\x67\xde\xbe\x53\x6a\x8a\xb1\xa9\x51\xaf\xcd\xcb\x2c\xfc\x41\x1a\xfd\x5c\x18\x9f\x4b\x0e\xab\xee\xc3\xf7"[..]; let mut hsh = Sha512::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pkcs1( &public, &private, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pkcs1(&public, &mut hsh, expected).ok(), Some(true) ); } } #[test] fn rsa_pkcs15_encrypt() { let mut rnd = Yarrow::default(); let n = &b"\xc8\xa2\x06\x91\x82\x39\x4a\x2a\xb7\xc3\xf4\x19\x0c\x15\x58\x9c\x56\xa2\xd4\xbc\x42\xdc\xa6\x75\xb3\x4c\xc9\x50\xe2\x46\x63\x04\x84\x41\xe8\xaa\x59\x3b\x2b\xc5\x9e\x19\x8b\x8c\x25\x7e\x88\x21\x20\xc6\x23\x36\xe5\xcc\x74\x50\x12\xc7\xff\xb0\x63\xee\xbe\x53\xf3\xc6\x50\x4c\xba\x6c\xfe\x51\xba\xa3\xb6\xd1\x07\x4b\x2f\x39\x81\x71\xf4\xb1\x98\x2f\x4d\x65\xca\xf8\x82\xea\x4d\x56\xf3\x2a\xb5\x7d\x0c\x44\xe6\xad\x4e\x9c\xf5\x7a\x43\x39\xeb\x69\x62\x40\x6e\x35\x0c\x1b\x15\x39\x71\x83\xfb\xf1\xf0\x35\x3c\x9f\xc9\x91"[..]; let e = &b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"[..]; let d = &b"\x5d\xfc\xb1\x11\x07\x2d\x29\x56\x5b\xa1\xdb\x3e\xc4\x8f\x57\x64\x5d\x9d\x88\x04\xed\x59\x8a\x4d\x47\x02\x68\xa8\x90\x67\xa2\xc9\x21\xdf\xf2\x4b\xa2\xe3\x7a\x3c\xe8\x34\x55\x50\x00\xdc\x86\x8e\xe6\x58\x8b\x74\x93\x30\x35\x28\xb1\xb3\xa9\x4f\x0b\x71\x73\x0c\xf1\xe8\x6f\xca\x5a\xee\xdc\x3a\xfa\x16\xf6\x5c\x01\x89\xd8\x10\xdd\xcd\x81\x04\x9e\xbb\xd0\x39\x18\x68\xc5\x0e\xde\xc9\x58\xb3\xa2\xaa\xef\xf6\xa5\x75\x89\x7e\x2f\x20\xa3\xab\x54\x55\xc1\xbf\xa5\x50\x10\xac\x51\xa7\x79\x9b\x1f\xf8\x48\x36\x44\xa3\xd4\x25"[..]; let p = &b"\xd0\x6f\xfa\x56\x3b\xd0\xb8\xb9\x7f\x00\x72\xea\x07\x51\x03\xec\x1f\xf0\xb1\x7f\xd6\xbd\xaf\x94\xa7\x5a\xe6\x03\x59\x82\xf6\x80\x24\x9d\x77\xcc\x15\x96\xa6\x54\xf1\x4c\x51\x7a\x13\xb9\x5f\x1a\x8c\x5d\xe8\xcc\x84\xad\x38\xd2\xe6\xaa\x4f\xcd\x54\x1a\x32\xeb"[..]; let q = &b"\xf6\x6a\x24\x68\xb1\x48\x1a\x0d\x6b\x60\x49\x67\xf0\x58\x03\x89\xd6\x06\x1f\x03\x3a\x9b\x57\xb7\x4d\x1b\xef\xe8\x10\x11\x98\x94\x5b\x80\x93\x04\x24\x1d\x02\xfd\x5f\x92\x1f\xe9\x59\xfb\xec\xdb\x18\x00\x54\x86\x9a\xdb\x17\xd3\x21\xf9\xd5\xd5\x98\x12\x3e\x73"[..]; let public = PublicKey::new(n, e).unwrap(); let private = PrivateKey::new(d, p, q, None).unwrap(); { let m = &b"Hello, World"[..]; let mut c = vec![0u8; 1024 / 8]; assert!(encrypt_pkcs1(&public, &mut rnd, m, &mut c).is_ok()); let m2 = decrypt_pkcs1_insecure(&public, &private, &mut rnd, &c) .unwrap(); assert_eq!(m, &m2[..]); let mut m3 = vec![0; m.len()]; decrypt_pkcs1(&public, &private, &mut rnd, &c, &mut m3) .unwrap(); assert_eq!(m, &m3[..]); } } #[test] fn fips_186_3() { use crate::hash::*; fn test(msg: &[u8], n: &[u8], e: &[u8], s: &[u8]) where H: Default + Hash + Pkcs1Hash, { let mut h = H::default(); h.update(msg); let key = PublicKey::new(n, e).unwrap(); assert_eq!(verify_pkcs1(&key, &mut h, s).ok(), Some(true)); // Sanity check: Retry with the hash being reset. assert_eq!(verify_pkcs1(&key, &mut h, s).ok(), Some(false)); } // [mod = 2048] let n = b"\xce\xa8\x04\x75\x32\x4c\x1d\xc8\x34\x78\x27\x81\x8d\xa5\x8b\xac\x06\x9d\x34\x19\xc6\x14\xa6\xea\x1a\xc6\xa3\xb5\x10\xdc\xd7\x2c\xc5\x16\x95\x49\x05\xe9\xfe\xf9\x08\xd4\x5e\x13\x00\x6a\xdf\x27\xd4\x67\xa7\xd8\x3c\x11\x1d\x1a\x5d\xf1\x5e\xf2\x93\x77\x1a\xef\xb9\x20\x03\x2a\x5b\xb9\x89\xf8\xe4\xf5\xe1\xb0\x50\x93\xd3\xf1\x30\xf9\x84\xc0\x7a\x77\x2a\x36\x83\xf4\xdc\x6f\xb2\x8a\x96\x81\x5b\x32\x12\x3c\xcd\xd1\x39\x54\xf1\x9d\x5b\x8b\x24\xa1\x03\xe7\x71\xa3\x4c\x32\x87\x55\xc6\x5e\xd6\x4e\x19\x24\xff\xd0\x4d\x30\xb2\x14\x2c\xc2\x62\xf6\xe0\x04\x8f\xef\x6d\xbc\x65\x2f\x21\x47\x9e\xa1\xc4\xb1\xd6\x6d\x28\xf4\xd4\x6e\xf7\x18\x5e\x39\x0c\xbf\xa2\xe0\x23\x80\x58\x2f\x31\x88\xbb\x94\xeb\xbf\x05\xd3\x14\x87\xa0\x9a\xff\x01\xfc\xbb\x4c\xd4\xbf\xd1\xf0\xa8\x33\xb3\x8c\x11\x81\x3c\x84\x36\x0b\xb5\x3c\x7d\x44\x81\x03\x1c\x40\xba\xd8\x71\x3b\xb6\xb8\x35\xcb\x08\x09\x8e\xd1\x5b\xa3\x1e\xe4\xba\x72\x8a\x8c\x8e\x10\xf7\x29\x4e\x1b\x41\x63\xb7\xae\xe5\x72\x77\xbf\xd8\x81\xa6\xf9\xd4\x3e\x02\xc6\x92\x5a\xa3\xa0\x43\xfb\x7f\xb7\x8d"; let e = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x26\x04\x45"; test::( b"\x74\x23\x04\x47\xbc\xd4\x92\xf2\xf8\xa8\xc5\x94\xa0\x43\x79\x27\x16\x90\xbf\x0c\x8a\x13\xdd\xfc\x1b\x7b\x96\x41\x3e\x77\xab\x26\x64\xcb\xa1\xac\xd7\xa3\xc5\x7e\xe5\x27\x6e\x27\x41\x4f\x82\x83\xa6\xf9\x3b\x73\xbd\x39\x2b\xd5\x41\xf0\x7e\xb4\x61\xa0\x80\xbb\x66\x7e\x5f\xf0\x95\xc9\x31\x9f\x57\x5b\x38\x93\x97\x7e\x65\x8c\x6c\x00\x1c\xee\xf8\x8a\x37\xb7\x90\x2d\x4d\xb3\x1c\x3e\x34\xf3\xc1\x64\xc4\x7b\xbe\xef\xde\x3b\x94\x6b\xad\x41\x6a\x75\x2c\x2c\xaf\xce\xe9\xe4\x01\xae\x08\x88\x4e\x5b\x8a\xa8\x39\xf9\xd0\xb5", n, e, b"\x27\xda\x41\x04\xea\xce\x19\x91\xe0\x8b\xd8\xe7\xcf\xcc\xd9\x7e\xc4\x8b\x89\x6a\x0e\x15\x6c\xe7\xbd\xc2\x3f\xd5\x70\xaa\xa9\xa0\x0e\xd0\x15\x10\x1f\x0c\x62\x61\xc7\x37\x1c\xec\xa3\x27\xa7\x3c\x3c\xec\xfc\xf6\xb2\xd9\xed\x92\x0c\x96\x98\x04\x6e\x25\xc8\x9a\xdb\x23\x60\x88\x7d\x99\x98\x3b\xf6\x32\xf9\xe6\xeb\x0e\x5d\xf6\x07\x15\x90\x2b\x9a\xea\xa7\x4b\xf5\x02\x7a\xa2\x46\x51\x08\x91\xc7\x4a\xe3\x66\xa1\x6f\x39\x7e\x2c\x8c\xcd\xc8\xbd\x56\xaa\x10\xe0\xd0\x15\x85\xe6\x9f\x8c\x48\x56\xe7\x6b\x53\xac\xfd\x3d\x78\x2b\x81\x71\x52\x90\x08\xfa\x5e\xff\x03\x0f\x46\x95\x67\x04\xa3\xf5\xd9\x16\x73\x48\xf3\x70\x21\xfc\x27\x7c\x6c\x0a\x8f\x93\xb8\xa2\x3c\xfb\xf9\x18\x99\x0f\x98\x2a\x56\xd0\xed\x2a\xa0\x81\x61\x56\x07\x55\xad\xc0\xce\x2c\x3e\x2a\xb2\x92\x9f\x79\xbf\xc0\xb2\x4f\xf3\xe0\xff\x35\x2e\x64\x45\xd8\xa6\x17\xf1\x78\x5d\x66\xc3\x22\x95\xbb\x36\x5d\x61\xcf\xb1\x07\xe9\x99\x3b\xbd\x93\x42\x1f\x2d\x34\x4a\x86\xe4\x12\x78\x27\xfa\x0d\x0b\x25\x35\xf9\xb1\xd5\x47\xde\x12\xba\x28\x68\xac\xde\xcf\x2c\xb5\xf9\x2a\x6a\x15\x9a", ); test::( b"\x9a\xf2\xc5\xa9\x19\xe5\xda\xdc\x66\x87\x99\xf3\x65\xfc\x23\xda\x62\x31\x43\x7e\xa5\x1c\xa5\x31\x46\x45\x42\x50\x43\x85\x1f\x23\xd0\x0d\x37\x04\xee\xab\xb5\xc4\x3f\x49\x67\x4a\x19\xb7\x70\x7d\xd9\xaa\x3d\x65\x7a\x04\xba\x8c\x66\x55\xc5\xab\x8b\xa2\xe3\x82\xb2\x66\x31\x08\x0c\xd7\x9e\xc4\x0e\x6a\x58\x7b\x7f\x99\x84\x0b\xd0\xe4\x32\x97\xab\x16\x90\xe4\xce\xc9\x5d\x03\x1a\x2c\xa1\x31\xe7\x04\x9c\xfb\x9b\xf1\xfc\xa6\x7b\xf3\x53\xcd\xc1\x2c\xc7\x4c\xee\xe8\x0c\x5d\x61\xda\x8f\x01\x29\xa8\xf4\xa2\x18\xab\xc3\xf6", n, e, b"\xc5\xdf\xbe\xfd\x35\xce\xc8\x46\xe2\xc7\xb2\x43\x4d\xc9\xc4\x6a\x5a\x9b\x1b\x6c\xe6\x5b\x2b\x18\x66\x5a\xed\xb1\x40\x4d\xe1\xf4\x66\xe0\x24\xf8\x49\xee\xc3\x08\xc2\xd2\xf2\xf0\x19\x3d\xf1\x89\x8a\x58\x1c\x9e\xa3\x25\x81\x18\x55\x53\xb1\x71\xb6\x50\x70\x82\x61\x7c\x5c\x01\x8a\xfe\x0c\x3a\xf6\x4d\x2e\xc5\xa5\x63\x79\x5a\xa5\x85\xe7\x77\x53\xcd\x18\x83\x6f\x6f\x0c\x29\x53\x5f\x62\x00\xca\x89\x99\x28\xfe\x78\xe9\x49\xb0\xa2\x16\xec\x47\xa6\xad\xf2\x22\x3e\x17\x23\x6c\xfc\x16\x7c\xf0\x0e\xd6\x13\x6f\x03\xcf\x6f\xfd\x4f\x3f\x77\x87\xae\xb0\x05\x84\x09\x78\xd8\xd6\xba\x59\x3d\x4f\x4c\xfe\x69\x20\xbe\x10\x2b\x98\x47\xd1\x01\x40\xdf\xf8\x6b\x0d\xb1\x4f\xfc\xcc\x9a\x96\xe6\x73\xc6\x72\xc1\x12\x8a\xe4\x54\x89\xd2\xcb\xfe\x6e\x19\x5c\xa5\x20\x6e\xda\x51\x9c\xad\x3d\x6e\x0a\xbf\x46\x53\xe3\x6b\x5a\x26\x4e\x87\x49\x4a\x4d\x63\xee\x91\xff\x7c\x35\xa6\xab\x12\xad\xfa\x3b\xb5\x37\xf6\x19\x8b\x06\xf5\xde\x07\x17\x07\x6b\x0e\xc8\x3a\xe0\xda\x9e\xa4\x19\xcc\x0c\x96\x66\x9d\x1d\x7c\x9e\x52\x92\x71\x42\x84\x01\xe0\x9e\x04\x88\x8a", ); test::( b"\x59\xb5\xb8\x5b\x9d\xc2\x46\xd3\x0a\x3f\xc8\xa2\xde\x3c\x9d\xfa\x97\x16\x43\xb0\xc1\xf7\xc9\xe4\x0c\x9c\x87\xe4\xa1\x5b\x0c\x4e\xb6\x64\x58\x75\x60\x47\x4c\x06\xa9\xb6\x5e\xec\xe3\x8c\x91\x70\x3c\x0f\xa5\xa5\x92\x72\x8a\x03\x88\x9f\x1b\x52\xd9\x33\x09\xca\xec\xc9\x15\x78\xa9\x7b\x83\xe3\x8c\xa6\xcb\xf0\xf7\xee\x91\x03\xcd\x82\xd7\x67\x3c\xa1\x72\xf0\xda\x5e\xba\xde\xf4\xa0\x86\x05\x22\x6c\x58\x2b\x1f\x67\xd4\xb2\xd8\x96\x77\x77\xc3\x69\x85\xf9\x72\xf8\x43\xbe\x68\x8c\x67\xf2\x2b\x61\xcd\x52\x9b\xaa\x6b\x48", n, e, b"\x29\xb5\xac\x41\x72\x26\x44\x4b\xc8\x57\x0a\x27\x9e\x0e\x56\x1a\x4c\x39\x70\x7b\xdb\xea\x93\x60\x64\xed\x60\x3b\xa9\x68\x89\xeb\x3d\x78\x6b\x19\x99\xb5\x18\x0c\xd5\xd0\x61\x17\x88\x83\x7a\x9d\xf1\x49\x6b\xac\xea\x31\xcb\xf8\xf2\x4a\x1a\x22\x32\xd4\x15\x89\x13\xc9\x63\xf5\x06\x6a\xad\x4b\x65\xe6\x17\xd0\x90\x33\x59\x69\x6d\x75\x9d\x84\xc1\x39\x2e\x22\xc2\x46\xd5\xf5\xbe\xd4\xb8\x06\xf4\x09\x1d\x5e\x8f\x71\xa5\x13\xf1\x31\x9b\xb4\xe5\x69\x71\xcd\x3e\x16\x8c\x9a\x7e\x27\x89\x83\x22\x93\x99\x1a\x73\xd3\x02\x70\x72\xec\xee\x68\x63\x51\x45\x49\x02\x9f\xb3\x55\x34\x78\xc8\xf4\x10\x3b\xf6\x2d\x7d\xe1\xfb\x53\xfe\x76\xce\x97\x78\xad\xa3\xbb\x9e\xfa\x62\xda\x44\xcd\x00\xd0\x2b\xb0\xeb\x74\x88\xac\x24\xda\x38\x14\xc6\x53\xcb\xa6\x12\x30\x13\x73\x83\x7a\x0c\x3f\x11\x88\x54\x93\xcb\xf3\x02\x4c\x35\x72\xea\xed\x39\x6d\x0e\xbb\x80\x39\xdd\xf8\x43\xc2\x18\xd8\xbc\x77\x83\x54\x90\x46\xc3\x35\x86\xfb\x34\x28\x56\x2c\xb8\x04\x60\x90\x04\x0c\x0e\x4e\xea\x50\xa1\x9a\x42\x8b\xde\x34\x62\x62\x77\xff\x48\xa8\x4f\xaa\x18\x9b\x54\x40", ); test::( b"\x49\xa5\xf3\x93\x0a\xd4\x5a\xca\x5e\x22\xca\xac\x66\x46\xf0\xbe\xde\x12\x28\x83\x8d\x49\xf8\xf2\xe0\xb2\xdd\x27\xd2\x6a\x4b\x59\x0e\x7e\xef\x0c\x58\xb9\x37\x88\x29\xbb\x14\x89\x99\x4b\xff\x38\x82\xef\x3a\x5a\xe3\xb9\x58\xc8\x82\x63\xff\x1f\xd6\x9f\xed\xb8\x23\xa8\x39\xdb\xe7\x1d\xdb\x2f\x75\x0f\x6f\x75\xe0\x59\x36\x76\x1a\x2f\x5e\x3a\x5d\xfa\x83\x7b\xca\x63\x75\x59\x51\xae\x3c\x50\xd0\x4a\x59\x66\x7f\xa6\x4f\xa9\x8b\x46\x62\xd8\x01\x15\x9f\x61\xee\xfd\x1c\x8b\xc5\xb5\x81\xf5\x00\xda\xc7\x3f\x0a\x42\x40\x07", n, e, b"\x60\x4e\xb6\x37\xca\x54\xbe\xa5\xad\x1f\xd3\x16\x59\x11\xf3\xba\xa2\xe0\x6c\x85\x9d\xc7\x39\x45\xa3\x8b\xca\x7f\xf9\xbf\xa9\xed\x39\x43\x53\x48\x62\x3d\x3e\x60\xf1\xce\x48\x74\x43\x84\x0c\x6b\x2c\x00\x0f\x15\x82\xe8\x52\x60\x67\xa5\xe8\x92\x3f\x1a\x1b\xda\xab\xb1\xa4\x0c\x0f\x49\xee\x69\x06\xa4\xc8\xfc\x9b\x8c\xfa\x6d\x07\xc2\xcc\x5b\xdf\x2a\xda\x65\xc5\x3d\x79\x54\x80\x89\xc5\x24\xfa\x36\x43\x19\xa9\x0d\x46\x21\x3f\xeb\xdc\xe6\xdb\x79\x59\x14\xcb\xda\x04\xd7\xbb\xbf\x26\xbb\xb2\x99\xfc\x7d\x14\x49\xdc\xc8\x1d\x13\x9e\x3c\x33\xd4\xc1\xde\x96\x47\x39\x94\x73\x0a\x4b\x63\x96\x33\xd6\x77\xdb\x25\x69\x5f\xfd\x15\x7e\x59\x1b\xdd\xea\xd0\x3d\xd2\xf1\xc1\xb8\xf5\xc8\xa2\x13\xb7\x85\x87\x9b\xf7\xc9\xa9\x92\xbb\x11\xdd\x5e\x91\xdf\x3a\xff\x09\x31\xca\x76\xc4\x06\x23\x0a\x19\xe3\x07\xf3\x34\x19\xc9\xd9\xd3\xf6\xf6\x4b\xf8\x88\x1c\x0d\xdf\x74\xa5\x71\x6c\xbc\x43\x33\x29\x36\x8d\x6e\x55\xf1\xf7\x51\xd7\xb9\xf9\xb0\xa2\x6e\xb5\x81\x17\x72\xf5\xf6\x98\x53\x0e\xfc\x1e\xac\xee\xe6\xe1\xdc\x68\x39\xb2\x13\x3c\x2f\xcc\xfa\x8c", ); test::( b"\x9b\xfc\x4d\xac\x8c\x22\x32\x38\x72\x16\xa5\x32\xce\x62\xd9\x8c\x1a\xaf\xa3\x5c\x65\xdc\x38\x8e\x3d\x4d\x37\xd6\xd1\x86\xea\xe9\x57\xf8\xc9\xed\xac\x1a\x3f\x2e\x3a\xbc\xb1\x12\x1f\x99\xbd\x4f\x8c\x2b\xbf\x5b\x6a\xc3\x9a\x25\x44\xd8\xb5\x02\x61\x9f\x43\xea\x30\xdd\xc8\xe4\xea\xfa\xd8\xbf\x72\x56\x22\x03\x80\xe0\xae\x27\xfe\xe4\x63\x04\xb2\x24\xcc\x8a\x1e\x2b\x1c\xb2\xa4\xde\x6f\xb3\xee\x54\x52\x79\x8d\xe7\x86\x53\xe0\x8b\x01\xec\x38\x5f\x36\x7c\x39\x82\x96\x3f\x84\x28\x57\x27\x93\xed\x74\xce\xe3\x69\xf5\xae", n, e, b"\x44\x4f\x7e\xfb\xfe\xf5\x86\xfa\xd4\x31\xe1\x7f\xea\x1a\x2d\x59\xf1\x9b\x3d\x61\x9b\xb6\xfa\x36\x64\x30\x18\x33\xa4\xdb\x12\x43\x45\x9e\x31\xaa\x6a\x70\x3b\x22\x57\x2f\x09\x12\x75\x4e\x56\xf7\x23\x1a\x55\xac\x7a\xbc\xa5\x14\xc7\x9d\x9f\xb3\x56\x42\x14\xb4\xaf\x83\x5d\x7d\x1e\xaf\x2b\x58\xce\xb6\xa3\x44\xf1\xc3\x68\x90\xf5\xe8\x3b\x50\x18\x8c\x01\x47\xd6\xd1\x15\x6d\xa2\x89\xcc\xf4\xbd\xb0\xb9\xa6\x6f\x1e\x4a\x1f\x26\x43\x59\x1d\x5f\xfb\x53\x70\x2c\xf7\x0d\xdf\x35\x15\x92\x57\x54\x88\xf1\x92\x90\x10\xac\xa3\x77\x14\xb2\x34\xee\xb5\xb9\x52\xb9\x32\x3a\xe2\x65\x33\xe9\xec\xd5\x16\xdf\x26\x39\x2d\x12\x54\x22\x8b\xd9\xca\x21\xa3\x69\xbb\x6a\xb0\xa3\x3d\x5e\xb4\x4c\xee\x92\xb0\xea\x74\x71\xff\xe5\xfa\x43\xc2\x1d\xe2\xa8\x97\x5d\x4c\x5c\x8e\x18\x5f\xcb\x7a\xab\x33\xd8\x8a\x83\x65\xdd\xf0\x11\x9c\x10\x88\x03\xc5\x62\x88\x64\x3a\x05\x6e\x78\x1a\xbd\x4a\x02\x42\xa9\x2e\x25\x29\xd4\x05\xef\xcf\xd4\x24\x86\x62\xcf\xbb\x33\x2d\x6e\x6f\xad\x6a\xce\xb9\x0b\x5b\x58\xa5\x54\x1a\xbe\x07\xbe\xf2\x5d\x9d\x89\x21\x5e\x39\x84\x26", ); test::( b"\xbf\x5f\xf1\x96\x8a\x39\xf8\x09\xde\x73\xe6\xa8\x01\x4f\xc6\xe8\xdf\x15\x93\x67\xf4\x63\x40\xda\x6c\xc5\xfb\x46\x89\x85\xb3\x74\x46\xc5\xd8\x9f\x3a\xca\x62\x6f\xbe\x9b\x14\x2b\x52\xcb\x02\x2a\x3d\x93\x51\x8a\x74\x24\x3e\x25\xbd\x3a\x61\xc1\x14\xf5\x33\x87\x4e\xe5\xcf\xb7\xfc\x63\xf5\x99\x92\x28\x54\xb7\xc9\x18\x09\x49\x41\x5f\x63\xf1\x6b\xbf\xe9\xa8\xa6\x28\x9e\xf8\xa8\x8a\x83\x6d\x20\xe7\x5e\x46\x99\xac\xba\x6f\xa2\x41\x2f\xb4\x2c\xdf\xe3\x2f\x33\xa2\x51\x02\xa1\xdf\x49\x4c\x6f\xb7\x38\x55\x0d\xec\xaa\x0c", n, e, b"\x01\x7e\x05\x3d\x1e\xf8\x5c\x43\x19\x3a\x00\x09\xa9\x03\x95\x2a\xaf\x40\x0f\xbc\xfe\xe9\xc0\x28\x97\x57\x77\xab\x54\x0d\x2d\x22\xab\x5c\x25\xf4\xcf\x1d\x37\x94\xaf\xac\x66\x97\xe1\xf2\x43\x82\x90\x52\xa8\x4e\x28\x43\xcc\x0e\x25\x4d\xba\xc1\x02\x15\x72\x99\x9f\x2d\xca\xfa\xb5\x8b\x9d\xfe\xf2\xfc\xaf\x70\x1e\x43\x1b\xdc\xd1\x6d\xbe\xf1\x10\x09\x5b\xcf\xba\x50\x10\x59\xd7\x99\x4d\xad\x5b\x0b\x54\xd0\x81\x2a\x43\x80\xa1\xf0\xba\x8e\xc2\xbc\xba\x76\x8b\xf5\xb5\x44\x69\x56\x26\xa5\xf3\x95\xe7\x84\xd4\xb2\x96\x2f\xb7\x53\x38\x18\xde\x1d\x6e\xc6\x86\xed\xc9\xf6\x68\x68\xad\x03\xee\x64\x36\x1a\x6c\xb9\x1f\xd8\xef\x53\x6c\xa6\x45\x4d\x16\xc5\x37\xc0\x7a\xa4\x29\x23\xe6\x20\x57\xdf\x9d\xd9\xe7\xfa\x4a\xd0\x38\x4f\x35\x72\x1f\x6e\xb3\xb8\x16\xd3\x52\xa0\x95\xc6\x05\xd5\xc1\x0e\x0a\x7a\x2e\x86\x40\xe2\x73\x07\xcd\x44\xb9\xd7\x1a\xc5\x0c\x00\x43\xca\xca\x28\xae\x8d\x6f\x8f\xa5\xbb\x48\x31\x58\xa4\xe4\x15\xef\x6c\xfa\xd4\x7f\x34\xc0\x04\x2a\x2d\x58\x8a\xce\x0f\x13\x71\xd9\x38\x65\x39\x7b\xd2\x15\x16\xda\x2c\xc1\x5e\x90\x9c", ); test::( b"\x2f\xf4\xfc\xd0\xbe\x26\x0b\xf4\xa0\xd7\x31\x12\xd0\xe5\x64\x9c\x0b\xef\x5b\xbc\xdf\x15\x42\x3a\x05\xff\xb2\xa1\xf0\x21\xe0\x9d\xa6\x3d\x15\xa8\xcf\x29\x5e\xe5\x0b\xd2\x84\x4c\x89\x81\x3e\x08\xd6\x5d\xa6\x1d\xf2\x32\xea\x4e\xa9\x70\x44\x3e\x20\x77\x2c\xd5\xaf\x11\xcc\xe5\xee\x40\xb4\x0e\x13\x3b\xcf\xdf\x7b\xb3\x95\x3d\x86\x5a\x83\x09\xa8\xa6\xc8\xfd\xbd\xd2\x42\xd7\x9d\x27\xa8\xba\xf1\x79\x09\xd1\x45\xf4\x75\x35\x5e\x19\xfa\x11\xcd\x03\xd2\x04\xc4\xef\xda\xc6\x29\xfb\x46\x0f\xe9\x2e\x93\xb4\x8f\xb9\xbe\x13", n, e, b"\xab\xee\x5c\x86\x8f\x85\x0c\x17\x79\x4f\x02\x1e\xe9\x70\x9c\xc2\x30\x13\x20\xdd\x24\x6f\xb3\xea\xdb\x78\x02\xa3\x00\xa9\x8a\x67\x08\x3a\x2e\x4e\x25\x0d\xf1\x33\x14\xc2\x54\x53\xb8\x98\x11\x08\x01\xf7\xe7\xac\xb9\xb6\x94\x64\x4e\x5c\x4a\x26\x23\xdf\xf1\x88\x49\x13\xc0\x5e\x63\x6f\xe7\x7e\xd5\x15\x5d\x95\x4e\xe3\x8f\x12\x62\xc6\xc2\xe3\x8d\x11\x14\xcf\x6c\xc5\x14\x3c\x72\x77\xc8\x64\x9f\x5a\x42\x3f\x83\xdf\xd5\xf8\x29\xd9\xdc\x74\xaa\x4b\x2f\xcd\xc8\x96\x0c\xde\x5c\xe1\x46\xb2\x89\x13\x60\x64\xb1\x3b\xd0\xd3\x6a\x1e\x64\xa2\x61\xd6\x80\xfb\x7e\x23\xd2\xae\x92\xef\xb7\x43\xc3\xdb\x54\x60\x9e\xca\x7a\x1b\xe0\xe4\x7e\x6f\x72\x4d\xc5\xcf\x61\xcb\x2a\x36\x9c\x2b\xb1\x73\xf2\xc6\xcf\xec\xb9\xa8\x87\xd5\x83\xd2\x77\xb8\xe3\x0b\x24\xec\x85\x49\xc4\xd5\x3b\xa3\x98\x86\x42\xa6\x1f\x1f\x93\x9f\x0f\x38\x98\x00\x5c\x5d\x13\xaa\xaa\x54\xbc\xb8\xae\x83\xb7\x2b\x3c\xb6\x44\xb9\x43\x9d\x1d\x2a\xcc\xc8\x00\x27\x1d\x23\xe5\x2f\x98\x48\x0d\x27\x0f\xad\x6a\xce\xd5\x12\x25\x2e\xe9\x83\x32\xaf\x90\x35\x63\xd9\x82\xd8\xcb\xde\xfb\x7d", ); test::( b"\xb5\xdc\xa1\x53\x2d\xff\xda\x08\x31\xcb\x2d\x21\xeb\xd1\xbd\xca\x23\xc9\x31\x9c\x64\x27\xfd\xcc\x5a\xef\xe3\xa2\x7f\xc9\xb9\x2d\xf7\x58\x6c\x36\xb7\xc8\x45\x72\xed\xa6\x6b\xfb\x9c\xf5\xaa\x01\x87\x7e\x72\xbd\x51\x67\x23\xa7\xe2\x07\x87\xe9\x0d\xf9\xa0\x13\x6f\x6f\xa5\x10\x9a\xc9\x47\x59\x73\x67\x38\x68\xd8\xbb\xee\x70\x86\xa2\xa5\x4b\x3a\xf4\xa3\xb4\x17\x59\xbf\xb6\x48\x5f\x24\x64\xe6\xca\x53\xcb\x1c\x2c\x67\x25\x89\xb5\x9d\x50\xe5\x4b\x13\x7e\xe8\xdd\xd0\x2d\x67\xf5\x05\x5a\xc1\x8d\x92\xf1\x79\x24\xcc\x89", n, e, b"\x9a\xe5\xb9\x63\x3f\x9a\xdc\x7f\xf9\x23\xd8\x87\x57\x48\xbc\x62\x20\xdd\x8f\x67\x81\xb3\xd4\x6d\x60\x08\xae\x69\xfd\xa0\x72\xd2\x05\xf8\x7a\x12\xd5\x4c\x3c\x7e\xcc\x85\xb8\x8b\x6e\xf4\x77\x0e\xeb\x4b\x71\xde\xbe\xff\x84\x01\xe3\x29\xf6\xb3\xe8\xdc\x8a\x9a\xf1\x3a\x53\x3b\x60\xb9\x62\x93\x0b\xc0\xce\x3d\x65\xd0\xb5\xa2\x76\xe8\x5a\x0c\x74\xf4\x59\xfb\x07\x29\x92\x99\x1b\xa9\x68\x49\x02\x34\x78\xab\x28\xd3\x81\xaa\x67\xd2\x2c\x9c\x3b\x09\x2a\x02\x3f\x06\xc9\x6e\x11\xfd\x2f\x1b\x4d\x9d\xaf\x0f\x34\x49\xde\x17\x97\x61\x2a\x81\x13\xd6\xe6\x26\xcc\x3f\x99\x5e\x1c\x11\x0e\x65\xd1\x7c\x63\x6c\x92\x92\x9f\x91\x36\x39\xa9\x7c\xd0\x49\x15\x58\x30\xdc\x0f\x76\x04\x91\x23\xbe\x3d\x3d\x79\x15\x9f\xc2\xb4\x25\x8e\x94\xb8\xbf\x80\x8d\x7c\x46\xbe\xef\xe6\xdf\x0a\x83\x03\x7d\x15\xa7\x2a\x58\x1d\x8a\xde\xdd\x8f\x01\x3b\x38\xf5\x50\x2d\x73\x6d\x1d\x2f\x04\xb0\xe5\xdc\x22\xeb\x1a\x41\x4e\x52\xb1\xa9\xe8\x73\x5e\x05\x92\x28\x8c\x9e\x5a\x0a\x78\x53\x1e\x95\x97\x4a\x5d\x48\x86\x0f\x8e\x5b\x04\xeb\xd3\xeb\x56\xad\x12\xad\xc4\x6e\xc7", ); test::( b"\x1e\x56\x3f\xc3\xad\x02\x7a\x9c\xc6\x06\xbe\x19\xb2\x58\xbf\x70\xdd\x8b\x52\x73\xe2\x96\x23\x6e\xe8\xd7\xa6\x53\x31\x58\x50\x14\xf0\x50\x06\x51\x5b\xed\xd6\x33\x02\x50\xe5\x98\x5f\xda\xa8\x70\xae\xa6\x57\x66\xff\x56\x9f\xc4\x89\x13\x98\x90\x41\xcf\xf6\xfb\xab\xcd\x83\xfd\xf0\x64\xcd\x39\x32\x00\x1b\x26\x1c\x69\xa6\x70\xbd\x48\x06\x9c\x96\xe7\xeb\xec\xf1\x38\x0d\x82\x75\x19\x66\xc7\xf8\xd6\x9e\x0e\x94\xef\xc7\x75\xfd\x1c\x4a\x0c\x11\x8f\x21\x3a\xb1\x79\x47\x5c\xd0\xcf\x6d\xae\xc9\x4e\xef\x6f\xf6\xbd\x06\x40", n, e, b"\x80\xd3\xff\x1f\x74\xa8\x10\x95\xd0\xba\xa2\xe9\xde\x24\x8c\x03\x12\xca\x5a\x81\x7b\xc9\xf5\x15\x6a\x29\x3d\x80\x89\x6a\xde\xc5\x50\x7e\xe8\xf2\xdf\x41\x7a\xfe\x87\x79\x66\x8e\x25\xb4\x6f\x49\xe4\x35\x7a\x71\x70\x53\x1e\xd3\x07\x61\x10\x3d\xbb\x99\x41\x35\xb5\x10\xd9\x1d\xb9\xfe\x1f\x12\x68\xf4\x37\xe0\xf3\xa7\xa4\xba\x6a\x4d\x0b\x9e\xb7\x0d\xfc\x09\xfe\xd4\xb4\x4b\x35\x60\x85\x01\xc2\xdf\xd7\xa2\x30\xa2\x8d\xad\x14\x92\x6d\xa4\x60\x0b\xa7\x85\xe4\x96\x21\x2e\x57\x73\x8d\xd5\x75\xb4\x0c\x23\x34\x7b\x16\x35\xec\xdf\x2b\x91\x94\xd9\x6b\x14\x50\xa6\x87\x6a\xa7\x6d\x04\xaa\x59\x47\xcc\xe7\x1d\x85\x12\x1e\x0b\xf5\x78\xe8\x1c\xf7\x8c\x6a\x04\x7e\x30\xfc\x1d\x87\xcf\xd3\x01\x9d\xe4\xbb\x48\x29\x4c\x25\x86\x0b\x45\x03\x55\xbc\x26\x62\xaa\x36\xd6\xe3\x3f\x00\xad\x79\x25\x7d\x2d\x8b\x91\xf7\x3f\x27\xc3\x2a\x9a\xfc\xb1\xe1\xf0\x15\xf7\x7c\xb6\xb0\xdf\x51\xfb\x39\xee\x1b\xd7\x6a\xc4\x2c\x20\x79\x1d\x79\xcf\x3f\x36\x3f\xb3\x24\xdb\x30\xee\x82\xbc\xc1\xdf\x1a\x95\x64\x33\x0c\x12\xa5\x49\x65\x9b\xd3\x01\x00\x01\x57\x31\x33", ); test::( b"\x90\x0a\xe7\xe2\xe7\xe5\xf6\x15\x75\x0c\x4e\xe4\xc1\x3c\xca\x8f\x9f\x45\x07\x14\xa6\xb2\x73\xf2\xe4\xac\xa6\x32\xd1\x1c\xf6\xa8\x82\x10\x45\x77\x1f\x60\x1e\xd3\x97\x91\x01\x0b\x92\xf9\xfa\xc6\xa8\x24\x78\x8c\xd0\x77\x5d\x89\x1b\x13\x52\x8e\xa2\xfd\x5d\x59\xbc\x7b\xb5\x16\x75\xc1\xd5\x26\x3c\xcc\xcf\x1e\xdc\x8f\xe3\x13\xae\x4d\x50\x15\x0c\x46\x6a\xf9\x08\x95\xed\x5c\x5e\x59\x91\xe4\xa8\x13\xde\xc9\xd1\x4f\x42\x94\xcc\x87\x61\x27\x86\x44\xac\xfe\x19\x86\x35\xb4\x42\x66\xc1\xc9\x15\xfa\x1f\xa2\xef\x79\xb9\xd1", n, e, b"\x39\xc6\x48\x91\xd9\xac\x47\x41\xa5\x7d\xd8\xae\xc7\xf7\x24\x36\x13\xd1\x55\xdf\x44\x92\x81\x4b\x40\xce\xab\xee\x79\xea\xdb\x8d\x8b\xc5\xfa\x61\x1b\xde\xbe\x0e\x0d\x97\x14\xc4\x3d\x6d\x29\xef\x30\x9f\x78\x2b\xc8\xe6\x8a\x4d\x31\x7c\xe1\xec\xe4\x68\x55\x23\x05\xa7\x3d\xb9\xd0\xd2\x89\x1e\x28\x04\xf4\x20\x1b\x1b\xf8\xa3\x24\x6f\xa0\x82\xad\xde\x1f\xc9\xb3\xd2\x99\xf8\x8c\xb9\x3b\x7b\x47\xfe\x9f\x73\x13\x70\x96\xc2\xb8\xc5\x9e\xc0\x61\x2a\x08\x53\x63\xc0\x4c\xc3\x74\x76\x9a\x96\x4f\xea\xf1\xf8\xe4\x91\x38\x1e\x16\xd7\xae\x2a\x0c\x67\x2e\x69\xa3\x66\x73\x10\xfe\xed\x01\x21\x56\xdc\xa6\x30\xa6\x8d\x33\x9e\xc8\x04\x96\xc6\xb5\x94\xfe\xd1\x70\x91\xd3\xa1\xc6\xac\x3e\x4d\xa1\x41\x9b\x05\xd5\x89\xcb\x32\x46\x82\x88\xf7\xdf\x4d\xaa\xce\xff\x5a\x39\xbc\xf2\x97\xdc\x50\x8c\xe9\x54\x9f\x60\x2e\x97\x3e\xdb\xc2\xaa\x44\x33\x2e\xc3\x66\x1b\x19\xc8\xc5\x8c\x56\x16\x92\x4b\xeb\x89\x2f\x77\xb5\xe2\x00\xd6\xfb\x3f\xc7\x59\x26\x3a\x74\x9d\x15\x7e\xff\x9f\x73\x67\x98\xd2\x81\xb2\x5b\x71\xfb\x47\x0b\xdb\x70\x0f\x21\x1f\x84\x1d\xb7", ); test::( b"\x5a\xf2\x83\xb1\xb7\x6a\xb2\xa6\x95\xd7\x94\xc2\x3b\x35\xca\x73\x71\xfc\x77\x9e\x92\xeb\xf5\x89\xe3\x04\xc7\xf9\x23\xd8\xcf\x97\x63\x04\xc1\x98\x18\xfc\xd8\x9d\x6f\x07\xc8\xd8\xe0\x8b\xf3\x71\x06\x8b\xdf\x28\xae\x6e\xe8\x3b\x2e\x02\x32\x8a\xf8\xc0\xe2\xf9\x6e\x52\x8e\x16\xf8\x52\xf1\xfc\x54\x55\xe4\x77\x2e\x28\x8a\x68\xf1\x59\xca\x6b\xdc\xf9\x02\xb8\x58\xa1\xf9\x47\x89\xb3\x16\x38\x23\xe2\xd0\x71\x7f\xf5\x66\x89\xee\xc7\xd0\xe5\x4d\x93\xf5\x20\xd9\x6e\x1e\xb0\x45\x15\xab\xc7\x0a\xe9\x05\x78\xff\x38\xd3\x1b", n, e, b"\x6b\x8b\xe9\x7d\x9e\x51\x8a\x2e\xde\x74\x6f\xf4\xa7\xd9\x1a\x84\xa1\xfc\x66\x5b\x52\xf1\x54\xa9\x27\x65\x0d\xb6\xe7\x34\x8c\x69\xf8\xc8\x88\x1f\x7b\xcf\x9b\x1a\x6d\x33\x66\xee\xd3\x0c\x3a\xed\x4e\x93\xc2\x03\xc4\x3f\x55\x28\xa4\x5d\xe7\x91\x89\x57\x47\xad\xe9\xc5\xfa\x5e\xee\x81\x42\x7e\xde\xe0\x20\x82\x14\x7a\xa3\x11\x71\x2a\x6a\xd5\xfb\x17\x32\xe9\x3b\x3d\x6c\xd2\x3f\xfd\x46\xa0\xb3\xca\xf6\x2a\x8b\x69\x95\x7c\xc6\x8a\xe3\x9f\x99\x93\xc1\xa7\x79\x59\x9c\xdd\xa9\x49\xbd\xaa\xba\xbb\x77\xf2\x48\xfc\xfe\xaa\x44\x05\x9b\xe5\x45\x9f\xb9\xb8\x99\x27\x8e\x92\x95\x28\xee\x13\x0f\xac\xd5\x33\x72\xec\xbc\x42\xf3\xe8\xde\x29\x98\x42\x58\x60\x40\x64\x40\xf2\x48\xd8\x17\x43\x2d\xe6\x87\x11\x2e\x50\x4d\x73\x40\x28\xe6\xc5\x62\x0f\xa2\x82\xca\x07\x64\x70\x06\xcf\x0a\x2f\xf8\x3e\x19\xa9\x16\x55\x4c\xc6\x18\x10\xc2\xe8\x55\x30\x5d\xb4\xe5\xcf\x89\x3a\x6a\x96\x76\x73\x65\x79\x45\x56\xff\x03\x33\x59\x08\x4d\x7e\x38\xa8\x45\x6e\x68\xe2\x11\x55\xb7\x61\x51\x31\x4a\x29\x87\x5f\xee\xe0\x95\x57\x16\x1c\xbc\x65\x45\x41\xe8\x9e\x42", ); test::( b"\xc4\x30\x11\xf3\xee\x88\xc9\xc9\xad\xca\xc8\xbf\x37\x22\x1a\xfa\x31\x76\x9d\x34\x7d\xec\x70\x5e\x53\xac\xa9\x89\x93\xe7\x46\x06\x59\x18\x67\xcc\xd2\x89\xba\x1b\x4f\x19\x36\x5f\x98\x3e\x0c\x57\x83\x46\xda\x76\xc5\xe2\x22\x8a\x07\xe4\xfc\x9b\x3d\x48\x07\x16\x33\x71\xa5\x2b\x68\xb6\x68\x73\x20\x1d\xc7\xd6\xb5\x66\x16\xac\x2e\x4c\xb5\x22\x12\x07\x87\xdf\x7f\x15\xa5\xe8\x76\x3a\x54\xc1\x79\xc6\x35\xd6\x58\x16\xbc\x19\x48\x5d\xe3\xeb\x35\xa5\x20\x40\x59\x10\x94\xfe\x0e\x64\x85\xa7\xe0\xc6\x0e\x38\xe7\xc6\x15\x51", n, e, b"\xaa\x3a\x4e\x12\xeb\x87\x59\x6c\x71\x1c\x9a\x22\xbc\xab\xcb\x9d\xad\xff\xca\xbc\xec\xbd\x16\x22\x88\x89\xe9\xbb\x45\x7d\x5d\x22\x57\x1a\x72\xf0\x34\xbe\x47\x83\x38\x4f\x43\xce\x6f\xff\xc6\x05\x34\xb8\x33\x1c\xdd\x5d\x7c\x77\xf4\x91\x80\xbf\xd1\x94\xb5\xfd\x43\xa5\x08\xc6\x6d\x78\x6c\x55\x88\x76\x73\x58\x94\xe6\xa9\x30\x09\x52\xde\x79\x2f\x74\x70\x45\xe7\x4d\x87\xfd\x50\x98\x02\x30\x70\x7a\x34\xa4\xdf\x01\x3c\xe0\x50\xbb\xff\x0d\x6f\x57\x08\x85\xc9\xc7\xbf\x8d\xc4\x99\x13\x2c\xae\xe0\x71\xb4\x1d\x81\xff\x91\xb8\xce\x21\xaa\x2f\x28\x2c\xbf\x52\x38\x9f\x23\x9a\xfe\x14\x90\x89\x0b\xe2\x1f\x9d\x80\x8b\x3d\x70\xb9\x7e\xfd\x59\xc0\xb6\x0e\x46\x60\x88\xbb\x42\x71\x4f\x21\x2b\xc9\x0d\xb7\xe9\x42\xeb\xce\xe6\x0e\x7b\x10\x7f\xff\x44\xfb\x35\x64\xff\x07\xd6\xd0\x28\x50\x21\x5f\xd3\x57\xd8\x97\xc4\xd3\x2b\xef\x86\x61\x68\x9f\x2d\x84\xff\x89\x76\x37\xfb\x6d\x55\x68\xa7\x27\x0e\x78\x34\x26\xb7\x4b\x70\x37\x49\x3e\x51\x55\xfd\x7c\xb3\xdd\xdd\xfd\x36\xbd\x8a\x9c\x87\x7d\x71\xd2\xa9\x66\x05\x7c\x08\x26\x3d\x29\x39\xc8\x49\x87", ); test::( b"\x61\xd7\xb3\x15\x01\x31\x35\x1e\x7b\x4c\x8e\x56\x45\xd3\x8b\xe9\x33\x5b\x40\x28\x9a\xf3\x4c\xc6\xb6\xfc\x5e\x48\x49\x3b\xf8\xb7\x85\x2c\x73\x98\x2c\x99\x44\x1e\xf6\x6c\x7d\x9d\x33\xc2\x97\x42\xb1\x40\x6e\x02\xe0\xaa\x8d\xd0\x34\xb1\xac\x13\xcb\x0d\x77\x57\x50\xcc\x91\x42\x1f\xea\xd9\xca\xa9\x21\xec\xa6\x1a\x02\xeb\x02\x3a\x45\x7e\x77\x91\x5e\x18\x3a\xcf\x51\x7d\x94\x6b\xc6\x82\x92\x89\x60\x14\xfd\x21\x4b\x7c\x8c\x5e\x14\xe1\x59\x44\xbe\x0f\x92\x96\x12\x77\x71\xf7\x36\x76\x6e\x4f\x81\xda\xb3\x70\x8e\xa2\xd0", n, e, b"\x84\xe9\x2a\x14\x5a\xe6\xbe\x1f\xf9\x24\x2d\x9e\xd2\xd6\x8d\xe6\x68\xe8\x02\x52\x4e\x8a\xc0\xa7\x9d\xe6\x2f\xe7\x40\x48\xc3\x54\x91\xfd\x2f\xfd\xb1\x85\x05\x7e\x66\x6d\xbf\xaa\xc8\x4c\x34\xfd\xe7\x89\x12\x63\xf8\xb2\xbc\x74\x74\x62\x30\x32\x0f\x67\xa7\xbd\x73\x19\xc9\xb9\xde\x41\x90\x54\x70\x14\xe2\xd7\xa2\xa5\x06\x0d\x62\x00\xaa\xdc\x3a\x44\xba\xc0\x29\xff\x39\x92\xed\xd3\x0e\xc5\x3a\xb0\xd9\x12\x3e\xaa\x6b\x14\x73\x52\xa0\x73\xa9\x81\x61\xe6\x4f\x39\x4b\xb9\x94\x92\xc6\x97\x7e\x24\xf4\x45\xc7\x12\x5b\xfb\x90\xf8\x7f\xaf\x26\x22\x72\x13\x4a\xcb\x18\x82\x3a\x99\xa5\x22\x8d\x14\x95\x46\x32\x97\xfd\x77\x48\x77\xfb\x63\xd4\x91\x81\x06\x34\x7e\x6f\x29\x31\x5e\x48\x36\x3f\x39\xb3\x32\x99\xea\xa3\x2d\x8d\xa7\x1b\x22\x9d\x8f\xfe\xe5\xf6\x6f\x72\x2a\xd3\xaa\x41\x75\xd3\xf8\x4e\xce\x9c\xc8\xec\xa8\xd6\xf2\xf3\x56\xa8\x5c\x15\x24\x89\x6c\x18\xf7\xb5\xc8\xf9\xbc\xde\xf4\x5c\x49\x6d\x53\x91\x79\x89\x1d\xdc\x76\xe5\x20\x8a\xd8\x35\x3d\x48\xc6\x24\x05\x4f\x34\x40\xee\xba\x44\x32\xa1\x06\x54\xa1\x1e\xf5\x37\x83\xbd\x11\x6f", ); test::( b"\xb6\x77\x1a\xb0\xe1\x28\xb4\x1b\x32\xb8\xb0\x5e\x05\xad\xd2\x3c\xe0\xfb\x87\x7b\x40\xbf\xcc\x3b\x99\x2f\x4c\x86\x98\xd1\xc8\x28\xab\xec\xbc\xc1\xc3\x3d\x40\x18\x59\xea\x2c\xb2\xaf\xbc\x7f\xa4\x58\x88\x02\xa5\xfa\xee\x28\x67\x53\x46\x39\x28\x7a\xd8\xaf\x84\x67\x4b\xe1\x8d\xb6\x61\xde\x1d\xa8\xe1\x9c\x6b\x6b\xd4\x52\xdd\x9b\xf3\x22\x1d\x08\x61\xfb\x6f\xba\x96\xbe\x42\x32\x9b\x9f\x04\xf3\x7d\xcf\x3b\x41\xfc\x58\xd2\x29\x83\x48\xb0\xc1\x5d\x11\x90\xb1\x25\x30\x0c\xf2\x7e\x0d\xfa\xd6\x05\x22\xfc\x49\x84\x60\x53", n, e, b"\x62\x76\x92\x55\x68\x62\x6f\x0c\xbe\x6f\x51\x50\xb0\x50\xe1\x70\x25\x82\xf8\xda\xf9\x9a\x6f\x88\x0e\xf7\x5c\xd9\x6c\x2d\x42\x08\xfb\x6e\x91\xb0\x1b\xa6\xab\xa2\xa8\x16\xb2\xd3\xcb\x97\x5d\xf8\x50\xb1\xd2\x68\xc4\x66\x2d\xd1\xea\x3a\x30\x0c\x1d\x71\x71\xc6\x33\xdd\x2e\xfb\xac\x30\x00\xc5\x6a\xb8\x0f\x98\x9d\xbc\x18\x24\x3e\x63\x6b\xa5\xd4\xd2\x6a\x7d\x3f\x19\x65\xad\x3c\xb0\xf1\xa8\x51\x3f\x99\x80\x03\xf7\xb6\x7e\x2a\xc5\xc7\x18\xcb\x68\x8b\x32\x01\xd5\x6e\x68\xf0\xb9\xf8\x62\x57\xb8\x47\x94\xcd\xff\xbc\x1f\xe3\xea\x24\xb7\xbb\x6e\x9e\xf0\x53\x9b\xd4\xfb\xc1\xaf\xb5\x5b\xc1\xdc\xa3\x99\x96\xea\x8a\x63\x76\x9f\x6e\x22\x57\x07\xf6\x90\x47\x55\x5e\x1a\x4e\xf3\xc6\x39\xc5\xf2\xa4\x97\xb8\x89\x42\x4a\x90\x14\x86\x39\xbb\x64\xdf\x0a\x06\xe0\xb7\xf0\xe8\xed\x46\x6a\x97\x7b\xac\xa3\x2f\x48\x23\x37\xb2\xab\xe3\x98\x3e\xae\xc3\xfe\x10\x75\x01\x6e\x58\x67\x52\x17\x60\xfd\x06\x07\xd7\x99\xf1\x76\x6b\x3f\xf6\xe2\xae\x15\x5d\x69\x25\x0f\x8b\xf0\x8c\x8e\xdc\xa0\xb4\xf3\x1d\x0f\x83\x8c\xfd\x29\x8c\xb7\x31\x2d\xf9\x3f\x09\x97", ); test::( b"\x6a\x81\xcb\x6c\x7b\x26\x8f\x4b\x9f\xb9\x17\x2a\xdb\xbb\x36\xa2\x37\xa0\xdc\xf1\xc3\xc8\x3a\x95\xdc\xb0\x27\x1a\xac\x6a\xc3\x30\xf0\x4a\x5a\x00\xfe\xe3\x8b\xc0\x06\x31\xa9\x85\x98\x18\x61\x59\x66\x0d\x9d\x8e\x4c\x14\xa9\x52\x8d\xea\x94\x83\x60\x83\xda\xc4\xab\xb7\x3f\xd0\x0e\x38\xfe\x0e\x23\xc7\x23\x66\x04\xa7\x36\x54\x0e\x52\x19\x3a\xe5\x6c\x33\xfb\xb8\xf5\xcf\xc5\xc7\xc2\xbe\x2e\x22\x2e\x44\x83\xb3\x0d\x32\x5c\x7e\xe1\x4f\x74\x28\x51\xfc\xb8\xb6\xd6\x18\x9e\x98\xb8\x22\xb8\xe6\x39\x9d\x89\xe9\x0f\xb9\x97", n, e, b"\xb6\x79\x91\x05\x0c\x08\x3e\x64\x50\x97\xdb\x03\xff\xf3\x47\x58\x86\x8b\xeb\x19\xe9\xc0\xc4\x84\x75\xf0\xf9\x13\x36\x1e\x71\xd3\xd6\xf2\x7a\x8c\x4f\x0b\x26\x9b\x49\xe8\x53\x40\x39\xe5\x3a\xd3\xba\xb9\xa3\xe6\x2a\xbe\x07\x8e\xe7\x5e\x7f\xb5\x95\x90\x06\xfb\xfb\x01\x4c\xa7\xb8\x1b\x3d\x5a\xfe\x0e\xe5\xf6\xfc\x2d\xfb\xc4\x50\xf2\x83\x95\x43\x00\x2f\x33\xf4\xf3\x54\xf8\x27\x27\x8c\x76\xc0\x41\x68\x6e\xea\x78\x86\xeb\xb2\xa7\xaf\xa5\x99\x5c\x6c\xdd\xb1\xc0\xb5\x80\x66\xdd\xb8\xdc\x54\xa6\x92\x7c\x14\x6c\x3b\x2a\x0f\xa7\xce\xf2\x89\x03\xc6\xc6\x72\xbc\x20\xef\x68\xff\xbf\xab\x24\x7e\xb6\x88\xab\x4b\xde\x71\x06\xd9\xc5\x9d\x21\x53\x09\x6d\xc9\xe5\x20\x72\x67\x03\x8d\x88\xe2\x17\x4e\x76\xad\xc1\x50\x8a\xe2\x4e\xb6\x02\x33\x2e\x53\xc0\xc2\xe3\x31\x54\xa6\x6a\x97\xa0\xf1\x2f\x66\xc6\x12\x58\xc7\xbf\x6b\xbf\x3f\x1d\xcb\xe9\xca\xf2\xfd\x30\xec\x68\xc0\xa9\xd0\x9f\x4f\xd7\x76\x30\x4b\x54\x0e\x62\xfc\x85\x12\xbe\xaa\xbc\x4b\xe2\x10\x7a\x1e\xc1\x8e\x87\xf6\x1f\x9d\xb2\x5e\x87\x1d\xc0\x69\x3c\xef\x17\xc2\xa6\x87\xfc\x85\x4f", ); test::( b"\x05\x6c\x1e\x46\x44\x59\x9e\x31\x83\xdd\x8d\x2f\x64\xe4\xbb\x23\x52\xff\x00\xd0\x12\xab\x76\x3f\x9a\xd6\xe5\x60\x27\x9f\x7f\xf3\x8a\x5e\xce\xa9\xc2\xe4\xea\x87\xd0\x04\xef\x8c\xc7\x52\xae\x93\x23\x2a\xa3\x7b\x5b\xf4\x28\x84\xba\xa7\xe7\xfc\x6a\x8c\x95\x1c\xd2\x45\xde\x2d\x22\x0d\x9b\xee\x2b\x41\x4b\x3a\x75\x20\xc1\xe6\x8b\xcf\x1a\xe9\x9a\x9f\xf2\xbf\x3a\x93\xd8\x0f\x8c\x1d\xfe\x8b\x85\x29\x35\x17\x89\x5c\x19\x2e\x3c\x9e\x89\x82\x95\xd6\x5b\xe3\x34\xf4\x4d\x62\xf5\x35\x3e\xb6\xc5\xa2\x9e\xdf\xb4\xdb\x23\x09", n, e, b"\xae\x05\x20\x4e\x40\x9d\x72\x7e\xb9\xe4\xdc\x24\xbe\x8f\x86\x33\x28\xc2\x81\x3d\xa4\xfc\xef\x28\x86\x6e\x21\xa5\xda\xb2\x1a\x48\x53\x21\xb7\x35\x27\x4a\xf0\x6b\xf1\x7e\x27\x15\x18\xe1\x11\x64\xd7\x22\xab\x07\x35\x48\xf0\x2e\x1b\x44\x19\x23\xdb\x6f\x1c\xee\x65\xa0\x17\xed\xfb\xaf\x33\x61\xc6\x7f\xbc\x2b\x39\xfe\x03\x8c\xb5\xcb\x65\xa6\x40\xf9\x58\x87\x38\x9c\xe8\xa5\xad\x2e\xc6\xe6\x9d\x3d\x60\x35\x05\xb0\x25\xf6\xd6\x33\x0c\x8b\x64\x88\x02\xca\xf7\xe6\xfa\x3f\xe7\xb3\x81\x41\x65\x99\x86\xcb\x89\xe6\x23\x2f\x10\x62\x22\x56\x4d\x5e\x51\x95\xed\xa6\xa2\x5f\x99\x06\x85\x72\xc2\xfa\xfe\x97\xf1\x47\xf7\xf2\xf4\x11\x9f\x21\x38\x5a\xf1\xfc\xed\x97\xf7\x86\x32\xd8\xbf\x4f\xd9\xa9\x05\x4d\x8b\x9a\xa2\xa9\xf4\xde\xd5\x87\x84\x7a\x91\xd4\x2c\x63\x91\x12\x5f\x10\x3a\xe2\x88\x54\x7e\x84\x89\x69\x3a\xe8\x68\x6b\x84\x89\x1b\x77\x2b\x10\xc4\x79\x68\x83\xf6\x6c\xd4\x59\xa8\xc1\xa6\xa4\x18\x7b\xd6\xb3\x87\xd3\x49\xe9\x2d\x7b\x60\x49\x53\x72\x7c\x9e\x9f\xdc\x44\x9e\x73\x45\xe7\xca\x6b\x33\x9e\x26\xb0\x86\xf5\x54\x88\x98\xcb\xe9", ); test::( b"\xce\xc5\xc9\xb6\xf8\x44\x97\xac\x32\x7f\x68\xef\x88\x66\x41\xfe\xc9\x95\x17\x8b\x30\x71\x92\x30\x43\x74\x11\x5e\xfc\xc5\xee\x96\x27\x0c\x03\xdb\x0b\x84\x6d\x67\x4c\x52\x8f\x9d\x10\x15\x5a\x3f\x61\xbe\xcc\xe1\xd3\xa2\xb7\x9d\x66\xcd\xc4\x09\xad\x99\xb7\x66\x30\x80\xf5\x1a\x10\x2f\x43\x61\xe9\xdb\xd0\x3f\xfc\xd8\x76\xb9\x8e\x68\x3d\x44\x8b\xd1\x21\x7e\x6f\xb2\x15\x1c\x66\x96\x47\x23\xb2\xca\xa6\x5c\x4e\x6c\xa2\x01\xd1\xc5\x32\xbd\x94\xd9\x1c\xd4\x17\x3b\x71\x9d\xa1\x26\x56\x39\x27\xca\x0a\x7f\x6f\xe4\x25\x36", n, e, b"\xc4\x8a\x8e\x01\xd4\xbb\xfe\x0f\x2f\x05\x65\x93\x37\xea\x71\xd2\x1f\x38\xd7\xf7\xa1\x0b\x00\xb0\x6e\x1f\x89\x9e\xaf\x40\xa8\xe9\x7e\xad\x64\xbc\xa3\x7f\x13\xa5\x5e\xf1\xcf\x3f\xb5\x2c\xee\x27\x9c\xdc\xb0\x96\x08\x5a\x46\x7a\xfa\x97\xb0\x3d\x78\xd6\x07\x6e\x47\x2b\x12\xd6\xbe\x96\x47\xce\xc3\x2d\x8d\x91\xa2\x62\x47\x69\x37\x71\x68\x74\x60\xba\x52\x69\xde\x18\xe1\xed\xef\x60\x22\x53\x3a\x95\x79\xf9\x1d\x58\x4f\x9e\x0c\xee\x11\x00\xc4\x47\xb7\x75\x76\xb1\xb4\xee\x16\x3e\xd4\x70\x01\x47\xa9\xaa\x61\xbd\xc4\xe2\x31\x6d\x2d\x81\x8c\x10\x28\xed\x1c\x3e\x37\x2c\x9f\x6a\x17\x45\x57\x24\x44\x63\x72\x48\x09\x1b\x83\xf7\xb5\x39\xf9\xbd\x58\xb7\x67\x56\x76\x03\x4c\x20\xe4\xca\x11\x9b\x91\xc4\xca\x5d\xc7\x6a\xcb\xff\x3d\x04\x62\x89\x83\x52\xc5\x91\xc2\xca\x6f\x2d\x8b\x09\xe2\xe6\x33\x8a\x84\x33\x6e\x06\xf0\xcc\x02\x0e\x9e\xb8\xda\x78\x58\x89\xb4\x97\xf3\xb9\x8e\x82\x7e\xe7\xa7\xd3\xf1\xb0\xb7\x3c\x19\x58\xe1\x6a\xa9\x78\x61\xe6\x67\x59\x70\xce\x31\xd9\xd1\x19\xbb\x34\x0b\xe8\x0f\xd0\xf4\x3c\x3d\xbe\x64\xf2\xa5\x9d\x62\x9d", ); test::( b"\x91\x93\xf8\xb9\x14\xdf\xe0\xe6\x25\x21\xf3\x5a\xfa\x4f\xa5\xd4\x28\x35\xe1\x98\xaf\x67\x38\x09\x37\x7a\x3e\x7a\x99\x73\x31\x42\xa1\x80\xdc\x0e\x13\xe6\xbb\x7c\xeb\x3b\x60\xe5\xe9\xd5\x15\x79\x4d\x82\xc3\x92\xe0\x79\x13\x42\x33\x91\xd2\x2e\x2b\xb1\x9a\xa0\xbd\x88\xaf\xd7\xf7\x7e\x27\xa2\x40\xea\x4e\x2d\xe0\x85\x48\x1a\xc3\x1f\xf8\xd3\x79\x90\x21\x1f\x82\xf2\xcb\xf4\xc9\x0d\xe9\x8d\x6e\x13\x38\xbb\xc8\x8e\x6a\x80\xab\x96\x84\xda\xe6\x47\x85\xdd\x10\x72\x48\x04\x85\x93\xab\xc9\xab\x03\xf1\x73\x7a\x6f\x65\x30", n, e, b"\x5c\x2f\xe4\x53\xa8\xb0\x8c\x90\xb0\x2e\xb2\xc9\x99\x42\x42\xd5\x18\xf3\xf2\x1b\x36\x88\x95\xcf\xfd\x62\x40\x50\xe4\x8a\xa7\x14\x00\x5a\xe6\x75\xfe\x79\xaa\x3c\xad\xd4\xdf\x55\xbd\xf1\x2b\xec\x5b\xe8\xa4\x1d\x87\x53\x8f\x7e\x03\x1b\x78\x2e\x34\xd3\x92\x46\x8e\x5f\x14\xbc\x61\x3b\x8f\x4d\x28\xc8\xfb\x79\xa2\x53\x7e\x1e\x60\x10\x31\xda\x72\x0a\xcd\x7b\x2c\x8d\xcb\xe9\x85\x86\x24\xa7\xa9\xa9\x2a\x06\xf9\x18\x45\xf7\x32\x37\x0d\x67\x36\x5c\x64\x64\xf7\xb6\x8f\x22\xeb\x3e\xdf\xee\xc9\x7e\x32\x85\x02\x4d\x7f\x69\x43\xb6\xd5\x0a\x16\xcc\x96\xd6\x0f\x68\x03\x51\xde\xaa\x25\xf0\xbc\x86\x89\x48\x60\x7a\x6b\xa7\xf1\x94\x9b\x85\x94\x3c\x6a\x92\xbd\x61\x72\xe8\x1b\xcc\x05\x50\x14\xb7\x8a\x73\x39\x72\xe3\xf3\x9d\x14\x09\x9d\x16\x07\xa2\x0f\xf8\x68\x1c\x29\xae\x1e\xf9\x9e\xf1\x15\xed\x6a\x10\x84\xb5\x14\xb8\x1a\x69\xd4\xa1\x5c\xe1\xe2\x57\x6f\xdc\xf2\xb2\xaf\x61\x5b\x52\xfe\xc7\x01\x32\x11\x2d\xcc\x5b\xc1\x9e\xc1\x7f\x32\x28\x14\x60\x62\x34\x20\x31\x73\x53\xe8\xa2\x55\xfd\xa5\x02\xbd\x1f\xb1\x1a\x58\x83\x2a\xe2\xc0\x4f\x9a", ); test::( b"\x0e\x57\xef\x40\xb0\x21\xbf\x87\xf6\x42\xc5\x75\x6b\x65\x15\xa0\xe0\x6c\x15\xa0\x18\x56\xd7\x16\xc5\x66\xa6\xed\xb3\x81\xdf\xdf\x44\xd9\x03\x3b\x1c\xc8\x09\xe6\x1d\xfe\xf9\xa0\x96\xdf\xb6\x89\xb7\x27\x1b\xe4\x49\xd0\x4a\x1a\x9c\x35\x41\x02\xc0\x77\xaf\x5f\xf7\x20\x05\xab\x6b\x06\xcf\x13\x1d\x73\x45\xc2\x1e\x82\x1d\x62\x01\xcc\xa4\xe0\x90\x44\x0d\x70\xbe\x60\x09\xd2\xdd\x7a\x98\xd3\x11\x75\x1e\x16\x05\xa3\xb9\x14\xdc\xe6\xd2\x62\x6b\x16\xf2\x33\xa5\xa3\xd7\x1d\x56\x7c\xc8\x20\x15\x2f\x25\xe4\x73\x51\x42\x42", n, e, b"\x76\x43\xaa\x3f\xe6\x3e\x66\xf7\x9d\x6b\x40\x9d\x14\x5e\xa8\x20\xc9\xf7\x35\x6f\x71\xb4\xac\xdc\xbd\x43\xfe\x1e\x99\xf8\x80\x2c\xd1\x66\x2b\x16\x24\x0f\x5c\xfd\x94\xa7\x69\xb0\xb3\xf2\xcb\x0b\x11\x88\x7e\x88\x6e\x5b\xa4\x37\x33\x36\x74\x90\xb3\xfc\x18\x8f\x2f\xb3\xa0\xc0\xc8\xa6\x8b\x5d\x27\x26\xc8\xf7\xa3\x19\x02\xb6\xb8\x6c\xd4\x02\x28\x7d\x38\x5c\x3e\x3c\x06\x50\x3c\xe1\x7f\xd6\xe5\x4e\x58\x2f\x4a\x90\x7a\x91\xf9\x52\xd2\xa3\x60\xe2\xfb\xa0\x00\x28\xe4\xd3\xb0\x2a\xab\xf7\xd2\x20\xb3\x1d\x1f\x8e\xe7\xfa\xa0\x70\x14\x76\x82\xcc\xc8\xbc\xc7\x56\xca\x6a\x68\xfc\x20\x95\x45\x50\xc3\x17\xe8\x79\x18\x78\x1a\x3d\x1f\x19\x23\x50\x30\x91\x09\x0c\x3c\x60\xca\x1c\x0b\x1c\x69\x99\x06\xfb\xf8\x5a\xa7\x0a\xd9\xae\x48\x70\x9f\xf7\x43\xb8\x2d\xcc\x31\x07\x4c\xfc\xea\x62\x3e\xa4\x5e\x48\x64\x4b\x19\xa2\x17\x72\xca\x10\x7e\xd6\x42\x39\xc5\x65\x74\xa0\x87\xf1\xa6\xaa\xdf\x0f\x4b\x00\xff\xe5\x81\xc1\x41\x02\x74\xc8\x75\xe4\x59\x90\x63\xe4\x6e\x51\x68\x80\x3f\x0d\x28\xd2\x1f\xcd\x35\x09\xb4\xc6\x22\x29\x95\xad\xd7\x75\x3b\xf3", ); test::( b"\x0c\x84\x91\xfc\x34\x8d\x34\x1f\xe8\x5c\x46\xa5\x61\x15\xf2\x60\x35\xc5\x9e\x6a\x2b\xe7\x65\xc4\x4e\x2e\xc8\x3d\x40\x7e\xa0\x96\xd1\x3b\x57\xe3\xd0\xc7\x58\x34\x22\x46\xc4\x75\x10\xa5\x67\x93\xe5\xda\xea\xe1\xb9\x6d\x4a\xb9\x88\x37\x89\x66\x87\x6a\xa3\x41\xb7\xd1\xc3\x1b\xba\x59\xb7\xdb\xe6\xd1\xa1\x68\x98\xee\xf0\xca\xca\x92\x8f\x8c\xe8\x4d\x5c\x64\xe0\x25\xdc\x16\x79\x92\x2d\x95\xe5\xcd\x3c\x6b\x99\x4a\x38\x5c\x5c\x83\x46\x46\x9e\xf8\x76\x4c\x0c\x74\xf5\x33\x61\x91\x85\x0c\x7f\x7e\x2b\x14\xbe\x00\x27\xd8", n, e, b"\xca\xcc\x8d\x9f\x5e\xcd\x34\xc1\x43\x48\x84\x61\x13\x5c\x49\x51\x67\x61\x45\xc6\xe4\x72\xb9\x2f\x12\xf7\x58\x04\x6f\x17\x21\x42\xfa\x38\x8f\x28\x5f\x3f\xff\x06\x82\x42\x02\x88\x29\x04\x7e\x24\x80\x59\xed\x4f\xd3\x9d\x2c\x5a\xde\x46\x9d\xc7\xc3\x93\x45\xe5\x11\x49\x50\xd2\x03\x1c\xc7\x46\x5f\xe7\x12\xc4\x04\x1d\x05\xc7\x56\xd3\xf2\xd8\x8a\x46\xce\xb9\x9f\x2e\x24\xa5\x2e\x95\x8a\x03\xcd\x25\x19\xa9\xb1\x37\xe6\x2d\x5c\xa2\xb3\x53\xf7\xb0\x47\xb6\x25\xc3\x60\x23\x13\xfd\xb5\x3c\x8d\xb2\x3d\x83\x95\x1a\x59\x9d\xb3\x28\xfe\xdc\x4a\xe0\x6d\xa8\x9c\xe7\xf5\x62\x59\xb5\xc8\x22\x2f\x7b\xd3\xd9\x74\x04\x78\xfd\x28\xe5\x81\x0d\xb7\x8a\xee\x86\x23\xfd\xd3\x9f\x60\x3f\x8d\xdf\x98\x08\x1d\x78\x73\x98\x0c\x4e\xb0\xe2\x2a\x9c\xd4\x08\xf7\xc4\x13\x4c\x12\xd2\x04\x9a\x2d\x12\x0f\x4b\x62\xe6\xb3\x82\xb9\x97\xfc\x37\x5e\xf7\xac\x95\x5f\xcf\x80\xb0\x45\xc3\xd6\x38\x5f\xf4\x22\xda\xd3\x50\xc6\x88\x70\x53\x90\x68\xa1\x62\xa2\xed\xbb\x93\xce\xef\xed\x96\x77\x93\x9b\x90\xbd\x3d\xfa\x0d\xc0\x53\x46\x0b\x4e\x23\x32\xef\xa6\x92\x17\x9a", ); test::( b"\x6c\xd5\x9f\xdd\x3e\xfd\x89\x3d\x09\x1a\xfd\xc3\x15\x5d\x35\x4f\x10\xd6\xd8\x81\x67\x42\x7a\x2c\xf7\x24\x62\x07\xe5\x17\x91\xa6\xca\x62\x00\xa9\x14\xcd\x28\x34\xa9\xb3\xc7\x9f\xcd\x59\xe2\x6e\x45\x7e\x06\x83\xbc\x33\xd4\x92\x67\xed\xbd\xd6\xe5\xd9\x09\x02\x69\x6f\x1e\x7b\x1a\x4a\xff\xc4\xba\x37\x13\x39\x86\x8c\x28\x01\x5e\xbb\xb7\x3e\x26\x26\x69\x86\x6c\x35\xdb\x97\x4b\xa6\x9e\x46\x8f\x25\x83\xb9\x19\x1d\x15\xd6\x86\xcd\x66\xfb\x0b\x9e\x0f\xf0\xa3\xb4\x72\x1a\x6d\xc3\x42\xf1\x4f\x24\x46\xb4\xe0\x28\x59\x5b", n, e, b"\x39\x74\x90\x0b\xec\x3f\xcb\x08\x1f\x0e\x5a\x29\x9a\xdf\x30\xd0\x87\xaa\xba\xa6\x33\x91\x14\x10\xe8\x7a\x49\x79\xbb\xe3\xfa\x80\xc3\xab\xcf\x22\x16\x86\x39\x9a\x49\xbc\x2f\x1e\x5a\xc4\x0c\x35\xdf\x17\x00\xe4\xb9\xcb\x7c\x80\x5a\x89\x66\x46\x57\x3f\x4a\x57\x0a\x97\x04\xd2\xa2\xe6\xba\xee\x4b\x43\xd9\x16\x90\x68\x84\xad\x3c\xf2\x83\x52\x9e\xa2\x65\xe8\xfc\xb5\xcc\x1b\xdf\x7b\x7d\xee\x85\x94\x1e\x4b\x4f\xb2\x5c\x1f\xc7\xb9\x51\xfb\x12\x9a\xb3\x93\xcb\x06\x9b\xe2\x71\xc1\xd9\x54\xda\x3c\x43\x67\x43\x09\xf1\xd2\x12\x82\x6f\xab\xb8\xe8\x12\xde\x2d\x53\xd1\x25\x97\xde\x04\x0d\x32\xcb\x28\xc9\xf8\x13\x15\x9c\xb1\x8c\x1b\x51\xf7\xa8\x74\xcb\xf2\x29\xcc\x22\x2c\xae\xb9\x8e\x35\xec\x5e\x4b\xf5\xc5\xe2\x2c\xc8\x52\x86\x31\xf1\x51\x17\xe8\xc2\xbe\x6e\xac\x91\xf4\x07\x0e\xec\xdd\x07\xec\xc6\xdb\x6c\x46\xea\xa6\x5f\x47\x2f\x20\x06\x98\x8e\xfe\xf0\xb5\x1c\x53\x8c\x6e\x04\xd7\x51\x9c\x8e\x3d\xa4\xb1\x72\xb1\xe2\x76\x10\x89\xed\x3a\xd1\x19\x79\x92\xef\x37\xc1\x68\xdc\x88\x1c\x8b\x5f\x8b\xbf\xee\x91\x9f\x7c\x7a\xfd\x25\xb8\xfc", ); test::( b"\xac\xb3\x0b\xe9\x09\x2b\x2f\x18\xf2\x59\x34\xa0\xd6\x78\xb6\xbc\xd6\xb6\x7c\x2b\x88\xe7\x58\x84\xf4\x7b\x4f\xca\xe3\xad\xfa\x40\x5a\xfe\x2c\x7e\x61\xe2\xd6\xc5\x08\xb9\x27\x90\xac\x00\xf7\x6b\x77\xc9\x65\x08\x26\x68\xbf\x90\x0f\x70\xa3\x37\x62\xde\x64\x13\xaf\x93\xaf\x2e\xa8\x08\x6f\xda\x29\x3d\xed\x44\x75\xf2\x3c\x4c\xc3\x1a\xd4\x94\xf9\x8d\x7d\xd7\xb7\xfd\x6f\x7d\x97\x2b\xb7\x6c\xb3\x5a\xdc\x20\x68\x04\xc3\xfe\x5a\xcd\xd0\xe5\xb8\xb5\x4e\x07\xc2\x91\x11\xf7\x88\xbc\x59\x02\xf4\x0a\xfa\xc3\x0a\xfd\xba\xf2", n, e, b"\xb5\xc6\x0d\x8d\xa9\xb3\x94\x38\x78\xcb\x23\x59\xcf\x65\xe4\x81\x7c\x07\x94\xf9\x50\x45\x3c\xa7\x7c\x81\xa5\xa1\xc1\x58\x55\x91\xaa\x50\xa6\x74\x68\xe3\xb3\x99\xe4\xfa\xf1\xd6\x06\xbe\xa0\xd9\xe6\xcc\x1d\x2d\x70\xdb\x80\x63\x73\x9e\x0c\x27\xd3\xdc\x9f\x9a\xfe\x88\xde\xa5\x2e\x73\x29\x8a\x07\xd0\x5c\x7d\x97\x07\x00\x2e\xfa\x53\x7c\x38\x9e\x38\xbd\x37\xbc\xa7\x4e\xb0\xaf\x62\x61\xa5\xda\x06\x13\x62\x02\xc8\xad\x48\x7e\xeb\xd5\x0b\xef\x74\x76\x70\x89\xc7\x08\x70\xbe\x1d\x8f\xab\x91\x56\xf9\xfd\xbc\x2f\x2e\x9c\xc3\x30\xa9\x50\x18\xce\x79\x43\x98\x4b\xec\xc2\x56\x21\xbf\xa6\x60\x18\xef\x83\x20\xb6\x00\x59\xf9\x41\x15\x6e\x9c\xdd\x87\xff\x0d\x82\xcf\x7b\xe7\x74\x65\xe0\x20\x3e\x71\x20\xaa\xec\xed\x84\xab\xd8\x18\x69\x47\xd4\xac\x3d\xaf\x3f\x99\x39\x02\xae\xc4\x7c\x30\x90\x47\x5c\x85\x7b\x5d\x35\x9f\x0a\x55\x72\xd4\x68\x8e\x5a\x76\xa4\x65\x38\x68\xff\x54\xce\x9f\x99\x9e\x6b\xb5\x59\xd1\xc1\x1c\x67\xc1\x5b\xe9\xd7\xfe\x5f\x8c\x17\x04\x30\x1d\x05\x5f\x3d\x29\x07\x72\x27\x79\xd6\x01\x20\x36\x08\x4e\x95\x0d\xe3\x6f\x4f", ); test::( b"\x60\x1a\x6a\xad\x3f\xaa\x79\x88\xd5\xae\x52\x8a\x69\x69\x03\x1b\x10\xa6\xf3\x92\x16\x94\x6a\xa8\x9f\xd4\x53\x2c\x8e\xd1\x41\xf9\xa6\x50\xb1\x26\xef\x48\x8f\x7c\x5c\xf3\xfb\x2d\xaa\x25\x4c\xc2\x8b\xdd\x55\x56\x04\x19\xe8\x02\x14\xef\x99\x98\x96\xda\xc4\x94\x68\x52\xd2\x4f\xcd\x9f\xb7\x76\x10\xee\xbf\xbb\x6b\xa5\x8b\xca\x26\xf4\x56\x7f\x03\xac\x7e\x56\xda\x55\x3f\x23\x81\x7b\xc1\x03\xee\x48\x55\x92\xa0\x58\xfb\x5e\x3b\xc8\x29\x9c\x72\x90\xc7\x1a\x29\x13\x7e\x75\xdb\xf5\x32\x8c\x3a\x2d\xcd\x34\x16\x5b\x3f\x2e", n, e, b"\x30\x1d\x60\xd5\x65\x76\xf3\x66\x3a\x7f\xbe\x80\x36\xbb\xe4\xfb\xc0\xfb\xd8\x2c\xd6\xa4\x2e\x36\xd7\xbb\xc8\xb2\x06\x54\x3d\xc2\xd5\x6d\x31\x98\xe7\x91\x1a\xd1\x38\xca\xd2\x22\xdd\x99\x05\x0d\xd1\xf8\x5f\xe1\x9c\x8a\x88\xbf\x67\x13\x5e\x7f\x8f\x11\xb5\xf5\xe4\x85\xc9\x1f\xc7\xd4\x78\x06\x9b\x72\xf4\x6e\xbc\xdc\xf2\xd2\xae\x7d\xe6\xac\x8f\xe5\x3b\xb6\xc0\x49\x11\xd1\x22\xcc\x23\x1d\xc2\x10\xb2\x14\x7e\xbe\x8b\x05\x2e\x8b\x2c\xcc\x09\xf3\x38\xb3\x49\xde\x20\x25\xcc\x87\xb2\x61\x9a\x7b\x16\x33\x47\xca\x66\xa3\x47\x91\xa2\xe4\x6b\x4e\x2a\xc5\x7e\xb9\xf6\x02\x9c\xdb\xe0\x24\xe8\x96\xd5\x7f\x7d\x04\x91\xf7\x78\x33\x12\xf8\xf0\x6c\x79\x07\x70\x15\x0c\xd1\x39\xf6\x1f\xd2\xb3\xe7\x04\x1b\x37\x26\x1c\x6e\x7e\xa8\x6d\x4e\x06\xd9\x30\x0b\x1a\x56\x67\xcb\x02\x88\xc5\x50\xb2\xaf\xb3\x55\x94\x48\x34\xb4\x61\xce\xad\x13\x79\x42\x76\xbb\x46\xe5\xe2\x0a\xec\x7b\x63\xaa\xca\x4d\x49\x1a\x50\x0f\xac\xd5\x9a\x37\xc5\x27\x79\xcf\x46\x7d\x74\xaf\x1e\x62\xb1\xeb\xe0\xfd\x0b\xe1\xca\xcb\x7c\xe6\xd0\x50\xd8\x6e\x4e\xb7\x6c\xde\x06\x93", ); test::( b"\x44\xd3\xe0\xfc\x90\x10\x0a\x1c\x93\x16\x06\x3f\x26\xb1\x80\x32\x6c\xc2\xe3\x83\x4c\xe5\x6e\x43\x24\x52\x8a\x0b\xbb\x01\x5b\x3d\x78\x12\x95\x8c\xd2\x6b\x91\xbf\x08\xa3\xa0\xb1\x12\x1f\x9f\x9d\xd7\x7a\xcb\x98\xa0\x2a\xd7\x5f\xcd\x61\x3c\x53\xc7\x32\xd1\xc2\x35\xf5\x9b\x68\x73\xec\xe6\x36\x3f\x27\x94\x52\xb6\xa4\xb6\x5e\x80\xbb\x59\xfd\x47\xb9\xa2\x93\x6d\xcc\x1e\x4d\xfe\x1f\x53\x62\xe3\x45\x9b\x98\x59\xdb\x32\x09\xa2\x69\x8d\x27\xfa\x8a\xed\xfe\xcd\x4d\x35\xb9\x27\xda\xf8\x68\x6c\x59\xd7\x00\x49\x0f\x0a\xa3", n, e, b"\xaf\x22\x29\xe9\x4a\x85\x7b\x89\xe0\xe8\x90\xda\xca\x3a\x8f\xe1\x2e\xbd\xba\x04\x94\x8d\x18\x83\xa7\xd7\x81\x6a\x3b\x68\x2f\x7d\xa3\x03\x25\x40\xa8\x76\x9f\x9c\xca\xc9\x58\x6c\xf2\x4e\x8c\x20\x4b\x45\xb8\x5d\x1b\xdc\xc5\xa5\x45\x0a\x21\x5b\x40\x48\xea\x42\x98\x3b\x34\x56\xfa\x8c\x76\xc6\x78\x6e\x02\x4f\x70\x5e\x08\x8d\x69\x45\x59\xd6\x68\xca\xa8\x68\x4c\xad\x0f\xc5\x78\x50\xfc\xaf\x34\xe4\x58\xae\xe8\xfa\xd4\xe0\x9e\x6f\x19\x65\x57\xd4\xe8\x86\x02\x84\xd9\x82\xc0\x10\x5d\x98\xce\x49\x12\xe9\x6c\x35\x50\xe2\xa0\xc7\xe8\xba\xd5\xab\xc2\x9a\x9a\x54\x2f\x57\xa8\xc6\x05\x79\x03\x80\x67\xb3\xd5\x39\x1a\xbc\x21\xb4\xf9\xde\xb0\x24\xca\x58\xf9\xb0\xc3\x8c\x0d\x1f\x82\x37\x3f\x52\x8e\x93\x9b\xd7\x3a\x24\xd5\x01\xc5\x91\x16\x88\x14\xc8\x72\xc5\x25\xdb\x0e\x56\xca\xe4\x7d\xf0\x0f\xa3\x72\x8d\xc3\xa0\x97\x69\x65\x32\x3c\xe8\xd2\xde\xe2\xb1\x38\xb5\x0a\xb7\xaf\xd4\x84\x95\x11\x46\x73\xe9\x1b\xb3\xed\x22\x05\xe2\x6a\x84\x55\x47\x4c\x3d\x4e\xc8\x73\x9b\xbf\xf6\xdf\x39\xb2\xb7\x2e\xe0\x50\x41\x09\x30\x42\x3b\x14\x72\xb6\xed", ); test::( b"\x5a\xf0\x90\x77\xa1\xf5\x34\xb8\x98\x22\xb2\x6c\x32\x72\xad\xf8\x50\x0d\x3c\x6b\xd9\x0f\x9b\x5e\x0d\x8b\x21\x1f\x16\xd0\x72\x0e\xe0\xea\xf6\x46\x2b\x6c\x8a\x80\xdf\x6d\x75\x35\x9f\xd1\x9d\x03\xa0\xca\xfb\x52\xbc\x9d\x4c\x37\xc2\xaa\x09\x99\x11\xa7\x9a\x92\x65\x2c\xc7\x17\xf0\x74\x6f\xdc\xad\x62\x7c\x72\xf1\xc2\x16\xb2\x43\xd2\x17\x5f\x6d\x00\xbf\x07\xd3\xf6\xaa\x2a\x04\xd4\xfe\x9f\x8f\xbc\xe9\x32\x18\x94\x4b\x92\xaa\x07\xaf\x6b\x4f\xcd\x80\xcf\xde\x2d\x7a\xda\x15\xc0\x5e\x96\xe7\x77\xea\x1c\x17\xdf\x08\xfc", n, e, b"\xa5\x68\x23\xfa\x57\x7e\x89\x46\xf1\xd2\xf6\xe3\x51\xb7\x38\xb5\x35\x92\x54\x43\x58\x52\x8a\xf8\x88\x07\xea\x4f\x19\x01\x7d\xfe\x81\xa3\xd6\x9f\x62\xfb\xff\x64\x95\x50\xd9\xb3\x10\xfa\xf2\x7a\x04\x1f\xe6\x24\xf0\xa0\x2b\xdc\xdd\xb7\x9b\xfb\x0a\x46\x57\x39\xec\x8b\x64\xb7\x48\xcc\x29\xe5\xa0\x2c\x77\x7e\x18\x26\xd3\xe2\xf1\xee\xe6\xfe\x2e\xde\xe4\xa8\xbc\xac\x51\x9c\x7c\x7c\xa5\xc0\x39\xe7\x6d\x63\x06\x68\x94\x5a\x1e\x5e\x86\x18\xe2\x35\x86\x45\x61\xa4\x40\xe7\x3e\x39\xf6\xd6\x84\x2a\xd7\xda\x64\xef\x5b\x0c\xe1\xc4\xab\x88\xdb\x15\x7b\x68\x10\x71\x74\xad\x7d\x5c\x9a\x60\x65\x06\x87\x68\xc1\x1c\x4c\x96\xff\x67\x05\x0b\x5d\x07\xb8\xcd\x02\x7f\xcd\x0d\x34\x7e\xc7\x9a\x19\x7c\xf4\x34\x35\x98\x5b\xc1\xae\xb4\x79\xdb\x00\x22\x28\x9e\x8d\xd3\xb3\x1b\xb7\xc6\x2d\x88\x31\xcf\xe6\x95\x2f\x41\xd2\x4f\x89\xd7\x53\x78\x95\x35\xf9\x18\xff\x68\xb3\x69\x50\xaf\x6f\xd3\x1d\xee\x1a\xc4\x76\xa0\xcf\x93\xaf\xe9\xf4\xa7\x66\xf3\xc4\xd2\xc0\xc3\xf9\x28\x25\xd5\x57\x2e\xb2\xeb\x8a\x2b\x64\x4e\x32\x9e\xea\x16\x83\xf9\x08\x10\xed\x77", ); test::( b"\xf6\x0a\x3a\x54\x37\x68\xfa\xbe\x37\xf0\x03\x00\x9a\x8c\x26\xf7\xdc\x91\xf1\x42\x2d\x44\x29\xed\x7f\x9d\x74\x4c\xdd\x4b\x55\x2a\xfe\xf7\x5d\x24\x1a\xcd\xa0\x4f\xfc\x39\x67\x21\x59\xee\x24\x8e\x60\x2d\xab\x71\x92\x44\x9e\x2e\xd4\x55\x29\x95\xc2\x58\xf0\x0a\x47\x63\x46\xe3\x6a\x29\xa0\x12\x6b\xc2\x49\x04\x0f\xaa\x57\xc9\x38\x0b\xdd\x74\xb8\x3f\x62\xc5\x67\x90\x92\x05\x74\x43\x34\x32\xf8\xd6\x5c\x5c\xd1\x85\xe2\x4f\xad\x13\x12\x72\x65\xc6\xa5\xef\x8d\xb4\xf1\x14\x49\x3d\x5c\xfa\x61\xd9\x16\x64\x98\x14\x08\xe9", n, e, b"\x08\xd3\x96\x48\x1d\xee\xf1\x8c\xb0\xbe\xf7\xc3\xe8\x26\xfe\x6e\x5c\x9e\xcc\x85\xe5\x23\x0d\x35\xd6\x67\x72\xb8\xd2\xd0\x15\xd4\xe5\xf5\x79\x4f\xbe\x05\x50\xdf\x2f\x74\x57\x30\xd6\xf8\xd1\xd3\xb8\x50\xd1\x64\xfc\xe4\x63\x08\x05\xe7\x11\xb5\x93\x08\xf8\x60\x85\x06\xb7\xe0\x1e\x8e\x92\x94\xed\x8b\x7e\x75\x82\x16\x56\x77\xf1\x80\xe9\x65\x16\x9d\xca\x81\xb3\xda\xf2\x4d\x7b\x92\xfe\x32\xd6\xa9\xac\x63\x82\x1d\x48\xb1\xa0\xa1\x44\xfc\x7a\x04\xb0\xbf\xc6\x3a\x3b\xc1\x6a\x0f\xd8\x37\xb0\x20\x37\xed\x76\xe5\x0d\x46\xcb\xfa\x38\x57\xe6\x58\xe3\x70\xc5\x86\xab\x1e\xed\x82\x50\x76\x32\x1a\xc8\xe8\x2b\xe3\x74\xba\xcb\x29\x5e\x4d\x34\x08\xf0\xcc\x1f\xc4\xc3\x00\xb8\x42\x75\xa5\x1c\x35\x73\xe9\xca\xbf\xdb\xe3\xdc\x51\xe4\xa6\xf5\x81\x1d\x86\x0d\x72\x5a\xaf\x8f\xd0\xaf\x19\xa2\x43\x7b\x0f\x1c\x80\xf5\xac\x22\x2f\x6b\x25\xf1\xfa\x09\xe9\x33\x99\xa6\x97\x6b\x1b\x3c\xa7\x6a\xfe\x60\x86\xe9\xb2\x32\xaa\xe6\xc7\xb8\x18\x25\x5b\xf9\x63\xf3\x1c\x04\xae\x3f\xa2\x13\x6c\x0a\x44\x29\x97\xd4\xcf\x12\xf3\x95\xfb\x80\x4a\x47\x55\xb5\x6b", ); test::( b"\x2c\x07\xa8\x1d\xe5\x89\x55\xb6\x76\xfe\xc0\x57\x2d\x48\xd1\x95\x5b\x48\x75\xff\x62\xa4\x4b\x00\x10\xc7\xa1\x07\x2b\x29\x9e\xe4\x4d\xd0\xc0\x76\xf2\x17\x8a\x83\xd0\xae\x76\xe7\x67\xe2\x31\xf1\xd8\x1e\x07\x0a\xfa\xb2\x9c\x97\xab\xd4\xde\x21\x64\xe4\x37\xb3\x11\xf5\x07\x84\x1f\x88\x51\xd6\xd6\x9a\xb5\x1e\xe9\xe2\x9e\x65\x4b\x54\xbc\xee\x45\xe9\xb5\x19\xc6\xa2\x17\x87\xfa\xcb\x92\x7f\x1d\x7d\x64\x91\x92\x66\x14\x79\x2f\xcc\x63\x46\xdc\xd0\x80\xbb\x5c\xf0\x7b\xf5\x6a\xd0\xfc\x4e\x08\x3a\x35\x82\x14\x63\x15\x10", n, e, b"\x9a\xa3\x91\xe7\xc2\xf0\xe9\x20\xaa\xc2\x7e\xd9\xfc\x20\x81\xd3\xc9\xca\xa3\x73\x58\x83\xd0\x1a\xd7\xa7\xe3\xb1\x18\x67\xd0\xad\x62\x41\x56\x47\x7b\xbb\xdd\xe6\x59\xf4\x74\x68\x2d\x0d\x77\x44\x89\xe2\xb5\xb0\x39\xd1\xeb\x35\x45\x4c\x9e\x3e\xed\x78\xcf\xf9\xc4\x26\x2e\x3a\xec\xfc\xa1\xd8\x17\x54\x2b\x48\x60\x96\x59\x8e\x11\x14\xbf\xc0\x3f\x20\xa4\x5d\xe3\x6f\x6d\xf7\x0d\x14\x4d\x01\xdc\x48\x66\xa0\xf8\x33\x19\xe7\xc2\xb8\x53\x0f\x8c\x27\xa4\x1b\x7a\xdd\x9f\x69\x2d\x8a\x8e\x64\x64\x55\xb6\x7c\x9e\xc4\x7a\x4d\x2c\xe3\xdf\xe3\x5d\x6a\x2e\x89\xd9\xbe\x50\xc5\xb6\xda\x39\xbb\x02\x54\xbd\x23\xa8\x09\xab\x97\xb2\xb4\x8a\x06\x8a\x87\xab\xde\x6b\x6a\x6e\x35\x95\x5f\xc9\x2a\x96\x26\xf9\x60\x7d\x5b\x3f\x40\x15\x17\x27\x15\x94\xbe\xf7\x38\x59\x81\x2b\x6a\x62\x1e\xd6\xbd\xaf\x3c\x5f\x2a\x90\xb1\xe1\x68\x0f\x68\xdc\xfc\xca\xcb\x65\xe0\x08\x1f\x1c\xcb\x6a\x20\x73\x70\x9d\x1b\xa0\x67\x06\x50\x16\xed\x73\xeb\xd7\xeb\xe9\xe7\xa7\xb6\x0c\x8c\x9d\xd0\x4a\x56\xfa\xb3\x07\x02\xc8\xa6\xdf\x6a\x35\x3a\x30\x10\x47\xdf\x4c\x7a\xff\x62", ); test::( b"\x35\xec\x92\xaf\xdb\xc2\xfc\xef\xe4\x8f\x1e\x2f\x6e\x48\x29\xae\x53\xb3\xda\x04\x59\xcc\x4e\xa8\xa9\x68\x18\xb5\x83\x18\x91\xee\x2f\x50\x6f\xff\x37\xc8\x99\x06\xd3\x23\x3a\x51\xa5\xcf\x14\x69\xa6\x2c\x18\x50\x61\xf0\x33\x08\x5f\xca\x6a\x54\xe2\x45\x29\xc3\xd6\xf0\xd8\xe9\x04\xbc\xb0\xf0\x89\xa5\xcd\x50\x86\x94\x84\xda\x1a\x84\xf6\xfb\x8d\xe4\xe5\x3f\xce\x3d\xc7\x14\x20\x15\x19\xd1\x10\x13\xf6\xf6\xaa\x64\xe8\xb5\xec\x5c\xfe\xb2\x7b\x61\x1f\x08\x95\x05\x9d\x8c\x47\x72\x0d\x55\xe0\x0b\x57\x7c\xa5\x50\x09\x20", n, e, b"\x6b\x0f\x5b\x50\xe6\x78\xda\x08\x3e\xd0\xf1\xb6\x4e\x94\x3e\x8c\x62\x79\xc7\x24\x6a\xf5\xad\x07\x9c\xdb\xf2\x23\xe4\x2a\x0d\x47\x1e\x56\x31\x4b\xc0\xd5\x8f\x20\x2a\xa6\xc5\xe1\xe5\x25\x59\x85\xb0\x79\x5d\x48\xeb\x3d\x4b\x8e\x3f\xc9\x22\x40\xae\x02\xb4\x08\x8c\x6c\xe8\xab\x0e\x8c\x79\xc6\x8d\xfd\xc4\x86\x57\xd6\xa2\x82\x95\x39\x1b\x9a\x5a\x5f\x35\x25\x51\x26\xbf\x8c\xa5\x3c\xbc\xc0\x08\x2e\xab\x52\xec\x10\x9d\x22\xa1\x18\x5f\x6d\xc7\x92\xfc\x29\x0a\xa8\xdb\xae\xbb\x2f\xbe\x40\x4f\x1d\x03\x9a\xa6\x34\x3c\xd7\xaf\x9f\xcb\x2d\x1e\x05\xde\xf4\x80\x96\xc2\x37\xe1\x0d\xaa\x7c\xfa\xc5\xae\x9b\x3b\x30\x22\x00\x5d\x0d\x2d\x5c\x9c\x5c\x50\x2b\x2f\x23\x59\x4e\x80\xd1\x60\x4b\xbb\x8f\x5d\xec\x07\xcd\x3a\xfe\x1f\x77\x77\x43\xb0\xb5\x8a\x4e\x0e\x4e\x5c\xaa\x14\x88\x30\xee\xe0\x47\x96\x8e\x7f\x40\x66\x1f\x9f\x1a\x02\xe1\xa7\xfd\x2b\x6c\xaf\x19\x32\x6a\x75\xe9\x56\x5e\xfd\xc0\x11\x4b\xce\xcb\x14\xdd\xa0\x6c\x32\x9c\xf3\x22\xa5\xbd\x3e\x6a\xb4\x8d\x95\xf2\xd2\xa9\xc1\xc1\x23\x3a\x0a\xa0\x15\xa7\x38\xf9\x01\xf1\x31\x48\xb4\x54", ); test::( b"\x80\xc9\xde\xbd\xf9\x31\x74\xd7\x57\x50\xa6\xcf\x09\xaf\x71\xfc\x18\xfd\x51\x3b\xff\x9c\xb4\x91\xbe\x60\xaf\x11\x2a\x93\xf0\x00\x87\x3c\xf4\x38\x58\xa0\x7a\xca\x76\x0a\x37\xe7\x60\xc8\xcb\x01\xd2\x76\xf4\x2d\x99\x7f\x01\xcc\xa5\xe0\x8a\x6a\x60\x2f\x5f\xe6\x3e\xdc\xbe\xd3\x95\xb8\xc9\x1f\xb0\xb3\x36\xf2\x1f\xea\x49\xd9\x50\xe1\xff\x24\x64\x0c\x8d\x8d\x3b\x95\x08\x1a\xd1\x59\x66\x44\xce\x34\xa5\x58\x58\x7e\x4a\x1e\x2c\xd5\x0d\xb9\xed\x1d\xd3\xce\xbb\xc6\xdc\xe8\x08\x4d\x3e\x1b\xa7\x06\x92\xe8\x26\x18\xed\x61", n, e, b"\x4a\x15\xa7\x83\xad\xbf\x27\x46\x22\xd5\xa6\x10\xbb\x6f\xc7\x33\x37\x99\x9e\x44\x5d\xc2\x13\x3a\xcc\xb7\x88\xd6\x20\x3d\x70\xf3\xcd\xc6\x3e\x67\xda\xa4\x17\x1a\x79\x52\xa4\x98\x64\x56\xfa\xb3\xc0\x77\xa8\x94\x1f\xb2\x59\xe3\x7a\x5c\x0c\xbb\x20\xc4\x08\xfa\x24\xad\x0e\xc8\x50\xe9\xbf\x02\x8c\x36\x04\x60\x99\x41\xf5\xae\x2f\x18\xbf\x1a\xc3\x7a\x24\xf7\x55\xab\xb9\xc8\x5d\xdc\xd0\xbf\x4a\x12\xfa\xbd\x9d\x25\x30\x29\xe0\x81\xf6\x28\xe2\xbb\xe9\xf9\xaf\xe9\x22\x49\x54\xd8\x31\x5d\xb8\x6c\x21\x25\x51\x2b\xb9\x8c\xe9\xb3\x69\x30\x99\x4b\x09\x1a\x8a\x1d\x7d\x4e\x2f\x4a\x0e\x58\xd0\xa3\x58\x76\xad\xad\x14\x30\x05\x30\xb3\x9c\x8d\xc1\x1d\xed\x3e\xf2\xfa\x95\xd5\xf2\x2e\x67\xca\xe3\x4c\xc2\x1a\xd5\xe2\x3f\x91\x22\xb5\x3d\xfb\x79\xf1\xa2\xac\x63\xc1\x84\x4e\x9e\xf0\x69\xa2\xe4\x1f\x17\x8d\x6d\xce\xdc\x51\x8a\xaf\xcf\x81\xe0\xeb\xd8\x82\x55\x6e\x73\x1c\xb0\xab\x41\xd9\x57\x27\x4a\x3f\xbb\xb7\xce\xf2\x60\x87\x91\x00\x0c\x6b\x86\x08\x68\xcb\x73\x93\xe7\xd0\x3d\x94\x56\x89\xff\xb7\x75\x55\xef\xe0\x8f\x46\x14\x51\xd3\x3c\x11", ); test::( b"\x31\x39\x5c\xef\x34\x95\x51\x34\x3a\x49\x27\x1a\x8d\x81\x2b\x4c\x7b\x65\xb4\x55\xb7\xed\xa8\x11\xfc\xf7\x41\x61\xf3\x97\x11\x23\x57\xae\x44\x62\x57\xbe\x26\xc9\x3c\xfc\xe5\x5e\x4b\xa7\x97\x6d\xed\x99\x7e\xc1\x0d\x1c\x8b\x1a\xc2\xfe\x22\xdc\x2e\xe8\x1d\x05\xa6\xeb\x13\x61\x12\x5c\xda\x01\x97\xe2\x4a\xe9\x74\xcd\x44\x09\x2a\xa9\xf3\x6f\xe0\x13\x52\xba\x05\xcc\xef\xd2\x37\x0c\xee\xd6\x64\x19\x50\x56\x2f\x17\x76\xc3\x95\x22\xe0\x23\xd0\x9a\x3b\x09\x7b\xbe\x9b\xc5\xf8\x7d\x05\xd8\x0f\x88\x30\xab\xd7\xac\x8c\x80", n, e, b"\x16\x2f\x38\x76\x95\xcf\x9d\x82\xdd\xa8\x9c\x74\x93\x18\xe4\x6c\x9b\xe8\x95\xec\x36\x4e\xa4\xae\xce\x97\xcc\xfa\x63\x92\x5a\xf3\x71\x08\x94\xda\x2b\x7b\x59\x67\xe4\x6f\x4e\xfa\x80\xca\x25\xd2\xa9\x65\xa7\xe1\x5f\x75\xe0\xaa\x1b\xd4\x25\x0f\x8f\x41\x09\x9e\x6e\x97\x14\xc3\xfc\x43\x11\x07\x7a\xe9\xbd\xdf\xe3\x5b\xa4\x72\x75\x31\x52\x9c\x23\x9d\x54\x6a\xb1\xc2\x98\x18\x7f\x16\x5f\x70\x8c\xcc\x0a\xe3\x97\x9a\x8d\xa1\x93\xe3\x48\x59\xa5\x9c\x2c\x3b\xc4\x22\x53\xc8\x34\x66\x88\xe6\xbb\xa6\xfb\x1b\x01\xb1\x0c\x1e\xc2\xc6\x49\x3d\xed\xcc\x26\x96\x26\x9d\x85\x1b\xde\x63\xe2\x7e\x37\xbe\xd3\x57\x45\x5c\x8f\xee\x56\x29\xf9\x4a\xfa\x7a\x98\x66\x95\xcf\xd5\xb9\x92\x12\x65\x7a\x6c\x88\x46\x44\x59\x60\x86\xb8\x9e\x0c\x7c\x05\xe8\x19\xfa\xeb\xeb\xef\x74\x5f\xd2\x95\xaf\x88\x66\xe0\x75\x0f\x54\x79\xba\xed\x50\xcb\xb3\xd0\x59\xf8\xa5\xeb\x7e\x0e\x61\xe2\x73\x3a\xe5\x0f\x0c\x1e\xc4\x2b\xe7\x1f\x5d\xff\x32\x41\x95\xcb\x4f\x0e\x94\x1a\x21\x56\x15\x13\xc3\x03\x7d\xb9\x2f\xec\x95\x56\xb7\x72\xcc\xab\x23\x9e\x34\xb1\x87\x6c\x56\xb1", ); test::( b"\xa7\xc3\x09\xd4\x4a\x57\x18\x8b\xbd\x7b\x72\x6b\x98\xb9\x8c\xe1\x25\x82\x22\x8e\x14\x15\x86\x48\x70\xa2\x39\x61\xd2\xaf\xb8\x2c\xd5\xbc\x98\xbe\xc9\x22\xd5\xf2\xac\x41\x68\xb0\x56\xda\x17\x6e\xf3\xba\x91\xf6\xb6\x99\xba\x6a\xcc\x41\x44\x86\x8f\xf3\x7f\x26\xfd\x06\x72\x08\x68\xd1\x2a\xd2\x6e\xcb\x52\x57\x2c\xf1\x04\x16\xaf\x68\xdf\x03\xab\x64\x5a\x8b\x70\x48\x57\xd2\x19\x0f\xfc\x3f\x07\xea\xbe\x3a\x8e\x2a\xbe\x34\xed\x61\x59\xe8\x84\xc4\xfa\xe1\x41\xd4\x33\x3d\x5c\x3e\x0d\xb0\x44\xff\x9c\xcc\xd9\xcb\xd6\x7f", n, e, b"\x14\x8a\xf6\x1e\xd5\xea\x8a\x87\xa0\x8b\x3f\x40\x39\x29\xbf\x80\x31\xdb\x4f\xd3\x99\x9b\x64\x40\x9b\xa4\x89\xf9\x7a\x3e\xe5\x20\x8e\xa4\x20\x2d\x2e\xc1\x87\x34\xf6\x15\x00\x3a\x51\xf7\x74\x41\x08\x5b\xe6\xac\x0f\x11\x81\x0f\xfa\x2d\xad\x58\xf0\xe1\x86\xd5\x52\x0a\xc2\xb8\xa5\xd3\x96\x6e\x8d\x2a\xbb\x80\x74\xe1\x3b\x50\xa4\xe7\xde\x83\xbe\x10\xa6\x6f\xdc\x7c\xa1\x81\x18\xc5\x77\x4f\x78\x12\x12\xde\x9e\xfe\xbc\x63\x76\xfc\xdd\xdc\x65\xa3\xb1\xb8\xf1\xab\x31\x49\x2f\xe4\x78\x25\x9c\xe7\x19\xb3\xdb\x58\x74\x98\xd8\x79\xa0\x1d\xec\x96\xe8\xea\xbe\xb0\x7f\xf7\x07\x3f\x3f\x3e\xb4\x46\x08\x49\x55\xca\x26\x32\x9a\x79\x13\x15\xa2\xc2\x59\xd2\x25\xe2\x6b\x21\x54\xb2\x04\x7b\x21\xfa\xba\x68\x11\x5b\xfd\x96\x2e\x5e\x24\xec\x52\xd7\xc5\xd2\x31\xe3\x04\x4c\xbc\xd8\xc8\x80\x48\x55\x70\x3c\xba\xa6\x22\xb1\x5b\x6e\xf7\x8c\x74\x21\xa3\x67\x16\x6f\x1b\x02\x57\x6c\x87\x36\x05\x93\xda\x75\xb7\x18\x9e\xfa\xfd\x10\x82\xbd\x59\xf6\x85\x7f\x17\x01\xf6\x46\xc2\x4d\x70\xc9\x52\x73\xc4\x9d\x5b\x11\xe6\xaf\xe2\x58\x82\x1b\x55\xc1\x68\x0c", ); test::( b"\xca\x50\x5d\x45\x91\x12\x16\x64\x99\x07\x47\xd9\x5d\x95\x55\xcc\x75\xbf\xc3\xfd\xae\xec\xee\xaa\x60\xea\xfa\xb3\xfc\x32\x0c\xfc\xe5\x6e\xb9\x13\x81\x38\xbf\x13\x8f\x25\xf3\xc8\xbb\x02\x7b\x13\x6f\x5d\x3d\x90\xed\x48\x97\x77\x9b\x59\x51\xc0\x9d\xf5\xd0\x8b\xa9\xce\x8c\xbe\x17\xab\xc4\xf0\x38\x68\x70\x86\xe9\x3d\x77\x1b\x68\x43\x22\x26\x66\x33\xd0\xd6\x5d\x71\xec\x41\x23\x4a\x1d\xbe\xc0\x7a\xbc\x8f\x7d\xf2\x8b\xc4\x3d\xd8\xa4\x5b\x10\xce\xaf\xac\x06\x77\x58\x05\x41\x37\x01\x91\x4e\x3b\xb3\x7e\xb6\xba\x5b\x5e", n, e, b"\x58\x9c\xcd\x4e\xbf\x97\x64\xf8\x7e\x6a\xfa\x7f\x13\xc4\x06\x25\x79\xb0\x22\x28\x11\x7b\x15\xa8\x73\x8a\xb3\x9c\xd6\x44\x77\x06\x9c\xb4\xf5\x2c\xd8\xd5\xf4\x57\x4c\x65\x7b\x45\x38\x35\xca\x3c\xed\xb8\x24\xf0\x3b\x92\xa5\x73\xd6\xd3\xd9\x13\x61\x31\x3f\x11\xbd\xcb\x34\xd2\x05\x9f\xe2\xe6\xce\x2b\x85\x44\x61\xaf\x58\xa9\x29\x4c\x88\xcb\xfb\x2a\x63\x99\x76\xb5\x6e\x47\x48\x02\x6f\x30\x40\xe2\xfd\x71\x12\xd6\xad\x44\x50\x06\x89\xac\x77\x7c\x07\x1d\x17\x39\x19\x69\x76\x2e\x18\x64\x17\xc4\x40\x0a\xbd\xda\x5c\x16\xdc\xe0\x07\x76\x42\xf1\xfc\x13\x54\xe0\xe8\xc1\x4e\x55\x8c\x92\x3c\x1b\xfb\x85\x48\x8b\x83\x50\xf4\x15\x86\x6a\x60\x87\x1e\xd7\x15\x1f\x5f\xbc\x5b\x88\x05\x00\x01\x19\x77\xc7\x78\xe1\x7f\xe8\x91\x8c\x5d\x34\x3f\x70\xb0\x0d\x58\xf7\x18\x95\x61\x25\xfe\x28\xb3\xa5\xe2\xd0\x76\x04\xa2\xb8\xa8\x77\x20\x44\x34\xce\x90\x3b\x35\xa0\x30\x93\x6b\xc7\x19\x51\xca\x59\x3d\xf9\x7d\x24\xe8\xe8\xad\x8f\x2d\xc9\xb7\x8f\x76\xef\x13\xa1\xd3\x86\xca\x85\x7c\xed\x48\xf1\x9f\x3e\xbe\x39\x10\x8f\x9b\x33\xff\x59\xeb\x05\x56\xb1", ); test::( b"\x23\x7a\x7e\x44\xb0\xa6\xc2\x68\xbb\x63\x36\x4b\x95\x8a\xe0\x2b\x95\xe7\xee\xd3\x6b\x3e\xa5\xbf\xb1\x8b\x9b\x81\xc3\x8e\x26\x63\xd1\x87\x14\x4e\x32\x3f\x9c\xea\xfb\x47\x95\x07\xd1\x84\xe6\x3c\xfb\xec\x3e\xcd\xbb\x8a\x05\xd2\xdf\xc8\x92\x96\x93\xed\x9e\x3e\x79\xe5\xf8\xab\xfc\x41\x7b\xa1\xe1\x7e\x3e\x28\x1e\x8a\x0a\x32\xf0\x84\x11\x7f\x28\xc3\xdc\xbe\xc5\x1b\x86\xf5\xc8\x5b\x28\x22\x44\x1a\x94\x23\xb5\xb4\x46\xd3\x92\x8f\x97\x76\x26\xa3\x34\x57\x9b\x39\xcf\xaf\x58\xf2\x14\xc9\x8d\x0c\xdf\x64\x0b\xe1\xac\x59", n, e, b"\xaf\x07\x6b\xc2\x13\xca\xf7\x56\x19\xf4\xbd\x1d\x78\x7c\xc1\x98\xf7\xdf\x33\x24\xa0\xdd\x87\xa8\x84\x16\xe0\xa4\xb8\x1c\x2f\xb9\xa9\xdb\x5f\x98\xae\xd4\x3b\xc1\x5f\xe2\x35\x71\x43\xa6\xe4\xff\x70\x1d\x9c\x48\xf5\x1d\xe9\xeb\x80\x36\x70\xbb\xc4\xb0\xae\xa7\x22\x0b\xe2\xf8\x4b\x83\x00\x31\x8c\x77\xa9\xf6\x15\x98\x6c\x49\x80\xab\xda\x85\xe3\xad\x00\x89\x56\x4d\xba\xf7\xf4\x4d\x81\xb6\x66\x4e\xec\x03\x11\xad\xb1\x94\xd4\x6d\xe9\x6b\xb1\x7d\x5a\x5d\x47\x42\x68\x45\x80\x2c\xa0\xf4\x9a\x16\x9e\xb8\x2b\x75\xaf\xa1\x91\x02\x7a\x0c\xc8\xfc\xe9\xdd\x16\x05\x53\x50\xdf\x97\x45\xfc\x72\x00\xff\x9f\x4e\xa3\xcf\xbf\xc6\x6c\x42\x84\x81\x13\xe3\xbe\x32\x93\xd5\x10\x38\x2d\x09\x99\xf0\x32\x51\x55\x27\xbd\x99\xf6\x6e\xfa\x2a\x75\x5e\x01\x12\x47\xb2\x23\xa6\x8e\x51\x25\x8b\x6b\xc3\x19\xa7\xcd\xef\x4a\xec\x53\x3e\x9d\xcd\x8a\xe2\x6e\x34\x9e\x5b\x33\xc7\x91\x21\x90\x7d\xe5\x09\xa1\xcb\x83\xc2\xe5\x9a\x47\xc1\xa8\x84\xbf\x68\xe7\x22\x93\x16\xa6\x2e\x3c\x49\xd1\xf5\x42\xeb\xe7\x10\x5c\xfc\x27\x09\x92\x68\x12\x0a\x77\x43\x90\x84\x71", ); test::( b"\xab\x18\x93\x92\x30\xb0\x96\x64\x6a\x37\xa7\x81\x62\x9f\xbd\x92\x70\xf3\x89\x1a\x5c\xea\xb4\xa8\xc3\xbc\x68\x51\xbc\x34\x11\x5d\xbc\x06\x65\x41\xb7\x64\xa2\xce\x88\xcc\x16\xa7\x93\x24\xe5\xf8\xa9\x08\x07\x65\x2c\x63\x90\x41\x73\x3c\x34\x01\x6f\xd3\x0a\xf0\x8f\xed\x90\x24\xe2\x6c\xf0\xb0\x7c\x22\x81\x1b\x1a\xe7\x91\x11\x09\xe9\x62\x59\x43\x44\x72\x07\xdc\xd3\xff\xf3\x9c\x45\xcb\x69\xee\x73\x1d\x22\xf8\xf0\x08\x73\x0c\xe2\xef\xc5\x3f\x11\x49\x45\x57\x3e\xa2\xdd\xeb\xb6\xe2\x62\xc5\x27\xd2\x0f\x8b\xb1\xdc\x32", n, e, b"\x95\xbd\x0b\xf2\x36\x2f\x34\xb2\xe0\x40\x75\xb2\x93\x4f\x40\x47\x98\x70\x3e\xa4\x72\xb8\x1a\xc3\xcc\x22\x3a\xec\x48\x6e\x4c\x3d\x9c\x5d\x1c\x2f\x9e\xe2\x24\x17\x13\x29\x64\xed\x58\xe4\x99\x37\xf5\xb2\x57\xd3\x16\xca\x7f\xff\xe2\x90\xb1\x9f\x5b\x58\x10\x38\x36\x81\x2b\xef\x30\xca\x03\x27\x03\x9d\x8b\x9e\xa9\x12\x95\x39\x2f\xc3\x94\xb8\x81\xe2\xd2\xac\x9e\x30\xc5\xa4\x42\x56\x70\x0f\xc9\xde\x0d\xba\x29\x82\x73\xae\xc3\x0c\x4f\x77\x8d\x2e\x71\x27\xe8\xb8\xa8\x8b\x02\x74\xfc\xe0\x40\x81\xcc\x13\xad\xbe\xfe\x55\x50\x14\xe1\xb5\xd5\xdc\xf6\x22\x4c\x5a\xe2\x77\x54\x23\xa6\x6c\x81\x81\x8e\xec\x01\x4a\x3f\xaf\x9e\xe7\x5a\x3f\x6c\x3e\x51\xc5\x56\xb0\xa2\x88\xe8\xc2\x62\x94\x66\x84\xeb\x62\x8b\x88\xe3\xf8\x75\xe6\x2e\xf6\xe8\x01\xca\xe7\x5f\x61\xce\xe4\x04\x97\x1c\x39\xd2\x4a\x97\x12\xeb\x34\x2d\xdc\x66\x35\x15\xde\xc1\x03\xb1\x8d\x97\xd7\x8e\xd6\x82\x12\xf2\x79\x00\xe7\x7c\x04\x9b\x60\xc8\x53\x00\x2b\x08\x02\x2d\xf5\x6f\x70\x7e\xfa\x71\x02\x75\x89\xe1\xa3\xca\x6e\x41\x5b\xa5\xf4\x43\x7e\x97\x8b\x07\xaf\x3b\x73\xba\x0d", ); test::( b"\xa2\x80\xe8\x9c\xeb\x2c\x8c\xf2\x62\x97\x19\x1b\xaf\x9a\x95\x5d\x0d\x52\x37\x5d\xa0\x23\x63\x3e\x0a\xfc\xdb\x0d\x39\xdc\x33\x5d\x82\x95\x85\x2e\xf4\xd0\x67\x14\xe6\x51\x1a\x95\xd3\x7c\x04\xd2\x68\x18\x60\x6a\xda\x54\x35\x9b\x7d\x07\x84\xaa\x93\x3c\xc6\x85\x61\xee\x96\xa8\x89\x10\xaa\x3d\x93\xd1\x07\x87\xcd\x1d\x75\x80\x55\x67\x31\xc1\x74\xa6\xe3\xa3\x2d\x9d\xcf\xa4\x16\x60\x4f\x0c\x67\x14\x81\xd0\x51\xf6\x3d\xb6\x91\x9f\x4a\xba\x44\x86\xd1\xb0\xfd\xc6\x11\x2c\x15\x21\x55\x9f\x42\x45\x23\xc2\x6b\x4f\xb7\x38", n, e, b"\xcd\x60\xde\x3b\x4a\x12\x89\xa8\x4c\xa7\x61\xf9\x0f\xa6\x3f\x4d\x56\x88\xbd\x88\x5f\x4b\x53\x1c\x85\x15\xad\xd2\xde\x12\x51\xf9\x93\xff\x7f\x98\x6b\xef\x3f\xba\x69\x2e\xcd\xeb\xc8\x19\x42\xd7\x42\x9c\x7a\x59\xc5\xd3\xf1\xfb\x87\x2f\xc1\xda\x19\x15\xe9\x45\x86\xa5\xc3\xd9\x63\x60\x36\x19\x00\x8f\x7e\xfe\xde\xd1\xd7\x0b\x0a\x11\xce\x2c\xd8\x1b\x5b\x0d\x86\xb3\x76\x0c\x94\x83\x67\x4f\x55\xe9\xfa\x47\xf2\xf3\x10\xd5\x88\xfb\x21\x60\xe8\xb5\xc3\x2b\xe4\xe7\xa9\x68\xd5\xa8\xd4\xac\x65\x76\xb7\x1a\x2b\x91\xcd\x6a\xf0\x01\x6c\xbc\x81\x6d\x4a\xae\x8c\x70\x64\x9e\x08\xdc\xe9\x0b\x3c\xe5\x2a\xb4\x9c\xe2\xcb\x5b\x0e\xd8\xa4\x5e\x33\xd9\x4c\xf2\xd4\xcf\xde\xe1\x15\x12\x70\xb2\x07\x3a\xef\xfe\xaf\x71\x7d\x39\xe0\x41\x92\xb8\xb6\x93\xc5\x3f\x21\xa6\x12\x38\x13\x28\x08\x06\x92\x0b\x7d\xc5\x82\x20\x1c\x9d\x11\x70\x50\x32\x06\x71\xe8\x61\x39\xa0\x27\x97\x6b\x7e\xcf\x41\x33\x69\xa9\xfc\x28\xe0\xbd\x71\x9c\xeb\x5e\x10\x7d\xe7\x99\xf1\xbc\x2e\x25\x5a\x9f\x29\x47\x6d\x45\x74\xd1\x33\x2f\x66\x46\x8a\xfb\x90\x04\xff\x7b\x53\x53\x02", ); test::( b"\x85\xed\x1e\x3d\xfc\xd5\xbc\xa2\x4c\xad\x1d\x01\xeb\xe1\x92\xb7\xd0\x59\xec\x9b\x88\x44\x36\xe1\x87\x14\xa4\x3f\xbc\xc9\xc6\x4f\x68\x73\x01\x35\x2f\xf2\x40\x81\x70\x01\xe7\x57\xd2\x73\x09\xcd\x1f\xbb\xda\x94\x56\xb2\x67\xdb\xfb\x95\x84\x70\xb2\x4d\x06\x28\x0c\xf4\x33\x82\xa1\x94\x77\x87\x5f\x32\x59\xf4\x21\x0b\xac\x9b\x83\x1d\x0a\x07\xf5\xe9\x7e\x5f\x0f\x78\x81\x8c\x25\x9c\x28\x9e\x1a\x78\x9b\x6c\x79\x42\xc9\x7b\xc1\x48\x5a\x22\x01\x31\xe5\xeb\xa5\x86\x64\x3b\x90\x71\xe5\x36\x6b\xc4\x82\xdd\x3c\x3c\x92\x79", n, e, b"\x13\x81\x34\xbb\xec\xef\xaf\xc7\xca\x8b\x10\x2c\xbe\x87\xb0\x12\xf8\xaa\xda\x88\x78\x99\x50\x02\xcf\x18\x87\x69\x4b\x5b\xe3\xb8\xf0\xbb\x61\x6b\xc6\xe0\x79\x62\xd5\x48\x2d\x3a\x52\xc5\x2a\xb9\x1b\x3e\xe0\x06\x4d\x24\x55\x8e\x13\xc7\x5c\x80\xf6\xa9\x5b\x7d\xc4\x98\x44\x28\x79\xd5\xba\xf8\xff\xa7\xe2\xf6\x38\x80\x8b\x97\xff\x70\x13\x6b\xb6\x45\xe3\x09\x44\xdd\x97\xa9\x97\xa0\x20\x51\x69\x55\x3a\x5b\x9e\x87\x4c\x5a\x94\x41\xe1\x8c\x15\xeb\xed\x76\x04\x3b\x63\x9d\xfd\x64\xdb\x79\xe1\x74\x84\x7a\x10\x27\x24\xa2\xa0\x5c\x64\x94\x73\xcc\x7d\xac\xd3\x9e\x2e\x1d\x56\x66\xbb\xb5\xf0\x12\x46\x74\x70\x48\xff\xfc\xdf\xcd\xdf\x78\x2d\xa2\x4a\x6d\xcc\x02\x2b\x26\x95\xf7\x07\x81\xbd\x9f\x8f\xf7\xd0\x3b\xe2\x2e\xb8\xfc\x79\x3f\x5c\x07\x1a\x66\xd9\xa6\xea\x46\xc6\xa2\xcf\x05\x56\x52\x6b\xa8\xb0\x85\x07\x35\x46\x44\x80\x81\x73\x2a\xc1\x5f\x12\x83\x3c\x1d\xb1\x70\x1f\xf7\xf6\x83\x44\xca\x65\xdf\xf8\x62\x11\xa0\x03\xad\xbf\x51\x89\xcf\xae\x79\xea\xa8\xc8\xb7\x14\x1e\xa3\x78\xe4\x4c\xc9\xc5\xbf\x02\x4d\x2c\x71\x0f\xf5\xcd\x68\xaf", ); test::( b"\x0b\xdb\xa3\x4e\x35\xfc\xa6\x5a\x17\x81\xd4\xd7\xc9\x33\xa5\xf2\x10\xd3\xa5\x94\x83\xae\xbc\x95\xec\x71\xb3\x2d\xf1\x3f\xf4\xab\xf4\x01\x91\x69\x37\xfd\x88\xff\x44\xab\x46\xb7\x8c\xc3\x69\x41\x4e\x9b\xca\xa8\xba\xb0\xbb\x85\x57\x82\x8d\x73\xa2\xa6\x56\xc2\xf8\x16\xf0\x70\xb5\xcb\x45\x54\x9e\x8e\xca\x9d\x7c\x0b\x4a\x7b\x0a\x27\xe5\x1c\x11\x93\x58\xda\xd2\xa1\x7f\xb3\xa4\x57\x18\xf9\xde\xc3\xc9\x4a\xf7\x8d\x65\xc3\xec\xd3\x6b\x71\xe2\x30\xcf\x08\x0d\x1e\xfd\xd8\xd0\x7f\x1c\xfc\x26\x76\x8f\xd5\x40\x7b\xc2\xb7", n, e, b"\x9f\x48\xde\xb9\x6b\xec\x0b\x72\xfb\xc4\xf1\x2f\x08\xaf\xb4\x6b\xcc\xf1\x9d\x9e\x0c\xd0\x36\x8e\xbe\xb3\x12\xd8\x38\x72\x62\x63\x80\xac\x92\x8b\x61\x2c\x5c\xd7\x74\x38\xd4\x7a\xa9\xce\xea\x90\x5a\x9d\xe7\x18\x2c\x8e\xf7\x6e\x8a\x7a\x03\xd6\xef\xec\x84\x00\xb6\x49\x63\x62\xbf\x6a\x30\xce\xb1\xce\xd2\x18\x5f\xc7\xc2\x11\x7b\x6a\x6d\x88\x8a\xc2\x0c\x16\x87\xb0\xf2\xaa\x9b\x76\x70\x5f\xd3\x15\x48\x89\xb6\xac\xaf\x4e\x63\xbe\x25\x88\x0c\x71\xe6\xc2\x39\xec\xfb\x96\x50\x04\xcd\x63\x21\x25\x7f\x84\x6a\xfd\x2a\x65\x90\xc7\x2a\xd8\x31\x46\xee\xfc\x7b\x0d\xc4\x79\x63\x39\xa7\xf6\x4d\xa0\xfb\xe3\x59\xf9\x4a\xce\x1f\xd1\x51\xc5\xac\x7b\xb5\x70\x7b\x32\xea\xcf\x56\x4f\xe1\x62\x2e\x66\xe1\x84\x4e\x63\x96\x02\xca\x36\x27\x4a\xe0\x1f\x93\xe6\xb2\xbd\x1e\xff\xd3\x4a\xb6\x3d\x85\x2c\xc9\xca\xf3\xce\x84\x46\xc2\x9c\x8a\xe3\xc6\x11\x0f\xb7\x53\x8c\xc8\x37\x1c\x2a\x39\x81\x24\x9c\xdc\x1b\xe2\xb2\x4b\x6a\x0c\x95\x17\x64\xd0\xb7\xef\xa9\x2a\x22\xcd\x8e\xd1\x65\xe1\x82\x86\x35\x79\x37\x79\x97\xa9\xee\x50\xc8\xac\x3a\xa4\xdf\x1a\xca", ); test::( b"\x9a\xee\xd8\x5b\x40\xba\x7f\x86\xa2\x28\xb5\xa1\x51\x5b\xa1\x90\xb2\xef\xff\x66\x99\x3a\x5e\xce\x19\xd1\x8b\xaa\x9b\x4e\x4d\xf9\x2e\x51\x52\xfe\x1e\xc5\x6a\x9f\xc8\x65\xf3\x0b\xac\x7e\x94\x9f\xc4\xf6\x2f\x0b\x15\x8d\x10\xb0\x83\x63\x6b\x4d\xe9\xbb\x05\xdb\x69\xfe\x31\xb5\x01\x03\xfe\xfc\x5f\x8d\xaf\x3a\xf7\x15\x6b\x45\x52\xca\x36\x67\xa9\xd7\x20\xbb\xb2\xe4\xbc\xda\xba\xdf\xd4\xb7\xf4\xfc\x5b\xc8\x11\xfa\xa3\x67\x10\xa9\xd1\x77\x58\xa9\x8d\x4a\x04\x74\xfe\xc2\x7e\x9e\xf5\xb7\x4f\x5c\x68\x99\x35\x44\x23\x57", n, e, b"\x9e\xec\xdb\xd7\xfb\xf6\x18\xdd\xdd\xfb\x6e\x75\xd6\x44\x40\xf6\x04\x45\xb8\x53\xc5\x42\xfe\x0f\xba\xaa\x6a\x43\x12\x94\xe6\xcb\x66\x83\xae\x1a\x71\xea\x05\x5e\xb4\x9c\xd2\xa3\xcb\x51\x54\xdc\x93\xd9\xaa\x16\x63\x99\xf4\xe6\x29\x4f\x0e\xb0\x65\x28\x00\xd7\x1e\x04\x1c\x1c\xe1\xad\x84\x9c\x03\xc9\x63\xbc\x09\x29\xdc\xdd\x11\xbe\x5d\x67\xa0\x50\xd0\x2b\x64\xb2\x9e\xab\xa6\x55\x64\x2b\x64\x36\xfb\xfb\x16\x36\x90\xbf\x43\x2f\xdc\xee\xdd\x10\x6c\x2f\x49\x72\xec\xbf\x30\x77\xed\x8b\x75\x3b\xb6\x05\xec\x1e\xa0\x30\x20\x83\x9a\x31\x8a\x24\xf8\xd4\xc1\xd7\xd8\xdf\x99\xa7\xf0\x01\x0a\xe4\x1a\x8b\x06\x8e\x28\x88\x53\x10\x56\xa7\xda\xbb\xe9\x21\x87\x8d\xcd\x3c\x7d\x69\x41\x68\x67\xf4\x01\x2a\x60\x6a\xe8\x68\x55\xf1\x5a\xed\x0d\xa1\x25\x0e\x59\x68\x77\x06\xe8\x9c\x94\x94\xba\xf3\x7f\x61\xfb\x17\x03\xb7\x99\x28\x79\x5f\x90\xcc\xbe\x29\x3a\x1e\x94\x72\xf6\xe0\xf4\xb8\x90\xfd\xda\x3e\xa2\x52\x2e\x3d\x11\xd5\xab\xdf\x00\x69\x51\x94\x24\xd1\x47\xb5\x64\x6a\x5a\x60\x1f\x19\xec\x89\x72\x9a\x8b\x48\x46\x1e\x71\xc0\x8b\xbe\x9c\xda", ); test::( b"\x65\x4e\x18\x9f\x06\xc7\xd4\x2d\x55\x39\xa5\x87\x21\x84\xf8\x33\x6c\xf1\x00\x69\x1f\x19\x08\x18\xfd\x02\x08\x2a\xd6\x8a\x76\x09\xfd\x09\x5e\x62\xfc\x32\xb5\x29\x85\x3a\xeb\xdd\xac\x3d\xbf\x0d\x54\xdd\x57\x1b\xe7\x2c\x90\x40\x4b\xcc\x93\xd0\x11\x54\xa9\xbf\xef\xf6\x50\x65\x70\x5f\x8e\x7e\xea\xdf\x85\x75\xb1\xca\x48\xe2\x8a\x1e\xed\x51\x62\x65\xe3\x45\x40\xdd\x86\x7c\x79\xd7\xf1\x75\x23\x5d\x13\x30\xcb\x17\x06\x35\x6b\x70\x9b\xd7\x96\xf4\x3a\xba\xf6\xfc\xe9\x93\xf8\x8e\xaa\x2f\xc6\x7f\x0a\xb7\x76\xda\xf7\x32", n, e, b"\xaf\x90\x29\x8b\xce\xf6\x15\x30\x9f\x23\x5d\x5c\x33\x60\xf0\xdf\x11\xf5\xfb\x98\x87\x89\xf2\x13\xd4\xc4\x61\x34\xfe\xe5\xeb\x10\x4a\xa1\xfa\xbb\x13\x07\xc9\xa9\x04\x70\x9d\xe8\x86\x73\xed\x99\x51\xcb\xa9\x31\x67\xc6\x7c\x09\xd8\x27\x02\x1b\x08\xa2\x2c\x05\x05\x82\x8a\xb4\xbe\xb4\x2e\x59\xa3\x88\x32\xcb\x4d\xa2\x4e\xcf\x91\xf4\x70\xa3\xb4\x12\xc0\x71\x2a\x8a\x59\xf6\xf2\x73\x9d\x4e\x9e\xb4\xcc\x58\xd2\xc5\x25\x92\xf1\x45\x2d\xc6\x57\x59\xab\xe4\x3e\x8d\x2b\xc8\x04\xe2\xef\xb3\xef\xc9\xb2\x3c\xc1\x73\x4f\xf7\xca\xef\xa4\x6b\x03\xba\x4b\x39\x7d\x07\x14\xcd\xb8\x50\x1a\x81\x2c\x1b\x9f\x47\x41\x1c\x91\xcb\xa5\x3a\x3d\x3b\x13\x9e\xdb\xd7\xcb\xb5\x43\xf5\xbf\x38\x29\xba\x7f\x5f\xaf\xd8\xa7\x12\xc0\xb1\x11\x94\x3f\x53\x20\x93\x53\xaf\xab\xa1\x76\xb3\xf5\xdc\x06\x03\x39\xd0\x9b\x1f\xb3\xc2\x13\xda\xe5\xd0\xf0\x04\xd3\x02\x82\x85\x60\xfb\x5d\xeb\xf9\xfe\x49\x1e\xaa\x66\xf5\x97\xaa\x4d\xe2\x3e\xee\xf9\x17\x63\x58\x75\x5c\x95\x2e\xf9\x6e\x36\x72\x58\x3b\x6e\xcd\x95\xa0\x2e\x8c\xa7\xb2\x1d\x7c\x20\xcb\xb7\xa7\x57\xaf\x71", ); test::( b"\x12\x1f\x80\xb4\x3f\x97\x57\xb3\xfa\x80\x90\x6a\xea\xb2\x32\x19\x5f\x0e\x2c\x41\xe5\xbf\x8c\x09\x1a\xc0\xf1\xe0\xbc\x9e\x43\x64\x06\x80\xa1\x82\x3d\x64\x9b\xdf\x86\xab\xa2\x77\xfa\xd8\xbc\x85\xfc\x95\x7d\xa2\xca\xf7\x32\x30\x53\x02\x5f\xf9\x49\x70\x6c\x14\x76\xae\x9b\x09\x53\x28\x3d\x34\xd7\xc6\x26\x6f\x8d\xb6\x5e\xeb\xe9\x6d\x19\x5f\xdc\xe8\xe9\x65\xa6\x38\x33\x20\xec\x3d\xe0\x23\x0a\xb2\x54\x8e\xaa\x69\xa4\x7a\x96\xd8\x03\x98\xca\xd5\x7e\x14\xce\x9e\xea\xc0\x42\x1c\x1a\x6e\xba\x69\x55\x9d\xcd\x8f\x06\x59", n, e, b"\x06\xa2\xd7\x45\x85\xf1\x2e\xa7\xa8\x05\x27\xb8\xc6\x35\xa2\x1c\xc1\x1b\x45\xdb\xb0\x88\x5a\x12\x72\x21\x26\x81\x1d\xd2\x5d\x65\x7b\xfa\x9f\xda\x77\x43\x01\xca\x34\x98\xd0\x5d\xfd\xfb\x78\xa6\xaa\x16\xa9\xf8\xa9\x5f\x40\xf1\xf0\x4b\xd3\x54\xa5\x22\xf6\xa2\xd6\x2b\x32\x4e\xfa\x3c\x00\x6c\x22\xc2\x31\x4b\x01\xfa\x0e\x91\xa3\xdb\xa4\x9a\xa3\x5b\x46\xb1\x98\x04\xb0\x7a\xd9\x8f\xe4\xbc\x99\x03\x93\xa4\xa2\x73\xce\x8f\x1c\x85\xfc\x19\xcd\x5e\xae\x9a\xf0\xb7\xd1\x95\x7b\xb2\x34\x09\x77\x8a\x01\x0b\x00\xc6\x95\x9e\x1b\x67\x06\x6f\xdb\x9f\x84\x95\xb4\xde\x4d\xcb\xb9\x87\x35\x81\x45\xb1\xff\x6a\x39\xef\x6f\xc5\x88\xcd\xa1\x74\x4e\x0a\xb9\xe7\xeb\x00\x2c\x29\xa7\x85\x31\xd2\x51\x57\xc5\xc2\xcd\x64\x70\x55\x15\x60\xa0\x28\x45\xdb\x6d\xbe\xe2\x42\xf9\x65\xa2\x55\x40\x6f\x6e\xf4\x7b\x32\x21\xa5\x11\x0e\xdb\x44\xd3\x8b\x94\x19\x1a\xea\xf4\x33\xc0\xec\xe3\x48\x0b\x9d\x1b\x06\xd8\xb8\xb6\xc0\xa2\x32\xa0\x4c\x56\x78\x88\xe6\x37\x2f\x2e\x94\xbc\x2b\xe6\xb8\x27\xf8\x71\x2a\xf4\x8c\x6f\x1e\x4f\x22\x3f\x55\x28\xfc\xf3\x48\x79\x9d", ); // [mod = 3072] let n = b"\xdc\xa9\x83\x04\xb7\x29\xe8\x19\xb3\x40\xe2\x6c\xec\xb7\x30\xae\xcb\xd8\x93\x0e\x33\x4c\x73\x14\x93\xb1\x80\xde\x97\x0e\x6d\x3b\xc5\x79\xf8\x6c\x8d\x5d\x03\x2f\x8c\xd3\x3c\x43\x97\xee\x7f\xfd\x01\x9d\x51\xb0\xa7\xdb\xe4\xf5\x25\x05\xa1\xa3\x4a\xe3\x5d\x23\xcf\xaa\xf5\x94\x41\x9d\x50\x9f\x46\x9b\x13\x69\x58\x9f\x9c\x86\x16\xa7\xd6\x98\x51\x3b\xc1\xd4\x23\xd7\x00\x70\xd3\xd7\x2b\x99\x6c\x23\xab\xe6\x8b\x22\xcc\xc3\x9a\xab\xd1\x65\x07\x12\x40\x42\xc8\x8d\x4d\xa6\xa7\x45\x12\x88\xec\x87\xc9\x24\x4b\xe2\x26\xaa\xc0\x2d\x18\x17\x68\x2f\x80\xcc\x34\xc6\xea\xf3\x7e\xc8\x4d\x24\x7a\xae\xde\xbb\x56\xc3\xbb\xca\xff\xb5\xcf\x42\xf6\x1f\xe1\xb7\xf3\xfc\x89\x74\x8e\x21\x39\x73\xbf\x5f\x67\x9d\x8b\x8b\x42\xa4\x7a\xc4\xaf\xd9\xe5\x1e\x1d\x12\x14\xdf\xe1\xa7\xe1\x16\x90\x80\xbd\x9a\xd9\x17\x58\xf6\xc0\xf9\xb2\x2a\xe4\x0a\xf6\xb4\x14\x03\xd8\xf2\xd9\x6d\xb5\xa0\x88\xda\xa5\xef\x86\x83\xf8\x6f\x50\x1f\x7a\xd3\xf3\x58\xb6\x33\x7d\xa5\x5c\x6c\xfc\x00\x31\x97\x42\x0c\x1c\x75\xab\xdb\x7b\xe1\x40\x3e\xa4\xf3\xe6\x42\x59\xf5\xc6\xda\x33\x25\xbb\x87\xd6\x05\xb6\xe1\x4b\x53\x50\xe6\xe1\x45\x5c\x9d\x49\x7d\x81\x04\x66\x08\xe3\x87\x95\xdc\x85\xab\xa4\x06\xc9\xde\x1f\x4f\x99\x90\xd5\x15\x3b\x98\xbb\xab\xbd\xcb\xd6\xbb\x18\x85\x43\x12\xb2\xda\x48\xb4\x11\xe8\x38\xf2\x6a\xe3\x10\x9f\x10\x4d\xfd\x16\x19\xf9\x91\x82\x4e\xc8\x19\x86\x1e\x51\x99\xf2\x6b\xb9\xb3\xb2\x99\xbf\xa9\xec\x2f\xd6\x91\x27\x1b\x58\xa8\xad\xec\xbf\x0f\xf6\x27\xb5\x43\x36\xf3\xdf\x70\x03\xd7\x0e\x37\xd1\x1d\xdb\xd9\x30\xd9\xab\xa7\xe8\x8e\xd4\x01\xac\xb4\x40\x92\xfd\x53\xd5"; let e = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xea\xf0\x5d"; test::( b"\x25\x4c\xe3\x6e\x8e\xd6\x2e\x08\x87\xd4\xbe\x00\xee\xfa\x82\x51\x5a\xce\xf9\x56\x54\x0c\xff\x45\xc4\x48\xe7\xf9\xa9\xd5\xc9\xf4\x0d\xe6\x1d\xa4\x39\xf3\x89\xe5\x25\x5e\xf8\xc8\x32\x57\xec\x92\x1b\xfd\x15\x08\x29\xc5\x22\xea\xa7\x20\xd7\xbe\x96\x58\x60\xce\xa2\xbb\xe5\x74\x54\xfc\x5e\x95\x88\xd6\xa9\x6c\x22\xf2\xd9\x89\xfd\x0b\xd2\x19\x24\x50\x13\x67\x45\x0a\xd2\xa3\x62\x7e\x4e\xe3\xca\x15\x61\x67\x48\xba\x54\x21\x9a\x84\xf8\x74\x24\x95\xf2\x3d\xe6\x42\x57\x10\xac\x74\x79\xc4\x84\x4d\x00\x31\x75\x0f\x3c\x38", n, e, b"\x9d\xfd\x3f\x32\x09\x1b\x91\x6a\x56\xf4\xf3\x57\xa9\x61\xa5\x25\xa5\x27\xfd\x29\xb1\x14\xb3\xf0\x38\x29\xdf\x1b\x25\xc0\xc5\x97\x3b\x1c\x51\xaf\x36\x63\x31\x16\xf4\xc7\x7a\xa2\xf6\x77\xa3\xb0\xf8\x23\x68\xa5\x38\xbd\xb3\x3e\x49\xdb\x9f\xa7\x04\xbd\x51\x23\xed\xef\xbd\x3a\x86\xdc\xc3\x92\x83\xc2\xa0\x3c\x96\xc6\x90\x30\xf0\x4c\x64\x84\x17\xf5\x44\xf0\x8a\x9b\x4e\x01\xae\x4d\x42\x9e\xf2\x14\x22\xdd\xfe\x76\x83\x4f\x92\x5c\x56\x53\xb1\x22\x78\x35\xa9\xa4\x41\x3d\xa7\x94\x2b\x0a\x01\x51\x96\xfa\xec\x31\x50\x41\x11\xc9\xf0\x84\xd6\xdd\x6d\x5a\x69\x56\xc5\x54\x12\xc1\xbd\x14\xaa\xf9\x5d\x82\x8e\x84\x49\x61\xfd\xd6\x0c\xc0\x78\xf1\x69\xf6\xe1\x18\x6c\xb0\xcb\x6b\xa3\xd2\x11\x68\xc5\xbf\xd0\x67\xdc\x6e\x46\x07\x84\xe7\xc6\xa7\x6e\xe3\xd8\xb3\x32\xac\xfa\x97\xe5\xd4\xb6\x56\xec\x8c\x61\x1e\xbd\x89\x6f\xe9\x0e\x61\x9b\x58\x8d\x0c\x61\x54\x92\x46\x4a\x1b\x3d\x05\xd3\xa9\x63\xf4\x51\x05\x1c\x65\xd8\xf8\x1f\xee\xa9\x25\xbc\xbe\xe9\xce\x7a\x39\xba\x3c\x91\x5a\x18\xa2\x4a\x45\x1e\x47\x0e\x76\x1d\x09\x85\x5a\x96\x5e\x83\xed\xae\x3f\xca\x41\x67\x8c\xc9\xd0\x98\xba\x99\x28\xb5\x25\xb5\x0e\x48\xcb\x03\x0c\x51\x0c\x4c\xe7\x27\xc6\xb9\x3b\xd0\x91\xb7\xd2\x0b\x4b\x96\x11\x65\xae\x0e\x28\x48\xaa\x99\x5b\xb7\x3a\xbe\x9a\x26\x34\x37\x8d\x22\x41\x28\x54\x1a\xb0\x56\xa3\x1b\x78\x48\x85\xae\xf8\x03\x4d\xed\xac\x13\x16\x74\x02\xf9\xf6\x2b\x55\x74\x12\x20\xdf\x8a\xff\x5d\xef\xb6\x9c\x03\x5d\x9a\x31\xe2\xa5\xb8\x81\x70\x57\x24\x1b\xcf\x85\x49\x32\xf5\xed\xee\x7e\xe6\x6e\x89\x17\xaa\x4a\x71\x8b\x6c\x44\x6b\xdd\xf0\x84\xf5\xcd\x76\x9c\xae\xff", ); test::( b"\x35\xad\xcd\x3f\x24\xb6\x72\x55\x18\x81\x5c\xf4\x60\x6f\x7b\x1d\x94\x0c\x39\x63\x84\x37\x0a\x37\x6e\x84\x45\x69\x74\xde\x32\xec\x4c\x71\x64\xda\x3a\xc7\x49\xb7\x3b\x30\xff\xfa\x83\x68\x69\xc9\x2a\x74\x83\x05\x23\xcd\xf2\x86\x6d\xc0\xe0\xa8\x8d\x15\x06\x06\x3b\xef\x0a\x85\x5c\xf3\x0c\x95\x30\xac\x7c\xb3\xcd\x2e\x2e\x32\xcc\xfa\xb0\x3c\x42\x22\xdb\x14\xf2\xae\xa8\x9d\xc0\x3d\x45\x20\x69\xf0\x68\x4a\x72\x83\xe4\x74\x5e\xbd\x7a\x28\x24\x0b\xf1\xe0\xe0\x68\x68\x10\xc9\x7f\xec\x67\x63\x14\x46\x52\xf6\xa0\x16\xc3", n, e, b"\xb5\x12\x0b\xe9\x8b\xcd\xfd\xc1\xe1\xe3\x31\x2d\xd7\xb5\x91\x0f\x07\x31\x32\xa4\x27\x76\xc4\xda\x75\x69\x0c\x64\x1f\x32\xd2\x89\x91\x87\xd9\xb3\x9b\x55\xf9\x9e\xbe\x6c\xa0\xa0\x80\x36\x37\x27\x49\x81\x67\x06\x66\x4f\x39\xb2\x73\x12\x13\x5c\x50\x33\x9f\x2b\xb1\x7b\x2c\xee\xe2\x57\x68\xc2\xbc\x0a\xc3\x7d\x6c\xa6\xee\x90\x3c\x84\xe8\x2e\x2f\x4d\x00\x5d\x73\xbd\xc3\x35\xf1\x35\x39\x9c\x49\x12\x36\x62\xe8\x90\x81\x19\x91\x84\x37\xed\xb6\x15\xb1\x4e\x90\x6c\x9f\x8b\xa1\xb8\x5d\x5b\x45\x90\x9f\x43\x9c\xc8\x99\x29\x51\xbe\x16\x84\xa9\x9e\xba\x04\xec\xb0\xf6\xdf\x92\x33\x53\x51\x69\x77\x77\x4f\x69\xe8\x26\x65\x11\x90\xaf\xfa\x86\xa4\x0b\xe7\x5b\x06\xa4\x12\x8e\x55\x09\xc5\x15\x57\xae\x4f\xb4\x10\xc7\xe5\x84\x1a\xc9\xfd\xc4\xbc\x1f\x97\xe2\x86\x24\x29\xf3\x71\xaa\xaf\x99\x82\x4d\xac\xfe\xe0\xbc\x39\x61\xfb\x98\xb3\xff\xc0\x91\xf7\x79\x56\x22\x3e\xbf\x5b\xb5\x46\x55\x23\x58\x20\x8a\x32\xef\x9c\x37\x82\x5e\x81\x66\x8f\xd2\xc2\x30\xf7\x88\xca\x16\xff\xbc\xc0\xf1\xd8\x84\xb3\x0f\xe8\xef\xe6\x49\x82\x95\x00\x4c\xa7\xc7\xf2\xb1\x73\xe5\x66\x6b\x8b\x0f\xdf\x9d\x32\x75\x65\x59\xf9\x9d\x10\x5c\x1e\x80\x42\xa7\xae\xd7\x26\x2c\xa9\xa1\x70\x25\xaa\x09\x60\x75\xfe\x44\x33\xf3\x4d\xb6\xb0\xf1\x97\x77\x6c\x21\xfb\xe0\x0e\x83\x2e\xba\x02\x8e\x66\x52\x65\x30\x18\x07\x9f\xee\x04\xeb\x3e\x3c\x12\x80\x3c\x39\x83\x0d\x07\x2a\xb4\x97\x1b\xca\xb4\xb7\x97\x58\x69\x4b\x5d\x3d\x8a\xb2\x1c\xe8\x74\xb7\xc4\x2b\xed\xd5\x26\x52\x21\x9f\xf5\x16\xfd\x69\x4c\x3d\x7c\xb0\xbe\xf0\x18\x1b\xb8\x5e\xb4\xb1\x31\x84\xea\x3a\xef\xe3\xcc\xee\xa5\xc5\x75\x96\xf7", ); test::( b"\x0b\xa5\x73\xa9\xdb\xb7\xf6\x2e\x5a\x4d\x3d\x84\x1b\xfd\x92\x98\xe8\xbb\x29\x9e\xb4\xfd\xb2\x56\xd1\x1d\x2f\x8d\x64\xfe\x03\xe6\x15\xf2\x4c\xda\x0b\xdb\x73\xfe\x17\x91\x02\x84\x2f\x84\xb5\x05\x1f\xa3\xd3\x7e\x7b\x7c\xbe\x98\xd8\xa4\xc9\x2c\x3b\x59\x4b\x06\xd2\x66\xf2\xe9\xe2\x47\x59\xd4\x01\x8e\xdc\x84\x85\x85\xab\x3a\x3c\x15\x1d\xbe\x5e\xe6\x47\xa4\xbf\xc8\xce\xce\x49\x52\xf9\x32\xaa\xc8\x0a\xdd\x4a\x42\xcf\x38\x80\x0b\x74\x8b\x05\x48\x9b\xbf\xa9\xda\xae\x68\x44\x85\x74\x03\xf0\x51\xe3\x7b\x75\x30\x36\xf3", n, e, b"\x36\xfd\x68\x13\xab\x41\x1c\x4d\xcb\x2d\x7b\xe1\xed\x61\x6c\x1e\x40\xde\x29\x1a\x00\xac\xd8\x7d\x2b\x4d\x9d\x4b\x73\xc8\x86\x4a\x44\x41\x3c\x51\xf0\x9b\x37\x84\x4a\x98\x04\xf8\x23\xb2\x7a\x90\x94\x62\x7a\xaa\xf0\x0a\x6b\xe9\x42\xd7\x55\x8b\xe1\x1b\x84\xa7\x3d\x98\x02\x9c\x2e\x26\xeb\x8f\x65\x05\x80\xec\xb1\x1b\x4e\xc2\x36\x35\x97\x33\x34\x44\x56\x96\x34\x35\x16\x00\x21\x29\x62\xfe\xf5\x35\x2b\xdb\xa3\x67\x83\x28\x99\xd3\x18\x8a\x74\x72\x36\xf0\x85\x28\xf0\x86\xd9\x3c\xa3\x3a\x06\xb1\x03\x92\xbb\xbd\x62\x5c\x86\x7d\xdb\xa7\x4b\xb1\x51\xdc\xc6\xaf\xdd\x4c\xe4\x10\x16\xdc\x2e\xf0\xce\xea\x2c\xa2\x09\x17\xfb\xdb\x07\x77\xe2\x35\x03\x46\x4d\x0b\xb5\x9c\xd4\xe1\x2c\x10\x94\x52\x50\x88\x9b\xae\x2e\xd8\x39\xb7\x09\x64\xb2\xc9\xd9\x57\xea\xc6\x22\x2a\x49\xb3\x37\x73\x04\x11\x98\x44\x48\xe5\x8c\x02\x73\x71\xbc\xf9\xc2\xc7\xd6\x86\xde\x3b\xda\xe1\x67\x38\xdb\x52\x76\xe0\xf5\x38\xd1\x5b\x35\x41\xc0\xed\x86\xd3\x18\xb4\x23\xd8\xc7\xf1\x85\x96\x02\x10\x8a\x4b\x11\xc2\x77\x29\x41\x39\x6a\x14\xa2\xa8\x8e\xc7\x97\x12\x97\xc1\x86\x33\x02\x09\x98\xee\x02\xb3\x11\x4d\x19\x01\x2a\x09\xa1\x81\xd0\x1f\x11\xcb\x8f\x8c\xb5\xf4\x38\xe8\x2f\xb4\x5e\x76\x78\xbc\x8d\xf9\xa2\x6f\x1a\x34\x95\x43\x9a\x7a\xc1\xf1\xbd\xa6\xfb\x86\xc9\xb3\xed\x6c\xb5\xf7\x88\x63\x49\x46\x34\x8b\x7e\x24\xb0\x89\x4c\x39\xc5\x06\xce\xd2\xda\x65\x7a\x33\x5e\x54\xe8\xf9\x97\x38\x4e\x40\xc5\x6a\x17\xa2\x8a\x9b\xb6\x48\x75\xa1\x59\xca\xda\x5a\x64\x4a\xb3\xbd\x6e\xa7\xbc\x4c\xca\xed\x43\xdd\x09\x55\xf6\xbe\x6e\x45\x9e\x2e\x6a\x7b\xa6\x52\xf1\xe9\xa3\xf8\xa8\x3e\x47\x95", ); test::( b"\x89\x53\x0f\x81\x6a\x5e\x2a\xbd\x4b\x42\x2f\xdf\x96\x8f\xfd\x96\x4e\x0c\xcf\x82\xa4\xfc\x6d\x9a\xc5\xa1\xa4\xcb\xf7\xff\xf3\xe1\xe4\xe2\x87\xab\x35\x22\x6a\x5a\x63\x26\xf7\x2b\xca\xa7\x91\x46\x00\xb6\x94\xe5\x64\x01\x8c\xb8\xfa\x52\xa5\x89\x76\x58\x63\x1c\x96\xaa\x93\x59\xb5\x09\x82\xac\x9e\xe5\x6c\xad\x9e\x23\x37\xfc\xdd\x1e\x61\x6f\xed\xec\x38\x70\xa4\xe2\x49\xa0\x27\x5a\x1a\xc1\x48\xb3\x1c\xd2\x12\x9a\xdb\x7b\xa1\x88\x78\xac\x38\x8c\x59\x82\x8d\x4b\x1f\x6a\x67\x45\xd8\x88\x6b\x5a\x76\x5a\x33\x8c\x81\x98", n, e, b"\x27\xc7\x96\xca\xee\xe6\xb4\xbc\xd7\x50\xd8\xdf\x13\xcb\xe5\x16\x4f\xd7\x26\xf9\x1b\xaa\x57\x5f\x70\x2f\xe2\x96\x67\x44\xcf\x2b\xef\x38\xc9\x3e\xfa\x11\x11\xc9\x27\x7d\x77\xf3\xec\xf6\x97\xd0\x20\x30\xf0\x1e\x3d\x96\x4c\x31\x25\x53\x3d\x40\x88\x34\xb7\xce\x65\x28\x24\x30\x3e\xb2\x78\xdc\xa6\x10\x23\xa2\xf9\x28\x03\x52\xf8\x9b\x5d\x03\xd0\x08\xc1\x03\x03\x2b\x2b\x5c\x6b\x8c\xf7\xbe\xfc\x1f\xff\xfa\x9b\x55\x9a\x99\x57\x59\xa8\xd3\x3c\x6f\x49\xae\x57\x4a\x2d\x31\x80\x5a\xb0\x55\xe6\x46\xab\xed\x71\xb3\x0e\xcf\x73\x67\x03\x0b\xf2\x6b\x96\x2d\x41\xa2\xc7\xd7\x73\x5d\xdc\x0e\x5f\x1e\xda\x30\xb1\xae\x6e\xfe\xaa\xe9\xa4\xcf\x50\xb6\x85\x06\xc2\x1b\x12\xe3\xdf\x2b\x99\x3f\xea\xee\x44\x8a\x64\x43\xe6\x13\xcf\x53\x6e\x2a\x71\x1a\xa5\x26\x48\x71\x87\xb4\xfc\xd1\xfa\x68\x4e\x99\x47\x8c\x28\xb8\x4d\x9a\xf0\xeb\x6a\x49\x56\xc0\x37\x7d\x08\xee\x26\xeb\xd2\xd8\xd2\xf4\xce\x7e\x66\x04\x8d\xa3\xc0\x9c\x05\x38\xff\x8e\xfa\x17\x86\x90\xd4\x2f\x03\x41\xb2\x8a\x8f\xcb\x64\x9b\x53\x1a\x07\xaf\x1f\x21\xc4\x24\x32\x42\xe0\x45\xb1\x94\xa0\x4a\xd0\xf9\x2e\xdc\xe4\x82\xf3\x55\xf6\x69\x69\xcd\x90\x25\x4a\xb1\x59\xff\x9d\x9c\x0c\x66\x80\xf7\x8c\x99\x6d\x70\x48\xe2\xc5\xf0\x07\xad\x36\x21\x9d\x67\x2a\x0e\x76\xf1\xbf\x8b\xc8\x90\xfa\xa5\x6e\x49\x3f\x0c\x52\xd0\x9f\xa1\x26\x5c\xe5\x38\xe1\x66\x70\x9a\x00\xa2\xcd\x64\xe4\x5b\x9e\x5a\xca\xe2\xb9\x5d\xcb\x22\xbc\xfe\x96\x30\xe3\x2f\x37\xd0\xbb\x52\x9e\xfc\x8d\x29\x8c\x0b\xa7\xb8\xd6\x5e\x16\xde\xe9\x9a\xd7\x44\x6a\x39\x39\x46\x25\x87\x24\xd0\x8d\x84\x76\xe7\xf1\x6c\xcb\xc0\xe4\x26\x38\x38\x1a\x58", ); test::( b"\xe3\x76\x56\xde\xfd\xee\xdf\xb4\x6b\x14\x62\x8d\xff\x3f\x69\x17\xb8\x42\x0e\x5a\x97\xef\x6c\x54\xaf\xda\x55\xe0\x7c\x60\x43\xdd\x75\xe7\x90\x8b\xe4\x66\xe9\x38\xf6\x29\x00\x1d\x0e\xce\x81\x83\x5f\x94\x48\x2a\xba\xd5\xd1\xea\xa4\xd0\xef\x9b\xac\xac\xc1\x33\xfc\xba\xe2\x2e\x2d\xfb\xe1\x33\x60\xe2\xf1\xf4\x8a\x5a\xe1\x56\x0f\x0b\x4e\xd2\x93\xd9\x17\x1a\x0c\xae\x11\x00\x1c\x7a\xfc\x94\x9f\x78\xb6\x8d\x80\xb2\xaf\xeb\xd0\xc7\x9d\xda\x19\xec\x71\xd8\xef\x31\x89\x1a\xc9\x06\x27\x2c\x0f\xfd\x22\xd9\x74\xd1\xdb\x4a", n, e, b"\xa9\x27\xec\x4c\xeb\x2e\xc1\x47\xcc\x45\x7e\x66\xc1\x2a\x64\x6f\xdc\x41\x2d\x9e\xeb\x1d\x51\xf3\xb5\xa3\xe5\xa8\xf4\xb0\xd3\x6d\xeb\xa3\xa7\x19\x14\xcc\x6f\x23\x21\xc3\x9d\x83\x4a\xdd\xb4\x85\x7c\x82\xab\xe9\x28\x0c\x7c\x82\x31\x89\x39\x04\xbd\x27\x47\x4c\xb2\xcc\xe1\x01\x2b\x92\x1f\x0a\x4d\x63\x80\xaa\xed\x61\x43\x56\xd6\x53\x65\x33\x88\xce\x86\xac\x71\xa2\x7c\x97\x67\x47\xc9\x21\x3c\xf2\x97\xe7\x59\xfc\x3e\x2d\x7b\x1a\xd5\xba\x8c\xb3\x10\x6c\x0a\x67\x62\x44\x79\xce\x55\xd0\xcd\x67\xc2\x4b\x5a\x45\xc1\x80\xef\xb5\x83\x0f\xc2\x0d\x87\xad\x3b\x15\x15\xe9\x0b\x77\xaf\x87\xf0\x6c\x6b\x0e\x71\x29\x71\x8a\x2f\x93\xae\xfb\xd1\x02\x8b\x1a\xc6\x3f\x6b\xd7\xec\xa0\xa0\x02\x69\xc0\x47\x3e\xaa\xc5\x57\x97\x51\x19\x50\xb1\x15\x25\xc2\x41\x41\xcb\x5a\xc4\xcf\xe2\xd9\xfd\xbf\xfc\xbd\xdf\x84\x12\xa7\x0e\xb1\xb8\xf4\x56\x48\x55\x3b\x70\x67\x58\x1b\xc8\xee\x2d\x6a\xa0\x89\xb9\x7e\x40\xdf\xe6\x1c\x33\xfa\xf9\xfc\xd5\x65\x0f\x61\x07\x85\x71\xf0\x3c\x6d\xf9\x4e\x01\xdd\x7f\x90\xf1\xdb\xea\xf0\x42\xd9\xbb\xc8\xb3\x63\x5c\x4c\x89\x93\x28\x52\xb3\x11\xf6\x3f\xf6\x19\x55\x0a\xab\xa0\x0f\x06\x14\x18\x88\x62\x24\xf8\x47\x87\x08\xf9\xec\xdb\xd9\x6f\x0f\x25\x15\x35\x31\x92\xad\x93\xd4\x6c\xfa\x8a\x4b\x3a\xc3\xea\xf7\xab\x9d\x1a\x3c\x4d\xfc\x62\x74\x6c\xeb\x08\x9e\xd3\xab\x40\x51\xae\x09\x27\x4f\x54\xf2\xa9\xc3\x79\xff\xe8\xc8\xc0\x10\x94\x87\xb6\x88\x3a\x48\x49\x41\x5c\x6a\x0c\xcc\xc6\x8b\x30\x96\x93\x8d\x6e\x54\x66\x9e\xda\xf7\xb8\x2e\xc9\x01\xc0\x53\x33\xe6\xc3\x10\x55\x41\xf0\x31\xab\x59\x04\x61\xe7\xf1\xf7\x76\xa2\x93\xe5\x93\xd0\x0d", ); test::( b"\x99\xea\x30\xdf\xbb\x1e\xff\x6f\x56\xad\x6e\x0b\x05\x59\x89\xa2\xcb\xa1\x1f\xd3\x9e\x38\x6b\x00\x26\xb5\xf3\xa4\xc2\x8c\xb1\xe6\xcc\x3d\x71\x6e\x1e\xcb\x7a\x77\xd4\x70\x70\x25\x54\x8f\x79\x19\x8c\xea\x9f\x44\x7b\x15\x76\xf8\xf3\x2b\xfe\x45\x9d\xbf\xca\x82\x3d\x15\x62\x2a\x37\x92\xe7\xea\x53\x72\xf5\xf7\xbd\xb9\xcd\xa5\x50\x6c\xb4\x36\x13\x00\x96\xef\x04\x13\xef\x72\x15\x5a\xec\x47\x75\xdb\xcd\xbc\x10\x5c\x8d\xef\x59\x1b\xc5\x29\x47\xbf\xce\x6d\x9d\x8f\x25\x51\x6f\xe2\x14\x0d\xe2\xd6\x8f\xd2\x33\x45\x5d\x5d", n, e, b"\x69\x21\x0e\xe2\x7a\x00\xdf\xbf\xcd\x50\xaa\xf2\xeb\x50\x2c\x57\x06\xdd\xff\x6d\x9d\x23\xfb\x38\xd1\x11\x2f\x25\xc0\x47\xea\xac\x57\xdc\x90\xa6\xda\x67\x38\x76\x31\x9d\x5c\x04\x49\x4e\xce\x80\x37\xc2\xfb\x60\x20\x3c\x9f\x23\x32\x2e\x2c\x20\x63\xfa\x7d\x19\x16\x5e\xdd\xd8\x9e\x1b\x91\x93\x5a\x2b\x50\x02\x1e\x62\x68\x25\xbf\x19\xcc\x46\xaa\xeb\xfa\xb0\x9b\x49\x04\xde\xde\xf8\xc4\x63\x2a\xae\xdb\x42\x9f\xeb\x68\x7b\xba\xc2\xb4\x06\xf9\x23\xff\x1e\x84\x49\x41\xb0\xc0\x2b\x08\xdc\x2d\x8b\x42\x65\xfc\xeb\x61\xa8\x2f\xce\xf0\x62\x4f\x28\xee\xf3\xa9\x19\x3b\x86\xf1\x5f\x7a\xc4\x70\xdf\x59\x0a\xe8\x55\xa7\xaa\x75\x40\x49\x9d\xd4\x6a\x67\x85\x5a\x5b\xae\x6e\xc5\xdc\xa8\xb0\xc1\x6b\xcc\x69\xc0\xa1\xf9\x21\x8e\xc7\xcc\xae\x21\x7a\xc9\xb4\x7e\x8f\x7c\xae\xfc\x1e\x10\x2e\x3b\xdb\x42\xa6\x77\xfa\xbe\x18\x27\x4a\x5e\x69\x44\x7b\x33\x41\x4d\xf5\xbb\x29\xcc\xeb\x2a\xbd\x35\xc9\x4d\x36\x9e\xed\x25\x63\x02\xd7\x58\xdf\x99\x48\xbe\xe4\xef\xbd\xcc\x4a\xe3\x56\xe7\x8b\xe7\x35\xf7\x42\x5b\x64\x43\xcb\xff\x7e\x85\xc6\x53\xa6\x66\xde\xd2\xe7\x4e\xc7\xf6\x11\x03\xd6\xe8\xba\xc1\x10\xb1\x57\xae\xbf\x61\xce\x32\xf8\xb6\xf5\x67\xac\xbe\x92\xf6\xe3\xe2\x6e\xfd\xd3\x94\x2a\xf6\xc2\x79\xc2\xc7\xb4\xf1\x83\x98\xcc\x0a\xb4\xe2\x76\x88\x1b\x60\x46\xcc\x55\x25\x94\xcd\x96\x56\xf2\x2c\x3e\xe4\x98\x07\xcc\xe0\xf0\x9f\x2b\xfa\x7a\xbb\x87\x97\x27\xb7\x34\xdc\x19\xc4\x68\xf4\xaf\x4d\x72\x0d\xa8\xff\xd6\x50\xcd\xd6\x93\x82\x49\xb6\xa4\xc8\x47\xa5\x13\x83\x88\x8d\x12\x92\xa6\x16\x32\x22\x12\x6d\x5a\x42\xdc\xa6\xfb\x22\x83\xe7\xbb\xb6\xc2\x0d\x7b\x60\xb1", ); test::( b"\x1e\xe4\x3d\xe2\xd8\x79\x7e\x65\xbf\xaf\x52\xc2\x5a\x0b\x00\xb6\xc0\x4e\x0e\x40\x46\x92\x05\x56\x5a\x96\x74\xd6\xaf\x57\x37\xbf\x9b\xe0\xf9\xa1\xbd\x62\xf8\x52\xe2\x87\x08\xe3\x29\x04\xdb\xd2\x66\x6e\x7f\x81\xc5\x4e\x28\xe7\xb0\x77\x30\x86\xf2\x97\x5c\x9d\x1c\x0d\x61\x9e\x27\xfa\xa7\xe2\x5c\x9b\x4c\x9c\x71\xd6\x6c\x0c\xf5\x12\xa0\xf5\xee\x4c\xc4\x50\xc0\x67\xfe\x42\x50\xc4\xfb\x4c\x6a\x13\x7c\xc2\x60\x69\x12\x7e\xf4\x92\x25\xd5\x78\xa8\x3b\xca\x34\xe4\x77\x82\x08\xb5\x60\xf8\x53\x0f\xe5\xf2\x13\x06\x9d\x34", n, e, b"\x3d\xd7\x22\xd2\xf0\x54\x3e\x66\x74\x3f\x8c\xdb\x60\x34\x1d\x61\xfd\x7b\x6e\xf8\xcb\x23\xa9\xe9\xf3\x40\x57\xd7\xa0\xaf\x49\xe3\x08\x26\xaa\x0a\xaf\x1f\xd3\x4e\xfe\xbd\xbf\xc9\x3a\xe5\x21\x27\x11\xa1\x60\xf2\xb8\x78\x6f\x4f\x5b\xec\xc4\x92\x09\xbd\x05\xdd\xf8\xde\x9f\xec\xd0\x0a\xf5\x30\x4d\x66\x15\x27\x2f\x2e\x49\x40\xbc\x8c\x39\xc2\xfb\xc6\x36\xf8\xc1\x05\x56\x5e\xc0\xf1\x57\x00\xcd\xb0\x66\xc5\xca\x1f\xd0\xe3\xe3\xf4\x94\x52\xe4\xf6\x71\x5a\x58\x22\x27\xd5\x9e\xc1\x04\x57\x5c\x17\x4f\x8c\xd1\x3e\xca\xbc\x4d\x58\x99\xe0\x2e\xbd\x3e\x81\xbd\x2c\x00\x32\x42\x73\x8b\x3b\x95\xb0\xe0\xcf\x0e\xf0\x2f\x8e\xe0\x28\x96\xdf\x64\x60\x68\xae\x23\x3f\xfc\x44\x36\xf1\xe9\x7d\x37\xd4\x5d\x49\x7e\x1a\x54\xa0\xd6\xfc\x5a\xaf\x27\x5e\xc5\x0c\xbf\x0b\x40\x20\x52\x20\x0f\x6b\xc3\x53\x73\x82\x8b\xcd\xb4\x8a\x17\x8c\x96\x88\x65\x8a\x23\x63\xa8\x68\x3a\xb9\xea\xfa\x97\x90\xee\xf2\xc7\x9d\xa1\x48\xa9\xd9\x95\x39\x5d\x9f\x6a\x7b\x31\x0f\x6f\x71\x41\xd3\xcb\x0f\x20\x6e\x8b\xaa\x82\xa3\x38\xd5\x19\xee\x88\x1c\xf6\x1d\x5e\x1f\x90\x6d\x42\xc2\xe8\x5f\x25\xcd\x19\xd9\x86\x4a\xb5\x4a\x32\x96\x9c\x8e\xdf\x29\xe5\xac\x52\xf6\x20\x06\xd9\x21\x9c\x21\x14\x00\x07\xb0\x5c\x63\xe3\xba\x4c\x04\xec\xe5\xd8\x80\x50\x26\xdb\xe8\xff\x66\x52\x52\xd5\x37\xd0\x13\xf7\x09\xd8\x49\x99\xf8\x4b\x43\x82\xa8\x94\xc1\xba\x03\x18\x49\x37\x83\xa5\x98\xf6\x37\xbc\x2d\x8d\x56\x78\xcf\x65\xd0\x38\x33\x80\xad\xa0\xdb\x5a\x51\x07\x37\xa8\xb7\x0c\x3b\xae\xee\xe4\x70\x85\x08\x8e\x96\xd9\x94\x38\xba\x5e\x98\x87\x88\xf2\x88\x6a\xa7\xe2\x95\xd8\x57\x8e\xb2\x7f\x1d\x68\x38", ); test::( b"\x74\x03\x22\x95\x3b\xfc\x8e\x84\x0c\xec\xd9\x96\x3f\x58\xbe\xa7\x0d\x2b\xd2\x0a\x50\x63\x66\xd7\x8a\x0b\xad\x86\x29\x69\x22\xbd\x09\x78\x24\x67\x3b\x99\xe3\x06\x05\x85\x80\x4a\x29\x86\x70\xe2\x6a\xe7\x22\x92\x4d\xa8\xe1\x86\x1d\x77\xfb\xe6\x31\xdc\x23\xaa\x72\xb4\x14\xb0\x17\xe0\x77\x0b\xb3\x3e\x07\x9f\x72\xd8\xf3\xeb\x9f\x5c\x83\x25\x6a\xcd\xff\x8c\xe9\x77\xcd\xfa\x5c\x28\xd9\xb8\xb5\x9d\x3a\x97\x58\x3b\x12\x3c\x1f\x00\xb5\xbc\xa1\xb8\x0e\x69\xb4\x74\x3f\xeb\x30\x38\x88\x92\xf6\xf4\x6a\xea\x31\xb5\x0c\x90", n, e, b"\x7c\x41\x48\x40\x91\x0c\xa0\x8f\xec\xd2\x3f\xf1\x2c\xee\xbc\xd4\x8b\x7a\xfa\x4e\x6a\x87\xa4\x06\x54\xba\xae\xc6\xc9\x05\x00\x87\xb1\xf0\xb6\xfa\x04\xe3\x6c\xd5\x95\xad\x29\x3d\x08\x27\xe9\xe1\xc9\x4f\xe0\x33\xec\x42\xbb\xd0\x21\xf7\xce\x2e\x75\xda\x6d\xd2\x06\xb9\x91\x51\x76\x8d\x6d\x5a\xe7\xb1\xf0\x44\x16\x80\x4c\x2a\xd7\xc6\x74\x4c\x73\x43\xc8\xf0\x1b\xe2\x59\x36\x1c\x11\x68\x10\xf0\xad\xa1\xc6\x43\x48\x05\x5b\x25\x94\xa0\x6b\xdc\x08\xdb\x39\x0d\x75\x0e\x4a\xee\xa5\x43\x59\x32\xa0\x4d\x0e\x69\xd5\x90\x63\x04\xc8\x4e\x19\xd5\xfb\x86\x88\xca\x25\x98\xb6\xfa\xe6\xd1\x69\x59\x3f\xac\x29\x09\x23\x8c\x55\x3c\x66\x4d\xe9\x2c\xba\x6d\x89\x15\xe0\x1a\x6e\x99\xd8\xd9\x2f\xec\xbc\x6e\xae\xfd\x93\x15\x1c\x61\xfb\xbd\xe2\xea\xcf\x26\x34\xe7\xb6\x11\x6a\xd2\xfe\x88\x59\xb6\x5a\x70\x66\xd7\xb5\xb7\x76\x38\x65\x0b\x60\xa4\x3d\x82\x77\xda\xb0\xac\xa1\x45\x06\x5b\x3c\xf0\x0d\x96\x3b\x7f\x81\x8d\xda\xdd\x7c\x54\xbe\x5b\x4b\xa7\x69\xae\x01\x34\x46\xa5\x74\xdb\xbb\x8f\x7c\x22\xb2\xd1\x54\x3e\x7b\x5e\xc0\x8d\xfd\xe3\x8e\xf9\xad\x84\x3c\x1b\xb6\xd9\x55\x8a\xef\xcd\x45\xd3\xb1\x2c\x82\x06\xb7\x92\xca\x72\xbf\x49\x50\xbe\xfb\xee\xc0\x4f\xc1\xa2\x8c\x37\x20\x58\x85\x13\xa2\x9a\xf9\x69\x1d\x2f\x31\xdd\x7d\x39\xa5\x6b\xcb\x5f\x49\x9f\xb1\x4c\xa4\x7f\xa5\x41\xe2\xea\x67\x84\x33\x99\xe0\xc8\xab\x89\xc8\x1e\x58\x93\x41\x59\x42\xbf\xe4\xe4\x70\xa6\x78\xc0\xe5\x61\xed\x64\x55\x47\x11\xb1\x6b\xe3\x35\x0c\x98\x5b\x61\xf2\x92\x19\xc5\x27\x4d\x87\x93\x08\xdd\x25\xfc\x03\x3f\x81\x9c\x38\x59\x04\x65\x43\x99\xe5\x43\x8f\xd9\xc8\xcf\x1e\xc7\x6e\xcc", ); test::( b"\xf7\xe3\x78\x20\xa1\x9d\x5f\x6a\x05\xeb\x47\x79\xc2\x40\xe7\xfb\x58\x6a\xe8\xc3\xdf\x71\x3b\xcd\xf9\xc2\xaf\x7c\x05\x8c\xc3\x27\x95\x6b\xb8\xd4\x22\x44\xeb\x43\xff\x70\x62\x2f\x8c\x1c\xa5\xd0\xac\xef\xcf\xa4\x79\xee\xe4\x6f\x36\x9d\x65\x81\x84\x67\x22\x37\xd9\x40\x50\xc4\x2f\x89\xdb\x31\xf9\x34\xfe\xa3\x5b\x28\x10\xdd\x9a\xe7\xa1\x05\xd2\x6e\xc5\xab\xe7\x5d\xb0\x07\xbd\x57\x83\x82\xac\xac\x66\x79\x2e\x35\xd7\x3d\xdb\x80\x41\x5e\x98\x2d\xd1\x29\x0b\x98\x85\x6f\x52\xb9\x86\x88\xf4\x48\xb7\x98\x17\x24\x8e\x11", n, e, b"\x56\x3e\x22\x61\x7d\xd8\x89\xe7\xbe\x8d\xd2\x6a\x17\x6e\xe9\xf6\x7b\x9b\x3e\xb0\x40\xad\x7a\x7f\xab\xc0\x89\xb2\x7e\xd4\xe7\xa7\x82\xf1\x52\x2b\x44\x6f\x42\xa5\x67\x49\x21\x37\x77\x0c\x61\x2d\xc5\xe4\x28\xec\x28\xa3\xc5\x02\xaa\x25\x08\xfb\x46\xb7\x03\xd7\x9d\x1f\xde\x8e\x1a\x50\x7d\x70\x62\xe2\x64\x40\xb3\xa3\xff\x16\xbc\x82\xfc\xc9\xb3\x01\xf2\xb5\x8f\xa8\x18\x52\xb5\x7f\x95\x1d\x92\x51\x64\xbe\x0c\x70\xbd\x28\x1d\x72\x6c\x9a\x71\xb9\x84\x28\x03\x52\x28\x9f\x8c\x1b\x39\x4a\x85\xdf\x9e\x17\x32\xa4\x53\x9a\x30\xa7\x59\xe8\xf1\x26\x09\x6b\xf7\x3f\x7b\x25\xa5\xed\x34\xc3\x2a\xf3\x45\xbc\x32\xe4\x12\xe0\x8b\x6c\xa9\xb6\x56\xa6\x92\x85\x19\x65\x5e\xc9\x76\x9c\xf1\xda\xe7\xc9\x85\x50\x5a\x81\x2e\xe4\x4b\xb3\xb4\x2e\xcb\xec\x91\x1b\xec\xed\x8f\xe8\x73\x65\xf1\x13\xaa\xc0\x0a\x65\x9c\x0e\xb3\x7b\xfe\x75\x36\xf9\x17\x6a\xfe\x9c\x45\x9a\x08\xae\x23\x60\x0d\x4c\x85\x43\xef\x3c\x3a\xf4\xcd\x10\x11\xe0\x8f\xdc\xf1\x99\xba\x49\x02\x4f\x08\x80\x8c\x47\x59\x86\x87\x05\x61\xd6\xa0\x88\xb7\x9c\x38\xae\x8c\xe0\xe6\xec\x40\x26\x8b\xc9\xfb\x7a\x3b\x61\x85\x87\xf5\x5f\xbc\xd3\x1c\xea\x93\x70\x24\x38\x65\x49\x2e\x5f\x13\xc9\xfd\xad\x61\xf4\x0b\x32\xd3\xa9\x15\x19\x42\x44\x94\x9a\xdd\x15\x02\x6c\x0a\xe1\x9f\x52\xad\x5b\x70\x36\x5e\x77\xf2\xcf\x53\x29\x8c\x9e\x2b\xad\x06\x17\x1b\x09\x08\xdf\x26\xb2\x2e\xf1\xc7\x37\xc3\xb3\x21\x39\x5f\xfc\xdb\x71\xc8\x22\x8f\xe9\xde\x02\x7f\x0d\x31\x06\x86\xb1\x68\x3a\x67\x41\x9e\xa0\x89\x71\xcf\x0b\xf1\xa3\xe5\xa1\x07\x27\x24\x83\x46\x01\xd5\xf9\x44\xfa\x23\xf7\x7d\x8e\x77\xe8\x87\xf8\x8d\xdb\xee\xb1", ); test::( b"\x87\x10\xa8\x77\xb7\xa4\xc2\xe5\x78\x79\x3b\xd3\xe4\xd1\x9c\xb5\x6d\xe9\x7f\xcd\x1f\x2a\xf5\xfb\x25\xa3\x26\xd6\x8f\xb7\x37\xfb\x52\x13\x71\xa6\x90\xe4\x9f\x7f\x1a\x46\xb7\xb6\x34\xff\xbd\x51\x98\x6d\xe5\xc5\xbd\xbd\xf8\xc4\x58\x5e\xf8\x57\x24\xb5\x07\x2c\xde\x13\x85\x31\x94\xe4\x79\x62\x20\x29\x32\xde\xf0\x28\x2e\x41\x08\x61\x3a\x2e\x49\xc5\xdb\x2b\xf3\x23\xed\xb2\x69\xe3\x8a\x84\x34\xf6\x2d\x41\x4b\x0d\x17\x36\x91\x09\xf2\x76\xa0\xb3\xb5\x2c\xc5\xae\xc7\x2f\x4b\xaa\x67\xd7\xfd\xd9\x4b\x10\xe6\xa7\x87\xac", n, e, b"\xa7\x83\x58\xef\x28\x30\x3d\xeb\xa1\xbf\x1b\xc3\xca\xe5\x9a\xb0\xff\x66\x14\xc5\x20\xee\xb7\xd8\xc8\xfd\x5c\xed\x34\xda\x74\x54\xad\x14\x0b\x53\x9e\xf7\x5e\x2d\x65\xdd\x89\x1e\xbf\x89\x9a\x88\xad\xa2\x5b\xcc\x35\x72\x60\x53\xda\x68\xe2\xe0\x2b\x6a\xcd\x2e\x7e\x21\xcb\x8b\x37\x35\x5d\x19\xbd\x4c\x3e\x36\xa8\xc1\x64\x7e\x1a\x38\x4c\x8a\xd2\xab\x39\xbd\x22\xf3\xd3\x0f\x0f\x9d\xd6\x85\xfe\x4d\xd7\xf8\x36\xec\x46\xbb\xce\xf0\x80\x5d\x08\xa7\x84\xa6\x96\x4c\xd5\x0f\x58\x07\x1e\xd7\x9f\x88\x24\x91\xa3\x31\xb4\x45\x39\x0b\x43\xf2\xa2\x95\xa1\x3a\x28\xce\x0f\x44\xbb\x6d\x63\xf3\x19\xd8\xde\x90\xe3\x90\x17\xf4\xcb\xc1\x45\x33\xda\x33\x38\x0f\x55\x3f\x09\x7e\x79\x6a\x67\x1b\xa2\x9c\x94\x58\x2c\xd5\x19\xf1\xf6\x4d\xb3\xbe\x89\x4b\x66\x15\xf6\x84\x4f\xf2\xfc\x62\x10\x13\x82\xb0\x44\xf5\x85\x6b\x9b\xb9\x78\x71\xcf\x13\x7c\x4e\x9e\x48\x4e\x84\xa3\xcd\x2d\xae\xa8\xe1\xc6\x35\x8d\x66\xcd\x83\x26\xc1\x92\x5c\xe1\xf7\xd2\xd2\xe9\x04\x57\xad\xaa\x65\xec\x3a\x67\xf4\x86\x5b\xf6\x12\x0e\xff\xa0\x6a\x79\xde\xb6\xb6\xca\x9f\x85\xc9\xdd\x96\x7f\x2f\x31\xa2\x2d\x5d\xb2\x5b\x15\x53\x0a\x9e\x85\x0a\xca\x48\x6b\xc0\xca\xc2\xbe\x6b\x0a\xf6\x6e\xcb\x56\x8c\x09\x55\xa3\x04\x95\xbd\xd5\xd0\x5a\x22\x0c\xd0\x6c\xb0\x6f\x04\xf2\x16\x07\x6a\xaa\xd4\x38\x2a\x94\x04\x0d\xcc\xda\x68\xa1\x9d\x55\xb4\x93\x38\xc9\x31\x5a\xa8\x02\x91\x06\x55\xfe\x93\x94\xaa\x73\x59\x0a\x6b\x2a\x04\x39\xbb\xef\x5e\xc7\xcc\xb5\x20\xf2\xc5\xcb\x71\xd3\x93\xa6\xcc\xe2\x5b\xf7\x7d\x80\x33\x44\x4f\xb3\xda\x8a\xc8\x61\xc6\x3d\xc2\x56\x1f\xfd\xcc\xe8\xc2\x06\x5b\x35\xb5\xc8\x3b", ); test::( b"\xbc\xf6\x07\x43\x33\xa7\xed\xe5\x92\xff\xc9\xec\xf1\xc5\x11\x81\x28\x7e\x0a\x69\x36\x3f\x46\x7d\xe4\xbf\x6b\x5a\xa5\xb0\x37\x59\xc1\x50\xc1\xc2\xb2\x3b\x02\x3c\xce\x83\x93\x88\x27\x02\xb8\x6f\xb0\xef\x9e\xf9\xa1\xb0\xe1\xe0\x1c\xef\x51\x44\x10\xf0\xf6\xa0\x5e\x22\x52\xfd\x3a\xf4\xe5\x66\xd4\xe9\xf7\x9b\x38\xef\x91\x0a\x73\xed\xcd\xfa\xf8\x9b\x4f\x0a\x42\x96\x14\xda\xba\xb4\x6b\x08\xda\x94\x40\x5e\x93\x7a\xa0\x49\xec\x5a\x7a\x8d\xed\x33\xa3\x38\xbb\x9f\x1d\xd4\x04\xa7\x99\xe1\x9d\xdb\x3a\x83\x6a\xa3\x9c\x77", n, e, b"\xd1\xd2\x1b\x8d\xfa\x55\xf0\x68\x1e\x8f\xa8\x61\x35\xcf\x29\x2d\x71\xb7\x66\x97\x13\xc2\x91\xd8\xf8\xdc\x24\x64\x64\xde\x3b\xbb\x96\x1b\x59\x6d\xfc\x8f\xda\x6c\x82\x3c\x38\x40\x08\xd0\x5b\xcb\x3d\xcc\xc3\x6a\xcc\xf1\xb2\xbe\xde\x1a\x95\xe5\x22\x58\xd7\xd1\xbd\xf1\xfc\x44\xe1\x80\x72\xab\xd4\x5c\x13\x92\x01\x5e\xe7\x16\x92\x69\x0e\xf8\xcd\xaa\xed\x33\x7d\xd8\x54\x67\x83\xf9\x61\xbb\x96\x20\xeb\x5c\x7b\x8b\x67\x16\xe8\xc6\x00\x35\x1f\xab\x77\x65\xee\x38\xa1\x5d\x32\xd8\xa2\xc0\x94\x98\x25\xc4\x9a\x7f\x25\xee\xdd\x9b\xe7\xb8\x07\xbb\xfd\x51\x79\x13\x78\x66\x20\xd2\x49\x82\x3d\xae\x6f\xe2\xfd\x39\xac\x63\x9d\xd7\x48\x21\xb0\xc1\x20\xb4\x2f\x31\xc2\xc6\x39\xd2\xc6\x1b\x39\x5f\x09\xf8\x68\x51\xbc\x80\x9b\x34\xc4\x98\x1a\xc6\x5c\xf2\x5b\x2e\x8a\xdc\xbc\xe1\x90\xef\x2e\xf6\x7a\x01\x89\x03\x9c\x91\x10\xf2\x67\x01\xc3\xee\xd7\x31\xc8\xd9\xea\xd1\x78\x22\x0f\xfc\xac\x7f\x0f\x67\x8a\xa2\x22\x68\xe1\xd0\x19\x42\xec\x51\xe8\x0e\xef\x06\xe2\x11\x28\x30\x85\x5e\x87\xba\xfe\x8c\xc9\xc2\x2f\xd7\x37\xc7\xab\xbc\xa5\xeb\x7a\x22\x1d\x38\x35\xa8\x66\x10\xd2\x4b\x50\x7b\x5d\xcb\x46\x18\xaa\x42\x1f\x63\xa5\x60\x9e\xf5\xd6\x8f\x57\x60\xfd\xdf\x97\x01\x35\x60\x2e\xfa\xd0\x85\x1b\xbf\xf9\x8f\xe8\x7f\xa5\x8b\xc3\x65\xf3\x8e\xe7\xec\x8e\xf5\xaa\xb1\x7f\xd1\x1d\x89\xd9\x1e\xf4\xc6\x04\xe0\xd1\xf0\x01\xd0\xe0\x88\x69\xdf\x92\x25\xe3\xb4\xce\xf5\x2f\xf8\x68\x15\xe1\x3b\x3e\xfd\xf4\x57\x76\xf9\x35\x37\x69\xa8\xa5\x1f\xe7\xd8\x91\xa7\xef\x70\x35\xee\xcf\xa2\x59\x84\x87\x38\x37\x68\x86\xed\xc9\x1c\xc7\x8f\x6d\xa3\x1c\x2f\x07\xee\x36\x2c\x3d\x82", ); test::( b"\x2b\xca\xd6\xe7\x44\xf2\x49\x0b\xa6\xa6\xe0\x72\x28\x32\x41\x7e\xbd\x91\x0f\x91\x46\xeb\x62\xba\xaa\x5c\x74\x95\x29\xf7\x9d\x6c\xed\x0b\x81\xa2\xe2\xa4\x88\x52\xc8\x55\x8e\x33\x87\x35\xdc\xbf\xc2\x28\x57\x94\xae\x60\xf8\x1a\x25\x23\x7c\x66\xf6\xce\x5d\x5e\x80\x1a\x00\x1e\x7f\x9e\x30\x9b\x25\x95\xcb\x86\x6d\xe2\xbb\x74\xac\x51\x28\x3b\x68\x20\xec\x9f\x6e\xbe\x48\x2e\x1f\xd2\xd5\x68\x0b\x7f\xbd\x23\xc1\xe6\x2a\x2e\xe4\xed\xff\x35\x82\x3f\xc7\xe4\xa2\x95\xea\x4f\x1c\x33\x27\x92\xae\xb5\x3e\xb4\x4b\x0b\xed\xd2", n, e, b"\x37\xd9\x60\xfe\x39\x12\x98\xbb\xdc\x22\x3f\xa1\xeb\x1d\x3c\xd9\xa4\x6b\xa8\xc6\x2e\x1d\xa8\xc5\x63\xc8\x9a\x8f\x0e\x67\xb8\x64\xfc\x89\x83\x7f\xfc\x08\xaa\xb7\x12\x2b\x84\xc4\x35\xc7\xf9\x40\x6e\x16\x5a\x10\x29\x85\x7c\x1e\x4d\xea\x65\x35\x69\x27\x72\x73\xb1\xd9\xb0\xa9\xf5\xb0\xdc\x24\xaf\xdd\x21\x44\x76\xd4\x72\x08\xad\x52\x21\xa7\xd7\x93\xca\xb8\x06\x71\xfb\x49\x87\xc8\x6b\xd6\x14\x48\x80\xc5\x9d\x24\x87\x14\x00\xf6\x4b\xdc\x6d\x49\x6d\xbd\x49\x7f\x3d\xbf\x64\x28\x64\xfe\x49\xaf\x3e\x21\x51\x5e\x62\xd6\x0f\x00\x71\xdb\x48\x84\xf4\x96\x70\xea\xa9\xe4\xe4\x98\x2f\x26\x9a\xbe\x72\x42\x44\x28\x88\x59\xc2\xad\xf6\x0a\x09\xfa\xaa\xbb\x07\x99\x0e\x09\xe5\x6d\xe2\x54\xba\xbb\xee\x14\xbe\x7e\xb6\xed\xa0\xcd\xb2\x2f\x3d\x0d\xe8\x72\x48\x04\x67\x3f\xb9\x9f\x86\xef\xb4\x26\x3d\xcc\x50\x17\xab\xc9\x1b\xd9\xcd\x83\x36\x79\x47\x5b\xfa\xc5\x0a\x2b\xe8\xdb\x86\x29\x6b\xbf\x80\x17\x88\x93\x57\x37\x13\x14\x60\x4e\x83\xd6\x8b\x6e\xfe\xcd\x4b\x79\xf0\xa8\xaf\xa0\xdf\xfa\x44\x8f\xb7\xfc\xe6\xd3\x44\x70\x9a\x67\x0e\x0c\xff\x43\x2c\x3e\x18\x7b\xcf\xf7\xfd\xc4\xf4\xe9\xab\xe1\x09\x5c\x46\xb0\x1d\x88\xb6\x04\x4b\xb9\x50\xe9\x28\x59\x01\x0d\x9a\x0e\x3b\x2d\x1f\x27\xa0\x96\xea\xca\xa2\x42\x63\xa2\xa0\x52\x3d\x6e\x0d\xa1\xfb\xa8\xaf\x76\x81\x96\xf7\xa5\x1f\x92\xfd\xf1\x52\xbe\xf0\x62\xdd\x1f\x83\x27\xce\xe1\xd3\x44\xc2\x00\xc2\x11\x5a\xc6\xec\x1d\xd8\x51\x4c\xef\x9e\x36\xd0\xce\x8c\x32\xe5\x87\x83\xc4\xfc\xba\x90\x1a\xa7\x0c\x2b\x42\x96\x64\x88\x00\x2f\xf1\x71\xd3\x64\x14\xa1\x44\xbf\x46\x77\x51\x83\xa8\x81\x5d\xe9\xee\x3e\x81\xf3\x1b", ); test::( b"\xc3\x97\x8b\xd0\x50\xd4\x6d\xa4\xa7\x92\x27\xd8\x27\x0a\x22\x02\x95\x34\x82\x87\x59\x30\xfb\x1a\xea\xe4\xe6\x7f\x87\xe7\x94\x95\x28\x9d\xe2\x93\xb4\xa4\x0d\x92\x74\x6f\xc8\x4c\xc8\x31\x8c\x23\x18\xfd\x30\x65\x0e\x2b\xb9\xce\x02\xfd\x73\x4e\xb6\x83\x41\x0d\x44\xbb\x31\xad\x54\xfd\x53\xcf\x92\x96\xcc\xd8\x60\xb4\x26\xf5\xc7\x82\xea\x5c\xb4\x93\x71\xd5\x61\x84\xf7\x79\x11\xdd\xf1\xba\x00\x39\xa0\xa4\x9a\xa7\xe7\x63\xeb\x4f\x5a\x04\x57\x59\x97\x80\x8b\x0a\xd9\xf6\xb3\x30\xca\x38\xed\xc1\x99\x89\xfe\xbf\x4d\xa5", n, e, b"\x9a\xed\x20\xa8\xbd\xaf\x26\xf1\xf1\x19\x02\x0d\x8f\x3e\xa6\xce\x91\x51\x38\xd4\xc8\x7d\xce\x02\x5e\x7f\x4e\x49\x53\x6c\x8e\xc0\x79\xed\xc6\xca\xf0\xd6\x03\xbf\x42\xbd\x6a\x45\x4a\x6d\x52\xd0\xd9\x9f\xd0\xf5\x9f\xfb\x3b\x22\xe9\xe6\x7b\x3d\x0b\xb2\xd2\x75\xd9\xae\xdc\x6d\xa9\x6a\x72\xcb\xff\x35\xc4\x3e\x7f\x39\xa9\x96\xfa\x8a\x6d\x33\x8a\x07\x25\xf7\x85\x25\x4f\xe9\x1a\x20\x83\x4b\xa5\x57\xfe\xdf\xe7\x15\x2b\x99\x56\xfe\xdd\xfd\x94\x17\x41\xef\xf9\x17\x7c\x2f\xbb\x55\xe2\x00\xbb\xe4\x21\x62\xb3\x2a\x94\x0c\xc3\x00\xab\x37\x55\x57\xdf\xfd\x48\xdf\xa5\x39\xf5\x0e\xdd\x52\xdf\x15\x8d\x90\x72\xd1\x49\x82\xe9\x63\x03\xbc\x61\x2c\x2c\x25\x06\xdb\xca\x3a\x93\x9d\x62\x6d\x2e\x7f\xb4\x44\xc6\xad\x7d\x8d\x9f\x3b\xba\x82\x10\xb2\xac\x2f\x69\x67\x83\xc3\x49\xfc\x52\x80\xc1\x05\x40\x2a\x4b\x3d\x86\xbe\xf5\x02\x6c\x3d\xd9\x99\xe3\xb2\x23\x80\xf9\xdc\xce\x40\xe3\xa9\xcc\x9f\x1d\x7b\xc3\x8e\xf3\xdd\x7e\x94\x13\xbb\x57\x98\x00\xc0\xe6\xc3\xe9\xab\x91\x2d\xa8\xfe\xc1\xa4\xab\x21\x39\x8e\x96\x80\xba\x0d\x04\xf3\xb4\xc8\xd5\x3c\x02\xf0\x5c\x7a\xe4\x9b\x70\xa5\x61\x1c\xf8\x2e\x38\xde\x84\xaa\x8c\x24\x26\xf0\xb6\x3e\xa0\x1b\x28\x9f\x20\x1d\x3a\xf4\x0d\xad\x5d\x6e\x5b\xcc\xc7\x5b\x99\x59\xe5\xc9\x75\x8e\x79\x10\x5a\xf7\xa9\xaf\xb1\x2a\xee\x57\x7c\xb3\x99\x18\x79\xdb\x0f\xd8\x66\x2c\x5b\xc4\x90\x22\x75\x24\x98\xa3\x01\xd9\x5f\x4b\x1d\x08\xc0\x1e\xbc\x31\x3f\x89\xc0\x0b\x1e\xc2\x73\x5a\x07\x98\x3f\xd5\x28\xe6\x38\x82\x45\x03\x6f\x0e\xd4\xa2\xdb\xb6\x5d\xd3\x3a\xb7\xf1\x24\xc0\x14\xec\x16\x79\xf1\xc2\xf1\x1e\xdf\xfb\x93\xfa\x2d\x1d\x73", ); test::( b"\x0c\x11\x95\x02\xc2\xa0\x19\x20\xa0\x90\xe4\x33\x57\xe7\xb2\x8e\x33\xc7\xee\x85\x8b\x43\x30\xe0\x5c\x71\x04\x89\x31\xc0\xed\x88\x46\x8c\xa9\x31\xec\xf0\xb7\x9c\x2f\xdc\x17\x56\xb7\x67\x51\x56\xec\x66\xb8\x33\x5e\x3d\xf0\x94\x63\xf5\xae\xe7\x02\x8f\xbf\x56\x0f\x98\x4c\xf6\x98\xfe\x5c\x42\x80\x22\x9a\xc9\x6a\x2e\x59\x23\xd8\xa9\xd5\x29\x94\x49\xbb\x66\x50\x08\xec\xc8\x89\x79\x7e\x9b\xb1\x5d\x04\xb8\x8c\x72\x10\xfa\xdb\x8b\xf6\xf2\x38\xe5\xd2\xdc\x41\xb9\xcc\xd1\xf8\x0e\x9a\x3e\x6a\xd1\x47\x94\x8f\x27\x33\x41", n, e, b"\x8a\xbf\x2a\x30\x77\x4e\x6e\x73\x38\xec\xa0\x9c\xcc\xac\xa3\x68\x43\x99\x94\x04\x92\xfb\x94\xb2\x3b\x5a\xd6\x2c\xe3\xe1\x1d\x2d\xbe\xf8\x96\x6b\xa5\x26\x99\x79\xeb\x96\x53\xba\xad\x71\x95\x16\xd3\xe8\x39\x90\x79\xa2\xf6\x70\x27\x5a\x2e\xd4\x2c\x82\x0a\x9a\x31\xfc\xd7\x03\xa7\x66\x37\xe0\xd7\x13\xf3\x2d\x79\x2b\x9a\xe3\x6d\x72\x88\xf6\x0c\x2d\x1a\xe5\x26\x83\xbb\x15\x94\x1b\x1c\xd8\x90\xd2\xcd\x64\x99\x8b\x77\x25\x85\xe7\x60\x32\xa1\x70\x2e\x06\x52\xcb\xf2\x59\xa1\xce\xae\x69\x5d\x40\xcf\x2f\x4f\x6d\x81\x34\x1c\x8b\xc9\x08\x2c\xb9\x6c\x75\x2c\x35\x5d\xfb\xe2\x96\xdd\x21\xd6\x98\x46\xfa\x37\x61\x3e\x73\x81\x7b\x2a\x07\x04\x66\x58\xc9\xe3\xfc\x6d\x09\x1e\x17\x59\x1b\xb1\xa4\xfb\x6e\x2a\xc0\x0a\x31\x94\xc1\x48\x8e\x16\xa9\xd2\x90\x37\x86\xdb\x86\xae\x90\xe9\x6a\xcb\x4d\xe9\x90\x1a\xaf\x1b\x06\x51\xfb\x76\xa5\x8d\xcb\x3d\xb4\x73\xef\xbf\xb8\x31\xef\x8e\x30\xf8\x99\x67\xdd\xd3\xa6\xc2\xf1\x89\x79\xa0\x45\x06\x57\xcd\xae\xef\x6e\x59\x37\x7c\x6d\xb1\xec\x46\x06\x5f\x61\x40\x24\xa6\x9c\x51\x8a\x55\x99\x42\x59\x4a\x46\x26\x6e\x0d\x3c\xa1\x33\x42\x96\xb9\x68\xa2\x3a\x4b\x11\xc6\x3a\x97\xe2\x9e\xb1\x6b\x24\xc0\x2d\x54\x5d\x5b\x42\x7e\x6a\xa5\x85\x33\x33\x18\xe6\x3a\x20\x45\x24\xe0\xe4\x2a\xc1\xed\xb7\x0d\x34\x56\x78\x0d\xbe\xad\x31\xf7\x85\xf0\xb2\xa7\x7f\xfe\xb0\xd3\x73\x84\xcb\x5f\x65\xb4\xe3\x6c\xa2\x41\xf3\xb2\xb0\x59\x10\x5f\xaa\xa3\x22\x2d\x6c\x13\x5e\xa5\xa3\x66\x51\xae\xa3\x96\xd2\x2f\xc4\xea\x1b\x40\x4d\x7e\x83\x4b\x6d\xf1\xfb\x83\x8b\xb5\xba\x0d\x78\x4a\x96\xe2\xae\x28\x43\xdb\x3e\xee\xa4\x96\xc7\xad\x2b\x42\x41", ); test::( b"\xdd\xbd\x84\x68\xbd\xb0\x36\xf4\x79\x9f\x42\x8b\xc8\xb4\x37\x4e\xd9\xb7\xcd\xe5\x41\x33\x7a\xc4\x39\xd4\x41\xac\x06\x14\xcb\x75\xb8\x16\xb8\x0c\x17\xd2\x37\xb8\xdb\x73\xd4\xa1\x1b\xfd\x92\x92\x08\x33\x3a\xfe\xdb\xb8\xf2\x41\x0c\x74\x11\x29\xc5\x39\x32\xb5\x96\xa7\x88\x1c\x6a\x4d\x71\x11\xba\x10\x4d\x46\x00\xd1\x90\x2f\x6f\x4a\x16\x08\xe1\x39\xb7\x19\x11\xc1\x1c\x39\x0a\x0d\xd0\x91\xdf\x36\x9a\xa2\x9d\x67\x0b\x8a\x7e\x3f\x53\x82\x5f\x76\x59\xac\x74\xc4\x0a\x0c\x3b\xfe\xf0\xd3\xae\x83\x07\xe4\xbd\xd6\xcd\x91", n, e, b"\x4e\x37\x7e\x24\x59\x81\x5d\x5b\x33\x91\x5f\xa6\x3c\xd4\x77\xb5\xbe\x7c\x6b\x7f\x78\x14\xd1\x35\x00\x34\xce\x71\x0b\xe6\x7e\xd6\x91\x39\xdb\x62\x2e\xf6\x0e\xc6\xb7\x63\x8e\x94\xb2\x02\x36\x8b\xac\x63\x1e\x05\x77\x02\xb0\xe6\x48\x7b\x32\x4a\x6b\x98\xed\x7e\x03\xd1\xf3\xf2\x0a\x98\x14\xb0\x0e\x21\x7a\x46\x48\xe4\xbb\xc4\x49\xa2\xaf\x40\x5c\xa4\xb5\x9f\x84\x38\xdd\xfd\x75\xd3\x4d\x10\x64\xe5\x8b\xfb\x32\x5c\x55\xbd\x54\xea\x6c\xdf\x77\x12\xba\x80\x7c\x3e\x4c\x66\x5d\x62\x0c\xd5\x95\x13\xd7\xbc\x08\x55\x24\x7e\xb6\x70\xec\xc2\x92\x50\x96\x61\x81\x27\x02\x70\x32\x75\xd9\xb2\xf8\x7e\xf2\x79\xd7\x70\x0e\x69\xd9\x95\xdb\x98\x14\x4a\x14\xc8\x17\x74\xa4\xcd\x89\x0e\xc0\x3d\x13\xf8\x58\xf3\x76\x9e\x50\x48\xed\x55\xca\xa8\x12\x01\xe8\x78\x5d\x37\x71\xce\x6d\xa5\x11\x75\xd0\x17\xd2\x11\xfa\x70\x37\x94\x41\x6f\x46\x9b\x11\x29\xd7\x31\xab\xde\x74\x4d\xa5\xb2\xfa\xcd\x7a\x9b\x09\x3d\x6c\x97\x43\x50\x9b\x01\x03\xba\xb9\xc8\x1c\x6e\x5f\x38\xbc\x97\x18\xe3\xe4\xfa\xa8\x64\x75\xd1\x37\x25\xa8\x29\xac\x61\xdf\x8d\x15\xf0\xb2\x7c\xb4\x0d\x0e\xba\x0b\x24\x6b\x9c\x36\x0b\x56\x9b\x81\xb3\xab\xf3\x80\xee\xc2\x74\x92\x31\x6b\xc2\x92\xe5\x15\x0e\xe0\x60\x72\x19\xa2\xbd\x80\xba\x98\x4c\x7e\x3f\x19\x89\xbc\x51\xe4\xc5\xda\x3a\xe5\x07\x06\x76\xe0\xc1\x50\xd0\x37\xa8\x6a\x0f\x91\xbf\xc0\x7c\xde\x64\xc1\x9f\x9c\x7a\x7a\xf4\x4d\x69\x29\x97\x00\x41\x44\x8d\x3b\x17\xc2\x49\xd5\xe0\xb5\x86\x2e\x9a\x25\x20\x9e\x8f\x97\xd7\xa0\xf0\x30\x18\x15\x04\xfe\xad\x22\x66\xc8\x73\xfd\x23\x59\x83\xdf\x3d\x06\x57\xb9\x20\x96\xe2\xb4\x90\xdf\x33\xca\x11\x57\x33", ); test::( b"\xf9\x96\xf3\xad\xc2\xab\xa5\x05\xad\x4a\xe5\x2b\xc5\xa4\x33\x71\xa3\x3d\x0f\x28\xe1\x95\x0b\x66\xd2\x08\x24\x06\x70\xf3\x52\xef\x96\x18\x5e\x9a\x70\x44\xf4\xce\x2f\x2f\xf9\xae\x01\xa3\x1e\xf6\x40\xe0\xb6\x82\xe9\x40\xc5\x10\x51\x17\x59\x46\x13\xdd\x1d\xf7\x4d\x8f\x2b\xa2\x0c\x52\x22\x3b\x04\x5a\x78\x2e\x85\x0a\x12\xa2\xaa\x5c\x12\xfa\xd4\x84\xf1\xa2\x56\xd0\xcd\x08\x72\xd3\x04\xe8\x85\xc2\x01\xcd\x7e\x1e\x56\xd5\x94\x93\x0b\xb4\x39\x21\x36\xfb\x49\x79\xcc\x9b\x88\xaa\xb7\xa4\x4b\xfc\x29\x53\x75\x1c\x2f\x4c", n, e, b"\x30\xb3\x48\x62\x4f\xaa\x99\x85\xfc\xd9\x5f\x9c\x7e\xad\x3a\xfe\x64\x56\xba\xdf\x8c\x0f\xed\xbd\xad\xb3\xa9\x00\x3a\x67\x02\x97\x3a\xcd\xb4\xe8\x66\x52\x36\x7d\xb2\x3e\x0a\x81\x41\x88\x0d\x66\x31\x83\x4f\x9f\x17\x1c\x94\xa8\xfe\x9c\x31\x5b\xcb\x86\x80\xec\xfb\x5a\x4f\x59\xb4\x5d\x4e\x4c\x3c\x05\x82\x8b\x7f\xaa\xa8\xe4\x23\x4a\xad\xa4\xe7\x66\x64\x6c\xc5\x10\xd0\x7b\x42\xbd\x38\x83\xa8\x3b\x5b\xcb\x92\xd9\xe7\xcc\x1d\xdf\x59\x0a\x69\x01\x11\xbf\xc6\x2a\x51\xaf\x7e\x55\x54\x3e\xa5\x18\x8c\x92\x45\x3d\x41\xd3\xe8\xfd\xab\xee\x3e\x1d\xef\xa9\xd0\xaf\xdb\x85\xc8\x15\x3a\x50\x19\xae\x45\x56\x3e\xa3\x08\x0a\x30\x22\x66\x81\x68\xf0\xc2\x73\xa6\xdb\x1a\xfa\xdc\xd5\xed\xbc\xa5\x02\x1c\x2e\x53\xf4\xd9\x51\xc6\x04\x20\x6a\xe1\x0f\x28\x7f\x45\x18\x67\x27\x1d\x37\x04\x82\x79\x1c\xdf\xdc\xb6\xa4\x01\x0f\x6b\x3d\x9b\x92\x85\x63\xd1\x68\xda\x19\xf1\xc1\xe5\x70\xf8\xc1\x58\xf3\xd4\x90\xb2\x9a\xa2\x3a\xbd\x1f\xfd\xf2\x08\x66\xc3\x4c\x6e\x63\xb9\xe8\xa9\xa0\x2d\x7a\x1b\x19\x6d\x05\x5f\x4c\x53\xce\x82\xb4\x00\xe4\xab\x9e\x1b\x9d\x70\xd0\x04\x9d\x6d\x57\xcf\x0a\x49\x49\xcf\xc6\x8d\x63\x38\x82\x88\x2d\xcf\xdf\xc5\x0c\xf4\x49\xdf\x10\xac\xf2\x03\x05\xc2\xaa\x43\xbd\xa1\x0f\xd8\xa1\x0b\x4e\xca\xa2\x31\x00\xaa\x47\xe9\x29\x36\xdc\xe1\xbf\xb8\xd6\x59\x52\x35\xbb\xfe\x2c\x85\x85\xcb\x16\x47\xb2\xbe\xac\xb1\xe1\xd4\xb6\xce\xf7\x58\x81\x1a\x68\x33\x0f\xa9\xc3\xa8\x25\x73\xc0\x8f\xa2\xcd\xa5\xa0\x3f\x34\x25\x55\x4e\x45\xd9\x8c\x16\x45\xc5\xbd\x27\xd1\x2e\x6c\x20\xb2\xc4\x62\xa7\x46\xe8\x82\xa3\x42\x1a\x7b\x1b\x1e\x25\xb4\xc3\x6c\x8b\x16\xa1", ); test::( b"\x6a\xce\x05\x2d\x7e\x99\xcd\x97\x3b\xb5\xc9\xf6\x67\x9b\x1c\x30\x5e\x07\x20\x89\x65\xfe\x58\xc6\x3b\x10\xa6\x92\xf1\xdb\xbe\x22\xfc\xd0\xdb\x15\x89\x3a\xb1\x9e\x10\x7b\xa2\xe4\x2c\x99\x34\xa9\xaa\xfa\xc3\x2a\xdf\x6c\x73\x47\x3f\x69\x69\xe4\x2c\x98\x3b\x8f\x0c\x96\xa4\x63\x9e\xf7\x7d\x2c\x8e\x88\xe8\xcc\x47\xd7\xcf\xdd\x08\xf6\x8d\x97\x3a\x7b\xea\xf4\x01\xcb\x4d\x13\x11\x99\x2d\xda\xc3\xa9\xc9\xe0\x67\xda\x19\x8a\xdc\x63\x04\x74\x5f\x5d\xd3\x12\xa1\x82\xe6\x97\x1c\x34\xa5\x15\xa6\xc1\xba\xe6\x47\xe5\x7e\x4c", n, e, b"\x5f\x0e\x74\xf4\x54\x75\x4a\x30\x74\xfa\xaf\xc6\x05\xf3\xc9\xaf\x47\x60\x4a\x89\x83\x65\x0a\x9b\x62\x11\xfb\x19\x1d\x9a\xfa\x53\x15\xdf\x4d\xb4\x50\x1f\xd4\xf0\x4c\x74\x1d\x76\x46\x56\xd4\xa5\xd0\x06\x38\x8a\xd8\xfd\xb2\x19\xec\x6b\x75\x69\x08\xe2\x3b\x30\xcb\x63\x9f\xfa\x7b\xbf\x28\x74\x71\x3b\xfd\x5a\x10\x62\xc1\x9d\x04\xe0\xe4\xa7\x4b\x14\x44\x6a\x7f\xdf\x5c\xb8\x12\xe9\xac\x7b\x60\x12\xd9\xae\x99\x1c\x47\x65\x6d\x2a\xde\xd2\x40\x74\xbb\x8a\x38\xb1\xa8\x8b\x1c\x2b\x13\x1e\x5b\x09\xc9\x37\x57\xfd\xb2\xd6\xb6\x9a\xa8\x26\x5a\x43\x5f\xba\x00\xae\xb3\x6a\x1f\x62\x9b\xc3\x4b\x87\x60\x89\xd2\x8a\x94\x8d\xd6\xab\x4c\x89\x94\x30\xda\x60\xa2\x6f\x6c\x13\x60\x3f\xc8\x89\xc7\xb2\x93\x6c\xa3\xc5\x15\x6b\xd7\xfa\x6e\x34\xea\xc9\xe0\x48\x00\x83\x3e\xf0\xcb\x9b\x6e\xef\x78\x8c\x0e\xf0\x02\x1a\x45\x36\xfb\x83\x71\xfa\x3e\x2c\x8b\xb8\xbe\xfa\xc1\x6e\x80\x92\xd6\x9c\x57\x1c\x1e\x15\xfd\x25\x5e\xc0\xa0\x7a\xcf\x9a\xe9\x95\x38\x31\xef\xd3\xdc\xbe\xf4\x4e\x0f\xcc\xeb\xb1\xaf\x95\x9d\x71\xf5\x01\x30\xe8\xac\xb4\xfa\x23\x19\x26\x1f\xba\x12\xf2\x71\x5d\xef\x82\xbf\xaf\xbf\x40\xe3\x45\xec\x5d\xcd\xab\x5c\x1b\xf5\xf6\x6b\x1d\x0e\x9f\x7a\x9c\x62\xc9\x37\x57\x46\xe1\xae\x0c\x8f\x14\xa4\x89\x18\x43\x83\xe8\x1d\xce\x20\x70\xad\x4b\x52\x5d\xf7\x6b\x44\x6b\x1f\x22\x92\x1d\x42\x4d\x9b\xa3\xce\x21\x57\x75\x01\xdf\x62\x80\xfd\xc6\x9f\x02\x39\xae\x11\x27\xb6\x99\x50\x75\x9d\x5f\x0b\x69\x3f\x54\xe8\x7e\x07\x63\x62\x3b\xf5\xd3\xff\x69\x43\x00\x81\xb9\xc9\xe2\x44\x5a\x05\xe1\x15\x67\x5e\x09\x0b\xca\xb2\xaa\x1d\x75\xce\xee\x2a\xd6\x19\xec\x8b\x80", ); test::( b"\x0e\x49\x74\x0f\xdc\xca\x6b\xfc\xe2\x94\xc1\x1f\x45\x40\x78\x05\xb3\xda\x41\x2b\x01\xef\x3f\xb5\x13\xe7\x0e\x62\xfd\x95\x04\xc0\x67\x0d\xb6\x9c\x36\xb6\xbe\xbd\x69\xa0\xbc\xd2\x40\x17\x9b\xa8\xa4\x78\x16\xa0\xc3\x43\x7a\x61\xfb\x72\xad\xca\xf9\x09\x6f\x2a\x22\xef\xe0\xb4\x31\xfc\x42\x2d\x22\x53\x01\xe8\x50\xf2\xf0\xf4\xda\x87\xd6\x94\x4a\x85\x29\xef\x79\x78\x19\x09\xad\x96\xd1\xf2\x05\x96\xf9\x3e\x17\xc5\x7f\xb4\xd7\x56\x97\x4b\xbb\xf9\x00\x52\x1c\xb0\x89\xee\xe0\xde\xd5\xc9\x56\xa1\x5b\x09\x61\x62\xb0\x7f", n, e, b"\x7b\xbb\x3d\xdd\x17\xa4\x2b\xe7\xcc\x4e\x7e\xaf\x45\x65\x09\xa4\xba\x58\xd4\x0c\x49\xa3\xd9\x95\x73\xb7\x33\xe1\x94\x2f\x9f\xca\x20\xba\x8b\x91\x07\x08\xd6\xe7\x50\x36\x7e\x84\x73\x02\xfc\x60\x3b\x80\x63\xc1\x9a\xf8\x83\xe7\x50\x7f\xb0\xd9\xcc\x2b\xe3\x74\x79\xa3\x7c\xca\x25\xb8\xc7\xc4\x6f\x6b\xf6\x61\xdc\x6a\x32\x32\xf8\x8b\x48\x3f\x1b\x8f\x41\xb4\x6d\x49\xba\x3f\x17\x95\xd6\x8e\xaa\xd4\xa2\x55\x6f\xb5\xd7\x87\x3b\xbb\x65\x01\xec\xf0\x6a\xc5\x58\x23\x5e\xd1\x39\x90\xb0\xe1\x6f\x67\x96\x5b\x09\x36\x6b\xcb\x36\x2c\xfc\x6f\xb9\x78\xf4\xf6\x8d\x81\x46\xdc\x8b\x81\x98\x04\xdf\x42\x4e\x8c\xa5\xb6\x3c\xf1\xfc\xf9\x7b\xbf\x30\x0d\x0b\x99\x88\x60\x79\x8a\x63\x42\x43\x83\xfc\xd8\x1d\x37\x77\x3d\x59\xbb\x13\xb4\xfa\x5d\x46\x8c\xd1\x28\xbb\xab\x18\xa8\xce\x51\x73\xbe\x5d\x9d\x54\xd3\x17\x7f\x02\x45\x78\x84\x09\x97\x3d\xf4\xa9\x01\x6b\x94\x4b\xae\xfb\xf3\xbf\x11\x46\xa9\x39\x3d\x22\xe3\x5e\xc2\xbe\x0a\xe6\xf4\xc3\x1d\xc4\x98\x1f\x40\xfc\x1b\xaf\x38\x26\x00\x69\x9e\xaf\xce\xa9\x2c\xbe\x24\xe2\x6e\xe8\x46\xfa\x23\xbc\x19\x3b\x6e\x72\x14\x01\xb7\xac\x3f\x5f\x4e\xbe\xb6\x33\x97\x9f\x8e\xf3\x5f\x4a\xb1\x11\x7a\x86\x9d\x5b\x9d\xbb\x74\x82\xf0\xd5\xa5\x9e\x41\x63\x54\x8d\x25\x12\xae\x06\x72\x05\xb5\x7d\x03\x0c\x48\x3f\x72\x0d\x2c\x44\x35\x04\x28\xf5\x26\x89\x43\xfc\x5f\x6e\xa1\xc8\x8e\x2e\xc1\x3a\xb3\xdc\x14\x56\xe9\x6a\x3b\x8e\x7c\x12\x1a\xf4\xd6\xa5\xfe\x4e\xe5\x5e\x99\xfb\xc3\x59\x2a\x48\x7c\x19\x4b\xc2\xf2\xbf\x6e\x79\xfb\x79\xc2\x87\x6c\xf3\x36\x5e\x07\x5b\xee\xac\xc7\xdb\x4d\xb7\xee\x69\xe7\xf1\xfe\x12\xa3\x27\xe6\xcb\x0f", ); test::( b"\x0e\x67\x5d\xac\x9a\xec\x91\x01\x06\xa6\xab\x21\x9b\x4c\xce\xb5\x2d\xed\x25\x49\xe8\x99\xc9\xa2\x4d\x5e\xe5\x51\x77\x76\x18\x88\xa3\xbe\x1a\x2d\xef\x6a\xa3\x2d\x62\xf7\x88\x13\x2d\x62\x27\xd9\x30\x98\x06\xfd\xc0\x2d\xb7\xd8\xa8\x50\xff\x2c\x6d\xff\x37\xfc\xd7\x77\xf1\xa0\xac\xef\xdf\x18\xbf\x85\xf1\xa1\x29\x79\xbe\x86\xd7\x99\x25\x39\x45\xfc\x34\xa2\x88\xf3\x48\xb7\x92\x3d\x76\x4d\xb2\x7a\x2a\x2d\x5a\xe2\x0e\x6b\x25\x37\x2e\xf3\x18\xf8\x59\x65\x29\xd8\xca\x23\xfd\x6f\x08\xa8\xf6\x2e\x0a\x1b\x6d\x98\x9f\x23", n, e, b"\x80\x52\xd9\x5f\x12\xce\x0e\x6e\x53\xa5\xa3\x56\xa0\xeb\x35\x3b\xdc\xc1\xa6\x65\x14\xd6\xcf\xb3\xa3\xd9\x61\x55\x31\x0b\xdd\xa0\xa0\xd1\x79\x5f\x97\x64\x3f\x3a\x44\x96\x63\x4f\x2d\xd9\xb9\x5a\x21\x38\xee\x39\x0e\x1e\x74\xbe\x31\x34\xf3\xf4\x7a\x91\x9e\xe7\xb5\x9f\x8e\xcd\x27\x2a\xb8\x8c\x82\xcb\xce\x7c\x21\x7e\x5f\x92\xd0\x57\xa5\xb0\x0f\xbf\x05\x75\xcd\xae\xcd\x7d\xc2\x85\xa4\x21\x8c\x8a\x95\x52\x16\x59\x8f\x07\x42\x67\x1e\x01\x8e\x8e\x4e\x76\x83\x9a\x57\x5f\x50\xb2\x10\x2a\x8b\x77\xd1\xb8\x4f\x6d\xce\x98\xd7\x8e\x57\x58\xe0\xa6\xf9\x2b\xf3\x5d\x6a\x2f\x18\xad\x40\x09\x25\xd7\x88\x0f\x9e\xfc\x77\x4a\x8c\x7e\xbf\x64\x88\x5c\xd2\xf6\xf6\x29\xb5\x4a\x7c\x12\xec\x91\xd3\x9b\x3c\x25\x18\x24\x1f\xdc\x32\x2d\x9b\x23\x5a\x8e\xa4\x4f\x77\xe8\x2f\x3d\xc4\xf7\x28\xf6\x20\xc0\x7d\x1e\x7f\xf4\x09\x4f\x29\xc6\x74\xab\x0f\x08\x02\xef\xa1\xc9\xe6\x48\x1e\xbb\x84\xe0\xbf\x13\xef\x46\x8d\x8c\xca\x11\x45\x70\xb9\xed\xcd\xdf\x98\xac\x4a\x83\x4f\xe7\xa0\xd5\xc6\xfa\xe8\xa6\x0a\x48\x39\x9f\x3c\x8a\xf4\x2f\xf4\x02\x6e\x42\xa8\x1a\xac\x36\x11\x4f\xfc\x05\x3f\x3f\x72\x9b\x7c\xf9\xa9\x7a\x56\x84\x8e\xbe\xa0\x11\x5a\xa8\x29\x83\x41\xaa\x22\x69\x63\xeb\xdf\x57\xab\x2d\x8e\x4b\x90\x00\xdd\x05\x1a\x6c\x5d\x69\xf6\x0e\x1d\xc1\xb3\x3f\x20\x94\xfd\xbf\x8e\x5b\x62\x7b\xc0\x76\x4d\xb9\x52\x2c\xbb\xc0\x81\xdb\xf3\x8c\x21\xb1\x3f\x98\x08\x13\xbd\x2b\x00\xc7\x57\xeb\xb8\xc0\xb2\x12\x13\x15\x2e\x69\x40\x39\xf3\x06\xf7\x34\x28\x57\x65\x1f\x72\x2b\xdd\xa0\x12\x12\xa8\x55\x27\x99\xbd\xa6\xef\x07\xc5\x20\x7d\xc7\x44\xef\x79\x69\xaf\xd5\xaf\x2e\x6f\x12", ); test::( b"\xf6\xa7\xa6\xe5\x26\x59\x12\x5f\xbb\xc8\x72\x74\x17\x28\x3b\x9a\x64\x44\x1f\x87\x12\x1e\x27\xf3\x86\xd5\x01\x9f\x10\xcc\x9b\x96\x1e\x09\xf1\xb3\xb0\xdb\x23\x63\x0c\xc0\xca\xac\xb3\x85\x8c\x6f\x93\xaf\xee\xea\x7e\x1a\x6a\x80\xdb\xe0\xc2\xbd\x9c\x7c\x93\x95\x70\x30\x2d\xec\x39\xa4\xa2\x5c\xc0\xcf\x1d\x32\xa7\x1a\x75\xb9\xa0\xc3\x02\xbc\xdd\x80\xb0\x46\xc8\x66\x51\xac\xf3\x08\x38\xcd\x52\xe3\x03\x99\xa8\xfa\xb8\xd0\x3f\xbd\x14\x0c\xdc\x2f\x1f\x02\xf2\x48\x04\x05\x16\x98\x20\xcc\xb3\x2e\x59\x74\xff\xb8\xb1\xc8", n, e, b"\x84\x60\x3a\xcb\xfe\x1f\x2f\x76\x9f\x1a\x62\xb0\xf2\x87\xf3\x06\x94\x0b\x22\x54\x76\x71\x4a\x4b\x68\x27\xc0\x2d\x7b\xd0\x52\xf3\x03\xf3\x0a\x5f\xa6\xda\x83\xe6\x06\x15\x30\x56\x69\xca\x9e\xc1\x77\xc5\xb3\x2b\x14\x15\xee\xbe\xf7\x86\x20\x29\x6e\xba\xd6\xdb\xbd\x52\x08\x39\xd3\xaa\xcc\x97\x81\xac\x86\x02\xdd\xce\x07\x36\xdc\xfa\x72\x90\xb4\x5f\x15\x5b\x8e\x92\x4d\x0a\xfd\xf7\xdf\xc8\xd1\x99\xbf\x09\x50\x9d\x01\x76\xa6\x8b\x14\x57\x56\xee\xf5\x3d\xe4\x56\xe1\x70\x78\x85\x98\x49\xa3\x52\xa5\xbb\x65\x42\x39\xd8\xeb\xaf\x88\x00\xca\x82\x63\xd3\x4a\x86\x8d\x52\xbf\x8f\x22\x64\x4d\xd9\xf3\xc0\x5b\xd8\x91\xcd\x92\xf2\x63\x53\x0c\x58\x96\x02\x3c\x6b\x21\x3d\xdb\x64\xed\xe1\x77\x0f\xf1\x68\x6c\x34\x03\x6e\x28\x1e\x91\x1d\x9d\xc9\x60\x35\x4f\xd8\x44\xcb\x7b\x22\xdc\x0c\xd8\x1a\x96\x20\x3b\xa8\x18\x40\x1c\xcc\x22\x5f\x85\x7e\x59\xa5\xcb\x7b\xa6\xdf\xc7\xf5\x13\x5e\xa3\x27\x81\xe6\x3d\xaa\x14\xfb\xda\x1b\xac\xc1\x8e\xbc\x50\x82\x4d\x40\x28\xb8\xfd\xec\xda\x49\xe8\x10\xba\xe5\xac\xc8\xad\xc0\xdc\xa2\xe2\x36\xfc\x83\x2a\x97\x33\x0a\x12\x14\xfa\x0a\xed\x15\xcd\x10\xc0\x49\xef\xb6\x5c\xe8\x55\xc0\x60\xf0\x5b\xef\xb3\x17\xb8\x06\x58\x43\xc4\xeb\x5a\x03\x71\xfc\x6f\x20\x9f\x6f\xfb\x94\x8c\x88\x1f\x2f\x20\x91\xca\xf0\xf5\x9f\x60\xb7\x2c\x5f\x67\x27\x1b\xae\x96\xb9\x13\xfd\x21\xfa\x1d\xfa\x97\x5d\x5e\xcd\x62\xb0\xd5\x08\x73\xb6\x86\xd2\x9c\x88\x0d\x36\xed\xca\xd3\x3e\xc3\xe2\x21\x6c\x9c\xfc\xfb\x4f\x98\x4c\x23\xfd\xe8\x15\xe2\x80\xa8\x02\x42\x86\x08\xbe\xd3\x73\x9a\xf9\x20\x0d\xe1\xf8\x5e\xde\xe2\x83\x4c\x04\x94\x2c\x06\x8a\xac\xd2", ); test::( b"\xbb\x29\x4b\x95\xd9\x13\x00\x5b\x11\x09\x87\xcd\xe4\x58\x87\x48\x4a\xe6\xdf\x79\x48\x73\xdf\xc5\xc4\x1f\xb7\xe8\x99\x2c\x2f\xdc\xe7\x06\x99\xfc\xac\x80\x04\x69\x99\x61\xb3\xad\x1e\x1f\xce\x9e\xc8\xea\x56\x85\xcc\xec\x5e\x80\xe4\xd0\x79\x25\x59\x81\x6f\x68\x61\x34\x34\xbf\xac\xa8\x1a\x84\x3a\xac\x45\x9a\x6f\xe3\x5f\x53\x69\xc4\x8e\x91\x91\xe4\xa3\x2c\x70\x78\x95\x94\xc5\x15\x2d\xb8\xd4\xbb\x02\x26\x00\x12\xa8\x73\x9c\xf3\x25\xdd\xff\x2a\xa4\x2f\xd6\x7b\x6e\xe5\xbf\xe3\x15\x91\x13\x1f\xf2\x7d\x02\x73\xd2\x92", n, e, b"\x32\x63\x7c\x60\x79\x8b\x45\x0b\xff\x10\x0b\xff\x12\x83\x83\x57\xde\xff\x28\x1d\x5b\x31\xe4\xf4\xc2\xcf\xc9\x6e\xb7\x79\xce\x6d\x31\xb1\xce\x8b\xd7\xaa\x7f\xa8\x8d\xdc\x42\x79\xc8\xc3\x28\x06\x04\xb0\x18\xcc\xf4\x52\x00\x4a\x14\x88\xed\x47\x50\x18\x1c\x50\x25\x63\x65\x11\xac\x67\x24\xfe\x51\x76\x1c\x27\xd7\xcf\x9a\x0c\x87\x82\xea\x22\x31\x26\x88\x53\xc4\xb1\xf7\xac\xb0\x00\x5e\x56\x87\xc8\xf3\xdf\x16\xc9\x62\xf0\x2c\xe5\x6b\x23\xd3\x87\xa2\xba\xad\xc8\xbe\xc9\x42\x29\xc3\x55\x75\x26\xe6\x17\x07\xa8\xb5\x92\x93\xa9\x76\xe3\x2c\x7f\xa1\x33\x28\x50\x88\xf3\xce\x3e\x67\x77\x88\xaa\xa9\x47\xe7\x62\x2c\x75\x7e\x84\x4b\x11\x75\x92\xbe\x99\xfe\x45\x37\x6f\x8b\x30\x13\xe8\x77\x2e\xc9\x2c\x5b\xb0\xb9\xfa\x30\x1b\x95\x54\x45\x99\x69\x0a\xd9\x36\x68\xd8\x3b\x2d\xaa\x7d\xf0\x5c\x66\x21\x4e\x27\x50\x14\x78\x0a\x91\x2d\x8b\x19\x32\xd7\xa6\x55\x05\x8e\x74\x3f\x50\xb0\x74\xb1\xd9\x69\x1c\xa2\x3a\x2f\x95\xf6\xaf\xfb\xd5\x16\xd6\x4c\xcb\x2a\xa4\x3c\x23\x6e\xb9\x5d\x36\xd2\x72\x54\x5e\x3b\xeb\x8f\xf5\xaa\xcd\x95\xb3\x0f\x7f\x1d\x64\x18\xaf\x04\x2c\xd9\xa0\xcf\x01\x89\x84\x62\x62\x32\x2a\x18\x87\x5a\xe4\xc3\xe6\x8e\x4e\x8f\xfa\xa0\x27\x6c\xdd\x99\xa0\x04\x7c\x86\xc0\xf7\x1d\x2d\xee\xfd\x50\x64\x2d\x29\xc1\x95\xe6\xd1\x4f\xb4\x6f\xba\xc3\x3a\x50\x8c\x1f\x03\xa2\x32\xde\x08\xaa\xe0\x9f\xaf\x1d\xa8\xed\x2b\xa2\xae\x84\xbc\xca\x88\xb7\x8d\xcc\xbd\xe9\xaf\xde\x08\xa3\xbe\xb3\x22\xdc\x79\x35\x6b\x29\xc8\x48\x41\x69\x89\x14\xb0\x50\xbe\xb7\x5a\x7b\x2f\x67\x01\xaa\x81\x01\xa5\xa4\x95\x5e\xe2\x7b\xaf\xe8\x1b\x21\xd0\x3b\x43\xe3\xc7\x73\x98", ); test::( b"\xf9\x46\xc6\xbd\x5e\x1d\x6b\x89\x09\x2f\x3c\x48\x7c\x05\x68\xfa\x07\xc3\x56\xfa\xe9\xb8\xe8\x31\xb8\x32\x02\x89\x03\x97\x46\xa4\x35\xb1\x22\xcf\xbc\x4a\x0d\x31\x6b\xf9\x0d\x48\x1d\x3b\x7d\x97\x9c\xc5\x0d\x98\xc1\x19\x0a\xf8\xdc\x58\xe0\x03\x55\x57\xdd\x5e\x94\xf4\x37\xf4\x1f\xab\x51\x32\x02\x64\x3a\x77\x74\x8f\x76\xc6\xb7\x73\x02\xbf\x40\xc3\x92\xcd\x18\x73\x1d\xa0\x82\xc9\x9b\xde\xde\xb7\x0e\x15\xcd\x68\xbf\xf5\x96\x19\xca\xbc\xc9\x2a\xdc\xf1\x22\x75\x3c\x55\xaf\xde\x08\x17\x35\x2b\xc2\x47\xd1\x17\x0b\x8d", n, e, b"\x50\x70\x6b\xa4\x9d\x9a\x31\x66\x88\xa3\xee\x80\xa0\xbd\x98\x67\x57\xd4\x3e\xc8\x32\x85\xaf\x9e\x78\x19\x6b\xd5\x2c\x90\x0d\x40\xb2\x80\xfa\x0d\xe5\x4e\x35\xac\xe7\xd6\x66\x00\x12\xf1\xa6\x62\x04\x09\x2f\x0e\x63\x4b\x97\xe0\xe5\x16\x65\xb4\x07\x5e\x36\xf1\x42\x22\x66\xc7\xca\xd7\xb2\xd9\x98\x1b\x91\x3d\xf3\xfa\x3e\x6a\x5a\x1c\xad\xfc\x63\x78\xa8\x54\x0e\x0f\xaa\x26\xf1\xcc\x6f\xb2\xfb\x49\x2a\x80\xd0\xa6\x94\x5b\xce\x5b\xbc\x23\xdd\xb3\xb1\x07\x01\xf0\x24\x9b\x27\x40\x7a\x67\x00\x80\x2e\x88\x42\xef\x3c\xc7\x61\xc4\x82\x3a\xcb\x5d\x14\x53\x50\x8d\xcd\xbb\x97\x9e\x7b\xd8\xd0\x01\x28\xe6\x0a\x9b\x37\x89\x16\x7c\x91\x41\x7d\x93\xf0\xe9\xfb\xb0\x0c\x9a\xf1\x49\x8e\x09\xeb\x64\x85\xeb\x94\xce\xa4\x88\x3f\x6a\x25\x6e\xab\x2c\xaa\x82\x6d\xe4\xfd\xac\x01\xba\xca\x3a\x21\x6e\x3d\x20\x4a\x3d\x83\x7f\xfd\x4d\x0b\xe2\xb2\xce\xf7\x11\x90\x90\x54\xc4\xda\x1d\x5b\x93\xa8\xf9\x84\x51\xc7\x00\x2a\xe8\x4a\x5e\x70\x80\xd9\x86\x71\xc5\x0e\x3c\x91\xc4\x08\x7d\x04\x77\xb1\x04\xf9\x16\x01\x0e\x74\x2f\x2d\x20\x7f\xb4\x0d\x12\x2d\x8f\x21\x1a\xf6\xd7\xc5\xec\xa4\x95\x42\xd9\xac\xb0\xf1\x66\xe3\x6a\xbc\x37\x15\x50\x70\xc1\x2e\x9f\x28\xb9\x07\xd6\x7a\x2c\xa7\x0b\xfc\xe5\x54\xe1\xc4\x4c\x91\x52\x0e\x98\xfc\x9a\xd0\xc0\xee\x47\x7f\x75\x05\x16\x47\x6a\x94\x16\x80\x66\xce\x47\x00\x00\x30\xa9\x9c\x23\xe2\xc3\x87\x55\xde\x94\x6d\x5e\xdf\x0d\x6a\xa9\x42\x12\xf9\x92\x31\x5b\x24\x8c\x1f\x82\x72\x3b\x29\xc4\x22\x16\xc7\x8c\xdc\xb6\x68\xf1\x12\x78\x26\x1c\xee\x92\x52\xc8\xfd\x0e\xd3\x7d\x0a\x85\x80\xca\x9b\x9f\xde\x75\x05\x61\x59\x43\x71\x2d\xa1\x9a", ); test::( b"\x9a\x33\x7d\x4c\x0b\xb9\xa0\x05\xb4\x7f\x47\x65\xd6\x96\xd1\x9d\xec\x58\xbc\x84\x82\xf2\x17\x3a\x4a\x20\x3a\x0b\x6d\x38\xb4\x96\x1f\x6a\x85\x2e\x76\x46\x8e\x80\x7c\x7e\x45\x76\x83\xee\xad\x5c\xb8\xd9\x86\x42\xfb\x76\xc0\xa1\xee\xab\x36\x41\x4c\x18\x99\x59\x7d\x57\xaa\xf9\x67\x82\xad\xa5\x86\xf6\x1a\x42\x3f\x57\x95\x37\x71\xd5\x20\xcc\x4e\xad\x90\xd5\x69\xf2\x3d\x95\x0f\x8d\xfe\xdd\xdb\x83\x55\x74\x85\x76\xe6\xbb\xfb\x6f\x2e\x91\xb3\xda\x71\x75\x3f\xd2\xf4\xea\x22\x9f\x6d\x20\xe2\x7d\xb8\xd0\x5e\x9f\xcb\x68", n, e, b"\xcf\xf7\xaa\x7f\x87\x56\x42\xfb\x93\x43\xe0\x7e\xf5\xe7\x30\x3b\xbf\x5f\x06\x9b\x44\xc1\x9f\xbf\x83\xe5\x9d\x42\x2e\x25\x26\x7e\xf9\x30\x74\x14\xb6\xb1\xef\x61\x71\x1e\xd0\x01\x32\x76\xd1\xa2\xad\x98\x39\x04\x74\x02\x7a\x0a\x70\x3b\xfe\x8a\x6e\x87\x70\x60\x59\xd8\x9c\x06\x09\x80\xc9\xc9\xe6\x0d\xc7\xe1\xfb\x9f\x77\x7a\x41\x78\x5a\xb4\xd2\xb6\x63\xba\x0e\x3c\x19\x21\x54\x5c\x47\x9c\x2a\x38\x3a\x50\xda\x8e\x48\x9c\xb2\x2b\x71\x10\x1d\x0e\xc1\x48\xac\x70\x92\x87\x32\xa7\x72\x19\x5a\x14\x0d\x08\x01\x52\x76\x2a\x9c\x40\x80\x3a\x39\xfa\x2a\x69\x78\xc2\xa7\x5a\xc4\xd8\xbd\x1b\xcc\xaa\x1f\x42\x04\xba\x65\xed\xdd\xf3\x2f\xed\xf2\xd9\xd0\xa3\xae\xd9\xb0\x6c\x47\xe7\x17\x73\x3c\x57\x78\x12\xd7\x23\xdb\xa7\x4a\x85\x2b\x29\x05\x23\x5c\x81\x2d\xc5\xf1\xd0\xdf\x0f\x0d\xe7\x3d\xfb\x86\x22\x1c\x6f\xfd\xd1\xed\xa1\x19\xbb\xe9\x8d\x14\x8a\xdd\x36\xa4\xfe\x50\x48\x9b\x06\xaa\xee\xfc\xb5\xc2\x06\x6d\x90\xfa\x79\x73\x87\x06\xcd\x18\xe4\x74\xd6\x96\x09\xff\x12\x10\xc7\x7d\xe7\xcd\x23\xba\x2a\x77\x5a\x43\x29\xcb\x27\x1a\x82\x6d\x60\x2c\x40\x1a\x71\x43\x90\x19\xce\xc1\x0c\xd9\xf1\x84\xc4\xd0\x45\x84\x21\x18\x27\xb1\x9e\xad\xac\x32\x58\xd8\xa0\xf2\x63\x16\x13\xf0\x51\xaa\xe0\xc6\x13\x05\x0c\xb2\x44\x42\xf1\x5e\xd4\xfe\x0d\xbd\x29\x0e\x42\x62\x91\x41\xbd\x2c\xd5\x6d\x20\x58\x4a\x1d\x10\xe1\xf2\xc2\xa9\xec\x73\x14\x33\xd5\xbc\xd1\xd3\x18\xbe\xd5\x24\x3b\x4b\x7d\x0f\x9a\x79\x82\x06\x1c\x55\xdf\xaa\x86\xb2\xc0\x18\x45\xc0\x21\xfd\xd2\xa9\x78\xd4\x20\x34\x21\x2f\x43\xb3\x35\x1b\x6a\xde\xb0\x3b\xdd\x6c\xaf\x7d\xe0\x59\x50\x2f\x16\xd7\x73\x48", ); test::( b"\x32\xfd\x45\xe7\x3f\x6f\x69\x49\xf2\x0c\xab\x78\xc0\xcc\x31\xd8\x14\xba\xea\x63\x89\x54\x6a\x36\x5d\x35\xf5\x4f\x23\xf1\xd9\x95\xb7\x41\x01\x18\x77\x60\xc8\x9b\xb0\xb4\x0b\x50\x57\xb1\x82\xe2\xfa\xfb\x50\xb8\xf5\xca\xd8\x79\xe9\x93\xd3\xcb\x6a\xe5\x9f\x61\xf8\x91\xda\x34\x31\x0d\x30\x10\x44\x1a\x71\x53\xa9\xa5\xe7\xf2\x10\xeb\xe6\xbc\x97\xe1\xa4\xe3\x3f\xd3\x4b\xb8\xa1\x4b\x4d\xb6\xdd\x34\xf8\xc2\xd4\x3f\x4a\xb1\x97\x86\x06\x0b\x1e\x70\x07\x0e\x3e\xd4\xd5\xf6\xd5\x61\x76\x7c\x48\x3d\x87\x9d\x2f\xec\x8b\x9c", n, e, b"\xc3\x89\x61\x37\x17\xec\x74\x76\xec\xda\x21\x44\xd0\xe8\xc8\xf9\xd6\x6f\xb4\x69\xc1\x67\xc4\x20\x9e\xc0\xbd\xee\xbf\xb4\x71\x66\x5d\x33\xda\xd4\x7b\x8f\x3c\x31\x9a\x76\xfe\x8a\x8a\x9f\x66\x2b\x6c\x69\x0b\x74\x90\x3d\x17\xf6\x1e\x23\x14\xe5\xea\x8d\x26\x67\x0e\xe4\xdb\x4d\xad\x29\x5b\x27\x7c\xa0\x8a\xde\x88\x0d\xe2\xe4\x2d\x12\xb9\x29\x52\x76\x4c\x1d\xc8\x08\xc2\x66\xdb\xbe\xdb\x67\x01\x58\xee\xf3\x6e\x89\x6f\x55\xa2\x03\xfb\x99\x55\x6d\xed\x05\x97\x41\x0b\xa3\x74\x86\xb1\xd8\x41\xf3\xd6\xd5\xc0\xb3\x9f\x2f\x49\xf0\xc5\x79\x48\x24\xfb\xa9\x4a\x8e\xc7\xc2\xb2\xc9\x1e\xad\xd5\xc8\xcb\xe4\x48\x95\xfe\x3b\xe3\xbc\x17\x27\xd6\xfc\x0e\x53\x64\xf5\x35\x78\x63\x9d\x3b\x3a\xf6\x96\xb7\x50\xa0\x78\x53\x69\x4f\xfe\x14\x5a\x28\xc0\x36\x20\xc7\x8d\xd7\x37\x7d\x09\x4d\x92\xc3\xe0\x95\x46\x88\x3d\x47\x03\xe6\x2a\x98\xdd\xf8\x1f\xd0\x1f\xcd\xf3\xc4\xb2\x15\x22\x4f\xe2\xb1\xb4\x99\x2a\xbf\x31\xf2\x0d\x12\xaf\xa8\x68\x20\x23\x90\xde\x33\x4a\x84\x6b\x2d\x58\xb2\x53\xea\x8a\xb3\xc5\x26\x5d\x84\x77\x3a\x65\x9e\x8b\xac\x7a\xf4\x41\x23\xd9\xea\x15\x06\x2e\x65\xd4\xd4\x19\xcf\x2d\x97\x07\x7d\x06\x24\xf8\xe5\xc3\x6f\x2c\x7b\x35\xcc\xf9\x54\x35\xd5\xc3\x68\x86\xff\x91\x05\xa6\xc1\xea\x22\x5e\x15\xea\x8c\xbc\x7b\x6b\xf6\x85\x61\x51\xcd\x76\xfb\xb7\x5b\x5b\x98\xf0\xe3\xdb\x51\x6a\x8e\x21\x81\x89\xfc\xb1\xcd\x5d\xe3\xca\xfe\xaa\x33\xef\x13\x5c\x5d\x8b\x8a\xa5\xf8\x81\xaf\xaa\xca\xf4\xc0\x8b\xd7\x28\x12\x55\xbc\x2a\x33\xb7\x6d\x4a\x36\xe0\xb1\x70\xc4\x55\x88\x23\x9e\x5b\x38\xc6\x79\xb0\x8c\xf8\x02\xaf\x73\xb6\xd7\x9b\x39\x35\x94\x94\x61\xe7", ); test::( b"\xab\x66\xcc\x48\x7e\xc9\x51\xf2\x11\x9d\x6e\x0f\xa1\x7a\x6d\x8f\xeb\x7d\x07\x14\x9b\xec\x7d\xb2\x07\x18\xe4\xf3\x1d\x88\xc0\x1f\x9a\x53\xd5\xba\x7e\xce\x3a\x4d\xbc\x67\xaf\x6a\x35\xd1\x30\xea\xe7\x62\xcb\x79\x62\xb9\xae\x55\x7c\xa3\x84\x52\x46\x40\x02\x22\x3f\x61\xbc\xd3\xc7\x35\x3e\x99\xd6\x25\x58\xce\xed\xfc\xb9\x37\x4d\x4b\xbf\x89\x68\x0c\x8e\x2b\x95\x85\x60\x3e\x07\x6f\x1c\xdb\x00\x58\x29\x9b\x42\x46\x84\x5d\xc7\x9d\x10\x43\xb1\x42\x2e\xfe\x84\x01\x8e\x4c\x93\x2c\x45\xbe\xb8\x85\x1f\xbf\x48\x5e\x36\xd2", n, e, b"\xb5\x13\x31\x55\x2b\x08\xbe\x35\xa1\x69\x8a\xa6\x20\x3d\x84\xdb\xff\xf9\x00\x1e\xd5\xdd\x77\x6f\x2b\xe4\xdd\xfc\x07\xdd\x46\x20\xe9\x65\x4e\x82\xa3\x34\x65\xbd\x20\xf1\x18\x63\xc0\xed\x02\xa0\xae\xa2\x7a\x44\xd4\x14\xc3\x28\xa9\x38\xbf\x87\x7e\x15\x83\x8a\xb9\x9d\x67\x0d\x01\x41\x42\x62\xe8\x86\x5d\xc1\xd9\xfc\x30\xfd\x08\x12\x69\x9f\xa6\x90\xc3\x4f\x30\x2f\x63\x7e\xc8\x02\xcd\x40\xac\x85\x91\xe9\x76\xc0\xb8\xbc\xcb\x1b\x01\x37\xaf\x64\xa2\x87\x02\x10\xe8\xfa\x3d\xc4\x31\xfe\x09\x56\xb8\xad\xdf\xf1\xe4\xb1\x8c\xf0\x7e\x07\x8a\xa9\x3a\xf8\x1b\xb3\x02\x3c\x9e\x59\x4e\x66\x59\x5f\xd9\x2b\x10\x22\x6e\xa1\x26\x00\x5f\x47\x24\x42\x73\x52\xc3\x8e\x9e\x85\xfc\x2e\x07\x23\xf8\x0a\xf1\xf6\x15\x99\x55\x0b\x5e\xf5\x4c\x5b\x38\xca\x40\x57\x38\x01\x7b\x89\xcb\x94\x68\xd9\x74\x1c\xd6\xbd\xf7\x11\x21\x62\x25\x1b\xa1\xd0\x83\xcc\x37\x0a\x4a\x82\x61\xc3\x9b\x6b\x94\xbf\x21\xa5\x3b\x75\x64\x53\x1a\xe9\xeb\xc4\xcc\xea\x7e\xbb\x8b\xd3\x14\xb2\xe1\x3b\x58\xed\x10\x18\xae\x5b\x41\x5e\x0f\x9e\x3e\x19\xa5\xea\xd3\xa4\x46\x03\xf9\x06\x74\xa1\x90\xfe\xbd\xe2\x5f\x8a\xd8\x77\x8a\xee\xad\x4d\x0f\x64\xfb\xae\x37\x16\x6a\x54\xe3\xa7\x63\xe3\x55\x59\xbf\x8c\x3f\x17\x3f\x19\xff\x7b\xab\x98\xf3\xef\x80\x3d\xd5\x6c\x07\x62\x83\x99\xaf\xf8\x74\x85\xee\x73\xdb\xc3\xdb\x34\xec\xc7\xbf\xf3\xa5\x32\x26\xcf\x87\xbc\x81\xd2\x56\xe8\x0c\x09\x52\x0c\x8f\x38\xe9\xbc\xda\x09\x5e\x36\x35\x12\x8e\x1b\xed\xd9\x97\x06\x00\x54\x6a\x75\x1e\xb1\x1d\xab\x42\xe2\x89\xd6\xfd\xfe\xa0\x4b\xd5\x8d\x45\x71\xa7\x9d\x24\xbc\xe4\x50\x8c\x54\xe1\xec\x4c\xf7\x5b\x98\x5f\xd3", ); test::( b"\xfe\xf7\xfe\x89\xb9\xa5\x99\x02\xa7\x0a\x1d\x9c\xaa\xd0\x9c\xed\x8b\xee\x41\x45\xed\xcb\xe3\xef\x7f\xa6\xda\xb3\x76\x35\x12\x9f\x3b\x8c\x5e\x08\x60\x41\x0e\xcb\xd9\xce\xc3\xd8\x69\x36\x82\xf2\x5a\xec\x08\xb0\x71\xf0\x5d\xc8\x21\x3b\xac\x8c\xff\x5d\x52\xb5\x76\x65\x35\x60\xbc\x01\x57\x56\x04\xe6\xab\x90\xf6\x72\x27\xfb\x5c\x90\x1a\x78\x1e\xdd\xc0\x27\x70\x09\x13\xe5\x4a\x7f\xe5\x13\x18\x48\x2c\x9a\xb4\x2c\x9d\x2b\x91\x1b\x7c\xcc\x39\xcc\xb2\x90\xf9\xa4\x20\xa5\xda\xd9\x33\x94\xd4\xd7\xb8\xc5\x3f\xe3\xf2\x42", n, e, b"\x45\x06\x8c\xa6\xd8\x2f\x2c\x12\x39\x25\xcd\xe1\x19\x71\x21\x5d\x8f\xa4\xa4\xdf\x68\x48\xbb\x76\x54\x86\x87\x00\x97\x87\x64\x85\x46\x38\x92\x1b\xea\x58\x69\x28\x0d\xc6\xad\x95\x81\xab\x43\xff\x70\x12\x96\x99\x48\xa5\x67\x7f\xa0\xa6\x61\x36\xa3\x16\xa4\xbf\xec\xb8\x9a\xdf\x41\x31\xb5\xbe\xdf\x3d\x46\x93\xb7\x80\xd1\x33\xaf\x9b\xf9\xc1\x33\x30\x5b\xe7\x83\x74\xaf\xda\x3b\xa3\x85\x42\x03\x32\x44\x81\xa9\xd1\x0b\x9c\xa9\xb9\x2d\xc7\xd7\x4d\xf5\x31\x87\x2d\xdf\xc7\x6c\xaa\x82\xde\x02\x0e\x2c\x41\x56\x43\xcb\xcc\x42\x80\xe6\xd2\xf4\x37\x1f\xda\x7d\x92\x49\x31\x4a\x8f\x43\x76\x48\x99\x1a\x9b\x03\xd7\x1b\x58\x39\xad\x38\xa1\x55\x5a\xd3\x45\x26\x99\x4b\xa5\x68\x70\xb6\xea\x18\x01\x12\x95\xf2\xca\x2b\x07\x13\xb2\xe9\x2a\xd7\x76\x80\xc0\xdc\x5b\xed\x8d\x3b\x9b\x31\xac\x14\xdf\x76\x99\x49\xc4\xa4\x3e\xa6\x7f\x6d\xee\xb3\xdc\x9e\xd5\x89\xea\x4e\x8a\x2c\xf6\x69\x5d\xf4\x6f\x94\x6f\x14\x67\xb2\x8e\x87\x54\x77\xae\x4e\x64\x50\x80\xfa\xfd\xa6\xdd\x55\x1d\x2c\x02\xfd\x6b\x2b\x19\x4f\xc0\xbd\xb0\x50\xe0\x6d\x4c\x78\x41\x05\xf5\xa3\x3b\x53\xe7\x30\x98\x05\x59\x63\x07\x1e\xfc\x1b\xf3\x97\xfd\x32\x5f\x3a\x6f\x4e\x10\xd7\x6f\x04\x11\xa0\x01\xe6\x2e\xc7\x37\x29\x01\x83\x16\xf5\x63\x10\xf8\x93\xa5\x93\x63\xd1\xf6\xfe\x5c\x17\x44\x4b\x6c\x72\x8a\x49\x33\xb7\x52\x12\xfd\xfa\x25\x8e\x40\x18\xb7\x76\x39\x51\xab\x4e\x50\x96\x41\x1d\xf9\xe5\xbc\x16\xdf\x38\x96\xe4\x6c\x97\x3d\x32\xac\x92\x76\xa4\xe2\xb5\xb8\x0e\x3d\x8d\x79\x8d\xc0\x47\x0b\x45\x09\x6b\x4d\x73\x86\x69\xce\x05\x2e\xd8\x18\xe5\x60\xaf\x1e\x92\xc9\x15\x18\x7d\x66\xcc\x30\x8b\x70", ); test::( b"\x82\xb3\x84\x0e\xeb\x95\xc9\xc5\x77\x24\xc7\x0f\x11\x2b\x6c\x2d\xc6\x17\xc3\x17\x85\xac\xd0\xc8\x23\xf8\xbc\xdd\xa2\x85\x32\x5e\xb3\xd3\x08\xdc\x79\x05\x22\xbc\x90\xdb\x93\xd2\x4e\xe0\x06\x32\x49\xe5\x5d\x42\x19\xad\x97\x14\x5f\xea\xf7\xf3\x06\x68\x62\x3c\xc8\x89\x0a\x70\xf4\xf1\x49\x86\x6f\x82\xcf\x86\xf9\x8b\x00\x53\xb2\x3c\x98\xc8\xdd\x5e\x91\x07\xe3\x41\x46\x0e\x9b\xf5\xd8\x8c\xc8\xbc\xd1\xf2\xe4\xc0\x07\xcc\x1c\x02\xc4\x52\x9b\x93\x23\x3a\x0b\x06\xbd\xd1\x59\x25\x85\x4a\xb9\xe3\xf1\x56\xeb\x92\x5b\xf5", n, e, b"\x05\x93\xb9\xfd\x44\x21\x45\x23\x76\xd2\x7b\xc7\xa2\x80\x10\x1c\xfd\x6e\x88\xa6\x72\x7d\x7d\x77\xcf\x65\xce\xb7\x23\xec\xd2\x57\xf3\x2f\xe1\x02\x77\xe8\x57\x98\xe0\xda\x75\x91\x77\x36\xda\x1a\x3b\xfc\x22\xad\xc7\x65\x8f\xbb\x84\xda\x6e\xbe\xa0\xb0\x7d\x1c\xc4\x05\x73\x2f\xb0\x40\xb5\x85\xc1\xb6\x3c\x80\x34\x06\x9b\xff\xb8\x22\x06\x56\xf1\xac\x54\xce\x69\x37\x20\xd6\xfb\x1b\x5a\xec\x67\xb0\x3c\x88\x7c\x80\x77\xda\x14\x8d\x10\xf4\x8a\xf7\xc0\x28\xf9\x92\xb1\x8f\x13\xc0\xe5\x75\x30\xc0\x86\xd7\x75\x48\x3d\xa5\xf6\x6f\x3a\x6a\x19\x18\x78\x68\x34\x0a\xc6\x3c\x62\x12\xbc\xbd\x6c\xbb\x7b\xed\xa8\x62\x0a\xfd\x9b\x66\xde\x47\x47\x3e\xf2\x4d\x1b\x6a\x36\xf4\xec\xe9\xad\xd4\x95\x14\xfd\xf1\xd8\x4c\x7a\x78\x5b\x7f\x0e\x00\xf3\x82\x23\x58\x99\x79\x0f\x47\x2d\x13\xf4\x85\x58\xa4\x31\x47\x42\xf3\x76\x80\x8d\xec\x96\xed\xd2\xe2\x29\xe9\x43\xf7\xb9\x83\xbe\xa5\xec\x6e\xdf\xa5\xe9\xbb\x37\xf5\x88\xe5\x5e\xf6\x2e\xbc\x92\x14\xbe\xaf\x9d\xa5\x02\x43\x4e\x10\x88\xdf\x27\x2c\x6c\x77\xc1\xe1\xd8\x97\xc4\x7b\xea\xb7\x7e\x3b\xbe\x31\x7f\x8d\x43\xd2\x1f\xd7\xe9\x43\x37\xc7\xe2\x63\xe2\x86\x7b\xf5\x80\xa2\xa8\xec\xb9\xe3\x6a\xb7\xd3\xe1\xd5\xcf\x9a\x23\x23\x09\x53\xd5\x9d\xf0\xd7\xe2\x35\x58\xfb\x61\x2b\x79\x18\xab\xba\x31\xb1\x64\xce\x17\x88\x18\xa1\xa9\xe6\xb6\x68\x7f\x4d\xe6\x85\xd7\x0e\x16\xbe\xf6\xe1\x92\xfa\xed\xfe\x0b\x2b\x95\x47\x7d\x37\xb0\xa3\xa2\xd0\x02\xf3\x3e\xf4\x32\x1c\xb9\x05\x04\x0c\xe0\x6f\xda\x1c\x98\xa0\x08\x76\x7f\xbc\x78\x1a\x1e\xaf\x33\x75\xda\xb8\x66\x4b\x59\x03\x36\xb9\x9e\x15\x7b\x86\x87\xa6\x60\x2f\xef\x6a\x3b", ); test::( b"\xe1\x53\xcc\xa4\x43\x1e\xd9\x71\x3f\x47\x44\xba\x05\x4f\x5f\x19\x1c\xb3\x7b\x28\x01\x08\xae\x3a\x11\x4a\xd3\x49\xa8\x72\xd1\x30\x8b\x46\x21\x1a\x83\x75\x8a\x3b\x4b\xe3\x2f\xbe\xac\x42\xcc\xfe\xe7\xe2\x3d\xf8\x53\xca\x40\x01\x47\x07\x7b\xb4\x3a\x44\xc1\x2f\x29\x9b\x91\x7f\x3a\xab\xdf\x58\x9e\xeb\x17\x09\xbb\x3d\x60\xb0\x8b\xc7\x1e\xaa\x3f\xfe\xba\x4e\x29\x03\xa5\xdb\xd8\x33\x9a\xae\x85\xfa\x24\xb9\xae\xe7\x61\x30\x00\x06\x05\x85\x7a\x6a\xa1\x97\xd0\x09\x26\x27\x0d\xcd\xa5\x8b\x7d\xe7\x58\xa6\xca\x67\xe6\x17", n, e, b"\xa8\x35\xcd\x41\x46\xbe\xf4\x65\x64\x2d\x49\x49\x36\x26\x8a\x31\x1a\x54\x90\xd2\xc9\xf9\x16\x6c\x6c\xe9\x82\x16\xa9\xa2\x3a\x64\x35\x97\x30\x0a\x00\x50\xe6\x44\x5a\xbd\x5a\x9b\xfc\x7a\x2d\x9b\x70\x72\x6c\x82\x4c\x38\x3b\xf5\xac\xad\xdd\xdc\x34\xd4\x34\xa3\x1e\x53\x14\xd2\x5f\xb5\x8e\x25\x8f\x51\x88\x66\xc1\x36\xe5\x28\x55\xc1\x6f\xe6\x4f\xf8\xf1\xc4\xd6\x6c\x4e\x9e\x39\xb8\xcb\x11\x96\xd8\x09\x44\xd0\x74\x6c\x0a\x3e\x17\x69\xcd\x41\x67\xdf\x72\xab\x5e\x4c\x9d\xba\xe9\xcb\x35\xf4\x82\x8e\x12\x09\x9f\x9b\x36\xa5\xa7\x0c\x48\xd4\xae\xc9\x87\x2d\x7b\x19\xe1\x29\x1b\x33\xcb\xdf\x08\xa2\x26\x3d\x50\x0c\x0a\x83\xb5\x23\x7e\xf6\xce\x92\xde\x34\x4b\x3b\x41\xd0\xd0\x74\x04\xfc\xd5\x46\x7b\x04\x6b\x52\xb8\xf8\x5f\xc6\xb5\xd7\xaf\xc4\x37\xf1\xee\x9e\x78\x39\x0c\xa9\xbb\x6c\xec\x61\x88\x85\xec\xe2\x97\x58\xf2\xfd\x6f\x4e\x5f\x4f\x89\x69\x35\xde\x5f\x67\xcc\x04\x05\x5a\x4c\x4c\x0f\xba\x5d\xef\x8d\x2c\xaa\x17\x93\x31\xa8\x55\x01\xed\x25\x82\x2a\xe7\x9d\xa9\xbc\x81\x5c\xc3\x9c\x6a\x97\x92\x11\x08\x3e\x86\x83\x13\x6c\x94\x2e\x1e\x17\xe9\xeb\x8f\x84\xaa\xcf\x09\x1a\xa1\xe5\x16\x65\xfa\xe4\x46\xbc\x48\xc3\x04\xaf\x65\x39\x1f\x27\x9a\xfb\x98\xb9\x2e\x04\xc2\xb7\x3d\x9d\x94\xe9\x91\x19\x8f\xe7\x78\x1f\x0f\x96\x96\xfc\xba\x2c\x03\x48\x5f\x76\xe6\xde\x30\xb9\x53\x5c\xf3\x90\x3d\xb2\xf3\xaf\xa8\x51\xa4\x7b\xcd\xe7\x2d\x4e\xd2\xe8\xfa\xbf\x9b\xb7\xd4\x69\x6c\xb4\xab\x8c\x28\x9b\x0c\x21\xe1\xf9\x79\xeb\xc5\x32\xe2\x80\xcd\x90\x10\xdf\x4e\xe7\x2f\x84\xbb\x9e\x82\x75\x28\x28\xf1\x67\x03\x0c\x0f\xe3\x48\xeb\xc3\x1e\xc1\x7b\x8f\x07\xd9\x4b", ); test::( b"\x9c\x63\x89\x9d\xfc\x7b\xdc\x0d\xb3\x84\x72\x72\x44\xca\xf7\x1e\xcf\xb9\xb8\x79\x2b\x9f\x57\xe9\x36\xb3\xc2\xf5\x69\x55\x65\xa9\xb0\x97\x9f\x3c\x78\xfd\x73\xf0\x09\x81\x81\x3a\x16\xda\x34\x23\x92\xfe\x3c\xee\xc6\xe6\x3f\xfb\xa1\x91\xcb\xeb\x4f\x4b\x90\x05\x0d\x2f\xcc\xd8\x3b\xeb\x06\x22\xb2\xc3\xff\xf1\x59\xd9\xe6\x08\xf3\xab\xcb\x84\x3b\xdd\x56\xc0\x33\x39\xb9\x75\xb9\xf4\xe3\x26\x5b\x32\xf6\xbb\x6c\xcd\xfc\x6c\x57\x52\xd6\xe0\x34\x4d\x74\x96\x99\xc7\x4c\x85\xb3\x0c\x04\xff\x95\xb2\x72\xdb\xcf\xd6\xc7\xd3", n, e, b"\x4d\x38\xa2\x97\x30\x2a\xd0\x77\x0d\x97\x29\xce\x5b\x72\x12\xee\xf2\x87\xce\x02\x50\xf4\x03\xe3\x2b\x4a\xcc\x36\x17\xdc\x0d\x2e\xdc\xcc\xc2\xd5\x80\xdd\xbd\xbc\xa5\x72\x2b\x70\x70\x40\x58\xa3\xb8\x07\xf5\x92\xe4\x00\xbd\x56\x3f\xca\xa8\xb0\x66\xa6\x14\xb4\x90\x6f\x14\x33\x96\x8e\xd2\xf5\x20\xa2\xf6\xb0\x34\xd4\xb2\xd6\x89\x0a\x24\x1a\xfd\x1a\xdb\x86\x39\xa6\xca\xd9\xdb\xfd\x2e\x27\x8d\xfe\xbf\x79\x74\x0d\x75\xf2\x95\x75\x9d\x29\x13\x0b\x19\xab\x19\x98\x3d\xd6\x8f\x77\x9d\xe4\x1f\xfe\xfd\x4e\x82\xb5\xe6\x2f\x72\xf9\x0e\xfb\x73\x43\x7f\x08\xa2\x50\x3d\xd9\x81\x9d\xae\x20\xba\x97\x06\xc1\x99\xde\x9c\xf8\x84\x43\x3e\xeb\x75\x62\x86\xa8\x5e\xae\x14\xbf\x9f\x6d\xbe\xb7\x05\x46\x1d\x91\x82\x22\x82\xf1\x8e\xfb\xb1\x05\x89\xa5\x78\xf2\xc9\xc3\x45\xb0\x79\xa7\xe9\xdd\x07\xfd\x4b\x34\x05\x1b\x27\x11\x97\x29\x90\x6c\x77\xdf\xb7\xd2\xf8\xfa\x6b\xdd\x5f\xaa\x1e\x13\x2b\xfb\xa9\xd3\x91\xe6\x63\x95\xe6\x7f\x01\x35\x3f\xa2\x75\xea\xce\x8b\x53\xaa\x91\xcb\x6f\xb6\x93\xe1\x91\x91\xd4\x2a\x4c\x1a\x85\xa0\xc5\x04\xb1\xc8\x5f\x49\xa4\xd6\x09\x36\xde\xe4\x64\x6a\xca\x62\xa9\x4a\xa4\xbc\x78\x28\xc1\xff\xaf\xde\x8b\xe6\x56\x31\x7d\x50\x6a\xbe\xc1\x79\xcc\x90\x19\x1d\x12\x35\x6f\xf5\x06\x44\xd3\xe0\x1a\xa5\xbc\xfd\xd7\x1d\x3c\x82\x8d\xc3\x53\x9d\xc0\xcf\x3f\xe8\xb9\xb9\x1e\x0c\x25\x24\xf6\xa3\x71\x03\x79\xc9\x0a\xff\xd0\xd0\xa5\x0d\x74\x38\x7f\x9c\xa8\x8b\x46\x46\x3e\xf1\xbd\xba\x58\xcc\x9a\x36\xe5\xc2\xc4\x35\xa2\x0d\x96\x83\x50\xd1\x5d\x94\x1c\x32\x12\xcd\xce\x81\x55\x92\xb3\x10\xd2\x59\x86\x0d\xe1\xdc\x1a\x3d\x70\xac\x22\x30\x2a\x51", ); test::( b"\x04\x84\x6c\x2e\x67\x6a\xc7\x31\x60\xbf\x4e\x45\x65\x2b\xdc\x6c\xc4\xd4\xc9\x28\x45\x77\xb4\x32\x0a\xb7\x7f\x6e\xbb\xb5\x9a\x1f\xe0\xe0\x85\x58\x8e\x0f\x90\xb3\x46\xcd\xe6\x44\x1a\xf3\xc9\xd0\x11\x7d\x1f\x3b\xcd\x96\x2e\x40\x6b\xf5\xa4\x65\xab\x6c\xda\x2d\x51\xbe\x59\x8f\xcb\xb2\x9e\xa7\x13\x65\x1a\xac\xd7\xe4\x7d\x22\xd8\xfa\x34\x50\x90\x47\x30\xf5\x17\x92\xea\x37\x47\x61\xa4\xdc\x1f\xc6\xf1\xbc\x65\x7b\x77\x76\x8f\x31\xf4\x63\xe4\x26\x7f\xc8\xdf\xf6\x11\x50\xd4\xb3\x43\xb9\xd5\x37\x59\xcd\xd7\xb9\x80\x94", n, e, b"\x10\x3b\xee\x57\xe2\x5b\xe8\xc3\xa2\xf7\x74\xe7\x39\xb4\x7f\x93\x43\x5e\x41\x49\x32\xc0\x49\x4b\x6b\x6a\xa2\x47\x5b\xf7\xc9\x30\x5c\x73\x74\x7e\x0a\xdf\x82\xc2\x03\x20\x07\xb3\xf7\x5a\x69\xc9\x31\x12\x61\x7a\x62\x56\x6c\x5a\x2d\xea\xa2\x5f\xb9\x52\x09\xda\x49\xfe\x9c\x16\x1c\xb2\xff\xa4\x0f\xd9\xd7\x7f\x1f\xf6\x60\xc8\xb6\xcd\x3b\x54\xe3\xe7\x9a\x75\x9c\x57\xc5\x71\x98\x02\xc9\x31\x1d\xb7\x04\xba\x3c\x67\xb4\xa3\x11\x37\x54\xa4\x1b\x8d\xa5\x9c\x64\x5b\xe3\x90\x9e\x7d\xb7\xe7\xcf\x72\x94\xda\xb4\x4f\x74\x24\x0f\x81\xa2\x81\xee\xcd\x6e\xf3\x1c\x7c\xf1\x8b\x1a\x19\xc7\xd0\x2a\x31\x2b\x91\xd6\xed\xfa\xa9\x54\x46\x2d\x34\x74\x0a\xf5\xab\x70\x8d\xb5\xa1\x0b\x00\xc5\x42\xbe\x82\xfa\x2b\x20\x26\xb0\x9e\xf3\x8a\x40\x01\x45\x7e\x27\xa6\x02\x37\x70\xe4\xb4\xd5\x00\x32\x67\xc8\x5c\x9e\xea\x1d\x5f\x8d\x77\x0b\xd4\x0b\x55\x4d\x5b\x4d\xaf\x14\x6d\xcc\xab\xac\x3e\xa8\xa1\x3a\x05\xc3\xbd\xdf\xc9\x71\xc5\x15\x8f\xac\x02\x7c\xa1\x9b\x72\x32\x62\x1e\x9d\x2e\x37\xb6\xa6\x55\xaf\x54\x5e\x44\xa2\x98\xbe\x78\xcd\x47\x5c\x22\xa4\x8b\xff\x7c\x34\x94\xa5\xf8\xa6\xab\xdf\x1a\x46\xf9\xde\x08\x2e\x37\x4f\xd5\x98\x86\x7d\x61\xe4\xd5\x1d\xae\xd8\x41\x52\xe4\x3c\xc6\xa2\xaf\xfa\xe2\x05\xed\xc5\x26\x13\x48\x0d\x41\x1a\xba\x84\xfc\xc9\xb6\x9d\x1c\x28\xf1\x6f\x76\x83\x69\x01\xa7\xc5\xb3\xeb\x2f\x2c\x94\x0d\x0a\x3f\xad\x38\xa8\xef\xab\x96\x8a\x0c\x85\xeb\x22\xe1\x1d\x3d\x08\x61\x13\x6c\xed\x5f\x06\x73\x4f\xdf\x8d\x4f\x15\x1d\x23\x86\x1b\x1c\xba\x9b\x9c\x58\x0d\x33\x50\xc7\x6d\x4d\xc8\x08\x46\x1d\x5f\x87\x2e\xc5\x48\xb2\xb4\x27\xdf\xf7\x4b\x1d\x1a", ); test::( b"\xdb\x6c\x9d\x4b\xad\xb1\xd9\xb7\x4d\x68\x34\x64\x48\xb4\xd5\x34\x06\x31\x78\x3b\x5a\x35\xac\x24\x58\x56\x3e\xd0\x67\x2c\xf5\x41\x97\x58\x7f\xb7\x34\xc4\xac\x18\x9b\x2d\xda\x95\x4c\xdf\xb1\x8b\x41\xc0\x10\xa7\x7e\x90\x46\x4e\xea\x6f\x86\x3c\x5d\xa0\x95\x6b\xfa\x8c\xc6\x36\xbf\x0a\x28\xbe\x5a\xdd\xfe\x8d\x3e\x7e\x6f\x79\xf7\x1d\x7f\xcb\xba\xe2\x3e\xa1\x41\x78\x3f\x91\xd6\xcc\x4c\x8f\xad\x12\x58\x11\x76\x0a\xb5\x71\x33\x81\x88\x92\x47\x1a\x79\xc6\xd0\x4e\xaf\xef\x37\xb2\xfb\xe5\x06\x78\x53\x18\xf9\x39\x83\x77", n, e, b"\xd4\x80\xd5\xa9\x79\xad\x1a\x0c\x4c\xa3\x29\xeb\xd8\x8a\x4a\xa6\x94\x8a\x8c\xf6\x6a\x3c\x0b\xfe\xe2\x25\x44\x09\xc5\x30\x54\xd6\xff\xf5\x9f\x72\xa4\x6f\x02\xc6\x68\x14\x6a\x14\x4f\x8f\x2b\xa7\xc4\xe6\xb4\xde\x31\x40\x0e\xba\x00\xae\x3e\xe8\x75\x89\xdc\xb6\xea\x13\x9e\x70\xf7\x70\x4f\x69\x1b\xc3\x7d\x72\x2f\x62\xbb\x3b\x2c\xd3\x03\xa3\x4d\x92\xfd\xe4\xde\xb5\x4a\x64\xdd\x39\x18\x43\x82\xd5\x9c\xca\xf0\xc0\x7a\x7e\xa4\x10\x7d\x08\x08\x26\x0e\xd8\xd4\x21\xcb\x8b\x14\x07\xcd\xf9\xe9\x15\x15\x92\x82\xb9\xf7\xbf\xfd\xbf\x40\xd8\x77\x88\x5d\xa7\x39\x9e\xde\xbd\x30\x0a\x7e\x77\xa9\x08\xf7\x56\x65\x9a\x18\x24\xf9\x5c\x8a\x81\x2a\xa5\x40\xeb\xaa\x64\xab\x54\xa2\x33\x72\x3d\xb5\x5c\xaa\x8b\x44\x66\xea\x9a\xe6\x61\x4a\xd1\xbb\x86\x9e\x9d\x8e\x0d\x03\x2f\x39\x01\x67\x1e\x94\xc0\xb6\x73\xbe\x65\x37\xcd\x54\x27\x8e\xd3\xda\x2e\x1e\xdb\xc0\x4e\xe3\xa9\xe8\x07\x0d\x73\xba\x0f\xfb\x93\xe6\x0f\x30\xb8\x7f\xf3\x86\x2e\x9c\x53\x90\x8f\x2c\x8e\x99\x91\x56\x68\xc1\xf4\x66\x35\xe0\x5b\xf7\x16\x30\x51\xff\x9d\x92\xbc\x71\xa6\x26\x55\x3c\x69\xdf\xdd\x06\xa4\x9f\x7f\xf1\xed\x51\xe9\x18\xf3\xed\x80\x1d\xae\x62\xca\x27\x6d\x70\x63\xd7\x2a\x6e\xbc\x13\x6b\xa0\x6c\xfe\xdf\x5a\xa2\x32\x77\xe8\x10\x08\xc6\x3b\x2e\x00\x83\xd0\xfd\x68\x14\xf6\xd4\xb4\xb4\x0a\x42\xe8\xc0\x20\x6f\x3c\x35\x6a\x5e\xc7\x09\xb7\xc8\xa4\xb7\x4b\x7b\x48\xd5\x3c\x9d\x86\x94\xd2\x73\x59\xc2\xc7\x70\x19\x38\xd2\xf0\x16\x17\x21\xa5\x73\x13\xbb\x1a\x2e\x11\xda\x21\x58\x72\x49\x81\x82\x49\x3d\x85\x17\x04\x3b\x4c\x03\xf9\x34\x46\xaa\xc9\x38\x30\x27\x65\x42\x02\x6c\xe8\x30\x55", ); test::( b"\xd5\xdd\x3b\x6c\xe9\x77\x2d\x9a\x97\xfe\x21\x64\x84\x97\x78\x3b\xac\x5b\xb5\x25\x4a\xad\x82\xb6\xf7\xcb\xf4\x3b\x15\xa4\x0f\x38\x6e\xea\x8d\x15\x19\x67\xdb\x14\x9e\x94\x65\x86\x59\x68\x13\x3f\x24\x6e\x13\x47\x30\x1a\xda\xd2\x34\x5d\x65\x72\xca\x77\xc5\x8c\x15\x0d\xda\x09\xa8\x7b\x5f\x4d\xa3\x6b\x26\x6d\x1f\xa7\xa5\x9c\xcd\x2b\xb2\xe7\xd9\x7f\x8b\x23\x15\x43\x19\x23\x53\x0b\x76\x2e\x12\x6e\xac\xaf\x5e\x5a\xc0\x2f\xf1\xaa\xef\x81\x9e\xfb\x37\x3c\xf0\xbb\x19\x6f\x0e\x82\x9e\x8f\xe1\xa6\x98\xb4\x79\x0a\x2a\x05", n, e, b"\xbf\x9e\x8b\x4f\x2a\xe5\x13\xf7\x3d\x78\x89\x58\x00\x37\x33\xdb\xe2\x09\x57\xb1\x47\xb1\x7c\x3f\x4f\xd6\xd0\x24\xe8\xe8\x3f\x07\xb6\x5d\x9f\x3d\xbc\x3b\x1f\xe8\x4d\xa0\x21\xce\xab\xfc\xcd\x8c\x57\xa0\x14\xfb\xe5\xa2\xbc\xe3\xe4\x05\x1b\x7d\x03\xe0\x9f\xc0\x35\x0b\x6a\x21\xfa\xd2\x14\xae\x7a\x07\x32\x77\xc7\x7a\x40\xdc\x44\xa5\xae\xea\x51\x94\xa7\x56\xb6\x9c\x93\x97\x7b\x69\xee\x92\x94\x36\x0e\xaa\x73\xa5\x74\x54\x8f\xa6\xa9\x74\xa7\xcd\x5a\x6a\xdc\xf0\x9e\x80\x63\x11\x56\xaf\x85\xa8\xe5\xc5\x31\x7e\x18\x9e\xea\xd4\x7e\x2e\xad\x65\xc3\x81\x39\x6b\x5c\xac\xde\x26\x0e\x93\x72\x84\xa8\xe9\x0e\xff\x2c\xbc\xb9\xde\xe2\x29\x25\xf2\xf7\x25\x6f\x74\xc6\x7c\xf3\xff\xc7\xb8\xce\x65\x7e\x8d\x13\x5f\x0f\x37\x6d\x9d\x93\x6a\x79\x79\x2c\x98\x16\x14\xd9\x8e\x3f\x7d\x66\x2a\x4f\xd4\x6d\xcd\xa9\x69\x16\xb3\x2f\x36\x6e\xd2\x7d\xab\x18\x8f\x18\x4b\x98\x4d\xf0\xb5\x59\x71\x0d\x8f\xf2\x04\x0b\xe4\x62\xf9\x19\x43\x50\x1b\xda\x48\x40\xfd\xd5\xc8\xec\x15\xd1\x89\x06\x4d\xef\x75\x6e\x54\x5d\xb3\x19\xe0\x07\xc4\x33\xf0\x46\x8a\x67\x23\x35\x7b\xa4\x7d\x15\x6a\xb7\x65\x2b\x06\xae\x2b\x18\x87\x4f\x07\x71\xc6\x26\x46\x6d\xbd\x64\x23\xe6\xcb\xc5\x18\xb5\xe4\xae\x7b\x8f\x15\xe0\xf2\xd0\x47\x1a\x95\x16\xdf\xa9\x59\x16\x97\xf7\x42\x86\x23\x24\xd8\xd1\x03\xfb\x63\x1d\x6c\x20\x73\xd4\x06\xb6\x5c\xde\xe7\xbd\xa5\x43\xe2\xe9\xeb\xff\x99\x06\x98\x5d\x1c\xb3\x65\x17\x2e\xa6\x23\xed\x7a\xa4\xc7\xa3\x22\xf0\x98\x46\x80\xe3\x4e\x99\xbc\x62\x31\xb0\x2e\x3d\x14\x58\x16\x08\xbc\x55\xbc\xa7\xfb\xe2\x2d\x7f\x03\xe9\x04\xda\x45\x52\xe0\x09\xe5\x60\x7f\x04\x18", ); test::( b"\x59\x16\x52\xb6\xeb\x1b\x52\xc9\xbe\xbd\x58\x32\x56\xc2\x22\x86\x80\x11\x0b\x87\x89\x17\xde\xa5\xad\x69\xe8\xc5\xd2\xab\x51\x42\x77\xb0\xac\x31\xe7\xe2\xcc\xea\xb2\xe5\xd9\xc4\x5d\x77\xa4\x1f\x59\x9b\x38\xa8\x32\xf6\xb2\xd8\x09\x79\x52\xbe\x44\x40\xd1\xff\x84\xba\xf5\x1b\xd7\x0b\x64\xf1\x30\xae\xb6\x86\x14\x5f\xcd\x02\x95\x38\x69\xfb\x84\x1a\xf7\xf6\xe3\x4e\xaa\x2b\x99\x6c\xcd\x89\x69\x7c\x58\xfa\x25\x5c\xc1\xe8\x1f\x62\x14\x00\xe1\x41\x46\x36\x1e\x31\xc7\x09\xe8\x4a\x56\x08\x22\x31\x19\x95\x39\xf7\xed\xe9", n, e, b"\x1d\xe7\x9d\x72\x16\xdd\xe1\x25\xde\xb7\x7c\x34\xd9\x0a\xb3\x21\xa4\xde\x5f\xb1\x1c\x29\x66\x56\xad\x9b\xf9\xa2\x46\x53\x59\x11\x17\xac\xe4\x15\xe1\x8e\xad\xce\x92\x82\x3f\x31\xaf\xe5\x6f\xc8\xe2\x94\x94\xe3\x7c\xf2\xba\x85\xab\xc3\xba\xc6\x6e\x01\x95\x84\x79\x9a\xee\x23\x4a\xd5\x55\x9e\x21\xc7\xfd\x4f\xfd\x24\xd8\x26\x49\xf6\x79\xb4\xc0\x5d\x8c\x15\xd3\xd4\x57\x4a\x2e\x76\xb1\xf3\xee\x9f\x8d\xec\x0a\xf6\x0b\x0c\xed\x1b\xe8\xa1\x9c\x2f\xa7\x1b\xcb\xc1\xfb\x19\x08\x99\xec\x85\x56\x95\x8e\x07\x82\xac\xe7\x19\x6b\x36\x65\x86\x56\xcf\x36\x4d\x37\x73\xde\x86\x26\x0f\xd8\x98\x76\x04\xef\x35\xea\xe8\xf3\x8e\xc2\xcb\x0d\xa8\x64\xcc\xa7\x19\x21\x9c\x2a\xd7\x1c\x08\x50\x6c\x41\x2e\xc7\x79\x95\xf3\x74\x39\xc8\x56\x97\x7b\x71\xdf\xb9\x64\x79\x90\xef\x70\xfa\xf4\x32\x73\xae\x60\x83\x9c\xd0\x67\x9e\xc9\xaa\x42\xbf\x91\x4e\x42\x1b\x79\x7c\xba\x21\x8a\x40\x0f\xf9\xdb\xaa\x20\x6c\xb9\xc2\xb0\x59\x6c\x70\x9a\x32\x2b\x73\xcb\x82\x72\x1d\x79\xf9\xdb\x24\x21\x1b\xf0\x75\xa1\xce\xf7\x4e\x8f\x6d\x2b\xa0\x7f\xe0\xdc\x8a\x60\xf4\x8a\xf5\x11\xad\x46\x9d\xcd\x06\xe0\x7a\x4c\xe6\x80\x72\x13\x9c\x46\xd8\xbe\x5e\x72\x12\x53\xc3\xb1\x8b\x3c\x94\x48\x5c\xe5\x5c\x0e\x7c\x1c\xbc\x39\xb7\x7b\xc6\xbb\x7e\x5e\x9f\x42\xb1\x53\x9e\x44\x2d\xa8\x57\x65\x8c\x9e\x77\x1c\xcb\x86\xbe\x73\x97\x64\x7e\xfb\xc0\xcc\xb2\xc3\xad\x31\xac\x4e\x32\xbf\x24\x8c\xc0\xce\xd3\xa4\xf0\x94\x52\x6b\x25\x63\x1c\xb5\x02\x47\x09\x61\x29\xb0\x8a\x9c\x2c\xdf\xb7\x75\x97\x8b\x0f\xee\xe2\x65\xa6\xc4\x19\x91\xc1\xdc\x44\x52\x61\x5b\x78\xc9\x06\xc7\xed\x1b\xd2\x07\x96\x9d\x98\xd0", ); test::( b"\x8d\xff\xaa\x91\x51\x27\x1a\xd2\x26\x22\xf2\x28\xc8\x92\xe1\xd9\x74\x8b\x3c\x39\x43\x97\xf2\xcb\xb6\xfe\xbe\xaa\x92\x44\xa0\x27\xee\xf2\x8d\xb4\x8a\x9a\x66\x01\x62\x15\x27\x64\x83\x0f\x61\x7e\x1e\xc6\xea\x1c\xdb\x0e\xd2\x5b\x6f\x99\x9a\x10\x71\x75\xa1\x66\x69\xd6\xdf\xc9\x2b\x16\xd5\x03\x63\xfa\xc4\xa5\x70\x37\x1e\xa9\x76\x34\x3a\x55\xae\x12\x4b\x63\x01\xea\x93\x5e\xd6\x55\xd4\x4f\x28\x32\x08\x99\xdb\xa3\x51\x22\x50\x59\x33\xb3\x37\x12\x01\xa2\xa4\x5f\x95\xae\x65\xab\x44\x2a\x94\x79\x12\x5e\x68\xed\x21\x2a", n, e, b"\xb3\x29\xae\xf8\x3a\x56\xdd\xc5\x7c\xd9\xa0\xe1\x5e\xb0\xb0\xb7\xae\xa7\xd7\x8d\x5e\x8c\xa3\x98\x2b\xd3\x1c\xc8\x25\xa0\xcd\x1c\x44\x4d\x9f\x7b\xea\x9e\x7a\x27\xf3\xbb\xb3\x76\x10\x60\xff\x95\xfe\xe1\xa3\xe8\x64\xd2\x10\x8f\xc4\x0b\x64\x78\x6a\x96\xa6\xd6\x2d\x20\x12\x17\xe0\x3a\x8b\xa2\xc0\x7e\xe9\x4c\x26\x71\x49\xd1\xe7\x2c\xc5\x77\x9b\x73\x7e\x85\x47\xac\xd6\xaa\x4b\xba\x3f\xf3\x8b\xf9\x68\x7e\x9e\x82\xf5\x11\xb5\x97\xad\x7e\xc1\xd7\x95\xc3\x6a\x98\xbf\x83\xa9\x0f\xc8\x6b\x0c\xad\x41\x95\x33\x60\x73\x89\x21\x93\x6a\x45\x86\x74\xb2\xe9\xa7\x01\x2a\xc3\x02\x9f\xdb\x0a\x9d\x12\x31\x82\x02\xd2\x54\x4a\x0d\x97\x6e\xe5\x36\xe0\x3b\x7e\x8d\x89\x4b\x3b\x9c\x76\x2d\xab\x01\x10\x84\x9c\xc1\xea\xad\x74\x7e\x3d\x88\xd7\xdc\xf4\x9f\x82\x4d\xf0\x27\xe6\x45\xc0\xb9\x29\x4e\x65\x5d\x9f\xc9\xe1\xef\x95\xeb\x53\xaa\xff\x57\x75\xc3\x49\x48\x6d\x4b\x5d\x67\xdb\xa2\x9b\x62\x17\xf8\xb9\x97\x66\x12\xb5\x7e\x16\xfc\x1f\x99\x98\x3f\x2a\xf0\x45\x79\x93\x86\x06\x87\x9b\x7c\x72\x53\xe8\x70\x71\x4b\x4f\x0f\x24\xe2\x6d\xc8\xc7\xa6\xfc\xef\xfb\x5f\x98\xe3\xb2\xfb\x5d\xb9\x49\xd2\xf9\x8c\xd1\xae\x1a\xa5\x52\x69\x6b\x48\xc3\x9f\x67\x8e\x15\x43\x51\xcc\x75\x6d\x3e\x9a\x97\xf7\x92\x79\x85\x3e\xbd\x0d\xb9\xae\x68\x59\xfb\x2d\x57\x21\x38\x5d\x06\xf5\x56\x5a\x3a\x8f\xf0\x99\x2d\x51\x7a\xcd\xa1\xaf\x69\xa9\x28\x54\xa1\xb3\x2a\x79\xcb\x9e\x44\x2a\x90\xb0\x55\xbb\x2e\xc3\xaf\x8d\x99\x26\xa0\xd8\x57\xe3\xcb\x1e\x7e\x4a\x73\x00\xd1\xac\xcb\x94\x92\xec\x78\x32\xaf\x45\x35\x29\xff\x0f\x4a\x6a\xd3\x25\x97\x57\xf7\x07\xf7\x13\xaa\xa5\xdf\x23\x1f\x74\x87", ); test::( b"\x71\xd4\x16\x3e\x70\x8c\x12\x1e\x93\x1b\xb9\x69\x2b\x21\x7d\xdd\xd3\x5c\x73\x46\xf6\x1c\xfc\x95\x91\xf7\xa4\x31\x3a\xbd\x4a\x92\x62\xaf\x82\x0b\xd7\xeb\x37\xe7\x8c\x2b\x95\xb8\x9d\xaf\x25\xec\x8e\x78\x3a\xa1\xd4\xb7\x8d\xbb\x96\x85\x24\x33\xb4\xd4\x78\xb1\x09\xa6\xd6\x5e\xed\x7d\x06\xf3\xfe\x12\x2b\x17\x21\x49\xea\xe7\xc3\x65\xce\xd6\x65\x78\xeb\xb7\x57\x1e\xc2\x18\xc3\x6b\x65\xd2\xee\x22\xdc\xde\xbb\x28\xc6\x6a\x71\x38\x43\x2c\xbd\xd7\x12\xf7\xfb\x8b\xf7\x8c\xb1\x48\x60\xb2\x5c\x2b\x47\x89\x70\x6b\x5a\x1b", n, e, b"\x25\x22\xee\x3b\xda\x30\xc0\x43\x4e\x54\xb1\x99\xda\x8c\x97\x33\x96\x4f\xd4\x02\xb7\x07\xf5\xb3\x30\xf4\xf7\x54\xa0\x50\x2c\x7a\x71\x3c\x78\x14\xf0\xe8\x51\xa4\xa4\xdb\x72\x69\x0d\xb9\x6e\xa8\xb8\x81\x3b\xd8\x62\x9a\x94\x8b\xb3\x0c\x1b\x82\x72\xa8\x16\xb3\x0a\x75\x5f\xc6\xfb\x17\x54\x16\x7c\x3e\xb1\xf1\x94\x39\x59\x07\xa5\x6c\xf5\xa7\x3b\x41\x54\x38\x3a\x05\xb7\x8b\x73\x1f\xed\xd9\x07\x7f\x3c\x22\x67\xa5\xcf\x92\x66\x97\x87\x1f\xe0\xa4\xbe\xd9\xc2\x19\x55\x2d\xd1\xc8\x7a\xff\x50\x61\x30\x94\xbc\xaa\x2d\xec\x42\xa3\x53\x80\xa6\xba\xc6\x73\xda\x25\x94\xf8\x24\xa8\xf3\x2f\x21\xd7\x59\x3a\x3e\x49\xc7\x8e\xe2\x80\x19\x3a\x47\x86\x21\xd3\xb0\x95\xc1\x6d\xce\x72\x93\x53\x14\xd4\xa2\x32\x3e\xeb\xe7\x85\x5c\xa4\x73\x8a\x19\xb5\xa3\x1a\x5f\x95\xab\x91\xfb\xe1\x28\x9c\x02\xfe\xa7\xa6\x5b\x91\x32\x7b\x7b\x97\x90\x55\x62\x89\xe1\xb9\x88\xe4\x5d\x50\xeb\x8c\xea\x15\x81\xde\x5d\x5d\xfd\x21\x00\x1c\x73\xb4\x39\x21\xd8\xb2\x1b\x96\x44\xb0\xf2\xb9\x6e\xe6\xb0\x9d\x73\x70\x9c\x33\x33\x81\x43\xd6\xa2\xfe\xc5\x59\xa4\x36\xc5\xec\x86\x5d\x3a\xcc\xa5\xfe\xe6\x54\xf1\x32\x5a\xe5\x72\x55\xdf\xd4\x21\x88\xc8\x4d\xcb\x1f\x7c\x1e\x86\x02\x8a\x74\xe3\x1d\x73\x60\x78\x74\x1e\xe9\x7c\x39\xa5\x6e\x4d\xe0\x0f\xc1\x2b\x80\x51\x83\x5b\xbd\x0d\x8f\xca\xe7\x37\x32\x20\x99\xad\xc1\x01\x71\x07\x02\x2d\xd1\x5c\x11\x4d\xa5\x7e\x78\xb9\x56\x81\xba\x99\x45\x61\x5b\x59\xda\x90\xf5\xa2\xa9\x9a\x25\x2e\xb4\x2b\x20\x06\xee\xdd\x6e\x78\x47\x6c\x29\x05\x47\x3e\xe6\xb4\xf2\x3c\x1c\x5c\xf0\xb8\x04\x51\xc5\x42\x6e\xa0\x09\x14\x1c\xb3\xfc\xb0\xdf\x2d\xed\x92\xbe", ); test::( b"\xd0\x0e\x15\x29\x22\x8c\x79\xa2\x0a\x1c\x36\x68\xff\xa4\xa5\x41\x40\xbb\x17\x0b\xc5\xc6\x69\xfd\x75\x60\xd9\x30\x99\x00\x17\x5e\x91\xd5\xa0\xe9\xc5\xf5\x47\x1f\xdf\xb7\x14\xbc\x38\x5d\x52\xb0\x8f\xf7\xe4\x23\x01\x84\xd8\xb7\x35\x59\x3f\x0d\xd8\xc7\x3b\x8a\x49\xf8\x59\x5b\x95\x1a\x21\xb6\xa5\xbf\xec\x63\xb6\x84\xf6\x7c\x0a\xf1\xb4\x71\xdd\xa1\x68\x4e\x9b\xa3\xf2\x41\x50\x1f\xe9\x57\x60\x3d\xea\x86\x78\x42\x30\xf0\xc4\xfd\x65\x66\x63\x61\xb8\x2b\x18\x73\x30\xfb\x42\x67\x40\x4c\x0e\x05\x9b\xd4\xeb\x52\x49\x4b", n, e, b"\x18\x35\xdd\x97\xe5\x09\x3a\x33\xce\x1e\x62\xd6\x83\x86\x3f\x6b\x35\x07\xf3\x58\xa6\x2f\xc8\x79\xb5\x24\x35\x0f\xbc\x73\x30\x68\x1c\xb0\xc6\x82\xee\xf4\x33\x04\x19\xca\xf8\x54\x3b\xd9\x26\x9b\x6d\x91\xd8\xe1\x07\xec\x38\xb6\xe9\xc6\xea\xab\xf9\x06\x45\x72\x05\xd5\x2a\x90\x0e\x05\x57\x9a\xa1\x1f\xc5\x81\x37\x52\x64\xe6\x9a\x92\x57\x98\xe5\xa3\x48\xe5\xa1\x6f\x15\x67\xd5\xd0\xe4\x08\x53\x38\x0b\x34\xde\xac\x93\xad\x73\x77\xaa\xe8\xa2\x7b\x09\x0d\x0d\x3a\x92\xbf\x7a\x82\x4d\x92\x6e\x2e\x35\xa0\xc3\xbd\x0e\x99\x0b\x59\x11\x20\xd7\x4d\xd9\xb0\x52\xa7\x35\x68\xe3\xc3\xf2\x9c\x5a\x77\xfb\x1c\x92\x1b\xce\x9c\x1e\x7f\x76\x4a\xa6\x7b\xac\x11\x9f\x58\x39\xa5\x30\x38\x60\xed\xeb\x63\x48\x14\xc2\x38\x6c\x83\x1f\xee\x62\x00\xcf\x55\xb6\xbf\xea\x05\x8b\x79\x5a\x0f\xcf\x26\xeb\x72\x16\xae\x1b\x75\x87\xc8\x2e\x56\x85\xe5\x84\x17\x0c\xbd\xdc\x89\xa7\x7e\x09\x89\xd4\xce\x5c\x3c\x7f\xdb\x66\x4a\xae\xaa\xdb\xce\x1f\x23\x1e\x64\x79\x8f\x6f\x9a\x85\x45\x6b\x5a\x93\xa5\x02\x12\x6a\x80\xe2\xd2\x1f\x46\x92\x1c\xc3\x60\x1f\x5e\xcd\xbd\x56\x99\x8a\x63\xb8\x65\xfc\xe7\xeb\x29\x9f\x76\xaf\x40\xe9\x12\x81\xbf\xc0\x19\xf4\x0e\x0d\x46\x81\x1e\x38\x36\x91\xe4\x02\x4c\x94\x56\x6f\x18\x02\x4f\xf2\xb2\x2a\xa7\xe1\x27\x02\x33\xff\x16\xe9\x2f\x89\xc6\x85\x09\xea\x0b\xe2\xd3\x45\x11\x58\x1d\x47\x22\x07\xd1\xb6\x5f\x7e\xde\x45\x13\x3d\xe8\x7a\x5f\xfb\x92\x62\xc1\xff\x84\x08\x8f\xf0\x4c\x01\x83\xf4\x84\x67\x99\x6a\x94\xd8\x2b\xa7\x51\x0c\xb0\xb3\x6c\xf2\x54\x82\x09\xa5\x06\x03\x37\x5c\xb8\x2e\x67\x8f\x51\x49\x33\x45\xca\x33\xf9\x34\x5f\xfd\xf5\x4b\xe9", ); test::( b"\xa3\x59\x26\x68\x55\x61\xf0\x9f\x30\x92\x5e\x94\xd7\x4e\x56\x61\x89\x2a\x2d\xdd\x52\x4f\x75\x1f\x83\x21\x16\x3d\x61\x1e\xa1\x59\x1a\x08\xe0\xdf\xfd\x46\xb2\x08\xe9\x88\x15\xa3\x06\xaa\x85\x14\xb4\xdb\x85\x9d\xc1\xfe\x7b\xdc\xdf\x50\xc0\x95\x55\x4b\xf8\xb2\xf4\xcb\x9f\x88\x4d\x70\xe5\x5c\x21\x43\xbc\x26\x19\x9c\x2f\x94\xb7\x43\xf5\x52\x8d\xd5\x46\x89\xad\x69\xed\xa6\x60\x74\x9f\x5c\x1b\xea\x8b\xec\xae\xa6\x32\xa4\xbf\x0c\x79\xa5\x77\xed\xfc\xea\x7b\xaa\xa6\x86\x1e\x9d\x7f\x2d\xd5\xb4\xc4\xf6\xeb\x5f\x3d\x5f", n, e, b"\xb1\xa9\xc4\x5a\x26\x4d\x2c\x9a\xf4\x41\xa7\xb2\xd3\x30\xdd\x78\x80\x89\xcc\xef\x20\x5d\x5d\x66\x6b\xfe\x86\x43\x67\xbe\x97\x38\x12\x4e\x9d\x74\x64\x8a\xd9\x91\x60\xbd\x3a\xf8\x1a\x81\x85\x8b\xab\xe6\x67\xa5\xd9\x5c\x98\x0f\xe2\xf6\xac\x34\x86\x1e\xb2\xec\x9b\x4b\x4e\x8b\x64\x2e\xf3\x82\x0f\x56\xca\x38\x8a\x55\x65\x30\xd4\x27\x54\xc4\x72\x12\xe9\xb2\xf2\x52\x38\xa1\xef\x5a\xfe\x29\xbe\x63\x40\x8c\xf3\x8c\xaa\x2d\x23\xa7\x88\x24\xae\x0b\x92\x59\x75\xd3\xe9\x83\x55\x8d\xf6\xd2\xe9\xb1\xd3\x4a\x18\xb1\xd9\x73\xff\xac\xcc\x74\x5e\x52\x7c\xe7\x6c\x66\x3e\x90\x37\x19\x35\x5e\x45\xcd\x6d\x11\x8e\xd0\xb8\x5b\x70\xcb\xb8\xe4\x96\x41\x13\x53\xf8\x4f\x88\x66\xa0\x1f\xad\xc8\x19\xca\x0f\xf9\x5b\xbe\x2c\xc6\x8c\x8c\xf7\x8d\xa5\x58\x1b\xec\xc9\x62\x47\xb9\x11\xd1\x85\xed\x1f\xae\x36\xc4\xca\xd2\x62\x08\xeb\x80\x88\x3f\x42\xa0\x81\x23\xda\xc6\x8d\x88\xf2\xf9\x89\x3c\xde\x02\xef\x5a\x57\x66\x1d\xb2\xb3\xe1\xe9\x26\x9c\xbb\x0e\x15\xc4\x07\xbc\xf5\x5d\x92\xe6\x79\x38\x3c\x90\x80\x2c\xd0\xbf\xfd\x46\x96\x46\xdc\xb6\x0c\xa0\x1a\x1d\xea\xd4\x32\x28\x93\x40\x18\x39\x1d\xd8\x1f\x8b\x7e\x79\x7e\x52\x7f\xbe\x18\x15\xb9\x1b\xf3\xcd\x6a\x1f\x2f\xfb\xf5\xdd\x16\x6a\xcd\x55\x26\x76\x1c\xa8\xba\xb5\xd4\x63\xfb\x9f\xb8\x20\x65\x9f\x5c\xd5\x0f\x81\x50\xf1\x2f\x7e\x8d\x52\xe7\x77\x73\xc1\xe6\x48\x0c\x2c\xc1\x84\xd4\x11\xd6\x41\xf7\x1a\x9d\xed\xc2\xc5\xfc\x2e\xc3\x7a\x27\x70\xa9\x38\x3b\xfb\xf6\xa4\x89\xcf\x32\xb5\x6a\x12\xcf\x99\x37\x8e\x39\xb5\x0b\xda\xdb\x9f\x05\x91\xb2\x06\x5f\x9d\x44\xe5\x11\xc9\xdf\xb6\x15\x8f\xdd\xdd\xd1\xbc\x2c\xec\xe6", ); test::( b"\x12\x71\xa0\xdd\xb9\x9a\x0e\x1e\x9a\x50\x1c\xa3\x3c\x13\x1b\x0a\x1c\x78\x20\xa3\x97\x79\x08\x69\x09\x0f\xba\x37\x37\x03\xac\x38\xea\x00\xa9\xa0\xdd\xee\xd1\x99\xd9\x7b\xe1\x80\x1f\xfa\xb4\x52\x06\x71\x0a\x61\xe5\xed\x89\x4c\x33\x19\x01\x2d\xed\x0f\xf4\x14\x38\x6e\x56\xb5\x48\xad\x91\x5d\x80\xaf\xcc\x2b\xdb\x97\x6d\x7c\x8a\xdd\xdc\xa7\xdf\xa2\x8a\xeb\x69\x40\x33\xa5\x61\x26\x60\xc6\x44\xe3\x2f\x85\xc2\x80\x56\x51\xd7\x13\x66\x0a\x38\x91\x4d\x70\xf0\xe4\x1f\xdc\x4b\x3d\x16\x2e\xf3\xac\xd7\x06\x59\xee\xf6\x37", n, e, b"\xbf\xfd\x01\x0b\x2e\xc4\xe4\xa3\x27\x77\xb7\x76\x19\xb8\x76\x22\xf8\x92\x1d\xab\x56\xe1\x02\xc8\xd8\x24\xfe\x52\xb5\xdf\x7a\x20\x3f\xe7\x17\x99\xee\xaf\xdc\xc0\xc8\x87\x2d\xba\x6a\x37\x44\x07\xb5\x63\x9a\xeb\x5a\x30\xa9\x04\x71\x2f\x15\x09\x7d\xba\x0f\x2d\x62\xe8\x45\x41\x23\x95\xcf\x09\x54\x0a\xbd\x6e\x10\xc1\xa2\xe2\x3d\xbf\x2f\xe1\xdf\xd2\xb0\x2a\xf4\xee\xa4\x75\x15\x95\x7f\xa3\x73\x8b\x06\x41\x1a\x55\x1f\x8f\x8d\xc4\xb8\x5e\xa7\xf5\xa3\xa1\xe2\x6c\xcc\x44\x98\xbd\x64\xaf\x80\x38\xc1\xda\x5c\xbd\x8e\x80\xb3\xcb\xac\xde\xf1\xa4\x1e\xc5\xaf\x20\x55\x66\xc8\xdd\x80\xb2\xea\xda\xf9\x7d\xd0\xaa\x98\x33\xba\x3f\xd0\xe4\xb6\x73\xe2\xf8\x96\x0b\x04\xed\xa7\x61\x61\x64\x39\x14\x24\x2b\x96\x1e\x74\xde\xae\x49\x7c\xaf\x00\x5b\x00\x51\x5d\x78\x49\x2e\xc2\xc2\xde\xb6\x0a\x57\xb9\xdc\xe3\x6e\x68\xdd\x82\x00\x7d\x94\x2a\xe7\xc0\x23\xe1\x21\x0f\x0b\xe8\xa3\xeb\x3f\x00\x48\x24\x07\x4b\x8f\x72\x5e\xaf\x8a\xc7\x73\xe6\x0f\xbb\xb7\xcb\xa9\x63\x0e\x88\xb6\x9c\x8b\xcb\x2d\x74\xdb\xdb\x29\xbf\xff\x8b\x22\x54\x5b\x80\xbb\x63\x4e\x4c\x05\xf7\x3e\x00\x2a\x92\x8e\xfd\x5a\x6a\xa4\x56\x21\xce\x1b\x03\x2a\x22\x44\xde\x48\xf4\xdf\x43\x58\x15\x66\x78\xcb\xe0\x39\xc9\xeb\xe4\xce\xe9\x45\xa2\x5b\x90\x38\x46\x9f\xe0\x0c\x30\x92\x93\x6a\x8c\xff\x93\x69\x04\x5f\x90\x67\x33\xa9\xd2\xab\x36\x60\x18\x20\x69\xb1\x57\xca\x8f\x9b\x99\xa7\x1f\xc1\x53\xc6\x83\x01\xe9\x7a\x38\xfc\x3a\x87\xae\x2b\x6f\x03\x75\x4e\x6d\xa8\x2d\x0b\x07\x26\xe0\x70\x39\x79\xc9\x32\x02\x89\xfe\xef\xbc\xdd\xcd\x9d\x70\x6b\x71\xb5\x1e\x9a\x1b\x9d\xc1\x41\x2e\x6e\xd4\xb5\x66\x76", ); test::( b"\xf3\x0c\x78\x3b\x4e\xae\xb4\x65\x76\x7f\xa1\xb9\x6d\x0a\xf5\x24\x35\xd8\x5f\xab\x91\x2b\x6a\xba\x10\xef\xa5\xb9\x46\xed\x01\xe1\x5d\x42\x7a\x4e\xcd\x0f\xf9\x55\x67\x73\x79\x17\x98\xb6\x69\x56\xec\xc7\x52\x88\xd1\xe9\xba\x2a\x9e\xa9\x48\x57\xd3\x13\x29\x99\xa2\x25\xb1\xff\xaf\x84\x46\x70\x15\x6e\x7a\x3e\xa9\xf0\x77\xfe\x82\x59\xa0\x98\xb9\xee\x75\x9a\x6d\xdf\xb7\xd2\x0a\x7a\xcd\x1b\xcb\x9f\x67\x77\x7e\x74\x61\x5e\x88\x59\xea\x56\x28\x1f\xe5\xc4\x00\x74\x8f\x02\xd1\xa2\x63\xb1\x86\x7a\x3b\x51\x74\x8a\xb7\x0f", n, e, b"\x34\x5e\x2f\x60\xf7\xc8\x2c\x89\xef\x7d\xfd\x7d\xff\x2b\xc2\x34\x8b\xab\x02\x04\x79\x33\x08\x99\xd4\x41\x02\x13\xb3\x5e\x98\xd9\xba\xc9\x2f\xd8\xae\x80\x6b\x5b\xce\x8a\x6c\x4b\xd8\x27\x5b\x0f\xac\xb4\xdd\x13\xf9\xd6\x8b\xa6\x71\x41\xfa\x50\x85\x26\x4d\xa6\xdd\x68\x5a\x6d\x21\x21\x70\xa2\xc9\xcb\xf2\xcf\x59\x30\x18\x0e\xff\xc2\x50\x86\x8c\x98\x4b\xf5\x0f\xf6\x9d\x60\x69\xea\x28\xf5\xbc\x1b\x63\x70\x5d\x07\x32\x41\x6f\xd8\x29\xa5\xf5\xd6\x21\x74\x62\xc2\x2a\x33\xfd\x46\x52\xf7\xc1\xd1\x98\x79\x46\x46\xc0\x84\x06\x02\x4e\x81\x63\xa7\xeb\xe3\x9c\xfb\x51\x4c\x54\x43\x89\x7b\x58\x94\xdd\x19\xa2\x13\xe0\x37\xf2\x7e\x0f\xfb\xd6\xc5\x44\x7a\x80\x5a\x54\xdf\xdf\x4f\x65\x81\x9d\x4e\x0f\xbe\xe2\x5e\x3d\xac\x47\xfb\x6b\x63\x6e\x8d\xe6\x19\x0a\xdc\xcb\xce\xe9\x37\xd0\x97\x7b\x35\xb9\x73\x60\x6b\x0c\xa3\x48\x75\x8b\x50\xcd\xbb\xa0\x28\xb7\x3d\x0e\xf0\x1c\x56\x01\x4c\x03\x1c\x59\x8f\xe8\xdb\x87\xd2\xca\x46\x44\x77\x0a\xaa\x04\x51\xc3\x76\xde\xd8\x2f\xf5\xc6\xb8\xe7\xd2\xed\x9d\x1c\x8a\x17\xc3\x12\x2c\x12\x82\x73\xc6\x0f\xd1\xb0\x08\x8d\xfb\xc9\xc9\x27\xf1\x62\xe4\x38\x79\x40\x59\x64\xcb\x11\xef\x78\x99\x12\x3f\xeb\x8f\x88\xdd\x27\x34\xdf\x98\xaa\x69\x6d\x93\x6a\x8d\xf0\x70\x00\xe8\x4a\xf9\x01\x01\xf7\x00\x6a\x9b\xd2\x54\x9f\xdd\x0a\xd3\xf9\xde\x09\x30\x12\xd3\x2d\x2a\xfa\xa8\x28\x01\x7e\xe9\xc6\x07\xcb\xf5\xb5\x4f\x22\x36\x66\xd4\xb5\xf3\xe2\x6e\x0d\xfe\xc0\x03\x96\x1b\x83\xd8\x3d\xe3\x9f\xf6\xa0\xe8\x1e\x18\x83\xc1\xdb\x4a\xaa\xf0\x82\xfe\xc5\xaa\x30\xa7\xe5\x78\x55\x3d\x89\x77\x4c\x67\x90\x77\x90\xc9\x6d\xc4\xf5\xbe\x4c\x8c", ); test::( b"\x13\x2c\xf5\x0c\x66\xac\x4c\xc5\x43\x39\x75\x1a\x0e\xbb\x86\x5e\x1d\x3d\x32\x05\x62\xfc\x90\x5c\x4a\xbd\x1e\x78\xe4\x64\x06\x6c\x46\xc3\xa0\xc0\x2d\xb0\x37\x1e\xe3\x5a\x10\x4d\x66\xdd\xa8\x64\xc6\x13\x3e\x37\xcf\xad\x91\x16\xe8\x83\xeb\xb7\x3b\x29\x5e\x70\x16\xc3\x4e\xa9\x91\x1a\x30\x92\x72\xef\x90\x11\x4d\x8f\x59\xff\xf0\xa7\x51\x93\xfe\x5a\xe3\x1e\xd9\x91\x21\xf9\xc5\x92\x09\xbc\x4b\xd5\x07\xb1\xdc\x12\xbc\x89\xb7\x9f\xfe\x4d\x0d\xf9\x20\x97\x62\xa1\x73\x01\x36\x29\x0c\xde\xe5\x8e\xc8\x28\xcc\xc8\x8e\xba", n, e, b"\xb1\x25\x03\xb7\xb2\xf7\x83\x61\x88\x84\x17\x4b\xcb\x9b\xe1\x08\x77\x96\x04\x31\xed\x63\x63\xc8\x07\xe1\x2d\xb7\x1b\x8b\x6b\xd9\xd6\x40\x1d\x06\x4e\x25\x37\x40\x15\x8e\x8b\x90\x01\x52\xd3\x7f\xaf\x20\x33\x3a\x7d\x80\xb3\xd4\x7c\x7c\x7a\x3f\xa1\x20\x91\xce\x31\xcd\x8a\xae\x27\x2a\x4d\xa1\x5f\xe2\xcb\x5c\xfd\xea\x54\x11\x95\xa4\x69\xc9\x6b\xcf\x69\x5e\x0b\x52\x6d\xfa\x48\xa5\x90\x03\xc6\x76\x3a\xf8\x13\x63\x92\xc4\xb8\xd2\x4d\xb3\x14\x74\x6f\x42\xac\xa5\x50\xac\xc6\x5e\x07\x49\x13\xab\x82\x23\x2e\xb8\x59\x35\x09\x15\x8a\x8b\xa3\x4b\xc0\xf0\xe3\x12\x5a\x83\x4a\x3e\xd2\xd6\xa8\xcb\x1d\x08\x5f\x23\x4a\xe8\x68\xb8\x6a\xea\x8d\x6f\x82\xe1\x3a\x08\x84\x24\x85\x06\x6e\x48\xaa\xe4\x83\x78\x73\x15\x0f\x44\x47\x5e\x12\x60\x2b\x55\x2d\xcb\x34\xd1\xf9\xfd\xaa\xdb\xc6\xbf\xf5\x13\x4c\x6f\xc7\x62\x63\x88\x8b\xe6\x7e\xfe\x63\xee\x18\x40\xfa\x08\xc4\x99\x38\x85\x8a\x9d\x48\xb1\x05\x8d\x18\x97\x6b\xf2\xe3\xbf\xc6\x25\x55\x2f\x75\xb3\xea\x44\xeb\x91\xdd\x36\x68\x65\xf2\x40\xa0\xc3\x36\xa0\x11\x0e\x0f\xa0\x9d\x09\xcd\x94\xc7\x0c\xbc\x88\x95\xae\x3d\x44\xae\x3d\xff\x54\x5f\x0e\x8c\x8c\xc6\x62\xec\xd4\x0f\x90\x99\xa9\x52\x49\x43\x96\xc6\xb4\x23\xeb\xb4\x63\x40\x99\x69\x28\x1c\xdd\x54\xad\x87\xa3\x08\xe4\x87\xce\x19\x74\x5b\x30\xd5\xda\x76\xb9\x8d\x2a\xa9\xa0\x07\xa5\x57\x83\xb3\x03\x7e\x5b\x86\x62\x32\x28\x10\xbd\xd1\x1d\x86\xdc\x3f\x61\x45\x11\x49\x39\x1f\xb2\xf1\x4e\xd9\xc1\x7c\x75\x16\x23\xa4\x04\x2c\xe7\xed\xb8\x75\xee\x27\xbc\xd1\xf1\x9d\x6d\xc9\x28\x3a\xd0\x6d\x15\xe0\x97\xe2\xb0\xb1\x5a\x7e\xb7\x12\x8a\xdb\xca\x0a\xa6\xad\xcc", ); } } nettle-7.1.0/src/rsa/pss.rs000064400000000000000000000325210072674642500137060ustar 00000000000000//! Bellare & Rogaways Probabilistic Signature Scheme (PSS) use nettle_sys::{ __gmpz_clear, __gmpz_init, nettle_rsa_pss_sha256_sign_digest_tr, nettle_rsa_pss_sha256_verify_digest, nettle_rsa_pss_sha384_sign_digest_tr, nettle_rsa_pss_sha384_verify_digest, nettle_rsa_pss_sha512_sign_digest_tr, nettle_rsa_pss_sha512_verify_digest, }; use std::mem::zeroed; use crate::hash::{Sha256, Sha384, Sha512}; use crate::rsa::{PrivateKey, PublicKey}; use crate::{helper, Error, hash::Hash, random::Random, Result}; /// A hash function usable for PSS. pub trait PssHash: Hash { /// Internal to `sign_pss`. fn sign( public: &PublicKey, private: &PrivateKey, random: &mut R, salt: &[u8], digest: &[u8], signature: &mut [u8], ) -> Result<()>; /// Internal to `verify_pss`. fn verify( public: &PublicKey, salt_len: usize, digest: &[u8], signature: &[u8], ) -> Result; } impl PssHash for Sha256 { fn sign( public: &PublicKey, private: &PrivateKey, random: &mut R, salt: &[u8], digest: &[u8], signature: &mut [u8], ) -> Result<()> { unsafe { let mut sig = zeroed(); __gmpz_init(&mut sig); if nettle_rsa_pss_sha256_sign_digest_tr( &public.context, &private.context, random.context(), Some(R::random_impl), salt.len(), salt.as_ptr(), digest.as_ptr(), &mut sig, ) == 1 { helper::write_gmpz_into_slice(sig, signature, "signature") } else { __gmpz_clear(&mut sig); Err(Error::SigningFailed) } } } fn verify( public: &PublicKey, salt_len: usize, digest: &[u8], signature: &[u8], ) -> Result { unsafe { let mut sig = helper::convert_buffer_to_gmpz(signature); let res = nettle_rsa_pss_sha256_verify_digest( &public.context, salt_len, digest.as_ptr(), &mut sig, ) == 1; __gmpz_clear(&mut sig); Ok(res) } } } impl PssHash for Sha384 { fn sign( public: &PublicKey, private: &PrivateKey, random: &mut R, salt: &[u8], digest: &[u8], signature: &mut [u8], ) -> Result<()> { unsafe { let mut sig = zeroed(); __gmpz_init(&mut sig); if nettle_rsa_pss_sha384_sign_digest_tr( &public.context, &private.context, random.context(), Some(R::random_impl), salt.len(), salt.as_ptr(), digest.as_ptr(), &mut sig, ) == 1 { helper::write_gmpz_into_slice(sig, signature, "signature") } else { __gmpz_clear(&mut sig); Err(Error::SigningFailed) } } } fn verify( public: &PublicKey, salt_len: usize, digest: &[u8], signature: &[u8], ) -> Result { unsafe { let mut sig = helper::convert_buffer_to_gmpz(signature); let res = nettle_rsa_pss_sha384_verify_digest( &public.context, salt_len, digest.as_ptr(), &mut sig, ) == 1; __gmpz_clear(&mut sig); Ok(res) } } } impl PssHash for Sha512 { fn sign( public: &PublicKey, private: &PrivateKey, random: &mut R, salt: &[u8], digest: &[u8], signature: &mut [u8], ) -> Result<()> { unsafe { let mut sig = zeroed(); __gmpz_init(&mut sig); if nettle_rsa_pss_sha512_sign_digest_tr( &public.context, &private.context, random.context(), Some(R::random_impl), salt.len(), salt.as_ptr(), digest.as_ptr(), &mut sig, ) == 1 { helper::write_gmpz_into_slice(sig, signature, "signature") } else { __gmpz_clear(&mut sig); Err(Error::SigningFailed) } } } fn verify( public: &PublicKey, salt_len: usize, digest: &[u8], signature: &[u8], ) -> Result { unsafe { let mut sig = helper::convert_buffer_to_gmpz(signature); let res = nettle_rsa_pss_sha512_verify_digest( &public.context, salt_len, digest.as_ptr(), &mut sig, ) == 1; __gmpz_clear(&mut sig); Ok(res) } } } /// Signs the message hashed by `hash` using `salt` and the key pair /// `public`/`private`, producing `signature`. /// /// Expects `signature` to be the size of the modulo of `public`. /// /// The message is signed using PSS. pub fn sign_pss( public: &PublicKey, private: &PrivateKey, salt: &[u8], hash: &mut H, random: &mut R, signature: &mut [u8], ) -> Result<()> { let mut dst = vec![0u8; hash.digest_size()]; hash.digest(&mut dst); H::sign(public, private, random, salt, &dst, signature) } /// Verifies `signature` of the data hashed by `hash` using a salt of /// `salt_len` bytes and the key `public`. /// /// Returns `true` if the signature is valid. /// /// Expects the message to be PSS encoded. pub fn verify_pss( public: &PublicKey, salt_len: usize, hash: &mut H, signature: &[u8], ) -> Result { let mut dst = vec![0u8; hash.digest_size()]; hash.digest(&mut dst); H::verify(public, salt_len, &dst, signature) } #[cfg(test)] mod tests { use super::*; use crate::random::Yarrow; #[test] fn rsa_pss() { let mut rnd = Yarrow::default(); let n = &b"\xbc\xb4\x7b\x2e\x0d\xaf\xcb\xa8\x1f\xf2\xa2\xb5\xcb\x11\x5c\xa7\xe7\x57\x18\x4c\x9d\x72\xbc\xdc\xda\x70\x7a\x14\x6b\x3b\x4e\x29\x98\x9d\xdc\x66\x0b\xd6\x94\x86\x5b\x93\x2b\x71\xca\x24\xa3\x35\xcf\x4d\x33\x9c\x71\x91\x83\xe6\x22\x2e\x4c\x9e\xa6\x87\x5a\xcd\x52\x8a\x49\xba\x21\x86\x3f\xe0\x81\x47\xc3\xa4\x7e\x41\x99\x0b\x51\xa0\x3f\x77\xd2\x21\x37\xf8\xd7\x4c\x43\xa5\xa4\x5f\x4e\x9e\x18\xa2\xd1\x5d\xb0\x51\xdc\x89\x38\x5d\xb9\xcf\x83\x74\xb6\x3a\x8c\xc8\x81\x13\x71\x0e\x6d\x81\x79\x07\x5b\x7d\xc7\x9e\xe7\x6b"[..]; let e = &b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"[..]; let d = &b"\x38\x3a\x6f\x19\xe1\xea\x27\xfd\x08\xc7\xfb\xc3\xbf\xa6\x84\xbd\x63\x29\x88\x8c\x0b\xbe\x4c\x98\x62\x5e\x71\x81\xf4\x11\xcf\xd0\x85\x31\x44\xa3\x03\x94\x04\xdd\xa4\x1b\xce\x2e\x31\xd5\x88\xec\x57\xc0\xe1\x48\x14\x6f\x0f\xa6\x5b\x39\x00\x8b\xa5\x83\x5f\x82\x9b\xa3\x5a\xe2\xf1\x55\xd6\x1b\x8a\x12\x58\x1b\x99\xc9\x27\xfd\x2f\x22\x25\x2c\x5e\x73\xcb\xa4\xa6\x10\xdb\x39\x73\xe0\x19\xee\x0f\x95\x13\x0d\x43\x19\xed\x41\x34\x32\xf2\xe5\xe2\x0d\x52\x15\xcd\xd2\x7c\x21\x64\x20\x6b\x3f\x80\xed\xee\x51\x93\x8a\x25\xc1"[..]; let p = &b"\xd2\xa4\xec\x0f\xa2\x22\x6c\xde\x82\xda\x77\x65\x3b\x07\x2c\xd0\x98\x53\x5d\x3e\x90\xed\x4d\x72\x24\xdc\xb8\xcb\x8b\x93\x14\x76\x8d\xc5\x17\xe2\x2d\x7c\x8f\xa1\x3f\x25\x3d\xaa\x74\x65\xa7\x99\x56\x09\x8a\xa4\xcc\x3a\x6e\x35\xe8\xb1\xfc\xc4\xf9\x7e\x77\x4f"[..]; let q = &b"\xe5\x56\x3b\x14\x5d\xb6\xff\x5a\x16\x28\x0d\x3e\x80\xef\xf0\x2f\x18\x1d\xbd\x03\x32\x4e\xf2\x47\xf5\x96\xa4\xd4\xa7\xb8\xda\xa3\x2b\x99\x34\xe3\xc7\xf4\xdc\xf6\xa3\x10\x54\x62\xde\xc6\x38\x39\x63\x86\x18\x41\x8b\x51\xdb\x02\x69\x3f\xab\xb4\xe6\x83\x87\x25"[..]; let public = PublicKey::new(n, e).unwrap(); let private = PrivateKey::new(d, p, q, None).unwrap(); { let salt = &b"\x6f\x28\x41\x16\x6a\x64\x47\x1d\x4f\x0b\x8e\xd0\xdb\xb7\xdb\x32\x16\x1d\xa1\x3b"[..]; let m = &b"\x12\x48\xf6\x2a\x43\x89\xf4\x2f\x7b\x4b\xb1\x31\x05\x3d\x6c\x88\xa9\x94\xdb\x20\x75\xb9\x12\xcc\xbe\x3e\xa7\xdc\x61\x17\x14\xf1\x4e\x07\x5c\x10\x48\x58\xf2\xf6\xe6\xcf\xd6\xab\xde\xdf\x01\x5a\x82\x1d\x03\x60\x8b\xf4\xeb\xa3\x16\x9a\x67\x25\xec\x42\x2c\xd9\x06\x94\x98\xb5\x51\x5a\x96\x08\xae\x7c\xc3\x0e\x3d\x2e\xcf\xc1\xdb\x68\x25\xf3\xe9\x96\xce\x9a\x50\x92\x92\x6b\xc1\xcf\x61\xaa\x42\xd7\xf2\x40\xe6\xf7\xaa\x0e\xdb\x38\xbf\x81\xaa\x92\x9d\x66\xbb\x5d\x89\x00\x18\x08\x84\x58\x72\x0d\x72\xd5\x69\x24\x7b\x0c"[..]; let expected = &b"\x7b\x1d\x37\x27\x8e\x54\x98\x98\xd4\x08\x4e\x22\x10\xc4\xa9\x96\x1e\xdf\xe7\xb5\x96\x35\x50\xcc\xa1\x90\x42\x48\xc8\x68\x15\x13\x53\x90\x17\x82\x0f\x0e\x9b\xd0\x74\xb9\xf8\xa0\x67\xb9\xfe\xff\xf7\xf1\xfa\x20\xbf\x2d\x0c\x75\x01\x5f\xf0\x20\xb2\x21\x0c\xc7\xf7\x90\x34\xfe\xdf\x68\xe8\xd4\x4a\x00\x7a\xbf\x4d\xd8\x2c\x26\xe8\xb0\x03\x93\x72\x3a\xea\x15\xab\xfb\xc2\x29\x41\xc8\xcf\x79\x48\x17\x18\xc0\x08\xda\x71\x3f\xb8\xf5\x4c\xb3\xfc\xa8\x90\xbd\xe1\x13\x73\x14\x33\x4b\x9b\x0a\x18\x51\x5b\xfa\x48\xe5\xcc\xd0"[..]; let mut hsh = Sha256::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pss( &public, &private, salt, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pss(&public, salt.len(), &mut hsh, expected).ok(), Some(true) ); } { let salt = &b"\x6f\x28\x41\x16\x6a\x64\x47\x1d\x4f\x0b\x8e\xd0\xdb\xb7\xdb\x32\x16\x1d\xa1\x3b"[..]; let m = &b"\x10\x34\xe0\x43\xd5\x21\xa2\x9e\x1f\x6d\x84\xef\x8a\x54\x9b\x86\x75\xc5\xeb\xe4\xab\x74\x2e\x72\x43\x2b\xd1\x72\xc4\x60\x40\x35\x8d\x0d\x63\x8e\x74\xbc\x68\x88\xae\xe1\xc4\x54\xef\x6d\x74\x85\xd1\xa0\x89\x80\x7a\x1f\xe3\x2d\x79\x46\x3d\xf3\xf2\xbf\x6a\xe4\xfb\x54\xdd\x34\x45\x01\x6f\xf0\xff\x4e\x5d\xec\xf7\xdc\x90\xfe\x03\x3d\x22\x69\x9f\x08\x1d\x9c\xd7\x2d\x86\x1d\x68\x87\x9a\xc0\x22\xb0\x57\x1c\x90\x19\x3e\x3f\xdb\x5a\x58\xa1\xec\xc6\x77\x57\xd1\x43\xbe\x89\x62\x59\x63\x26\x24\x88\xb4\xd6\x6d\xdf\x58\x31"[..]; let expected = &b"\x0f\xdc\x48\xfa\x2f\xe5\x6e\xd5\x35\xf7\xe1\xb0\x32\x05\x4c\xcc\x64\xa7\x36\x3e\xb1\x45\xeb\x01\xb2\xe8\x4e\xfa\x35\x88\xde\xf1\xf3\x31\x25\xcf\x71\xa8\xef\x5b\x6f\x2f\x7b\x6a\xe1\xe6\x16\xd9\xaf\xcc\xd7\x37\x2c\x84\x3a\x97\x0f\x16\x5c\x10\x3a\x69\x41\x63\x18\xf5\x57\x4f\xf3\xb2\x86\x99\x2b\x78\xcb\x8e\x77\x0f\x85\xa1\xbd\x0f\x0f\x0b\x3d\xdf\xb7\x77\x12\xb4\x27\x7c\x19\x10\xc6\x8a\xa8\xc6\x00\x6c\xe8\x46\x3a\x45\xc9\x32\xa8\x4c\x23\x34\xf2\xf1\xd4\xf6\x7e\x7e\x55\x01\x07\x56\x86\xcf\x80\x96\xb1\x75\x14\xc6"[..]; let mut hsh = Sha384::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pss( &public, &private, salt, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pss(&public, salt.len(), &mut hsh, expected).ok(), Some(true) ); } { let salt = &b"\x6f\x28\x41\x16\x6a\x64\x47\x1d\x4f\x0b\x8e\xd0\xdb\xb7\xdb\x32\x16\x1d\xa1\x3b"[..]; let m = &b"\x5d\x95\x51\xdf\x21\x0c\xea\x61\xf9\xae\xc3\xd2\xef\x2f\x57\x16\x69\x2c\x5c\x55\xff\xb1\x3d\xa2\x8a\xfe\xca\xda\x7d\x8b\x2f\xcf\x79\x49\x22\xa6\x1b\x2b\x61\x7e\x19\xe5\x5c\x53\x8d\xf4\x2e\x21\x90\xde\xd2\x4c\x0b\xbb\x94\x3f\xca\xf4\xc5\x53\xd2\x4b\xb3\xf3\xf5\x1b\xd9\xff\xa3\xe1\x52\x6d\x03\xfc\x94\x36\x42\xb1\x5a\x70\x2c\x72\xe2\xb7\xf9\x60\x59\xd2\x69\x0e\x94\x94\x13\x88\x00\xff\xf9\x94\xdc\xb0\x61\x37\xa5\x77\xe0\x7b\xd2\x45\xb8\x70\xc2\x4b\x64\x71\xf3\x60\x70\xa8\x74\xa3\x8e\xd5\x9d\x62\xe7\x4a\xfd\x3b"[..]; let expected = &b"\x38\x88\x9a\x9f\x36\x46\xf6\x75\x67\x53\x8d\xe1\xdd\xdb\xee\xed\x36\x40\x74\xba\x58\x2f\xcb\x1a\x13\x02\x9c\x00\xf1\x3c\x88\xfc\x76\x9f\xf1\xcb\x6c\x4f\xd0\x51\x8d\x41\xd0\x88\xb5\xfd\x37\xaf\x92\xd1\x63\xe2\x24\xe4\x18\x30\x18\xed\xc9\xa7\xd1\xe4\x64\x8b\x6d\x95\xe2\x1a\xda\xf7\x7b\x39\x01\x50\xb2\x21\xf4\x56\x07\x5e\x5d\x56\x6f\x20\x49\xac\xf7\xb6\x13\x5c\x7a\xfa\x2f\x0c\xd8\x2e\x7d\xb1\xad\x24\x2e\x5b\xe0\xe0\xc8\xd2\x9a\x36\xc8\x29\x2e\x42\x9a\xd6\xaa\x52\xd3\x32\xb2\x9e\xb9\x50\x7a\xe9\xc1\xf3\x8d\xd1"[..]; let mut hsh = Sha512::default(); let mut sig = vec![0u8; 1024 / 8]; hsh.update(m); assert!(sign_pss( &public, &private, salt, &mut hsh, &mut rnd, &mut sig ) .is_ok()); assert_eq!(sig, expected); hsh.update(m); assert_eq!( verify_pss(&public, salt.len(), &mut hsh, expected).ok(), Some(true) ); } } }