yggm/libs/keymanip.cuh

19 lines
555 B
Plaintext
Raw Normal View History

2025-03-15 01:38:00 +05:00
#ifndef __KEYMANIP_CUH
#define __KEYMANIP_CUH
struct ds64 {
char data[65];
};
struct ds46 {
char data[46];
};
using Address = unsigned char[16];
using Key32 = unsigned char[32];
struct KeysBox32 {
Key32 PublicKey;
Key32 PrivateKey;
};
__device__ ds64 ktos(const unsigned char* key) noexcept;
__device__ ds46 getAddr(const unsigned char rawAddr[16]) noexcept;
__device__ void getRawAddress(int lErase, Key32& InvertedPublicKey, Address& rawAddr) noexcept;
__device__ void invertKey(const unsigned char* key, unsigned char* inverted);
#endif