Exemple #1
0
 /// <summary>
 /// Creates <see cref="EncryptionData"/> from this instance data and a given AES provider.
 /// </summary>
 private async Task <EncryptionData> CreateEncryptionDataInternal(
     byte[] key,
     bool async,
     CancellationToken cancellationToken)
 => await EncryptionData.CreateInternalV2_0(
     keyWrapAlgorithm : _keyWrapAlgorithm,
     contentEncryptionKey : key,
     keyEncryptionKey : _keyEncryptionKey,
     async : async,
     cancellationToken : cancellationToken).ConfigureAwait(false);