//
//  DHEncryption.h
//  XProtect
//
//  Created by Димитър Кунчев on 11/7/11.
//  Copyright (c) 2011 Milestone Systems. All rights reserved.
//

#import <Foundation/Foundation.h>

@class XPInt;
@class DHKeyGenerator;
@class DHKeyPair;

@class PBE;

@interface DHEncryption : NSObject {
    DHKeyGenerator * keyGenerator;
    DHKeyPair * keyPair;
    
    PBE * pbe;
}

- (id) init;

- (id) initWithKeyPair: (DHKeyPair *) samplePair;

- (NSString *) publicKeyEncoded;

- (void) generateSecretKeyFromString: (NSString *) base64EncodedString;

- (NSString *) encrypt:(NSString *)string;
- (NSString *) decrypt:(NSString *)string;

@end
