Files
yggm/libs/keymanip.cuh
rcxpony ab6061f5bf owo
2025-08-21 13:05:05 +05:00

18 lines
532 B
Plaintext

#ifndef __KEYMANIP_CUH
#define __KEYMANIP_CUH
struct ds64 {
char data[65];
};
struct ds46 {
char data[46];
};
using Addr16 = unsigned char[16];
using Key32 = unsigned char[32];
struct KeysBox32 {
Key32 PublicKey, PrivateKey;
};
__device__ ds64 ktos(const unsigned char* key) noexcept;
__device__ ds46 getAddr(const Addr16 rawAddr) noexcept;
__device__ void getRawAddress(int lErase, Key32& InvertedPublicKey, Addr16& rawAddr) noexcept;
__device__ void invertKey(const unsigned char* key, unsigned char* inverted);
#endif