| 程序包 | 说明 |
|---|---|
| io.polaris.crypto | |
| io.polaris.crypto.asymmetric |
| 限定符和类型 | 方法和说明 |
|---|---|
static SM2 |
SmUtils.sm2() |
static SM2 |
SmUtils.sm2(byte[] privateKey,
byte[] publicKey) |
static SM2 |
SmUtils.sm2(PrivateKey privateKey,
PublicKey publicKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
SM2 |
SM2.setDigest(org.bouncycastle.crypto.Digest digest)
设置Hash算法
|
SM2 |
SM2.setEncoding(org.bouncycastle.crypto.signers.DSAEncoding encoding)
设置DSA signatures的编码
|
SM2 |
SM2.setMode(org.bouncycastle.crypto.engines.SM2Engine.Mode mode)
设置SM2模式,旧版是C1C2C3,新版本是C1C3C2
|
SM2 |
SM2.usePlainEncoding()
设置DSA signatures的编码为PlainDSAEncoding
|
Copyright © 2025 fossc. All rights reserved.