- Update Pod
This commit is contained in:
1 parent
ef4deb51f6
commit
6a5119dbe3
108 files changed
+13081
-7351
No files matched your search
+34
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// NADigest.h
|
||||
// NACrypto
|
||||
//
|
||||
// Created by Gabriel on 7/3/14.
|
||||
// Copyright (c) 2014 Gabriel Handford. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM (NSUInteger, NADigestAlgorithm) {
|
||||
//NADigestAlgorithmSHA1 = 1, // SHA1 might not be secure enough
|
||||
NADigestAlgorithmSHA2_224 = 2,
|
||||
NADigestAlgorithmSHA2_256,
|
||||
NADigestAlgorithmSHA2_384,
|
||||
NADigestAlgorithmSHA2_512,
|
||||
|
||||
// SHA3
|
||||
NADigestAlgorithmSHA3_256,
|
||||
NADigestAlgorithmSHA3_384,
|
||||
NADigestAlgorithmSHA3_512,
|
||||
};
|
||||
|
||||
@interface NADigest : NSObject
|
||||
|
||||
@property NADigestAlgorithm algorithm;
|
||||
|
||||
- (instancetype)initWithAlgorithm:(NADigestAlgorithm)algorithm;
|
||||
|
||||
- (NSData *)digestForData:(NSData *)data;
|
||||
|
||||
+ (NSData *)digestForData:(NSData *)data algorithm:(NADigestAlgorithm)algorithm;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user