Skip to content

Instantly share code, notes, and snippets.

@h-yamamo
Last active February 8, 2023 06:55
Show Gist options
  • Save h-yamamo/aea11d6cdcb0bb93a499d4846d2dd202 to your computer and use it in GitHub Desktop.
Save h-yamamo/aea11d6cdcb0bb93a499d4846d2dd202 to your computer and use it in GitHub Desktop.
X448, X25519 and ChaCha20-Poly1305 addition to openssl-1.0.2

Support X448, X25519 and ChaCha20-Poly1305 to openssl-1.0.2 for debian/ubuntu

For applications that can not use openssl-1.1, it supports DJB's cryptographic functions for openssl-1.0.2. And supports Camellia-GCM (RFC 6367).

How to build

  • Required packages: packaging-dev, lzip / Preparation: sudo apt-get build-dep openssl or openssl1.0

Debian 9 (stretch)

(# in some directory)
git clone -b stretch --depth 1 https://gist.github.com/h-yamamo/aea11d6cdcb0bb93a499d4846d2dd202
apt-get -d source openssl1.0
tar xf openssl1.0_1.0.2u.orig.tar.gz
cd openssl-1.0.2u
tar xf ../openssl1.0_1.0.2u-1~deb9u7.debian.tar.xz
tar xvf ../aea11d6cdcb0bb93a499d4846d2dd202/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Ubuntu 16.04 LTS (xenial)

(# in some directory)
git clone -b xenial --depth 1 https://gist.github.com/h-yamamo/aea11d6cdcb0bb93a499d4846d2dd202
apt-get -d source openssl
tar xf openssl_1.0.2g.orig.tar.gz
cd openssl-1.0.2g
tar xf ../openssl_1.0.2g-1ubuntu4.20.debian.tar.xz
tar xvf ../aea11d6cdcb0bb93a499d4846d2dd202/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us

Ubuntu 18.04 LTS (bionic)

(# in some directory)
git clone -b bionic --depth 1 https://gist.github.com/h-yamamo/aea11d6cdcb0bb93a499d4846d2dd202
apt-get -d source openssl1.0
tar xf openssl1.0_1.0.2n.orig.tar.gz
cd openssl-1.0.2n
tar xf ../openssl1.0_1.0.2n-1ubuntu5.11.debian.tar.xz
tar xvf ../aea11d6cdcb0bb93a499d4846d2dd202/debian.tlz
(# you may edit debian/changelog and/or something others)
debuild -uc -us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment