mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-03-25 09:25:53 +00:00
25 lines
604 B
Objective-C
25 lines
604 B
Objective-C
//
|
|
// CryptoKey.h
|
|
// Arq
|
|
//
|
|
// Created by Stefan Reitshamer on 6/9/11.
|
|
// Copyright 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
|
|
#include <openssl/evp.h>
|
|
|
|
|
|
@interface CryptoKey : NSObject {
|
|
const EVP_CIPHER *cipher;
|
|
unsigned char evpKey[EVP_MAX_KEY_LENGTH];
|
|
unsigned char iv[EVP_MAX_IV_LENGTH];
|
|
}
|
|
+ (NSString *)errorDomain;
|
|
|
|
- (id)initWithPassword:(NSString *)thePassword salt:(NSData *)theSalt error:(NSError **)error;
|
|
- (id)initLegacyWithPassword:(NSString *)thePassword error:(NSError **)error;
|
|
- (const EVP_CIPHER *)cipher;
|
|
- (unsigned char *)evpKey;
|
|
- (unsigned char *)iv;
|
|
@end
|