Compartilhar via


GCMParameterSpec Constructors

Definition

Overloads

GCMParameterSpec(Int32, Byte[])

Constructs a GCMParameterSpec using the specified authentication tag bit-length and IV buffer.

GCMParameterSpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

GCMParameterSpec(Int32, Byte[], Int32, Int32)

Constructs a GCMParameterSpec object using the specified authentication tag bit-length and a subset of the specified buffer as the IV.

GCMParameterSpec(Int32, Byte[])

Constructs a GCMParameterSpec using the specified authentication tag bit-length and IV buffer.

[Android.Runtime.Register(".ctor", "(I[B)V", "")]
public GCMParameterSpec (int tLen, byte[]? src);
[<Android.Runtime.Register(".ctor", "(I[B)V", "")>]
new Javax.Crypto.Spec.GCMParameterSpec : int * byte[] -> Javax.Crypto.Spec.GCMParameterSpec

Parameters

tLen
Int32

the authentication tag length (in bits)

src
Byte[]

the IV source buffer. The contents of the buffer are copied to protect against subsequent modification.

Attributes

Exceptions

if the specified iv is null or offset and byteCount do not specify a valid chunk in the specified buffer.

Remarks

Constructs a GCMParameterSpec using the specified authentication tag bit-length and IV buffer.

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

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

GCMParameterSpec(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected GCMParameterSpec (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Crypto.Spec.GCMParameterSpec : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Crypto.Spec.GCMParameterSpec

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

GCMParameterSpec(Int32, Byte[], Int32, Int32)

Constructs a GCMParameterSpec object using the specified authentication tag bit-length and a subset of the specified buffer as the IV.

[Android.Runtime.Register(".ctor", "(I[BII)V", "")]
public GCMParameterSpec (int tLen, byte[]? src, int offset, int len);
[<Android.Runtime.Register(".ctor", "(I[BII)V", "")>]
new Javax.Crypto.Spec.GCMParameterSpec : int * byte[] * int * int -> Javax.Crypto.Spec.GCMParameterSpec

Parameters

tLen
Int32

the authentication tag length (in bits)

src
Byte[]

the IV source buffer. The contents of the buffer are copied to protect against subsequent modification.

offset
Int32

the offset in src where the IV starts

len
Int32

the number of IV bytes

Attributes

Exceptions

if the specified iv is null or offset and byteCount do not specify a valid chunk in the specified buffer.

if offset or byteCount are negative.

Remarks

Constructs a GCMParameterSpec object using the specified authentication tag bit-length and a subset of the specified buffer as the IV.

Java documentation for javax.crypto.spec.GCMParameterSpec.GCMParameterSpec(int, byte[], int, 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