nrfxlib API 0.1.0
|
int ocrypto_curve_p256_from32bytes | ( | ocrypto_cp_p256 * | r, |
const uint8_t | p[32] | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_curve_p256.h>
Load r.x from bytes, keep r.y.
[out] | r | Point with r.x loaded, r.y kept. |
p | x as as array of bytes. |
0 | If r is a valid curve point. |
-1 | Otherwise. |