public class SM2Cipher
extends org.bouncycastle.asn1.ASN1Object
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
convertC1C3C2()
Convert ASN.1 Struct to C1C3C2 format
|
static SM2Cipher |
fromC1C3C2(byte[] c1c3c2)
Convert SM2 encrypted result format of c1c3c2 to ASN.1 SM2Cipher
|
org.bouncycastle.asn1.ASN1OctetString |
getCipherText() |
org.bouncycastle.asn1.ASN1OctetString |
getHash() |
static SM2Cipher |
getInstance(Object o) |
org.bouncycastle.asn1.ASN1Integer |
getxCoordinate() |
org.bouncycastle.asn1.ASN1Integer |
getyCoordinate() |
void |
setCipherText(org.bouncycastle.asn1.ASN1OctetString cipherText) |
void |
setHash(org.bouncycastle.asn1.ASN1OctetString hash) |
void |
setxCoordinate(org.bouncycastle.asn1.ASN1Integer xCoordinate) |
void |
setyCoordinate(org.bouncycastle.asn1.ASN1Integer yCoordinate) |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public SM2Cipher()
public SM2Cipher(org.bouncycastle.asn1.ASN1Sequence seq)
public org.bouncycastle.asn1.ASN1Integer getxCoordinate()
public void setxCoordinate(org.bouncycastle.asn1.ASN1Integer xCoordinate)
public org.bouncycastle.asn1.ASN1Integer getyCoordinate()
public void setyCoordinate(org.bouncycastle.asn1.ASN1Integer yCoordinate)
public org.bouncycastle.asn1.ASN1OctetString getHash()
public void setHash(org.bouncycastle.asn1.ASN1OctetString hash)
public org.bouncycastle.asn1.ASN1OctetString getCipherText()
public void setCipherText(org.bouncycastle.asn1.ASN1OctetString cipherText)
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive 在接口中 org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive 在类中 org.bouncycastle.asn1.ASN1Objectpublic byte[] convertC1C3C2()
throws IOException
IOException - IO操作异常public static SM2Cipher fromC1C3C2(byte[] c1c3c2) throws IOException
c1c3c2 - encrypted resultIOException - IO操作异常Copyright © 2022. All rights reserved.