Package tss.tpm
Class TPMS_SIGNATURE_SM2
- java.lang.Object
-
- tss.TpmStructure
-
- tss.tpm.TPMS_SIGNATURE_ECC
-
- tss.tpm.TPMS_SIGNATURE_SM2
-
- All Implemented Interfaces:
TPMU_SIGNATURE
,TpmMarshaller
,TpmUnion
public class TPMS_SIGNATURE_SM2 extends TPMS_SIGNATURE_ECC
Table 187 Definition of {ECC} TPMS_SIGNATURE_ECC Structure
-
-
Field Summary
-
Fields inherited from class tss.tpm.TPMS_SIGNATURE_ECC
hash, signatureR, signatureS
-
-
Constructor Summary
Constructors Constructor Description TPMS_SIGNATURE_SM2()
TPMS_SIGNATURE_SM2(TPM_ALG_ID _hash, byte[] _signatureR, byte[] _signatureS)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TPMS_SIGNATURE_SM2
fromBytes(byte[] byteBuf)
Static marshaling helperstatic TPMS_SIGNATURE_SM2
fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
insteadstatic TPMS_SIGNATURE_SM2
fromTpm(TpmBuffer buf)
Static marshaling helperTPM_ALG_ID
GetUnionSelector()
TpmUnion methodString
toString()
byte[]
toTpm()
Deprecated.UseTpmStructure.toBytes()
instead-
Methods inherited from class tss.tpm.TPMS_SIGNATURE_ECC
initFromTpm, toStringInternal, toTpm
-
Methods inherited from class tss.TpmStructure
equals, hashCode, toBytes
-
-
-
-
Constructor Detail
-
TPMS_SIGNATURE_SM2
public TPMS_SIGNATURE_SM2()
-
TPMS_SIGNATURE_SM2
public TPMS_SIGNATURE_SM2(TPM_ALG_ID _hash, byte[] _signatureR, byte[] _signatureS)
- Parameters:
_hash
- The hash algorithm used in the signature process TPM_ALG_NULL is not allowed._signatureR
- TBD_signatureS
- TBD
-
-
Method Detail
-
GetUnionSelector
public TPM_ALG_ID GetUnionSelector()
TpmUnion method- Specified by:
GetUnionSelector
in interfaceTPMU_SIGNATURE
- Overrides:
GetUnionSelector
in classTPMS_SIGNATURE_ECC
-
toTpm
public byte[] toTpm()
Deprecated.UseTpmStructure.toBytes()
instead- Overrides:
toTpm
in classTPMS_SIGNATURE_ECC
- Returns:
- Wire (marshaled) representation of this object
-
fromBytes
public static TPMS_SIGNATURE_SM2 fromBytes(byte[] byteBuf)
Static marshaling helper- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_SIGNATURE_SM2 fromTpm(byte[] byteBuf)
Deprecated.UsefromBytes(byte[])
instead- Parameters:
byteBuf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
fromTpm
public static TPMS_SIGNATURE_SM2 fromTpm(TpmBuffer buf)
Static marshaling helper- Parameters:
buf
- Wire representation of the object- Returns:
- New object constructed from its wire representation
-
toString
public String toString()
- Overrides:
toString
in classTPMS_SIGNATURE_ECC
-
-