語言

KeyGenParameterSpec.IsRandomizedEncryptionRequired 屬性

定義

如果使用此金鑰加密,則返回 true 必須足夠隨機化,以每次產生相同明文的不同密文。

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

屬性值

屬性

備註

如果使用此金鑰加密,則返回 true 必須足夠隨機化,以每次產生相同明文的不同密文。 所需的正式密碼學性質是在<選擇明文攻擊(IND-CPA)</em> 下具有 em>不可區分性。 此特性重要,因為它能減輕密文可能洩漏明文資訊的多種弱點。 例如,若某明文總是產生相同的密文,攻擊者可能會看到重複的密文,並推斷出明文的某些內容。

Java 文件 android.security.keystore.KeyGenParameterSpec.isRandomizedEncryptionRequired()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於