Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-04


oracle.security.crypto.core
Class RSA

java.lang.Object
  extended by oracle.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.

Skip navigation links

Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10696-04


Copyright © 2005, 2011 , Oracle. All rights reserved.