Ejemplo n.º 1
0
 private static FileDecryptionProperties CreateProperties()
 {
     using var builder = new FileDecryptionPropertiesBuilder();
     builder.FooterKey(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 });
     builder.AadPrefixVerifier(new TestVerifier("HelloWorld Exception!"));
     return(builder.Build());
 }
Ejemplo n.º 2
0
        // Decrypt Properties

        private static FileDecryptionProperties CreateDecryptAllSameKeyProperties()
        {
            using var builder = new FileDecryptionPropertiesBuilder();

            return(builder
                   .FooterKey(Key0)
                   .Build());
        }
Ejemplo n.º 3
0
        private static FileDecryptionProperties CreateDecryptWithKeyRetrieverProperties()
        {
            using var builder = new FileDecryptionPropertiesBuilder();

            return(builder
                   .KeyRetriever(new TestRetriever())
                   .Build());
        }
 private static FileDecryptionProperties CreateProperties()
 {
     using var builder = new FileDecryptionPropertiesBuilder();
     builder.KeyRetriever(new TestRetriever("HelloWorld\0 Key!"));
     return(builder.Build());
 }