HomePhabricator

Make DecodeBase{32,64} take string_view arguments

Description

Make DecodeBase{32,64} take string_view arguments

Summary:

Generalize ConvertBits to permit transforming the input

https://github.com/bitcoin/bitcoin/pull/25001/commits/1a72d62152bfdd7c5c2b2704b679f894e7d35e37

Make DecodeBase{32,64} take string_view arguments

https://github.com/bitcoin/bitcoin/pull/25001/commits/8ffbd1412d887535ce5eb613884858c319bd12be

This is a partial backport of core#25001
Depends on D17149

Test Plan: ninja all check-all bitcoin-fuzzers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17150

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Apr 4 2022, 15:58
PiRKCommitted on Nov 18 2024, 10:22
PiRKPushed on Nov 18 2024, 10:22
Reviewer
Restricted Project
Differential Revision
D17150: Make DecodeBase{32,64} take string_view arguments
Parents
rABC5dc47a349314: modernize DecodeBase{32,64}, reject incorrect base64 in HTTP auth
Branches
Unknown
Tags
Unknown