Comment 5 for bug 2044852

Revision history for this message
Lena Voytek (lvoytek) wrote :

Thanks for the patch Tobias! I created a PPA to test it here: https://launchpad.net/~lvoytek/+archive/ubuntu/libgcrypt-sha3-test

I confirmed it works by running the following:

# lxc launch ubuntu:jammy test-libgcrypt-jammy
# lxc shell test-libgcrypt-jammy

# add-apt-repository ppa:lvoytek/libgcrypt-sha3-test
# apt update && apt dist-upgrade -y
# apt install wget gcc libgcrypt20-dev -y
# wget https://bugs.launchpad.net/ubuntu/+source/libgcrypt20/+bug/2044852/+attachment/5723975/+files/hashtest.c
# cc -o hashtest hashtest.c -lgcrypt
# ./hashtest

Overall the patch looks good, I'd just recommend using a DEP-3 header to show the origin of the change, etc for easy access later