다음을 통해 공유


ChaCha20ParameterSpec(Byte[], Int32) Constructor

Definition

Constructs a parameter set for ChaCha20 from the given nonce and counter.

[Android.Runtime.Register(".ctor", "([BI)V", "", ApiSince=35)]
public ChaCha20ParameterSpec (byte[]? nonce, int counter);
[<Android.Runtime.Register(".ctor", "([BI)V", "", ApiSince=35)>]
new Javax.Crypto.Spec.ChaCha20ParameterSpec : byte[] * int -> Javax.Crypto.Spec.ChaCha20ParameterSpec

Parameters

nonce
Byte[]

a 12-byte nonce value

counter
Int32

the initial counter value

Attributes

Remarks

Constructs a parameter set for ChaCha20 from the given nonce and counter.

Java documentation for javax.crypto.spec.ChaCha20ParameterSpec.ChaCha20ParameterSpec(byte[], int).

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