rpi-fw-crypto: can the dependency on GnuTLS be optional instead?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- c
- Lĩnh vực
- embedded-iot
Hướng nghiên cứu
Read the rpi-fw-crypto implementation, especially the sign command's hash_file() and the hmac command used by the initramfs; the issue names no source files or tests. Check how the binary links to GnuTLS and whether that dependency can be made optional for hmac. Done means hmac works without GnuTLS while sign retains its required hashing behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
The initramfs that rpi-image-gen builds with the rpi-idp-luks2 layer runs rpi-fw-crypto hmac to unlock LUKS2. Because rpi-fw-crypto links against GnuTLS, the initramfs also has to carry GnuTLS and its dependencies: 2.28 MB at zstd -19, close to 25% of my small initramfs test. GnuTLS is only used by sign (in hash_file()), but the binary won’t load without it, even for hmac.
I saw that #203 was closed because GnuTLS is used elsewhere in RPi OS. In my initramfs, though, rpi-fw-crypto appears to be its only user, in this particular configuration I am testing.
The use case I’m considering is reducing churn in the generated boot.img, which affects OTA transfer size where those matters. I suppose the counterargument is that I could simply pin the package versions instead of always pulling the latest via apt.
- Ngôn ngữ chính
- C
- Star
- 351
- Fork
- 103
- Merge trung bình
- 1 ngày 18 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của raspberrypi/utils
-
Compiler error (gcc-16.1.1) about vcgencmd with strncatCó thể đã có người làm @popcornmix đã nhận 33 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
raspberrypi/utils#197 · 1 bình luận ·
-
piolib: add Pico SDK 2 PIO APIĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
raspberrypi/utils#159 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
raspberrypi/utils#133 · 1 bình luận ·
-
irq support documentationĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
raspberrypi/utils#131 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
raspberrypi/utils#124 · 1 bình luận · 1 reaction ·
Tất cả issue của raspberrypi/utils
Issue tương tự
-
[compiler-rt] Rtsan-aarch64-NoInstTest: error: no such file or directory: 'NOTFOUND' (libatomic)Đang mởbuild-problem compiler-rt:rtsan platform:linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
llvm/llvm-project#239039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
component:obi contribfest go test
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 83/100
open-telemetry/opentelemetry-ebpf-instrumentation#4143 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
opcache: smm_shared_globals left pointing to a dead stack frame when there is no SHM backendĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug :bug:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sonic-net/sonic-buildimage#30541 ·
Maintainer thường phản hồi trong vòng 1 ngày