Esempio n. 1
0
        public async ValueTask <CryptoKey> GetAsync(long ownerId, string name)
        {
            Ensure.IsValidId(ownerId, nameof(ownerId));
            Ensure.NotNullOrEmpty(name, nameof(name));

            var key = await keyStore.GetAsync(ownerId, name);

            return(await DecryptAsync(key));
        }