making key size and padding work