MessageEncoderDecoder Class Reference

Inherits from NSObject
Declared in MessageEncoderDecoder.h
MessageEncoderDecoder.m

Overview

Class is responsible for encoding/decoding logic of endpoint - operations service communication.

– getSessionKey

symmetric key used to encode messages.

- (NSData *)getSessionKey

Return Value

symmetric key used to encode messages.

Declared In

MessageEncoderDecoder.h

– getEncodedSessionKey

encoded symmetric key used to encode messages.

- (NSData *)getEncodedSessionKey

Return Value

encoded symmetric key used to encode messages.

Declared In

MessageEncoderDecoder.h

– encodeData:

Encode data using sessionKey.

- (NSData *)encodeData:(NSData *)message

Parameters

message

the data

Discussion

Encode data using sessionKey.

Declared In

MessageEncoderDecoder.h

– decodeData:

Decode data using session key.

- (NSData *)decodeData:(NSData *)message

Parameters

message

the data

Discussion

Decode data using session key.

Declared In

MessageEncoderDecoder.h

– decodeData:withEncodedKey:

Decode data using session key which is decoded using private key.

- (NSData *)decodeData:(NSData *)message withEncodedKey:(NSData *)encodedKey

Parameters

message

the date to decode

encodedKey

the encoded key

Discussion

Decode data using session key which is decoded using private key.

Declared In

MessageEncoderDecoder.h

– getPrivateKey

private key reference within keychain.

- (SecKeyRef)getPrivateKey

Return Value

private key reference within keychain.

Declared In

MessageEncoderDecoder.h

– getPublicKey

public key reference within keychain.

- (SecKeyRef)getPublicKey

Return Value

public key reference within keychain.

Declared In

MessageEncoderDecoder.h

– getRemotePublicKey

public key reference within keychain.

- (SecKeyRef)getRemotePublicKey

Return Value

public key reference within keychain.

Declared In

MessageEncoderDecoder.h

– getRemotePublicKeyAsBytes

remote public key with bytes representation.

- (NSData *)getRemotePublicKeyAsBytes

Return Value

remote public key with bytes representation.

Declared In

MessageEncoderDecoder.h

– signatureForMessage:

Sign message using private key.

- (NSData *)signatureForMessage:(NSData *)message

Discussion

Sign message using private key.

Declared In

MessageEncoderDecoder.h

– verifyMessage:withSignature:

Verify message using signature and remote public key.

- (BOOL)verifyMessage:(NSData *)message withSignature:(NSData *)signature

Discussion

Verify message using signature and remote public key.

Declared In

MessageEncoderDecoder.h