Home
last modified time | relevance | path

Searched refs:sodium_hex2bin (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/contrib/libsodium/test/default/
H A Dcodecs.c25 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, in main()
32 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL); in main()
37 if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) { in main()
43 if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) { in main()
51 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
58 if (sodium_hex2bin(buf1, sizeof buf1, hex, 13U, ":", in main()
65 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
71 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
78 if (sodium_hex2bin(buf1, sizeof buf1, hex, 12U, ":", in main()
H A Dxchacha20.c47 sodium_hex2bin(key, crypto_core_hchacha20_KEYBYTES, in tv_hchacha20()
49 sodium_hex2bin(in, crypto_core_hchacha20_INPUTBYTES, in tv_hchacha20()
51 sodium_hex2bin(out, crypto_core_hchacha20_OUTPUTBYTES, in tv_hchacha20()
57 sodium_hex2bin(constant, crypto_core_hchacha20_CONSTBYTES, in tv_hchacha20()
60 sodium_hex2bin(out, crypto_core_hchacha20_OUTPUTBYTES, in tv_hchacha20()
119 sodium_hex2bin(key, crypto_stream_xchacha20_KEYBYTES, in tv_stream_xchacha20()
121 sodium_hex2bin(nonce, crypto_stream_xchacha20_NONCEBYTES, in tv_stream_xchacha20()
123 sodium_hex2bin(out, XCHACHA20_OUT_MAX, in tv_stream_xchacha20()
232 sodium_hex2bin(key, crypto_secretbox_xchacha20poly1305_KEYBYTES, in tv_secretbox_xchacha20poly1305()
234 sodium_hex2bin(nonce, crypto_secretbox_xchacha20poly1305_NONCEBYTES, in tv_secretbox_xchacha20poly1305()
[all …]
H A Daead_aes256gcm.c3107 sodium_hex2bin(key, crypto_aead_aes256gcm_KEYBYTES, in tv()
3111 sodium_hex2bin(nonce, crypto_aead_aes256gcm_NPUBBYTES, in tv()
3116 sodium_hex2bin(message, message_len, in tv()
3121 sodium_hex2bin(ad, ad_len, in tv()
3128 sodium_hex2bin(expected_ciphertext, message_len, in tv()
3132 sodium_hex2bin(expected_ciphertext + message_len, crypto_aead_aes256gcm_ABYTES, in tv()
H A Ded25519_convert.c57 sodium_hex2bin(ed25519_pk, crypto_sign_ed25519_PUBLICKEYBYTES, in main()
62 sodium_hex2bin(ed25519_pk, crypto_sign_ed25519_PUBLICKEYBYTES, in main()
67 sodium_hex2bin(ed25519_pk, crypto_sign_ed25519_PUBLICKEYBYTES, in main()
H A Dpwhash_scrypt.c100 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
103 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv()
149 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
152 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2()
H A Dsign.c1208 sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES, in main()
1217 sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES, in main()
1226 sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES, in main()
1267 sodium_hex2bin(sk, crypto_sign_SECRETKEYBYTES, in main()
1270 sodium_hex2bin(pk, crypto_sign_PUBLICKEYBYTES, in main()
H A Dchacha20.c33 sodium_hex2bin((unsigned char *)key, sizeof key, tests[i].key_hex, in tv()
35 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex, in tv()
120 sodium_hex2bin((unsigned char *)key, sizeof key, tests[i].key_hex, in tv_ietf()
122 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex, in tv_ietf()
H A Dgenerichash.c1309 sodium_hex2bin(key, crypto_generichash_KEYBYTES_MAX, in tv()
1313 sodium_hex2bin(expected_out, crypto_generichash_BYTES_MAX, in tv()
1318 sodium_hex2bin(in, in_len, tests[i].in_hex, strlen(tests[i].in_hex), in tv()
H A Dpwhash_argon2i.c88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
91 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv()
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
143 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2()
H A Dpwhash_argon2id.c88 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv()
91 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv()
140 sodium_hex2bin((unsigned char *) passwd, sizeof passwd, in tv2()
143 sodium_hex2bin(salt, sizeof salt, tests[i].salt_hex, in tv2()
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dutils.h62 int sodium_hex2bin(unsigned char * const bin, const size_t bin_maxlen,
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dcodecs.c41 sodium_hex2bin(unsigned char *const bin, const size_t bin_maxlen, in sodium_hex2bin() function
/freebsd/sys/contrib/libsodium/
H A DChangeLog283 - In addition to sodium_bin2hex(), sodium_hex2bin() is now a
428 - sodium_hex2bin() has been added to complement sodium_bin2hex().