Esempio n. 1
0
        public void Setup()
        {
            _key = new byte[]
            {
                0xee, 0xbc, 0x1f, 0x57, 0x48, 0x7f, 0x51, 0x92, 0x1c, 0x04, 0x65, 0x66,
                0x5f, 0x8a, 0xe6, 0xd1, 0x65, 0x8b, 0xb2, 0x6d, 0xe6, 0xf8, 0xa0, 0x69,
                0xa3, 0x52, 0x02, 0x93, 0xa5, 0x72, 0x07, 0x8f
            };
            _plainText = new byte[] { 0xf5, 0x6e, 0x87, 0x05, 0x5b, 0xc3, 0x2d, 0x0e, 0xeb, 0x31, 0xb2, 0xea, 0xcc, 0x2b, 0xf2, 0xa5 };

            _aesGcm = new AesGcmOpenSslWrapper(_key);
        }
Esempio n. 2
0
 public AesGcmEncryption(byte[] key, IAesGcm aesGcm)
 {
     _key    = key;
     _aesGcm = aesGcm;
 }