RSA "NoPadding" encryption is considered not secure but required by conscrypt to support TLS RSA-PSS signing algorithm

オープン
#1,201 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java

調査の方向性

まず issue #718 で参照されている再現手順から始め、次に Android Keystore のパディング要件と、RSA-PSS に対する TLS Certificate Request の処理を確認してください。期待される結果が Conscrypt の動作変更なのか、セキュリティ上の理由を説明するドキュメントなのかを判断してください;完了の条件は、ハンドシェイク失敗と NoPadding 要件に対する合意済みの解決策があることです。

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

説明

Describe the issue:

TLS handshake fails if client certificate keypair is created in Android Keystore which specifies OEAP encryption padding. setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_OEAP)

This happens when the server requests RSA-PSS signature algorithms in Certificate Request.
In order for the keypair to work with RSA-PSS signature, client needs to set 'RSA NoPadding' by setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE).

Refs:
https://developer.android.com/reference/android/security/keystore/KeyGenParameterSpec.Builder#setEncryptionPaddings(java.lang.String[])
https://developer.android.com/reference/android/security/keystore/KeyProperties#ENCRYPTION_PADDING_NONE

There are articles saying that RSA NoPadding shall not be used for encryption as it's not considered sure. Company SDL also forbids using RSA NoPadding encryption. Is there any way that we can explain why RSA NoPadding encryption is needed for TLS RSA-PSS signature and it's secure?

Sample code to reproduce the issue:
Please find the steps to create keypair in Android keystore in previously reported issue: SSL Handshake failure in Android 10 https://github.com/google/conscrypt/issues/718

主要言語
Java
スター
1.4k
フォーク
332
平均マージ
2日 56分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

google/conscrypt のほかの issue

google/conscrypt の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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