Home
last modified time | relevance | path

Searched refs:key_length (Results 1 – 25 of 64) sorted by relevance

123

/third_party/mbedtls/tests/src/drivers/
Dtest_driver_key_management.c136 size_t key_length, in mbedtls_test_opaque_wrap_key() argument
144 if( key_length + opaque_key_base_size > wrapped_key_buffer_size ) in mbedtls_test_opaque_wrap_key()
150 *wrapped_key_buffer_length = key_length + opaque_key_base_size; in mbedtls_test_opaque_wrap_key()
152 while( key_length-- ) in mbedtls_test_opaque_wrap_key()
153 wrapped_key_buffer[key_length] = key[key_length] ^ 0xFF; in mbedtls_test_opaque_wrap_key()
194 uint8_t *key, size_t key_size, size_t *key_length ) in mbedtls_test_transparent_generate_key() argument
208 *key_length = mbedtls_test_driver_key_management_hooks.forced_output_length; in mbedtls_test_transparent_generate_key()
219 key, key_size, key_length ) ); in mbedtls_test_transparent_generate_key()
222 attributes, key, key_size, key_length ) ); in mbedtls_test_transparent_generate_key()
231 key, key_size, key_length ) ); in mbedtls_test_transparent_generate_key()
[all …]
Dtest_driver_cipher.c139 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_encrypt_setup() argument
158 key, key_length, alg ) ); in mbedtls_test_transparent_cipher_encrypt_setup()
161 operation, attributes, key, key_length, alg ) ); in mbedtls_test_transparent_cipher_encrypt_setup()
170 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_decrypt_setup() argument
183 key, key_length, alg ) ); in mbedtls_test_transparent_cipher_decrypt_setup()
186 operation, attributes, key, key_length, alg ) ); in mbedtls_test_transparent_cipher_decrypt_setup()
315 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_encrypt() argument
323 (void) key_length; in mbedtls_test_opaque_cipher_encrypt()
337 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_decrypt() argument
344 (void) key_length; in mbedtls_test_opaque_cipher_decrypt()
[all …]
Dtest_driver_signature.c263 size_t key_length, in mbedtls_test_opaque_signature_sign_message() argument
273 (void) key_length; in mbedtls_test_opaque_signature_sign_message()
328 size_t key_length, in mbedtls_test_opaque_signature_verify_message() argument
337 (void) key_length; in mbedtls_test_opaque_signature_verify_message()
376 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_sign_hash() argument
383 (void) key_length; in mbedtls_test_opaque_signature_sign_hash()
413 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_verify_hash() argument
420 (void) key_length; in mbedtls_test_opaque_signature_verify_hash()
/third_party/mbedtls/tests/include/test/drivers/
Dsignature.h56 size_t key_length,
67 size_t key_length,
78 size_t key_length,
88 size_t key_length,
97 const uint8_t *key, size_t key_length,
104 const uint8_t *key, size_t key_length,
111 const uint8_t *key, size_t key_length,
118 const uint8_t *key, size_t key_length,
Dcipher.h54 const uint8_t *key, size_t key_length,
62 const uint8_t *key, size_t key_length,
70 const uint8_t *key, size_t key_length,
76 const uint8_t *key, size_t key_length,
100 const uint8_t *key, size_t key_length,
108 const uint8_t *key, size_t key_length,
116 const uint8_t *key, size_t key_length,
122 const uint8_t *key, size_t key_length,
Dkey_management.h76 uint8_t *key, size_t key_size, size_t *key_length );
80 uint8_t *key, size_t key_size, size_t *key_length );
84 const uint8_t *key, size_t key_length,
89 const uint8_t *key, size_t key_length,
94 const uint8_t *key, size_t key_length,
/third_party/python/Modules/clinic/
D_dbmmodule.c.h63 Py_ssize_clean_t key_length, PyObject *default_value);
72 Py_ssize_clean_t key_length; in _dbm_dbm_get() local
76 &key, &key_length, &default_value)) { in _dbm_dbm_get()
79 return_value = _dbm_dbm_get_impl(self, cls, key, key_length, default_value); in _dbm_dbm_get()
98 Py_ssize_clean_t key_length,
108 Py_ssize_clean_t key_length; in _dbm_dbm_setdefault() local
112 &key, &key_length, &default_value)) { in _dbm_dbm_setdefault()
115 return_value = _dbm_dbm_setdefault_impl(self, cls, key, key_length, default_value); in _dbm_dbm_setdefault()
D_gdbmmodule.c.h173 Py_ssize_clean_t key_length);
182 Py_ssize_clean_t key_length; in _gdbm_gdbm_nextkey() local
185 &key, &key_length)) { in _gdbm_gdbm_nextkey()
188 return_value = _gdbm_gdbm_nextkey_impl(self, cls, key, key_length); in _gdbm_gdbm_nextkey()
/third_party/mbedtls/library/
Dpsa_crypto_mac.c44 size_t key_length, in psa_hmac_setup_internal() argument
68 if( key_length > block_size ) in psa_hmac_setup_internal()
70 status = psa_hash_compute( hash_alg, key, key_length, in psa_hmac_setup_internal()
71 ipad, sizeof( ipad ), &key_length ); in psa_hmac_setup_internal()
79 else if( key_length != 0 ) in psa_hmac_setup_internal()
80 memcpy( ipad, key, key_length ); in psa_hmac_setup_internal()
84 for( i = 0; i < key_length; i++ ) in psa_hmac_setup_internal()
86 memset( ipad + key_length, 0x36, block_size - key_length ); in psa_hmac_setup_internal()
90 for( i = 0; i < key_length; i++ ) in psa_hmac_setup_internal()
92 memset( hmac->opad + key_length, 0x5C, block_size - key_length ); in psa_hmac_setup_internal()
Dpkcs5.c222 uint32_t key_length, unsigned char *output ) in mbedtls_pkcs5_pbkdf2_hmac() argument
244 while( key_length ) in mbedtls_pkcs5_pbkdf2_hmac()
281 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac()
284 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac()
Dcmac.c409 int mbedtls_aes_cmac_prf_128( const unsigned char *key, size_t key_length, in mbedtls_aes_cmac_prf_128() argument
429 if( key_length == MBEDTLS_AES_BLOCK_SIZE ) in mbedtls_aes_cmac_prf_128()
439 key_length, int_key ); in mbedtls_aes_cmac_prf_128()
/third_party/iowow/src/utils/
Dmt19937ar.c114 void init_by_array(unsigned long init_key[], int key_length) { in init_by_array() argument
120 k = (N > key_length ? N : key_length); in init_by_array()
131 if (j >= key_length) { in init_by_array()
Dmt19937ar.h58 void init_by_array(unsigned long init_key[], int key_length);
/third_party/node/test/js-native-api/test_object/
Dtest_object.c38 size_t key_length; in GetNamed() local
57 napi_get_value_string_utf8(env, args[1], key, 255, &key_length)); in GetNamed()
59 NAPI_ASSERT(env, key_length <= 255, in GetNamed()
144 size_t key_length; in SetNamed() local
162 napi_get_value_string_utf8(env, args[1], key, 255, &key_length)); in SetNamed()
164 NAPI_ASSERT(env, key_length <= 255, in SetNamed()
207 size_t key_length; in HasNamed() local
225 napi_get_value_string_utf8(env, args[1], key, 255, &key_length)); in HasNamed()
227 NAPI_ASSERT(env, key_length <= 255, in HasNamed()
/third_party/rust/crates/rust-openssl/openssl/src/
Dcipher_ctx.rs151 let key_len = type_.map_or_else(|| self.key_length(), |c| c.key_length()); in cipher_init()
300 pub fn key_length(&self) -> usize { in key_length() method
319 assert!(buf.len() >= self.key_length()); in rand_key()
745 let mut key = vec![0; cipher.key_length()]; in test_stream_cipher()
824 let mut key = vec![0; cipher.key_length()]; in output_buffer_too_small()
/third_party/openssl/providers/implementations/include/prov/
Dblake2.h32 uint8_t key_length; /* 2 */ member
56 uint8_t key_length; /* 2 */ member
/third_party/python/Modules/
D_randommodule.c204 init_by_array(RandomObject *self, uint32_t init_key[], size_t key_length) in init_by_array() argument
212 k = (N>key_length ? N : key_length); in init_by_array()
218 if (j>=key_length) j=0; in init_by_array()
D_dbmmodule.c310 Py_ssize_clean_t key_length, PyObject *default_value) in _dbm_dbm_get_impl() argument
317 dbm_key.dsize = key_length; in _dbm_dbm_get_impl()
342 Py_ssize_clean_t key_length, in _dbm_dbm_setdefault_impl() argument
351 dbm_key.dsize = key_length; in _dbm_dbm_setdefault_impl()
/third_party/openssl/providers/implementations/digests/
Dblake2b_prov.c86 P->key_length = 0; in ossl_blake2b_param_init()
105 P->key_length = keylen; in ossl_blake2b_param_set_key_length()
145 memcpy(block, key, P->key_length); in ossl_blake2b_init_key()
Dblake2s_prov.c81 P->key_length = 0; in ossl_blake2s_param_init()
99 P->key_length = keylen; in ossl_blake2s_param_set_key_length()
138 memcpy(block, key, P->key_length); in ossl_blake2s_init_key()
/third_party/pulseaudio/src/pulse/
Dproplist.c104 static int proplist_setn(pa_proplist *p, const char *key, size_t key_length, const char *value, siz… in proplist_setn() argument
113 k = pa_xstrndup(key, key_length); in proplist_setn()
155 static int proplist_sethex(pa_proplist *p, const char *key, size_t key_length, const char *value, s… in proplist_sethex() argument
166 k = pa_xstrndup(key, key_length); in proplist_sethex()
/third_party/python/Modules/_blake2/impl/
Dblake2.h74 uint8_t key_length; // 2 member
100 uint8_t key_length; // 2 member
/third_party/mbedtls/include/mbedtls/
Dpkcs5.h90 uint32_t key_length, unsigned char *output );
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Deapol_common.h67 u8 key_length[2]; member
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Deapol_common.h67 u8 key_length[2]; member

123