ref: bfe9da47cfa2f51ebef78c59332b5ba2deba306d
dir: /third_party/boringssl/crypto_test_data.cc/
sed: Output line too long /* Copyright (c) 2017, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* This file is generated by: * go run util/embed_test_data.go \ * crypto/blake2/blake2b256_tests.txt \ * crypto/cipher_extra/test/aes_128_cbc_sha1_tls_implicit_iv_tests.txt \ * crypto/cipher_extra/test/aes_128_cbc_sha1_tls_tests.txt \ * crypto/cipher_extra/test/aes_128_ccm_bluetooth_tests.txt \ * crypto/cipher_extra/test/aes_128_ccm_bluetooth_8_tests.txt \ * crypto/cipher_extra/test/aes_128_ctr_hmac_sha256.txt \ * crypto/cipher_extra/test/aes_128_gcm_randnonce_tests.txt \ * crypto/cipher_extra/test/aes_128_gcm_siv_tests.txt \ * crypto/cipher_extra/test/aes_128_gcm_tests.txt \ * crypto/cipher_extra/test/aes_192_gcm_tests.txt \ * crypto/cipher_extra/test/aes_256_cbc_sha1_tls_implicit_iv_tests.txt \ * crypto/cipher_extra/test/aes_256_cbc_sha1_tls_tests.txt \ * crypto/cipher_extra/test/aes_256_ctr_hmac_sha256.txt \ * crypto/cipher_extra/test/aes_256_gcm_randnonce_tests.txt \ * crypto/cipher_extra/test/aes_256_gcm_siv_tests.txt \ * crypto/cipher_extra/test/aes_256_gcm_tests.txt \ * crypto/cipher_extra/test/chacha20_poly1305_tests.txt \ * crypto/cipher_extra/test/xchacha20_poly1305_tests.txt \ * crypto/cipher_extra/test/cipher_tests.txt \ * crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_implicit_iv_tests.txt \ * crypto/cipher_extra/test/des_ede3_cbc_sha1_tls_tests.txt \ * crypto/cipher_extra/test/nist_cavp/aes_128_cbc.txt \ * crypto/cipher_extra/test/nist_cavp/aes_128_ctr.txt \ * crypto/cipher_extra/test/nist_cavp/aes_128_gcm.txt \ * crypto/cipher_extra/test/nist_cavp/aes_192_cbc.txt \ * crypto/cipher_extra/test/nist_cavp/aes_192_ctr.txt \ * crypto/cipher_extra/test/nist_cavp/aes_256_cbc.txt \ * crypto/cipher_extra/test/nist_cavp/aes_256_ctr.txt \ * crypto/cipher_extra/test/nist_cavp/aes_256_gcm.txt \ * crypto/cipher_extra/test/nist_cavp/tdes_cbc.txt \ * crypto/cipher_extra/test/nist_cavp/tdes_ecb.txt \ * crypto/curve25519/ed25519_tests.txt \ * crypto/cmac/cavp_3des_cmac_tests.txt \ * crypto/cmac/cavp_aes128_cmac_tests.txt \ * crypto/cmac/cavp_aes192_cmac_tests.txt \ * crypto/cmac/cavp_aes256_cmac_tests.txt \ * crypto/ecdh_extra/ecdh_tests.txt \ * crypto/evp/evp_tests.txt \ * crypto/evp/scrypt_tests.txt \ * crypto/fipsmodule/aes/aes_tests.txt \ * crypto/fipsmodule/bn/bn_tests.txt \ * crypto/fipsmodule/bn/miller_rabin_tests.txt \ * crypto/fipsmodule/ec/ec_scalar_base_mult_tests.txt \ * crypto/fipsmodule/ec/p256-x86_64_tests.txt \ * crypto/fipsmodule/ecdsa/ecdsa_sign_tests.txt \ * crypto/fipsmodule/ecdsa/ecdsa_verify_tests.txt \ * crypto/fipsmodule/modes/gcm_tests.txt \ * crypto/fipsmodule/rand/ctrdrbg_vectors.txt \ * crypto/hmac_extra/hmac_tests.txt \ * crypto/hpke/hpke_test_vectors.txt \ * crypto/pkcs8/test/empty_password.p12 \ * crypto/pkcs8/test/no_encryption.p12 \ * crypto/pkcs8/test/nss.p12 \ * crypto/pkcs8/test/null_password.p12 \ * crypto/pkcs8/test/openssl.p12 \ * crypto/pkcs8/test/pbes2_sha1.p12 \ * crypto/pkcs8/test/pbes2_sha256.p12 \ * crypto/pkcs8/test/unicode_password.p12 \ * crypto/pkcs8/test/windows.p12 \ * crypto/poly1305/poly1305_tests.txt \ * crypto/siphash/siphash_tests.txt \ * crypto/x509/test/basic_constraints_ca.pem \ * crypto/x509/test/basic_constraints_ca_pathlen_0.pem \ * crypto/x509/test/basic_constraints_ca_pathlen_1.pem \ * crypto/x509/test/basic_constraints_ca_pathlen_10.pem \ * crypto/x509/test/basic_constraints_leaf.pem \ * crypto/x509/test/basic_constraints_none.pem \ * crypto/x509/test/invalid_extension_intermediate.pem \ * crypto/x509/test/invalid_extension_intermediate_authority_key_identifier.pem \ * crypto/x509/test/invalid_extension_intermediate_basic_constraints.pem \ * crypto/x509/test/invalid_extension_intermediate_ext_key_usage.pem \ * crypto/x509/test/invalid_extension_intermediate_key_usage.pem \ * crypto/x509/test/invalid_extension_intermediate_name_constraints.pem \ * crypto/x509/test/invalid_extension_intermediate_subject_alt_name.pem \ * crypto/x509/test/invalid_extension_intermediate_subject_key_identifier.pem \ * crypto/x509/test/invalid_extension_leaf.pem \ * crypto/x509/test/invalid_extension_leaf_authority_key_identifier.pem \ * crypto/x509/test/invalid_extension_leaf_basic_constraints.pem \ * crypto/x509/test/invalid_extension_leaf_ext_key_usage.pem \ * crypto/x509/test/invalid_extension_leaf_key_usage.pem \ * crypto/x509/test/invalid_extension_leaf_name_constraints.pem \ * crypto/x509/test/invalid_extension_leaf_subject_alt_name.pem \ * crypto/x509/test/invalid_extension_leaf_subject_key_identifier.pem \ * crypto/x509/test/invalid_extension_root.pem \ * crypto/x509/test/invalid_extension_root_authority_key_identifier.pem \ * crypto/x509/test/invalid_extension_root_basic_constraints.pem \ * crypto/x509/test/invalid_extension_root_ext_key_usage.pem \ * crypto/x509/test/invalid_extension_root_key_usage.pem \ * crypto/x509/test/invalid_extension_root_name_constraints.pem \ * crypto/x509/test/invalid_extension_root_subject_alt_name.pem \ * crypto/x509/test/invalid_extension_root_subject_key_identifier.pem \ * crypto/x509/test/many_constraints.pem \ * crypto/x509/test/many_names1.pem \ * crypto/x509/test/many_names2.pem \ * crypto/x509/test/many_names3.pem \ * crypto/x509/test/some_names1.pem \ * crypto/x509/test/some_names2.pem \ * crypto/x509/test/some_names3.pem \ * crypto/x509/test/trailing_data_leaf_authority_key_identifier.pem \ * crypto/x509/test/trailing_data_leaf_basic_constraints.pem \ * crypto/x509/test/trailing_data_leaf_ext_key_usage.pem \ * crypto/x509/test/trailing_data_leaf_key_usage.pem \ * crypto/x509/test/trailing_data_leaf_name_constraints.pem \ * crypto/x509/test/trailing_data_leaf_subject_alt_name.pem \ * crypto/x509/test/trailing_data_leaf_subject_key_identifier.pem \ * third_party/wycheproof_testvectors/aes_cbc_pkcs5_test.txt \ * third_party/wycheproof_testvectors/aes_cmac_test.txt \ * third_party/wycheproof_testvectors/aes_gcm_siv_test.txt \ * third_party/wycheproof_testvectors/aes_gcm_test.txt \ * third_party/wycheproof_testvectors/chacha20_poly1305_test.txt \ * third_party/wycheproof_testvectors/dsa_test.txt \ * third_party/wycheproof_testvectors/ecdh_secp224r1_test.txt \ * third_party/wycheproof_testvectors/ecdh_secp256r1_test.txt \ * third_party/wycheproof_testvectors/ecdh_secp384r1_test.txt \ * third_party/wycheproof_testvectors/ecdh_secp521r1_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp224r1_sha224_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp224r1_sha256_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp224r1_sha512_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp256r1_sha256_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp256r1_sha512_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp384r1_sha384_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp384r1_sha512_test.txt \ * third_party/wycheproof_testvectors/ecdsa_secp521r1_sha512_test.txt \ * third_party/wycheproof_testvectors/eddsa_test.txt \ * third_party/wycheproof_testvectors/hkdf_sha1_test.txt \ * third_party/wycheproof_testvectors/hkdf_sha256_test.txt \ * third_party/wycheproof_testvectors/hkdf_sha384_test.txt \ * third_party/wycheproof_testvectors/hkdf_sha512_test.txt \ * third_party/wycheproof_testvectors/hmac_sha1_test.txt \ * third_party/wycheproof_testvectors/hmac_sha224_test.txt \ * third_party/wycheproof_testvectors/hmac_sha256_test.txt \ * third_party/wycheproof_testvectors/hmac_sha384_test.txt \ * third_party/wycheproof_testvectors/hmac_sha512_test.txt \ * third_party/wycheproof_testvectors/kwp_test.txt \ * third_party/wycheproof_testvectors/kw_test.txt \ * third_party/wycheproof_testvectors/primality_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha1_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha224_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha224_mgf1sha224_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha256_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha256_mgf1sha256_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha384_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha384_mgf1sha384_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha512_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_2048_sha512_mgf1sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_3072_sha256_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_3072_sha256_mgf1sha256_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_3072_sha512_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_3072_sha512_mgf1sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_4096_sha256_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_4096_sha256_mgf1sha256_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_4096_sha512_mgf1sha1_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_4096_sha512_mgf1sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_oaep_misc_test.txt \ * third_party/wycheproof_testvectors/rsa_pkcs1_2048_test.txt \ * third_party/wycheproof_testvectors/rsa_pkcs1_3072_test.txt \ * third_party/wycheproof_testvectors/rsa_pkcs1_4096_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_2048_sha1_mgf1_20_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_2048_sha256_mgf1_0_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_2048_sha256_mgf1_32_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_3072_sha256_mgf1_32_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_4096_sha256_mgf1_32_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_4096_sha512_mgf1_32_test.txt \ * third_party/wycheproof_testvectors/rsa_pss_misc_test.txt \ * third_party/wycheproof_testvectors/rsa_sig_gen_misc_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_2048_sha224_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_2048_sha256_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_2048_sha384_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_2048_sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_3072_sha256_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_3072_sha384_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_3072_sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_4096_sha384_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_4096_sha512_test.txt \ * third_party/wycheproof_testvectors/rsa_signature_test.txt \ * third_party/wycheproof_testvectors/x25519_test.txt \ * third_party/wycheproof_testvectors/xchacha20_poly1305_test.txt */ /* clang-format off */ #include <stdlib.h> #include <string.h> #include <algorithm> #include <string> static const size_t kLen0 = 98758; static const char *kData0[] = {