SFEncryptionKey Class Reference

Inherits from NSObject
Declared in SFEncryptionKey.h

Overview

Data object representing a symmetric encryption key, with a key value and initialization vector.

– initWithData:initializationVector:

Designated initializer.

- (id)initWithData:(NSData *)keyData initializationVector:(nullable NSData *)iv

Parameters

keyData

The key component, represented as NSData.

iv

The initialization vector, represented as NSData.

Declared In

SFEncryptionKey.h

  key

Key component of the object.

@property (nonatomic, copy, nullable) NSData *key

Declared In

SFEncryptionKey.h

  initializationVector

Initialization vector component of the object.

@property (nonatomic, copy) NSData *initializationVector

Declared In

SFEncryptionKey.h

  keyAsString

The base64 representation of the key data.

@property (nonatomic, readonly, nullable) NSString *keyAsString

Declared In

SFEncryptionKey.h

  initializationVectorAsString

The base64 representation of the initialization vector data.

@property (nonatomic, readonly, nullable) NSString *initializationVectorAsString

Declared In

SFEncryptionKey.h