- Update Pod
This commit is contained in:
1 parent
ef4deb51f6
commit
6a5119dbe3
108 files changed
+13081
-7351
No files matched your search
Generated
+34
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// NAHMAC.h
|
||||
// NACL
|
||||
//
|
||||
// Created by Gabriel Handford on 1/16/14.
|
||||
// Copyright (c) 2014 Gabriel Handford. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM (NSUInteger, NAHMACAlgorithm) {
|
||||
NAHMACAlgorithmSHA1,
|
||||
NAHMACAlgorithmSHA2_224,
|
||||
NAHMACAlgorithmSHA2_256,
|
||||
NAHMACAlgorithmSHA2_384,
|
||||
NAHMACAlgorithmSHA2_512,
|
||||
|
||||
// SHA3
|
||||
NAHMACAlgorithmSHA3_256,
|
||||
NAHMACAlgorithmSHA3_384,
|
||||
NAHMACAlgorithmSHA3_512,
|
||||
};
|
||||
|
||||
@interface NAHMAC : NSObject
|
||||
|
||||
@property NAHMACAlgorithm algorithm;
|
||||
|
||||
- (instancetype)initWithAlgorithm:(NAHMACAlgorithm)algorithm;
|
||||
|
||||
- (NSData *)HMACForKey:(NSData *)key data:(NSData *)data;
|
||||
|
||||
+ (NSData *)HMACForKey:(NSData *)key data:(NSData *)data algorithm:(NAHMACAlgorithm)algorithm;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user