首页 技术 正文
技术 2022年11月13日
0 收藏 647 点赞 3,187 浏览 1288 个字

ZeroMQ 官方地址 :http://api.zeromq.org/4-0:zmq_curve_keypair

zmq_curve_keypair(3)     ØMQ Manual – ØMQ/4.1.0

Name

zmq_curve_keypair – 生成一个新的CURVE 密钥对

Synopsis

int zmq_curve_keypair (char *z85_public_key, char *z85_secret_key);

Description

函数zmq_curve_keypair()会返回一个随机生成的密钥对,包括一个公钥和一个密钥。调用者提供两个存储空间,每个长度至少是8 bit * 41大,用来存储生成的密钥对。这两个密钥都是经过zmq_z85_encode(3)生成的。

Return value

函数zmq_curve_keypair()执行成功会返回0,否则会返回 -1,并且设置errno为下列值。

Errors

  ENOTSUP

    此版本的ZMQ链接库libzmq 不支持加密(libsodium)。

Example

  创建一对新的curve密钥对

char public_key [];
char secret_key [];
int rc = crypto_box_keypair (public_key, secret_key); assert (rc == );

See also

zmq_z85_decode(3)   zmq_z85_encode(3)   zmq_curve(7)

Authors

This page was written by the ØMQ community. To make a change please read the ØMQ Contribution Policy at http://www.zeromq.org/docs:contributing.

Web site design and content is copyright (c) 2007-2012 iMatix Corporation. Contact us for professional support. Site content licensed under the Creative Commons Attribution-Share Alike 3.0 License. ØMQ is copyright (c) Copyright (c) 2007-2012 iMatix Corporation and Contributors. ØMQ is free software licensed under the LGPL. ØMQ, ZeroMQ, and 0MQ are trademarks of iMatix Corporation. Terms of Use — Privacy

Policy

更多 ZeroMQ API :http://www.cnblogs.com/fengbohello/p/4230135.html

翻译:风波

mail : fengbohello@qq.com

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,999
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,511
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,357
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,140
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,770
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,848