Ejemplo n.º 1
0
        public static byte[] UnwrapKey(byte[] kek, byte[] ciphertext)
        {
            KeyWrapAlgorithm kwa = new KeyWrapAlgorithm(kek);

            return(kwa.UnwrapKey(ciphertext));
        }
Ejemplo n.º 2
0
        public static byte[] WrapKey(byte[] kek, byte[] plaintext)
        {
            KeyWrapAlgorithm kwa = new KeyWrapAlgorithm(kek);

            return(kwa.WrapKey(plaintext));
        }