mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-16 21:07:43 +01:00
WIP
This commit is contained in:
parent
16d806a2bb
commit
1775122d03
3 changed files with 41 additions and 16 deletions
|
|
@ -15,6 +15,8 @@ namespace Dalamud.Bootstrap.Crypto
|
|||
/// </remarks>
|
||||
internal sealed class Blowfish
|
||||
{
|
||||
public static int BlockSize => 8;
|
||||
|
||||
private BlowfishState m_state;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -50,7 +52,7 @@ namespace Dalamud.Bootstrap.Crypto
|
|||
|
||||
private static bool CheckBufferLength(int length) => length switch
|
||||
{
|
||||
_ when length % 8 == 0 => true,
|
||||
_ when length % BlockSize == 0 => true,
|
||||
_ => false,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue