1// This file is generated by cargo_embargo. 2// Do not modify this file after the first "rust_*" or "genrule" module 3// because the changes will be overridden on upgrade. 4// Content before the first "rust_*" or "genrule" module is preserved. 5 6package { 7 default_applicable_licenses: ["external_rust_crates_ring_license"], 8} 9 10// Added automatically by a large-scale-change that took the approach of 11// 'apply every license found to every target'. While this makes sure we respect 12// every license restriction, it may not be entirely correct. 13// 14// e.g. GPL in an MIT project might only apply to the contrib/ directory. 15// 16// Please consider splitting the single license below into multiple licenses, 17// taking care not to lose any license_kind information, and overriding the 18// default license using the 'licenses: [...]' property on targets as needed. 19// 20// For unused files, consider creating a 'fileGroup' with "//visibility:private" 21// to attach the license to, and including a comment whether the files may be 22// used in the current project. 23// See: http://go/android-license-faq 24license { 25 name: "external_rust_crates_ring_license", 26 visibility: [":__subpackages__"], 27 license_kinds: [ 28 "SPDX-license-identifier-BSD", 29 "SPDX-license-identifier-ISC", 30 "SPDX-license-identifier-MIT", 31 "SPDX-license-identifier-OpenSSL", 32 "legacy_unencumbered", 33 ], 34 license_text: [ 35 "LICENSE", 36 ], 37} 38 39rust_library { 40 name: "libring", 41 host_supported: true, 42 crate_name: "ring", 43 cargo_env_compat: true, 44 cargo_pkg_version: "0.17.0-alpha.11", 45 crate_root: "src/lib.rs", 46 edition: "2018", 47 features: [ 48 "alloc", 49 "default", 50 "dev_urandom_fallback", 51 "once_cell", 52 "std", 53 ], 54 rustlibs: [ 55 "liblibc", 56 "libonce_cell", 57 "libspin", 58 "libuntrusted", 59 ], 60 whole_static_libs: [ 61 "libring-core", 62 "libring-test", 63 ], 64 apex_available: [ 65 "//apex_available:platform", 66 "com.android.resolv", 67 ], 68 product_available: true, 69 vendor_available: true, 70 min_sdk_version: "29", 71} 72 73rust_test { 74 name: "ring_test_src_lib", 75 host_supported: true, 76 crate_name: "ring", 77 cargo_env_compat: true, 78 cargo_pkg_version: "0.17.0-alpha.11", 79 crate_root: "src/lib.rs", 80 test_suites: ["general-tests"], 81 auto_gen_config: true, 82 test_options: { 83 unit_test: false, 84 }, 85 edition: "2018", 86 features: [ 87 "alloc", 88 "default", 89 "dev_urandom_fallback", 90 "once_cell", 91 "std", 92 ], 93 rustlibs: [ 94 "liblibc", 95 "libonce_cell", 96 "libspin", 97 "libuntrusted", 98 ], 99 whole_static_libs: [ 100 "libring-core", 101 "libring-test", 102 ], 103} 104 105rust_test { 106 name: "ring_test_tests_aead_tests", 107 host_supported: true, 108 crate_name: "aead_tests", 109 cargo_env_compat: true, 110 cargo_pkg_version: "0.17.0-alpha.11", 111 crate_root: "tests/aead_tests.rs", 112 test_suites: ["general-tests"], 113 auto_gen_config: true, 114 test_options: { 115 unit_test: false, 116 }, 117 edition: "2018", 118 features: [ 119 "alloc", 120 "default", 121 "dev_urandom_fallback", 122 "once_cell", 123 "std", 124 ], 125 rustlibs: [ 126 "liblibc", 127 "libonce_cell", 128 "libring", 129 "libspin", 130 "libuntrusted", 131 ], 132} 133 134rust_test { 135 name: "ring_test_tests_agreement_tests", 136 host_supported: true, 137 crate_name: "agreement_tests", 138 cargo_env_compat: true, 139 cargo_pkg_version: "0.17.0-alpha.11", 140 crate_root: "tests/agreement_tests.rs", 141 test_suites: ["general-tests"], 142 auto_gen_config: true, 143 test_options: { 144 unit_test: false, 145 }, 146 edition: "2018", 147 features: [ 148 "alloc", 149 "default", 150 "dev_urandom_fallback", 151 "once_cell", 152 "std", 153 ], 154 rustlibs: [ 155 "liblibc", 156 "libonce_cell", 157 "libring", 158 "libspin", 159 "libuntrusted", 160 ], 161} 162 163rust_test { 164 name: "ring_test_tests_constant_time_tests", 165 host_supported: true, 166 crate_name: "constant_time_tests", 167 cargo_env_compat: true, 168 cargo_pkg_version: "0.17.0-alpha.11", 169 crate_root: "tests/constant_time_tests.rs", 170 test_suites: ["general-tests"], 171 auto_gen_config: true, 172 test_options: { 173 unit_test: false, 174 }, 175 edition: "2018", 176 features: [ 177 "alloc", 178 "default", 179 "dev_urandom_fallback", 180 "once_cell", 181 "std", 182 ], 183 rustlibs: [ 184 "liblibc", 185 "libonce_cell", 186 "libring", 187 "libspin", 188 "libuntrusted", 189 ], 190} 191 192rust_test { 193 name: "ring_test_tests_digest_tests", 194 host_supported: true, 195 crate_name: "digest_tests", 196 cargo_env_compat: true, 197 cargo_pkg_version: "0.17.0-alpha.11", 198 crate_root: "tests/digest_tests.rs", 199 test_suites: ["general-tests"], 200 auto_gen_config: true, 201 test_options: { 202 unit_test: false, 203 }, 204 edition: "2018", 205 features: [ 206 "alloc", 207 "default", 208 "dev_urandom_fallback", 209 "once_cell", 210 "std", 211 ], 212 rustlibs: [ 213 "liblibc", 214 "libonce_cell", 215 "libring", 216 "libspin", 217 "libuntrusted", 218 ], 219} 220 221rust_test { 222 name: "ring_test_tests_ecdsa_tests", 223 host_supported: true, 224 crate_name: "ecdsa_tests", 225 cargo_env_compat: true, 226 cargo_pkg_version: "0.17.0-alpha.11", 227 crate_root: "tests/ecdsa_tests.rs", 228 test_suites: ["general-tests"], 229 auto_gen_config: true, 230 test_options: { 231 unit_test: false, 232 }, 233 edition: "2018", 234 features: [ 235 "alloc", 236 "default", 237 "dev_urandom_fallback", 238 "once_cell", 239 "std", 240 ], 241 rustlibs: [ 242 "liblibc", 243 "libonce_cell", 244 "libring", 245 "libspin", 246 "libuntrusted", 247 ], 248} 249 250rust_test { 251 name: "ring_test_tests_ed25519_tests", 252 host_supported: true, 253 crate_name: "ed25519_tests", 254 cargo_env_compat: true, 255 cargo_pkg_version: "0.17.0-alpha.11", 256 crate_root: "tests/ed25519_tests.rs", 257 test_suites: ["general-tests"], 258 auto_gen_config: true, 259 test_options: { 260 unit_test: false, 261 }, 262 edition: "2018", 263 features: [ 264 "alloc", 265 "default", 266 "dev_urandom_fallback", 267 "once_cell", 268 "std", 269 ], 270 rustlibs: [ 271 "liblibc", 272 "libonce_cell", 273 "libring", 274 "libspin", 275 "libuntrusted", 276 ], 277} 278 279rust_test { 280 name: "ring_test_tests_hkdf_tests", 281 host_supported: true, 282 crate_name: "hkdf_tests", 283 cargo_env_compat: true, 284 cargo_pkg_version: "0.17.0-alpha.11", 285 crate_root: "tests/hkdf_tests.rs", 286 test_suites: ["general-tests"], 287 auto_gen_config: true, 288 test_options: { 289 unit_test: false, 290 }, 291 edition: "2018", 292 features: [ 293 "alloc", 294 "default", 295 "dev_urandom_fallback", 296 "once_cell", 297 "std", 298 ], 299 rustlibs: [ 300 "liblibc", 301 "libonce_cell", 302 "libring", 303 "libspin", 304 "libuntrusted", 305 ], 306} 307 308rust_test { 309 name: "ring_test_tests_hmac_tests", 310 host_supported: true, 311 crate_name: "hmac_tests", 312 cargo_env_compat: true, 313 cargo_pkg_version: "0.17.0-alpha.11", 314 crate_root: "tests/hmac_tests.rs", 315 test_suites: ["general-tests"], 316 auto_gen_config: true, 317 test_options: { 318 unit_test: false, 319 }, 320 edition: "2018", 321 features: [ 322 "alloc", 323 "default", 324 "dev_urandom_fallback", 325 "once_cell", 326 "std", 327 ], 328 rustlibs: [ 329 "liblibc", 330 "libonce_cell", 331 "libring", 332 "libspin", 333 "libuntrusted", 334 ], 335} 336 337rust_test { 338 name: "ring_test_tests_pbkdf2_tests", 339 host_supported: true, 340 crate_name: "pbkdf2_tests", 341 cargo_env_compat: true, 342 cargo_pkg_version: "0.17.0-alpha.11", 343 crate_root: "tests/pbkdf2_tests.rs", 344 test_suites: ["general-tests"], 345 auto_gen_config: true, 346 test_options: { 347 unit_test: false, 348 }, 349 edition: "2018", 350 features: [ 351 "alloc", 352 "default", 353 "dev_urandom_fallback", 354 "once_cell", 355 "std", 356 ], 357 rustlibs: [ 358 "liblibc", 359 "libonce_cell", 360 "libring", 361 "libspin", 362 "libuntrusted", 363 ], 364} 365 366rust_test { 367 name: "ring_test_tests_quic_tests", 368 host_supported: true, 369 crate_name: "quic_tests", 370 cargo_env_compat: true, 371 cargo_pkg_version: "0.17.0-alpha.11", 372 crate_root: "tests/quic_tests.rs", 373 test_suites: ["general-tests"], 374 auto_gen_config: true, 375 test_options: { 376 unit_test: false, 377 }, 378 edition: "2018", 379 features: [ 380 "alloc", 381 "default", 382 "dev_urandom_fallback", 383 "once_cell", 384 "std", 385 ], 386 rustlibs: [ 387 "liblibc", 388 "libonce_cell", 389 "libring", 390 "libspin", 391 "libuntrusted", 392 ], 393} 394 395rust_test { 396 name: "ring_test_tests_rand_tests", 397 host_supported: true, 398 crate_name: "rand_tests", 399 cargo_env_compat: true, 400 cargo_pkg_version: "0.17.0-alpha.11", 401 crate_root: "tests/rand_tests.rs", 402 test_suites: ["general-tests"], 403 auto_gen_config: true, 404 test_options: { 405 unit_test: false, 406 }, 407 edition: "2018", 408 features: [ 409 "alloc", 410 "default", 411 "dev_urandom_fallback", 412 "once_cell", 413 "std", 414 ], 415 rustlibs: [ 416 "liblibc", 417 "libonce_cell", 418 "libring", 419 "libspin", 420 "libuntrusted", 421 ], 422} 423 424rust_test { 425 name: "ring_test_tests_rsa_tests", 426 host_supported: true, 427 crate_name: "rsa_tests", 428 cargo_env_compat: true, 429 cargo_pkg_version: "0.17.0-alpha.11", 430 crate_root: "tests/rsa_tests.rs", 431 test_suites: ["general-tests"], 432 auto_gen_config: true, 433 test_options: { 434 unit_test: false, 435 }, 436 edition: "2018", 437 features: [ 438 "alloc", 439 "default", 440 "dev_urandom_fallback", 441 "once_cell", 442 "std", 443 ], 444 rustlibs: [ 445 "liblibc", 446 "libonce_cell", 447 "libring", 448 "libspin", 449 "libuntrusted", 450 ], 451} 452 453rust_test { 454 name: "ring_test_tests_signature_tests", 455 host_supported: true, 456 crate_name: "signature_tests", 457 cargo_env_compat: true, 458 cargo_pkg_version: "0.17.0-alpha.11", 459 crate_root: "tests/signature_tests.rs", 460 test_suites: ["general-tests"], 461 auto_gen_config: true, 462 test_options: { 463 unit_test: false, 464 }, 465 edition: "2018", 466 features: [ 467 "alloc", 468 "default", 469 "dev_urandom_fallback", 470 "once_cell", 471 "std", 472 ], 473 rustlibs: [ 474 "liblibc", 475 "libonce_cell", 476 "libring", 477 "libspin", 478 "libuntrusted", 479 ], 480} 481 482rust_library_rlib { 483 name: "libring_nostd", 484 crate_name: "ring", 485 cargo_env_compat: true, 486 cargo_pkg_version: "0.17.0-alpha.11", 487 crate_root: "src/lib.rs", 488 edition: "2018", 489 features: ["once_cell"], 490 rustlibs: [ 491 "liblibc", 492 "libonce_cell", 493 "libspin_nostd", 494 "libuntrusted", 495 ], 496 whole_static_libs: [ 497 "libring-core", 498 "libring-test", 499 ], 500 apex_available: [ 501 "//apex_available:platform", 502 "com.android.resolv", 503 ], 504 prefer_rlib: true, 505 no_stdlibs: true, 506 stdlibs: [ 507 "libcompiler_builtins.rust_sysroot", 508 "libcore.rust_sysroot", 509 ], 510 product_available: true, 511 vendor_available: true, 512 min_sdk_version: "29", 513} 514 515cc_library_static { 516 name: "libring-core", 517 host_supported: true, 518 srcs: [ 519 "crypto/cpu-intel.c", 520 "crypto/fipsmodule/aes/aes_nohw.c", 521 "crypto/crypto.c", 522 "crypto/poly1305/poly1305.c", 523 "crypto/poly1305/poly1305_vec.c", 524 "crypto/curve25519/curve25519.c", 525 "crypto/fipsmodule/ec/ecp_nistz.c", 526 "crypto/fipsmodule/ec/gfp_p256.c", 527 "crypto/fipsmodule/ec/gfp_p384.c", 528 "crypto/fipsmodule/ec/p256.c", 529 "crypto/fipsmodule/rsa/padding.c", 530 "crypto/limbs/limbs.c", 531 "crypto/mem.c", 532 "crypto/fipsmodule/bn/montgomery.c", 533 "crypto/fipsmodule/bn/montgomery_inv.c", 534 ], 535 536 arch: { 537 arm: { 538 srcs: [ 539 "crypto/poly1305/poly1305_arm.c", 540 "crypto/poly1305/poly1305_arm_asm.S", 541 "pregenerated/armv4-mont-linux32.S", 542 "crypto/curve25519/asm/x25519-asm-arm.S", 543 "pregenerated/sha256-armv4-linux32.S", 544 "pregenerated/sha512-armv4-linux32.S", 545 "pregenerated/aesv8-armx-linux32.S", 546 "pregenerated/bsaes-armv7-linux32.S", 547 "pregenerated/ghashv8-armx-linux32.S", 548 "pregenerated/vpaes-armv7-linux32.S", 549 "pregenerated/ghash-armv4-linux32.S", 550 "pregenerated/chacha-armv4-linux32.S", 551 ], 552 }, 553 arm64: { 554 srcs: [ 555 "pregenerated/aesv8-armx-linux64.S", 556 "pregenerated/armv8-mont-linux64.S", 557 "pregenerated/chacha-armv8-linux64.S", 558 "pregenerated/ghash-neon-armv8-linux64.S", 559 "pregenerated/ghashv8-armx-linux64.S", 560 "pregenerated/sha256-armv8-linux64.S", 561 "pregenerated/sha512-armv8-linux64.S", 562 "pregenerated/vpaes-armv8-linux64.S", 563 ], 564 }, 565 x86: { 566 srcs: [ 567 "pregenerated/aesni-x86-elf.S", 568 "pregenerated/chacha-x86-elf.S", 569 "pregenerated/ghash-x86-elf.S", 570 "pregenerated/vpaes-x86-elf.S", 571 "pregenerated/x86-mont-elf.S", 572 ], 573 }, 574 x86_64: { 575 srcs: [ 576 "crypto/fipsmodule/ec/p256-x86_64.c", 577 "pregenerated/aesni-gcm-x86_64-elf.S", 578 "pregenerated/aesni-x86_64-elf.S", 579 "pregenerated/chacha-x86_64-elf.S", 580 "pregenerated/chacha20_poly1305_x86_64-elf.S", 581 "pregenerated/ghash-x86_64-elf.S", 582 "pregenerated/p256-x86_64-asm-elf.S", 583 "pregenerated/sha256-x86_64-elf.S", 584 "pregenerated/sha512-x86_64-elf.S", 585 "pregenerated/vpaes-x86_64-elf.S", 586 "pregenerated/x86_64-mont5-elf.S", 587 "pregenerated/x86_64-mont-elf.S", 588 ], 589 }, 590 riscv64: { 591 cflags: ["-DOPENSSL_NO_ASM"], 592 }, 593 }, 594 595 cflags: [ 596 "-O3", 597 "-Wno-error", 598 "-fPIC", 599 "-fdata-sections", 600 "-ffunction-sections", 601 "-fno-omit-frame-pointer", 602 "-fno-strict-aliasing", 603 "-fstack-protector", 604 "-fvisibility=hidden", 605 "-DNDEBUG", 606 ], 607 local_include_dirs: ["include"], 608 apex_available: [ 609 "//apex_available:platform", 610 "com.android.resolv", 611 ], 612 vendor_available: true, 613 product_available: true, 614 min_sdk_version: "29", 615} 616 617cc_library_static { 618 name: "libring-test", 619 host_supported: true, 620 srcs: [ 621 "crypto/constant_time_test.c", 622 ], 623 local_include_dirs: ["include"], 624 apex_available: [ 625 "//apex_available:platform", 626 "com.android.resolv", 627 ], 628 vendor_available: true, 629 product_available: true, 630 min_sdk_version: "29", 631} 632