Add method for fetching the bit length of a key