This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local crypt = require "crypt" | |
crypt.sm2keygen("pri.pem", "pub.pem") | |
--[[ | |
# pkcs8格式 | |
pri.pem - 私钥文件名 | |
pub.pem - 公钥文件名 |
-
CentOS(RHEL) 7+ 以上系统;
-
至少1C2G以上;
- 到这里找到自己想要安装的版本的
.repo
文件;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local type = type | |
local pairs = pairs | |
local assert = assert | |
local tostring = tostring | |
local setmetatable = setmetatable | |
local tconcat = table.concat | |
---@class Set @集合 | |
local MetaSet = { map = {} } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#if defined(__x86_64__) || defined(__i386__) | |
static inline uint32_t _mm_crc32_u8(uint32_t crc, uint8_t v) { | |
__asm__ volatile("crc32b %1, %0" : "+r"(crc) : "rm"(v)); | |
return crc; | |
} | |
static inline uint32_t _mm_crc32_u16(uint32_t crc, uint16_t v) { | |
__asm__ volatile("crc32w %1, %0" : "+r"(crc) : "rm"(v)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#if defined(__AVX__) | |
#include <immintrin.h> | |
#endif | |
#if defined(__SSE2__) |