I guess AGRandomGenerator will be used for salt or IV, but not the key right? Maybe is my misunderstanding but looks like AGRandomGenerator also generates the key.