Exemplo n.º 1
0
 internal DigestFactory(TParams parameters, IEngineProvider <IDigest> digestProvider, int digestSize)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.parameters       = parameters;
     this.digestProvider   = digestProvider;
     this.digestSize       = digestSize;
 }
Exemplo n.º 2
0
 internal AeadCipherBuilderImpl(bool forEncryption, TParams parameters, IAeadBlockCipher cipher)
 {
     this.isApprovedModeOnly = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.forEncryption      = forEncryption;
     this.parameters         = parameters;
     this.cipher             = cipher;
 }
Exemplo n.º 3
0
 internal XofFactory(TParams parameters, IEngineProvider <IXof> xofProvider)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.parameters       = parameters;
     this.xofProvider      = xofProvider;
 }
Exemplo n.º 4
0
 internal DigestCalculator(IDigest digest)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.digest           = digest;
     this.stream           = new DigestBucket(digest);
 }
Exemplo n.º 5
0
 public AADBucket(
     IAeadBlockCipher aeadCipher)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.aeadCipher       = aeadCipher;
 }
Exemplo n.º 6
0
 internal XofCalculator(IXof xof)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.xof    = xof;
     this.stream = new DigestBucket(xof);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Base constructor - a wrapper for the passed in byte array.
 /// </summary>
 /// <param name="result">The byte array to be wrapped.</param>
 public SimpleBlockResult(byte[] result)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.result           = result;
 }
Exemplo n.º 8
0
 public DigestBucket(
     IDigest digest)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.digest           = digest;
 }
Exemplo n.º 9
0
 internal DigestResult(IDigest digest)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.digest           = digest;
 }
Exemplo n.º 10
0
 public SignatureBucket(
     ISigner signer)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.signer           = signer;
 }
Exemplo n.º 11
0
 internal CipherBuilderImpl(TParams parameters, IBufferedCipher cipher)
 {
     this.isApprovedModeOnly = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.parameters         = parameters;
     this.cipher             = cipher;
 }
Exemplo n.º 12
0
 public PasswordBasedDeriver(A algorithmDetails, PbeParametersGenerator generator)
 {
     this.approvedOnlyMode = CryptoServicesRegistrar.IsInApprovedOnlyMode();
     this.algorithmDetails = algorithmDetails;
     this.generator        = generator;
 }