狂自私

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

09 2022 档案

C++自定义的工具函数
摘要:my_function.h 1 #pragma once 2 #include <iostream> 3 #include <cstdarg> 4 #include <list> 5 #include <limits> 6 #include <vector> 7 #include <codecvt> 阅读全文

posted @ 2022-09-22 17:49 狂自私 阅读(58) 评论(0) 推荐(0) 编辑

一段式SM3算法的实现
摘要:C语言 #pragma once //C语言实现的一段式SM3算法 #include <stdio.h> #include <memory> //定义初始值IV,初始值IV是一个常数 unsigned char IV[256 / 8]{ 0x73,0x80,0x16,0x6f,0x49,0x14,0 阅读全文

posted @ 2022-09-22 17:44 狂自私 阅读(219) 评论(0) 推荐(0) 编辑

对称加解密的综合例子
摘要:cpp // 对称加解密的综合例子.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // 需要这些依赖项:libssl.lib;Ws2_32.lib;libcrypto.lib;CRYPT32.lib // #include <iostream> #include <fst 阅读全文

posted @ 2022-09-14 17:07 狂自私 阅读(46) 评论(0) 推荐(0) 编辑

实现SM4-ECB、CBC、CFB、OFB算法(大数据版)
摘要:base_sm4类参考: 实现SM4算法(16字节版) sm4.h #pragma once #include <algorithm> #include <iostream> #include "D:\C++\实现SM4算法(16字节版)\base_sm4.h" constexpr bool SM4 阅读全文

posted @ 2022-09-14 09:21 狂自私 阅读(1910) 评论(0) 推荐(0) 编辑

实现SM4算法(16字节版)
摘要:base_sm4.h #pragma once #include <vector> #include <iostream> /*32位以内的循环左移*/ #define SM4_Rotl32(buf,n) (((buf)<<(n))|((buf)>>(32-(n)))) class base_sm4 阅读全文

posted @ 2022-09-14 09:18 狂自私 阅读(333) 评论(0) 推荐(0) 编辑

DES和3DES算法实现
摘要:是模仿的写的。 C语言原版的: #include <stdio.h> #include <memory.h> #include <string.h> typedef bool(*PSubKey)[16][48]; enum { ENCRYPT, DECRYPT }; //选择:加密;解密 stati 阅读全文

posted @ 2022-09-06 16:31 狂自私 阅读(99) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示