Skip to content

Commit

Permalink
fix(ci): cleanup format and license
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie-Cui committed Nov 22, 2024
1 parent 01c76cf commit 4004172
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ header: # <1>
- 'yacl/crypto/aes/aes_opt.h'
- 'yacl/io/circuit/data/**.txt'
- 'docs/requirements.txt'
- '.whitesource'
- 'MODULE.bazel'
- 'MODULE.bazel.lock'

comment: never # <9>

Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/aead/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ yacl_cc_library(
srcs = ["all_gcm.cc"],
hdrs = ["all_gcm.h"],
deps = [
"//yacl/base:secparam",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto:key_utils",
],
)
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/block_cipher/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ yacl_cc_library(
],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto:ossl_wrappers",
],
)
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/hash/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ yacl_cc_library(
name = "hash_interface",
srcs = ["hash_interface.h"],
deps = [
"//yacl/base:secparam",
"//yacl/base:byte_container_view",
"//yacl/base:secparam",
"//yacl/crypto:ossl_wrappers",
],
)
Expand Down
4 changes: 2 additions & 2 deletions yacl/crypto/pke/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ yacl_cc_library(
hdrs = ["sm2_enc.h"],
deps = [
":pke_interface",
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/crypto:key_utils",
],
)
Expand All @@ -50,8 +50,8 @@ yacl_cc_library(
hdrs = ["rsa_enc.h"],
deps = [
":pke_interface",
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/crypto:key_utils",
],
)
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/rand/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ yacl_cc_library(
srcs = ["rand.cc"],
hdrs = ["rand.h"],
deps = [
"//yacl/base:secparam",
"//yacl/base:dynamic_bitset",
"//yacl/base:exception",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/rand/drbg",
"//yacl/crypto/tools:prg",
"//yacl/math/mpint",
Expand Down
6 changes: 3 additions & 3 deletions yacl/crypto/rand/drbg/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ yacl_cc_library(
],
visibility = ["//visibility:private"],
deps = [
"//yacl/base:secparam",
"//yacl/base:byte_container_view",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/rand/entropy_source",
"//yacl/utils/spi",
],
Expand All @@ -56,8 +56,8 @@ yacl_cc_library(
deps = [
":spi",
"//yacl/crypto:ossl_wrappers",
"//yacl/ossl_provider:helper", # helper
"//yacl/crypto/rand/entropy_source",
"//yacl/ossl_provider:helper", # helper
],
alwayslink = 1,
)
Expand All @@ -80,8 +80,8 @@ yacl_cc_library(
"//yacl/crypto:ossl_wrappers",
"//yacl/crypto/block_cipher:symmetric_crypto",
"//yacl/crypto/hash:hash_utils",
"//yacl/ossl_provider:helper", # helper
"//yacl/crypto/rand/entropy_source",
"//yacl/ossl_provider:helper", # helper
],
alwayslink = 1,
)
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ yacl_cc_library(
srcs = ["prg.cc"],
hdrs = ["prg.h"],
deps = [
"//yacl/base:secparam",
"//yacl/base:dynamic_bitset",
"//yacl/base:secparam",
"//yacl/crypto/block_cipher:symmetric_crypto",
"//yacl/math/mpint",
],
Expand Down
2 changes: 1 addition & 1 deletion yacl/engine/plaintext/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Ant Group Co., Ltd.
# Copyright 2024 Jamie Cui and Ant Group Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion yacl/engine/plaintext/executor.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Ant Group Co., Ltd.
// Copyright 2024 Jamie Cui and Ant Group Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
14 changes: 13 additions & 1 deletion yacl/engine/plaintext/executor.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright 2024 Ant Group Co., Ltd.
// Copyright 2024 Jamie Cui and Ant Group Co., Ltd.
//
// 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.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
3 changes: 1 addition & 2 deletions yacl/engine/plaintext/executor_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

// Copyright 2024 Ant Group Co., Ltd.
// Copyright 2024 Jamie Cui and Ant Group Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
22 changes: 11 additions & 11 deletions yacl/kernel/algorithms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ yacl_cc_library(
hdrs = ["portable_ot_interface.h"],
deps = [
":base_ot_interface",
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/crypto/tools:ro",
"//yacl/link",
"@simplest_ot//:simplest_ot_portable",
Expand All @@ -46,8 +46,8 @@ yacl_cc_library(
],
deps = [
":base_ot_interface",
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/crypto/tools:ro",
"//yacl/link",
"//yacl/math:gadget",
Expand All @@ -61,8 +61,8 @@ yacl_cc_library(
srcs = ["base_ot.cc"],
hdrs = ["base_ot.h"],
deps = [
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/kernel/type:ot_store_utils",
"//yacl/link",
"@com_google_absl//absl/types:span",
Expand Down Expand Up @@ -117,9 +117,9 @@ yacl_cc_library(
hdrs = ["kkrt_ote.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/aes:aes_opt",
"//yacl/crypto/hash:hash_utils",
"//yacl/crypto/rand",
Expand Down Expand Up @@ -178,8 +178,8 @@ yacl_cc_library(
hdrs = ["gywz_ote.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:aligned_vector",
"//yacl/base:secparam",
"//yacl/crypto/aes:aes_opt",
"//yacl/crypto/rand",
"//yacl/crypto/tools:crhash",
Expand Down Expand Up @@ -214,8 +214,8 @@ yacl_cc_library(
],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:exception",
"//yacl/base:secparam",
"//yacl/crypto/hash:hash_utils",
"//yacl/crypto/rand",
"//yacl/crypto/tools:common",
Expand Down Expand Up @@ -248,10 +248,10 @@ yacl_cc_library(
hdrs = ["kos_ote.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:dynamic_bitset",
"//yacl/base:exception",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/rand",
"//yacl/crypto/tools:common",
"//yacl/crypto/tools:crhash",
Expand Down Expand Up @@ -316,10 +316,10 @@ yacl_cc_library(
hdrs = ["mpfss.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:aligned_vector",
"//yacl/base:dynamic_bitset",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/rand",
"//yacl/crypto/tools:crhash",
"//yacl/kernel/algorithms:gywz_ote",
Expand Down Expand Up @@ -348,10 +348,10 @@ yacl_cc_library(
hdrs = ["base_vole.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:aligned_vector",
"//yacl/base:dynamic_bitset",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/rand",
"//yacl/kernel/algorithms:softspoken_ote",
"//yacl/kernel/type:ot_store_utils",
Expand Down Expand Up @@ -379,10 +379,10 @@ yacl_cc_library(
hdrs = ["mp_vole.h"],
copts = AES_COPT_FLAGS,
deps = [
"//yacl/base:secparam",
"//yacl/base:aligned_vector",
"//yacl/base:dynamic_bitset",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/crypto/hash:hash_utils",
"//yacl/crypto/rand",
"//yacl/crypto/tools:common",
Expand Down Expand Up @@ -415,10 +415,10 @@ yacl_cc_library(
deps = [
":base_vole",
":mp_vole",
"//yacl/base:secparam",
"//yacl/base:aligned_vector",
"//yacl/base:dynamic_bitset",
"//yacl/base:int128",
"//yacl/base:secparam",
"//yacl/kernel/algorithms:softspoken_ote",
"//yacl/kernel/code:code_interface",
"//yacl/kernel/code:ea_code",
Expand Down

0 comments on commit 4004172

Please sign in to comment.