forked from ryancdotorg/brainflayer
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcrack.h
More file actions
24 lines (19 loc) · 643 Bytes
/
crack.h
File metadata and controls
24 lines (19 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (c) 2015 Ryan Castellucci, All Rights Reserved */
#ifndef __BRAINFLAYER_CRACK_H_
#define __BRAINFLAYER_CRACK_H_
#include <openssl/sha.h>
#include <openssl/ripemd.h>
#define PWF_BUF_SZ 1024
typedef union hash160_u {
unsigned char uc[RIPEMD160_DIGEST_LENGTH];
uint32_t ul[RIPEMD160_DIGEST_LENGTH>>2];
} hash160_t;
typedef struct keydata_u {
int state;
unsigned char[PWF_BUF_SZ] password;
unsigned char[SHA256_DIGEST_LENGTH] priv;
unsigned char[RIPEMD160_DIGEST_LENGTH] uaddr;
unsigned char[RIPEMD160_DIGEST_LENGTH] caddr;
} keydata_t;
/* vim: set ts=2 sw=2 et ai si: */
#endif /* __BRAINFLAYER_CRACK_H_ */