Support CKA_PUBLIC_KEY_INFO
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- backend, cryptography
Hướng nghiên cứu
Start with the three CKA_PUBLIC_KEY_INFO TODO comments, including the one in src/lib/P11Objects.cpp, and the i2d_PUBKEY comment in src/lib/crypto/OSSLEDPublicKey.cpp. Read how public key attributes are currently retrieved and identify the existing tests for C_GetAttributeValue. Implementing the DER encoded SubjectPublicKeyInfo value is done when the attribute returns the expected encoding for each supported public key type.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
PKCS11 C_GetAttributeValue for CKA_PUBLIC_KEY_INFO returns with zero length.
This comment appears 3 times in the code: "// TODO: CKA_PUBLIC_KEY_INFO is accepted, but we do not calculate it."
one is here.
The comment: "// i2d_PUBKEY incorrectly does not const the key argument?!" appears here.
https://docs.openssl.org/3.0/man3/X509_PUBKEY_new/ says: "i2d_PUBKEY() encodes an EVP_PKEY structure using SubjectPublicKeyInfo". PKCS11 says: "The value of the CKA_PUBLIC_KEY_INFO attribute is the DER encoded value of SubjectPublicKeyInfo".
https://docs.openssl.org/3.0/man3/X509_PUBKEY_new/#description says: "i2d_PUBKEY() encodes an EVP_PKEY structure using SubjectPublicKeyInfo format."
This should be easy to implement, for a C++ programmer, and it would work on any type of pubkey.
The problems shows up in mods to OpenSC https://github.com/OpenSC/OpenSC/pull/3090 calling the softhsm2 pkcs11 module.
- Ngôn ngữ chính
- C++
- Star
- 1.1k
- Fork
- 434
- Merge trung bình
- 12 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 2
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 softhsm/SoftHSMv2
-
C_DigestKey digests a sensitive EC private key's CKA_VALUE: no check that the object is a secret keyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
Tất cả issue của softhsm/SoftHSMv2
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pocoproject/poco#5664 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
charmplusplus/charm#4210 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cp-algorithms/cp-algorithms#1748 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày