Assuming I have a secret key of sufficient length and entropy (I get to decide the length and have a good random source).
I would like to generate 256 length keys by hashing the root key with the name of each key, ex:
key1 = sha256(rootKey +"key1") key2 = sha256(rootKey +"key2") ... keyN = sha256(rootKey +"keyN")
Is the sha256 hash a good choice ?
If yes, what length should the root secret be ? I’m thinking 256 bit is pretty good, but it wouldn’t cost much to make it bigger…