{
  "module_name_overrides": {
    "libgetrandom": "libgetrandom-0.2"
  },
  "apex_available": [
    "//apex_available:platform",
    "com.android.resolv"
  ],
  "min_sdk_version": "29",
  "package": {
    "ring": {
      "add_toplevel_block": "cargo2android_cc.bp",
      "no_presubmit": true,
      "whole_static_libs": [
        "libring-core",
        "libring-test"
      ],
      "patch": "patches/Android.bp.patch",
      "extra_srcs": [
        "src/data/alg-rsa-encryption.der",
        "src/ec/curve25519/ed25519/ed25519_pkcs8_v2_template.der",
        "src/ec/suite_b/ecdsa/ecPublicKey_p256_pkcs8_v1_template.der",
        "src/ec/suite_b/ecdsa/ecPublicKey_p384_pkcs8_v1_template.der",
        "crypto/fipsmodule/bn/test/mod_exp_tests.txt",
        "crypto/fipsmodule/bn/test/mod_mul_tests.txt",
        "crypto/fipsmodule/ecdsa/ecdsa_verify_tests.txt",
        "src/aead/aes_tests.txt",
        "src/aead/chacha_tests.txt",
        "src/aead/poly1305_test.txt",
        "src/arithmetic/bigint_elem_reduced_once_tests.txt",
        "src/arithmetic/bigint_elem_reduced_tests.txt",
        "src/arithmetic/bigint_elem_squared_tests.txt",
        "src/ec/suite_b/ecdsa/ecdsa_digest_scalar_tests.txt",
        "src/ec/suite_b/ecdsa/ecdsa_sign_asn1_tests.txt",
        "src/ec/suite_b/ecdsa/ecdsa_sign_fixed_tests.txt",
        "src/ec/suite_b/ops/p256_elem_mul_tests.txt",
        "src/ec/suite_b/ops/p256_elem_neg_tests.txt",
        "src/ec/suite_b/ops/p256_elem_sum_tests.txt",
        "src/ec/suite_b/ops/p256_point_double_tests.txt",
        "src/ec/suite_b/ops/p256_point_mul_base_tests.txt",
        "src/ec/suite_b/ops/p256_point_mul_serialized_tests.txt",
        "src/ec/suite_b/ops/p256_point_mul_tests.txt",
        "src/ec/suite_b/ops/p256_point_sum_mixed_tests.txt",
        "src/ec/suite_b/ops/p256_point_sum_tests.txt",
        "src/ec/suite_b/ops/p256_scalar_mul_tests.txt",
        "src/ec/suite_b/ops/p256_scalar_square_tests.txt",
        "src/ec/suite_b/ops/p384_elem_div_by_2_tests.txt",
        "src/ec/suite_b/ops/p384_elem_mul_tests.txt",
        "src/ec/suite_b/ops/p384_elem_neg_tests.txt",
        "src/ec/suite_b/ops/p384_elem_sum_tests.txt",
        "src/ec/suite_b/ops/p384_point_double_tests.txt",
        "src/ec/suite_b/ops/p384_point_mul_base_tests.txt",
        "src/ec/suite_b/ops/p384_point_mul_tests.txt",
        "src/ec/suite_b/ops/p384_point_sum_tests.txt",
        "src/ec/suite_b/ops/p384_scalar_mul_tests.txt",
        "src/ec/suite_b/suite_b_public_key_tests.txt",
        "src/rsa/rsa_pss_padding_tests.txt",
        "src/test_1_syntax_error_tests.txt",
        "src/test_1_tests.txt",
        "src/test_3_tests.txt",
        "tests/digest_tests.txt",
        "third_party/NIST/SHAVS/SHA1LongMsg.rsp",
        "third_party/NIST/SHAVS/SHA1Monte.rsp",
        "third_party/NIST/SHAVS/SHA1ShortMsg.rsp",
        "third_party/NIST/SHAVS/SHA256LongMsg.rsp",
        "third_party/NIST/SHAVS/SHA256Monte.rsp",
        "third_party/NIST/SHAVS/SHA256ShortMsg.rsp",
        "third_party/NIST/SHAVS/SHA384LongMsg.rsp",
        "third_party/NIST/SHAVS/SHA384Monte.rsp",
        "third_party/NIST/SHAVS/SHA384ShortMsg.rsp",
        "third_party/NIST/SHAVS/SHA512LongMsg.rsp",
        "third_party/NIST/SHAVS/SHA512Monte.rsp",
        "third_party/NIST/SHAVS/SHA512ShortMsg.rsp",
        "tests/agreement_tests.txt",
        "src/ec/suite_b/ecdsa/ecdsa_sign_asn1_tests.txt",
        "src/ec/suite_b/ecdsa/ecdsa_sign_fixed_tests.txt",
        "tests/ecdsa_from_pkcs8_tests.txt",
        "tests/ecdsa_test_private_key_p256.p8",
        "tests/ecdsa_test_public_key_p256.der",
        "tests/ecdsa_test_public_key_p256_debug.txt",
        "tests/ecdsa_verify_asn1_tests.txt",
        "tests/ecdsa_verify_fixed_tests.txt",
        "tests/ed25519_from_pkcs8_tests.txt",
        "tests/ed25519_test_private_key.bin",
        "tests/ed25519_test_private_key.p8",
        "tests/ed25519_test_public_key.bin",
        "tests/ed25519_test_public_key.der",
        "tests/ed25519_tests.txt",
        "tests/ed25519_verify_tests.txt",
        "src/rsa/signature_rsa_example_private_key.der",
        "tests/rsa_from_pkcs8_tests.txt",
        "tests/rsa_pkcs1_sign_tests.txt",
        "tests/rsa_pkcs1_verify_tests.txt",
        "tests/rsa_primitive_verify_tests.txt",
        "tests/rsa_pss_sign_tests.txt",
        "tests/rsa_pss_verify_tests.txt",
        "tests/rsa_test_private_key_2048.p8",
        "tests/rsa_test_public_key_2048.der",
        "tests/rsa_test_public_key_2048_debug.txt",
        "tests/rsa_test_public_modulus.bin",
        "tests/pbkdf2_tests.txt",
        "tests/quic_aes_128_tests.txt",
        "tests/quic_aes_256_tests.txt",
        "tests/quic_chacha20_tests.txt",
        "tests/aead_aes_128_gcm_tests.txt",
        "tests/aead_aes_256_gcm_tests.txt",
        "tests/aead_chacha20_poly1305_openssh_tests.txt",
        "tests/aead_chacha20_poly1305_tests.txt",
        "tests/hkdf_tests.txt",
        "tests/hmac_tests.txt"

      ]
    }
  },
  "variants": [
    {
      "features": [
        "alloc",
        "default",
        "dev_urandom_fallback",
        "std"
      ],
      "module_name_overrides": {
        "libgetrandom": "libgetrandom-0.2",
        "libring_core_0_17_2_": "libring-core",
        "libring_core_0_17_2_test": "libring-test"
      },
      "tests": true
    },
    {
      "features": [
      ],
      "module_name_overrides": {
        "libgetrandom": "libgetrandom-0.2",
        "libring_core_0_17_2_": "libring-core",
        "libring_core_0_17_2_test": "libring-test",
        "libring": "libring_nostd",
        "libspin": "libspin_nostd"
      },
      "package": {
        "ring": {
          "force_rlib": true,
          "host_supported": false,
          "no_std": true
        }
      }
    }
  ]
}
