Language

IkeSaProposal.Builder.AddEncryptionAlgorithm(Int32, Int32) Method

Definition

Adds an encryption algorithm with a specific key length to the SA proposal being built.

[Android.Runtime.Register("addEncryptionAlgorithm", "(II)Landroid/net/ipsec/ike/IkeSaProposal$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSaProposal.Builder AddEncryptionAlgorithm(int algorithm, int keyLength);
[<Android.Runtime.Register("addEncryptionAlgorithm", "(II)Landroid/net/ipsec/ike/IkeSaProposal$Builder;", "", ApiSince=31)>]
member this.AddEncryptionAlgorithm : int * int -> Android.Net.IpSec.Ike.IkeSaProposal.Builder

Parameters

algorithm
Int32

encryption algorithm to add to IkeSaProposal. Value is one of the following: SaProposal.ENCRYPTION_ALGORITHM_3DES; SaProposal.ENCRYPTION_ALGORITHM_AES_CBC; SaProposal.ENCRYPTION_ALGORITHM_AES_CTR; SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_8; SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_12; SaProposal.ENCRYPTION_ALGORITHM_AES_GCM_16; SaProposal.ENCRYPTION_ALGORITHM_CHACHA20_POLY1305

keyLength
Int32

key length of algorithm. For algorithms that have fixed key length (e.g. 3DES) only SaProposal.KEY_LEN_UNUSED is allowed.

Returns

Builder of IkeSaProposal. This value cannot be null.

Attributes

Remarks

Adds an encryption algorithm with a specific key length to the SA proposal being built.

Android reference for android.net.ipsec.ike.IkeSaProposal.Builder.addEncryptionAlgorithm.

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