Use calculate_key_size_in_bits method, rather than duplicating
calculation.

Change-Id: Id94a8856589945dda36a2302b9494e834217db04
2 files changed