using System; using System.Collections.Generic; using System.Text; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Security; using Org.BouncyCastle.Crypto.Parameters; namespace Org.BouncyCastle.Crmf { public class DefaultPKMacPrimitivesProvider : IPKMacPrimitivesProvider { public IDigest CreateDigest(AlgorithmIdentifier digestAlg) { return DigestUtilities.GetDigest(digestAlg.Algorithm); } public IMac CreateMac(AlgorithmIdentifier macAlg) { return MacUtilities.GetMac(macAlg.Algorithm); } } }