summary refs log tree commit diff
path: root/crypto/src/crmf
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2019-01-19 15:38:11 +1100
committerDavid Hook <dgh@bouncycastle.org>2019-01-19 15:38:11 +1100
commit60b001da03e19c8e22ce8d7f448e9c752e3ebdfa (patch)
tree5f3c200fbf03a998ee186b3a0861a781f0f7f57c /crypto/src/crmf
parent Missing file from last commit (diff)
downloadBouncyCastle.NET-ed25519-60b001da03e19c8e22ce8d7f448e9c752e3ebdfa.tar.xz
fixed KeyTransRecipientInfoGenerator to invoke overridable method for wrapping symmetric session key
Diffstat (limited to 'crypto/src/crmf')
-rw-r--r--crypto/src/crmf/PKIArchiveControlBuilder.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/crypto/src/crmf/PKIArchiveControlBuilder.cs b/crypto/src/crmf/PKIArchiveControlBuilder.cs
index f43ecd4ec..2677e4e0d 100644
--- a/crypto/src/crmf/PKIArchiveControlBuilder.cs
+++ b/crypto/src/crmf/PKIArchiveControlBuilder.cs
@@ -9,7 +9,7 @@ using Org.BouncyCastle.Crypto;
 
 namespace Org.BouncyCastle.Crmf
 {
-    public class PKIArchiveControlBuilder
+    public class PkiArchiveControlBuilder
     {
         private CmsEnvelopedDataGenerator envGen;
         private CmsProcessableByteArray keyContent;
@@ -20,7 +20,7 @@ namespace Org.BouncyCastle.Crmf
         /// <param name="privateKeyInfo">the private key to be archived.</param>
         /// <param name="generalName">the general name to be associated with the private key.</param>
         ///
-        public PKIArchiveControlBuilder(PrivateKeyInfo privateKeyInfo, GeneralName generalName)
+        public PkiArchiveControlBuilder(PrivateKeyInfo privateKeyInfo, GeneralName generalName)
         {
             EncKeyWithID encKeyWithID = new EncKeyWithID(privateKeyInfo, generalName);
 
@@ -35,14 +35,11 @@ namespace Org.BouncyCastle.Crmf
 
             this.envGen = new CmsEnvelopedDataGenerator();
         }
-        
-
-
 
         ///<summary>Add a recipient generator to this control.</summary>       
         ///<param name="recipientGen"> recipient generator created for a specific recipient.</param>
         ///<returns>this builder object.</returns>       
-        public PKIArchiveControlBuilder AddRecipientGenerator(RecipientInfoGenerator recipientGen)
+        public PkiArchiveControlBuilder AddRecipientGenerator(RecipientInfoGenerator recipientGen)
         {
             envGen.AddRecipientInfoGenerator(recipientGen);
             return this;
@@ -56,6 +53,6 @@ namespace Org.BouncyCastle.Crmf
             CmsEnvelopedData envContent = envGen.Generate(keyContent, contentEncryptor);
             EnvelopedData envD = EnvelopedData.GetInstance(envContent.ContentInfo.Content);        
             return new PkiArchiveControl(new PkiArchiveOptions(new EncryptedKey(envD)));
+        }
     }
-}
 }
\ No newline at end of file