/// <summary>
        /// Initializes a new instance of the <see cref="CryptographicKey" /> class.
        /// </summary>
        /// <param name="key">The WinRT cryptographic key.</param>
        /// <param name="symmetricAlgorithmProvider">The symmetric algorithm of the provider creating this key.</param>
        internal CryptographicKey(Platform.CryptographicKey key, SymmetricKeyAlgorithmProvider symmetricAlgorithmProvider)
        {
            Requires.NotNull(key, "key");

            this.key = key;
            this.symmetricAlgorithmProvider = symmetricAlgorithmProvider;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="WinRTCryptographicKey" /> class.
        /// </summary>
        /// <param name="key">The WinRT cryptographic key.</param>
        /// <param name="canExportPrivateKey">
        /// A value indicating whether <see cref="Export(CryptographicPrivateKeyBlobType)"/>
        /// can be expected to work.
        /// </param>
        internal WinRTCryptographicKey(Platform.CryptographicKey key, bool canExportPrivateKey)
        {
            Requires.NotNull(key, "key");

            this.key = key;
            this.canExportPrivateKey = canExportPrivateKey;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="KeyDerivationParameters"/> class.
        /// </summary>
        /// <param name="parameters">The platform parameters.</param>
        internal KeyDerivationParameters(Platform.KeyDerivationParameters parameters)
        {
            Requires.NotNull(parameters, "parameters");

            this.platform = parameters;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CryptographicKey" /> class.
        /// </summary>
        /// <param name="key">The WinRT cryptographic key.</param>
        internal CryptographicKey(Platform.CryptographicKey key)
        {
            Requires.NotNull(key, "key");

            this.key = key;
        }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CryptographicKey" /> class.
 /// </summary>
 /// <param name="key">The WinRT cryptographic key.</param>
 /// <param name="symmetricAlgorithmProvider">The symmetric algorithm of the provider creating this key.</param>
 /// <param name="canExportPrivateKey">
 /// A value indicating whether <see cref="Export(CryptographicPrivateKeyBlobType)"/>
 /// can be expected to work.
 /// </param>
 internal CryptographicKey(Platform.CryptographicKey key, SymmetricKeyAlgorithmProvider symmetricAlgorithmProvider, bool canExportPrivateKey)
     : this(key, canExportPrivateKey)
 {
     this.symmetricAlgorithmProvider = symmetricAlgorithmProvider;
 }