OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bin_len
(Results
1 - 5
of
5
) sorted by relevancy
/src/sys/external/isc/libsodium/dist/test/default/
sodium_utils.c
15
size_t
bin_len
, bin_len2;
local
55
bin_len
= (size_t) randombytes_uniform(sizeof buf1);
56
randombytes_buf(buf1,
bin_len
);
57
randombytes_buf(buf2,
bin_len
);
58
for (j = 0U; j <
bin_len
; j++) {
59
buf1_rev[
bin_len
- 1 - j] = buf1[j];
60
buf2_rev[
bin_len
- 1 - j] = buf2[j];
62
if (memcmp(buf1_rev, buf2_rev,
bin_len
) *
63
sodium_compare(buf1, buf2,
bin_len
) <
66
(unsigned int)
bin_len
);
[
all
...]
codecs.c
18
size_t
bin_len
, bin_len2;
local
25
sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &
bin_len
,
27
printf("%lu:%02x%02x%02x%02x\n", (unsigned long)
bin_len
,
32
sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &
bin_len
, NULL);
33
printf("%lu:%02x%02x%02x%02x\n", (unsigned long)
bin_len
,
37
if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &
bin_len
, &hex_end) != -1) {
43
if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &
bin_len
, &hex_end) != -1) {
52
&
bin_len
, &hex_end) != -1) {
59
&
bin_len
, &hex_end) != -1) {
66
&
bin_len
, NULL) != -1)
[
all
...]
/src/sys/external/isc/libsodium/dist/src/libsodium/sodium/
codecs.c
15
const unsigned char *const bin, const size_t
bin_len
)
22
if (
bin_len
>= SIZE_MAX / 2 || hex_maxlen <=
bin_len
* 2U) {
25
while (i <
bin_len
) {
43
const char *const ignore, size_t *const
bin_len
,
97
if (
bin_len
!= NULL) {
98
*
bin_len
= bin_pos;
171
sodium_base64_encoded_len(const size_t
bin_len
, const int variant)
175
return sodium_base64_ENCODED_LEN(
bin_len
, variant);
180
const unsigned char * const bin, const size_t
bin_len
,
[
all
...]
/src/sys/external/isc/libsodium/dist/src/libsodium/include/sodium/
utils.h
59
const unsigned char * const bin, const size_t
bin_len
);
64
const char * const ignore, size_t * const
bin_len
,
73
* Computes the required length to encode
BIN_LEN
bytes as a base64 string
76
#define sodium_base64_ENCODED_LEN(
BIN_LEN
, VARIANT) \
77
(((
BIN_LEN
) / 3U) * 4U + \
78
((((
BIN_LEN
) - ((
BIN_LEN
) / 3U) * 3U) | (((
BIN_LEN
) - ((
BIN_LEN
) / 3U) * 3U) >> 1)) & 1U) * \
79
(4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((
BIN_LEN
) - ((BIN_LEN) / 3U) * 3U)))) + 1U
[
all
...]
/src/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/argon2/
argon2-encoding.c
143
size_t
bin_len
= (max_len); \
146
&
bin_len
, &str_end, \
148
bin_len
> UINT32_MAX) { \
151
(len) = (uint32_t)
bin_len
; \
Completed in 17 milliseconds
Indexes created Sat Feb 21 08:20:20 UTC 2026