forked from bcgit/bc-csharp
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
423 additions
and
432 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Text; | ||
using Org.BouncyCastle.Asn1; | ||
using Org.BouncyCastle.Asn1.Cmp; | ||
using Org.BouncyCastle.Asn1.Iana; | ||
using Org.BouncyCastle.Asn1.Nist; | ||
using Org.BouncyCastle.Asn1.Oiw; | ||
using Org.BouncyCastle.Asn1.Pkcs; | ||
using Org.BouncyCastle.Asn1.X509; | ||
using Org.BouncyCastle.Cms; | ||
using Org.BouncyCastle.Crypto.IO; | ||
using Org.BouncyCastle.Crypto.Parameters; | ||
using Org.BouncyCastle.Security; | ||
using Org.BouncyCastle.Utilities; | ||
using Org.BouncyCastle.Utilities.Encoders; | ||
using Org.BouncyCastle.Crypto; | ||
|
||
namespace Org.BouncyCastle.Crmf | ||
{ | ||
public interface IPKMacPrimitivesProvider | ||
{ | ||
IDigest CreateDigest(AlgorithmIdentifier digestAlg); | ||
|
||
IMac CreateMac(AlgorithmIdentifier macAlg); | ||
} | ||
} |
Oops, something went wrong.