| Package | com.hurlant.crypto.rsa |
| Class | public class RSAKey |
| Property | Defined by | ||
|---|---|---|---|
| coeff : BigInteger | RSAKey | ||
| d : BigInteger | RSAKey | ||
| dmp1 : BigInteger | RSAKey | ||
| dmq1 : BigInteger | RSAKey | ||
| e : int | RSAKey | ||
| n : BigInteger | RSAKey | ||
| p : BigInteger | RSAKey | ||
| q : BigInteger | RSAKey | ||
| Property | Defined by | ||
|---|---|---|---|
| canDecrypt : Boolean | RSAKey | ||
| canEncrypt : Boolean | RSAKey | ||
| Method | Defined by | ||
|---|---|---|---|
|
RSAKey(N:BigInteger, E:int, D:BigInteger = null, P:BigInteger = null, Q:BigInteger = null, DP:BigInteger = null, DQ:BigInteger = null, C:BigInteger = null)
| RSAKey | ||
|
decrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void
| RSAKey | ||
|
dispose():void
| RSAKey | ||
|
dump():String
| RSAKey | ||
|
encrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void
| RSAKey | ||
|
[static]
note: We should have a "nice" variant of this function that takes a callback,
and perform the computation is small fragments, to keep the web browser
usable.
| RSAKey | ||
|
getBlockSize():uint
| RSAKey | ||
|
parsePrivateKey(N:String, E:String, D:String, P:String = null, Q:String = null, DMP1:String = null, DMQ1:String = null, IQMP:String = null):RSAKey
[static]
| RSAKey | ||
|
parsePublicKey(N:String, E:String):RSAKey
[static]
| RSAKey | ||
|
rawpad(src:ByteArray, end:int, n:uint, type:uint = 0):ByteArray
Raw pad.
| RSAKey | ||
|
rawunpad(src:BigInteger, n:uint, type:uint = 0):ByteArray
| RSAKey | ||
|
sign(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void
| RSAKey | ||
|
toString():String
| RSAKey | ||
|
verify(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):void
| RSAKey | ||
| Method | Defined by | ||
|---|---|---|---|
|
[static]
| RSAKey | ||
| RSAKey | |||
| RSAKey | |||
| RSAKey | |||
| canDecrypt | property |
protected var canDecrypt:Boolean
| canEncrypt | property |
protected var canEncrypt:Boolean
| coeff | property |
public var coeff:BigInteger
| d | property |
public var d:BigInteger
| dmp1 | property |
public var dmp1:BigInteger
| dmq1 | property |
public var dmq1:BigInteger
| e | property |
public var e:int
| n | property |
public var n:BigInteger
| p | property |
public var p:BigInteger
| q | property |
public var q:BigInteger
| RSAKey | () | constructor |
public function RSAKey(N:BigInteger, E:int, D:BigInteger = null, P:BigInteger = null, Q:BigInteger = null, DP:BigInteger = null, DQ:BigInteger = null, C:BigInteger = null)Parameters
N:BigInteger |
|
E:int |
|
D:BigInteger (default = null) |
|
P:BigInteger (default = null) |
|
Q:BigInteger (default = null) |
|
DP:BigInteger (default = null) |
|
DQ:BigInteger (default = null) |
|
C:BigInteger (default = null) |
| bigRandom | () | method |
protected static function bigRandom(bits:int, rnd:Random):BigIntegerParameters
bits:int |
|
rnd:Random |
BigInteger |
| decrypt | () | method |
public function decrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):voidParameters
src:ByteArray |
|
dst:ByteArray |
|
length:uint |
|
pad:Function (default = null) |
| dispose | () | method |
public function dispose():void
| doPrivate | () | method |
| doPrivate2 | () | method |
| doPublic | () | method |
| dump | () | method |
public function dump():String
Returns
String |
| encrypt | () | method |
public function encrypt(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):voidParameters
src:ByteArray |
|
dst:ByteArray |
|
length:uint |
|
pad:Function (default = null) |
| generate | () | method |
public static function generate(B:uint, E:String):RSAKeynote: We should have a "nice" variant of this function that takes a callback, and perform the computation is small fragments, to keep the web browser usable.
ParametersB:uint |
|
E:String |
RSAKey —
a new random private key B bits long, using public expt E
|
| getBlockSize | () | method |
public function getBlockSize():uint
Returns
uint |
| parsePrivateKey | () | method |
public static function parsePrivateKey(N:String, E:String, D:String, P:String = null, Q:String = null, DMP1:String = null, DMQ1:String = null, IQMP:String = null):RSAKeyParameters
N:String |
|
E:String |
|
D:String |
|
P:String (default = null) |
|
Q:String (default = null) |
|
DMP1:String (default = null) |
|
DMQ1:String (default = null) |
|
IQMP:String (default = null) |
RSAKey |
| parsePublicKey | () | method |
public static function parsePublicKey(N:String, E:String):RSAKeyParameters
N:String |
|
E:String |
RSAKey |
| rawpad | () | method |
public function rawpad(src:ByteArray, end:int, n:uint, type:uint = 0):ByteArrayRaw pad.
Parameterssrc:ByteArray |
|
end:int |
|
n:uint |
|
type:uint (default = 0) |
ByteArray |
| rawunpad | () | method |
public function rawunpad(src:BigInteger, n:uint, type:uint = 0):ByteArrayParameters
src:BigInteger |
|
n:uint |
|
type:uint (default = 0) |
ByteArray |
| sign | () | method |
public function sign(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):voidParameters
src:ByteArray |
|
dst:ByteArray |
|
length:uint |
|
pad:Function (default = null) |
| toString | () | method |
public function toString():String
Returns
String |
| verify | () | method |
public function verify(src:ByteArray, dst:ByteArray, length:uint, pad:Function = null):voidParameters
src:ByteArray |
|
dst:ByteArray |
|
length:uint |
|
pad:Function (default = null) |