diff options
author | Mike Turner <miketur@microsoft.com> | 2018-12-28 16:00:02 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-02-02 21:41:11 +0800 |
commit | 1f7af69d10fa3c88e996d38179d5f985f6c7dfe5 (patch) | |
tree | a4c0deb98925e7ee02cab05754b12f6e96d044fe /BaseTools/Source/Python/AutoGen/UniClassObject.py | |
parent | 97c8f5b9e7d3136b6051a05cf056ce5ca9e79893 (diff) | |
download | edk2-1f7af69d10fa3c88e996d38179d5f985f6c7dfe5.tar.gz edk2-1f7af69d10fa3c88e996d38179d5f985f6c7dfe5.tar.bz2 edk2-1f7af69d10fa3c88e996d38179d5f985f6c7dfe5.zip |
MdePkg/BaseLib: Add Base64Encode() and Base64Decode()
Introduce public functions Base64Encode and Base64Decode.
https://bugzilla.tianocore.org/show_bug.cgi?id=1370
v2:1.Remove some white space.
2.Add unit test with test vectors in RFC 4648.
https://github.com/shenglei10/edk2/tree/encode_test
https://github.com/shenglei10/edk2/tree/decode_test
v3:1.Align white space.
2.Update comments of Base64Encode and Base64Decode.
3.Change the use of macro RETURN_DEVICE_ERROR to
RETURN_INVALID_PARAMETER in string.c.
v4:Change parameters' names.
v5:1.Update usage of variables.
2.Remove debug message in Base64Decode().
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/UniClassObject.py')
0 files changed, 0 insertions, 0 deletions