Skip to content

Instantly share code, notes, and snippets.

@73696e65
73696e65 / buildasn1.py
Created November 1, 2017 07:44 — forked from gnpar/buildasn1.py
Generate an asn1parse config for an RSA private key given p,q and e
#!/usr/bin/env python
import sys
helptext = """
Redirect output to asn1.conf and then create and check the key with:
openssl asn1parse -genconf asn1.conf -out key.der
openssl rsa -in key.der -inform der -text -check
"""
#### Extended Euclidean Algorithm and Modular Inverse
@73696e65
73696e65 / no-madvise.c
Created June 19, 2017 21:29 — forked from niedbalski/no-madvise.c
madvise tests
niedbalski@theos-mobile:~$ cat test-madvise.c
#include <sys/mman.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
int main(void) {
size_t size = sysconf(_SC_PAGE_SIZE) * 6; //24K