Skip to content

Commit

Permalink
Backed out changeset 94ca8dafa006 (bug 1720464) for Browser-chrome fa…
Browse files Browse the repository at this point in the history
…ilures in browser/base/content/test/performance/browser_startup_mainthreadio.js. UPGRADE_NSS_RELEASE CLOSED TREE
  • Loading branch information
dgluca committed Jul 22, 2021
1 parent 91127ac commit df0ba03
Show file tree
Hide file tree
Showing 27 changed files with 99 additions and 518 deletions.
2 changes: 1 addition & 1 deletion security/nss/TAG-INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8f41147c2192
b1eac8c86e99
1 change: 0 additions & 1 deletion security/nss/cmd/manifest.mn
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ NSS_SRCDIRS = \
pwdecrypt \
rsaperf \
rsapoptst \
sdbthreadtst \
sdrtest \
selfserv \
signtool \
Expand Down
48 changes: 0 additions & 48 deletions security/nss/cmd/sdbthreadtst/Makefile

This file was deleted.

22 changes: 0 additions & 22 deletions security/nss/cmd/sdbthreadtst/manifest.mn

This file was deleted.

213 changes: 0 additions & 213 deletions security/nss/cmd/sdbthreadtst/sdbthreadtst.c

This file was deleted.

29 changes: 0 additions & 29 deletions security/nss/cmd/sdbthreadtst/sdbthreadtst.gyp

This file was deleted.

1 change: 0 additions & 1 deletion security/nss/coreconf/coreconf.dep
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
*/

#error "Do not include this header file."

4 changes: 0 additions & 4 deletions security/nss/doc/rst/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ Network Security Services
introduction_to_network_security_services/index.rst
More documentation <more_docs>


.. warning::
This NSS documentation was just imported from our legacy MDN repository. It currently is very deprecated and likely incorrect or broken in many places.

`Documentation <#documentation>`__
----------------------------------

Expand Down
4 changes: 2 additions & 2 deletions security/nss/gtests/softoken_gtest/softoken_dh_vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -2872,7 +2872,7 @@ static const DhTestVector DH_TEST_VECTORS[] = {
{siBuffer, (unsigned char *)g2, sizeof(g2)},
{siBuffer, NULL, 0},
{siBuffer, NULL, 0},
SAFE_PRIME,
IKE_APPROVED,
CLASS_1536},
{"IKE 2048",
{siBuffer, (unsigned char *)prime_ike_2048, sizeof(prime_ike_2048)},
Expand Down Expand Up @@ -2952,7 +2952,7 @@ static const DhTestVector DH_TEST_VECTORS[] = {
{siBuffer, (unsigned char *)sub2_prime_ike_1536,
sizeof(sub2_prime_ike_1536)},
{siBuffer, NULL, 0},
SAFE_PRIME,
IKE_APPROVED,
CLASS_1536},
{"IKE 2048 with subprime",
{siBuffer, (unsigned char *)prime_ike_2048, sizeof(prime_ike_2048)},
Expand Down
2 changes: 1 addition & 1 deletion security/nss/lib/pk11wrap/pk11cxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ pk11_CreateNewContextInSlot(CK_MECHANISM_TYPE type,
* of the connection.*/
context->fortezzaHack = PR_FALSE;
if (type == CKM_SKIPJACK_CBC64) {
if (symKey && (symKey->origin == PK11_OriginFortezzaHack)) {
if (symKey->origin == PK11_OriginFortezzaHack) {
context->fortezzaHack = PR_TRUE;
}
}
Expand Down
5 changes: 2 additions & 3 deletions security/nss/lib/pk11wrap/pk11hpke.c
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,8 @@ PK11_HPKE_Seal(HpkeContext *cx, const SECItem *aad, const SECItem *pt,
unsigned char tagBuf[HASH_LENGTH_MAX];
size_t tagLen;
unsigned int fixedBits;
PORT_Assert(cx->baseNonce->len == sizeof(ivOut));
PORT_Memcpy(ivOut, cx->baseNonce->data, cx->baseNonce->len);

/* aad may be NULL, PT may be zero-length but not NULL. */
if (!cx || !cx->aeadContext ||
Expand All @@ -1174,9 +1176,6 @@ PK11_HPKE_Seal(HpkeContext *cx, const SECItem *aad, const SECItem *pt,
return SECFailure;
}

PORT_Assert(cx->baseNonce->len == sizeof(ivOut));
PORT_Memcpy(ivOut, cx->baseNonce->data, cx->baseNonce->len);

tagLen = cx->aeadParams->tagLen;
maxOut = pt->len + tagLen;
fixedBits = (cx->baseNonce->len - 8) * 8;
Expand Down
Loading

0 comments on commit df0ba03

Please sign in to comment.