cpp2python icon indicating copy to clipboard operation
cpp2python copied to clipboard

"Nice convert, working so good"

Open ghost opened this issue 4 years ago • 0 comments

.cpp

int data[256];
int hash[32];
int buf[32+16];
int * midstate;
int * block_tail;

typedef struct
{
    int data[64];
    int datalen;
    int bitlen;
    int state[8];
} SHA256_CTX;

SHA256_CTX ctx;

.cpp.py

int data[256]
int hash[32]
int buf[32+16]
int * midstate
int * block_tail

typedef struct
    int data[64]
    int datalen
    int bitlen
    int state[8]
} SHA256_CTX

ghost avatar Jul 26 '21 22:07 ghost