1# Copyright 2019 Google LLC. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# Description: 16# Contains libraries for openssl big num operations. 17load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") 18load("@pip_deps//:requirements.bzl", "requirement") 19load("@rules_python//python:defs.bzl", "py_library", "py_test") 20 21package(default_visibility = ["//visibility:public"]) 22 23py_library( 24 name = "ec_cipher", 25 srcs = [ 26 "ec_cipher.py", 27 ], 28 deps = [ 29 "//private_join_and_compute/py/crypto_util:elliptic_curve", 30 "//private_join_and_compute/py/crypto_util:supported_hashes", 31 ], 32) 33 34py_test( 35 name = "ec_cipher_test", 36 size = "small", 37 srcs = ["ec_cipher_test.py"], 38 deps = [ 39 ":ec_cipher", 40 "//private_join_and_compute/py/crypto_util:supported_curves", 41 "//private_join_and_compute/py/crypto_util:supported_hashes", 42 ], 43) 44