Home
last modified time | relevance | path

Searched refs:bitsize (Results 1 – 11 of 11) sorted by relevance

/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/source/
Dcy_crypto_core_ecc_ecdsa.c106 uint32_t bitsize = eccDp->size; in Cy_Crypto_Core_ECC_SignHash() local
138 CY_CRYPTO_VU_ALLOC_MEM (base, VR_P, bitsize); in Cy_Crypto_Core_ECC_SignHash()
139 Cy_Crypto_Core_Vu_SetMemValue (base, VR_P, (uint8_t *)eccDp->order, bitsize); in Cy_Crypto_Core_ECC_SignHash()
141 CY_CRYPTO_VU_ALLOC_MEM (base, VR_BARRETT, bitsize + 1U); in Cy_Crypto_Core_ECC_SignHash()
142 … Cy_Crypto_Core_Vu_SetMemValue (base, VR_BARRETT, (uint8_t *)eccDp->barrett_o, bitsize); in Cy_Crypto_Core_ECC_SignHash()
144 CY_CRYPTO_VU_ALLOC_MEM (base, p_r, bitsize); in Cy_Crypto_Core_ECC_SignHash()
145 CY_CRYPTO_VU_ALLOC_MEM (base, p_s, bitsize); in Cy_Crypto_Core_ECC_SignHash()
146 Cy_Crypto_Core_Vu_SetMemValue (base, p_r, (uint8_t *)ephKey.pubkey.x, bitsize); in Cy_Crypto_Core_ECC_SignHash()
155 CY_CRYPTO_VU_ALLOC_MEM (base, p_temp, bitsize); in Cy_Crypto_Core_ECC_SignHash()
166 Cy_Crypto_Core_EC_Bar_MulRed(base, p_r, p_temp, bitsize); in Cy_Crypto_Core_ECC_SignHash()
[all …]
Dcy_crypto_core_ecc_key_gen.c133 uint32_t bitsize = eccDp->size; in Cy_Crypto_Core_ECC_MakePrivateKey() local
134 uint32_t bytesize = CY_CRYPTO_BYTE_SIZE_OF_BITS(bitsize); in Cy_Crypto_Core_ECC_MakePrivateKey()
140 CY_CRYPTO_VU_ALLOC_MEM(base, VR_D, bitsize); in Cy_Crypto_Core_ECC_MakePrivateKey()
161 int32_t randomsize = (int32_t)bitsize; in Cy_Crypto_Core_ECC_MakePrivateKey()
187 if ((bytesize * 8u) > bitsize) in Cy_Crypto_Core_ECC_MakePrivateKey()
190 CY_CRYPTO_VU_SET_REG(base, p_temp, (bytesize * 8u) - bitsize, 1u); in Cy_Crypto_Core_ECC_MakePrivateKey()
199 CY_CRYPTO_VU_ALLOC_MEM(base, VR_P, bitsize); in Cy_Crypto_Core_ECC_MakePrivateKey()
200 Cy_Crypto_Core_Vu_SetMemValue (base, VR_P, eccDp->order, bitsize); in Cy_Crypto_Core_ECC_MakePrivateKey()
206 CY_CRYPTO_VU_ALLOC_MEM(base, VR_BARRETT, bitsize + 1u); in Cy_Crypto_Core_ECC_MakePrivateKey()
207 Cy_Crypto_Core_Vu_SetMemValue (base, VR_BARRETT, eccDp->barrett_o, bitsize + 1u); in Cy_Crypto_Core_ECC_MakePrivateKey()
[all …]
Dcy_cryptolite_rsa.c72 uint32_t bitsize = VU_BITS_TO_WORDS(bit_size); in cryptolite_rsa_mont_inv_transform() local
76 …w (base, vu_struct0, p_t1_2n1, VU_BITS_TO_WORDS(2U*bit_size), p_a, bitsize, p_mont_r_inv, bitsize); in cryptolite_rsa_mont_inv_transform()
77 …(void)Cy_Cryptolite_Vu_lsr_hw (base, vu_struct1, p_a, bitsize, p_t1_2n1, VU_BITS_TO_WORDS(2U*bit_s… in cryptolite_rsa_mont_inv_transform()
78 …_mul_hw (base, vu_struct0, p_t2_2n1, VU_BITS_TO_WORDS(2U*bit_size), p_a, bitsize, p_barrett_u, bit… in cryptolite_rsa_mont_inv_transform()
79 …(void)Cy_Cryptolite_Vu_lsr_hw (base, vu_struct1, p_a, bitsize, p_t2_2n1, VU_BITS_TO_WORDS(2U*bit_s… in cryptolite_rsa_mont_inv_transform()
80 …u_mul_hw (base, vu_struct0, p_t2_2n1, VU_BITS_TO_WORDS(2U*bit_size), p_a, bitsize, p_mod, bitsize); in cryptolite_rsa_mont_inv_transform()
83 … (base, vu_struct0, p_t2_2n1, bitsize_p1, p_t1_2n1, VU_BITS_TO_WORDS(bit_size+2U), p_mod, bitsize); in cryptolite_rsa_mont_inv_transform()
84 …)Cy_Cryptolite_Vu_cond_sub_hw (base, vu_struct1, p_a, bitsize, p_t2_2n1, bitsize_p1, p_mod, bitsiz… in cryptolite_rsa_mont_inv_transform()
100 uint32_t bitsize = VU_BITS_TO_WORDS(bit_size); in cryptolite_rsa_mont_transform() local
104 (void)Cy_Cryptolite_Vu_lsl ( p_t1_2n1, VU_BITS_TO_WORDS(2U*bit_size), p_a, bitsize, bit_size); in cryptolite_rsa_mont_transform()
[all …]
Dcy_cryptolite_nist_p.c473 uint32_t bitsize = cfContext->bitsize; in Cryptolite_EC_JacobianEcScalarMul_coZ() local
478 …ite_Vu_mov_hw (base, vu_struct0, my_p_x, VU_BITS_TO_WORDS(bitsize), px, VU_BITS_TO_WORDS(bitsize)); in Cryptolite_EC_JacobianEcScalarMul_coZ()
479 …ite_Vu_mov_hw (base, vu_struct1, my_p_y, VU_BITS_TO_WORDS(bitsize), py, VU_BITS_TO_WORDS(bitsize)); in Cryptolite_EC_JacobianEcScalarMul_coZ()
480 …olite_Vu_mov_hw (base, vu_struct0, dc, VU_BITS_TO_WORDS(bitsize+2U), pd, VU_BITS_TO_WORDS(bitsize)… in Cryptolite_EC_JacobianEcScalarMul_coZ()
486 …e, vu_struct0, dc, VU_BITS_TO_WORDS(bitsize+2U), dc, VU_BITS_TO_WORDS(bitsize + 2U), porder, VU_BI… in Cryptolite_EC_JacobianEcScalarMul_coZ()
489 …e, vu_struct1, dc, VU_BITS_TO_WORDS(bitsize+2U), dc, VU_BITS_TO_WORDS(bitsize + 2U), porder, VU_BI… in Cryptolite_EC_JacobianEcScalarMul_coZ()
519 Cy_Cryptolite_Vu_clr (p_t1, VU_BITS_TO_WORDS(bitsize)); in Cryptolite_EC_JacobianEcScalarMul_coZ()
532 …e_Vu_mov_hw (base, vu_struct0, p_t1, VU_BITS_TO_WORDS(bitsize), p_my_r1_x, VU_BITS_TO_WORDS(bitsiz… in Cryptolite_EC_JacobianEcScalarMul_coZ()
533 …e_Vu_mov_hw (base, vu_struct1, p_t2, VU_BITS_TO_WORDS(bitsize), p_my_r1_y, VU_BITS_TO_WORDS(bitsiz… in Cryptolite_EC_JacobianEcScalarMul_coZ()
534 …olite_Vu_mov_hw (base, vu_struct0, p_t3, VU_BITS_TO_WORDS(bitsize), px, VU_BITS_TO_WORDS(bitsize)); in Cryptolite_EC_JacobianEcScalarMul_coZ()
[all …]
Dcy_cryptolite_ecdsa.c677 uint32_t bitsize = eccDp->size; in Cy_Cryptolite_ECC_MakePublicKey() local
681 Crypto_SetNumber(p_o, (uint8_t *) eccDp->order, VU_BITS_TO_BYTES(bitsize)); in Cy_Cryptolite_ECC_MakePublicKey()
682 Crypto_SetNumber(my_BARRETT_U, (uint8_t *) eccDp->barrett_o, VU_BITS_TO_BYTES(bitsize+1U)); in Cy_Cryptolite_ECC_MakePublicKey()
687 Cryptolite_EC_NistP_PointMul(base, cfContext, p_gx, p_gy, p_u1, p_o, (int)bitsize); in Cy_Cryptolite_ECC_MakePublicKey()
767 uint32_t bitsize = eccDp->size; in Cy_Cryptolite_ECC_VerifyHash() local
772 cfContext->bitsize = bitsize; in Cy_Cryptolite_ECC_VerifyHash()
774 Crypto_SetNumber (my_P, (uint8_t *)eccDp->order, VU_BITS_TO_BYTES(bitsize)); in Cy_Cryptolite_ECC_VerifyHash()
775 … Crypto_SetNumber (my_BARRETT_U, (uint8_t *)eccDp->barrett_o, VU_BITS_TO_BYTES(bitsize+1U)); in Cy_Cryptolite_ECC_VerifyHash()
779 Crypto_SetNumber(p_s, (uint8_t *)&sig[VU_BITS_TO_BYTES(bitsize)], bytesize); in Cy_Cryptolite_ECC_VerifyHash()
781 if (Cy_Cryptolite_Vu_test_zero(base, vu_struct0, p_r, (uint16_t)bitsize) == true) { in Cy_Cryptolite_ECC_VerifyHash()
[all …]
Dcy_cryptolite_vu.c38 …t_zero(CRYPTOLITE_Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *psrc, uint16_t bitsize) in Cy_Cryptolite_Vu_test_zero() argument
45 while (p_a_uint32 < (((uint32_t *) ((void *)psrc)) + VU_BITS_TO_WORDS(bitsize))) in Cy_Cryptolite_Vu_test_zero()
56 …_Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *rsrc0, uint8_t *rsrc1, uint16_t bitsize) in Cy_Cryptolite_Vu_test_equal() argument
60 …TO_WORDS((uint32_t)bitsize), rsrc0, (uint32_t)VU_BITS_TO_WORDS((uint32_t)bitsize), rsrc1, (uint32_… in Cy_Cryptolite_Vu_test_equal()
63 if (Cy_Cryptolite_Vu_test_zero(base, p_struct, temp, VU_BITS_TO_WORDS(bitsize))) { in Cy_Cryptolite_Vu_test_equal()
72 …_Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *rsrc0, uint8_t *rsrc1, uint16_t bitsize) in Cy_Cryptolite_Vu_test_less_than() argument
77 …VU_BITS_TO_WORDS((uint32_t)bitsize+1U), rsrc0, VU_BITS_TO_WORDS((uint32_t)bitsize), rsrc1, VU_BITS… in Cy_Cryptolite_Vu_test_less_than()
80 sign = Cy_Cryptolite_Vu_get_bit(temp, bitsize); in Cy_Cryptolite_Vu_test_less_than()
Dcy_crypto_core_ecc_nist_p.c1959 void Cy_Crypto_Core_EC_NistP_SetMode(uint32_t bitsize) in Cy_Crypto_Core_EC_NistP_SetMode() argument
1961 switch (bitsize) in Cy_Crypto_Core_EC_NistP_SetMode()
2037 …ul(CRYPTO_Type *base, uint32_t p_x, uint32_t p_y, uint32_t p_d, uint32_t p_order, uint32_t bitsize) in Cy_Crypto_Core_EC_NistP_PointMul() argument
2040 Cy_Crypto_Core_JacobianEcScalarMul (base, p_x, p_y, p_d, bitsize); in Cy_Crypto_Core_EC_NistP_PointMul()
2103 uint32_t bitsize; in Cy_Crypto_Core_EC_NistP_PointMultiplication() local
2107 bitsize = eccDp->size; in Cy_Crypto_Core_EC_NistP_PointMultiplication()
2119 … SCB_CleanDCache_by_Addr((volatile void *)ecpGX, (int32_t)CY_CRYPTO_BYTE_SIZE_OF_BITS(bitsize)); in Cy_Crypto_Core_EC_NistP_PointMultiplication()
2120 … SCB_CleanDCache_by_Addr((volatile void *)ecpGY, (int32_t)CY_CRYPTO_BYTE_SIZE_OF_BITS(bitsize)); in Cy_Crypto_Core_EC_NistP_PointMultiplication()
2121 … SCB_CleanDCache_by_Addr((volatile void *)ecpD, (int32_t)CY_CRYPTO_BYTE_SIZE_OF_BITS(bitsize)); in Cy_Crypto_Core_EC_NistP_PointMultiplication()
2124 CY_CRYPTO_VU_ALLOC_MEM (base, VR_D, bitsize); /* Scalar factor */ in Cy_Crypto_Core_EC_NistP_PointMultiplication()
[all …]
/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/include/
Dcy_cryptolite_nist_p.h45 uint8_t *p_d, uint8_t *p_order, int bitsize);
86 uint16_t bitsize = (uint16_t)cfContext->bitsize; in Cryptolite_EC_AddMod() local
90 …temp,VU_BITS_TO_WORDS((uint32_t)bitsize+1U), a,VU_BITS_TO_WORDS((uint32_t)bitsize), b,VU_BITS_TO_W… in Cryptolite_EC_AddMod()
91 … VU_BITS_TO_WORDS((uint32_t)bitsize), temp, VU_BITS_TO_WORDS((uint32_t)bitsize+1U), my_P, VU_BITS_… in Cryptolite_EC_AddMod()
114 uint16_t bitsize = (uint16_t)cfContext->bitsize; in Cryptolite_EC_SubMod() local
117 …_z, VU_BITS_TO_WORDS((uint32_t)bitsize+1U), a, VU_BITS_TO_WORDS((uint32_t)bitsize), b, VU_BITS_TO_… in Cryptolite_EC_SubMod()
118 …w (base, vu_struct1, z, VU_BITS_TO_WORDS((uint32_t)bitsize), temp_z,VU_BITS_TO_WORDS((uint32_t)bit… in Cryptolite_EC_SubMod()
121 sign = (int)Cy_Cryptolite_Vu_get_bit(temp_z, bitsize); in Cryptolite_EC_SubMod()
125 …, z, VU_BITS_TO_WORDS((uint32_t)bitsize), z,VU_BITS_TO_WORDS((uint32_t)bitsize), my_P,VU_BITS_TO_W… in Cryptolite_EC_SubMod()
147 uint16_t bitsize = (uint16_t)cfContext->bitsize; in Cryptolite_EC_HalfMod() local
[all …]
Dcy_cryptolite_vu.h50 …_zero(CRYPTOLITE_Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *psrc, uint16_t bitsize);
51 …Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *rsrc0, uint8_t *rsrc1, uint16_t bitsize);
52 …Type *base, cy_stc_cryptolite_descr_t* p_struct, uint8_t *rsrc0, uint8_t *rsrc1, uint16_t bitsize);
701 uint32_t bitsize) in Cy_Cryptolite_Vu_lsr1_carry_hw() argument
717 Cy_Cryptolite_Vu_set_bit(p_z, bitsize-1U); in Cy_Cryptolite_Vu_lsr1_carry_hw()
Dcy_crypto_core_ecc_nist_p.h46 void Cy_Crypto_Core_EC_NistP_SetMode(uint32_t bitsize);
78 …l(CRYPTO_Type *base, uint32_t p_x, uint32_t p_y, uint32_t p_d, uint32_t p_order, uint32_t bitsize);
Dcy_cryptolite_ecdsa.h168 uint32_t bitsize; member