- Update Pod
This commit is contained in:
1 parent
ef4deb51f6
commit
6a5119dbe3
108 files changed
+13081
-7351
No files matched your search
Generated
+25
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// NAAES.h
|
||||
// NACrypto
|
||||
//
|
||||
// Created by Gabriel on 6/20/14.
|
||||
// Copyright (c) 2014 Gabriel Handford. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
typedef NS_ENUM (NSUInteger, NAAESAlgorithm) {
|
||||
NAAESAlgorithm256CTR = 1,
|
||||
};
|
||||
|
||||
@interface NAAES : NSObject
|
||||
|
||||
@property (readonly) NAAESAlgorithm algorithm;
|
||||
|
||||
- (instancetype)initWithAlgorithm:(NAAESAlgorithm)algorithm;
|
||||
|
||||
- (NSData *)encrypt:(NSData *)data nonce:(NSData *)nonce key:(NSData *)key error:(NSError **)error;
|
||||
|
||||
- (NSData *)decrypt:(NSData *)data nonce:(NSData *)nonce key:(NSData *)key error:(NSError **)error;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user