| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_sbromlib/ |
| D | bsv_hash_driver.c | 36 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_CLK_ENABLE) ,CC_BSV_CLOCK_ENABLE); in InitBsvHash() 37 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, DMA_CLK_ENABLE) ,CC_BSV_CLOCK_ENABLE); in InitBsvHash() 53 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, CRYPTO_CTL) ,BSV_CRYPTO_HASH); in InitBsvHash() 54 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_SEL_AES_MAC) ,0); in InitBsvHash() 57 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_CONTROL) ,BSV_HASH_CTL_SHA256_VAL); in InitBsvHash() 60 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_PAD_EN) ,CC_TRUE); in InitBsvHash() 63 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_CUR_LEN_0), 0); in InitBsvHash() 64 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_CUR_LEN_1), 0); in InitBsvHash() 67 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_H7) ,BSV_HASH_SHA256[7]); in InitBsvHash() 68 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_H6) ,BSV_HASH_SHA256[6]); in InitBsvHash() [all …]
|
| D | bsv_aes_driver.c | 110 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_0) ,pUserKey[0]); in LoadBsvAesKey() 111 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_1) ,pUserKey[1]); in LoadBsvAesKey() 112 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_2) ,pUserKey[2]); in LoadBsvAesKey() 113 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_3) ,pUserKey[3]); in LoadBsvAesKey() 116 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_4) ,pUserKey[4]); in LoadBsvAesKey() 117 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_5) ,pUserKey[5]); in LoadBsvAesKey() 118 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_6) ,pUserKey[6]); in LoadBsvAesKey() 119 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_KEY_0_7) ,pUserKey[7]); in LoadBsvAesKey() 131 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HOST_CRYPTOKEY_SEL) ,keyType); in LoadBsvAesKey() 132 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_SK) ,0x1); in LoadBsvAesKey() [all …]
|
| D | bsv_hw_defs.h | 25 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, NVM_IS_IDLE), regVal); \ 35 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, AIB_FUSE_PROG_COMPLETED), regVal); \ 42 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, LCS_REG), regVal); \ 49 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, LCS_REG), regVal); \ 56 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, LCS_REG), regVal); \ 63 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, LCS_REG), regVal); \ 70 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, LCS_REG), regVal); \ 92 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, OTP_ADDR_WIDTH_DEF), otpLength); \ 123 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress, CRYPTO_BUSY), regVal); \
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/reg/ |
| D | crypto_driver.c | 64 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress,AES_CLK_ENABLE) ,SB_SET_CLK_ENABLE_VAL); in SBROM_CryptoInitDriver() 65 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress,DMA_CLK_ENABLE) ,SB_SET_CLK_ENABLE_VAL); in SBROM_CryptoInitDriver() 68 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_REMAINING_BYTES) ,0); in SBROM_CryptoInitDriver() 71 address = SB_REG_ADDR(hwBaseAddress, AES_KEY_0_0); in SBROM_CryptoInitDriver() 83 address = SB_REG_ADDR(hwBaseAddress, AES_IV_0_0); in SBROM_CryptoInitDriver() 89 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_CMAC_INIT) ,0x1); in SBROM_CryptoInitDriver() 96 address = SB_REG_ADDR(hwBaseAddress, AES_CTR_0_0); in SBROM_CryptoInitDriver() 104 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, AES_CONTROL) ,aesCtrl); in SBROM_CryptoInitDriver() 114 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HASH_CLK_ENABLE) ,SB_SET_CLK_ENABLE_VAL); in SBROM_CryptoInitDriver() 115 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, DMA_CLK_ENABLE) ,SB_SET_CLK_ENABLE_VAL); in SBROM_CryptoInitDriver() [all …]
|
| D | crypto_driver_defs.h | 52 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, DOUT_MEM_DMA_BUSY), regVal); \ 61 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, DIN_MEM_DMA_BUSY), regVal); \ 70 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, CRYPTO_BUSY), regVal); \ 79 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, AES_BUSY), regVal); \ 88 SB_HAL_READ_REGISTER( SB_REG_ADDR(hwBaseAddress, HASH_BUSY), regVal); \
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/crypto_driver/ |
| D | rsa_hwdefs.h | 141 SB_HAL_READ_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_PIPE_RDY), output_reg_val ); \ 152 SB_HAL_READ_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_DONE), output_reg_val); \ 164 SB_HAL_READ_REGISTER( (SB_REG_ADDR(VirtualHwBaseAddr,PKA_L0) + 4*(EntryNum)), \ 175 ( *((volatile uint32_t*)(SB_REG_ADDR(VirtualHwBaseAddr,MEMORY_MAP0) + 4*(VirtReg))) ) 204 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_WDATA), 0); \ 212 …SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_ADDR), ((Addr)+ RSA_HW_PKI_PKA_DATA… 213 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_WDATA), (Val)); \ 221 …SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_ADDR), ((Addr)+ RSA_HW_PKI_PKA_DATA… 222 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_WDATA), (tempVal)); \ 232 …SB_HAL_WRITE_REGISTER( SB_REG_ADDR(VirtualHwBaseAddr, PKA_SRAM_ADDR), ((Addr)+RSA_HW_PKI_PKA_DATA_… [all …]
|
| D | rsa_pki_pka.c | 64 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, PKA_L0), opSizeInBits); in RSA_PKA_SetRegsSizesTab() 66 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, PKA_L0) + 4, in RSA_PKA_SetRegsSizesTab() 71 … SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, PKA_L0) + 4*i, PKA_SIZE_ENTRY_NOT_USED); in RSA_PKA_SetRegsSizesTab() 112 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, MEMORY_MAP0) + in RSA_PKA_SetRegsMapTab() 117 …SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, MEMORY_MAP0) + 30*sizeof(uint32_t), currentAd… in RSA_PKA_SetRegsMapTab() 118 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, MEMORY_MAP0) + 31*sizeof(uint32_t), in RSA_PKA_SetRegsMapTab() 122 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(virtualHwBaseAddr, N_NP_T0_T1_ADDR), in RSA_PKA_SetRegsMapTab() 161 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(virtualHwBaseAddr, PKA_CLK_ENABLE), 0x1UL ); in RSA_PKA_InitPka() 196 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(virtualHwBaseAddr, PKA_CLK_ENABLE), 0x0UL ); in RSA_HW_PKI_PKA_FinishPKA() 304 SB_HAL_WRITE_REGISTER( SB_REG_ADDR(virtualHwBaseAddr, OPCODE), FullOpCode); in _RSA_PKA_ExecOperation()
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/secure_debug/cc3x/ |
| D | secdebug_defs.h | 278 …SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HOST_DCU_LOCK0) + ii * sizeof(uint32_t), dcuLock[… 279 …SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress,HOST_DCU_LOCK0) + ii * sizeof(uint32_t), rr); … 289 …SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, HOST_DCU_EN0) + ii * sizeof(uint32_t), dcuVal[ii]… 299 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress,regName), regVal); \ 301 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, regName), regVal); \ 302 SB_HAL_READ_REGISTER(SB_REG_ADDR(hwBaseAddress,regName), rr); \
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/secure_boot_gen/ |
| D | secureboot_general_hwdefs.h | 22 #define SB_REG_ADDR(base, reg_name) (base + CC_REG_OFFSET(CRY_KERNEL, reg_name)) macro
|
| /trusted-firmware-m-latest/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/ |
| D | sbrt_int_func.c | 317 SB_HAL_WRITE_REGISTER(SB_REG_ADDR(hwBaseAddress, CRYPTO_CTL) ,mode); in SBRT_CryptoImageInit()
|