Zeroization policy for temporary variables stored on the stack

Đang mở
#38 5 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
security

Hướng nghiên cứu

Read the linked comment on RustCrypto/KEMs pull request #366 and compare the three proposed policies for stack temporaries. The issue names no files or tests; first determine how RustCrypto libraries currently use zeroize and zeroize_stack. Done means choosing and documenting a project policy for explicit zeroization of stack temporaries.

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

Mô tả

As noted in this comment it's unclear whether it's worth to explicitly zeroize temporaries stored on the stack. It's hard to do reliably and it prevents various optimizations (e.g. keeping the temporaries in registers) since zeroization is considered as a side effect by the compiler.

We have 3 options:

  1. Explicitly erase some temporaries on the case-by-case basis (e.g. large temporary buffers).
  2. Do not erase temporaries explicitly (it still may happen implicitly via Drop impls) and recommend to use zeroize::zeroize_stack in user code.
  3. Do not erase temporaries explicitly, but use zeroize::zeroize_stack in libraries using case-by-case judgment.
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
13
Fork
4
Merge trung bình
41 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 RustCrypto/meta

Tất cả issue của RustCrypto/meta

Issue tương tự

Thêm issue về Security

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.