/// <summary>
 /// Instantiates a new <see cref="Aes128GcmDecodedContent"/>.
 /// </summary>
 /// <param name="contentToBeDecrypted">The content which will be decoded.</param>
 /// <param name="keyProvider">The function which is able to provide the keying material based on the keying material identificator.</param>
 public Aes128GcmDecodedContent(HttpContent contentToBeDecrypted, Func <string, byte[]> keyProvider)
     : this(contentToBeDecrypted, Aes128GcmEncoding.ConvertToByteArrayBasedKeyProvider(keyProvider))
 {
 }
Example #2
0
 /// <summary>
 /// Instantiates a new <see cref="Aes128GcmEncodingHandler"/>.
 /// </summary>
 /// <param name="keyProvider">The function which is able to provide the keying material based on the keying material identificator.</param>
 public Aes128GcmEncodingHandler(Func <string, byte[]> keyProvider)
     : this(Aes128GcmEncoding.ConvertToByteArrayBasedKeyProvider(keyProvider))
 {
 }