Padding, Keylength determination