public class OAEPParameterSpec extends Object implements AlgorithmParameterSpec
rsaes OAEP参数::=序列{哈希算法[ 0 ] OAEP pssdigestalgorithms默认SHA1,maskgenalgorithm [ 1 ] pkcs1mgfalgorithms默认mgf1sha1,psourcealgorithm [ 2 ] pkcs1psourcealgorithms默认pspecifiedempty}哪里
论文pssdigestalgorithms algorithm-identifier::= {{零} | OID id-sha1参数{零} | OID id-sha256参数{零} | OID id-sha384参数{零}老id-sha512参数,…允许未来的扩展}pkcs1mgfalgorithms algorithm-identifier::= {{老id-mgf1参数OAEP pssdigestalgorithms },…允许未来的扩展}pkcs1psourcealgorithms algorithm-identifier::= {{老ID pspecified参数字符串},…允许未来的扩展}
注:本oaepparameterspec.default采用如下:消息摘要--“SHA-1”掩码生成函数(MGF)--“株抗体”参数mgf1parameterspec.sha1 MGF --来源-- psource.pspecified.default编码输入
MGF1ParameterSpec
,
PSource
Modifier and Type | Field and Description |
---|---|
static OAEPParameterSpec |
DEFAULT
所有的默认值的参数设置方案。
|
Constructor and Description |
---|
OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)
构造一个参数设置为OAEP填充所界定的PKCS 1标准#使用指定的消息摘要算法
mdName ,掩码生成函数算法
mgfName ,为掩模生成功能
mgfSpec 参数和源的编码输入P
pSrc 。
|
Modifier and Type | Method and Description |
---|---|
String |
getDigestAlgorithm()
返回消息摘要算法名称。
|
String |
getMGFAlgorithm()
返回掩码生成函数算法名。
|
AlgorithmParameterSpec |
getMGFParameters()
返回掩码生成函数的参数。
|
PSource |
getPSource()
返回编码输入页的源代码。
|
public static final OAEPParameterSpec DEFAULT
public OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)
mdName
,掩码生成函数算法
mgfName
,为掩模生成功能
mgfSpec
参数和源的编码输入P
pSrc
。
mdName
-消息摘要算法的名字。
mgfName
-掩模生成函数的算法名称。
mgfSpec
-掩模生成函数的参数。如果为空,则返回null将getmgfparameters()。
pSrc
-编码输入点源
NullPointerException
-如果
mdName
,
mgfName
,或
pSrc
是空的。
public String getDigestAlgorithm()
public String getMGFAlgorithm()
public AlgorithmParameterSpec getMGFParameters()
public PSource getPSource()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.