Udostępnij za pośrednictwem


KeyGenParameterSpec.IsRandomizedEncryptionRequired Property

Definition

Returns true if encryption using this key must be sufficiently randomized to produce different ciphertexts for the same plaintext every time.

public bool IsRandomizedEncryptionRequired { [Android.Runtime.Register("isRandomizedEncryptionRequired", "()Z", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isRandomizedEncryptionRequired", "()Z", "", ApiSince=23)>]
member this.IsRandomizedEncryptionRequired : bool

Property Value

Attributes

Remarks

Returns true if encryption using this key must be sufficiently randomized to produce different ciphertexts for the same plaintext every time. The formal cryptographic property being required is <em>indistinguishability under chosen-plaintext attack (IND-CPA)</em>. This property is important because it mitigates several classes of weaknesses due to which ciphertext may leak information about plaintext. For example, if a given plaintext always produces the same ciphertext, an attacker may see the repeated ciphertexts and be able to deduce something about the plaintext.

Java documentation for android.security.keystore.KeyGenParameterSpec.isRandomizedEncryptionRequired().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to