How good is SecRandomCopyBytes?

前端 未结 3 902
忘了有多久
忘了有多久 2021-02-03 23:36

I\'m principally interested in the implementation of SecRandomCopyBytes on iOS, if it differs from the OS X implementation. (I would presume that i

3条回答
  •  醉梦人生
    2021-02-04 00:05

    The iOS SDK clearly states that this function uses the output of /dev/random for retrieving the secure random data. As iOS is a ported version of OSX which itself is in it's core a Free-BSD.

    If you seach for /dev/random and OSX you find several posts that there was (and my be is) a problem regarding the entropy collection in OSX:

    http://www.mail-archive.com/cryptography@metzdowd.com/msg00620.html

    Therefore I would expect that /dev/random works not better than the one in OSX.

提交回复
热议问题