Skip to content

You must be logged in to vote

Hi @jesus-mg-ios, thanks for pointing that out. I can't find any documentation that specifies that calling SecRandomCopyBytes multiple times (1 per byte) instead of once (with multiple bytes) results in nonces with different cryptographic strengths.

In your simplified code snippet, I think the length should be 16 to match that of the original snippet's number of bytes, right?

Replies: 1 comment 7 replies

You must be logged in to vote
7 replies
@jesus-mg-ios

@ncooke3

@jesus-mg-ios

@ncooke3

@jesus-mg-ios

Answer selected by ncooke3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants