MFi SAP Server
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. GroupsCreationAPIs for performing the Made for iPod (MFi) Security Association Protocol (SAP). Group members:
Functions
MFiSAP_DeriveAESKeyDerive 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_ExchangePerform key exchange. OSStatus MFiSAP_Exchange( MFiSAPRef inRef, const uint8_t *inInputPtr, size_t inInputLen, uint8_t **outOutputPtr, size_t *outOutputLen, Boolean *outDone ); DiscussionThis 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. |