Specification of Secure Onboard Communication
AUTOSAR CP R20-11
5 of 179 Document ID 654:AUTOSAR_SWS_SecureOnboardCommunication
7.10 Security Profiles .......................................................................................... 66
7.10.1 Secured area within a Pdu ................................................................... 66
7.10.2 Overview of security profiles ................................................................ 66
7.10.3 SecOC Profile 1 (or 24Bit-CMAC-8Bit-FV) .......................................... 67
7.10.4 SecOC Profile 2 (or 24Bit-CMAC-No-FV) ........................................... 67
7.10.5 SecOC Profile 3 (or JASPAR) ............................................................. 68
8 API specification ............................................................................................... 69
8.1 Imported types ............................................................................................... 69
8.2 Type definitions .............................................................................................. 69
8.2.1 SecOC_ConfigType ................................................................................ 69
8.2.2 SecOC_StateType .................................................................................. 70
8.3 Function definitions ........................................................................................ 70
8.3.1 SecOC_Init .............................................................................................. 70
8.3.2 SecOC_DeInit ......................................................................................... 71
8.3.3 SecOC_GetVersionInfo ........................................................................... 72
8.3.4 SecOC_IfTransmit ................................................................................... 72
8.3.5 SecOC_TpTransmit ................................................................................. 73
8.3.6 SecOC_IfCancelTransmit ....................................................................... 73
8.3.7 SecOC_TpCancelTransmit ..................................................................... 74
8.3.8 SecOC_TpCancelReceive ...................................................................... 75
8.3.9 SecOC_VerifyStatusOverride ................................................................. 75
8.3.10 Optional Interfaces ............................................................................... 76
8.4 Call-back notifications .................................................................................... 78
8.4.1 SecOC_RxIndication ............................................................................... 78
8.4.2 SecOC_TpRxIndication ........................................................................... 78
8.4.3 SecOC_TxConfirmation .......................................................................... 79
8.4.4 SecOC_TpTxConfirmation ...................................................................... 80
8.4.5 SecOC_TriggerTransmit ......................................................................... 80
8.4.6 SecOC_CopyRxData .............................................................................. 81
8.4.7 SecOC_CopyTxData ............................................................................... 82
8.4.8 SecOC_StartOfReception ....................................................................... 83
8.4.9 CSM callback interfaces .......................................................................... 84
8.5 Callout Definitions .......................................................................................... 84
8.5.1 SecOC_GetRxFreshness ........................................................................ 84
8.5.2 SecOC_GetRxFreshnessAuthData ........................................................ 85
8.5.3 SecOC_GetTxFreshness ........................................................................ 87
8.5.4 SecOC_GetTxFreshnessTruncData ....................................................... 87
8.5.5 SecOC_SPduTxConfirmation ................................................................. 88
8.6 Scheduled functions ....................................................................................... 89
8.6.1 SecOC_MainFunctionRx ......................................................................... 89
8.6.2 SecOC_MainFunctionTx ......................................................................... 90
8.7 Expected Interfaces ....................................................................................... 91
8.7.1 Mandatory Interfaces............................................................................... 91
8.7.2 Optional Interfaces .................................................................................. 91
8.7.3 Configurable Interfaces ........................................................................... 92
8.8 Service Interfaces .......................................................................................... 94
8.8.1 Overview .................................................................................................. 94
8.8.2 Sender Receiver Interfaces ..................................................................... 94
8.8.3 Client Server Interfaces ........................................................................... 95
评论4