Searched refs:out_nn (Results 1 – 2 of 2) sorted by relevance
/freebsd/crypto/libecc/src/nn/ |
H A D | nn.c | 490 int nn_init_from_buf(nn_t out_nn, const u8 *buf, u16 buflen) in nn_init_from_buf() argument 496 MUST_HAVE(((out_nn != NULL) && (buf != NULL) && in nn_init_from_buf() 502 ret = nn_init(out_nn, buflen); EG(ret, err); in nn_init_from_buf() 506 ret = _ntohw(tmp + buf_pos, &(out_nn->val[wpos])); EG(ret, err); in nn_init_from_buf()
|
/freebsd/crypto/libecc/src/arithmetic_tests/ |
H A D | arithmetic_tests.c | 72 static int nn_import_from_hexbuf(nn_t out_nn, const char *hbuf, u32 hbuflen) in nn_import_from_hexbuf() argument 80 ret = nn_check_initialized(out_nn); EG(ret, err); in nn_import_from_hexbuf() 82 MUST_HAVE(((hbuflen / 2) / WORD_BYTES) == out_nn->wlen, ret, err); in nn_import_from_hexbuf() 95 out_nn->val[wlen - k] = strtoull(buf, NULL, 16); in nn_import_from_hexbuf() 99 out_nn->val[k - 1] = 0; in nn_import_from_hexbuf()
|