07 2020 档案
摘要:A tale of two elliptic curves Posted on 21 August 2018 by John A few days ago I blogged about the elliptic curve secp256k1 and its use in Bitcoin. Thi
阅读全文
摘要:https://wenku.baidu.com/view/93afe41910a6f524ccbf8542.html https://blog.csdn.net/hahasusu/article/details/88244155
阅读全文
摘要:// Package subtle implements functions that are often useful in cryptographic// code but require careful thought to use correctly.package subtle// Con
阅读全文
摘要:static inline uint32_t rotl(uint32_t a, uint8_t n){ return (a << n) | (a >> (32 - n));}static inline uint32_t rotr(uint32_t a, uint8_t n){ return (a >
阅读全文
摘要:0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 0 3 2 5 4 7 6 9 8 11 10 13 12 15 14 2 3 0 1 6 7 4 5 10 11 8 9 14 15 12 13 3 2 1 0 7 6 5 4 11 10 9 8 15 14 13 1
阅读全文
摘要:TLS1.3和TLS1.2的区别1、密钥协商机制改变,TLS1.3借助扩展进行密钥交换,TLS1.3只需要三次握手交互,TLS1.2则需要四次握手。首先看TLS1.2,它通过KeyExchange进行密钥协商,即ServerKeyExchange和ClientKeyExchange,那么密钥交换本身
阅读全文
摘要:Go versus C++ g++ fastest programs vs C# .NET Core vs C++ vs Java vs Python vs Rust Always look at the source code. These are only the fastest program
阅读全文
摘要:向上取整, 运算称为 Ceiling,用数学符号 ⌈⌉ (上有起止,开口向下)表示,。向下取整, 运算称为 Floor,用数学符号 ⌊⌋ (下有起止,开口向上)表示。注意,向上取整和向下取整是针对有浮点数而言的; 若整数向上取整和向下取整, 都是整数本身。 四舍五入:更接近自己的整数; 把小数点后面
阅读全文
摘要:https://github.com/golang/crypto golang.org/x/crypto/
阅读全文
摘要:https://github.com/tjfoc/gmsm package mainimport ( "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "fmt" "github.com/tjfoc/gmsm/sm2" "math/big" "time")
阅读全文
摘要:https://www.certicom.com/content/certicom/en/41-an-example-of-an-elliptic-curve-group-over-f2m.html As a very small example, consider the field F24, d
阅读全文
摘要:POD(Plain Old Data,普通旧数据)类型是从 C++11 开始引入的概念,Plain 代表一个对象是一个普通类型,Old 代表一个对象可以与 C 兼容。通俗地讲,一个类、结构、共用体对象或非构造类型对象能通过二进制拷贝(如 memcpy())后还能保持其数据不变正常使用的就是POD类型
阅读全文
摘要:#include "1.h"#include "pthread.h"static pthread_mutex_t __guard_mutex;static pthread_once_t __once_control = PTHREAD_ONCE_INIT;static void makeRecusi
阅读全文
摘要:https://blog.csdn.net/c1ata/article/details/104934368?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-11.nonecase&depth_1-utm_source=distr
阅读全文
摘要:// 64kB stack#define FIBER_STACK 1024*64#include "ucontext.h"#include"stdlib.h"#include "stdio.h"ucontext_t child, parent;// The child thread will exe
阅读全文
摘要:const object - an object whose type is const-qualified, or a non-mutable subobject of a const object. Such object cannot be modified: attempt to do so
阅读全文
摘要:template <typename T, typename ...A>int g(T (*f)(A......), A... args){ return f(args..., 9);}int fz(int a,char b, ...){ return a+b;}int main(int argc,
阅读全文