kmb_ecc_do_scalar_op(9)
π kmb_ecc_do_scalar_op(9)
okay so bestie, welcome to the Kernel API Manual page for kmb_ecc_do_scalar_op β literally the function that makes the OCS ECC hardware do a scalar operation for you. no cap, this is the good stuff β¨
β¨ NAME β¨
kmb_ecc_do_scalar_op β perform a Scalar operation using the OCS ECC HW. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
int kmb_ecc_do_scalar_op (struct ocs_ecc_dev *ecc_dev , u64 *scalar_out
, const u64 *scalar_a , const u64 *scalar_b , const struct ecc_curve
*curve , unsigned int ndigits , const u32 inst );
yeah she's got seven parameters, we love a thorough queen π
π¦ ARGUMENTS π¦
ecc_devβ the OCS ECC device you're gonna use. like, the actual hardware bestie π«Άscalar_outβ where you store the output scalar. the ~results~ go here πscalar_aβ input scalar operand a. main character energy, she goes first.scalar_bβ input scalar operand b. (yes the original has no period on this one, we respect the punctuation choices of our ancestors β¨)curveβ the curve on which the operation is performed. everything happens on a curve, iykyk πndigitsβ the size of the operands, measured in digits. yes, digits. don't @ me πinstβ the operation to perform, passed in as an OCS ECC instruction. you pick the move, she executes it π₯
β RETURN β
0 on success, and a negative error code otherwise. so like, if you get 0 you're slaying, and if it's negativeβ¦ not slaying π
π SEE ALSO π
- Kernel file
./drivers/crypto/intel/keembay/keembay-ocs-ecc.c struct ocs_ecc_dev(9)struct ocs_ecc_ctx(9)ocs_ecc_read_cx_out(9)ocs_ecc_read_cy_out(9)
go read those too, they're all iconic in their own right π
ngl, the operands and the output are all<yellow>u64 *</yellow>pointers, so mind yourndigitsbefore you go poking around memory. treat her with respect π
and that's the whole page, bestie! this one lives over in ./drivers/crypto/intel/keembay, and it was dated October 2026 β so yeah, keep that in mind, and go forth and do your scalar ops π
ππ¦ periodt πΈβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms