Skip to content

Commit 6ee4751

Browse files
siemen11nasahlpa
authored andcommitted
[crypto] Add kats
Add a new file with the run_kats function. This is for FIPS certification to run health tests on the API calls of the library. Populate the function with several kats such as sha2, ecc, rsa, aes already. with thanks to Bastien Gillon <bgillon@google.com>. Signed-off-by: Siemen Dhooghe <sdhooghe@google.com>
1 parent 1415433 commit 6ee4751

5 files changed

Lines changed: 1274 additions & 0 deletions

File tree

sw/device/lib/crypto/impl/BUILD

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,32 @@ cc_library(
164164
],
165165
)
166166

167+
cc_library(
168+
name = "kats",
169+
srcs = ["kats.c"],
170+
hdrs = ["kats.h"],
171+
deps = [
172+
":aes",
173+
":aes_gcm",
174+
":config",
175+
":drbg",
176+
":ecc_p256",
177+
":ecc_p384",
178+
":entropy_src",
179+
":hmac",
180+
":integrity",
181+
":keyblob",
182+
":kmac",
183+
":rsa",
184+
":sha2",
185+
":sha3",
186+
":status",
187+
"//sw/device/lib/base:hardened_memory",
188+
"//sw/device/lib/crypto/drivers:entropy_kat",
189+
"//sw/device/lib/crypto/include:datatypes",
190+
],
191+
)
192+
167193
cc_library(
168194
name = "kdf_ctr",
169195
srcs = ["kdf_ctr.c"],

0 commit comments

Comments
 (0)