Add brainpoolP512r1.
Set key_info->params.len for SC_ALGORITHM_EC as well.
Implement EC key generation for CardOS 5.