If you're interested in learning ECC, Certicom has a lot of information that is reasonably easy to understand. It isn't really as complex as it may sound. Just a lot of equations.
http://www.certicom.com/images/pdfs/WP-ECCprimer.pdfhttp://www.certicom.com/index.php/10-introductionIf you can come up with a console app that will run under Linux, perhaps takes some entropy or a 32-byte private key and prints a single bitcoin address to the console, I can convert it to run on the credit card machine. I can also provide the part that sends QR codes to the printer, given just the string to encode.
How would one get entropy on such a device? Creating a standalone console app that can create an address from a private key is relatively simple. It might be something I would be up to.
It would require a standalone implementation of SHA256, RIPEMD160, EC math and BIGNUMs.
EDIT: Looking at OpenSSL's BIGNUM implementation, this depends on things as stdio.h and assert.h. What is actually available on this credit card machine?
stdio.h, string.h, stdlib.h, math.h should all be available.
Entropy has to come from a combination of the keypad and timer. In addition to scraping system-specific data, during initialization we have the user mash the keyboard to initialize the entropy pool. Using the key scan codes of the key strokes as well as the precise timing between them (system tick counter with resolution in the millisecond range) as well as the system clock, we get enough entropy to start generating keys. Each keypress is used to add entropy to the pool, and we persist the entropy to the file system (which is saved as battery-backed RAM).
It is a whole lot like what bitaddress.org does to acquire entropy when you first load it, other than we can a) do it for longer because b) given persistent storage, we only have to exhaustively do it once.
Finally, as you might notice in my bitcoin address utility: I prefer to generate private keys by using the SHA256 hash of a string that is partly system generated, and partly provided by the user. The system generates a long random string (80+ characters) and then the user is invited to insert keyboard mash into the middle of it. SHA256 is done on the resulting string plus n, where n is an incrementing number. This provides simple auditability that the RNG isn't rigged (or if it somehow is, it won't be harmful), and allows the user a decent chance to "cut the deck", without too much worry that the user's gibberish won't have enough entropy.