Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
@tsusanka
tsusanka / gist:96dc60e20d65174073cf
Created May 2, 2015 08:48
Mathematica GF multiplication
X = 16^^00000000331100002201;
Y = 16^^0000000000223811f321;
m = 79;
f = \[Alpha]^79 + \[Alpha]^9 + 1;
polynomialBasis = Table[\[Alpha]^i, {i, m - 1, 0, -1}];
Print["X = ", BaseForm[X, 16]];
Print["Y = ", BaseForm[Y, 16]];

Keybase proof

I hereby claim:

  • I am tsusanka on github.
  • I am tsusanka (https://keybase.io/tsusanka) on keybase.
  • I have a public key whose fingerprint is D696 C0F0 F7E0 B994 22F7 26D3 94AE 9351 8CC3 09EC

To claim this, I am signing this object:

upgraded libpng (1.6.21-1 -> 1.6.22-1)
upgraded xcb-proto (1.11-2 -> 1.12-2)
upgraded libxcb (1.11.1-1 -> 1.12-1)
upgraded linux44 (4.4.11-1 -> 4.4.12-1)
upgraded curl (7.48.0-1 -> 7.49.1-1)
upgraded gnutls (3.4.11-2 -> 3.4.12-1)
upgraded libxfixes (5.0.1-1 -> 5.0.2-1)
upgraded chromium (51.0.2704.63-1 -> 51.0.2704.79-1)
upgraded nemo (3.0.3-1 -> 3.0.5-1)
@tsusanka
tsusanka / einf.java
Created June 14, 2016 11:33
einf.java
package com.tsusanka.dsa;
import java.math.BigInteger;
class DSA
{
private BigInteger alpha;
private BigInteger beta;
private BigInteger p;
package module
import (
"crypto/tls"
"encoding/hex"
"github.com/praetorian-inc/trudy/pipe"
"net"
)
//Data is a thin wrapper that provides metadata that may be useful when mangling bytes on the network.
stellar.c: In function 'stellar_confirmSignString':
stellar.c:82:38: error: implicit declaration of function 'split_message' [-Werror=implicit-function-declaration]
const char **str_message_lines = split_message((const uint8_t*)(msg->message), message_len, 24);
^
stellar.c:82:38: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
stellar.c: In function 'stellar_confirmManageDataOp':
stellar.c:1029:34: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
const char **str_key_lines = split_message((const uint8_t*)(msg->key), strnlen(msg->key, 64), 16);
^
stellar.c:1049:39: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]