Lines Matching refs:descriptor
606 CAAM_Type *base, caam_job_ring_t jobRing, uint32_t *descriptor, bool *wait, bool *found) in caam_out_job_ring_test_and_remove() argument
653 if (jr[i] == (uint32_t)descriptor) in caam_out_job_ring_test_and_remove()
801 caam_desc_aes_gcm_t descriptor,
817 caam_desc_aes_gcm_t descriptor, in caam_aes_gcm_non_blocking() argument
842 (void)caam_memcpy(descriptor, templateAesGcm, sizeof(templateAesGcm)); in caam_aes_gcm_non_blocking()
845 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in caam_aes_gcm_non_blocking()
848 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in caam_aes_gcm_non_blocking()
849 descriptor[2] = ADD_OFFSET((uint32_t)key); in caam_aes_gcm_non_blocking()
854 descriptor[3] |= 1u; /* ENC */ in caam_aes_gcm_non_blocking()
858 descriptor[5] = tagSize; in caam_aes_gcm_non_blocking()
864 descriptor[6] |= (ivSize & DESC_PAYLOAD_SIZE_MASK); in caam_aes_gcm_non_blocking()
865 descriptor[7] = ADD_OFFSET((uint32_t)iv); in caam_aes_gcm_non_blocking()
868 descriptor[6] |= DESC_LC1_MASK; /* LC1 */ in caam_aes_gcm_non_blocking()
872 descriptor[8] |= (aadSize & DESC_PAYLOAD_SIZE_MASK); in caam_aes_gcm_non_blocking()
873 descriptor[9] = ADD_OFFSET((uint32_t)aad); in caam_aes_gcm_non_blocking()
876 descriptor[8] |= DESC_LC1_MASK; /* LC1 */ in caam_aes_gcm_non_blocking()
880 descriptor[11] = ADD_OFFSET((uint32_t)input); in caam_aes_gcm_non_blocking()
881 descriptor[12] = size; in caam_aes_gcm_non_blocking()
884 descriptor[14] = ADD_OFFSET((uint32_t)output); in caam_aes_gcm_non_blocking()
885 descriptor[15] = size; in caam_aes_gcm_non_blocking()
891 descriptor[22] = tagSize; in caam_aes_gcm_non_blocking()
892 descriptor[24] |= (tagSize & DESC_TAG_SIZE_MASK); in caam_aes_gcm_non_blocking()
893 descriptor[25] = ADD_OFFSET((uint32_t)tag); in caam_aes_gcm_non_blocking()
898 …descriptor[16] = 0x52200000u | (tagSize & DESC_TAG_SIZE_MASK); /* STORE from Class 1 context to ta… in caam_aes_gcm_non_blocking()
899 descriptor[17] = ADD_OFFSET((uint32_t)tag); /* place: tag address */ in caam_aes_gcm_non_blocking()
901 …descriptor[18] = DESC_HALT; /* always halt with status 0x0 (nor… in caam_aes_gcm_non_blocking()
907 descriptor[16] = DESC_HALT; /* always halt with status 0x0 (normal) */ in caam_aes_gcm_non_blocking()
911 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_aes_gcm_non_blocking()
1041 caam_desc_aes_ccm_t descriptor,
1057 caam_desc_aes_ccm_t descriptor, in caam_aes_ccm_non_blocking() argument
1076 (void)caam_memcpy(descriptor, templateAesCcm, sizeof(templateAesCcm)); in caam_aes_ccm_non_blocking()
1085 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in caam_aes_ccm_non_blocking()
1088 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in caam_aes_ccm_non_blocking()
1089 descriptor[2] = ADD_OFFSET((uint32_t)key); in caam_aes_ccm_non_blocking()
1092 caam_aes_ccm_context_init(size, iv, ivSize, aadSize, tagSize, &descriptor[4], &descriptor[9]); in caam_aes_ccm_non_blocking()
1097 descriptor[13] |= 1u; /* ENC */ in caam_aes_ccm_non_blocking()
1103 descriptor[18] = 0x22510000u; in caam_aes_ccm_non_blocking()
1104 descriptor[13] |= 2u; /* ICV_TEST */ in caam_aes_ccm_non_blocking()
1117 …(void)caam_memcpy(&descriptor[15], (uint32_t *)(uintptr_t)(((uint8_t *)&swapped) + sizeof(uint16_t… in caam_aes_ccm_non_blocking()
1120 (void)caam_memcpy(((uint8_t *)&descriptor[15]) + 2, aad, sz); /* fill B1 with aad */ in caam_aes_ccm_non_blocking()
1128 descriptor[14] |= 0x00010000U; /* Flush (last AAD data) */ in caam_aes_ccm_non_blocking()
1129 descriptor[16] = DESC_JUMP_2; /* jump to current index + 2 (=18) */ in caam_aes_ccm_non_blocking()
1133 descriptor[16] |= (aadSize & DESC_PAYLOAD_SIZE_MASK); in caam_aes_ccm_non_blocking()
1134 descriptor[17] = ADD_OFFSET((uint32_t)aad); in caam_aes_ccm_non_blocking()
1140 descriptor[14] = DESC_JUMP_4; /* jump to current index + 4 (=18) */ in caam_aes_ccm_non_blocking()
1144 descriptor[19] = ADD_OFFSET((uint32_t)input); in caam_aes_ccm_non_blocking()
1145 descriptor[20] = size; in caam_aes_ccm_non_blocking()
1148 descriptor[22] = ADD_OFFSET((uint32_t)output); in caam_aes_ccm_non_blocking()
1149 descriptor[23] = size; in caam_aes_ccm_non_blocking()
1157 descriptor[24] = 0x223B0000u; in caam_aes_ccm_non_blocking()
1159 descriptor[24] |= (tagSize & DESC_TAG_SIZE_MASK); in caam_aes_ccm_non_blocking()
1160 descriptor[25] = ADD_OFFSET((uint32_t)tag); in caam_aes_ccm_non_blocking()
1165 descriptor[24] = DESC_HALT; /* always halt with status 0x0 (normal) */ in caam_aes_ccm_non_blocking()
1169 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_aes_ccm_non_blocking()
1195 caam_desc_aes_ccm_t descriptor, in CAAM_AES_EncryptTagCcmNonBlocking() argument
1208 …return caam_aes_ccm_non_blocking(base, handle, descriptor, plaintext, ciphertext, size, iv, ivSize… in CAAM_AES_EncryptTagCcmNonBlocking()
1237 caam_desc_aes_ccm_t descriptor, in CAAM_AES_DecryptTagCcmNonBlocking() argument
1250 …return caam_aes_ccm_non_blocking(base, handle, descriptor, ciphertext, plaintext, size, iv, ivSize… in CAAM_AES_DecryptTagCcmNonBlocking()
1314 caam_desc_aes_ctr_t descriptor, in CAAM_AES_CryptCtrNonBlocking() argument
1334 (void)caam_memcpy(descriptor, templateAesCtr, sizeof(templateAesCtr)); in CAAM_AES_CryptCtrNonBlocking()
1337 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_AES_CryptCtrNonBlocking()
1340 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in CAAM_AES_CryptCtrNonBlocking()
1341 descriptor[2] = ADD_OFFSET((uint32_t)key); in CAAM_AES_CryptCtrNonBlocking()
1344 descriptor[4] = ADD_OFFSET((uint32_t)counter); in CAAM_AES_CryptCtrNonBlocking()
1347 descriptor[7] = ADD_OFFSET((uint32_t)input); in CAAM_AES_CryptCtrNonBlocking()
1348 descriptor[8] = size; in CAAM_AES_CryptCtrNonBlocking()
1351 descriptor[10] = ADD_OFFSET((uint32_t)output); in CAAM_AES_CryptCtrNonBlocking()
1352 descriptor[11] = size; in CAAM_AES_CryptCtrNonBlocking()
1373 descriptor[12] = 0xA000000Bu; /* jump to current index + 11 (=23) */ in CAAM_AES_CryptCtrNonBlocking()
1379 descriptor[5] |= 0x08u; /* finalize */ in CAAM_AES_CryptCtrNonBlocking()
1380 descriptor[21] = ADD_OFFSET((uint32_t)counterlast); in CAAM_AES_CryptCtrNonBlocking()
1395 descriptor[24] = ADD_OFFSET((uint32_t)counter); in CAAM_AES_CryptCtrNonBlocking()
1398 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_AES_CryptCtrNonBlocking()
1430 caam_desc_aes_ecb_t descriptor, in CAAM_AES_EncryptEcbNonBlocking() argument
1451 (void)caam_memcpy(descriptor, templateAesEcb, sizeof(templateAesEcb)); in CAAM_AES_EncryptEcbNonBlocking()
1452 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_AES_EncryptEcbNonBlocking()
1453 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in CAAM_AES_EncryptEcbNonBlocking()
1454 descriptor[2] = (uint32_t)ADD_OFFSET((uint32_t)key); in CAAM_AES_EncryptEcbNonBlocking()
1456 descriptor[4] = (uint32_t)ADD_OFFSET((uint32_t)plaintext); in CAAM_AES_EncryptEcbNonBlocking()
1457 descriptor[5] = size; /* FIFO LOAD EXT size */ in CAAM_AES_EncryptEcbNonBlocking()
1459 descriptor[7] = (uint32_t)ADD_OFFSET((uint32_t)ciphertext); in CAAM_AES_EncryptEcbNonBlocking()
1460 descriptor[8] = size; /* FIFO STORE EXT size */ in CAAM_AES_EncryptEcbNonBlocking()
1461 descriptor[9] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_AES_EncryptEcbNonBlocking()
1463 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_AES_EncryptEcbNonBlocking()
1483 caam_desc_aes_ecb_t descriptor, in CAAM_AES_DecryptEcbNonBlocking() argument
1503 (void)caam_memcpy(descriptor, templateAesEcb, sizeof(templateAesEcb)); in CAAM_AES_DecryptEcbNonBlocking()
1504 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_AES_DecryptEcbNonBlocking()
1505 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in CAAM_AES_DecryptEcbNonBlocking()
1506 descriptor[2] = (uint32_t)ADD_OFFSET((uint32_t)key); in CAAM_AES_DecryptEcbNonBlocking()
1508 descriptor[4] = (uint32_t)ADD_OFFSET((uint32_t)ciphertext); in CAAM_AES_DecryptEcbNonBlocking()
1509 descriptor[5] = size; in CAAM_AES_DecryptEcbNonBlocking()
1511 descriptor[7] = (uint32_t)ADD_OFFSET((uint32_t)plaintext); in CAAM_AES_DecryptEcbNonBlocking()
1512 descriptor[8] = size; /* FIFO STORE EXT size */ in CAAM_AES_DecryptEcbNonBlocking()
1514 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_AES_DecryptEcbNonBlocking()
1550 caam_desc_aes_cbc_t descriptor, in CAAM_AES_EncryptCbcNonBlocking() argument
1574 (void)caam_memcpy(descriptor, templateAesCbc, sizeof(templateAesCbc)); in CAAM_AES_EncryptCbcNonBlocking()
1577 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_AES_EncryptCbcNonBlocking()
1580 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in CAAM_AES_EncryptCbcNonBlocking()
1581 descriptor[2] = (uint32_t)ADD_OFFSET((uint32_t)key); in CAAM_AES_EncryptCbcNonBlocking()
1584 descriptor[4] = (uint32_t)ADD_OFFSET((uint32_t)iv); in CAAM_AES_EncryptCbcNonBlocking()
1587 descriptor[6] = (uint32_t)ADD_OFFSET((uint32_t)plaintext); in CAAM_AES_EncryptCbcNonBlocking()
1588 descriptor[7] = size; in CAAM_AES_EncryptCbcNonBlocking()
1591 descriptor[9] = (uint32_t)ADD_OFFSET((uint32_t)ciphertext); in CAAM_AES_EncryptCbcNonBlocking()
1592 descriptor[10] = size; in CAAM_AES_EncryptCbcNonBlocking()
1595 descriptor[11] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_AES_EncryptCbcNonBlocking()
1598 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_AES_EncryptCbcNonBlocking()
1619 caam_desc_aes_cbc_t descriptor, in CAAM_AES_DecryptCbcNonBlocking() argument
1642 (void)caam_memcpy(descriptor, templateAesCbc, sizeof(templateAesCbc)); in CAAM_AES_DecryptCbcNonBlocking()
1645 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_AES_DecryptCbcNonBlocking()
1648 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in CAAM_AES_DecryptCbcNonBlocking()
1649 descriptor[2] = ADD_OFFSET((uint32_t)key); in CAAM_AES_DecryptCbcNonBlocking()
1652 descriptor[4] = ADD_OFFSET((uint32_t)iv); in CAAM_AES_DecryptCbcNonBlocking()
1655 descriptor[6] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_AES_DecryptCbcNonBlocking()
1656 descriptor[7] = size; in CAAM_AES_DecryptCbcNonBlocking()
1659 descriptor[9] = ADD_OFFSET((uint32_t)plaintext); in CAAM_AES_DecryptCbcNonBlocking()
1660 descriptor[10] = size; in CAAM_AES_DecryptCbcNonBlocking()
1665 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_AES_DecryptCbcNonBlocking()
1693 caam_desc_aes_gcm_t descriptor, in CAAM_AES_EncryptTagGcmNonBlocking() argument
1706 …return caam_aes_gcm_non_blocking(base, handle, descriptor, plaintext, ciphertext, size, iv, ivSize… in CAAM_AES_EncryptTagGcmNonBlocking()
1735 caam_desc_aes_gcm_t descriptor, in CAAM_AES_DecryptTagGcmNonBlocking() argument
1748 …return caam_aes_gcm_non_blocking(base, handle, descriptor, ciphertext, plaintext, size, iv, ivSize… in CAAM_AES_DecryptTagGcmNonBlocking()
1934 status_t CAAM_Wait(CAAM_Type *base, caam_handle_t *handle, uint32_t *descriptor, caam_wait_mode_t m… in CAAM_Wait() argument
1951 … (uint32_t *)ADD_OFFSET((uint32_t)descriptor), &wait, &found); in CAAM_Wait()
2906 caam_desc_hash_t descriptor, in caam_hash_schedule_input_data() argument
2926 (void)caam_memcpy(descriptor, templateHash, sizeof(templateHash)); in caam_hash_schedule_input_data()
2931 descriptor[1] |= hashClass; in caam_hash_schedule_input_data()
2932 descriptor[3] |= hashClass; in caam_hash_schedule_input_data()
2933 descriptor[5] |= hashClass; in caam_hash_schedule_input_data()
2934 descriptor[6] |= hashClass; in caam_hash_schedule_input_data()
2935 descriptor[9] |= hashClass; in caam_hash_schedule_input_data()
2936 descriptor[11] |= hashClass; in caam_hash_schedule_input_data()
2939 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in caam_hash_schedule_input_data()
2947 descriptor[0] |= 0x00050000U; /* JUMP to descriptor[5] */ in caam_hash_schedule_input_data()
2954 descriptor[1] |= 1UL << 14; in caam_hash_schedule_input_data()
2958 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in caam_hash_schedule_input_data()
2959 descriptor[2] = ADD_OFFSET(keyAddr); in caam_hash_schedule_input_data()
2960 descriptor[3] = DESC_JUMP_2; /* JUMP to descriptor[5] */ in caam_hash_schedule_input_data()
2970 descriptor[0] |= 0x00030000U; /* JUMP to descriptor[3] */ in caam_hash_schedule_input_data()
2976 descriptor[1] |= (keySize & DESC_KEY_SIZE_MASK); in caam_hash_schedule_input_data()
2977 descriptor[2] = ADD_OFFSET(keyAddr); in caam_hash_schedule_input_data()
2984 descriptor[1] |= (uint32_t)1u << 22; /* ENC */ in caam_hash_schedule_input_data()
2989 descriptor[3] |= caamCtxSz; in caam_hash_schedule_input_data()
2990 descriptor[4] = ADD_OFFSET((uint32_t)(uint32_t *)context); in caam_hash_schedule_input_data()
2999 descriptor[5] |= caam_hash_algo2mode(algo, (uint32_t)algState << 2, &algOutSize); in caam_hash_schedule_input_data()
3002 descriptor[8] = dataSize; in caam_hash_schedule_input_data()
3005 descriptor[7] = ADD_OFFSET( in caam_hash_schedule_input_data()
3006 …(uint32_t)&descriptor[(uint32_t)kCAAM_HashDescriptorSgtIdx]); /* use SGT embedded in the job descr… in caam_hash_schedule_input_data()
3007 …(void)caam_memcpy(&descriptor[(uint32_t)kCAAM_HashDescriptorSgtIdx], (const uint32_t *)(uintptr_t)… in caam_hash_schedule_input_data()
3012 descriptor[7] = ADD_OFFSET((uint32_t)sgt); in caam_hash_schedule_input_data()
3029 descriptor[9] |= caamCtxSz; in caam_hash_schedule_input_data()
3033 descriptor[10] = ADD_OFFSET((uint32_t)(uint32_t *)output); in caam_hash_schedule_input_data()
3038 descriptor[10] = ADD_OFFSET((uint32_t)(uint32_t *)context); in caam_hash_schedule_input_data()
3044 descriptor[11] |= (keySize & DESC_KEY_SIZE_MASK); in caam_hash_schedule_input_data()
3045 descriptor[12] = ADD_OFFSET((uint32_t)&keyAddr); in caam_hash_schedule_input_data()
3052 descriptor[11] = 0x60260000u | (64u & DESC_KEY_SIZE_MASK); in caam_hash_schedule_input_data()
3053 descriptor[12] = ADD_OFFSET((uint32_t)&keyAddr); in caam_hash_schedule_input_data()
3057 descriptor[11] = ADD_OFFSET(descriptor[13]); /* always halt with status 0x0 (normal) */ in caam_hash_schedule_input_data()
3060 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_hash_schedule_input_data()
3072 caam_desc_hash_t descriptor, in caam_hash_append_data() argument
3081 … kCAAM_HashSgtInternal, algState, descriptor, outputSize, output, in caam_hash_append_data()
3411 caam_desc_hash_t descriptor, in CAAM_HASH_FinishNonBlocking() argument
3444 … kCAAM_HashSgtExternal, kCAAM_AlgStateInitFinal, descriptor, outputSize, in CAAM_HASH_FinishNonBlocking()
3531 caam_desc_hash_t descriptor, in CAAM_HASH_NonBlocking() argument
3553 …hash_schedule_input_data(base, handle, algo, sgt, num, kCAAM_HashSgtInternal, algState, descriptor, in CAAM_HASH_NonBlocking()
3688 caam_desc_hash_t descriptor, in CAAM_HMAC_NonBlocking() argument
3725 …status = CAAM_HASH_NonBlocking(base, handle, descriptor, algo, input, inputSize, updatedKey, updat… in CAAM_HMAC_NonBlocking()
3902 caam_desc_hash_t descriptor, in caam_crc_schedule_input_data() argument
3921 (void)caam_memcpy(descriptor, templateHash, sizeof(templateHash)); in caam_crc_schedule_input_data()
3926 descriptor[1] |= 0x04000000u; in caam_crc_schedule_input_data()
3927 descriptor[3] |= 0x04000000u; in caam_crc_schedule_input_data()
3928 descriptor[5] |= 0x04000000u; in caam_crc_schedule_input_data()
3929 descriptor[6] |= 0x04000000u; in caam_crc_schedule_input_data()
3930 descriptor[9] |= 0x04000000u; in caam_crc_schedule_input_data()
3931 descriptor[11] |= 0x04000000u; in caam_crc_schedule_input_data()
3934 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in caam_crc_schedule_input_data()
3942 descriptor[0] |= 0x00050000U; /* JUMP to descriptor[5] */ in caam_crc_schedule_input_data()
3947 descriptor[1] |= (polynomialSize & DESC_KEY_SIZE_MASK); in caam_crc_schedule_input_data()
3948 descriptor[2] = ADD_OFFSET(polynomialAddr); in caam_crc_schedule_input_data()
3949 descriptor[3] = DESC_JUMP_2; /* JUMP to descriptor[5] */ in caam_crc_schedule_input_data()
3959 descriptor[0] |= 0x00030000U; /* JUMP to descriptor[3] */ in caam_crc_schedule_input_data()
3964 descriptor[1] |= (polynomialSize & DESC_KEY_SIZE_MASK); in caam_crc_schedule_input_data()
3965 descriptor[2] = ADD_OFFSET(polynomialAddr); in caam_crc_schedule_input_data()
3969 descriptor[3] |= caamCtxSz; in caam_crc_schedule_input_data()
3970 descriptor[4] = ADD_OFFSET((uint32_t)(uint32_t *)context); in caam_crc_schedule_input_data()
3979 descriptor[5] |= caam_crc_algo2mode(algo, (uint32_t)crcMode, (uint32_t)algState << 2); in caam_crc_schedule_input_data()
3982 descriptor[8] = dataSize; in caam_crc_schedule_input_data()
3985 descriptor[7] = ADD_OFFSET( in caam_crc_schedule_input_data()
3986 …(uint32_t)&descriptor[(uint32_t)kCAAM_HashDescriptorSgtIdx]); /* use SGT embedded in the job descr… in caam_crc_schedule_input_data()
3987 …(void)caam_memcpy(&descriptor[(uint32_t)kCAAM_HashDescriptorSgtIdx], (const uint32_t *)(uintptr_t)… in caam_crc_schedule_input_data()
3992 descriptor[7] = ADD_OFFSET((uint32_t)sgt); in caam_crc_schedule_input_data()
4015 descriptor[9] |= caamCtxSz; in caam_crc_schedule_input_data()
4019 descriptor[10] = ADD_OFFSET((uint32_t)(uint32_t *)output); in caam_crc_schedule_input_data()
4024 descriptor[10] = ADD_OFFSET((uint32_t)(uint32_t *)context); in caam_crc_schedule_input_data()
4027 descriptor[11] = ADD_OFFSET(descriptor[13]); /* always halt with status 0x0 (normal) */ in caam_crc_schedule_input_data()
4029 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_crc_schedule_input_data()
4041 caam_desc_hash_t descriptor, in caam_crc_append_data() argument
4050 … sgt, num, kCAAM_HashSgtInternal, algState, descriptor, outputSize, output, in caam_crc_append_data()
4368 caam_desc_hash_t descriptor, in CAAM_CRC_NonBlocking() argument
4392 … descriptor, outputSize, output, NULL, (uint32_t)polynomial, polynomialSize); in CAAM_CRC_NonBlocking()
4704 caam_desc_rng_t descriptor, in CAAM_RNG_GetRandomDataNonBlocking() argument
4714 (void)caam_memcpy(descriptor, templateRng, sizeof(templateRng)); in CAAM_RNG_GetRandomDataNonBlocking()
4715 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_RNG_GetRandomDataNonBlocking()
4720 descriptor[2] = ADD_OFFSET((uint32_t)additionalEntropy); in CAAM_RNG_GetRandomDataNonBlocking()
4721 descriptor[5] |= (uint32_t)1U << 11; /* set AI bit in ALG OPERATION */ in CAAM_RNG_GetRandomDataNonBlocking()
4722 descriptor[5] |= (uint32_t)1U << 1; /* set PR bit in ALG OPERATION (entropy seed) */ in CAAM_RNG_GetRandomDataNonBlocking()
4726 descriptor[0] |= (uint32_t)3u << 16; /* start at index 3 */ in CAAM_RNG_GetRandomDataNonBlocking()
4729 descriptor[4] = dataSize; /* Generate OPERATION */ in CAAM_RNG_GetRandomDataNonBlocking()
4730 descriptor[7] = ADD_OFFSET((uint32_t)(uint32_t *)data); in CAAM_RNG_GetRandomDataNonBlocking()
4731 descriptor[8] = dataSize; /* FIFO STORE */ in CAAM_RNG_GetRandomDataNonBlocking()
4736 descriptor[5] |= 1u << 4; in CAAM_RNG_GetRandomDataNonBlocking()
4742 descriptor[5] |= (uint32_t)1u << 8; /* set NZB bit in ALG OPERATION */ in CAAM_RNG_GetRandomDataNonBlocking()
4747 descriptor[5] |= (uint32_t)1u << 9; /* set OBP bit in ALG OPERATION */ in CAAM_RNG_GetRandomDataNonBlocking()
4750 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_RNG_GetRandomDataNonBlocking()
4788 caam_desc_key_black_t descriptor; in CAAM_BLACK_GetKeyBlacken() local
4794 (void)caam_memcpy(descriptor, templateBlack, sizeof(templateBlack)); in CAAM_BLACK_GetKeyBlacken()
4795 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_BLACK_GetKeyBlacken()
4797 descriptor[1] |= dataSize; in CAAM_BLACK_GetKeyBlacken()
4798 descriptor[2] = ADD_OFFSET((uint32_t)data); in CAAM_BLACK_GetKeyBlacken()
4800 descriptor[3] |= ((uint32_t)fifostType << 16) | (dataSize & DESC_PAYLOAD_SIZE_MASK); in CAAM_BLACK_GetKeyBlacken()
4801 descriptor[4] = ADD_OFFSET((uint32_t)blackdata); in CAAM_BLACK_GetKeyBlacken()
4805 status = caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_BLACK_GetKeyBlacken()
4813 status = CAAM_Wait(base, handle, descriptor, kCAAM_Blocking); in CAAM_BLACK_GetKeyBlacken()
4862 caam_desc_gen_enc_blob_t descriptor; in CAAM_RedBlob_Encapsule() local
4877 (void)caam_memcpy(descriptor, templateBlob, sizeof(templateBlob)); in CAAM_RedBlob_Encapsule()
4878 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_RedBlob_Encapsule()
4880 …descriptor[1] |= 8u; // KEY command to Class 2 Context Register, 64… in CAAM_RedBlob_Encapsule()
4882 …descriptor[1] |= 16u; // KEY command to Class 2 Context Register, 128bits RNG KEY. in CAAM_RedBlob_Encapsule()
4884 descriptor[2] = ADD_OFFSET((uint32_t)keyModifier); // Key modifier adress in CAAM_RedBlob_Encapsule()
4885 descriptor[3] |= dataSize; // SEQ IN PTR command to load plain data in CAAM_RedBlob_Encapsule()
4886 descriptor[4] = ADD_OFFSET((uint32_t)data); // Plain data adress in CAAM_RedBlob_Encapsule()
4887 descriptor[5] |= blob_size; // SEQ OUT PTR Set outputing key blob in CAAM_RedBlob_Encapsule()
4888 descriptor[6] = ADD_OFFSET((uint32_t)blob_data); // Key blob adress in CAAM_RedBlob_Encapsule()
4890 … descriptor[7] |= (7UL << 24) | SEC_MEM; // OPERATION:Encrypt Red Blob in secure memory in CAAM_RedBlob_Encapsule()
4892 descriptor[7] |= (7UL << 24); // OPERATION:Encrypt Red Blob in normal memory in CAAM_RedBlob_Encapsule()
4898 status = caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_RedBlob_Encapsule()
4906 status = CAAM_Wait(base, handle, descriptor, kCAAM_Blocking); in CAAM_RedBlob_Encapsule()
4941 caam_desc_gen_dep_blob_t descriptor; in CAAM_RedBlob_Decapsule() local
4956 (void)caam_memcpy(descriptor, templateBlob, sizeof(templateBlob)); in CAAM_RedBlob_Decapsule()
4957 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_RedBlob_Decapsule()
4959 …descriptor[1] |= 8u; // KEY command to Class 2 Context Register, 64b… in CAAM_RedBlob_Decapsule()
4961 …descriptor[1] |= 16u; // KEY command to Class 2 Context Register, 128bits RNG KEY. in CAAM_RedBlob_Decapsule()
4963 descriptor[2] = ADD_OFFSET((uint32_t)keyModifier); // Key modifier adress in CAAM_RedBlob_Decapsule()
4964 descriptor[3] |= blob_size; // SEQ IN PTR command to load blob data in CAAM_RedBlob_Decapsule()
4965 descriptor[4] = ADD_OFFSET((uint32_t)blob_data); // Key blob adress in CAAM_RedBlob_Decapsule()
4966 descriptor[5] |= dataSize; // SEQ OUT PTR command to load plain data in CAAM_RedBlob_Decapsule()
4967 descriptor[6] = ADD_OFFSET((uint32_t)data); // Plain data adress in CAAM_RedBlob_Decapsule()
4969 … descriptor[7] |= (6UL << 24) | SEC_MEM; // OPERATION:Decrypt red blob in secure memory in CAAM_RedBlob_Decapsule()
4971 descriptor[7] |= (6UL << 24); // OPERATION:Decrypt red blob in normal memory in CAAM_RedBlob_Decapsule()
4976 status = caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_RedBlob_Decapsule()
4984 status = CAAM_Wait(base, handle, descriptor, kCAAM_Blocking); in CAAM_RedBlob_Decapsule()
5020 caam_desc_gen_enc_blob_t descriptor; in CAAM_BlackBlob_Encapsule() local
5035 (void)caam_memcpy(descriptor, templateBlob, sizeof(templateBlob)); in CAAM_BlackBlob_Encapsule()
5036 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_BlackBlob_Encapsule()
5038 …descriptor[1] |= 8u; // KEY command to Class 2 Context Register, 64b… in CAAM_BlackBlob_Encapsule()
5040 …descriptor[1] |= 16u; // KEY command to Class 2 Context Register, 128bits RNG KEY. in CAAM_BlackBlob_Encapsule()
5042 descriptor[2] = ADD_OFFSET((uint32_t)keyModifier); // Key modifier adress in CAAM_BlackBlob_Encapsule()
5043 descriptor[3] |= dataSize; // SEQ IN PTR command to load plain data in CAAM_BlackBlob_Encapsule()
5044 descriptor[4] = ADD_OFFSET((uint32_t)data); // Plain data adress in CAAM_BlackBlob_Encapsule()
5045 descriptor[5] |= blob_size; // Key blob adress in CAAM_BlackBlob_Encapsule()
5046 descriptor[6] = ADD_OFFSET((uint32_t)blob_data); // Key blob adress in CAAM_BlackBlob_Encapsule()
5048 descriptor[7] |= (7UL << 24) | ((uint32_t)blackKeyType << 8) | DESC_BLACKKEY_NOMMEN | in CAAM_BlackBlob_Encapsule()
5051 descriptor[7] |= (7UL << 24) | ((uint32_t)blackKeyType << 8) | in CAAM_BlackBlob_Encapsule()
5058 status = caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_BlackBlob_Encapsule()
5066 status = CAAM_Wait(base, handle, descriptor, kCAAM_Blocking); in CAAM_BlackBlob_Encapsule()
5102 caam_desc_gen_dep_blob_t descriptor; in CAAM_BlackBlob_Decapsule() local
5118 (void)caam_memcpy(descriptor, templateBlob, sizeof(templateBlob)); in CAAM_BlackBlob_Decapsule()
5119 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_BlackBlob_Decapsule()
5121 …descriptor[1] |= 8u; // KEY command to Class 2 Context Register, 64b… in CAAM_BlackBlob_Decapsule()
5123 …descriptor[1] |= 16u; // KEY command to Class 2 Context Register, 128bits RNG KEY. in CAAM_BlackBlob_Decapsule()
5125 descriptor[2] = ADD_OFFSET((uint32_t)keyModifier); // Key modifier adress in CAAM_BlackBlob_Decapsule()
5126 descriptor[3] |= blob_size; // SEQ IN PTR command to load blob data in CAAM_BlackBlob_Decapsule()
5127 descriptor[4] = ADD_OFFSET((uint32_t)blob_data); // Key blob adress in CAAM_BlackBlob_Decapsule()
5128 descriptor[5] |= dataSize; in CAAM_BlackBlob_Decapsule()
5129 descriptor[6] = ADD_OFFSET((uint32_t)data); // Plain data adress in CAAM_BlackBlob_Decapsule()
5131 descriptor[7] |= (6UL << 24) | ((uint32_t)blackKeyType << 8) | DESC_BLACKKEY_NOMMEN | in CAAM_BlackBlob_Decapsule()
5134 descriptor[7] |= (6UL << 24) | ((uint32_t)blackKeyType << 8) | in CAAM_BlackBlob_Decapsule()
5140 status = caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_BlackBlob_Decapsule()
5148 status = CAAM_Wait(base, handle, descriptor, kCAAM_Blocking); in CAAM_BlackBlob_Decapsule()
5231 caam_desc_cipher_des_t descriptor, in CAAM_DES_EncryptEcbNonBlocking() argument
5249 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_EncryptEcbNonBlocking()
5250 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_EncryptEcbNonBlocking()
5251 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_EncryptEcbNonBlocking()
5252 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_EncryptEcbNonBlocking()
5253 descriptor[4] = DESC_JUMP_6; /* ECB has no context, jump to currIdx+6 = 10 (FIFO LOAD) */ in CAAM_DES_EncryptEcbNonBlocking()
5254 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptEcbNonBlocking()
5255 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_EncryptEcbNonBlocking()
5256 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptEcbNonBlocking()
5257 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_EncryptEcbNonBlocking()
5258 descriptor[14] |= 0x201u; /* add ENC bit to specify Encrypt OPERATION, AAI = 20h */ in CAAM_DES_EncryptEcbNonBlocking()
5260 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_EncryptEcbNonBlocking()
5316 caam_desc_cipher_des_t descriptor, in CAAM_DES_DecryptEcbNonBlocking() argument
5333 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_DecryptEcbNonBlocking()
5334 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_DecryptEcbNonBlocking()
5335 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_DecryptEcbNonBlocking()
5336 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_DecryptEcbNonBlocking()
5337 descriptor[4] = DESC_JUMP_6; /* ECB has no context, jump to currIdx+6 = 10 (FIFO LOAD) */ in CAAM_DES_DecryptEcbNonBlocking()
5338 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptEcbNonBlocking()
5339 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_DecryptEcbNonBlocking()
5340 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptEcbNonBlocking()
5341 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_DecryptEcbNonBlocking()
5342 descriptor[14] |= (uint32_t)kCAAM_ModeECB; /* AAI = 20h */ in CAAM_DES_DecryptEcbNonBlocking()
5344 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_DecryptEcbNonBlocking()
5405 caam_desc_cipher_des_t descriptor, in CAAM_DES_EncryptCbcNonBlocking() argument
5423 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_EncryptCbcNonBlocking()
5424 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_EncryptCbcNonBlocking()
5425 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_EncryptCbcNonBlocking()
5426 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_EncryptCbcNonBlocking()
5427 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_EncryptCbcNonBlocking()
5428 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_EncryptCbcNonBlocking()
5429 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptCbcNonBlocking()
5430 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_EncryptCbcNonBlocking()
5431 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptCbcNonBlocking()
5432 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_EncryptCbcNonBlocking()
5433 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES_EncryptCbcNonBlocking()
5434 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES_EncryptCbcNonBlocking()
5435 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_EncryptCbcNonBlocking()
5496 caam_desc_cipher_des_t descriptor, in CAAM_DES_DecryptCbcNonBlocking() argument
5514 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_DecryptCbcNonBlocking()
5515 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_DecryptCbcNonBlocking()
5516 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_DecryptCbcNonBlocking()
5517 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_DecryptCbcNonBlocking()
5518 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_DecryptCbcNonBlocking()
5519 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_DecryptCbcNonBlocking()
5520 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptCbcNonBlocking()
5521 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_DecryptCbcNonBlocking()
5522 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptCbcNonBlocking()
5523 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_DecryptCbcNonBlocking()
5524 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES_DecryptCbcNonBlocking()
5526 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_DecryptCbcNonBlocking()
5585 caam_desc_cipher_des_t descriptor, in CAAM_DES_EncryptCfbNonBlocking() argument
5603 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_EncryptCfbNonBlocking()
5604 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_EncryptCfbNonBlocking()
5605 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_EncryptCfbNonBlocking()
5606 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_EncryptCfbNonBlocking()
5607 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_EncryptCfbNonBlocking()
5608 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_EncryptCfbNonBlocking()
5609 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptCfbNonBlocking()
5610 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_EncryptCfbNonBlocking()
5611 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptCfbNonBlocking()
5612 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_EncryptCfbNonBlocking()
5613 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES_EncryptCfbNonBlocking()
5614 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES_EncryptCfbNonBlocking()
5615 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_EncryptCfbNonBlocking()
5674 caam_desc_cipher_des_t descriptor, in CAAM_DES_DecryptCfbNonBlocking() argument
5692 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_DecryptCfbNonBlocking()
5693 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_DecryptCfbNonBlocking()
5694 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_DecryptCfbNonBlocking()
5695 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_DecryptCfbNonBlocking()
5696 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_DecryptCfbNonBlocking()
5697 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_DecryptCfbNonBlocking()
5698 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptCfbNonBlocking()
5699 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_DecryptCfbNonBlocking()
5700 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptCfbNonBlocking()
5701 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_DecryptCfbNonBlocking()
5702 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES_DecryptCfbNonBlocking()
5704 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_DecryptCfbNonBlocking()
5765 caam_desc_cipher_des_t descriptor, in CAAM_DES_EncryptOfbNonBlocking() argument
5783 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_EncryptOfbNonBlocking()
5784 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_EncryptOfbNonBlocking()
5785 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_EncryptOfbNonBlocking()
5786 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_EncryptOfbNonBlocking()
5787 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_EncryptOfbNonBlocking()
5788 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_EncryptOfbNonBlocking()
5789 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptOfbNonBlocking()
5790 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_EncryptOfbNonBlocking()
5791 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_EncryptOfbNonBlocking()
5792 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_EncryptOfbNonBlocking()
5793 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES_EncryptOfbNonBlocking()
5794 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES_EncryptOfbNonBlocking()
5795 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_EncryptOfbNonBlocking()
5856 caam_desc_cipher_des_t descriptor, in CAAM_DES_DecryptOfbNonBlocking() argument
5874 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES_DecryptOfbNonBlocking()
5875 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES_DecryptOfbNonBlocking()
5876 descriptor[1] |= CAAM_DES_KEY_SIZE; in CAAM_DES_DecryptOfbNonBlocking()
5877 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key, CAAM_DES_KEY_SIZE); in CAAM_DES_DecryptOfbNonBlocking()
5878 descriptor[4] = DESC_JUMP_4; /* context, jump to currIdx+4 = 8 (LOAD) */ in CAAM_DES_DecryptOfbNonBlocking()
5879 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES_DecryptOfbNonBlocking()
5880 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptOfbNonBlocking()
5881 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES_DecryptOfbNonBlocking()
5882 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES_DecryptOfbNonBlocking()
5883 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES_DecryptOfbNonBlocking()
5884 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES_DecryptOfbNonBlocking()
5886 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES_DecryptOfbNonBlocking()
5945 caam_desc_cipher_des_t descriptor, in CAAM_DES2_EncryptEcbNonBlocking() argument
5963 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_EncryptEcbNonBlocking()
5964 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_EncryptEcbNonBlocking()
5965 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_EncryptEcbNonBlocking()
5966 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptEcbNonBlocking()
5967 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptEcbNonBlocking()
5968 descriptor[6] = DESC_JUMP_4; /* ECB has no context, jump to currIdx+4 = 10 (FIFO LOAD) */ in CAAM_DES2_EncryptEcbNonBlocking()
5969 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptEcbNonBlocking()
5970 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_EncryptEcbNonBlocking()
5971 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptEcbNonBlocking()
5972 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_EncryptEcbNonBlocking()
5973 descriptor[14] |= 0x201u; /* add ENC bit to specify Encrypt OPERATION, AAI = 20h */ in CAAM_DES2_EncryptEcbNonBlocking()
5974 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_EncryptEcbNonBlocking()
5976 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_EncryptEcbNonBlocking()
6035 caam_desc_cipher_des_t descriptor, in CAAM_DES2_DecryptEcbNonBlocking() argument
6053 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_DecryptEcbNonBlocking()
6054 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_DecryptEcbNonBlocking()
6055 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_DecryptEcbNonBlocking()
6056 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptEcbNonBlocking()
6057 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptEcbNonBlocking()
6058 descriptor[6] = DESC_JUMP_4; /* ECB has no context, jump to currIdx+4 = 10 (FIFO LOAD) */ in CAAM_DES2_DecryptEcbNonBlocking()
6059 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptEcbNonBlocking()
6060 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_DecryptEcbNonBlocking()
6061 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptEcbNonBlocking()
6062 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_DecryptEcbNonBlocking()
6063 descriptor[14] |= (uint32_t)kCAAM_ModeECB; /* AAI = 20h */ in CAAM_DES2_DecryptEcbNonBlocking()
6064 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_DecryptEcbNonBlocking()
6066 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_DecryptEcbNonBlocking()
6130 caam_desc_cipher_des_t descriptor, in CAAM_DES2_EncryptCbcNonBlocking() argument
6149 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_EncryptCbcNonBlocking()
6150 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_EncryptCbcNonBlocking()
6151 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_EncryptCbcNonBlocking()
6152 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptCbcNonBlocking()
6153 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptCbcNonBlocking()
6154 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_EncryptCbcNonBlocking()
6155 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_EncryptCbcNonBlocking()
6156 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptCbcNonBlocking()
6157 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_EncryptCbcNonBlocking()
6158 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptCbcNonBlocking()
6159 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_EncryptCbcNonBlocking()
6160 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES2_EncryptCbcNonBlocking()
6161 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES2_EncryptCbcNonBlocking()
6162 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_EncryptCbcNonBlocking()
6163 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_EncryptCbcNonBlocking()
6227 caam_desc_cipher_des_t descriptor, in CAAM_DES2_DecryptCbcNonBlocking() argument
6246 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_DecryptCbcNonBlocking()
6247 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_DecryptCbcNonBlocking()
6248 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_DecryptCbcNonBlocking()
6249 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptCbcNonBlocking()
6250 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptCbcNonBlocking()
6251 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_DecryptCbcNonBlocking()
6252 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_DecryptCbcNonBlocking()
6253 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptCbcNonBlocking()
6254 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_DecryptCbcNonBlocking()
6255 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptCbcNonBlocking()
6256 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_DecryptCbcNonBlocking()
6257 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES2_DecryptCbcNonBlocking()
6258 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_DecryptCbcNonBlocking()
6259 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_DecryptCbcNonBlocking()
6321 caam_desc_cipher_des_t descriptor, in CAAM_DES2_EncryptCfbNonBlocking() argument
6340 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_EncryptCfbNonBlocking()
6341 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_EncryptCfbNonBlocking()
6342 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_EncryptCfbNonBlocking()
6343 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptCfbNonBlocking()
6344 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptCfbNonBlocking()
6345 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_EncryptCfbNonBlocking()
6346 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_EncryptCfbNonBlocking()
6347 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptCfbNonBlocking()
6348 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_EncryptCfbNonBlocking()
6349 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptCfbNonBlocking()
6350 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_EncryptCfbNonBlocking()
6351 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES2_EncryptCfbNonBlocking()
6352 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES2_EncryptCfbNonBlocking()
6353 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_EncryptCfbNonBlocking()
6354 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_EncryptCfbNonBlocking()
6416 caam_desc_cipher_des_t descriptor, in CAAM_DES2_DecryptCfbNonBlocking() argument
6435 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_DecryptCfbNonBlocking()
6436 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_DecryptCfbNonBlocking()
6437 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_DecryptCfbNonBlocking()
6438 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptCfbNonBlocking()
6439 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptCfbNonBlocking()
6440 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_DecryptCfbNonBlocking()
6441 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_DecryptCfbNonBlocking()
6442 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptCfbNonBlocking()
6443 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_DecryptCfbNonBlocking()
6444 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptCfbNonBlocking()
6445 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_DecryptCfbNonBlocking()
6446 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES2_DecryptCfbNonBlocking()
6447 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_DecryptCfbNonBlocking()
6448 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_DecryptCfbNonBlocking()
6512 caam_desc_cipher_des_t descriptor, in CAAM_DES2_EncryptOfbNonBlocking() argument
6531 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_EncryptOfbNonBlocking()
6532 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_EncryptOfbNonBlocking()
6533 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_EncryptOfbNonBlocking()
6534 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptOfbNonBlocking()
6535 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_EncryptOfbNonBlocking()
6536 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_EncryptOfbNonBlocking()
6537 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_EncryptOfbNonBlocking()
6538 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptOfbNonBlocking()
6539 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_EncryptOfbNonBlocking()
6540 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_EncryptOfbNonBlocking()
6541 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_EncryptOfbNonBlocking()
6542 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES2_EncryptOfbNonBlocking()
6543 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES2_EncryptOfbNonBlocking()
6544 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_EncryptOfbNonBlocking()
6545 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_EncryptOfbNonBlocking()
6609 caam_desc_cipher_des_t descriptor, in CAAM_DES2_DecryptOfbNonBlocking() argument
6628 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES2_DecryptOfbNonBlocking()
6629 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES2_DecryptOfbNonBlocking()
6630 descriptor[1] |= 2U * CAAM_DES_KEY_SIZE; in CAAM_DES2_DecryptOfbNonBlocking()
6631 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptOfbNonBlocking()
6632 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES2_DecryptOfbNonBlocking()
6633 descriptor[6] = DESC_JUMP_2; /* context, jump to currIdx+2 = 8 (LOAD) */ in CAAM_DES2_DecryptOfbNonBlocking()
6634 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES2_DecryptOfbNonBlocking()
6635 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptOfbNonBlocking()
6636 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES2_DecryptOfbNonBlocking()
6637 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES2_DecryptOfbNonBlocking()
6638 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES2_DecryptOfbNonBlocking()
6639 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES2_DecryptOfbNonBlocking()
6640 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES2_DecryptOfbNonBlocking()
6641 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES2_DecryptOfbNonBlocking()
6703 caam_desc_cipher_des_t descriptor, in CAAM_DES3_EncryptEcbNonBlocking() argument
6722 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_EncryptEcbNonBlocking()
6723 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_EncryptEcbNonBlocking()
6724 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_EncryptEcbNonBlocking()
6725 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptEcbNonBlocking()
6726 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptEcbNonBlocking()
6727 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptEcbNonBlocking()
6728 descriptor[8] = DESC_JUMP_2; /* ECB has no context, jump to currIdx+2 = 10 (FIFO LOAD) */ in CAAM_DES3_EncryptEcbNonBlocking()
6729 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptEcbNonBlocking()
6730 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_EncryptEcbNonBlocking()
6731 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptEcbNonBlocking()
6732 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_EncryptEcbNonBlocking()
6733 descriptor[14] |= 0x201u; /* add ENC bit to specify Encrypt OPERATION, AAI = 20h */ in CAAM_DES3_EncryptEcbNonBlocking()
6734 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_EncryptEcbNonBlocking()
6736 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_EncryptEcbNonBlocking()
6798 caam_desc_cipher_des_t descriptor, in CAAM_DES3_DecryptEcbNonBlocking() argument
6817 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_DecryptEcbNonBlocking()
6818 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_DecryptEcbNonBlocking()
6819 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_DecryptEcbNonBlocking()
6820 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptEcbNonBlocking()
6821 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptEcbNonBlocking()
6822 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptEcbNonBlocking()
6823 descriptor[8] = DESC_JUMP_2; /* ECB has no context, jump to currIdx+2 = 10 (FIFO LOAD) */ in CAAM_DES3_DecryptEcbNonBlocking()
6824 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptEcbNonBlocking()
6825 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_DecryptEcbNonBlocking()
6826 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptEcbNonBlocking()
6827 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_DecryptEcbNonBlocking()
6828 descriptor[14] |= (uint32_t)kCAAM_ModeECB; /* AAI = 20h */ in CAAM_DES3_DecryptEcbNonBlocking()
6829 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_DecryptEcbNonBlocking()
6831 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_DecryptEcbNonBlocking()
6899 caam_desc_cipher_des_t descriptor, in CAAM_DES3_EncryptCbcNonBlocking() argument
6919 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_EncryptCbcNonBlocking()
6920 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_EncryptCbcNonBlocking()
6921 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_EncryptCbcNonBlocking()
6922 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCbcNonBlocking()
6923 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCbcNonBlocking()
6924 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCbcNonBlocking()
6925 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_EncryptCbcNonBlocking()
6926 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptCbcNonBlocking()
6927 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_EncryptCbcNonBlocking()
6928 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptCbcNonBlocking()
6929 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_EncryptCbcNonBlocking()
6930 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES3_EncryptCbcNonBlocking()
6931 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES3_EncryptCbcNonBlocking()
6932 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_EncryptCbcNonBlocking()
6933 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_EncryptCbcNonBlocking()
7001 caam_desc_cipher_des_t descriptor, in CAAM_DES3_DecryptCbcNonBlocking() argument
7021 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_DecryptCbcNonBlocking()
7022 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_DecryptCbcNonBlocking()
7023 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_DecryptCbcNonBlocking()
7024 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCbcNonBlocking()
7025 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCbcNonBlocking()
7026 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCbcNonBlocking()
7027 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_DecryptCbcNonBlocking()
7028 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptCbcNonBlocking()
7029 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_DecryptCbcNonBlocking()
7030 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptCbcNonBlocking()
7031 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_DecryptCbcNonBlocking()
7032 descriptor[14] |= (uint32_t)kCAAM_ModeCBC; /* AAI = 10h */ in CAAM_DES3_DecryptCbcNonBlocking()
7033 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_DecryptCbcNonBlocking()
7034 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_DecryptCbcNonBlocking()
7099 caam_desc_cipher_des_t descriptor, in CAAM_DES3_EncryptCfbNonBlocking() argument
7119 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_EncryptCfbNonBlocking()
7120 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_EncryptCfbNonBlocking()
7121 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_EncryptCfbNonBlocking()
7122 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCfbNonBlocking()
7123 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCfbNonBlocking()
7124 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptCfbNonBlocking()
7125 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_EncryptCfbNonBlocking()
7126 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptCfbNonBlocking()
7127 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_EncryptCfbNonBlocking()
7128 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptCfbNonBlocking()
7129 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_EncryptCfbNonBlocking()
7130 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES3_EncryptCfbNonBlocking()
7131 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES3_EncryptCfbNonBlocking()
7132 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_EncryptCfbNonBlocking()
7133 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_EncryptCfbNonBlocking()
7199 caam_desc_cipher_des_t descriptor, in CAAM_DES3_DecryptCfbNonBlocking() argument
7219 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_DecryptCfbNonBlocking()
7220 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_DecryptCfbNonBlocking()
7221 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_DecryptCfbNonBlocking()
7222 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCfbNonBlocking()
7223 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCfbNonBlocking()
7224 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptCfbNonBlocking()
7225 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_DecryptCfbNonBlocking()
7226 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptCfbNonBlocking()
7227 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_DecryptCfbNonBlocking()
7228 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptCfbNonBlocking()
7229 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_DecryptCfbNonBlocking()
7230 descriptor[14] |= (uint32_t)kCAAM_ModeCFB; /* AAI = 30h = CFB */ in CAAM_DES3_DecryptCfbNonBlocking()
7231 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_DecryptCfbNonBlocking()
7232 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_DecryptCfbNonBlocking()
7299 caam_desc_cipher_des_t descriptor, in CAAM_DES3_EncryptOfbNonBlocking() argument
7319 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_EncryptOfbNonBlocking()
7320 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_EncryptOfbNonBlocking()
7321 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_EncryptOfbNonBlocking()
7322 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptOfbNonBlocking()
7323 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptOfbNonBlocking()
7324 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_EncryptOfbNonBlocking()
7325 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_EncryptOfbNonBlocking()
7326 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptOfbNonBlocking()
7327 descriptor[11] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_EncryptOfbNonBlocking()
7328 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_EncryptOfbNonBlocking()
7329 descriptor[13] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_EncryptOfbNonBlocking()
7330 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES3_EncryptOfbNonBlocking()
7331 descriptor[14] |= 1u; /* add ENC bit to specify Encrypt OPERATION */ in CAAM_DES3_EncryptOfbNonBlocking()
7332 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_EncryptOfbNonBlocking()
7333 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_EncryptOfbNonBlocking()
7401 caam_desc_cipher_des_t descriptor, in CAAM_DES3_DecryptOfbNonBlocking() argument
7421 (void)caam_memcpy(descriptor, templateCipherDes, sizeof(templateCipherDes)); in CAAM_DES3_DecryptOfbNonBlocking()
7422 descriptor[0] |= (descriptorSize & DESC_SIZE_MASK); in CAAM_DES3_DecryptOfbNonBlocking()
7423 descriptor[1] |= 3U * CAAM_DES_KEY_SIZE; in CAAM_DES3_DecryptOfbNonBlocking()
7424 (void)caam_memcpy(&descriptor[2], (const uint32_t *)(uintptr_t)key1, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptOfbNonBlocking()
7425 (void)caam_memcpy(&descriptor[4], (const uint32_t *)(uintptr_t)key2, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptOfbNonBlocking()
7426 (void)caam_memcpy(&descriptor[6], (const uint32_t *)(uintptr_t)key3, CAAM_DES_KEY_SIZE); in CAAM_DES3_DecryptOfbNonBlocking()
7427 descriptor[9] = ADD_OFFSET((uint32_t)iv); in CAAM_DES3_DecryptOfbNonBlocking()
7428 descriptor[10] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptOfbNonBlocking()
7429 descriptor[11] = ADD_OFFSET((uint32_t)ciphertext); in CAAM_DES3_DecryptOfbNonBlocking()
7430 descriptor[12] |= (size & DESC_PAYLOAD_SIZE_MASK); in CAAM_DES3_DecryptOfbNonBlocking()
7431 descriptor[13] = ADD_OFFSET((uint32_t)plaintext); in CAAM_DES3_DecryptOfbNonBlocking()
7432 descriptor[14] |= (uint32_t)kCAAM_ModeOFB; /* AAI = 40h = OFB */ in CAAM_DES3_DecryptOfbNonBlocking()
7433 descriptor[14] |= 0x10000U; /* 3DES */ in CAAM_DES3_DecryptOfbNonBlocking()
7434 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in CAAM_DES3_DecryptOfbNonBlocking()
7640 caam_desc_pkha_t descriptor, in caam_pkha_algorithm_operation_command() argument
7658 (void)caam_memcpy(descriptor, templateArithmeticPKHA, sizeof(templateArithmeticPKHA)); in caam_pkha_algorithm_operation_command()
7661 DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize); in caam_pkha_algorithm_operation_command()
7667 DESC_ADD_LEN(descriptor[3], sizeN); in caam_pkha_algorithm_operation_command()
7668 DESC_SET_ADDR(descriptor[4], N); in caam_pkha_algorithm_operation_command()
7673 descriptor[3] = DESC_JUMP_2; /* jump to current index + 2 (=4) */ in caam_pkha_algorithm_operation_command()
7679 DESC_ADD_LEN(descriptor[5], sizeA); in caam_pkha_algorithm_operation_command()
7680 DESC_SET_ADDR(descriptor[6], A); in caam_pkha_algorithm_operation_command()
7685 descriptor[5] = DESC_JUMP_2; /* jump to current index + 2 (=6) */ in caam_pkha_algorithm_operation_command()
7691 DESC_ADD_LEN(descriptor[7], sizeB); in caam_pkha_algorithm_operation_command()
7692 DESC_SET_ADDR(descriptor[8], B); in caam_pkha_algorithm_operation_command()
7697 descriptor[7] = DESC_JUMP_2; /* jump to current index + 2 (=8) */ in caam_pkha_algorithm_operation_command()
7703 DESC_ADD_LEN(descriptor[9], sizeE); in caam_pkha_algorithm_operation_command()
7704 DESC_SET_ADDR(descriptor[10], E); in caam_pkha_algorithm_operation_command()
7709 descriptor[9] = DESC_JUMP_2; /* jump to current index + 2 (=11) */ in caam_pkha_algorithm_operation_command()
7713 descriptor[1] |= clearMask; in caam_pkha_algorithm_operation_command()
7716 descriptor[11] |= caam_pkha_get_mode(params); in caam_pkha_algorithm_operation_command()
7722 DESC_ADD_LEN(descriptor[12], sizeN); in caam_pkha_algorithm_operation_command()
7723 DESC_SET_ADDR(descriptor[13], result); in caam_pkha_algorithm_operation_command()
7732 descriptor[12] = 0xA0C12000u; in caam_pkha_algorithm_operation_command()
7733 descriptor[12] |= (uint32_t)kCAAM_UserSpecifiedStatus_NotPrime; in caam_pkha_algorithm_operation_command()
7735 descriptor[13] = DESC_HALT; /* always halt with status 0x0 (normal) */ in caam_pkha_algorithm_operation_command()
7739 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_pkha_algorithm_operation_command()
7773 caam_desc_pkha_ecc_t descriptor, in caam_pkha_ecc_algorithm_operation_command() argument
7791 (void)caam_memcpy(descriptor, templateArithmeticECC, sizeof(templateArithmeticECC)); in caam_pkha_ecc_algorithm_operation_command()
7794 DESC_HEADER_ADD_DESCLEN(descriptor[0], descriptorSize); in caam_pkha_ecc_algorithm_operation_command()
7797 DESC_ADD_LEN(descriptor[3], size); in caam_pkha_ecc_algorithm_operation_command()
7798 DESC_SET_ADDR(descriptor[4], N); in caam_pkha_ecc_algorithm_operation_command()
7803 DESC_ADD_LEN(descriptor[5], size); in caam_pkha_ecc_algorithm_operation_command()
7804 DESC_SET_ADDR(descriptor[6], A->X); in caam_pkha_ecc_algorithm_operation_command()
7805 DESC_ADD_LEN(descriptor[7], size); in caam_pkha_ecc_algorithm_operation_command()
7806 DESC_SET_ADDR(descriptor[8], A->Y); in caam_pkha_ecc_algorithm_operation_command()
7811 descriptor[5] = DESC_JUMP_4; /* jump to current index + 4 (=9) */ in caam_pkha_ecc_algorithm_operation_command()
7815 DESC_ADD_LEN(descriptor[9], size); in caam_pkha_ecc_algorithm_operation_command()
7816 DESC_SET_ADDR(descriptor[10], aCurveParam); in caam_pkha_ecc_algorithm_operation_command()
7819 DESC_ADD_LEN(descriptor[11], size); in caam_pkha_ecc_algorithm_operation_command()
7820 DESC_SET_ADDR(descriptor[12], bCurveParam); in caam_pkha_ecc_algorithm_operation_command()
7825 DESC_ADD_LEN(descriptor[13], size); in caam_pkha_ecc_algorithm_operation_command()
7826 DESC_SET_ADDR(descriptor[14], B->X); in caam_pkha_ecc_algorithm_operation_command()
7827 DESC_ADD_LEN(descriptor[15], size); in caam_pkha_ecc_algorithm_operation_command()
7828 DESC_SET_ADDR(descriptor[16], B->Y); in caam_pkha_ecc_algorithm_operation_command()
7832 DESC_ADD_LEN(descriptor[13], size); in caam_pkha_ecc_algorithm_operation_command()
7833 DESC_SET_ADDR(descriptor[14], R2modN_B1); in caam_pkha_ecc_algorithm_operation_command()
7835 descriptor[15] = DESC_JUMP_2; /* jump to current index + 2 (=17) */ in caam_pkha_ecc_algorithm_operation_command()
7840 descriptor[13] = DESC_JUMP_4; /* jump to current index + 4 (=17) */ in caam_pkha_ecc_algorithm_operation_command()
7845 DESC_ADD_LEN(descriptor[17], size); in caam_pkha_ecc_algorithm_operation_command()
7846 DESC_SET_ADDR(descriptor[18], R2modN_B3); in caam_pkha_ecc_algorithm_operation_command()
7851 descriptor[17] = DESC_JUMP_2; /* jump to current index + 2 (=19) */ in caam_pkha_ecc_algorithm_operation_command()
7856 DESC_ADD_LEN(descriptor[19], sizeE); in caam_pkha_ecc_algorithm_operation_command()
7857 DESC_SET_ADDR(descriptor[20], E); in caam_pkha_ecc_algorithm_operation_command()
7862 descriptor[19] = DESC_JUMP_2; /* jump to current index + 2 (=21) */ in caam_pkha_ecc_algorithm_operation_command()
7866 descriptor[21] |= caam_pkha_get_mode(params); in caam_pkha_ecc_algorithm_operation_command()
7869 DESC_ADD_LEN(descriptor[22], size); in caam_pkha_ecc_algorithm_operation_command()
7870 DESC_SET_ADDR(descriptor[23], result->X); in caam_pkha_ecc_algorithm_operation_command()
7871 DESC_ADD_LEN(descriptor[24], size); in caam_pkha_ecc_algorithm_operation_command()
7872 DESC_SET_ADDR(descriptor[25], result->Y); in caam_pkha_ecc_algorithm_operation_command()
7875 return caam_in_job_ring_add(base, handle->jobRing, &descriptor[0]); in caam_pkha_ecc_algorithm_operation_command()
7962 caam_desc_pkha_t descriptor,
7975 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModAddNonBlocking() argument
8006 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, B, sizeB, N, si… in CAAM_PKHA_ModAddNonBlocking()
8067 caam_desc_pkha_t descriptor,
8079 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModSub1NonBlocking() argument
8105 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, B, sizeB, N, si… in CAAM_PKHA_ModSub1NonBlocking()
8162 caam_desc_pkha_t descriptor,
8174 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModSub2NonBlocking() argument
8190 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, B, sizeB, N, si… in CAAM_PKHA_ModSub2NonBlocking()
8247 caam_desc_pkha_t descriptor,
8263 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModMulNonBlocking() argument
8300 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, B, sizeB, N, si… in CAAM_PKHA_ModMulNonBlocking()
8369 caam_desc_pkha_t descriptor,
8378 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModR2NonBlocking() argument
8392 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, NULL, 0, NULL, 0, N, size… in CAAM_PKHA_ModR2NonBlocking()
8443 caam_desc_pkha_t descriptor,
8458 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModExpNonBlocking() argument
8488 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, NULL, 0, N, siz… in CAAM_PKHA_ModExpNonBlocking()
8552 caam_desc_pkha_t descriptor,
8563 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModRedNonBlocking() argument
8579 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, NULL, 0, N, siz… in CAAM_PKHA_ModRedNonBlocking()
8634 caam_desc_pkha_t descriptor,
8645 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModInvNonBlocking() argument
8661 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, NULL, 0, N, siz… in CAAM_PKHA_ModInvNonBlocking()
8716 caam_desc_pkha_t descriptor,
8727 caam_desc_pkha_t descriptor, in CAAM_PKHA_ModGcdNonBlocking() argument
8743 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, NULL, 0, N, siz… in CAAM_PKHA_ModGcdNonBlocking()
8798 caam_desc_pkha_t descriptor,
8808 caam_desc_pkha_t descriptor, in CAAM_PKHA_PrimalityTestNonBlocking() argument
8822 …status = caam_pkha_algorithm_operation_command(base, handle, descriptor, A, sizeA, B, sizeB, N, si… in CAAM_PKHA_PrimalityTestNonBlocking()
8892 caam_desc_pkha_ecc_t descriptor,
8905 caam_desc_pkha_ecc_t descriptor, in CAAM_PKHA_ECC_PointAddNonBlocking() argument
8924 …status = caam_pkha_ecc_algorithm_operation_command(base, handle, descriptor, A, B, NULL, 0, N, NUL… in CAAM_PKHA_ECC_PointAddNonBlocking()
8986 caam_desc_pkha_ecc_t descriptor,
8997 caam_desc_pkha_ecc_t descriptor, in CAAM_PKHA_ECC_PointDoubleNonBlocking() argument
9013 …status = caam_pkha_ecc_algorithm_operation_command(base, handle, descriptor, NULL, B, NULL, 0, N, … in CAAM_PKHA_ECC_PointDoubleNonBlocking()
9070 caam_desc_pkha_ecc_t descriptor,
9085 caam_desc_pkha_ecc_t descriptor, in CAAM_PKHA_ECC_PointMulNonBlocking() argument
9107 …status = caam_pkha_ecc_algorithm_operation_command(base, handle, descriptor, A, NULL, E, sizeE, N,… in CAAM_PKHA_ECC_PointMulNonBlocking()