From 7f98bb768922676526e0cbdf063c1a5fc31cc52d Mon Sep 17 00:00:00 2001 From: Ernesto Ocampo Date: Mon, 8 Apr 2024 15:52:50 -0300 Subject: [PATCH] Build oak_restricted_kernel_dice with Bazel (#5007) Change-Id: Ie703559f1d1764563be44982af80d47805da0534 --- oak_restricted_kernel_dice/BUILD | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 oak_restricted_kernel_dice/BUILD diff --git a/oak_restricted_kernel_dice/BUILD b/oak_restricted_kernel_dice/BUILD new file mode 100644 index 00000000000..294473dc004 --- /dev/null +++ b/oak_restricted_kernel_dice/BUILD @@ -0,0 +1,35 @@ +# +# Copyright 2024 The Project Oak Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +rust_library( + name = "oak_restricted_kernel_dice", + srcs = glob(["src/**"]), + deps = [ + "//oak_crypto", + "//oak_dice", + "@oak_crates_index//:coset", + "@oak_crates_index//:hkdf", + "@oak_crates_index//:p256", + "@oak_crates_index//:sha2", + ], +)