1b6f66
--- ./lib/cryptohi/seckey.c.1238290	2015-11-08 21:12:59.000000000 -0800
1b6f66
+++ ./lib/cryptohi/seckey.c	2016-02-16 10:07:20.956930721 -0800
1b6f66
@@ -993,20 +993,20 @@
8b133b
     }
8b133b
 
8b133b
     /* interpret modulus length as key strength */
8b133b
     switch (pubk->keyType) {
8b133b
     case rsaKey:
8b133b
         bitSize = SECKEY_BigIntegerBitLength(&pubk->u.rsa.modulus);
8b133b
         break;
8b133b
     case dsaKey:
8b133b
-        bitSize = SECKEY_BigIntegerBitLength(&pubk->u.dsa.publicValue);
8b133b
+        bitSize = SECKEY_BigIntegerBitLength(&pubk->u.dsa.params.prime);
8b133b
         break;
8b133b
     case dhKey:
1b6f66
-        bitSize = SECKEY_BigIntegerBitLength(&pubk->u.dh.publicValue);
1b6f66
+        bitSize = SECKEY_BigIntegerBitLength(&pubk->u.dh.prime);
8b133b
         break;
8b133b
     case ecKey:
8b133b
         bitSize = SECKEY_ECParamsToKeySize(&pubk->u.ec.DEREncodedParams);
8b133b
         break;
8b133b
     default:
1b6f66
         PORT_SetError(SEC_ERROR_INVALID_KEY);
1b6f66
         break;
1b6f66
     }