Hej!
Did you try SecKeyCreateRandomKey as recommended as in Generating New Cryptographic Keys which simplifies the call and reduces possible errors...
Topic:
Privacy & Security
SubTopic:
General
Tags: