Private
Public Access
1
0

Some basic crypto laid down and tests

This commit is contained in:
James Magahern
2018-11-15 14:50:40 -08:00
parent e08e9d738c
commit b92860b011
5 changed files with 265 additions and 0 deletions

View 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