|
Algorithm 1 YB-IoT-CG Layered Access Decision |
|
Require: IoT message ; ,
|
|
Require: ; revocation cache
|
| 1: if ¬WellFormed then
|
| 2: CommitAudit
|
| 3: return
|
| 4: end if
|
| 5:
|
| 6: if
then
|
| 7: CommitAudit
|
| 8: return
|
▹ recognize existing revocation; do not create a new one |
| 9: end if
|
| 10: if
¬VerifyBaseAuth then
|
| 11: CommitAudit
|
| 12: return
|
▹ unauthenticated traffic cannot update risk or enqueue revocation |
| 13: end if
|
| 14: ;
|
| 15:
|
| 16:
|
| 17:
|
| 18: if
then
|
| 19:
|
| 20: CommitAudit
|
| 21: RecordAuthenticatedNonce
|
| 22: return
|
| 23: end if
|
| 24: Sfresh ← FreshnessScore using Equation (19) |
| 25: Schain ← TMTOProximity using Equation (16) |
| 26: Sctx ← ContextScore using Equation (20) |
| 27:
|
| 28: Di ← ContextDECISION
|
▹ Algorithm 3 |
| 29: if
then
|
| 30: if then
|
| 31:
|
| 32: CommitAudit
|
| 33: QueueRevocation
|
| 34: RecordAuthenticatedNonce
|
| 35: return
|
| 36: else
|
| 37: CommitAudit
|
| 38: RecordAuthenticatedNonce
|
| 39: return
|
| 40: end if
|
| 41: else if
or
then
|
| 42: CommitAudit
|
| 43: RecordAuthenticatedNonce
|
| 44: return
|
| 45: end if
|
| 46: CommitAudit
|
| 47: RecordAuthenticatedNonce
|
| 48:
|
▹ Algorithm 2; accepted traffic only |
| 49: return
|