Bug 13027 - Use stronger hash in index file (Packages[.gz])
Summary: Use stronger hash in index file (Packages[.gz])
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-11-16 16:28 UTC by Haris Okanovic
Modified: 2018-12-20 23:58 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haris Okanovic 2018-11-16 16:28:13 UTC
Opkg index files (Packages and Packages.gz) presently include an MD5 checksum of each IPK. This checksum is used to validate package integrity after download, before upack/install occurs.

MD5 is considered broken by NIST as of ~2005. We should modify opkg to use a stronger hash algorithm, e.g. one of the "Secure Hash Standard" algorithms recommended by FIPS 180-4.

https://csrc.nist.gov/projects/hash-functions
https://csrc.nist.gov/publications/detail/fips/180/4/final
Comment 1 Alejandro del Castillo 2018-12-20 23:58:28 UTC
Opkg already has support for SHA256 via the configure option --enable-sha256.