Ver a proveniência

PQ client HRSS and SIDH

master
Kris há 5 anos
ascendente
cometimento
d247e76edc
9 ficheiros alterados com 42 adições e 1 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

@@ -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}


+ 15
- 0
images/pq-connect-amd64-gcc/bin/bssl_client Ver ficheiro

@@ -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 Ver ficheiro

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



+ 4
- 1
images/pq-gcc/Dockerfile Ver ficheiro

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

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 Ver ficheiro

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




Carregando…
Cancelar
Guardar