Some basic crypto laid down and tests
This commit is contained in:
17
kordophone/Crypto/NSData+AES.h
Normal file
17
kordophone/Crypto/NSData+AES.h
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// NSData+AES.h
|
||||
// MessagesBridge
|
||||
//
|
||||
// Created by James Magahern on 11/15/18.
|
||||
// Copyright © 2018 James Magahern. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CommonCrypto/CommonCrypto.h>
|
||||
|
||||
@interface NSData (AES)
|
||||
|
||||
- (NSData *)encryptedDataWithKey:(NSData *)key iv:(NSData *)iv error:(NSError **)error;
|
||||
- (NSData *)decryptedDataWithKey:(NSData *)key iv:(NSData *)iv error:(NSError **)error;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user