18 lines
428 B
C
18 lines
428 B
C
|
|
//
|
||
|
|
// 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
|