Language

KeyProtection.Builder.SetEncryptionPaddings(String[]) メソッド

定義

暗号化/復号化時にキーを使用できる埋め込みスキームのセット (OAEPPadding、PKCS7Padding、NoPadding など) を設定します。

[Android.Runtime.Register("setEncryptionPaddings", "([Ljava/lang/String;)Landroid/security/keystore/KeyProtection$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyProtection.Builder SetEncryptionPaddings(params string[]? paddings);
[<Android.Runtime.Register("setEncryptionPaddings", "([Ljava/lang/String;)Landroid/security/keystore/KeyProtection$Builder;", "", ApiSince=23)>]
member this.SetEncryptionPaddings : string[] -> Android.Security.Keystore.KeyProtection.Builder

パラメーター

paddings
String[]

値は次のいずれかです: KeyProperties.ENCRYPTION_PADDING_NONE;KeyProperties.ENCRYPTION_PADDING_PKCS7;KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1;KeyProperties.ENCRYPTION_PADDING_RSA_OAEP

返品

属性

注釈

暗号化/復号化時にキーを使用できる埋め込みスキームのセット (OAEPPadding、PKCS7Padding、NoPadding など) を設定します。 キーを他の埋め込みスキームと共に使用しようとすると、拒否されます。

これは、暗号化/復号化に使用されるキーに対して指定する必要があります。

TLS/SSL サーバーがクライアントに対して自身を認証するために使用する RSA 秘密キーの場合、通常、パディング (KeyProperties.ENCRYPTION_PADDING_NONE) や PKCS#1 暗号化パディング (KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1) の使用を承認する必要があります。 これは、一部の暗号スイートでは RSA 暗号化解除が必要であり、一部のスタックではパディングを使用しない暗号化解除が要求されるのに対し、他のスタックは PKCS#1 パディングを要求するためです。

KeyProperties.ENCRYPTION_PADDING定数を参照してください。

android.security.keystore.KeyProtection.Builder.setEncryptionPaddingsの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象