IT. Expert System.

Android Reference

RC2ParameterSpec


javax.crypto.spec

Class RC2ParameterSpec

    • Constructor Summary

      Constructors
      Constructor and Description
      RC2ParameterSpec(int effectiveKeyBits)
      Creates a new RC2ParameterSpec instance with the specified effective key length (in bits),
      RC2ParameterSpec(int effectiveKeyBits, byte[] iv)
      Creates a new RC2ParameterSpec instance with the specified effective key length (in bits) and initialization vector.
      RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset)
      Creates a new RC2ParameterSpec instance with the specified effective key length (in bits) and initialization vector.
    • Constructor Detail

      • RC2ParameterSpec

        public RC2ParameterSpec(int effectiveKeyBits)
        Creates a new RC2ParameterSpec instance with the specified effective key length (in bits),
        Parameters:
        effectiveKeyBits - the effective key length (in bits).
      • RC2ParameterSpec

        public RC2ParameterSpec(int effectiveKeyBits,
                        byte[] iv)
        Creates a new RC2ParameterSpec instance with the specified effective key length (in bits) and initialization vector.

        The size of the initialization vector must be at least 8 bytes which are copied to protect them against modification.

        Parameters:
        effectiveKeyBits - the effective key length (in bits).
        iv - the initialization vector.
        Throws:
        IllegalArgumentException - if the initialization vector is null or shorter than 8 bytes.
      • RC2ParameterSpec

        public RC2ParameterSpec(int effectiveKeyBits,
                        byte[] iv,
                        int offset)
        Creates a new RC2ParameterSpec instance with the specified effective key length (in bits) and initialization vector.

        The size of the initialization vector starting at offset must be at least 8 bytes which are copied to protect them against modification.

        Parameters:
        effectiveKeyBits - the effective key length (in bits).
        iv - the initialization vector.
        offset - the offset in the initialization vector to start at.
        Throws:
        IllegalArgumentException - if the initialization vector is null or starting at offset is shorter than 8 bytes.
    • Method Detail

      • getEffectiveKeyBits

        public int getEffectiveKeyBits()
        Returns the effective key length (in bits).
        Returns:
        the effective key length (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 to this RC2ParameterSpec instance.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare.
        Returns:
        true if the effective key length and the initialization 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: 900 / . Delta: 0.00630 с