public class

RC2WrapEngine

extends Object
implements Wrapper
java.lang.Object
   ↳ org.bouncycastle.crypto.engines.RC2WrapEngine

Class Overview

Wrap keys according to RFC 3217 - RC2 mechanism

Summary

Public Constructors
RC2WrapEngine()
Public Methods
String getAlgorithmName()
Method getAlgorithmName
void init(boolean forWrapping, CipherParameters param)
Method init
byte[] unwrap(byte[] in, int inOff, int inLen)
Method unwrap
byte[] wrap(byte[] in, int inOff, int inLen)
Method wrap
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.Wrapper

Public Constructors

public RC2WrapEngine ()

Public Methods

public String getAlgorithmName ()

Method getAlgorithmName

Returns
  • the algorithm name "RC2".

public void init (boolean forWrapping, CipherParameters param)

Method init

public byte[] unwrap (byte[] in, int inOff, int inLen)

Method unwrap

Returns
  • the unwrapped bytes.

public byte[] wrap (byte[] in, int inOff, int inLen)

Method wrap

Returns
  • the wrapped bytes.