Fix keygen command to use the algorithm indicated by filename
authored by
sullen.net
and committed by
tangled.org
14b15f12
c0816c02