码匪周子

 

2022年11月21日

SM2生成私钥

摘要: KeyPair pair = SecureUtil.generateKeyPair("SM2"); byte[] privateKey = pair.getPrivate().getEncoded(); byte[] publicKey = pair.getPublic().getEncoded() 阅读全文

posted @ 2022-11-21 10:46 码匪周子 阅读(875) 评论(0) 推荐(0)

用bc实现国密SM3WithSM2

摘要: import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Integer; import org.bouncycastle.asn1.ASN1OctetString; import org.b 阅读全文

posted @ 2022-11-21 10:41 码匪周子 阅读(958) 评论(0) 推荐(0)

导航