All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.KeyWrapper Maven / Gradle / Ivy

Go to download

The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.

There is a newer version: 2.0.0
Show newest version
package org.bouncycastle.crypto;

/**
 * Base interface for a key wrapper.
 *
 * @param  the parameter type for the wrapper.
 */
public interface KeyWrapper
{
    /**
     * Return the parameters for this wrapper.
     *
     * @return the wrapper's parameters.
     */
    T getParameters();

    /**
     * Return the wrapped version of a key byte encoding.
     *
     * @param in input data array.
     * @param inOff  offset into data array key data starts at.
     * @param inLen  length of key data.
     * @return the wrapped encoding of the key.
     * @throws PlainInputProcessingException if the passed in input cannot be processed.
     */
    byte[] wrap(byte[] in, int inOff, int inLen)
        throws PlainInputProcessingException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy