Udostępnij za pośrednictwem


RC2ParameterSpec Constructors

Definition

Overloads

RC2ParameterSpec(Int32)

Constructs a parameter set for RC2 from the given effective key size (in bits).

RC2ParameterSpec(Int32, Byte[])

Constructs a parameter set for RC2 from the given effective key size (in bits) and an 8-byte IV.

RC2ParameterSpec(IntPtr, JniHandleOwnership)

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

RC2ParameterSpec(Int32, Byte[], Int32)

Constructs a parameter set for RC2 from the given effective key size (in bits) and IV.

RC2ParameterSpec(Int32)

Constructs a parameter set for RC2 from the given effective key size (in bits).

[Android.Runtime.Register(".ctor", "(I)V", "")]
public RC2ParameterSpec (int effectiveKeyBits);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Javax.Crypto.Spec.RC2ParameterSpec : int -> Javax.Crypto.Spec.RC2ParameterSpec

Parameters

effectiveKeyBits
Int32

the effective key size in bits.

Attributes

Remarks

Constructs a parameter set for RC2 from the given effective key size (in bits).

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

RC2ParameterSpec(Int32, Byte[])

Constructs a parameter set for RC2 from the given effective key size (in bits) and an 8-byte IV.

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

Parameters

effectiveKeyBits
Int32

the effective key size in bits.

iv
Byte[]

the buffer with the 8-byte IV. The first 8 bytes of the buffer are copied to protect against subsequent modification.

Attributes

Exceptions

if the initialization vector is null or shorter than 8 bytes.

Remarks

Constructs a parameter set for RC2 from the given effective key size (in bits) and an 8-byte IV.

The bytes that constitute the IV are those between iv[0] and iv[7] inclusive.

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

RC2ParameterSpec(IntPtr, JniHandleOwnership)

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

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

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

RC2ParameterSpec(Int32, Byte[], Int32)

Constructs a parameter set for RC2 from the given effective key size (in bits) and IV.

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

Parameters

effectiveKeyBits
Int32

the effective key size in bits.

iv
Byte[]

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

offset
Int32

the offset in iv where the 8-byte IV starts.

Attributes

Exceptions

if the initialization vector is null or starting at offset is shorter than 8 bytes.

Remarks

Constructs a parameter set for RC2 from the given effective key size (in bits) and IV.

The IV is taken from iv, starting at offset inclusive. The bytes that constitute the IV are those between iv[offset] and iv[offset+7] inclusive.

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