private static final class SM2ServerKeyExchange.SM2ServerKeyExchangeMessage extends SSLHandshake.HandshakeMessage
| 限定符和类型 | 字段和说明 |
|---|---|
private static byte |
CURVE_NAMED_CURVE |
private SupportedGroupsExtension.NamedGroup |
namedGroup |
private byte[] |
paramsSignature |
private byte[] |
publicPoint |
private SignatureScheme |
signatureScheme |
private boolean |
useExplicitSigAlgorithm |
handshakeContext| 构造器和说明 |
|---|
SM2ServerKeyExchangeMessage(HandshakeContext handshakeContext) |
SM2ServerKeyExchangeMessage(HandshakeContext handshakeContext,
ByteBuffer m) |
| 限定符和类型 | 方法和说明 |
|---|---|
private static Signature |
getSignature(String keyAlgorithm,
Key key) |
SSLHandshake |
handshakeType() |
int |
messageLength() |
void |
send(HandshakeOutStream hos) |
String |
toString() |
private static void |
updateSignature(Signature sig,
byte[] clntNonce,
byte[] svrNonce,
int namedGroupId,
byte[] publicPoint) |
writeprivate static final byte CURVE_NAMED_CURVE
private final SupportedGroupsExtension.NamedGroup namedGroup
private final byte[] publicPoint
private final byte[] paramsSignature
private final boolean useExplicitSigAlgorithm
private final SignatureScheme signatureScheme
SM2ServerKeyExchangeMessage(HandshakeContext handshakeContext) throws IOException
IOExceptionSM2ServerKeyExchangeMessage(HandshakeContext handshakeContext, ByteBuffer m) throws IOException
IOExceptionpublic SSLHandshake handshakeType()
public int messageLength()
public void send(HandshakeOutStream hos) throws IOException
send 在类中 SSLHandshake.HandshakeMessageIOExceptionprivate static Signature getSignature(String keyAlgorithm, Key key) throws NoSuchAlgorithmException, InvalidKeyException
private static void updateSignature(Signature sig, byte[] clntNonce, byte[] svrNonce, int namedGroupId, byte[] publicPoint) throws SignatureException
Copyright © 2023. All rights reserved.