public class RSAOAEPTestVectors
extends java.lang.Object
Created by amyodov on 19.04.16.
| Modifier and Type | Field | Description |
|---|---|---|
static byte[] |
C |
C, the RSA encryption of EM.
|
static byte[] |
d |
|
static byte[] |
DB |
|
static byte[] |
dbMask |
dbMask = MGF (seed, 107); should be tested
|
static java.math.BigInteger |
dInt |
|
static byte[] |
dP |
|
static java.math.BigInteger |
dPInt |
|
static byte[] |
dQ |
|
static java.math.BigInteger |
dQInt |
|
static byte[] |
e |
Public exponent
|
static java.math.BigInteger |
eInt |
|
static byte[] |
EM |
EM = maskedSeed∥maskedDB; should be tested
|
static byte[] |
m |
|
static byte[] |
M |
The message to be encrypted.
|
static byte[] |
maskedDB |
maskedDB = Db ⊕ dbMask; should be tested
|
static byte[] |
maskedSeed |
maskedSeed = seed ⊕ seedMask; should be tested
|
static java.math.BigInteger |
mInt |
m = (p - 1) * (q - 1); d ≡ e⁻¹ (mod m)
|
static byte[] |
n |
Modulus
|
static java.math.BigInteger |
nInt |
|
static byte[] |
p |
|
static java.math.BigInteger |
pInt |
|
static org.bouncycastle.crypto.params.RSAKeyParameters |
privParameters |
|
static org.bouncycastle.crypto.params.RSAKeyParameters |
pubParameters |
|
static byte[] |
q |
|
static java.math.BigInteger |
qInt |
|
static byte[] |
qInv |
The CRT coefficient.
|
static java.math.BigInteger |
qInvInt |
|
static byte[] |
seed |
The fake random data, used as a seed.
|
static byte[] |
seedMask |
seedMask = MGF (maskedDB, 20); should be tested
|
| Constructor | Description |
|---|---|
RSAOAEPTestVectors() |
| Modifier and Type | Method | Description |
|---|---|---|
@NonNull AbstractPrivateKey |
getPrivateKey() |
|
@NonNull AbstractPublicKey |
getPublicKey() |
|
@NonNull java.security.SecureRandom |
getRandSeed() |
public static final byte[] n
public static final java.math.BigInteger nInt
public static final byte[] e
public static final java.math.BigInteger eInt
public static final byte[] p
public static final byte[] q
public static final java.math.BigInteger pInt
public static final java.math.BigInteger qInt
public static final byte[] dP
public static final byte[] dQ
public static final java.math.BigInteger dPInt
public static final java.math.BigInteger dQInt
public static final byte[] qInv
public static final java.math.BigInteger qInvInt
public static final java.math.BigInteger mInt
public static final byte[] m
public static final java.math.BigInteger dInt
public static final byte[] d
public static final org.bouncycastle.crypto.params.RSAKeyParameters pubParameters
public static final org.bouncycastle.crypto.params.RSAKeyParameters privParameters
public static final byte[] M
public static final byte[] C
public static final byte[] seed
public static final byte[] DB
public static final byte[] dbMask
public static final byte[] maskedDB
public static final byte[] seedMask
public static final byte[] maskedSeed
public static final byte[] EM
public @NonNull java.security.SecureRandom getRandSeed()
public @NonNull AbstractPublicKey getPublicKey()
public @NonNull AbstractPrivateKey getPrivateKey()