mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
Update NSS to 3.48 while keeping vc2013 hackfix and no-sslkeylogfile intact.
This commit is contained in:
parent
0b9855b841
commit
171849c8e5
351 changed files with 115185 additions and 57946 deletions
|
|
@ -17,6 +17,10 @@
|
|||
#include "rijndael.h"
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_NEON) || defined(__ARM_NEON__)
|
||||
#include <arm_neon.h>
|
||||
#endif
|
||||
|
||||
SECStatus
|
||||
CTR_InitContext(CTRContext *ctr, void *context, freeblCipherFunc cipher,
|
||||
const unsigned char *param)
|
||||
|
|
@ -114,6 +118,15 @@ ctr_xor(unsigned char *target, const unsigned char *x,
|
|||
const unsigned char *y, unsigned int count)
|
||||
{
|
||||
unsigned int i;
|
||||
#if defined(__ARM_NEON) || defined(__ARM_NEON__)
|
||||
while (count >= 16) {
|
||||
vst1q_u8(target, veorq_u8(vld1q_u8(x), vld1q_u8(y)));
|
||||
target += 16;
|
||||
x += 16;
|
||||
y += 16;
|
||||
count -= 16;
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < count; i++) {
|
||||
*target++ = *x++ ^ *y++;
|
||||
}
|
||||
|
|
@ -128,6 +141,12 @@ CTR_Update(CTRContext *ctr, unsigned char *outbuf,
|
|||
unsigned int tmp;
|
||||
SECStatus rv;
|
||||
|
||||
// Limit block count to 2^counterBits - 2
|
||||
if (ctr->counterBits < (sizeof(unsigned int) * 8) &&
|
||||
inlen > ((1 << ctr->counterBits) - 2) * AES_BLOCK_SIZE) {
|
||||
PORT_SetError(SEC_ERROR_INPUT_LEN);
|
||||
return SECFailure;
|
||||
}
|
||||
if (maxout < inlen) {
|
||||
*outlen = inlen;
|
||||
PORT_SetError(SEC_ERROR_OUTPUT_LEN);
|
||||
|
|
@ -199,6 +218,12 @@ CTR_Update_HW_AES(CTRContext *ctr, unsigned char *outbuf,
|
|||
unsigned int tmp;
|
||||
SECStatus rv;
|
||||
|
||||
// Limit block count to 2^counterBits - 2
|
||||
if (ctr->counterBits < (sizeof(unsigned int) * 8) &&
|
||||
inlen > ((1 << ctr->counterBits) - 2) * AES_BLOCK_SIZE) {
|
||||
PORT_SetError(SEC_ERROR_INPUT_LEN);
|
||||
return SECFailure;
|
||||
}
|
||||
if (maxout < inlen) {
|
||||
*outlen = inlen;
|
||||
PORT_SetError(SEC_ERROR_OUTPUT_LEN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue