-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRSAKeyGenerator.h
More file actions
35 lines (22 loc) · 851 Bytes
/
RSAKeyGenerator.h
File metadata and controls
35 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// RSAKeyGenerator.h
// RSA
//
// Created by Marcel Boersma on 6/11/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RSAKeyGenerator : NSObject
{
}
@property (nonatomic, retain) IBOutlet NSDecimalNumber *primeA;
@property (nonatomic, retain) IBOutlet NSDecimalNumber *primeB;
@property (nonatomic, retain) IBOutlet NSDecimalNumber *n;
@property (nonatomic, retain) IBOutlet NSDecimalNumber *z;
@property (nonatomic, retain) IBOutlet NSDecimalNumber *publicKey;
@property (nonatomic, retain) IBOutlet NSDecimalNumber *privateKey;
-(void)calculateKeyWithPrimeA:(NSDecimalNumber*)aPrime andPrimeB:(NSDecimalNumber*)bPrime;
-(NSString*)decrypteMessage:(NSString*)message;
-(NSString*)encrypteMessage:(NSString*)message;
-(int) GCDWithIntA: (int) a andIntB:(int) b;
@end