跳过导航链接
B C D E G I P R S T U V W 

B

BCKeys - io.polaris.crypto中的类
Bouncy Castle相关工具类封装
BCKeys() - 类 的构造器io.polaris.crypto.BCKeys
 
BCProviderLoader - io.polaris.crypto中的类
 
BCProviderLoader() - 类 的构造器io.polaris.crypto.BCProviderLoader
 

C

changeC1C2C3ToC1C3C2(byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.SmUtils
bc加解密使用旧标c1||c2||c3,此方法在加密后调用,将结果转化为c1||c3||c2
changeC1C3C2ToC1C2C3(byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.SmUtils
bc加解密使用旧标c1||c3||c2,此方法在解密前调用,将密文转化为c1||c2||c3再去解密
createOpenSSHPrivateKeySpec(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
创建OpenSSHPrivateKeySpec
createOpenSSHPublicKeySpec(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
创建OpenSSHPublicKeySpec

D

decodeECPoint(String, String) - 类 中的静态方法io.polaris.crypto.BCKeys
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
见:https://www.cnblogs.com/xinzhao/p/8963724.html
decodeECPoint(byte[], String) - 类 中的静态方法io.polaris.crypto.BCKeys
解码恢复EC压缩公钥,支持Base64和Hex编码,(基于BouncyCastle)
decodePrivateKeyParams(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
尝试解析转换各种类型私钥为ECPrivateKeyParameters,支持包括: D值 PKCS#8 PKCS#1
decodePublicKeyParams(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
尝试解析转换各种类型公钥为ECPublicKeyParameters,支持包括: Q值 X.509 PKCS#1
decrypt(byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
使用私钥解密

E

ECKeys - io.polaris.crypto中的类
EC密钥参数相关工具类封装
ECKeys() - 类 的构造器io.polaris.crypto.ECKeys
 
encodeECPrivateKey(PrivateKey) - 类 中的静态方法io.polaris.crypto.BCKeys
只获取私钥里的d,32字节
encodeECPublicKey(PublicKey) - 类 中的静态方法io.polaris.crypto.BCKeys
编码压缩EC公钥(基于BouncyCastle),即Q值
encodeECPublicKey(PublicKey, boolean) - 类 中的静态方法io.polaris.crypto.BCKeys
编码压缩EC公钥(基于BouncyCastle),即Q值
encrypt(byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
加密,SM2非对称加密的结果由C1,C2,C3三部分组成,其中: C1 生成随机数的计算出的椭圆曲线点 C2 密文数据 C3 SM3的摘要值

G

getD() - 类 中的方法io.polaris.crypto.asymmetric.SM2
获得私钥D值(编码后的私钥)
getDBigInteger() - 类 中的方法io.polaris.crypto.asymmetric.SM2
获得私钥D值
getPublicParams(ECPrivateKeyParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
根据私钥参数获取公钥参数
getQ(boolean) - 类 中的方法io.polaris.crypto.asymmetric.SM2
获得公钥Q值(编码后的公钥)

I

ID_SM2_PUBLIC_KEY_PARAM - 类 中的静态变量io.polaris.crypto.SmUtils
SM2国密算法公钥参数的Oid标识
io.polaris.crypto - 程序包 io.polaris.crypto
 
io.polaris.crypto.asymmetric - 程序包 io.polaris.crypto.asymmetric
 
io.polaris.crypto.digest - 程序包 io.polaris.crypto.digest
 
io.polaris.crypto.symmetric - 程序包 io.polaris.crypto.symmetric
 

P

PemKeys - io.polaris.crypto中的类
PEM(Privacy Enhanced Mail)格式相关工具类。
PemKeys() - 类 的构造器io.polaris.crypto.PemKeys
 
position() - 类 中的方法io.polaris.crypto.BCProviderLoader
 
provider() - 类 中的方法io.polaris.crypto.BCProviderLoader
 

R

readPem(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
从pem流中读取公钥或私钥
readPemKey(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
从pem文件中读取公钥或私钥
根据类型返回 PublicKey 或者 PrivateKey
readPemObject(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
读取pem文件中的信息,包括类型、头信息和密钥内容
readPemObject(Reader) - 类 中的静态方法io.polaris.crypto.PemKeys
读取pem文件中的信息,包括类型、头信息和密钥内容
readPemPrivateKey(InputStream) - 类 中的静态方法io.polaris.crypto.BCKeys
读取PEM格式的私钥
readPemPrivateKey(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
读取PEM格式的私钥,支持PKCS#8和PKCS#1的ECC格式
readPemPublicKey(InputStream) - 类 中的静态方法io.polaris.crypto.BCKeys
读取PEM格式的公钥
readPemPublicKey(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
读取PEM格式的公钥
readSm2PemPrivateKey(InputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
rsAsn1ToPlain(byte[]) - 类 中的静态方法io.polaris.crypto.SmUtils
BC的SM3withSM2签名得到的结果的rs是asn1格式的,这个方法转化成直接拼接r||s
rsPlainToAsn1(byte[]) - 类 中的静态方法io.polaris.crypto.SmUtils
BC的SM3withSM2验签需要的rs是asn1格式的,这个方法将直接拼接r||s的字节数组转化成asn1格式

S

setDigest(Digest) - 类 中的方法io.polaris.crypto.asymmetric.SM2
设置Hash算法
setEncoding(DSAEncoding) - 类 中的方法io.polaris.crypto.asymmetric.SM2
设置DSA signatures的编码
setMode(SM2Engine.Mode) - 类 中的方法io.polaris.crypto.asymmetric.SM2
设置SM2模式,旧版是C1C2C3,新版本是C1C3C2
sign(byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
用私钥对信息生成数字签名,签名格式为ASN1
* 在硬件签名中,返回结果为R+S,可以通过调用SmUtils.rsAsn1ToPlain(byte[])方法转换之。
sign(byte[], byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
用私钥对信息生成数字签名,签名格式为ASN1
在硬件签名中,返回结果为R+S,可以通过调用SmUtils.rsAsn1ToPlain(byte[])方法转换之。
SM2 - io.polaris.crypto.asymmetric中的类
国密SM2非对称算法实现,基于BC库
SM2算法只支持公钥加密,私钥解密
国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM2(ECPrivateKeyParameters, ECPublicKeyParameters) - 类 的构造器io.polaris.crypto.asymmetric.SM2
 
SM2(PrivateKey, PublicKey) - 类 的构造器io.polaris.crypto.asymmetric.SM2
 
SM2(byte[], byte[]) - 类 的构造器io.polaris.crypto.asymmetric.SM2
 
sm2() - 类 中的静态方法io.polaris.crypto.SmUtils
 
sm2(byte[], byte[]) - 类 中的静态方法io.polaris.crypto.SmUtils
 
sm2(PrivateKey, PublicKey) - 类 中的静态方法io.polaris.crypto.SmUtils
 
SM2_CURVE_NAME - 类 中的静态变量io.polaris.crypto.SmUtils
SM2默认曲线
SM2_DOMAIN_PARAMS - 类 中的静态变量io.polaris.crypto.SmUtils
SM2推荐曲线参数(来自https://github.com/ZZMarquis/gmhelper)
SM3 - io.polaris.crypto.digest中的类
国密SM3杂凑(摘要)算法 国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM3() - 类 的构造器io.polaris.crypto.digest.SM3
 
sm3() - 类 中的静态方法io.polaris.crypto.SmUtils
 
sm4() - 类 中的静态方法io.polaris.crypto.SmUtils
 
sm4(Key) - 类 中的静态方法io.polaris.crypto.SmUtils
 
SM4 - io.polaris.crypto.symmetric中的类
国密对称加密算法SM4实现 国密算法包括: 非对称加密和签名:SM2 摘要签名算法:SM3 对称加密:SM4
SM4(Key) - 类 的构造器io.polaris.crypto.symmetric.SM4
 
SM4() - 类 的构造器io.polaris.crypto.symmetric.SM4
 
SmUtils - io.polaris.crypto中的类
 
SmUtils() - 类 的构造器io.polaris.crypto.SmUtils
 

T

toDomainParams(ECParameterSpec) - 类 中的静态方法io.polaris.crypto.BCKeys
构建ECDomainParameters对象
toDomainParams(String) - 类 中的静态方法io.polaris.crypto.BCKeys
构建ECDomainParameters对象
toDomainParams(X9ECParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
构建ECDomainParameters对象
toParams(Key) - 类 中的静态方法io.polaris.crypto.BCKeys
密钥转换为AsymmetricKeyParameter
toParams(String, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toParams(byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toParams(BigInteger, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toParams(BigInteger, BigInteger, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为ECPublicKeyParameters
toParams(String, String, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为ECPublicKeyParameters
toParams(byte[], byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为ECPublicKeyParameters
toParams(PublicKey) - 类 中的静态方法io.polaris.crypto.BCKeys
公钥转换为 ECPublicKeyParameters
toParams(PrivateKey) - 类 中的静态方法io.polaris.crypto.BCKeys
私钥转换为 ECPrivateKeyParameters
toParams(Key) - 类 中的静态方法io.polaris.crypto.ECKeys
密钥转换为AsymmetricKeyParameter
toPem(String, byte[]) - 类 中的静态方法io.polaris.crypto.PemKeys
将私钥或公钥转换为PEM格式的字符串
toPkcs1(PrivateKey) - 类 中的静态方法io.polaris.crypto.BCKeys
Java中的PKCS#8格式私钥转换为OpenSSL支持的PKCS#1格式
toPkcs1(PublicKey) - 类 中的静态方法io.polaris.crypto.BCKeys
Java中的X.509格式公钥转换为OpenSSL支持的PKCS#1格式
toPrivateParams(String, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toPrivateParams(byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toPrivateParams(BigInteger, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toPrivateParams(PrivateKey) - 类 中的静态方法io.polaris.crypto.ECKeys
私钥转换为 ECPrivateKeyParameters
toPublicParams(String, String, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(byte[], byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(BigInteger, BigInteger, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(String, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(byte[], ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(ECPoint, ECDomainParameters) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为ECPublicKeyParameters
toPublicParams(PublicKey) - 类 中的静态方法io.polaris.crypto.ECKeys
公钥转换为 ECPublicKeyParameters
toSm2Params(String) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toSm2Params(byte[]) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toSm2Params(BigInteger) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为 ECPrivateKeyParameters
toSm2Params(String, String) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为SM2的ECPublicKeyParameters
toSm2Params(byte[], byte[]) - 类 中的静态方法io.polaris.crypto.BCKeys
转换为SM2的ECPublicKeyParameters
toSm2PrivateKey(ECPrivateKey) - 类 中的静态方法io.polaris.crypto.ECKeys
将SM2算法的ECPrivateKey 转换为 PrivateKey
toSm2PrivateParams(String) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toSm2PrivateParams(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toSm2PrivateParams(BigInteger) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPrivateKeyParameters
toSm2PublicParams(byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPublicKeyParameters
toSm2PublicParams(String) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为 ECPublicKeyParameters
toSm2PublicParams(String, String) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为SM2的ECPublicKeyParameters
toSm2PublicParams(byte[], byte[]) - 类 中的静态方法io.polaris.crypto.ECKeys
转换为SM2的ECPublicKeyParameters

U

usePlainEncoding() - 类 中的方法io.polaris.crypto.asymmetric.SM2
设置DSA signatures的编码为PlainDSAEncoding

V

verify(byte[], byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
用公钥检验数字签名的合法性
verify(byte[], byte[], byte[]) - 类 中的方法io.polaris.crypto.asymmetric.SM2
用公钥检验数字签名的合法性

W

writePemObject(String, byte[], OutputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
写出pem密钥(私钥、公钥、证书)
writePemObject(String, byte[], Writer) - 类 中的静态方法io.polaris.crypto.PemKeys
写出pem密钥(私钥、公钥、证书)
writePemObject(PemObjectGenerator, OutputStream) - 类 中的静态方法io.polaris.crypto.PemKeys
写出pem密钥(私钥、公钥、证书)
writePemObject(PemObjectGenerator, Writer) - 类 中的静态方法io.polaris.crypto.PemKeys
写出pem密钥(私钥、公钥、证书)
B C D E G I P R S T U V W 
跳过导航链接

Copyright © 2025 fossc. All rights reserved.