You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
525 B
Java
15 lines
525 B
Java
package com.yau.digitalrmb.institutionidentity.domain;
|
|
|
|
public interface InstitutionIdentityCryptography {
|
|
String sm3(String text);
|
|
InstitutionSm2KeyPair generateSm2KeyPair();
|
|
/**
|
|
* 从私钥推导公钥
|
|
* @param privateKey 私钥(十六进制字符串)
|
|
* @return 公钥(压缩格式的十六进制字符串)
|
|
*/
|
|
String derivePublicKey(String privateKey);
|
|
String sign(String privateKey, String message);
|
|
boolean verify(String publicKey, String message, String signature);
|
|
}
|