上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: 一、ECC的简介 椭圆曲线算法可以看作是定义在特殊集合下数的运算,满足一定的规则。椭圆曲线在如下两个域中定义:Fp域和F2m域。 Fp域,素数域,p为素数; F2m域:特征为2的有限域,称之为二元域或者二进制扩展域。该域中,元素的个数为2m个。 以下只介绍素数域。 一些术语说明: 1) 椭圆曲线的阶 阅读全文
posted @ 2019-12-31 16:07 insistYuan 阅读(3396) 评论(0) 推荐(0)
摘要: 1 int do_crypt(char *outfile) 2 { 3 unsigned char outbuf[1024]; 4 int outlen, tmplen; 5 /* Bogus key and IV: we'd normally set these from 6 * another 阅读全文
posted @ 2019-12-31 15:36 insistYuan 阅读(3846) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <openssl/evp.h> main(int argc, char *argv[]) { EVP_MD_CTX mdctx; const EVP_MD *md; char mess1[] = "Test Message/n"; char m 阅读全文
posted @ 2019-12-31 14:22 insistYuan 阅读(1380) 评论(0) 推荐(0)
摘要: #include <stdio.h> typedef int (*function_pointer)(int a, int b); int func(int a, int b, function_pointer test) { test(a, b); } int add(int a, int b) 阅读全文
posted @ 2019-11-27 15:24 insistYuan 阅读(129) 评论(0) 推荐(0)
摘要: log.c: #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <time.h> #include <unistd.h> #inclu 阅读全文
posted @ 2019-11-27 11:32 insistYuan 阅读(221) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 #define SJXC_LOG_DEBUG(level, format, arg...) SJXC_log_msg_print(level, __FILE__, __func__, __LINE__, format, ##arg) 8 9... 阅读全文
posted @ 2019-09-27 12:23 insistYuan 阅读(500) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 4 main() 5 { 6 char *str = "123 abc 456 def 7"; 7 char buf[32]; 8 int j = 0, i = 0; 9 10 memset(buf, '\0', sizeof(buf)); 11 for (i = 0; i < strlen(str); ++ 阅读全文
posted @ 2019-08-21 18:27 insistYuan 阅读(1147) 评论(0) 推荐(0)
摘要: ACK 英文缩写: ACK (ACKnowledge Character) 中文译名: 确认字符 分类: 传输与接入 解释: 在数据通信传输中,接收站发给发送站的一种传输控制字符。它表示确认发来的数据已经接受无误。 NAK是否定应答或者非应答的缩写。它是一个用于数字通信中确认数据受到但是有小错误的信 阅读全文
posted @ 2019-08-14 20:10 insistYuan 阅读(4722) 评论(0) 推荐(0)
摘要: 最近虚拟机中安装了redhat6.3企业版,自带的yum用不起来,软件都找不到。 网上搜了一下说是没付钱。。。,需要改下yum源。操作步骤如下: 1.切换到yum源存放目录[root@rhel6 ~]# cd /etc/yum.repos.d/ 2.wget方式下载网易Centos yum源[roo 阅读全文
posted @ 2019-07-09 12:54 insistYuan 阅读(1403) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-07-07 17:20 insistYuan 阅读(2) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页