summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpKdfParameters.cs
blob: c7844893905716cea2f0dea0e1b5a94976e9543c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;

namespace Org.BouncyCastle.Bcpg.OpenPgp
{
    internal sealed class PgpKdfParameters
        //: IPgpAlgorithmParameters
    {
        private readonly HashAlgorithmTag m_hashAlgorithm;
        private readonly SymmetricKeyAlgorithmTag m_symmetricWrapAlgorithm;

        public PgpKdfParameters(HashAlgorithmTag hashAlgorithm, SymmetricKeyAlgorithmTag symmetricWrapAlgorithm)
        {
            m_hashAlgorithm = hashAlgorithm;
            m_symmetricWrapAlgorithm = symmetricWrapAlgorithm;
        }

        public HashAlgorithmTag HashAlgorithm => m_hashAlgorithm;

        public SymmetricKeyAlgorithmTag SymmetricWrapAlgorithm => m_symmetricWrapAlgorithm;
    }
}