[PATCH v2 1/4] dhcp6c: decode_base64()

Leonid Lisovskiy lly.dev at gmail.com
Sun Oct 23 11:12:11 UTC 2011


On Tue, Oct 18, 2011 at 2:19 PM, Denys Vlasenko
<vda.linux at googlemail.com> wrote:
> After you created decode_base64 which operates on string,
> rewrite read_base64 to use it (say, by loop "read up to N*4 bytes,
> decode them, repeat if no decode error, no EOF and no end char
> encountered").
>
> This may need some tweaks: decode_base64 should be taught
> how to decode partial (incomplete) base64 string.

I prepare suggested variant, please take a look on patch attached, but
it has worse code size (+28 bytes) than copy-n-paste :((
Will try to optimize it, but currently have no good ideas...

Regards,
   Leonid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001-libbb-base64-str.patch
Type: text/x-patch
Size: 4679 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20111023/43cb8640/attachment.bin>


More information about the busybox mailing list