Udostępnij za pośrednictwem


RC5ParameterSpec Constructors

Definition

Overloads

RC5ParameterSpec(IntPtr, JniHandleOwnership)

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

RC5ParameterSpec(Int32, Int32, Int32)

Constructs a parameter set for RC5 from the given version, number of rounds and word size (in bits).

RC5ParameterSpec(Int32, Int32, Int32, Byte[])

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

RC5ParameterSpec(Int32, Int32, Int32, Byte[], Int32)

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

RC5ParameterSpec(IntPtr, JniHandleOwnership)

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

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

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

RC5ParameterSpec(Int32, Int32, Int32)

Constructs a parameter set for RC5 from the given version, number of rounds and word size (in bits).

[Android.Runtime.Register(".ctor", "(III)V", "")]
public RC5ParameterSpec (int version, int rounds, int wordSize);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
new Javax.Crypto.Spec.RC5ParameterSpec : int * int * int -> Javax.Crypto.Spec.RC5ParameterSpec

Parameters

version
Int32

the version.

rounds
Int32

the number of rounds.

wordSize
Int32

the word size in bits.

Attributes

Remarks

Constructs a parameter set for RC5 from the given version, number of rounds and word size (in bits).

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

RC5ParameterSpec(Int32, Int32, Int32, Byte[])

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

[Android.Runtime.Register(".ctor", "(III[B)V", "")]
public RC5ParameterSpec (int version, int rounds, int wordSize, byte[]? iv);
[<Android.Runtime.Register(".ctor", "(III[B)V", "")>]
new Javax.Crypto.Spec.RC5ParameterSpec : int * int * int * byte[] -> Javax.Crypto.Spec.RC5ParameterSpec

Parameters

version
Int32

the version.

rounds
Int32

the number of rounds.

wordSize
Int32

the word size in bits.

iv
Byte[]

the buffer with the IV. The first 2*(wordSize/8) bytes of the buffer are copied to protect against subsequent modification.

Attributes

Exceptions

if the initialization vector is null or shorter than 2 * (wordSize / 8).

Remarks

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

Note that the size of the IV (block size) must be twice the word size. The bytes that constitute the IV are those between iv[0] and iv[2*(wordSize/8)-1] inclusive.

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

RC5ParameterSpec(Int32, Int32, Int32, Byte[], Int32)

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

[Android.Runtime.Register(".ctor", "(III[BI)V", "")]
public RC5ParameterSpec (int version, int rounds, int wordSize, byte[]? iv, int offset);
[<Android.Runtime.Register(".ctor", "(III[BI)V", "")>]
new Javax.Crypto.Spec.RC5ParameterSpec : int * int * int * byte[] * int -> Javax.Crypto.Spec.RC5ParameterSpec

Parameters

version
Int32

the version.

rounds
Int32

the number of rounds.

wordSize
Int32

the word size in bits.

iv
Byte[]

the buffer with the IV. The first 2*(wordSize/8) 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.

Attributes

Exceptions

if the initialization vector is null of shorter than offset + (2 * (wordSize / 8)).

if offset is negative.

Remarks

Constructs a parameter set for RC5 from the given version, number of rounds, word size (in bits), and IV.

The IV is taken from iv, starting at offset inclusive. Note that the size of the IV (block size), starting at offset inclusive, must be twice the word size. The bytes that constitute the IV are those between iv[offset] and iv[offset+2*(wordSize/8)-1] inclusive.

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