Commit fdfc19aa by npzacs

Calculate processing key using device keys

parent 21652191
 ... ... @@ -38,14 +38,17 @@ ; ; Device Key entry ; ---------------- ; | DK | DEVICE_KEY | DEVICE_NODE ; | DK | DEVICE_KEY \ ; | DEVICE_NODE \ ; | KEY_UV \ ; | KEY_U_MASK_SHIFT ; ; The device key entry begins with the entry ID "| DK |". Within a device key ; entry are two hexadecimal strings. The first hexadecimal string is preceded by ; entry are four hexadecimal strings. The first hexadecimal string is preceded by ; the keyword "DEVICE_KEY" and is the hexadecimal string representing the device ; key. The second hexadecimal string is preceded by the keyword "DEVICE_NODE" ; and is the hexadecimal string representing the device node number. Each of ; two entries is delimited by a vertical bar '|'. Each device key entry must end ; four entries is delimited by a vertical bar '|'. Each device key entry must end ; with a newline. ; ; Note that each of these entries must end with at least one new line, as ... ... @@ -153,7 +156,9 @@ ; foo's device key | DK | DEVICE_KEY 0x00000000000000000000000000000000 \ | DEVICE_NODE 0x0 | DEVICE_NODE 0x0 \ | KEY_UV 0x00000000 \ | KEY_U_MASK 0x00 ; bar's device key | DK | DEVICE_KEY 0x00000000000000000000000000000000 \ ... ...
 ... ... @@ -59,6 +59,8 @@ DIGIT ([0-9]+) KEYWORD_DEVICE_KEY ([Dd][Ee][Vv][Ii][Cc][Ee]_[Kk][Ee][Yy]) KEYWORD_DEVICE_NODE ([Dd][Ee][Vv][Ii][Cc][Ee]_[Nn][Oo][Dd][Ee]) KEYWORD_KEY_UV ([Kk][Ee][Yy]_[Uu][Vv]) KEYWORD_KEY_U_MASK_SHIFT ([Kk][Ee][Yy]_[Uu]_[Mm][Aa][Ss][Kk]_[Ss][Hh][Ii][Ff][Tt]) KEYWORD_HOST_PRIV_KEY ([Hh][Oo][Ss][Tt]_[Pp][Rr][Ii][Vv]_[Kk][Ee][Yy][ \t]+) KEYWORD_HOST_CERT ([Hh][Oo][Ss][Tt]_[Cc][Ee][Rr][Tt][ \t]+) KEYWORD_HOST_NONCE ([Hh][Oo][Ss][Tt]_[Nn][Oo][Nn][Cc][Ee][ \t]+) ... ... @@ -112,6 +114,8 @@ BAD_ENTRY ([^\n]) {KEYWORD_DEVICE_KEY} { return KEYWORD_DEVICE_KEY; } {KEYWORD_DEVICE_NODE} { return KEYWORD_DEVICE_NODE; } {KEYWORD_KEY_UV} { return KEYWORD_KEY_UV; } {KEYWORD_KEY_U_MASK_SHIFT} { return KEYWORD_KEY_U_MASK_SHIFT; } {KEYWORD_HOST_PRIV_KEY} { return KEYWORD_HOST_PRIV_KEY; } {KEYWORD_HOST_CERT} { return KEYWORD_HOST_CERT; } {KEYWORD_HOST_NONCE} { return KEYWORD_HOST_NONCE; } ... ...