public class LunaParameterSpecOAEP extends Object implements AlgorithmParameterSpec
Modifier and Type | Field and Description |
---|---|
static int |
MGF1_SHA1 |
static int |
MGF1_SHA224 |
static int |
MGF1_SHA256 |
static int |
MGF1_SHA384 |
static int |
MGF1_SHA512 |
static int |
mgfType_MGF1 |
static int |
sourceType_DATA_SPECIFIED |
Constructor and Description |
---|
LunaParameterSpecOAEP()
Default constructor for a LunaParameterSpecOAEP object.
|
LunaParameterSpecOAEP(String hashAlg,
int mgfType) |
LunaParameterSpecOAEP(String hashAlg,
int mgfType,
int sourceType,
byte[] sourceData)
Generic constructor for a LunaParameterOAEP object.
|
Modifier and Type | Method and Description |
---|---|
String |
GetHashMechType() |
int |
GetMgfType() |
byte[] |
GetSourceData() |
int |
GetSourceType() |
public static final int mgfType_MGF1
public static final int MGF1_SHA1
public static final int MGF1_SHA256
public static final int MGF1_SHA384
public static final int MGF1_SHA512
public static final int MGF1_SHA224
public static final int sourceType_DATA_SPECIFIED
public LunaParameterSpecOAEP()
public LunaParameterSpecOAEP(String hashAlg, int mgfType)
public LunaParameterSpecOAEP(String hashAlg, int mgfType, int sourceType, byte[] sourceData)
hashAlg
- The hash algorithm to use ("SHA1", "SHA224", "SHA256", "SHA384", or "SHA512")mgfType
- The mask generation function to use (must be mgfType_MGF1)sourceType
- The source type to use (must be sourceType_DATA_SPECIFIED)sourceData
- The source datapublic String GetHashMechType()
public int GetMgfType()
public int GetSourceType()
public byte[] GetSourceData()
Copyright 2014-2016 SafeNet Inc