2023-10-21 01:50:38 +02:00
|
|
|
= zmq_z85_decode(3)
|
2013-09-15 20:07:33 +02:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== NAME
|
2013-09-15 20:07:33 +02:00
|
|
|
zmq_z85_decode - decode a binary key from Z85 printable text
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== SYNOPSIS
|
2014-08-14 00:00:00 +02:00
|
|
|
*uint8_t *zmq_z85_decode (uint8_t *dest, const char *string);*
|
2013-09-15 20:07:33 +02:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== DESCRIPTION
|
2013-09-15 20:07:33 +02:00
|
|
|
The _zmq_z85_decode()_ function shall decode 'string' into 'dest'.
|
|
|
|
The length of 'string' shall be divisible by 5. 'dest' must be large
|
|
|
|
enough for the decoded value (0.8 x strlen (string)).
|
|
|
|
|
|
|
|
The encoding shall follow the ZMQ RFC 32 specification.
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== RETURN VALUE
|
2013-09-15 20:07:33 +02:00
|
|
|
The _zmq_z85_decode()_ function shall return 'dest' if successful, else it
|
|
|
|
shall return NULL.
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== EXAMPLE
|
2013-09-15 20:07:33 +02:00
|
|
|
.Decoding a CURVE key
|
|
|
|
----
|
2014-08-14 00:00:00 +02:00
|
|
|
const char decoded [] = "rq:rM>}U?@Lns47E1%kR.o@n%FcmmsL/@{H8]yf7";
|
2013-09-15 20:07:33 +02:00
|
|
|
uint8_t public_key [32];
|
|
|
|
zmq_z85_decode (public_key, decoded);
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== SEE ALSO
|
2023-11-03 11:36:47 +01:00
|
|
|
* xref:zmq_z85_encode.adoc[zmq_z85_encode]
|
|
|
|
* xref:zmq_curve_keypair.adoc[zmq_curve_keypair]
|
|
|
|
* xref:zmq_curve_public.adoc[zmq_curve_public]
|
|
|
|
* xref:zmq_curve.adoc[zmq_curve]
|
2013-09-15 20:07:33 +02:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== AUTHORS
|
2013-09-15 20:07:33 +02:00
|
|
|
This page was written by the 0MQ community. To make a change please
|
2023-11-22 23:18:23 +01:00
|
|
|
read the 0MQ Contribution Policy at <https://zeromq.org/how-to-contribute/>.
|