在 Corda V3 中添加了对 PKCS1 RSA 的支持



我想检查一下在 corda 版本 3 中我们是否支持 PKCS1 RSA 签名"1.2.840.113549.1.1.1"。我们在下面的线程中报告了一个问题,看起来应该包含在此版本中。

Corda RSA issue using createKeystoreForCordaNode

谢谢!!

哈维尔

根据Corda发行版-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."
)

最新更新