| | |
| | | String API_PREFIX = "/client"; |
| | | |
| | | String GET_CBCMACENCIPHER = API_PREFIX + "/getCBCMacEncipher"; |
| | | String GET_CBCMACENCIPHER_VERIFY = API_PREFIX + "/getCBCMacEncipherVerify"; |
| | | String GET_ENCRYPT = API_PREFIX + "/getEncrypt"; |
| | | String GET_DECRYPT = API_PREFIX + "/getDecrypt"; |
| | | |
| | | String VERIFY = API_PREFIX + "/verify"; |
| | | |
| | | @PostMapping(GET_CBCMACENCIPHER) |
| | | R<CBCResultDTO> getCBCMacEncipher(@RequestParam("message")String message); |
| | | |
| | | @PostMapping(GET_CBCMACENCIPHER_VERIFY) |
| | | R<CBCResultDTO> getCBCMacEncipherVerify(@RequestParam("sm4Iv")String sm4Iv, @RequestParam("keyIndex")String keyIndex, @RequestParam("message")String message); |
| | | |
| | | @PostMapping(GET_ENCRYPT) |
| | | R<ResultDTO> getEncrypt(@RequestParam("sm4Iv")String sm4Iv, @RequestParam("keyIndex")String keyIndex, @RequestParam("message")String message); |
| | |
| | | @PostMapping(GET_DECRYPT) |
| | | R<ResultDTO> getDecrypt(@RequestParam("sm4Iv")String sm4Iv, @RequestParam("keyIndex")String keyIndex, @RequestParam("message")String message); |
| | | |
| | | @PostMapping(VERIFY) |
| | | R verify(@RequestParam("maced")String maced, |
| | | @RequestParam("sm4Iv")String sm4Iv, |
| | | @RequestParam("keyIndex")String keyIndex, |
| | | @RequestParam("message")String message, |
| | | @RequestParam("dataId")String dataId, |
| | | @RequestParam("source")String source); |
| | | |
| | | } |