Skip to content

Commit 825a108

Browse files
committed
Start using upstream liboqs branch that provides SQIsign integration
It'll probably be integrated into liboqs (the main branch) soonish. For now, let's start using the branch already. There is a risk that the branch disappears or is force-pushed to, in which case this build will fail. In that case, perhaps I should push my copy of the branch somewhere and/or update it otherwise.
1 parent fbee2b9 commit 825a108

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ RUN apt-get update -y
3030
RUN apt-get upgrade -y
3131
RUN apt-get install -y git build-essential libssl-dev cmake wget
3232
RUN apt-get install -y autoconf pkgconf libtool liburcu-dev libcap-dev libuv1-dev
33+
RUN apt-get install -y libgmp-dev
3334

3435
RUN wget https://github.com/openssl/openssl/releases/download/openssl-3.4.3/openssl-3.4.3.tar.gz && tar xzf openssl-3.4.3.tar.gz
3536
RUN echo "fa727ed1399a64e754030a033435003991aee36bda9a5b080995cb2ac5cf7f37 openssl-3.4.3.tar.gz" | sha256sum -c -
3637
RUN cd openssl-3.4.3 && ./Configure --openssldir=/opt/openssl --prefix=/opt/openssl && make -j$(nproc) && make install
3738

38-
RUN git clone https://github.com/SIDN/liboqs
39+
RUN git clone https://github.com/open-quantum-safe/liboqs
3940
RUN git clone https://github.com/SIDN/oqs-provider
4041
RUN git clone https://github.com/SIDN/OQS-bind.git
4142

@@ -46,15 +47,15 @@ ENV liboqs_DIR="$OPENSSL_ROOT_DIR"
4647

4748
# Build liboqs and install in /app/liboqs-bin
4849

49-
RUN cd liboqs && git checkout 85e6927ca15f6a998dee7a0c3ceaf657432632ba # wip-sqisign
50+
RUN cd liboqs && git checkout 9686ba3704757f8fdcc191c754d34c79ad95f5cf # sqisign
5051
RUN cmake -S liboqs -B liboqs/build -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$liboqs_DIR
5152
RUN cmake --build liboqs/build --parallel $(nproc)
5253
RUN cmake --build liboqs/build --target install
5354
# Basic sanity test to verify if algorithm's integration in liboqs works
54-
RUN ./liboqs/build/tests/test_sig sqisign-1
55+
RUN ./liboqs/build/tests/test_sig SQIsign-lvl1
5556

5657
# Build liboqs to /app/oqsprovider-bin
57-
RUN cd oqs-provider && git checkout cedcdf34416faf7cc9495438ea06c6df264da444 # wip-sqisign
58+
RUN cd oqs-provider && git checkout 6d87d2994fada77f0e3408e0baf357b89932d149 # wip-sqisign
5859
RUN cd oqs-provider && cmake -S . -B _build
5960
RUN cd oqs-provider && cmake --build _build
6061
RUN cd oqs-provider && cmake --install _build
@@ -64,7 +65,7 @@ ENV OPENSSL_CONF=/opt/pqc-openssl.cnf
6465

6566
RUN (test -f /opt/openssl/lib64/ossl-modules/oqsprovider.so && sed -i /opt/pqc-openssl.cnf -e 's#/opt/openssl/lib#/opt/openssl/lib64#g') || :
6667

67-
RUN cd OQS-bind && git checkout acd32406f844bdc65d269eab0a9a23ed0024fd79 # sqisign
68+
RUN cd OQS-bind && git checkout bded5721f0b2929d875f57c756abbca4b357c097 # sidnlabs-pqc
6869
ADD patches/falcon-unpadded.patch /OQS-bind/falcon-unpadded.patch
6970
RUN cd OQS-bind && git apply --ignore-space-change --ignore-whitespace falcon-unpadded.patch
7071
RUN cd OQS-bind && autoreconf -fi

0 commit comments

Comments
 (0)