summary refs log tree commit diff
path: root/crypto/src/asn1/crmf/EncryptedValueBuilder.cs
blob: 4b57156d4b2dd21640babf694caee6a076d63dbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Org.BouncyCastle.Asn1.Nist;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Utilities;

namespace Org.BouncyCastle.Asn1.Crmf
{

//    public delegate IBlockCipher BlockCipherCreator(ICipherParameters);
//
//    public class EncryptedValueBuilder
//    {
//        private readonly IBlockCipher _cipher;
//        private static readonly IDictionary algToDelegate = Platform.CreateHashtable();
//        static EncryptedValueBuilder()
//        {
//            algToDelegate[NistObjectIdentifiers.IdAes128Cbc] = new CipherCreator()
//                {Creator = delegate(ICipherParameters param) { return new AesEngine(); }};
//
//        }
//
//
//        public EncryptedValueBuilder(DerObjectIdentifier alg)
//        {
//            
//        }
//
//
//        private static IBlockCipher AesCBC(ICipherParameters param)
//        {
//            if (param is ParametersWithIV ivParam) {
//                return new 
//            }
//            else
//            {
//                throw new ArgumentException("expecting param to be ParametersWithIv");
//            }
//        }
//
//
//
//        private class CipherCreator
//        {
//            public BlockCipherCreator Creator { get; set; }
//        }
//
//    }
}