1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
source_set("webcrypto") {
sources = [
"algorithm_dispatch.cc",
"algorithm_dispatch.h",
"algorithm_implementation.cc",
"algorithm_implementation.h",
"algorithm_implementations.h",
"algorithm_registry.cc",
"algorithm_registry.h",
"algorithms/aes.cc",
"algorithms/aes.h",
"algorithms/aes_cbc.cc",
"algorithms/aes_ctr.cc",
"algorithms/aes_gcm.cc",
"algorithms/aes_kw.cc",
"algorithms/asymmetric_key_util.cc",
"algorithms/asymmetric_key_util.h",
"algorithms/ec.cc",
"algorithms/ec.h",
"algorithms/ecdh.cc",
"algorithms/ecdsa.cc",
"algorithms/hkdf.cc",
"algorithms/hmac.cc",
"algorithms/pbkdf2.cc",
"algorithms/rsa.cc",
"algorithms/rsa.h",
"algorithms/rsa_oaep.cc",
"algorithms/rsa_pss.cc",
"algorithms/rsa_sign.cc",
"algorithms/rsa_sign.h",
"algorithms/rsa_ssa.cc",
"algorithms/secret_key_util.cc",
"algorithms/secret_key_util.h",
"algorithms/sha.cc",
"algorithms/util.cc",
"algorithms/util.h",
"blink_key_handle.cc",
"blink_key_handle.h",
"crypto_data.cc",
"crypto_data.h",
"generate_key_result.cc",
"generate_key_result.h",
"jwk.cc",
"jwk.h",
"status.cc",
"status.h",
"webcrypto_impl.cc",
"webcrypto_impl.h",
]
deps = [
"//base",
"//crypto",
"//crypto:platform",
"//third_party/WebKit/public:blink_headers",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"algorithms/aes_cbc_unittest.cc",
"algorithms/aes_ctr_unittest.cc",
"algorithms/aes_gcm_unittest.cc",
"algorithms/aes_kw_unittest.cc",
"algorithms/ecdh_unittest.cc",
"algorithms/ecdsa_unittest.cc",
"algorithms/hmac_unittest.cc",
"algorithms/rsa_oaep_unittest.cc",
"algorithms/rsa_pss_unittest.cc",
"algorithms/rsa_ssa_unittest.cc",
"algorithms/sha_unittest.cc",
"algorithms/test_helpers.cc",
"algorithms/test_helpers.h",
"status_unittest.cc",
]
deps = [
":webcrypto",
"//base/test:test_support",
"//components/test_runner:test_runner",
"//crypto",
"//crypto:platform",
"//testing/gtest",
"//testing/perf",
"//third_party/WebKit/public:blink",
"//third_party/re2",
]
}
|