mirdef.hio

来自「比较新的功能强大的rsa算法源代码,方便使用.」· HIO 代码 · 共 30 行

HIO
30
字号
/* 
 *   MIRACL compiler/hardware definitions - mirdef.h
 *   This version suitable for use with most 32-bit computers
 *   e.g. 80386+ PC, VAX, ARM etc. Assembly language versions of muldiv,
 *   muldvm, muldvd and muldvd2 will be necessary. See mrmuldv.any 
 *
 *   NOTE: This is for Integer-Only builds of the MIRACL library
 *   This will be slightly faster if flash arithmetic is not needed.
 *
 *   Also suitable for DJGPP GNU C Compiler
 *   ... but change __int64 to long long
 *   Copyright (c) 1988-1997 Shamus Software Ltd.
 */

#define MIRACL 32
#define MR_LITTLE_ENDIAN    /* This may need to be changed        */
#define mr_utype int
                            /* the underlying type is usually int *
                             * but see mrmuldv.any                */
#define mr_unsign32 unsigned int
                            /* 32 bit unsigned type               */
#define MR_IBITS  32        /* Bits in int  */
#define MR_LBITS  32        /* Bits in long */

#define mr_dltype __int64   /* ... or long long */
#define mr_unsign64 unsigned __int64

#define MAXBASE ((mr_small)1<<(MIRACL-1))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?