Improved key size measurements