DELL
2025-04-28 e6eb7fb0af366e370f125668d62e89eb0004f517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package org.pzone.crypto;
 
import java.math.BigInteger;
 
import org.bouncycastle.math.ec.ECPoint;
 
/**
 * SM2ÃÜÔ¿¶ÔBean
 * @author Potato
 *
 */
public class SM2KeyPair {
 
    private final ECPoint publicKey;
    private final BigInteger privateKey;
 
    SM2KeyPair(ECPoint publicKey, BigInteger privateKey) {
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }
 
    public ECPoint getPublicKey() {
        return publicKey;
    }
 
    public BigInteger getPrivateKey() {
        return privateKey;
    }
 
}