FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
EncryptionController Class Reference
Inheritance diagram for EncryptionController:
Collaboration diagram for EncryptionController:

Instance Methods

(Encryptor *) - decryptor
 
(Encryptor *) - encryptor
 

Class Methods

(EncryptionController *) + sharedEncryptionController
 

Protected Attributes

Encryptor_shared_encryptor
 

Detailed Description

Definition at line 14 of file EncryptionController.h.

Method Documentation

◆ decryptor

- (Encryptor *) decryptor

Definition at line 29 of file EncryptionController.m.

73{
74 return [self encryptor];
75}

◆ encryptor

- (Encryptor *) encryptor

Definition at line 29 of file EncryptionController.m.

49{
50 if (_shared_encryptor)
51 return _shared_encryptor;
52
53 NSString *saved_password = [self keychainPassword];
54 if (saved_password == nil)
55 {
56 saved_password = [self keychainDefaultPassword];
57 Encryptor *encryptor = [[[Encryptor alloc] initWithPassword:saved_password] autorelease];
58 [self setEncryptedVerificationData:encryptor];
59 _shared_encryptor = [encryptor retain];
60 }
61 else
62 {
63 Encryptor *encryptor = [[[Encryptor alloc] initWithPassword:saved_password] autorelease];
64 if ([self verifyPassword:encryptor])
65 _shared_encryptor = [encryptor retain];
66 }
67
68 return _shared_encryptor;
69}

◆ sharedEncryptionController

+ (EncryptionController *) sharedEncryptionController

Definition at line 29 of file EncryptionController.m.

36{
37 @synchronized(self)
38 {
39 if (_shared_encryption_controller == nil)
40 _shared_encryption_controller = [[EncryptionController alloc] init];
41 }
42
43 return _shared_encryption_controller;
44}

Field Documentation

◆ _shared_encryptor

- (Encryptor*) _shared_encryptor
protected

Definition at line 16 of file EncryptionController.h.


The documentation for this class was generated from the following files: