Lines Matching refs:bytes
84 static TEE_Result ecc_get_key_size(uint32_t curve, size_t *bytes, size_t *bits) in ecc_get_key_size() argument
89 *bytes = 48; in ecc_get_key_size()
93 *bytes = 66; in ecc_get_key_size()
115 size_t bytes = 0; in crypto_bignum_bn2bin_eswap() local
118 if (ecc_get_key_size(curve, &bytes, &bits)) in crypto_bignum_bn2bin_eswap()
121 crypto_bignum_bn2bin(from, pad + bytes - len); in crypto_bignum_bn2bin_eswap()
122 memcpy_swp(to, pad, bytes); in crypto_bignum_bn2bin_eswap()
158 size_t bytes = 0; in verify() local
164 ret = ecc_get_key_size(key->curve, &bytes, &bits); in verify()
177 versal_mbox_alloc(bytes * 2, NULL, &x); in verify()
180 (uint8_t *)x.buf + bytes); in verify()
240 size_t bytes = 0; in sign() local
243 ret = ecc_get_key_size(key->curve, &bytes, &bits); in sign()
272 versal_mbox_alloc(bytes, NULL, &k); in sign()
279 versal_mbox_alloc(bytes, NULL, &d); in sign()
307 *sig_len = 2 * bytes; in sign()