mp-spdz测试版本:0.3.0
使用到的测试程序:./Program/Source/test_sbitint.mpc

  1. 首先对程序进行编译:./compile.py -B 32 test_sbitint
    输出:
ubuntu@ubuntu:~/spdz030$ ./compile.py -B 32 test_sbitint
Default bit length: 32
Default security parameter: 40
Compiling file /home/ubuntu/spdz030/Programs/Source/test_sbitint.mpc
Not merging instructions in tape test_sbitint-0
Writing to /home/ubuntu/spdz030/Programs/Schedules/test_sbitint.sch
Writing to /home/ubuntu/spdz030/Programs/Bytecode/test_sbitint-0.bc
Program requires at most:4404 bit triples
  1. 执行程序
    首先是不将结果输出到文件,直接打印在屏幕上,使用命令./emulate.x test_sbitint
    输出结果为:
ubuntu@ubuntu:~/spdz030$ ./emulate.x test_sbitint
Trying to run 64-bit computation
16: 0 5 0x5
17: 0 1 0x1
18: 0 0 0x0
19: 0 1 0x1
20: 0 1 0x1
21: 0 4 0x4
23: 0 6 0x6
24: 0 6 0x6
25: 0 6 0x6
27: -4294967296 -1 0xffffffff
28: 0 2 0x2
29: 0 1 0x1
31: 0 4 0x4
35: 0 -3 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
37: 0 2 0x2
38: 0 2 0x2
The following timing is inclusive preprocessing.
Time = 0.00297332 seconds
Data sent = 0 MB in ~1 rounds (party 0)
Global data sent = 0 MB (all parties)

使用-OF将结果输出到文件里,使用命令:./emulate.x -OF outPut test_sbitint
outPut是输出的文件名一部分,spdz库会根据这个名字,创建文件outPut-P0-0,结果被保存在这里面。
输出信息:

ubuntu@ubuntu:~/spdz030$ ./emulate.x -OF outPut  test_sbitint
Trying to run 64-bit computation
The following timing is inclusive preprocessing.
Time = 0.00320688 seconds
Data sent = 0 MB in ~1 rounds (party 0)
Global data sent = 0 MB (all parties)

运行命令后,屏幕上没有了输出结果,在根目录文件夹内多了一个文件

查看里面的内容:

ubuntu@ubuntu:~/spdz030$ cat outPut-P0-0
16: 0 5 0x5
17: 0 1 0x1
18: 0 0 0x0
19: 0 1 0x1
20: 0 1 0x1
21: 0 4 0x4
23: 0 6 0x6
24: 0 6 0x6
25: 0 6 0x6
27: -4294967296 -1 0xffffffff
28: 0 2 0x2
29: 0 1 0x1
31: 0 4 0x4
35: 0 -3 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
35: 0 5 0x5
(上面为部分结果,以下内容省略)

MP-SPDZ开源库——将结果输出到文件相关推荐

  1. SPDZ开源库——基础OT的用法

    最近研究了spdz源代码里的BaseOT.h 写了两个测试程序.第一个是OT里的发送者,第二个是接受者. useOT.cpp #include <iostream>#include &qu ...

  2. MPC之SPDZ开源库安装过程中可能出现的错误

    第一个错误: 执行 Scripts/tldr.sh 时出现:cp: cannot stat 'bin/Linux-avx2/*': No such file or directory 错误原因:你下的 ...

  3. android 生成 资源文件,SVG-Android开源库——SVG生成Vector资源文件的编辑预览工具...

    Vector矢量图在Android项目中的利用愈来愈广泛,但是如果你想用Android Studio自带的工具将SVG图片转化成Vector资源文件却是相当麻烦,首先能支持的SVG规范较少,其次操作流 ...

  4. 采用 bsdiff 开源库 Android 的增量更新,差分更新 服务器端客户端

    Incremental-update-master 项目地址: ccj659/Incremental-update-master 简介:采用 bsdiff 开源库 Android 的增量更新,差分更新 ...

  5. react-native 为本地js和开源库的js编写.d.ts声明文件

    读书不觉已春深 !明日清明节 在使用Typescript编写程序RN过程中遇到困扰,且不论react,不论在浏览器中,只论写react-native的APP,怎么使用 declare声明文件 和 na ...

  6. 机器视觉、模式识别开源库汇总

    机器视觉.模式识别开源库汇总 机器视觉课堂 昨天 版权归机器视觉课堂所有,转载请注明.谢谢: https://mp.weixin.qq.com/s/HuzMLbSMSzpTxvMhUud2Jw 一.开 ...

  7. 开源库nothings/stb的介绍及使用(图像方面)

    GitHub上有个开源的stb库,Star数已过万,地址为https://github.com/nothings/stb,为何叫stb,是用的作者名字的缩写Sean T. Barrett.此库仅包含头 ...

  8. 集合70多种推荐算法,东北大学老师用Java写了一个开源库,在GitHub上收获近1500个Star...

     [AI科技大本营导读]在经过一年多的开发工作之后,LibRec 3.0 版本终于发布了.LibRec 是一个基于 Java 的开源算法工具库,覆盖了 70 余个各类型推荐算法,可以有效解决评分预测 ...

  9. Kimera:一个基于度量语义的SLAM开源库

    标题:Kimera:an Open-Source Library for Real-Time Metric-Semantic Localization and Mapping 作者:Antoni Ro ...

  10. android button 添加事件_2019最新Android常用开源库总结

    前言 收集了一些比较常见的开源库,特此记录(已收录350+).另外,本文将持续更新,大家有关于Android 优秀的开源库,也可以在下面留言. 一 .基本控件 TextView HTextView 一 ...

最新文章

  1. u-boot中filesize环境变量【转载】
  2. linux命令find命令详解
  3. tcp协议头窗口,滑动窗口,流控制,拥塞控制关系
  4. 替换字符串中指定的字符--随手源码
  5. 抢红包的红包生成算法
  6. Docker 阿里云加速和 docker-compose 国内镜像
  7. 关于VMware虚拟机安装windows 7系统
  8. mybaitis快速生成_关于Mybatis-Plus代码生成器快速使用心得
  9. *******clob问题***********
  10. 电商会员等级制度总结
  11. 常用路由协议的分析及比较/RIP/IGRP/OSPF/BGP
  12. 南山谷主:面包屑导航是什么意思?对SEO有何作用?
  13. 棒棒糖也能画成图—— ggplot2绘制棒棒糖图/哑铃图
  14. uiview 渐变_UIView的背景渐变
  15. 判断NSString是否含有某字符rangeOfString
  16. 不站队的UCloud,才是最可怕的
  17. malloc函数分配内存失败的原因及解决方法
  18. c4d python使用方法_c4d 有没有python的技术说明文档_c4d python插件安装教程
  19. 多级放大电路超详细分析
  20. 【转】VS2013自带报表+打印功能

热门文章

  1. xpath之根据节点获取兄弟节点
  2. 公司女同事深夜11点让我去她住处修电脑,原来是C盘爆红,看我一招搞定女同事....的电脑
  3. 本地访问阿里云服务器不需要密码,怎么操作
  4. TiDB v5.3.0->v5.4.2->v6.1.0升级、TiDB/PD/TiKV/TiFlash扩缩容、TiSpark部署指北
  5. 获取非行间样式和行间样式方法
  6. 公告抄袭我文章的掘金账号:[freesan44](https://juejin.cn/user/1063982986970984) 和公众号:小集
  7. Android保活方法
  8. 快手之家(aardio.net) - 开头难
  9. Unsupported operation: dart:isolate is not supported on dart4web
  10. 计算机能玩什么游戏,《梦幻西游网页版》官网——网易官方正版出品