| /optee_os/core/drivers/crypto/stm32/ |
| H A D | ecc.c | 17 enum stm32_pka_curve_id *cid) in algo_to_pka_cid() argument 21 *cid = PKA_NIST_P192; in algo_to_pka_cid() 24 *cid = PKA_NIST_P224; in algo_to_pka_cid() 27 *cid = PKA_NIST_P256; in algo_to_pka_cid() 30 *cid = PKA_NIST_P384; in algo_to_pka_cid() 33 *cid = PKA_NIST_P521; in algo_to_pka_cid() 44 enum stm32_pka_curve_id *cid) in curve_to_pka_cid() argument 48 *cid = PKA_NIST_P192; in curve_to_pka_cid() 51 *cid = PKA_NIST_P224; in curve_to_pka_cid() 54 *cid = PKA_NIST_P256; in curve_to_pka_cid() [all …]
|
| H A D | stm32_pka.h | 45 const enum stm32_pka_curve_id cid); 50 const enum stm32_pka_curve_id cid); 53 const enum stm32_pka_curve_id cid); 57 const enum stm32_pka_curve_id cid); 60 const enum stm32_pka_curve_id cid); 66 const enum stm32_pka_curve_id cid); 71 const enum stm32_pka_curve_id cid);
|
| H A D | stm32_pka.c | 864 static unsigned int get_ecc_op_nbword(const enum stm32_pka_curve_id cid) in get_ecc_op_nbword() argument 866 if (cid < 0 || cid >= PKA_LAST_CID) in get_ecc_op_nbword() 869 return OP_NBW_FROM_LEN(curve_def[cid].n_len); in get_ecc_op_nbword() 874 const enum stm32_pka_curve_id cid) in stm32_pka_configure_curve() argument 877 unsigned int eo_nbw = get_ecc_op_nbword(cid); in stm32_pka_configure_curve() 879 io_write64(base + pka_ram[op][N_LEN], curve_def[cid].n_len); in stm32_pka_configure_curve() 881 io_write64(base + pka_ram[op][P_LEN], curve_def[cid].p_len); in stm32_pka_configure_curve() 883 io_write64(base + pka_ram[op][A_SIGN], curve_def[cid].a_sign); in stm32_pka_configure_curve() 885 res = write_eo_data(base + pka_ram[op][COEFF_A], curve_def[cid].a.val, in stm32_pka_configure_curve() 886 curve_def[cid].a.size, eo_nbw); in stm32_pka_configure_curve() [all …]
|
| /optee_os/scripts/ |
| H A D | derive_rpmb_key.py | 56 def derive_key(huk, cid, compat): argument 62 data = bytearray(cid) 82 if args.cid or args.huk or args.compat: 92 if not args.cid: 100 if len(args.cid) != 16: 114 key = derive_key(args.huk, args.cid, args.compat)
|
| /optee_os/core/lib/libtomcrypt/src/misc/pbes/ |
| H A D | pbes.c | 17 int err, hid, cid; in pbes_decrypt() local 30 cid = find_cipher(arg->type.c); in pbes_decrypt() 31 if (cid == -1) return CRYPT_INVALID_CIPHER; in pbes_decrypt() 54 if ((err = cbc_start(cid, iv, k, keylen, 0, &cbc)) != CRYPT_OK) goto LBL_ERROR; in pbes_decrypt() 60 if ((diff <= 0) || (diff > cipher_descriptor[cid]->block_length)) { in pbes_decrypt()
|
| /optee_os/core/tee/ |
| H A D | tee_rpmb_fs.c | 237 uint8_t cid[RPMB_EMMC_CID_SIZE]; member 265 uint8_t cid[RPMB_EMMC_CID_SIZE]; member 335 memcpy(message, rpmb_ctx->cid, RPMB_EMMC_CID_SIZE); in tee_rpmb_key_gen() 518 sizeof(dev_info->cid), &mobj); in rpmb_probe_next() 525 sizeof(dev_info->cid)); in rpmb_probe_next() 544 memcpy(dev_info->cid, va, sizeof(dev_info->cid)); in rpmb_probe_next() 1118 DHEXDUMP(dev_info->cid, sizeof(dev_info->cid)); in rpmb_set_dev_info() 1128 memcpy(rpmb_ctx->cid, dev_info->cid, RPMB_EMMC_CID_SIZE); in rpmb_set_dev_info() 1236 if (!memcmp(rpmb_ctx->cid, dev_info.cid, in tee_rpmb_init()
|
| /optee_os/core/drivers/firewall/ |
| H A D | stm32_risaf.c | 104 #define _RISAF_REG_READ_OK(reg, cid) \ argument 105 ((reg) & BIT((cid) + _RISAF_REG_CIDCFGR_RDENC_SHIFT)) 106 #define _RISAF_REG_WRITE_OK(reg, cid) \ argument 107 ((reg) & BIT((cid) + _RISAF_REG_CIDCFGR_WRENC_SHIFT))
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ssl_msg.c | 819 memcpy(cur, rec->cid, rec->cid_len); in ssl_extract_add_data_from_record() 839 memcpy(cur, rec->cid, rec->cid_len); in ssl_extract_add_data_from_record() 1003 memcpy(rec->cid, transform->out_cid, transform->out_cid_len); in mbedtls_ssl_encrypt_buf() 1004 MBEDTLS_SSL_DEBUG_BUF(3, "CID", rec->cid, rec->cid_len); in mbedtls_ssl_encrypt_buf() 1528 memcmp(rec->cid, transform->in_cid, rec->cid_len) != 0) { in mbedtls_ssl_decrypt_buf() 3001 memcpy(ssl->out_cid, rec.cid, rec.cid_len); in mbedtls_ssl_write_record() 3915 memcpy(rec->cid, buf + rec_hdr_cid_offset, rec_hdr_cid_len); in ssl_parse_record_header()
|
| H A D | ssl_misc.h | 1244 unsigned char cid[MBEDTLS_SSL_CID_LEN_MAX]; /* The CID */ member
|