Beispiel #1
0
        public static int DesencriptaNTS(string base64Data, string base64Llave, out string base64Resultado)
        {
            var a  = new AES_CTR();
            var ok = a.Desencripta(base64Data, base64Llave, out base64Resultado);

            a = null;
            return(ok);
        }
Beispiel #2
0
        public static int DesencriptaNTS(IntPtr base64Data_P, IntPtr base64Llave_P, [MarshalAs(UnmanagedType.BStr)] out string base64Resultado)
        {
            string base64Data  = Marshal.PtrToStringAuto(base64Data_P);
            string base64Llave = Marshal.PtrToStringAuto(base64Llave_P);
            var    a           = new AES_CTR();
            var    ok          = a.Desencripta(base64Data, base64Llave, out base64Resultado);

            a = null;
            return(ok);
        }