Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GMSSPublicKeySpec.java « spec « jcajce « pqc « bouncycastle « org « java « main « src « prov - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 441febd61b9dd8c9e2807c2218dba6b5f5da42e7 (plain)
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
31
32
33
34
35
36
37
38
39
40
package org.bouncycastle.pqc.jcajce.spec;

import org.bouncycastle.pqc.crypto.gmss.GMSSParameters;

/**
 * This class provides a specification for a GMSS public key.
 *
 * @see org.bouncycastle.pqc.jcajce.provider.gmss.BCGMSSPublicKey
 */
public class GMSSPublicKeySpec
    extends GMSSKeySpec
{
    /**
     * The GMSS public key
     */
    private byte[] gmssPublicKey;

    /**
     * The constructor.
     *
     * @param key              a raw GMSS public key
     * @param gmssParameterSet an instance of GMSSParameterSet
     */
    public GMSSPublicKeySpec(byte[] key, GMSSParameters gmssParameterSet)
    {
        super(gmssParameterSet);

        this.gmssPublicKey = key;
    }

    /**
     * Returns the GMSS public key
     *
     * @return The GMSS public key
     */
    public byte[] getPublicKey()
    {
        return gmssPublicKey;
    }
}