public void DeleteSymmetricKey(SymmetricKey key)
        {
            var cloudTable = GetTableForOperation();

            var deleteOperation = TableOperation.Delete(key);
            cloudTable.Execute(deleteOperation);
        }
        public void AddSymmetricKey(SymmetricKey key)
        {
            var cloudTable = GetTableForOperation();

            var insertOperation = TableOperation.Insert(key);
            cloudTable.Execute(insertOperation);
        }
Beispiel #3
0
        public SymmetricKey CreateNewAesSymmetricKeyset()
        {
            var aes = new AesManaged();
            aes.GenerateIV();
            aes.GenerateKey();

            var symmKeySet = new SymmetricKey()
            {
                Iv = RsaEncryptBytes(aes.IV),
                Key = RsaEncryptBytes(aes.Key)
            };

            return symmKeySet;
        }