Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


oracle.security.crypto.core
Class RSA

java.lang.Object
  extended byoracle.security.crypto.core.RSA


public final class RSA
extends java.lang.Object

The raw RSA algorithm cryptographic operation.

For more information about RSA, see Schneier, "Applied Cryptography" or another general cryptograhy reference.


Constructor Summary
RSA()
Creates a new RSA instance.

Method Summary
java.math.BigInteger performOp(java.math.BigInteger m)
Performs the basic RSA encryption/decryption operation on a number using the current key.
void setKey(RSAKey key)
Sets the key to the given RSA key.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

RSA

public RSA()
Creates a new RSA instance. The setKey method must be called before encrypting or decrypting.

Method Detail

setKey

public void setKey(RSAKey key)
Sets the key to the given RSA key. The key may be either a public or a private key.
Parameters:
key - the key

performOp

public java.math.BigInteger performOp(java.math.BigInteger m)
Performs the basic RSA encryption/decryption operation on a number using the current key.
Parameters:
m - The value to encrypt or decrypt.
Returns:
The encrypted or decrypted value.

Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


Copyright © 2005 , Oracle. All rights reserved.