我想检查一下在Corda3版本中,我们是否支持PKCS1签名"1.2.840.113549.1.1.1“。我们在下面的线程中报告了一个问题,看起来应该包含在这个版本中。
Corda RSA issue using createKeystoreForCordaNode
谢谢!!
哈维尔
发布于 2018-03-22 23:44:22
根据Corda release-V3的说法,确实有对PKCS1 RSA的支持,如下所示:
/**
* RSA PKCS#1 signature scheme using SHA256 for message hashing.
* The actual algorithm id is 1.2.840.113549.1.1.1
* Note: Recommended key size >= 3072 bits.
*/
@JvmField
val RSA_SHA256 = SignatureScheme(
1,
"RSA_SHA256",
AlgorithmIdentifier(PKCSObjectIdentifiers.sha256WithRSAEncryption, null),
listOf(AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, null)),
BouncyCastleProvider.PROVIDER_NAME,
"RSA",
"SHA256WITHRSA",
null,
3072,
"RSA_SHA256 signature scheme using SHA256 as hash algorithm."
)https://stackoverflow.com/questions/49429792
复制相似问题