mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Update NSS to 3.32.1-RTM
This commit is contained in:
parent
f29876f120
commit
c91ef9012b
512 changed files with 83203 additions and 16839 deletions
|
|
@ -18,6 +18,8 @@
|
|||
#include "secerr.h"
|
||||
#include "hasht.h"
|
||||
|
||||
static ECPointEncoding pk11_ECGetPubkeyEncoding(const SECKEYPublicKey *pubKey);
|
||||
|
||||
static void
|
||||
pk11_EnterKeyMonitor(PK11SymKey *symKey)
|
||||
{
|
||||
|
|
@ -2005,7 +2007,7 @@ PK11_PubDerive(SECKEYPrivateKey *privKey, SECKEYPublicKey *pubKey,
|
|||
|
||||
/* old PKCS #11 spec was ambiguous on what needed to be passed,
|
||||
* try this again with and encoded public key */
|
||||
if (crv != CKR_OK) {
|
||||
if (crv != CKR_OK && pk11_ECGetPubkeyEncoding(pubKey) != ECPoint_XOnly) {
|
||||
SECItem *pubValue = SEC_ASN1EncodeItem(NULL, NULL,
|
||||
&pubKey->u.ec.publicValue,
|
||||
SEC_ASN1_GET(SEC_OctetStringTemplate));
|
||||
|
|
@ -2211,6 +2213,11 @@ pk11_PubDeriveECKeyWithKDF(
|
|||
/* old PKCS #11 spec was ambiguous on what needed to be passed,
|
||||
* try this again with an encoded public key */
|
||||
if (crv != CKR_OK) {
|
||||
/* For curves that only use X as public value and no encoding we don't
|
||||
* have to try again. (Currently only Curve25519) */
|
||||
if (pk11_ECGetPubkeyEncoding(pubKey) == ECPoint_XOnly) {
|
||||
goto loser;
|
||||
}
|
||||
SECItem *pubValue = SEC_ASN1EncodeItem(NULL, NULL,
|
||||
&pubKey->u.ec.publicValue,
|
||||
SEC_ASN1_GET(SEC_OctetStringTemplate));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue