swift-foundation icon indicating copy to clipboard operation
swift-foundation copied to clipboard

Port _CShims UUID to Swift

Open tonyarnold opened this issue 2 years ago • 1 comments

This is a spike for my own learning to see what's involved in removing the C-backed UUID implementation in favour of a Swift version.

I'm happy to revise this, as I realise that the implementation of some of this isn't ideal.

tonyarnold avatar May 16 '23 12:05 tonyarnold

One interesting security feature of our UUID implementation is that it is designed to do its work in constant time regardless of the content of the UUID. e.g., for equality checking. This is done in order to defeat timing attacks. We would need to verify we keep that behavior with a new implementation.

parkera avatar Jun 05 '23 16:06 parkera