Skip to content

Instantly share code, notes, and snippets.

View webmaster128's full-sized avatar

Simon Warta webmaster128

View GitHub Profile
[Nist | Test Case 1]
Cipher = AES-128/GCM
Key = 00000000000000000000000000000000
Nonce = 000000000000000000000000
In =
Out = 58E2FCCEFA7E3061367F1D57A4E7455A
[Nist | Test Case 2]
Cipher = AES-128/GCM
Key = 00000000000000000000000000000000
import time
class Timer(object):
def __enter__(self):
self.start = time.time()
return self
def __exit__(self, *args):
self.end = time.time()
self.secs = self.end - self.start
@webmaster128
webmaster128 / CMakeLists.txt
Created December 26, 2015 14:17
Single cmake config for Botan
project(Botan)
cmake_minimum_required(VERSION 2.8)
# Configure for use with CMake
#
# ./configure.py --with-bzip2 --with-zlib --with-lzma --enable-modules="dyn_load"
#
macro(use_cxx11)
if (CMAKE_VERSION VERSION_LESS "3.1")
# Test latin1 characters for filenames
#
# This is the lower half character set of latin1 minus NBSP and SHY
# See https://de.wikipedia.org/wiki/ISO_8859-1#ISO.2FIEC_8859-1
#
# Mix in a forbidden character from \ / : * ? " < > | to test a failure
import os; list = [
"_", "¡", "¢", "£", "¤", "¥", "¦", "§", "¨", "©", "ª", "«", "¬", "®", "_", "¯",
"°", "±", "²", "³", "´", "µ", "¶", "·", "¸", "¹", "º", "»", "¼", "½", "¾", "¿",
"À", "Á", "Â", "Ã", "Ä", "Å", "Æ", "Ç", "È", "É", "Ê", "Ë", "Ì", "Í", "Î", "Ï",
#!/usr/bin/python
import resource
import timeit
init = """
import hashlib
import subprocess
#!/bin/bash
set -o errexit -o nounset -o pipefail
which shellcheck > /dev/null && shellcheck "$0"
QT_VERSION="5.6.0"
QT_SOURCE="$1"
BUILDDIR="/run/shm/qt-build-$USER"
PREFIX_ROOT="/usr/local/qt-$QT_VERSION-linux-clang-libc++"
PREFIX_SRC="$PREFIX_ROOT/src"

A1

C:\Users\kullo\workspace-playground\compilescripts\libkullo>clcache -s
clcache statistics:
  current cache dir         : C:\Users\kullo\clcache
  cache size                : 96,482,841 bytes
  maximum cache size        : 1,073,741,824 bytes
  cache entries             : 248
includesLong = [
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\algorithm",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\ammintrin.h",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\array",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\atomic",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\cassert",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\ccomplex",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\cerrno",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\cfloat",
"c:\\program files (x86)\\microsoft visual studio 14.0\\vc\\include\\chrono",
C:\workspace>clcache.bat -C
Cache cleared
C:\workspace>clcache.bat -z
Statistics reset
C:\workspace>python speedtest.py
Runtime cold cache: 8m, 48s
Runtime hot cache 1: 0m, 38s
Runtime hot cache 2: 0m, 41s
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>cd C:\workspace\botan\botan-1.11.31
C:\workspace\botan\botan-1.11.31>python configure.py --no-autoload --enable-modules=tls
INFO: configure.py invoked with options "--no-autoload --enable-modules=tls"
INFO: Platform: OS="Windows" machine="AMD64" proc="Intel64 Family 6 Model 61 Stepping 4, GenuineIntel"
INFO: Guessing target OS is windows (use --os to set)
INFO: Guessing to use compiler msvc (use --cc to set)
INFO: Guessing target processor is a x86_64/x86_64 (use --cpu to set)
INFO: Target is msvc-windows-x86_64-x86_64
INFO: Skipping, incompatible OS - beos_stats darwin_secrandom dev_random egd fd_unix proc_walk unix_procs