Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/mbedtls-3.5.0/tests/include/test/
Dcerts.h37 extern const size_t mbedtls_test_cas_len[];
41 extern const size_t mbedtls_test_cas_der_len[];
46 extern const size_t mbedtls_test_cas_pem_len;
67 extern const size_t mbedtls_test_ca_crt_ec_pem_len;
68 extern const size_t mbedtls_test_ca_key_ec_pem_len;
69 extern const size_t mbedtls_test_ca_pwd_ec_pem_len;
70 extern const size_t mbedtls_test_ca_key_rsa_pem_len;
71 extern const size_t mbedtls_test_ca_pwd_rsa_pem_len;
72 extern const size_t mbedtls_test_ca_crt_rsa_sha1_pem_len;
73 extern const size_t mbedtls_test_ca_crt_rsa_sha256_pem_len;
[all …]
/mbedtls-3.5.0/library/
Dpsa_crypto_driver_wrappers.h39 size_t key_buffer_size,
42 size_t input_length,
44 size_t signature_size,
45 size_t *signature_length);
50 size_t key_buffer_size,
53 size_t input_length,
55 size_t signature_length);
59 const uint8_t *key_buffer, size_t key_buffer_size,
60 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
61 uint8_t *signature, size_t signature_size, size_t *signature_length);
[all …]
Dbignum_core.h109 size_t mbedtls_mpi_core_clz(mbedtls_mpi_uint a);
121 size_t mbedtls_mpi_core_bitlen(const mbedtls_mpi_uint *A, size_t A_limbs);
130 size_t A_limbs);
146 size_t A_limbs);
171 size_t limbs,
197 size_t limbs,
215 size_t X_limbs,
217 size_t input_length);
237 size_t X_limbs,
239 size_t input_length);
[all …]
Dpsa_crypto_core.h50 const uint8_t *a, const uint8_t *b, size_t n) in mbedtls_psa_safer_memcmp()
52 size_t i; in mbedtls_psa_safer_memcmp()
91 size_t lock_count;
97 size_t bytes;
223 size_t buffer_length);
247 size_t data_length);
288 const uint8_t *data, size_t data_length,
289 uint8_t *key_buffer, size_t key_buffer_size,
290 size_t *key_buffer_length, size_t *bits);
316 const uint8_t *key_buffer, size_t key_buffer_size,
[all …]
Dbignum_core.c36 size_t mbedtls_mpi_core_clz(mbedtls_mpi_uint a) in mbedtls_mpi_core_clz()
38 size_t j; in mbedtls_mpi_core_clz()
52 size_t mbedtls_mpi_core_bitlen(const mbedtls_mpi_uint *A, size_t A_limbs) in mbedtls_mpi_core_bitlen()
54 size_t i, j; in mbedtls_mpi_core_bitlen()
107 size_t A_limbs) in mbedtls_mpi_core_bigendian_to_host()
140 size_t A_limbs) in mbedtls_mpi_core_uint_le_mpi()
147 for (size_t i = 1; i < A_limbs; i++) { in mbedtls_mpi_core_uint_le_mpi()
160 size_t limbs, in mbedtls_mpi_core_cond_assign()
172 size_t limbs, in mbedtls_mpi_core_cond_swap()
182 for (size_t i = 0; i < limbs; i++) { in mbedtls_mpi_core_cond_swap()
[all …]
Dpsa_crypto_rsa.h39 size_t data_length,
70 const uint8_t *data, size_t data_length,
71 uint8_t *key_buffer, size_t key_buffer_size,
72 size_t *key_buffer_length, size_t *bits);
85 size_t data_size,
86 size_t *data_length);
114 const uint8_t *key_buffer, size_t key_buffer_size,
115 uint8_t *data, size_t data_size, size_t *data_length);
138 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length);
175 const uint8_t *key_buffer, size_t key_buffer_size,
[all …]
Dconstant_time_internal.h62 size_t mbedtls_ct_size_mask(size_t value);
98 size_t mbedtls_ct_size_mask_ge(size_t x,
99 size_t y);
114 unsigned mbedtls_ct_size_bool_eq(size_t x,
115 size_t y);
149 size_t limbs);
181 void mbedtls_ct_mpi_uint_cond_assign(size_t n,
232 size_t len,
233 size_t c1, size_t c2);
263 size_t offset,
[all …]
Dpsa_crypto_aead.h81 const uint8_t *key_buffer, size_t key_buffer_size,
83 const uint8_t *nonce, size_t nonce_length,
84 const uint8_t *additional_data, size_t additional_data_length,
85 const uint8_t *plaintext, size_t plaintext_length,
86 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
144 const uint8_t *key_buffer, size_t key_buffer_size,
146 const uint8_t *nonce, size_t nonce_length,
147 const uint8_t *additional_data, size_t additional_data_length,
148 const uint8_t *ciphertext, size_t ciphertext_length,
149 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length);
[all …]
Dpsa_crypto_ecp.h46 size_t curve_bits,
48 size_t data_length,
88 const uint8_t *data, size_t data_length,
89 uint8_t *key_buffer, size_t key_buffer_size,
90 size_t *key_buffer_length, size_t *bits);
103 size_t data_size,
104 size_t *data_length);
132 const uint8_t *key_buffer, size_t key_buffer_size,
133 uint8_t *data, size_t data_size, size_t *data_length);
156 uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length);
[all …]
Dpk_wrap.h42 size_t (*get_bitlen)(const void *);
49 const unsigned char *hash, size_t hash_len,
50 const unsigned char *sig, size_t sig_len);
54 const unsigned char *hash, size_t hash_len,
55 unsigned char *sig, size_t sig_size, size_t *sig_len,
56 int (*f_rng)(void *, unsigned char *, size_t),
62 const unsigned char *hash, size_t hash_len,
63 const unsigned char *sig, size_t sig_len,
68 const unsigned char *hash, size_t hash_len,
69 unsigned char *sig, size_t sig_size, size_t *sig_len,
[all …]
Dconstant_time.c90 size_t n) in mbedtls_ct_memcmp()
92 size_t i = 0; in mbedtls_ct_memcmp()
138 size_t mbedtls_ct_size_mask(size_t value) in mbedtls_ct_size_mask()
186 static size_t mbedtls_ct_size_mask_lt(size_t x, in mbedtls_ct_size_mask_lt()
187 size_t y) in mbedtls_ct_size_mask_lt()
190 const size_t sub = x - y; in mbedtls_ct_size_mask_lt()
193 const size_t sub1 = sub >> (sizeof(sub) * 8 - 1); in mbedtls_ct_size_mask_lt()
196 const size_t mask = mbedtls_ct_size_mask(sub1); in mbedtls_ct_size_mask_lt()
201 size_t mbedtls_ct_size_mask_ge(size_t x, in mbedtls_ct_size_mask_ge()
202 size_t y) in mbedtls_ct_size_mask_ge()
[all …]
Dpsa_crypto_cipher.h40 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
70 const uint8_t *key_buffer, size_t key_buffer_size,
100 const uint8_t *key_buffer, size_t key_buffer_size,
127 const uint8_t *iv, size_t iv_length);
152 const uint8_t *input, size_t input_length,
153 uint8_t *output, size_t output_size, size_t *output_length);
183 uint8_t *output, size_t output_size, size_t *output_length);
246 size_t key_buffer_size,
249 size_t iv_length,
251 size_t input_length,
[all …]
/mbedtls-3.5.0/include/psa/
Dcrypto.h334 size_t bits);
358 static size_t psa_get_key_bits(const psa_key_attributes_t *attributes);
653 size_t data_length,
748 size_t data_size,
749 size_t *data_length);
823 size_t data_size,
824 size_t *data_length);
867 size_t input_length,
869 size_t hash_size,
870 size_t *hash_length);
[all …]
Dcrypto_se_driver.h108 const size_t MBEDTLS_PRIVATE(persistent_data_size);
202 size_t input_length);
222 size_t mac_size,
223 size_t *p_mac_length);
243 size_t mac_length);
273 size_t input_length,
277 size_t mac_size,
278 size_t *p_mac_length);
302 size_t input_length,
306 size_t mac_length);
[all …]
/mbedtls-3.5.0/tests/src/
Dcerts.c1312 const size_t mbedtls_test_ca_crt_ec_pem_len =
1314 const size_t mbedtls_test_ca_key_ec_pem_len =
1316 const size_t mbedtls_test_ca_pwd_ec_pem_len =
1318 const size_t mbedtls_test_ca_key_rsa_pem_len =
1320 const size_t mbedtls_test_ca_pwd_rsa_pem_len =
1322 const size_t mbedtls_test_ca_crt_rsa_sha1_pem_len =
1324 const size_t mbedtls_test_ca_crt_rsa_sha256_pem_len =
1327 const size_t mbedtls_test_ca_crt_ec_der_len =
1329 const size_t mbedtls_test_ca_key_ec_der_len =
1331 const size_t mbedtls_test_ca_pwd_ec_der_len = 0;
[all …]
/mbedtls-3.5.0/tests/include/test/drivers/
Dcipher.h34 size_t forced_output_length;
54 const uint8_t *key, size_t key_length,
56 const uint8_t *iv, size_t iv_length,
57 const uint8_t *input, size_t input_length,
58 uint8_t *output, size_t output_size, size_t *output_length);
62 const uint8_t *key, size_t key_length,
64 const uint8_t *input, size_t input_length,
65 uint8_t *output, size_t output_size, size_t *output_length);
70 const uint8_t *key, size_t key_length,
76 const uint8_t *key, size_t key_length,
[all …]
Dkey_management.h34 size_t forced_output_length;
68 size_t mbedtls_test_opaque_size_function(
70 const size_t key_bits);
82 uint8_t *key, size_t key_size, size_t *key_length);
86 uint8_t *key, size_t key_size, size_t *key_length);
90 const uint8_t *key, size_t key_length,
91 uint8_t *data, size_t data_size, size_t *data_length);
95 const uint8_t *key, size_t key_length,
96 uint8_t *data, size_t data_size, size_t *data_length);
100 const uint8_t *key, size_t key_length,
[all …]
Dsignature.h31 size_t forced_output_length;
56 size_t key_length,
59 size_t input_length,
61 size_t signature_size,
62 size_t *signature_length);
67 size_t key_length,
70 size_t input_length,
72 size_t signature_size,
73 size_t *signature_length);
78 size_t key_length,
[all …]
Daead.h61 const uint8_t *key_buffer, size_t key_buffer_size,
63 const uint8_t *nonce, size_t nonce_length,
64 const uint8_t *additional_data, size_t additional_data_length,
65 const uint8_t *plaintext, size_t plaintext_length,
66 uint8_t *ciphertext, size_t ciphertext_size, size_t *ciphertext_length);
70 const uint8_t *key_buffer, size_t key_buffer_size,
72 const uint8_t *nonce, size_t nonce_length,
73 const uint8_t *additional_data, size_t additional_data_length,
74 const uint8_t *ciphertext, size_t ciphertext_length,
75 uint8_t *plaintext, size_t plaintext_size, size_t *plaintext_length);
[all …]
Dasymmetric_encryption.h32 size_t forced_output_length;
56 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input,
57 size_t input_length, const uint8_t *salt, size_t salt_length,
58 uint8_t *output, size_t output_size, size_t *output_length);
62 size_t key_length, psa_algorithm_t alg, const uint8_t *input,
63 size_t input_length, const uint8_t *salt, size_t salt_length,
64 uint8_t *output, size_t output_size, size_t *output_length);
68 size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input,
69 size_t input_length, const uint8_t *salt, size_t salt_length,
70 uint8_t *output, size_t output_size, size_t *output_length);
[all …]
Dmac.h51 size_t key_buffer_size,
54 size_t input_length,
56 size_t mac_size,
57 size_t *mac_length);
63 size_t key_buffer_size,
70 size_t key_buffer_size,
76 size_t input_length);
81 size_t mac_size,
82 size_t *mac_length);
87 size_t mac_length);
[all …]
/mbedtls-3.5.0/include/mbedtls/
Dccm.h81 size_t MBEDTLS_PRIVATE(plaintext_len); /*!< Total plaintext length */
82 size_t MBEDTLS_PRIVATE(add_len); /*!< Total authentication data length */
83 size_t MBEDTLS_PRIVATE(tag_len); /*!< Total tag length */
84 size_t MBEDTLS_PRIVATE(processed); /*!< Track how many bytes of input data
178 int mbedtls_ccm_encrypt_and_tag(mbedtls_ccm_context *ctx, size_t length,
179 const unsigned char *iv, size_t iv_len,
180 const unsigned char *ad, size_t ad_len,
182 unsigned char *tag, size_t tag_len);
227 int mbedtls_ccm_star_encrypt_and_tag(mbedtls_ccm_context *ctx, size_t length,
228 const unsigned char *iv, size_t iv_len,
[all …]
Dpk.h255 typedef int (*mbedtls_pk_rsa_alt_decrypt_func)(void *ctx, size_t *olen,
257 size_t output_max_len);
259 int (*f_rng)(void *, unsigned char *, size_t),
263 typedef size_t (*mbedtls_pk_rsa_alt_key_len_func)(void *ctx);
393 size_t mbedtls_pk_get_bitlen(const mbedtls_pk_context *ctx);
402 static inline size_t mbedtls_pk_get_len(const mbedtls_pk_context *ctx) in mbedtls_pk_get_len()
481 const unsigned char *hash, size_t hash_len,
482 const unsigned char *sig, size_t sig_len);
506 const unsigned char *hash, size_t hash_len,
507 const unsigned char *sig, size_t sig_len,
[all …]
Drsa.h96 size_t MBEDTLS_PRIVATE(len); /*!< The size of \p N in Bytes. */
275 unsigned char const *N, size_t N_len,
276 unsigned char const *P, size_t P_len,
277 unsigned char const *Q, size_t Q_len,
278 unsigned char const *D, size_t D_len,
279 unsigned char const *E, size_t E_len);
407 unsigned char *N, size_t N_len,
408 unsigned char *P, size_t P_len,
409 unsigned char *Q, size_t Q_len,
410 unsigned char *D, size_t D_len,
[all …]
Decdsa.h174 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
175 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
219 const unsigned char *buf, size_t blen,
221 int (*f_rng_blind)(void *, unsigned char *, size_t),
284 const unsigned char *buf, size_t blen,
285 int (*f_rng)(void *, unsigned char *, size_t),
287 int (*f_rng_blind)(void *, unsigned char *, size_t),
343 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
345 int (*f_rng_blind)(void *, unsigned char *, size_t),
384 const unsigned char *buf, size_t blen,
[all …]

12345678910>>...15