| /optee_os/core/tee/ |
| H A D | tee_svc_cryp.c | 2594 static void cryp_state_free(struct user_ta_ctx *utc, struct tee_cryp_state *cs) in cryp_state_free() argument 2598 if (tee_obj_get(utc, cs->key1, &o) == TEE_SUCCESS) in cryp_state_free() 2600 if (tee_obj_get(utc, cs->key2, &o) == TEE_SUCCESS) in cryp_state_free() 2603 TAILQ_REMOVE(&utc->cryp_states, cs, link); in cryp_state_free() 2604 if (cs->ctx_finalize != NULL) in cryp_state_free() 2605 cs->ctx_finalize(cs->ctx); in cryp_state_free() 2607 switch (TEE_ALG_GET_CLASS(cs->algo)) { in cryp_state_free() 2609 crypto_cipher_free_ctx(cs->ctx); in cryp_state_free() 2612 crypto_authenc_free_ctx(cs->ctx); in cryp_state_free() 2615 crypto_hash_free_ctx(cs->ctx); in cryp_state_free() [all …]
|
| /optee_os/core/drivers/ |
| H A D | ls_dspi.c | 246 unsigned int cs = data->slave_cs; in ls_dspi_txrx8() local 257 ctrl = DSPI_TFR_CTAS(data->ctar_sel) | DSPI_TFR_PCS(cs); in ls_dspi_txrx8() 299 unsigned int cs = data->slave_cs; in ls_dspi_txrx16() local 310 ctrl = DSPI_TFR_CTAS(data->ctar_sel) | DSPI_TFR_PCS(cs); in ls_dspi_txrx16() 361 unsigned int cs = data->slave_cs; in ls_dspi_end() local 363 DSPI_TFR_PCS(cs); in ls_dspi_end() 408 unsigned int cs, unsigned int state) in dspi_set_cs_active_state() argument 410 DMSG("Set CS active state cs=%d state=%d", cs, state); in dspi_set_cs_active_state() 414 io_clrbits32(dspi_data->base + DSPI_MCR, DSPI_MCR_PCSIS(cs)); in dspi_set_cs_active_state() 417 io_setbits32(dspi_data->base + DSPI_MCR, DSPI_MCR_PCSIS(cs)); in dspi_set_cs_active_state() [all …]
|
| /optee_os/core/kernel/ |
| H A D | transfer_list.c | 300 uint8_t cs = 0; in calc_byte_sum() local 304 cs += b[n]; in calc_byte_sum() 306 return cs; in calc_byte_sum() 316 uint8_t cs = 0; in transfer_list_update_checksum() local 321 cs = calc_byte_sum(tl); in transfer_list_update_checksum() 322 cs -= tl->checksum; in transfer_list_update_checksum() 323 cs = 256 - cs; in transfer_list_update_checksum() 324 tl->checksum = cs; in transfer_list_update_checksum()
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp15xx-dhcom-som.dtsi | 180 st,fmc2-ebi-cs-mux-enable; 181 st,fmc2-ebi-cs-transaction-type = <4>; 182 st,fmc2-ebi-cs-buswidth = <16>; 183 st,fmc2-ebi-cs-address-setup-ns = <5>; 184 st,fmc2-ebi-cs-address-hold-ns = <5>; 185 st,fmc2-ebi-cs-bus-turnaround-ns = <5>; 186 st,fmc2-ebi-cs-data-setup-ns = <45>; 187 st,fmc2-ebi-cs-data-hold-ns = <1>; 188 st,fmc2-ebi-cs-write-address-setup-ns = <5>; 189 st,fmc2-ebi-cs-write-address-hold-ns = <5>; [all …]
|
| H A D | stm32mp15xx-dhcor-avenger96.dtsi | 370 cs-gpios = <&gpioi 0 0>;
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 224 static LTC_INLINE int tweetnacl_crypto_hash_ctx(u8 *out,const u8 *m,u64 n,const u8 *ctx,u32 cs) in tweetnacl_crypto_hash_ctx() argument 231 if(cs == 0) in tweetnacl_crypto_hash_ctx() 234 return hash_memory_multi(hash_idx, out, &len, ctx, cs, m, n, LTC_NULL); in tweetnacl_crypto_hash_ctx() 384 …rypto_sign(u8 *sm,u64 *smlen,const u8 *m,u64 mlen,const u8 *sk,const u8 *pk, const u8 *ctx, u64 cs) in tweetnacl_crypto_sign() argument 399 tweetnacl_crypto_hash_ctx(r, sm+32, mlen+32,ctx,cs); in tweetnacl_crypto_sign() 405 tweetnacl_crypto_hash_ctx(h,sm,mlen + 64,ctx,cs); in tweetnacl_crypto_sign() 452 …ypto_sign_open(int *stat, u8 *m,u64 *mlen,const u8 *sm,u64 smlen,const u8 *ctx,u64 cs,const u8 *pk) in tweetnacl_crypto_sign_open() argument 468 tweetnacl_crypto_hash_ctx(h,m,smlen,ctx,cs); in tweetnacl_crypto_sign_open()
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_private.h | 391 const unsigned char *ctx,unsigned long long cs); 396 const unsigned char *ctx, unsigned long long cs,
|