Tighten up CertificateSigningRequestParams.from_der() sig AlgorithmIdentifier params validation

Đang mở
#461 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cryptography

Hướng nghiên cứu

Start in CertificateSigningRequestParams::from_der() under the x509-parser feature, where SignatureAlgorithm::supports_oid is called on the signature algorithm OID. Read the x509-parser AlgorithmIdentifier parameters handling and the linked PR #459 discussion before deciding how NULL parameters should be enforced. Done means the parameters are checked for algorithms that require NULL and RSA-PSS parameters are handled explicitly, with tests covering both cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

next-major-release

When building a CertificateSigningRequestParams from CertificateSigningRequestDer with the x509-parser feature enabled we check SignatureAlgorithm::supports_oid(&sig_alg_oid) but this only compares by OID and doesn't consider the x509-parser AlgorithmIdentifier type's parameters. For many algorithms the parameters MUST be NULL and we should enforce that. For RSA-PSS support in particular we'll need to consider the explicit parameters beyond enforcing encoding.

See https://github.com/rustls/rcgen/pull/459#discussion_r4574500586

Ngôn ngữ chính
Rust
Star
516
Fork
160
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rustls/rcgen

Tất cả issue của rustls/rcgen

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.