Created
September 21, 2018 17:30
-
-
Save cawka/70f519387d0bc8074f22d60e64863554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule | |
{ | |
id “Smart Home Camera Command Interest Rule” | |
for interest | |
filter | |
{ | |
type name | |
name /home/LivingRoom/Camera-01/Control | |
relation is-strict-prefix-of | |
} | |
checker | |
{ | |
type customized | |
sig-type rsa-sha256 | |
key-locator | |
{ | |
type name | |
regex ^<home><Controller><><KEY><>$ | |
} | |
} | |
} | |
rule | |
{ | |
id “Smart Home Camera Certificate Data Rule” | |
for data | |
filter | |
{ | |
type name | |
regex ^<home><Controller><><KEY><><><>$ | |
} | |
checker | |
{ | |
type customized | |
sig-type rsa-sha256 | |
key-locator | |
{ | |
type name | |
regex ^<home><KEY><>$ | |
hyper-relation | |
{ | |
k-regex ^(<>)<KEY><>$ | |
k-expand \\1 | |
h-relation equal | |
p-regex ^(<>)<>*$ | |
p-expand \\1 | |
} | |
} | |
} | |
} | |
trust-anchor | |
{ | |
type file | |
file-name home-anchor-key.cert | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment