-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharm64le.h
73 lines (65 loc) · 1.76 KB
/
arm64le.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* This file is part of John the Ripper password cracker,
* Copyright (c) 2013,2019 by Solar Designer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* There's ABSOLUTELY NO WARRANTY, express or implied.
*/
/*
* Architecture specific parameters for 64-bit ARM in little-endian mode.
*/
#ifndef _JOHN_ARCH_H
#define _JOHN_ARCH_H
#define ARCH_WORD long
#define ARCH_SIZE 8
#define ARCH_BITS 64
#define ARCH_BITS_LOG 6
#define ARCH_BITS_STR "64"
#define ARCH_LITTLE_ENDIAN 1
#define ARCH_INT_GT_32 0
#define ARCH_ALLOWS_UNALIGNED 0
#define ARCH_INDEX(x) ((unsigned int)(unsigned char)(x))
#define CPU_DETECT 0
#define DES_ASM 0
#define DES_128K 0
#define DES_X2 0
#define DES_MASK 1
#define DES_SCALE 1
#define DES_EXTB 0
#define DES_COPY 0
#define DES_BS_ASM 0
/*
* This file is only for AArch64, but we check for __aarch64__ explicitly to
* ensure we avoid any potential discrepancies between the settings here and
* the checks for __aarch64__ in our other source files.
*/
#ifdef __aarch64__
/*
* AArch64 implies we have Advanced SIMD.
*
* Give native vsel() a try with DES_BS=3, even though the timings are often
* such that it might be better to avoid its use, and DES_BS=1 might be better.
* This varies between systems, and we can't detect what's optimal from here.
*/
#define DES_BS 3
#if 1
#define DES_BS_VECTOR 2
#define DES_BS_ALGORITHM_NAME "DES 128/128 ASIMD"
#else
#define DES_BS_VECTOR 1
#define DES_BS_ALGORITHM_NAME "DES 64/64 ASIMD"
#endif
#else
#define DES_BS 1
#define DES_BS_VECTOR 0
#endif
#define DES_BS_EXPAND 1
#define MD5_ASM 0
#define MD5_X2 1
#define MD5_IMM 1
#define BF_ASM 0
#define BF_SCALE 0
#define BF_X2 1
#endif