diff options
Diffstat (limited to 'meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.2.bb')
| -rw-r--r-- | meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.2.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.2.bb b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.2.bb new file mode 100644 index 0000000000..4c42b77490 --- /dev/null +++ b/meta-oe/recipes-crypto/leancrypto/leancrypto_1.7.2.bb | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | SUMMARY = "Lean cryptographic library with PQC-resistant algorithms" | ||
| 2 | DESCRIPTION = "leancrypto is a cryptographic library that exclusively contains \ | ||
| 3 | PQC-resistant cryptographic algorithms. It is lean, has minimal dependencies, \ | ||
| 4 | supports stack-only operation and provides optimized implementations for \ | ||
| 5 | ML-KEM (Kyber), ML-DSA (Dilithium), SLH-DSA (Sphincs+) and many more" | ||
| 6 | HOMEPAGE = "https://leancrypto.org" | ||
| 7 | LICENSE = "BSD-3-Clause | GPL-2.0-only" | ||
| 8 | LIC_FILES_CHKSUM = " \ | ||
| 9 | file://LICENSE;md5=4cc9ea7ae2518fb4fb0bbd9d1a60cbf4 \ | ||
| 10 | file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \ | ||
| 11 | file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \ | ||
| 12 | " | ||
| 13 | SECTION = "libs" | ||
| 14 | SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https;tag=v${PV} \ | ||
| 15 | file://leancrypto-tests.sh \ | ||
| 16 | " | ||
| 17 | SRCREV = "8a3e942baa3388ec9597c35005264ef9aefbf97c" | ||
| 18 | |||
| 19 | inherit pkgconfig meson | ||
| 20 | |||
| 21 | CVE_STATUS[CVE-2026-34610] = "fixed-version: fixed since v1.7.1" | ||
| 22 | |||
| 23 | EXTRA_OEMESON = "-Dstrip=false" | ||
| 24 | TARGET_LDFLAGS:append = " ${DEBUG_PREFIX_MAP}" | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "secure-exec apps tests" | ||
| 27 | PACKAGECONFIG[apps] = "-Dapps=enabled,-Dapps=disabled" | ||
| 28 | PACKAGECONFIG[small-stack] = "-Dsmall_stack=enabled,-Dsmall_stack=disabled" | ||
| 29 | PACKAGECONFIG[no-asm] = "-Ddisable-asm=true,-Ddisable-asm=false" | ||
| 30 | PACKAGECONFIG[efi] = "-Defi=enabled,-Defi=disabled" | ||
| 31 | PACKAGECONFIG[secure-exec] = "-Dsecure_execution=enabled,-Dsecure_execution=disabled" | ||
| 32 | PACKAGECONFIG[tests] = "-Dtests=enabled,-Dtests=disabled" | ||
| 33 | |||
| 34 | do_install:append () { | ||
| 35 | if ${@bb.utils.contains('PACKAGECONFIG', 'tests', 'true', 'false', d)}; then | ||
| 36 | install -d ${D}${libexecdir}/leancrypto/tests | ||
| 37 | for t in $(find ${B} -maxdepth 3 -type f -executable \( -name '*_tester*' -o -name '*_test' \)); do | ||
| 38 | basename=$(basename "$t") | ||
| 39 | install -m 0755 "$t" ${D}${libexecdir}/leancrypto/tests/leancrypto_${basename} | ||
| 40 | done | ||
| 41 | install -d ${D}${bindir} | ||
| 42 | install -m 0755 ${UNPACKDIR}/leancrypto-tests.sh ${D}${bindir}/leancrypto-tests | ||
| 43 | fi | ||
| 44 | } | ||
| 45 | |||
| 46 | PACKAGES =+ "${PN}-tests ${PN}-apps" | ||
| 47 | |||
| 48 | RDEPENDS:${PN}-apps += "${PN}" | ||
| 49 | FILES:${PN}-apps = "${bindir}/lc_* \ | ||
| 50 | ${libexecdir}/leancrypto \ | ||
| 51 | " | ||
| 52 | RDEPENDS:${PN}-tests += "${PN}" | ||
| 53 | FILES:${PN}-tests = "${bindir}/leancrypto-tests \ | ||
| 54 | ${libexecdir}/leancrypto/tests \ | ||
| 55 | " | ||
| 56 | |||
| 57 | BBCLASSEXTEND = "native nativesdk" | ||
