whycxzp
2022-08-10 bbc3a802e0160da727043d5eede9c0dd73e42561
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 com.whyc.encryption;
 
import org.bouncycastle.math.ec.ECPoint;
 
import java.math.BigInteger;
 
/**
 * 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;
    }
 
}