public class SM2PkeyCipherV1 extends Object implements PkeyCipherBase
| 构造器和说明 |
|---|
SM2PkeyCipherV1(Keypair keypair) |
SM2PkeyCipherV1(Keypair keypair,
HashTypeEnum hashTypeEnum) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] ciphertext) |
byte[] |
encrypt(byte[] plaintext) |
AlgoIdEnum |
getAlgo() |
byte[] |
getPubKeyByPrivkey(byte[] privateKey) |
boolean |
isDecryptor() |
boolean |
isEncryptor() |
public SM2PkeyCipherV1(Keypair keypair)
public SM2PkeyCipherV1(Keypair keypair, HashTypeEnum hashTypeEnum)
public final byte[] getPubKeyByPrivkey(byte[] privateKey)
public AlgoIdEnum getAlgo()
getAlgo 在接口中 PkeyCipherBasepublic boolean isEncryptor()
isEncryptor 在接口中 PkeyCipherBasepublic boolean isDecryptor()
isDecryptor 在接口中 PkeyCipherBasepublic byte[] encrypt(byte[] plaintext)
encrypt 在接口中 PkeyCipherBasepublic byte[] decrypt(byte[] ciphertext)
decrypt 在接口中 PkeyCipherBaseCopyright © 2022. All rights reserved.