Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Investigate possible opencryptoki regression w.r.t. stream cancellations

Đang mở
#233 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
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
cryptography, testing-qa

Hướng nghiên cứu

Start with tests.test_rsa.RSATests.test_verify_stream_interrupt_releases_operation and reproduce the failure against opencryptoki. Compare the behavior across the relevant upstream versions or changes to identify when stream cancellation stopped releasing the operation. Done means the regression is explained and the test passes again, or the upstream cause is documented.

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

Mô tả

Some time between April and now opencryptoki tests started failing with this error:

self = <tests.test_rsa.RSATests testMethod=test_verify_stream_interrupt_releases_operation>

    @requires(Mechanism.SHA512_RSA_PKCS)
    def test_verify_stream_interrupt_releases_operation(self):
        data = (
            b"I" * 16,
            b"N" * 16,
            b"P" * 16,
            b"U" * 16,
            b"T" * 10,
        )
    
        def _data_with_error():
            yield data[0]
            yield data[1]
            yield data[2]
            raise ValueError
    
        signature = self.private.sign(data)
    
        def attempt_verify():
            self.public.verify(_data_with_error(), signature)
    
        self.assertRaises(ValueError, attempt_verify)
        # ...try again
>       self.assertTrue(self.public.verify(data, signature))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Our code didn't change, so this is probably an upstream regression. To be investigated.

Ngôn ngữ chính
Python
Star
171
Fork
79
Merge trung bình
14 giờ 23 phút
Pull request đã merge (30 ngày)
1

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 pyauth/python-pkcs11

Tất cả issue của pyauth/python-pkcs11

Issue tương tự

Thêm issue về Python

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.