Skip to content

Commit

Permalink
liboqs: Initial integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-brough committed Aug 27, 2024
1 parent 12c6cd0 commit 5742927
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/liboqs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2024 Google LLC
#
# 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.
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y cmake ninja-build openssl
# TODO(silvergasp): Switch this back to mainline liboqs once fuzzer's merged.
RUN git clone --depth 1 https://github.com/silvergasp/liboqs.git liboqs
WORKDIR liboqs
COPY build.sh $SRC/
22 changes: 22 additions & 0 deletions projects/liboqs/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash -eu
# Copyright 2024 Google LLC
#
# 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.
#
################################################################################

mkdir build
cd build
cmake -GNinja .. -DOQS_BUILD_FUZZ_TESTS=ON
ninja -j$(nproc)
cp tests/fuzz_* $OUT/
6 changes: 6 additions & 0 deletions projects/liboqs/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
homepage: "https://openquantumsafe.org/"
language: c
primary_contact: ""
auto_ccs:
- [email protected]
main_repo: "https://github.com/open-quantum-safe/liboqs.git"

0 comments on commit 5742927

Please sign in to comment.