Home
last modified time | relevance | path

Searched refs:crypto_box_PUBLICKEYBYTES (Results 1 – 25 of 133) sorted by relevance

123456

/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
28 unsigned char epk[crypto_box_PUBLICKEYBYTES]; in crypto_box_seal()
36 ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen, in crypto_box_seal()
38 memcpy(c, epk, crypto_box_PUBLICKEYBYTES); in crypto_box_seal()
58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
59 return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
60 clen - crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
/dports/security/libsodium/libsodium-1.0.18/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES);
17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES);
28 unsigned char epk[crypto_box_PUBLICKEYBYTES];
35 memcpy(c, epk, crypto_box_PUBLICKEYBYTES);
37 ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen,
58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES);
59 return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES,
60 clen - crypto_box_PUBLICKEYBYTES,
/dports/security/py-pynacl/PyNaCl-1.4.0/src/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
28 unsigned char epk[crypto_box_PUBLICKEYBYTES]; in crypto_box_seal()
35 memcpy(c, epk, crypto_box_PUBLICKEYBYTES); in crypto_box_seal()
37 ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen, in crypto_box_seal()
58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
59 return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
60 clen - crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/libsodium-sys-0.2.7/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
28 unsigned char epk[crypto_box_PUBLICKEYBYTES]; in crypto_box_seal()
36 ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen, in crypto_box_seal()
38 memcpy(c, epk, crypto_box_PUBLICKEYBYTES); in crypto_box_seal()
58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
59 return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
60 clen - crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
/dports/dns/dnscrypt-wrapper/dnscrypt-wrapper-0.4.2/
H A Ddnscrypt.c4 uint8_t pk[crypto_box_PUBLICKEYBYTES];
5 uint8_t server_pk[crypto_box_PUBLICKEYBYTES];
12 h12(const uint8_t pk[crypto_box_PUBLICKEYBYTES], in h12() argument
30 const uint8_t pk[crypto_box_PUBLICKEYBYTES], in cache_get() argument
37 …(cached->pk[crypto_box_PUBLICKEYBYTES - 1] ^ use_xchacha20) == pk[crypto_box_PUBLICKEYBYTES - 1] && in cache_get()
46 const uint8_t pk[crypto_box_PUBLICKEYBYTES], in cache_set() argument
52 memcpy(cached->pk, pk, crypto_box_PUBLICKEYBYTES); in cache_set()
118 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES == 32U); in dnscrypt_key_to_fingerprint()
126 if (key_pos >= crypto_box_PUBLICKEYBYTES) { in dnscrypt_key_to_fingerprint()
135 _dnscrypt_parse_char(uint8_t key[crypto_box_PUBLICKEYBYTES], in _dnscrypt_parse_char() argument
[all …]
H A Ddnscrypt.h87 …(DNSCRYPT_MAGIC_HEADER_LEN + crypto_box_PUBLICKEYBYTES + crypto_box_HALF_NONCEBYTES + crypto_box_M…
100 uint8_t crypt_publickey[crypto_box_PUBLICKEYBYTES];
176 uint8_t key[crypto_box_PUBLICKEYBYTES]);
219 uint8_t publickey[crypto_box_PUBLICKEYBYTES];
H A Dcert.h19 uint8_t server_publickey[crypto_box_PUBLICKEYBYTES];
33 uint8_t server_publickey[crypto_box_PUBLICKEYBYTES];
/dports/security/py-pynacl/PyNaCl-1.4.0/tests/
H A Dtest_public.py21 from nacl.bindings import crypto_box_PUBLICKEYBYTES, crypto_box_SECRETKEYBYTES
28 k1 = PublicKey(b"\x00" * crypto_box_PUBLICKEYBYTES)
29 k2 = PublicKey(b"\x00" * crypto_box_PUBLICKEYBYTES)
34 k1 = PublicKey(b"\x00" * crypto_box_PUBLICKEYBYTES)
35 k2 = PublicKey(b"\x00" * crypto_box_PUBLICKEYBYTES)
40 b"\x00" * crypto_box_PUBLICKEYBYTES,
41 PublicKey(b"\x01" * crypto_box_PUBLICKEYBYTES),
42 PublicKey(b"\x00" * (crypto_box_PUBLICKEYBYTES - 1) + b"\x01"),
45 k1 = PublicKey(b"\x00" * crypto_box_PUBLICKEYBYTES)
/dports/net/libzmq4/zeromq-4.3.4/src/
H A Dcurve_client_tools.hpp41 #if crypto_box_NONCEBYTES != 24 || crypto_box_PUBLICKEYBYTES != 32 \
87 memcpy (hello + 80, cn_public_, crypto_box_PUBLICKEYBYTES); in produce_hello()
240 const uint8_t (&curve_public_key_)[crypto_box_PUBLICKEYBYTES], in curve_client_tools_t()
242 const uint8_t (&curve_server_key_)[crypto_box_PUBLICKEYBYTES]) in curve_client_tools_t()
245 memcpy (public_key, curve_public_key_, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
247 memcpy (server_key, curve_server_key_, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
251 memset (cn_public, 0, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
283 uint8_t public_key[crypto_box_PUBLICKEYBYTES];
289 uint8_t cn_public[crypto_box_PUBLICKEYBYTES];
295 uint8_t server_key[crypto_box_PUBLICKEYBYTES];
[all …]
H A Dcurve_server.hpp66 uint8_t _cn_public[crypto_box_PUBLICKEYBYTES];
72 uint8_t _cn_client[crypto_box_PUBLICKEYBYTES];
/dports/net/py-pyzmq/pyzmq-22.3.0/bundled/zeromq/src/
H A Dcurve_client_tools.hpp41 #if crypto_box_NONCEBYTES != 24 || crypto_box_PUBLICKEYBYTES != 32 \
87 memcpy (hello + 80, cn_public_, crypto_box_PUBLICKEYBYTES); in produce_hello()
240 const uint8_t (&curve_public_key_)[crypto_box_PUBLICKEYBYTES], in curve_client_tools_t()
242 const uint8_t (&curve_server_key_)[crypto_box_PUBLICKEYBYTES]) in curve_client_tools_t()
245 memcpy (public_key, curve_public_key_, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
247 memcpy (server_key, curve_server_key_, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
251 memset (cn_public, 0, crypto_box_PUBLICKEYBYTES); in curve_client_tools_t()
283 uint8_t public_key[crypto_box_PUBLICKEYBYTES];
289 uint8_t cn_public[crypto_box_PUBLICKEYBYTES];
295 uint8_t server_key[crypto_box_PUBLICKEYBYTES];
[all …]
H A Dcurve_server.hpp66 uint8_t _cn_public[crypto_box_PUBLICKEYBYTES];
72 uint8_t _cn_client[crypto_box_PUBLICKEYBYTES];
/dports/security/py-pynacl/PyNaCl-1.4.0/src/nacl/bindings/
H A Dcrypto_box.py26 crypto_box_PUBLICKEYBYTES = lib.crypto_box_publickeybytes() variable
41 pk = ffi.new("unsigned char[]", crypto_box_PUBLICKEYBYTES)
50 ffi.buffer(pk, crypto_box_PUBLICKEYBYTES)[:],
79 pk = ffi.new("unsigned char[]", crypto_box_PUBLICKEYBYTES)
88 ffi.buffer(pk, crypto_box_PUBLICKEYBYTES)[:],
107 if len(pk) != crypto_box_PUBLICKEYBYTES:
138 if len(pk) != crypto_box_PUBLICKEYBYTES:
164 if len(pk) != crypto_box_PUBLICKEYBYTES:
256 if len(pk) != crypto_box_PUBLICKEYBYTES:
298 if len(pk) != crypto_box_PUBLICKEYBYTES:
/dports/net-im/tox/c-toxcore-0.2.13/other/fun/
H A Dstrkey.c50 for (i = 0; i < crypto_box_PUBLICKEYBYTES; i++) { in print_key()
61 unsigned char public_key[crypto_box_PUBLICKEYBYTES]; // null terminator in main()
65 unsigned char desired_bin[crypto_box_PUBLICKEYBYTES]; // null terminator in main()
79 if (block_length > crypto_box_PUBLICKEYBYTES) { in main()
115 for (i = 0; i <= crypto_box_PUBLICKEYBYTES - len; i ++) { in main()
H A Dminimal-save-generator.c21 unsigned char public_key[crypto_box_PUBLICKEYBYTES]; in main()
32 char public_key_str[crypto_box_PUBLICKEYBYTES * 2 + 1]; in main()
48 for (size_t i = 0; i < crypto_box_PUBLICKEYBYTES; i ++) { in main()
/dports/security/py-libnacl/libnacl-1.6.1/tests/unit/
H A Dtest_raw_public.py17 self.assertEqual(len(pk1), libnacl.crypto_box_PUBLICKEYBYTES)
18 self.assertEqual(len(sk1), libnacl.crypto_box_PUBLICKEYBYTES)
19 self.assertEqual(len(pk2), libnacl.crypto_box_PUBLICKEYBYTES)
20 self.assertEqual(len(sk2), libnacl.crypto_box_PUBLICKEYBYTES)
21 self.assertEqual(len(pk3), libnacl.crypto_box_PUBLICKEYBYTES)
22 self.assertEqual(len(sk3), libnacl.crypto_box_PUBLICKEYBYTES)
/dports/net/cjdns/cjdns-cjdns-v21.1/node_build/dependencies/cnacl/curvecp/
H A Dcurvecpprintkey.c8 unsigned char pk[crypto_box_PUBLICKEYBYTES];
9 unsigned char out[crypto_box_PUBLICKEYBYTES * 2 + 1];
37 for (j = 0;j < crypto_box_PUBLICKEYBYTES;++j) { in main()
/dports/dns/unbound/unbound-1.14.0/dnscrypt/
H A Ddnscrypt.c32 (DNSCRYPT_MAGIC_HEADER_LEN + crypto_box_PUBLICKEYBYTES + \
53 (1 + crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES)
70 uint8_t client_publickey[crypto_box_PUBLICKEYBYTES];
92 memcpy(key + 1, pk, crypto_box_PUBLICKEYBYTES); in dnsc_shared_secrets_cache_key()
166 return hashlittle(pk, crypto_box_PUBLICKEYBYTES, h); in dnsc_nonce_cache_key_hash()
194 memcpy(k->client_publickey, pk, crypto_box_PUBLICKEYBYTES); in dnsc_nonce_cache_insert()
218 const uint8_t pk[crypto_box_PUBLICKEYBYTES], in dnsc_nonces_lookup() argument
226 memcpy(k.client_publickey, pk, crypto_box_PUBLICKEYBYTES); in dnsc_nonces_lookup()
638 if (key_pos >= crypto_box_PUBLICKEYBYTES) { in dnsc_key_to_fingerprint()
832 crypto_box_PUBLICKEYBYTES) == 0) { in dnsc_parse_keys()
[all …]
H A Ddnscrypt.h32 …(DNSCRYPT_MAGIC_HEADER_LEN + crypto_box_PUBLICKEYBYTES + crypto_box_HALF_NONCEBYTES + crypto_box_M…
45 uint8_t crypt_publickey[crypto_box_PUBLICKEYBYTES];
86 uint8_t publickey[crypto_box_PUBLICKEYBYTES];
/dports/security/p5-Crypt-Sodium/Crypt-Sodium-0.11/lib/Crypt/
H A DSodium.pm314 unless (length($pk) == crypto_box_PUBLICKEYBYTES) {
315 die "[fatal]: public key must be exactly " . crypto_box_PUBLICKEYBYTES . " bytes long.\n";
328 unless (length($pk) == crypto_box_PUBLICKEYBYTES) {
329 die "[fatal]: public key must be exactly " . crypto_box_PUBLICKEYBYTES . " bytes long.\n";
/dports/security/py-libnacl/libnacl-1.6.1/libnacl/
H A D__init__.py120 crypto_box_PUBLICKEYBYTES = nacl.crypto_box_publickeybytes() variable
170 pk = ctypes.create_string_buffer(crypto_box_PUBLICKEYBYTES)
182 pk = ctypes.create_string_buffer(crypto_box_PUBLICKEYBYTES)
194 pk = ctypes.create_string_buffer(crypto_box_PUBLICKEYBYTES)
206 if len(pk) != crypto_box_PUBLICKEYBYTES:
224 if len(pk) != crypto_box_PUBLICKEYBYTES:
251 if len(pk) != crypto_box_PUBLICKEYBYTES:
268 if len(pk) != crypto_box_PUBLICKEYBYTES:
291 if len(pk) != crypto_box_PUBLICKEYBYTES:
385 if len(pk) != crypto_box_PUBLICKEYBYTES:
[all …]
/dports/net/cjdns/cjdns-cjdns-v21.1/node_build/dependencies/cnacl/tests/
H A Dbox7.c6 unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
8 unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
H A Dbox8.c7 unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
9 unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/libsodium-sys-0.2.7/libsodium/test/default/
H A Dbox8.c6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
H A Dbox7.c6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];

123456