rskeygen(1)

✨ rskeygen β€” bestie edition ✨

ok so this is rskeygen(1), a page from the General Commands Manual, and it's about making private key pairs for TI graphing calculators. yes THE calculators. the ones from math class. we're doing cryptography on them, it's giving iconic πŸ’…


πŸŽ€ NAME πŸŽ€

rskeygen β€” generate private key pairs for TI graphing calculators

no cap, that's the whole job. keys. TI. calculators. let's go πŸ¦‹


🌸 SYNOPSIS 🌸

rskeygen [ --secure ] [ --ti ] [ --length nbytes ]

that's it, that's the whole command. three lil options, all optional, all vibes ✨


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea, bestie πŸ«– β€” rskeygen generates application and OS signing keys for the Texas Instruments TI-73, TI-83 Plus, TI-84 Plus, TI-89, and TI-92 Plus graphing calculators.

these keys are made of two prime numbers, p and q, plus their product, n. that's the whole key right there, three numbers just vibing together πŸ”₯

now here's the constraint that lowkey runs everything: current calculator models impose a limit of 512 bits (64 bytes) on the size of n. so p and q are generally about 256 bits each. as of this writing, that means factoring n is beyond the reach of most people β€” but bestie, that will undoubtedly change in the future. 😭 nothing stays secure forever, that's just the way of the world.

and now for the part that's giving sad girl hours πŸ₯€: the keys generated by rskeygen are not very useful at the moment, because in order for an application or OS to be accepted by the calculator, the key used to sign it must itself be signed using the calculator's own (possibly unique) private key β€” and that key is only known to TI. periodt. πŸ’€

nevertheless, rskeygen is provided in the hope that it can be useful, both for testing and for devising new signature schemes based on TI's. so it's not useless, it's just... aspirational. main character energy honestly 🌈


⭐ OPTIONS ⭐

  • --secure β€” attempt to generate a ``secure'' key using the system's entropy pool, /dev/random (see random(4)). the actual security is thus dependent on your system's implementation of /dev/random, so like, it's only as good as your system is, iykyk.

and listen β€” without --secure, the keys are generated based on the current time and process ID, which is not secure in the slightest. like not even a little bit. zero. nada. πŸ™ˆ this is the "I just need something that works for testing" mode.

  • --ti β€” generate keys which are palatable to TI's official app signing programs. this forces p to be congruent to 3 and q to be 7 modulo 8. 🧚

bestie you do not need this when using rabbitsign(1), and you do not need it for the calculator to validate signatures properly. it's purely for keeping TI's own tooling happy πŸ’…

  • --length nbytes β€” specify the length in bytes of the modulus n; p and q are each calculated to be approximately half this length.
⚠️ this should not be greater than 64 for current calculators, and it must be less than 256 in any event, due to a limitation of the key file format. do not test the format. the format will win. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

rabbitsign(1), packxxk(1) β€” your other faves, go say hi 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Benjamin Moody <floppusmaximus@users.sf.net>


okay that's the whole page, and for the record this is RabbitSign 2.0, dated July 2009 β€” yes we're reading a classic, and yes it still ate. πŸ’– go make some keys, bestie, and remember: --secure or it's literally just your clock and your PID out there pretending to be cryptography. πŸŽ€βœ¨

πŸ“¦ where this page comes from