ndnSIM加入identity based signatures

IBS代码:https://github.com/junfengyu/IBS-Scheme

需要修改的地方 bufbn.c

ndnSIM加入identity based signatures

 joseph_ibs_scheme.c 里面的hash_buffer

ndnSIM加入identity based signatures

结果

ndnSIM加入identity based signatures

 

在ndnSIM\ns-3\src\core\model目录下创建IBS文件夹,存放IBS的代码

ndnSIM加入identity based signatures

 

ndnSIM\ns-3\src\core\wscript里面加入

IBS目录下的头文件加入此处

eg. 'model/IBS/xxx.h'

ndnSIM加入identity based signatures

源文件加入此处

eg. 'model/IBS/xxx.c'

ndnSIM加入identity based signatures

 

 

最后加入openssl的库

 

ndnSIM加入identity based signatures

 

最后重新编译ndnSIM即可

 

如果还是报错(安装太久,错误怎么解决的记不清楚了)

1、如果是IBS里面的buffer错了,个人猜测是和ndnSIM里面的buffer重名了,可以将IBS下的buffer.h的结构体换一个名字

2、把IBS下得.c文件换为.cc