Skip to content

SecRandomCopyBytes in Sign with Apple #10732

Answered by ncooke3
jesus-mg-ios asked this question in Q&A
Discussion options

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

Comment options

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

@ncooke3
Comment options

@jesus-mg-ios
Comment options

@ncooke3
Comment options

@jesus-mg-ios
Comment options

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