Inherits from NSObject
Conforms to AGEncryptionService
Declared in AGBaseEncryptionService.h
AGBaseEncryptionService.m

Overview

Base class for any given AGEncryptionService implementation. See AGPasswordKeyServices and AGPassphraseKeyServices class documentation for concrete implementations.

Instance Methods

decrypt:

Decrypts the data object(cipher) passed in.

- (NSData *)decrypt:(NSData *)data

Parameters

data

The data object(cipher) to decrypt.

Return Value

An NSData object that holds the decrypted data.

Discussion

Decrypts the data object(cipher) passed in.

Declared In

AGEncryptionService.h

decrypt:IV:

Decrypts the data object(cipher) passed in.

- (NSData *)decrypt:(NSData *)data IV:(NSData *)IV

Parameters

data

The data object(cipher) to decrypt.

IV

A randomly chosen value used as the initialization vector during decrypt.

Return Value

An NSData object that holds the decrypted data.

Discussion

Decrypts the data object(cipher) passed in.

Declared In

AGEncryptionService.h

encrypt:

Encrypts the data object passed in.

- (NSData *)encrypt:(NSData *)data

Parameters

data

The data object to encrypt.

Return Value

An NSData object that holds the encrypted(cipher) data.

Discussion

Encrypts the data object passed in.

Declared In

AGEncryptionService.h

encrypt:IV:

Encrypts the data object passed in.

- (NSData *)encrypt:(NSData *)data IV:(NSData *)IV

Parameters

data

The data object to encrypt.

IV

A randomly chosen value used as the initialization vector during encrypt.

Return Value

An NSData object that holds the encrypted(cipher) data.

Discussion

Encrypts the data object passed in.

Declared In

AGEncryptionService.h