• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_visibility: ["//visibility:private"],
19    default_applicable_licenses: ["external_wycheproof_license"],
20}
21
22// Added automatically by a large-scale-change
23// http://go/android-license-faq
24license {
25    name: "external_wycheproof_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33}
34
35java_library_static {
36    name: "wycheproof",
37    visibility: [
38        "//cts/tests/libcore/wycheproof",
39        "//cts/tests/libcore/wycheproof-bc",
40    ],
41    srcs: ["java/**/*.java"],
42    exclude_srcs: [
43        "java/com/google/security/wycheproof/SpongyCastleAllTests.java",
44        "java/com/google/security/wycheproof/SpongyCastleTest.java",
45    ],
46    sdk_version: "current",
47    libs: [
48        "bouncycastle-repackaged-unbundled",
49        "conscrypt.module.platform.api",
50        "junit",
51    ],
52}
53
54java_library_static {
55    name: "wycheproof-keystore",
56    visibility: [
57        "//cts/tests/tests/keystore",
58    ],
59    srcs: ["keystore-cts/java/**/*.java"],
60    exclude_srcs: [
61        "keystore-cts/java/com/google/security/wycheproof/testcases/CipherInputStreamTest.java",
62        "keystore-cts/java/com/google/security/wycheproof/testcases/CipherOutputStreamTest.java",
63        "keystore-cts/java/com/google/security/wycheproof/testcases/EcdhTest.java",
64        "keystore-cts/java/com/google/security/wycheproof/testcases/EcdsaTest.java",
65        "keystore-cts/java/com/google/security/wycheproof/testcases/JsonCipherTest.java",
66        "keystore-cts/java/com/google/security/wycheproof/testcases/JsonEcdhTest.java",
67        "keystore-cts/java/com/google/security/wycheproof/testcases/JsonMacTest.java",
68        "keystore-cts/java/com/google/security/wycheproof/testcases/JsonSignatureTest.java",
69        "keystore-cts/java/com/google/security/wycheproof/testcases/MacTest.java",
70        "keystore-cts/java/com/google/security/wycheproof/testcases/RsaEncryptionTest.java",
71        "keystore-cts/java/com/google/security/wycheproof/testcases/RsaOaepTest.java",
72        "keystore-cts/java/com/google/security/wycheproof/testcases/RsaPssTest.java",
73        "keystore-cts/java/com/google/security/wycheproof/testcases/RsaSignatureTest.java",
74    ],
75    java_resource_dirs: ["keystore-cts/testvectors"],
76    sdk_version: "current",
77    libs: [
78        "bouncycastle-bcpkix-unbundled",
79        "bouncycastle-unbundled",
80        "junit",
81        "wycheproof-gson",
82    ],
83}
84
85java_import {
86    name: "wycheproof-gson",
87    visibility: ["//cts/tests/tests/keystore"],
88    jars: ["keystore-cts/libs/gson-2.9.0.jar"],
89}
90