Zeroization policy for temporary variables stored on the stack

オープン
#38 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
rust
領域
security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
言語のデータがありません
スター
13
フォーク
4
平均マージ
41分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/meta のほかの issue

RustCrypto/meta の issue をすべて見る

似ている issue

Security の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。