diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-14 20:47:08 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-15 12:11:59 -0500 |
commit | fa4aad5b509946f947d9b2553d09f5f35be24915 (patch) | |
tree | d588e93fb9d3d41c6e582f625eaed82c19ff3109 /lib/libalpm/.gitignore | |
parent | f3f39cef84330b734c36a60e48cf26a3f3e1f76c (diff) |
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 'lib/libalpm/.gitignore')
0 files changed, 0 insertions, 0 deletions