Esempio n. 1
0
        /// <summary>
        /// Creates a new ECDsaKeyVault instance
        /// </summary>
        /// <param name="context">Context with parameters</param>
        public ECDsaKeyVault(KeyVaultContext context)
        {
            if (!context.IsValid)
            {
                throw new ArgumentException("Must not be the default", nameof(context));
            }

            this.context       = context;
            publicKey          = context.Key.ToECDsa();
            KeySizeValue       = publicKey.KeySize;
            LegalKeySizesValue = new[] { new KeySizes(publicKey.KeySize, publicKey.KeySize, 0) };
        }