From a81e385e7908b693c4f0243102fca84e8246e9a1 Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Thu, 22 Sep 2022 20:03:47 +0800 Subject: [PATCH] Make design doc slightly more up to date --- docs/design.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/design.md b/docs/design.md index cba75ba..d009967 100644 --- a/docs/design.md +++ b/docs/design.md @@ -56,10 +56,15 @@ but the bigger problem is there's no way to insert a custom random number genera Instead switching to RustCrypto crates worked fairly easily, though perhaps a bit messier having to deal with `GenericArray` and `DynamicDigest` and types like that. At the time of writing `curve25519-dalek` etc -are a bit behind on dependencies which is messy, but I assume that will sort itself out. +are a bit behind on dependencies which is messy (the perennial problem of rust dependency traits), +but I assume that will sort itself out. + +Edit: Now using Salty instaed of dalek, it's designed for microcontrollers. ## `Behaviour` +(This is outdated, gave up on async `Behaviour` for the time being) + At some points in packet handling some custom behaviour from the application is required. For example "is this hostkey valid?", "is this user's password correct?". Those need an immediate response, so `.await` fits well. -- GitLab