only use radix we know we have enough room for in buf
fixed bug in display_print

also added display_print_n
added progress output for key generation