summary refs log tree commit diff
path: root/crypto/src/pqc/crypto/sike/SIKEPrivateKeyParameters.cs
blob: 0666ffb7234d693003699763d7c52fcfea13f7a9 (plain) (blame)
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
using Org.BouncyCastle.Utilities;

namespace Org.BouncyCastle.Pqc.Crypto.Sike
{
    public sealed class SikePrivateKeyParameters
        : SikeKeyParameters
    {
        private readonly byte[] privateKey;

        public SikePrivateKeyParameters(SikeParameters param, byte[] privateKey)
            : base(true, param)
        {
            this.privateKey = Arrays.Clone(privateKey);
        }

        public byte[] GetEncoded()
        {
            return Arrays.Clone(privateKey);
        }

        public byte[] GetPrivateKey()
        {
            return Arrays.Clone(privateKey);
        }
    }
}