| /bsp/stm32/libraries/HAL_Drivers/drivers/ |
| A D | drv_crypto.c | 410 ctx->contex = hrng; in _crypto_create() 443 ctx->contex = hcrc; in _crypto_create() 562 rt_free(ctx->contex); in _crypto_destroy() 573 if (des->contex && src->contex) in _crypto_clone() 575 rt_memcpy(des->contex, src->contex, sizeof(RNG_HandleTypeDef)); in _crypto_clone() 582 if (des->contex && src->contex) in _crypto_clone() 584 rt_memcpy(des->contex, src->contex, sizeof(CRC_HandleTypeDef)); in _crypto_clone() 593 if (des->contex && src->contex) in _crypto_clone() 595 rt_memcpy(des->contex, src->contex, sizeof(HASH_HandleTypeDef)); in _crypto_clone() 606 if (des->contex && src->contex) in _crypto_clone() [all …]
|
| /bsp/w60x/drivers/ |
| A D | drv_crypto.c | 35 psDigestContext_t contex; member 187 tls_crypto_md5_final(&((struct hash_ctx_des *)(ctx->parent.contex))->contex, out); in _hash_finish() 598 void *contex; in _crypto_create() local 618 ctx->contex = contex; in _crypto_create() 622 tls_crypto_md5_init(&((struct hash_ctx_des *)contex)->contex); in _crypto_create() 626 tls_crypto_sha1_init(&((struct hash_ctx_des *)contex)->contex); in _crypto_create() 659 rt_free(ctx->contex); in _crypto_destroy() 676 if (des->contex && src->contex) in _crypto_clone() 678 rt_memcpy(des->contex, src->contex, sizeof(struct hash_ctx_des)); in _crypto_clone() 699 tls_crypto_md5_init(&((struct hash_ctx_des *)(ctx->contex))->contex); in _crypto_reset() [all …]
|
| /bsp/synwit/libraries/SWM341_drivers/ |
| A D | drv_crypto.c | 43 struct swm_crc_cfg *crc_cfg = (struct swm_crc_cfg *)(ctx->parent.contex); in swm_crc_update() 147 struct swm_rng_cfg *rng_cfg = (struct swm_rng_cfg *)(ctx->parent.contex); in swm_rng_update() 178 ctx->contex = crc_cfg; in swm_crypto_create() 198 ctx->contex = rng_cfg; in swm_crypto_create() 214 struct swm_crc_cfg *crc_cfg = (struct swm_crc_cfg *)(ctx->contex); in swm_crypto_destroy() 232 rt_free(ctx->contex); in swm_crypto_destroy() 243 if (des->contex && src->contex) in swm_crypto_clone() 245 rt_memcpy(des->contex, src->contex, sizeof(struct swm_crc_cfg)); in swm_crypto_clone() 252 if (des->contex && src->contex) in swm_crypto_clone() 254 rt_memcpy(des->contex, src->contex, sizeof(struct swm_rng_cfg)); in swm_crypto_clone() [all …]
|
| /bsp/nuvoton/libraries/m031/rtt_port/ |
| A D | drv_crypto.c | 63 ctx->contex = RT_NULL; in nu_hwcrypto_create() 80 if (ctx->contex) in nu_hwcrypto_destroy() 81 rt_free(ctx->contex); in nu_hwcrypto_destroy() 88 if (des->contex && src->contex) in nu_hwcrypto_clone() 90 rt_memcpy(des->contex, src->contex, sizeof(struct rt_hwcrypto_ctx)); in nu_hwcrypto_clone()
|
| /bsp/raspberry-pico/RP2040/libcpu/ |
| A D | cpuport.c | 243 void rt_hw_hard_fault_exception(struct exception_stack_frame *contex) in rt_hw_hard_fault_exception() argument 245 rt_kprintf("psr: 0x%08x\n", contex->psr); in rt_hw_hard_fault_exception() 246 rt_kprintf(" pc: 0x%08x\n", contex->pc); in rt_hw_hard_fault_exception() 247 rt_kprintf(" lr: 0x%08x\n", contex->lr); in rt_hw_hard_fault_exception() 248 rt_kprintf("r12: 0x%08x\n", contex->r12); in rt_hw_hard_fault_exception() 249 rt_kprintf("r03: 0x%08x\n", contex->r3); in rt_hw_hard_fault_exception() 250 rt_kprintf("r02: 0x%08x\n", contex->r2); in rt_hw_hard_fault_exception() 251 rt_kprintf("r01: 0x%08x\n", contex->r1); in rt_hw_hard_fault_exception() 252 rt_kprintf("r00: 0x%08x\n", contex->r0); in rt_hw_hard_fault_exception()
|
| /bsp/synwit/libraries/SWM320_drivers/ |
| A D | drv_crypto.c | 55 struct swm_crc_cfg *crc_cfg = (struct swm_crc_cfg *)(ctx->parent.contex); in swm_crc_update() 155 ctx->contex = crc_cfg; in swm_crypto_create() 169 struct swm_crc_cfg *crc_cfg = (struct swm_crc_cfg *)(ctx->contex); in swm_crypto_destroy() 181 rt_free(ctx->contex); in swm_crypto_destroy() 192 if (des->contex && src->contex) in swm_crypto_clone() 194 rt_memcpy(des->contex, src->contex, sizeof(struct swm_crc_cfg)); in swm_crypto_clone() 207 struct swm_crc_cfg *crc_cfg = (struct swm_crc_cfg *)(ctx->contex); in swm_crypto_reset()
|
| /bsp/nuvoton/libraries/m2354/rtt_port/ |
| A D | drv_crypto.c | 504 psSHACtx = hash_ctx->parent.contex; in nu_sha_finish() 627 ctx->contex = RT_NULL; in nu_hwcrypto_create() 637 ctx->contex = RT_NULL; in nu_hwcrypto_create() 647 ctx->contex = RT_NULL; in nu_hwcrypto_create() 656 ctx->contex = rt_malloc(sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 658 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 661 rt_memset(ctx->contex, 0, sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 682 if (ctx->contex) in nu_hwcrypto_destroy() 683 rt_free(ctx->contex); in nu_hwcrypto_destroy() 692 if (des->contex && src->contex) in nu_hwcrypto_clone() [all …]
|
| /bsp/nuvoton/libraries/m460/rtt_port/ |
| A D | drv_crypto.c | 503 psSHACtx = hash_ctx->parent.contex; in nu_sha_finish() 626 ctx->contex = RT_NULL; in nu_hwcrypto_create() 636 ctx->contex = RT_NULL; in nu_hwcrypto_create() 646 ctx->contex = RT_NULL; in nu_hwcrypto_create() 655 ctx->contex = rt_malloc(sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 657 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 660 rt_memset(ctx->contex, 0, sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 681 if (ctx->contex) in nu_hwcrypto_destroy() 682 rt_free(ctx->contex); in nu_hwcrypto_destroy() 691 if (des->contex && src->contex) in nu_hwcrypto_clone() [all …]
|
| /bsp/nuvoton/libraries/n9h30/rtt_port/ |
| A D | drv_crypto.c | 695 psSHACtx = hash_ctx->parent.contex; in nu_sha_finish() 819 ctx->contex = RT_NULL; in nu_hwcrypto_create() 827 ctx->contex = RT_NULL; in nu_hwcrypto_create() 835 ctx->contex = RT_NULL; in nu_hwcrypto_create() 846 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 859 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 870 ctx->contex = RT_NULL; in nu_hwcrypto_create() 890 if (ctx->contex) in nu_hwcrypto_destroy() 891 rt_free(ctx->contex); in nu_hwcrypto_destroy() 900 if (des->contex && src->contex) in nu_hwcrypto_clone() [all …]
|
| /bsp/nuvoton/libraries/nuc980/rtt_port/ |
| A D | drv_crypto.c | 506 psSHACtx = hash_ctx->parent.contex; in nu_sha_finish() 626 ctx->contex = RT_NULL; in nu_hwcrypto_create() 635 ctx->contex = rt_malloc(sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 637 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 640 rt_memset(ctx->contex, 0, sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 648 ctx->contex = RT_NULL; in nu_hwcrypto_create() 672 if (ctx->contex) in nu_hwcrypto_destroy() 673 rt_free(ctx->contex); in nu_hwcrypto_destroy() 682 if (des->contex && src->contex) in nu_hwcrypto_clone() 684 rt_memcpy(des->contex, src->contex, sizeof(struct rt_hwcrypto_ctx)); in nu_hwcrypto_clone() [all …]
|
| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_crypto.c | 681 psSHACtx = hash_ctx->parent.contex; in nu_sha_finish() 809 ctx->contex = RT_NULL; in nu_hwcrypto_create() 819 ctx->contex = RT_NULL; in nu_hwcrypto_create() 829 ctx->contex = RT_NULL; in nu_hwcrypto_create() 838 ctx->contex = RT_NULL; in nu_hwcrypto_create() 848 ctx->contex = rt_malloc(sizeof(S_SHA_CONTEXT)); in nu_hwcrypto_create() 850 if (ctx->contex == RT_NULL) in nu_hwcrypto_create() 874 if (ctx->contex) in nu_hwcrypto_destroy() 875 rt_free(ctx->contex); in nu_hwcrypto_destroy() 884 if (des->contex && src->contex) in nu_hwcrypto_clone() [all …]
|
| /bsp/n32g452xx/Libraries/rt_drivers/ |
| A D | drv_crypto.c | 252 if (ctx->contex) in _crypto_destroy() 253 rt_free(ctx->contex); in _crypto_destroy()
|