- Update Pod

This commit is contained in:
giuseppenuc committed 2016-03-15 22:17:08 +01:00
1 parent ef4deb51f6
commit 6a5119dbe3
108 files changed
+13081 -7351

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
//
// NASecRandom.h
//
// Created by Gabriel Handford on 1/16/14.
// Copyright (c) 2014 Gabriel Handford. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NASecRandom : NSObject
/*!
Generate random data.
The source code of SecRandomCopyBytes() is located at
http://opensource.apple.com/source/Security/Security-55179.11/sec/Security/SecFramework.c
@param len Number of random bytes to generate
@result NSData of length bytes, or nil if an error occurred
*/
+ (NSData *)randomData:(size_t)numBytes error:(NSError **)error;
/*!
Generate random base64 string.
*/
+ (NSString *)randomBase64String:(size_t)length error:(NSError **)error;
@end