Host:
<syntaxhighlight lang="C">
int challenge = random();
-int keyID = sendToKey(getKeyID, null);
+sendToKey(getKeyID, null);
+int keyID = getFromKey();
sendToKey(authChallenge, challenge);
if (sha2(keychain[keyID] + challange) == getFromKey()) {
openGate();
case getKeyID :
uart.send(keyID);
case authChallenge :
- uart.send(sha2(localKey + data);
+ uart.send(sha2(localKey + data));
default :
resetData();
}