Write a secp256k1 field element value to the 'dst' frame, advancing the cursor 256 cells. * The field value 'r' is normalized as a side-effect. * * Precondition: '*dst' is a valid write frame for 256 more cells; * NULL != r; */
| 43 | * NULL != r; |
| 44 | */ |
| 45 | static inline void write_fe(frameItem* dst, secp256k1_fe* r) { |
| 46 | unsigned char buf[32]; |
| 47 | |
| 48 | secp256k1_fe_normalize_var(r); |
| 49 | secp256k1_fe_get_b32(buf, r); |
| 50 | write8s(dst, buf, 32); |
| 51 | } |
| 52 | |
| 53 | /* Skip 256 cells, the size of a secp256k1 field element value, in the 'dst' frame. |
| 54 | * |
no test coverage detected