Created
December 30, 2014 20:38
-
-
Save kgreenek/5c9a3cd36456f494daed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SecureData: NSMutableData { | |
public init(length: Int) { | |
precondition(length > 0) | |
self = CFDataCreateMutable(SecureMemoryAllocator.allocator, length) | |
self.length = length | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment