Пример #1
0
        public async Task <SecurityKey> GenerateKey()
        {
            var key = new CryptographicKey(_options.Value.Jws);

            var model = new KeyMaterial(key);
            await _store.Store(model);

            return(model.GetSecurityKey());
        }
 public async Task Should_Save_Crypto()
 {
     var key   = new CryptographicKey(DigitalSignaturesAlgorithm.RsaSsaPssSha256);
     var model = new KeyMaterial(key);
     await _store.Store(model);
 }