mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 17:28:28 +04:00
The host apk signs with LibreSSL, which uses a random ECDSA nonce. A package that is signed again has different bytes and often a different size, even if its content did not change. The rootfs records the package size in /lib/apk/db/installed, so a rebuild of one package changes all images. Add a patch that derives the nonce as specified in RFC 6979. Signed packages and images are now identical after a rebuild. Signed-off-by: John Crispin <john@phrozen.org>