Home
last modified time | relevance | path

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

1234567891011

/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dcerts.h35 extern const size_t mbedtls_test_cas_pem_len;
40 extern const size_t mbedtls_test_cas_len[];
47 extern const size_t mbedtls_test_ca_crt_len;
49 extern const size_t mbedtls_test_ca_key_len;
51 extern const size_t mbedtls_test_ca_pwd_len;
53 extern const size_t mbedtls_test_srv_crt_len;
55 extern const size_t mbedtls_test_srv_key_len;
57 extern const size_t mbedtls_test_cli_crt_len;
59 extern const size_t mbedtls_test_cli_key_len;
63 extern const size_t mbedtls_test_ca_crt_ec_len;
[all …]
Dpk.h162 typedef int (*mbedtls_pk_rsa_alt_decrypt_func)( void *ctx, int mode, size_t *olen,
164 size_t output_max_len );
166 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
169 typedef size_t (*mbedtls_pk_rsa_alt_key_len_func)( void *ctx );
235 size_t mbedtls_pk_get_bitlen( const mbedtls_pk_context *ctx );
243 static inline size_t mbedtls_pk_get_len( const mbedtls_pk_context *ctx ) in mbedtls_pk_get_len()
284 const unsigned char *hash, size_t hash_len,
285 const unsigned char *sig, size_t sig_len );
318 const unsigned char *hash, size_t hash_len,
319 const unsigned char *sig, size_t sig_len );
[all …]
Drsa.h82 size_t len; /*!< size(N) in chars */
166 int (*f_rng)(void *, unsigned char *, size_t),
234 int (*f_rng)(void *, unsigned char *, size_t),
259 int (*f_rng)(void *, unsigned char *, size_t),
261 int mode, size_t ilen,
282 int (*f_rng)(void *, unsigned char *, size_t),
284 int mode, size_t ilen,
308 int (*f_rng)(void *, unsigned char *, size_t),
311 const unsigned char *label, size_t label_len,
312 size_t ilen,
[all …]
Dpk_internal.h44 size_t (*get_bitlen)( const void * );
51 const unsigned char *hash, size_t hash_len,
52 const unsigned char *sig, size_t sig_len );
56 const unsigned char *hash, size_t hash_len,
57 unsigned char *sig, size_t *sig_len,
58 int (*f_rng)(void *, unsigned char *, size_t),
62 int (*decrypt_func)( void *ctx, const unsigned char *input, size_t ilen,
63 unsigned char *output, size_t *olen, size_t osize,
64 int (*f_rng)(void *, unsigned char *, size_t),
68 int (*encrypt_func)( void *ctx, const unsigned char *input, size_t ilen,
[all …]
Dentropy_poll.h53 unsigned char *output, size_t len, size_t *olen );
61 unsigned char *output, size_t len, size_t *olen );
71 unsigned char *output, size_t len, size_t *olen );
79 unsigned char *output, size_t len, size_t *olen );
92 unsigned char *output, size_t len, size_t *olen );
102 unsigned char *output, size_t len, size_t *olen );
Dgcm.h104 size_t length,
106 size_t iv_len,
108 size_t add_len,
111 size_t tag_len,
136 size_t length,
138 size_t iv_len,
140 size_t add_len,
142 size_t tag_len,
161 size_t iv_len,
163 size_t add_len );
[all …]
Dctr_drbg.h93 size_t entropy_len; /*!< amount of entropy grabbed on each
102 int (*f_entropy)(void *, unsigned char *, size_t);
140 int (*f_entropy)(void *, unsigned char *, size_t),
143 size_t len );
172 size_t len );
195 const unsigned char *additional, size_t len );
209 const unsigned char *additional, size_t add_len );
227 unsigned char *output, size_t output_len,
228 const unsigned char *additional, size_t add_len );
244 unsigned char *output, size_t output_len );
[all …]
Dcipher.h231 void (*add_padding)( unsigned char *output, size_t olen, size_t data_len );
232 int (*get_padding)( unsigned char *input, size_t ilen, size_t *data_len );
239 size_t unprocessed_len;
245 size_t iv_size;
498 const unsigned char *iv, size_t iv_len );
523 const unsigned char *ad, size_t ad_len );
556 size_t ilen, unsigned char *output, size_t *olen );
576 unsigned char *output, size_t *olen );
591 unsigned char *tag, size_t tag_len );
605 const unsigned char *tag, size_t tag_len );
[all …]
Decjpake.h117 size_t len );
145 unsigned char *buf, size_t len, size_t *olen,
146 int (*f_rng)(void *, unsigned char *, size_t),
163 size_t len );
180 unsigned char *buf, size_t len, size_t *olen,
181 int (*f_rng)(void *, unsigned char *, size_t),
197 size_t len );
214 unsigned char *buf, size_t len, size_t *olen,
215 int (*f_rng)(void *, unsigned char *, size_t),
Decdh.h72 int (*f_rng)(void *, unsigned char *, size_t),
95 int (*f_rng)(void *, unsigned char *, size_t),
128 int mbedtls_ecdh_make_params( mbedtls_ecdh_context *ctx, size_t *olen,
129 unsigned char *buf, size_t blen,
130 int (*f_rng)(void *, unsigned char *, size_t),
174 int mbedtls_ecdh_make_public( mbedtls_ecdh_context *ctx, size_t *olen,
175 unsigned char *buf, size_t blen,
176 int (*f_rng)(void *, unsigned char *, size_t),
190 const unsigned char *buf, size_t blen );
205 int mbedtls_ecdh_calc_secret( mbedtls_ecdh_context *ctx, size_t *olen,
[all …]
Dasn1write.h45 int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, size_t len );
72 const unsigned char *buf, size_t size );
111 const char *oid, size_t oid_len );
127 const char *oid, size_t oid_len,
128 size_t par_len );
167 const char *text, size_t text_len );
182 const char *text, size_t text_len );
197 const unsigned char *buf, size_t bits );
212 const unsigned char *buf, size_t size );
231 const char *oid, size_t oid_len,
[all …]
Decdsa.h76 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
77 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
96 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
115 const unsigned char *buf, size_t blen,
144 const unsigned char *hash, size_t hlen,
145 unsigned char *sig, size_t *slen,
146 int (*f_rng)(void *, unsigned char *, size_t),
180 const unsigned char *hash, size_t hlen,
181 unsigned char *sig, size_t *slen,
203 const unsigned char *hash, size_t hlen,
[all …]
Dhmac_drbg.h85 size_t entropy_len; /*!< entropy bytes grabbed on each (re)seed */
91 int (*f_entropy)(void *, unsigned char *, size_t); /*!< entropy function */
135 int (*f_entropy)(void *, unsigned char *, size_t),
138 size_t len );
155 const unsigned char *data, size_t data_len );
178 size_t len );
201 const unsigned char *additional, size_t add_len );
214 const unsigned char *additional, size_t len );
233 unsigned char *output, size_t output_len,
235 size_t add_len );
[all …]
Dssl.h435 size_t len );
458 size_t len );
484 size_t len,
551 size_t id_len; /*!< session id length */
562 size_t ticket_len; /*!< session ticket length */
597 int (*f_rng)(void *, unsigned char *, size_t);
608 int (*f_sni)(void *, mbedtls_ssl_context *, const unsigned char *, size_t);
620 int (*f_psk)(void *, mbedtls_ssl_context *, const unsigned char *, size_t);
627 const unsigned char *, size_t );
629 int (*f_cookie_check)( void *, const unsigned char *, size_t,
[all …]
Dplatform.h114 extern void * (*mbedtls_calloc)( size_t n, size_t size );
125 int mbedtls_platform_set_calloc_free( void * (*calloc_func)( size_t, size_t ),
191 int mbedtls_platform_win32_snprintf( char *s, size_t n, const char *fmt, ... );
195 extern int (*mbedtls_snprintf)( char * s, size_t n, const char * format, ... );
204 int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n,
259 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
260 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
264 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
265 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
276 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
[all …]
Ddhm.h151 size_t len; /*!< size(P) in chars */
202 unsigned char *output, size_t *olen,
203 int (*f_rng)(void *, unsigned char *, size_t),
216 const unsigned char *input, size_t ilen );
231 unsigned char *output, size_t olen,
232 int (*f_rng)(void *, unsigned char *, size_t),
254 unsigned char *output, size_t output_size, size_t *olen,
255 int (*f_rng)(void *, unsigned char *, size_t),
278 size_t dhminlen );
Dccm.h99 int mbedtls_ccm_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length,
100 const unsigned char *iv, size_t iv_len,
101 const unsigned char *add, size_t add_len,
103 unsigned char *tag, size_t tag_len );
122 int mbedtls_ccm_auth_decrypt( mbedtls_ccm_context *ctx, size_t length,
123 const unsigned char *iv, size_t iv_len,
124 const unsigned char *add, size_t add_len,
126 const unsigned char *tag, size_t tag_len );
/net-tools-3.6.0/mbedtls-2.4.0/library/
Dcerts.c110 const size_t mbedtls_test_ca_crt_ec_len = sizeof( mbedtls_test_ca_crt_ec );
111 const size_t mbedtls_test_ca_key_ec_len = sizeof( mbedtls_test_ca_key_ec );
112 const size_t mbedtls_test_ca_pwd_ec_len = sizeof( mbedtls_test_ca_pwd_ec ) - 1;
113 const size_t mbedtls_test_srv_crt_ec_len = sizeof( mbedtls_test_srv_crt_ec );
114 const size_t mbedtls_test_srv_key_ec_len = sizeof( mbedtls_test_srv_key_ec );
115 const size_t mbedtls_test_cli_crt_ec_len = sizeof( mbedtls_test_cli_crt_ec );
116 const size_t mbedtls_test_cli_key_ec_len = sizeof( mbedtls_test_cli_key_ec );
282 const size_t mbedtls_test_ca_crt_rsa_len = sizeof( mbedtls_test_ca_crt_rsa );
283 const size_t mbedtls_test_ca_key_rsa_len = sizeof( mbedtls_test_ca_key_rsa );
284 const size_t mbedtls_test_ca_pwd_rsa_len = sizeof( mbedtls_test_ca_pwd_rsa ) - 1;
[all …]
Dpk_wrap.c54 static void mbedtls_zeroize( void *v, size_t n ) { in mbedtls_zeroize()
66 static size_t rsa_get_bitlen( const void *ctx ) in rsa_get_bitlen()
72 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap()
73 const unsigned char *sig, size_t sig_len ) in rsa_verify_wrap()
92 const unsigned char *hash, size_t hash_len, in rsa_sign_wrap()
93 unsigned char *sig, size_t *sig_len, in rsa_sign_wrap()
94 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_sign_wrap() argument
103 const unsigned char *input, size_t ilen, in rsa_decrypt_wrap()
104 unsigned char *output, size_t *olen, size_t osize, in rsa_decrypt_wrap()
105 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_decrypt_wrap() argument
[all …]
Dplatform.c34 static void *platform_calloc_uninit( size_t n, size_t size ) in platform_calloc_uninit()
53 void * (*mbedtls_calloc)( size_t, size_t ) = MBEDTLS_PLATFORM_STD_CALLOC;
56 int mbedtls_platform_set_calloc_free( void * (*calloc_func)( size_t, size_t ), in mbedtls_platform_set_calloc_free() argument
67 int mbedtls_platform_win32_snprintf( char *s, size_t n, const char *fmt, ... ) in mbedtls_platform_win32_snprintf()
81 if( ret < 0 || (size_t) ret == n ) in mbedtls_platform_win32_snprintf()
98 static int platform_snprintf_uninit( char * s, size_t n, in platform_snprintf_uninit()
110 int (*mbedtls_snprintf)( char * s, size_t n,
114 int mbedtls_platform_set_snprintf( int (*snprintf_func)( char * s, size_t n, in mbedtls_platform_set_snprintf()
225 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len ) in mbedtls_platform_std_nv_seed_read()
228 size_t n; in mbedtls_platform_std_nv_seed_read()
[all …]
Dentropy_poll.c59 int mbedtls_platform_entropy_poll( void *data, unsigned char *output, size_t len, in mbedtls_platform_entropy_poll()
60 size_t *olen ) in mbedtls_platform_entropy_poll()
96 static int getrandom_wrapper( void *buf, size_t buflen, unsigned int flags ) in getrandom_wrapper()
151 unsigned char *output, size_t len, size_t *olen ) in mbedtls_platform_entropy_poll()
154 size_t read_len; in mbedtls_platform_entropy_poll()
196 unsigned char *output, size_t len, size_t *olen ) in mbedtls_null_entropy_poll()
213 unsigned char *output, size_t len, size_t *olen ) in mbedtls_hardclock_poll()
231 unsigned char *output, size_t len, size_t *olen ) in mbedtls_havege_poll()
247 unsigned char *output, size_t len, size_t *olen ) in mbedtls_nv_seed_poll()
250 size_t use_len = MBEDTLS_ENTROPY_BLOCK_SIZE; in mbedtls_nv_seed_poll()
Dcipher.c64 static void mbedtls_zeroize( void *v, size_t n ) { in mbedtls_zeroize()
215 const unsigned char *iv, size_t iv_len ) in mbedtls_cipher_set_iv()
217 size_t actual_iv_size; in mbedtls_cipher_set_iv()
255 const unsigned char *ad, size_t ad_len ) in mbedtls_cipher_update_ad()
271 size_t ilen, unsigned char *output, size_t *olen ) in mbedtls_cipher_update()
274 size_t block_size = 0; in mbedtls_cipher_update()
323 size_t copy_len = 0; in mbedtls_cipher_update()
459 static void add_pkcs_padding( unsigned char *output, size_t output_len, in add_pkcs_padding()
460 size_t data_len ) in add_pkcs_padding()
462 size_t padding_len = output_len - data_len; in add_pkcs_padding()
[all …]
/net-tools-3.6.0/tinydtls-0.8.2/
Dcrypto.h205 size_t dtls_p_hash(dtls_hashfunc_t h,
206 const unsigned char *key, size_t keylen,
207 const unsigned char *label, size_t labellen,
208 const unsigned char *random1, size_t random1len,
209 const unsigned char *random2, size_t random2len,
210 unsigned char *buf, size_t buflen);
217 size_t dtls_prf(const unsigned char *key, size_t keylen,
218 const unsigned char *label, size_t labellen,
219 const unsigned char *random1, size_t random1len,
220 const unsigned char *random2, size_t random2len,
[all …]
Dcrypto.c182 size_t
184 const unsigned char *key, size_t keylen, in dtls_p_hash()
185 const unsigned char *label, size_t labellen, in dtls_p_hash()
186 const unsigned char *random1, size_t random1len, in dtls_p_hash()
187 const unsigned char *random2, size_t random2len, in dtls_p_hash()
188 unsigned char *buf, size_t buflen) { in dtls_p_hash()
193 size_t dlen; /* digest length */ in dtls_p_hash()
194 size_t len = 0; /* result length */ in dtls_p_hash()
248 size_t
249 dtls_prf(const unsigned char *key, size_t keylen, in dtls_prf()
[all …]
Dccm.h58 dtls_ccm_encrypt_message(rijndael_ctx *ctx, size_t M, size_t L,
60 unsigned char *msg, size_t lm,
61 const unsigned char *aad, size_t la);
64 dtls_ccm_decrypt_message(rijndael_ctx *ctx, size_t M, size_t L,
66 unsigned char *msg, size_t lm,
67 const unsigned char *aad, size_t la);

1234567891011