Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 25 of 34) sorted by relevance

12

/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/
Dwep.c33 static inline bool ieee80211_wep_weak_iv(u32 iv, int keylen) in ieee80211_wep_weak_iv() argument
42 if (B >= 3 && B < 3 + keylen) in ieee80211_wep_weak_iv()
50 int keylen, int keyidx, u8 *iv) in ieee80211_wep_get_iv() argument
53 if (ieee80211_wep_weak_iv(local->wep_iv, keylen)) in ieee80211_wep_get_iv()
68 int keylen, int keyidx) in ieee80211_wep_add_iv() argument
89 ieee80211_wep_get_iv(local, keylen, keyidx, newhdr + hdrlen); in ieee80211_wep_add_iv()
135 const u8 *key, int keylen, int keyidx) in ieee80211_wep_encrypt() argument
144 iv = ieee80211_wep_add_iv(local, skb, keylen, keyidx); in ieee80211_wep_encrypt()
154 memcpy(rc4key + 3, key, keylen); in ieee80211_wep_encrypt()
159 return ieee80211_wep_encrypt_data(&local->wep_tx_ctx, rc4key, keylen + 3, in ieee80211_wep_encrypt()
[all …]
Dwep.h21 const u8 *key, int keylen, int keyidx);
Ddebugfs_key.c62 KEY_CONF_FILE(keylen, D);
303 int i, bufsize = 2 * key->conf.keylen + 2; in key_key_read()
311 for (i = 0; i < key->conf.keylen; i++) in key_key_read()
350 DEBUGFS_ADD(keylen); in ieee80211_debugfs_key_add()
Dkey.c523 key->conf.keylen = key_len; in ieee80211_key_alloc()
737 if (!old || new->conf.keylen != old->conf.keylen) in ieee80211_key_identical()
750 new->conf.keylen == WLAN_KEY_LEN_TKIP && in ieee80211_key_identical()
760 return !crypto_memneq(tk_old, tk_new, new->conf.keylen); in ieee80211_key_identical()
1246 keyconf->keylen, keyconf->key, in mac80211_gtk_rekey_add()
/device/soc/esp/esp32/components/bootloader_support/src/secure_boot_v1/
Dsecure_boot_signatures_app.c70 ptrdiff_t keylen; in esp_secure_boot_verify_ecdsa_signature_block()
75 keylen = signature_verification_key_end - signature_verification_key_start; in esp_secure_boot_verify_ecdsa_signature_block()
76 if (keylen != SIGNATURE_VERIFICATION_KEYLEN) { in esp_secure_boot_verify_ecdsa_signature_block()
77 ESP_LOGE(TAG, "Embedded public verification key has wrong length %d", keylen); in esp_secure_boot_verify_ecdsa_signature_block()
115 if (keylen != 2 * plen) { in esp_secure_boot_verify_ecdsa_signature_block()
116 ESP_LOGE(TAG, "Incorrect ECDSA key length %d", keylen); in esp_secure_boot_verify_ecdsa_signature_block()
Dsecure_boot_signatures_bootloader.c73 ptrdiff_t keylen; in esp_secure_boot_verify_ecdsa_signature_block() local
75 keylen = signature_verification_key_end - signature_verification_key_start; in esp_secure_boot_verify_ecdsa_signature_block()
76 if (keylen != SIGNATURE_VERIFICATION_KEYLEN) { in esp_secure_boot_verify_ecdsa_signature_block()
77 ESP_LOGE(TAG, "Embedded public verification key has wrong length %d", keylen); in esp_secure_boot_verify_ecdsa_signature_block()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/
Duthash.h118 #define HASH_VALUE(keyptr,keylen,hashv) \ argument
120 HASH_FCN(keyptr, keylen, hashv); \
123 #define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \ argument
130 …HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], keyptr, keylen, hashval, …
135 #define HASH_FIND(hh,head,keyptr,keylen,out) \ argument
138 HASH_VALUE(keyptr, keylen, _hf_hashv); \
139 HASH_FIND_BYHASHVALUE(hh, head, keyptr, keylen, _hf_hashv, out); \
272 (add)->hh.keylen = (unsigned) (keylen_in); \
320 (add)->hh.keylen = (unsigned) (keylen_in); \
502 #define HASH_BER(key,keylen,hashv) \ argument
[all …]
/device/soc/amlogic/a311d/soc/amlogic/unifykey/
Dsecurity_key.c41 unsigned long secure_storage_write(u8 *keyname, u8 *keybuf, u32 keylen, u32 keyattr) in secure_storage_write() argument
55 if (namelen + keylen + 12L > share_mem->size) { in secure_storage_write()
62 *input++ = keylen; in secure_storage_write()
67 memcpy(keydata, keybuf, keylen); in secure_storage_write()
74 unsigned long secure_storage_read(u8 *keyname, u8 *keybuf, u32 keylen, u32 *readlen) in secure_storage_read() argument
97 *input++ = keylen; in secure_storage_read()
103 if (*readlen > keylen) { in secure_storage_read()
104 *readlen = keylen; in secure_storage_read()
/device/soc/winnermicro/wm800/board/platform/common/crypto/
Dwm_crypto_hard.c159 void tls_crypto_set_key(void *key, int keylen) in tls_crypto_set_key() argument
163 for (i = 0; i < keylen / 4 && i < 6; i++) { in tls_crypto_set_key()
166 if (keylen == 32) { in tls_crypto_set_key()
380 int tls_crypto_rc4_init(psCipherContext_t *ctx, const unsigned char *key, u32 keylen) in tls_crypto_rc4_init() argument
382 if (keylen != 16 && keylen != 32) { in tls_crypto_rc4_init()
385 memcpy_s(ctx->arc4.state, sizeof(ctx->arc4.state), key, keylen); in tls_crypto_rc4_init()
386 ctx->arc4.byteCount = keylen; in tls_crypto_rc4_init()
411 u32 keylen = ctx->arc4.byteCount; in tls_crypto_rc4() local
414 tls_crypto_set_key(key, keylen); in tls_crypto_rc4()
418 if (keylen == 32) { in tls_crypto_rc4()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
Dcryp_rsa.c82 static hi_s32 rsa_get_klen(unsigned long module_len, hi_u32 *keylen, rsa_key_width *width) in rsa_get_klen() argument
90 *keylen = RSA_KEY_LEN_1024; in rsa_get_klen()
94 *keylen = RSA_KEY_LEN_2048; in rsa_get_klen()
98 *keylen = RSA_KEY_LEN_3072; in rsa_get_klen()
102 *keylen = RSA_KEY_LEN_4096; in rsa_get_klen()
161 hi_u32 keylen = 0; in cryp_ifep_rsa_exp_mod() local
171 ret = rsa_get_klen(module_len, &keylen, &width); in cryp_ifep_rsa_exp_mod()
178 buf = crypto_calloc(MUL_VAL_4, keylen); in cryp_ifep_rsa_exp_mod()
185 k = tmp_n + keylen; in cryp_ifep_rsa_exp_mod()
186 in = k + keylen; in cryp_ifep_rsa_exp_mod()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/
Dkapi_hash.c242 static hi_s32 kapi_hmac_start(kapi_hash_ctx *ctx, const hi_u8 *key, hi_u32 keylen) in kapi_hmac_start() argument
260 if (keylen <= ctx->func->block_size) { in kapi_hmac_start()
267 if ((memcpy_s(ctx->hmac_ipad, HASH_BLOCK_SIZE_128, key, keylen) != EOK) || in kapi_hmac_start()
268 (memcpy_s(ctx->hmac_opad, HASH_BLOCK_SIZE_128, key, keylen) != EOK)) { in kapi_hmac_start()
283 crypto_chk_err_goto(ctx->func->update(ctx->cryp_ctx, key, keylen, HASH_CHUNCK_SRC_LOCAL)); in kapi_hmac_start()
434 hash_mode mode, hi_u32 hmac, const hi_u8 *key, hi_u32 keylen) in kapi_hash_create_calc() argument
445 ret = kapi_hmac_start(ctx, key, keylen); in kapi_hash_create_calc()
482 hi_s32 kapi_hash_start(hi_u32 *id, hi_cipher_hash_type type, const hi_u8 *key, hi_u32 keylen) in kapi_hash_start() argument
523 ret = kapi_hash_create_calc(ctx, mode, hmac, key, keylen); in kapi_hash_start()
Dkapi_dispatch.c230 hi_log_chk_param_return(start->keylen > MAX_MALLOC_BUF_SIZE); in dispatch_hash_start()
233 key = (hi_u8 *)crypto_calloc(1, start->keylen); in dispatch_hash_start()
240 …crypto_chk_err_goto(crypto_copy_from_user(key, start->keylen, addr_via(start->key), start->keylen)… in dispatch_hash_start()
243 crypto_chk_err_goto(kapi_hash_start(&start->id, start->type, key, start->keylen)); in dispatch_hash_start()
247 (hi_void)memset_s(key, start->keylen, 0, start->keylen); in dispatch_hash_start()
/device/soc/winnermicro/wm800/board/include/platform/
Dwm_crypto_hard.h352 int tls_crypto_rc4_init(psCipherContext_t *ctx, const unsigned char *key, u32 keylen);
389 const unsigned char *key, u32 keylen, CRYPTO_MODE cbc);
424 const unsigned char *key, u32 keylen, CRYPTO_MODE cbc);
459 const unsigned char *key, u32 keylen, CRYPTO_MODE cbc);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/crypto/
Daes.h37 static inline int aes_check_keylen(unsigned int keylen) in aes_check_keylen() argument
39 switch (keylen) { in aes_check_keylen()
/device/soc/amlogic/a311d/soc/include/linux/amlogic/unifykey/
Dsecurity_key.h31 int32_t secure_storage_write(uint8_t *keyname, uint8_t *keybuf, uint32_t keylen, uint32_t keyattr);
32 int32_t secure_storage_read(uint8_t *keyname, uint8_t *keybuf, uint32_t keylen, uint32_t *readlen);
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/unifykey/
Dsecurity_key.h32 uint32_t keylen, uint32_t keyattr);
34 uint32_t keylen, uint32_t *readlen);
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
Dmd.h374 size_t keylen );
457 int mbedtls_md_hmac( const mbedtls_md_info_t *md_info, const unsigned char *key, size_t keylen,
Darc4.h106 unsigned int keylen );
Dpk.h576 const unsigned char *key, size_t keylen,
602 const unsigned char *key, size_t keylen );
Dcmac.h172 const unsigned char *key, size_t keylen,
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/
Daes.c513 return_type aes_set_key( const unsigned char key[], length_type keylen, aes_context ctx[1] ) argument
517 switch ( keylen ) {
520 keylen = 16;
524 keylen = 24;
528 keylen = 32;
534 block_copy_nn(ctx->ksch, key, keylen);
535 hi = (keylen + 28) << 2;
537 for ( cc = keylen, rc = 1; cc < hi; cc += 4 ) {
544 if ( cc % keylen == 0 ) {
551 } else if ( keylen > 24 && cc % keylen == 16 ) {
[all …]
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/smp/include/
Daes.h84 length_type keylen,
/device/soc/esp/esp32/components/esp_wifi/include/
Desp_wifi_crypto_types.h253 typedef int (*esp_rc4_skip_t)(const unsigned char *key, unsigned int keylen, unsigned int skip,
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/
Ddrv_cipher_kapi.h307 hi_u32 keylen; /* HMAC key */ member
537 hi_s32 kapi_hash_start(hi_u32 *id, hi_cipher_hash_type type, const hi_u8 *key, hi_u32 keylen);
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dsta.c1183 if (key->keylen > 16) { in xradio_set_key()
1186 __func__, key->keylen); in xradio_set_key()
1196 key->keylen); in xradio_set_key()
1197 wsm_key->wepPairwiseKey.keyLength = key->keylen; in xradio_set_key()
1199 __func__, key->keylen); in xradio_set_key()
1203 key->keylen); in xradio_set_key()
1204 wsm_key->wepGroupKey.keyLength = key->keylen; in xradio_set_key()
1207 __func__, key->keylen); in xradio_set_key()
1220 __func__, key->keylen); in xradio_set_key()
1233 __func__, key->keylen); in xradio_set_key()
[all …]

12