Esempio n. 1
0
 /// <inheritdoc/>
 public virtual async Task <byte[]> DecryptSecretAsync(byte[] secretBytes, Dictionary <string, string> encryptionContext)
 => (await KmsClient.DecryptAsync(new DecryptRequest {
     CiphertextBlob = new MemoryStream(secretBytes),
     EncryptionContext = encryptionContext
 })).Plaintext.ToArray();