MFi SAP Server

Includes:
"Common.h"
"Debug.h"

Introduction

// TODO: define MFi SAP This header contains function prototypes called by the WAC // TODO: fix description engine. These functions abstract the interaction with mDNSResponder.



Groups

Creation

APIs for performing the Made for iPod (MFi) Security Association Protocol (SAP).

Group members:

MFiSAP_DeriveAESKey

Derive AES key and IV from the shared secret.

MFiSAP_Exchange

Perform key exchange.


Functions

MFiSAP_DeriveAESKey

Derive AES key and IV from the shared secret.

MFiSAP_Exchange

Perform key exchange.


MFiSAP_DeriveAESKey


Derive AES key and IV from the shared secret.

OSStatus MFiSAP_DeriveAESKey( 
    MFiSAPRef inRef, 
    const void *inKeySaltPtr, 
    size_t inKeySaltLen, 
    const void *inIVSaltPtr, 
    size_t inIVSaltLen, 
    uint8_t outKey[ 16 ], 
    uint8_t outIV[ 16 ] );  

MFiSAP_Exchange


Perform key exchange.

OSStatus MFiSAP_Exchange( 
    MFiSAPRef inRef, 
    const uint8_t *inInputPtr, 
    size_t inInputLen, 
    uint8_t **outOutputPtr, 
    size_t *outOutputLen, 
    Boolean *outDone );  
Discussion

This is called on both the client and server sides. Each side repeatedly cals MFiSAP_Exchange until it returns an error to indicate a failure or it returns kNoErr and sets "done" to true.