hmbsbige / cryptobase Goto Github PK
View Code? Open in Web Editor NEWA fast crypto library for .NET
License: MIT License
A fast crypto library for .NET
License: MIT License
using System;
public class X
{
public void A(ref Span<byte> span, int i)
{
span = span[i..];
}
public void B(ref Span<byte> span, int i)
{
span = span.Slice(i);
}
}
; Core CLR 8.0.23.53103 on x64
X..ctor()
L0000: ret
X.A(System.Span`1<Byte> ByRef, Int32)
L0000: sub rsp, 0x28
L0004: mov rax, rdx
L0007: mov eax, [rax+8]
L000a: mov ecx, eax
L000c: sub ecx, r8d
L000f: mov r8d, r8d
L0012: mov r10d, ecx
L0015: add r10, r8
L0018: cmp r10, rax
L001b: ja short L002b
L001d: add r8, [rdx]
L0020: mov [rdx], r8
L0023: mov [rdx+8], ecx
L0026: add rsp, 0x28
L002a: ret
L002b: mov rax, 0x7ffb10a5ead8
L0035: call qword ptr [rax]
L0037: int3
X.B(System.Span`1<Byte> ByRef, Int32)
L0000: sub rsp, 0x28
L0004: mov eax, [rdx+8]
L0007: cmp r8d, eax
L000a: ja short L0020
L000c: mov ecx, r8d
L000f: add rcx, [rdx]
L0012: sub eax, r8d
L0015: mov [rdx], rcx
L0018: mov [rdx+8], eax
L001b: add rsp, 0x28
L001f: ret
L0020: mov rax, 0x7ffb10a5ead8
L002a: call qword ptr [rax]
L002c: int3
So just ignore IDE0057
Originally posted by sidielnikov January 7, 2024
Bro, please add XTS mode for AES
Here are a few examples to help you
https://github.com/tkp1n/ArmAes
not working decryption. If it's not difficult to tell me how to fix the function
DecryptDataUnit256(
in AesKey key,
ref byte tweak,
ref byte ct, nuint ctLen,
ref byte pt)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.