Skip to content

Commit e9d666c

Browse files
committed
Normalize on EncryptName as well
1 parent 15bbecf commit e9d666c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Core/SecureFolderFS.Core.Cryptography/Cipher/SecombaBase4K.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using System;
55
using System.Buffers;
6-
using System.Collections.Generic;
76
using System.IO;
87
using System.Runtime.CompilerServices;
98
using System.Text;

src/Core/SecureFolderFS.Core.Cryptography/NameCrypt/BaseNameCrypt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public virtual string EncryptName(ReadOnlySpan<char> plaintextName, ReadOnlySpan
3535
return fileNameEncodingId switch
3636
{
3737
Constants.CipherId.ENCODING_BASE64URL => Base64Url.EncodeToString(ciphertextNameBuffer),
38-
Constants.CipherId.ENCODING_BASE4K => SecombaBase4K.Encode(ciphertextNameBuffer),
38+
Constants.CipherId.ENCODING_BASE4K => SecombaBase4K.Encode(ciphertextNameBuffer).Normalize(NORMALIZATION),
3939
_ => throw new ArgumentOutOfRangeException(nameof(fileNameEncodingId))
4040
};
4141
}

0 commit comments

Comments
 (0)