Udostępnij za pośrednictwem


IvParameterSpec Constructors

Definition

Overloads

IvParameterSpec(Byte[])

Creates an IvParameterSpec object using the bytes in iv as the IV.

IvParameterSpec(IntPtr, JniHandleOwnership)

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

IvParameterSpec(Byte[], Int32, Int32)

Creates an IvParameterSpec object using the first len bytes in iv, beginning at offset inclusive, as the IV.

IvParameterSpec(Byte[])

Creates an IvParameterSpec object using the bytes in iv as the IV.

[Android.Runtime.Register(".ctor", "([B)V", "")]
public IvParameterSpec (byte[]? iv);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Javax.Crypto.Spec.IvParameterSpec : byte[] -> Javax.Crypto.Spec.IvParameterSpec

Parameters

iv
Byte[]

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

Attributes

Exceptions

if the specified buffer is null.

Remarks

Creates an IvParameterSpec object using the bytes in iv as the IV.

Java documentation for javax.crypto.spec.IvParameterSpec.IvParameterSpec(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

IvParameterSpec(IntPtr, JniHandleOwnership)

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

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

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

IvParameterSpec(Byte[], Int32, Int32)

Creates an IvParameterSpec object using the first len bytes in iv, beginning at offset inclusive, as the IV.

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

Parameters

iv
Byte[]

the buffer with the IV. The first len bytes of the buffer beginning at offset inclusive are copied to protect against subsequent modification.

offset
Int32

the offset in iv where the IV starts.

len
Int32

the number of IV bytes.

Attributes

Exceptions

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

if offset or byteCount are negative.

Remarks

Creates an IvParameterSpec object using the first len bytes in iv, beginning at offset inclusive, as the IV.

The bytes that constitute the IV are those between iv[offset] and iv[offset+len-1] inclusive.

Java documentation for javax.crypto.spec.IvParameterSpec.IvParameterSpec(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