다음을 통해 공유


IpSecAlgorithm.AuthCryptChacha20Poly1305 Field

Definition

ChaCha20-Poly1305 Authentication/Integrity + Encryption/Ciphering Algorithm.

[Android.Runtime.Register("AUTH_CRYPT_CHACHA20_POLY1305", ApiSince=31)]
public const string AuthCryptChacha20Poly1305;
[<Android.Runtime.Register("AUTH_CRYPT_CHACHA20_POLY1305", ApiSince=31)>]
val mutable AuthCryptChacha20Poly1305 : string

Field Value

Implements

Attributes

Remarks

ChaCha20-Poly1305 Authentication/Integrity + Encryption/Ciphering Algorithm.

Keys for this algorithm must be 288 bits in length.

As per RFC7634 (Section 2), keying material consists of a 256 bit key followed by a 32-bit salt. The salt is fixed per security association.

The only valid ICV (truncation) length is 128 bits.

This algorithm may be available on the device. Caller MUST check if it is supported before using it by calling #getSupportedAlgorithms() and checking if this algorithm is included in the returned algorithm set. The returned algorithm set will not change unless the device is rebooted. IllegalArgumentException will be thrown if this algorithm is requested on an unsupported device.

Java documentation for android.net.IpSecAlgorithm.AUTH_CRYPT_CHACHA20_POLY1305.

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