Lines Matching refs:bytes
76 size_t bytes = 0; in stm32_gen_keypair() local
86 res = stm32_pka_get_max_size(&bytes, NULL, cid); in stm32_gen_keypair()
90 if (size_bits > bytes * 8 || in stm32_gen_keypair()
91 crypto_bignum_num_bytes(key->d) > bytes || in stm32_gen_keypair()
92 crypto_bignum_num_bytes(key->x) > bytes || in stm32_gen_keypair()
93 crypto_bignum_num_bytes(key->y) > bytes) in stm32_gen_keypair()
96 d.val = calloc(1, bytes); in stm32_gen_keypair()
97 d.size = bytes; in stm32_gen_keypair()
108 pk.x.val = calloc(1, bytes); in stm32_gen_keypair()
109 pk.x.size = bytes; in stm32_gen_keypair()
115 pk.y.val = calloc(1, bytes); in stm32_gen_keypair()
116 pk.y.size = bytes; in stm32_gen_keypair()
156 size_t bytes = 0; in sign() local
166 res = stm32_pka_get_max_size(&bytes, NULL, cid); in sign()
170 if (crypto_bignum_num_bytes(key->d) > bytes || *sig_len < 2 * bytes) in sign()
173 *sig_len = 2 * bytes; in sign()
182 k.val = calloc(1, bytes); in sign()
183 k.size = bytes; in sign()
194 sig_r.size = bytes; in sign()
195 sig_s.val = (void *)(sig + bytes); in sign()
196 sig_s.size = bytes; in sign()
231 size_t bytes = 0; in verify() local
241 res = stm32_pka_get_max_size(&bytes, NULL, cid); in verify()
395 size_t bytes = 0; in shared_secret() local
404 res = stm32_pka_get_max_size(&bytes, NULL, cid); in shared_secret()
435 result.x.size = bytes; in shared_secret()
442 result.y.size = bytes; in shared_secret()