IT. Expert System.

Android Reference

RC5ParameterSpec


javax.crypto.spec

Class RC5ParameterSpec

    • Constructor Summary

      Constructors
      Constructor and Description
      RC5ParameterSpec(int version, int rounds, int wordSize)
      Creates a new RC5ParameterSpec instance with the specified version, round count an word size (in bits).
      RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv)
      Creates a new RC5ParameterSpec instance with the specified version, round count, word size (in bits) and an initialization vector.
      RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset)
      Creates a new RC5ParameterSpec instance with the specified version, round count, wordSize (in bits), an initialization vector and an offset.
    • Constructor Detail

      • RC5ParameterSpec

        public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize)
        Creates a new RC5ParameterSpec instance with the specified version, round count an word size (in bits).
        Parameters:
        version - the version.
        rounds - the round count.
        wordSize - the word size (in bits).
      • RC5ParameterSpec

        public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize,
                        byte[] iv)
        Creates a new RC5ParameterSpec instance with the specified version, round count, word size (in bits) and an initialization vector.

        The size of the initialization vector must be at least 2 * (wordSize / 8) bytes which are copied to protect them against modification.

        Parameters:
        version - the version.
        rounds - the round count.
        wordSize - the word size (in bits).
        iv - the initialization vector.
        Throws:
        IllegalArgumentException - if the initialization vector is null or shorter than 2 * (wordSize / 8).
      • RC5ParameterSpec

        public RC5ParameterSpec(int version,
                        int rounds,
                        int wordSize,
                        byte[] iv,
                        int offset)
        Creates a new RC5ParameterSpec instance with the specified version, round count, wordSize (in bits), an initialization vector and an offset.

        The size of the initialization vector must be at least offset + (2 * (wordSize / 8)) bytes. The bytes starting at offset are copied to protect them against modification.

        Parameters:
        version - the version.
        rounds - the round count.
        wordSize - the word size (in bits).
        iv - the initialization vector.
        offset - the offset in the initialization vector.
        Throws:
        IllegalArgumentException - if the initialization vector is null of shorter than offset + (2 * (wordSize / 8)).
        ArrayIndexOutOfBoundsException - if offset is negative.
    • Method Detail

      • getVersion

        public int getVersion()
        Returns the version.
        Returns:
        the version.
      • getRounds

        public int getRounds()
        Returns the round count.
        Returns:
        the round count.
      • getWordSize

        public int getWordSize()
        Returns the word size (in bits).
        Returns:
        the word size (in bits).
      • getIV

        public byte[] getIV()
        Returns a copy of the initialization vector.
        Returns:
        a copy of the initialization vector, or null if none specified.
      • equals

        public boolean equals(Object obj)
        Compares the specified object with this RC5ParameterSpec instance.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare.
        Returns:
        true if version, round count, word size and initializaion vector of both objects are equal, otherwise false.
        See Also:
        Object.hashCode()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3138 / . Delta: 0.04416 с