summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Security/Cryptography/AsymmetricKeyExchangeFormatter.cs
blob: c67ee8e24d55d09cd1a515c567a7146b9f9aeced (plain)
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
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace System.Security.Cryptography {
    using System;

[System.Runtime.InteropServices.ComVisible(true)]
    public abstract class AsymmetricKeyExchangeFormatter {
        //
        // protected constructors
        //
    
        protected AsymmetricKeyExchangeFormatter() {
        }

        //
        // public properties
        //

        public abstract String Parameters {
            get;
        }
    
        //
        // public methods
        //

        abstract public void SetKey(AsymmetricAlgorithm key);
        abstract public byte[] CreateKeyExchange(byte[] data);
        abstract public byte[] CreateKeyExchange(byte[] data, Type symAlgType);
    }    
}