[PATCH] regression of comment extraction in private key file without passphrase

David Newall openssh at davidnewall.com
Thu Apr 23 11:25:44 AEST 2020


On 23/4/20 10:30 am, Darren Tucker wrote:
> On Thu, 23 Apr 2020 at 07:58, Loïc <loic at venez.fr> wrote:
> [...]
>> For my patch about keeping the number of round, I'm considering writing
>> a regression test, but I need to extract the number of round from the
>> private file binary syntax. Is it acceptable to call python script from
>> a regression shell script ?
> Unfortunately, no.  The regression tests need to run on an OpenBSD
> base system and Python is not part of base.  Could ssh-keygen be made
> to output the information you want?
>
dd if=binaryfile bs=1 skip=2468 count=4 2>&- | od -tu1 | \
{ read o b1 b2 b3 b4; \
   expr \( \( $b1 \* 256 + $b2 \) \* 256 + $b3 \) \* 256 + $b4
}



More information about the openssh-unix-dev mailing list