public class LunaParameterSpecOAEP
extends java.lang.Object
implements java.security.spec.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(java.lang.String hashAlg,
int mgfType) |
LunaParameterSpecOAEP(java.lang.String hashAlg,
int mgfType,
int sourceType,
byte[] sourceData)
Generic constructor for a LunaParameterOAEP object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.lang.String hashAlg, int mgfType)
public LunaParameterSpecOAEP(java.lang.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 java.lang.String GetHashMechType()
public int GetMgfType()
public int GetSourceType()
public byte[] GetSourceData()
Copyright 2014-2018 SafeNet. All rights reserved.