After erasing the hard drive and reinstalling Mac OS , if you try to set up iCloud Keychain a trusted device ( its could be your iPhone or an android phone ) is required to be configured in iCloud Keychain , so that you get a six digit iCloud Keychain code on the iPhone or incase you are using an android phone and that has to be filled up , see this article https://support.apple.com/en-us/HT204085
Also your Apple ID and password , the web mail address will be the same as you had already created in the past on the same Mac and and that are written with you , only after reinstallation the iCloud Keychain is to be set up .
Note : its not necessary that in the past you used a different mobile number ( trusted device )to set up iCloud Keychain , after reinstallation of Mac you can configure different mobile number .