mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -10,13 +10,19 @@
|
|||
|
||||
#define SHA1_INPUT_LEN 64
|
||||
|
||||
#if defined(IS_64) && !defined(__sparc)
|
||||
#if defined(IS_64) && !defined(__sparc) && !defined(__aarch64__)
|
||||
typedef PRUint64 SHA_HW_t;
|
||||
#define SHA1_USING_64_BIT 1
|
||||
#else
|
||||
typedef PRUint32 SHA_HW_t;
|
||||
#endif
|
||||
|
||||
struct SHA1ContextStr;
|
||||
|
||||
typedef void (*sha1_compress_t)(struct SHA1ContextStr *);
|
||||
typedef void (*sha1_update_t)(struct SHA1ContextStr *, const unsigned char *,
|
||||
unsigned int);
|
||||
|
||||
struct SHA1ContextStr {
|
||||
union {
|
||||
PRUint32 w[16]; /* input buffer */
|
||||
|
|
@ -24,6 +30,8 @@ struct SHA1ContextStr {
|
|||
} u;
|
||||
PRUint64 size; /* count of hashed bytes. */
|
||||
SHA_HW_t H[22]; /* 5 state variables, 16 tmp values, 1 extra */
|
||||
sha1_compress_t compress;
|
||||
sha1_update_t update;
|
||||
};
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
|
@ -135,7 +143,7 @@ swap4b(PRUint32 value)
|
|||
|
||||
#define SHA_BYTESWAP(x) x = SHA_HTONL(x)
|
||||
|
||||
#define SHA_STORE(n) ((PRUint32*)hashout)[n] = SHA_HTONL(ctx->H[n])
|
||||
#define SHA_STORE(n) ((PRUint32 *)hashout)[n] = SHA_HTONL(ctx->H[n])
|
||||
#if defined(HAVE_UNALIGNED_ACCESS)
|
||||
#define SHA_STORE_RESULT \
|
||||
SHA_STORE(0); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue