예제 #1
0
        public static byte[] UnwrapKey(byte[] kek, byte[] ciphertext)
        {
            KeyWrapAlgorithm kwa = new KeyWrapAlgorithm(kek);

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

            return(kwa.WrapKey(plaintext));
        }