Browse Source

PQ client HRSS and SIDH

master
Kris 5 years ago
parent
commit
d247e76edc
9 changed files with 42 additions and 1 deletions
  1. +8
    -0
      images/pq-connect-amd64-gcc/Dockerfile
  2. +8
    -0
      images/pq-connect-amd64-gcc/Makefile
  3. BIN
     
  4. +15
    -0
      images/pq-connect-amd64-gcc/bin/bssl_client
  5. +4
    -0
      images/pq-connect-amd64-gcc/req.txt
  6. +4
    -1
      images/pq-gcc/Dockerfile
  7. +3
    -0
      images/pq-gcc/Makefile
  8. BIN
     
  9. BIN
     

+ 8
- 0
images/pq-connect-amd64-gcc/Dockerfile View File

@@ -0,0 +1,8 @@
FROM buildpack-deps

EXPOSE 443

ADD bin/bssl /bin
ADD bin/bssl_client /
ADD req.txt /
CMD [ "/bssl_client" ]

+ 8
- 0
images/pq-connect-amd64-gcc/Makefile View File

@@ -0,0 +1,8 @@
NAME=pq-gcc-amd64-client
build:
docker build -t ${NAME} .
run:
docker run --detach --restart always --name ${NAME} ${NAME}

restart:
docker restart ${NAME}

BIN
View File


+ 15
- 0
images/pq-connect-amd64-gcc/bin/bssl_client View File

@@ -0,0 +1,15 @@
#!/bin/bash

COUNT=0
while [ 1 ]; do
bssl client -curves CECPQ2 -connect www.cloudflare.com -server-name www.cloudflare.com < /req.txt
bssl client -curves X25519-SIDHp503 -connect www.cloudflare.com -server-name www.cloudflare.com < /req.txt
bssl client -curves P-521 -connect www.cloudflare.com -server-name www.cloudflare.com < /req.txt
COUNT=$((COUNT + 1))
if [ $COUNT -eq 1000 ]; then
COUNT=0
echo "SLEEPING"
sleep 1
fi
done


+ 4
- 0
images/pq-connect-amd64-gcc/req.txt View File

@@ -0,0 +1,4 @@
GET / HTTP/1.0
Host: www.cloudflare.com



+ 4
- 1
images/pq-gcc/Dockerfile View File

@@ -3,4 +3,7 @@ FROM buildpack-deps
EXPOSE 443 EXPOSE 443


ADD bin/bssl / ADD bin/bssl /
CMD [ "./bssl", "server", "-curves", "X25519:P-256:X25519-SIDHp503", "-accept", "443", "-loop", "-www" ]
CMD mkdir certs
ADD certs/privkey.pem certs/
ADD certs/fullchain.pem certs/
CMD [ "./bssl", "server", "-curves", "CECPQ2:X25519-SIDHp503:X25519:P-256:P-384:P-224:P-521", "-accept", "443", "-loop", "-www", "-cert", "certs/fullchain.pem", "-key", "certs/privkey.pem" ]

+ 3
- 0
images/pq-gcc/Makefile View File

@@ -1,6 +1,9 @@
NAME=pq-gcc-amd64 NAME=pq-gcc-amd64
PORT=50601 PORT=50601
build: build:
mkdir -p certs
cp ../../cert/fullchain.pem certs/
cp ../../cert/privkey.pem certs/
docker build -t ${NAME} . docker build -t ${NAME} .
run: run:
docker run --detach --restart always --name ${NAME} -p ${PORT}:443 ${NAME} docker run --detach --restart always --name ${NAME} -p ${PORT}:443 ${NAME}


BIN
View File


BIN
View File


Loading…
Cancel
Save