mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-14 10:09:04 +00:00
fix linebreak bug
This commit is contained in:
parent
59d3b374cb
commit
bedabc93fb
@ -13,6 +13,8 @@ void Base64Encoder::IsolatedInitialize(const NameValuePairs ¶meters)
|
||||
{
|
||||
bool insertLineBreaks = parameters.GetValueWithDefault("InsertLineBreaks", true);
|
||||
int maxLineLength = parameters.GetIntValueWithDefault("MaxLineLength", 72);
|
||||
|
||||
const char *lineBreak = insertLineBreaks ? "\n" : "";
|
||||
|
||||
m_filter->Initialize(CombinedNameValuePairs(
|
||||
parameters,
|
||||
@ -20,8 +22,8 @@ void Base64Encoder::IsolatedInitialize(const NameValuePairs ¶meters)
|
||||
("PaddingByte", s_padding)
|
||||
("Log2Base", 6)
|
||||
("GroupSize", insertLineBreaks ? maxLineLength : 0)
|
||||
("Separator", ConstByteArrayParameter("\n"))
|
||||
("Terminator", ConstByteArrayParameter("\n"))));
|
||||
("Separator", ConstByteArrayParameter(lineBreak))
|
||||
("Terminator", ConstByteArrayParameter(lineBreak))));
|
||||
}
|
||||
|
||||
const int *Base64Decoder::GetDecodingLookupArray()
|
||||
|
Loading…
x
Reference in New Issue
Block a user