package com.glxp.mipsdl.util;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.sun.jna.Library;
import com.sun.jna.Memory;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.ByteByReference;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface TestDLL extends Library {
    //加载dll，实例成对象。下面的方法，均为dll提供的方法
    TestDLL instance = (TestDLL)Native.load("hsafsiyhsafe去@(2).dll",TestDLL.class);

    int gm_ecb_encrypt_key(String pub_key, String plain, int plain_len, Pointer  cipher);
    int gm_ecb_decrypt_key(Pointer pub_key,Pointer cipher,IntByReference cipher_len,Pointer plain);
    public static void main(String[] args) {
        System.out.println("2024-11-08 00:00:00".length());
    }
}
