Skip to content

Instantly share code, notes, and snippets.

View woachk's full-sized avatar

woachk

View GitHub Profile
#include <stdio.h>
#include <windows.h>
#include <bcrypt.h>
#define STATUS_SUCCESS 0x00000000
int main(void) {
NTSTATUS ntStatus = STATUS_SUCCESS;
BCRYPT_ALG_HANDLE hAlg = NULL;
BCRYPT_KEY_HANDLE hKey = NULL;
ntStatus = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RSA_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0);
@woachk
woachk / Drawbridge
Last active October 26, 2018 19:19
Drawbridge
==========
Calls from the NTUM to the PAL
------------------------------
DkcallSemaphoreRelease
DkcallDebugStringPrint
DkcallSemaphoreCreate
DkcallConsoleNotifyUpdate
@woachk
woachk / AAPL.md
Last active May 17, 2021 03:44
Apple in 2018: what's new

Apple devices in 2018

Notes

Both iPhone and Watch ship with a Secure Enclave processor. Both are also H11-class SoCs. As such, there are broad similarities between the different blocks. Embedded cores present on-die use firmware written with RTKit, which is Apple's own broadly-used RTOS on cores codenamed Chinook. The codename for the eSIM platform on both the iPhone and Watch is Vinyl. The NFC (+Apple Pay?) controller is named Stockholm, and the Apple Watch Series 4 + iPhone Xs and Xr ship with version 5.

@woachk
woachk / Microsoft E2 architecture.md
Last active June 16, 2018 19:56
Only Microsoft.

Microsoft E2

Explicit data graph execution ISA

Hardware highlights

16-bit sized instructions in blocks of up to 128 instructions.

64 registers unified register file.

PM> Install-Package Newtonsoft.Json
GET https://api.nuget.org/v3/registration1-gz/newtonsoft.json/index.json
OK https://api.nuget.org/v3/registration1-gz/newtonsoft.json/index.json 151 ms
Install-Package : '$(NetStandardImplicitPackageVersion)' n'est pas une chaîne de version valide.
Au caractère Ligne:1 : 1
+ Install-Package Newtonsoft.Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.
InstallPackageCommand