Lines Matching refs:hdr
62 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in copy_mpi_to_bigint() local
69 if (hdr->alloc_size < n) in copy_mpi_to_bigint()
72 hdr->nblimbs = n; in copy_mpi_to_bigint()
73 hdr->sign = mpi->s; in copy_mpi_to_bigint()
74 memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); in copy_mpi_to_bigint()
104 const struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in get_mpi() local
105 const mbedtls_mpi_uint *p = (const mbedtls_mpi_uint *)(hdr + 1); in get_mpi()
106 size_t n = hdr->nblimbs; in get_mpi()
113 mpi->s = hdr->sign; in get_mpi()
120 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in TEE_BigIntInit() local
126 hdr->sign = 1; in TEE_BigIntInit()
131 hdr->alloc_size = len - BIGINT_HDR_SIZE_IN_U32; in TEE_BigIntInit()