KeyGenParameterSpec.Builder.SetBlockModes(String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定在加密/解密時可使用金鑰的區塊模式集合(例如 GCM、CBC)。
[Android.Runtime.Register("setBlockModes", "([Ljava/lang/String;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetBlockModes(params string[]? blockModes);
[<Android.Runtime.Register("setBlockModes", "([Ljava/lang/String;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)>]
member this.SetBlockModes : string[] -> Android.Security.Keystore.KeyGenParameterSpec.Builder
參數
- blockModes
- String[]
價值屬於以下之一:KeyProperties.BLOCK_MODE_ECB;KeyProperties.BLOCK_MODE_CBC;KeyProperties.BLOCK_MODE_CTR;KeyProperties.BLOCK_MODE_GCM
傳回
- 屬性
備註
設定在加密/解密時可使用金鑰的區塊模式集合(例如 GCM、CBC)。 嘗試將金鑰用於任何其他區塊模式都會被拒絕。
這必須針對對稱加密/解密金鑰指定。
請參考KeyProperties.BLOCK_MODE常數。
Android 參考資料。android.security.keystore.KeyGenParameterSpec.Builder.setBlockModes
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。