summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-15 03:47:08 +0200
committerDan McGee <dan@archlinux.org>2011-08-15 19:11:59 +0200
commitfa4aad5b509946f947d9b2553d09f5f35be24915 (patch)
treed588e93fb9d3d41c6e582f625eaed82c19ff3109 /test
parentf3f39cef84330b734c36a60e48cf26a3f3e1f76c (diff)
downloadpacman-fa4aad5b509946f947d9b2553d09f5f35be24915.tar.gz
pacman-fa4aad5b509946f947d9b2553d09f5f35be24915.tar.xz
decode_signature: guess signature data length for efficiency
We may end up allocating 1 or 2 extra bytes this way, but it is worth it to simplify the method and not have to call base64_decode() a second time. Use the hueristic that base64 encoding produces 3 bytes of decoded data for every 4 bytes of encoded data. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions