I understand that another question posted has mentioned that the keystore has
aes-128-ctr encryption: What is the strength of Mist wallet encryption?
Key Derivation Function uses scrypt (where the underlying function uses SHA256?), then we have ECDSA for creating private keys. Where does secp256k1 come in?
I don't have a lot of knowledge in the cryptography or which libraries are used for hash/encryption but looking through the source code for the keystore and keys, can anyone explain the steps on how the keys & the keystores are being generated for Ethereum?