I hereby claim:
- I am xenomancer on github.
- I am xenomancer (https://keybase.io/xenomancer) on keybase.
- I have a public key whose fingerprint is 8198 CB90 329E D119 FF3A C748 E837 208F E817 DA7D
To claim this, I am signing this object:
#pragma once | |
#include <stdlib> | |
#include <vector> | |
#include <string> | |
#define SHA2_SHFR(x, n) (x >> n) | |
#define SHA2_ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) | |
#define SHA2_ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n))) | |
#define SHA2_CH(x, y, z) ((x & y) ^ (~x & z)) | |
#define SHA2_MAJ(x, y, z) ((x & y) ^ (x & z) ^ (y & z)) |
// Copyright © Craig D. Mansfield, 2022, no rights reserved. | |
// This software is free and open source with no limitations, restrictions, or liability. | |
// Use it at your own risk. | |
// If you like this software then you can buy me a beer if we meet in the future. | |
#pragma once | |
#include <cmath> | |
#include <complex> | |
using namespace std; |
#include <stdint.h> | |
// key schedule constant | |
#define delta 0x9e3779b9 | |
void encrypt (uint32_t n, uint32_t* v, uint32_t* k) { | |
// setup | |
uint32_t v0 = v[0]; | |
uint32_t v1 = v[1]; | |
uint32_t sum = 0; |
### Keybase proof | |
I hereby claim: | |
* I am xenomancer on github. | |
* I am craigbob99 (https://keybase.io/craigbob99) on keybase. | |
* I have a public key ASAEVgt8Un2dV2HysY8ffHSQUCDBTeQuuDdLvItS_crTggo | |
To claim this, I am signing this object: |
#include <stdint.h> | |
// key schedule constant | |
#define delta 0x9e3779b9 | |
void encrypt (uint32_t* v, uint32_t* k) { | |
// setup | |
uint32_t v0 = v[0]; | |
uint32_t v1 = v[1]; | |
uint32_t sum = 0; |
// Copyright Craig D. Mansfield 2021, zero rights reserved. | |
// TO the extent that it is possible under law, this is released to the public domain. | |
// Do with this as you please. Consider this beerware. | |
// If you like what I wrote and we ever meet up, you can buy me a beer. | |
// This is a header only c++ implementation. | |
// Assuming compiler uses c++14 spec or later. | |
#pragma once | |
#include <stdlib> |
I hereby claim:
To claim this, I am signing this object: