kmb_ecc_do_scalar_op(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘

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 your ndigits before 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