Renamed SECKEY_ECParams2KeySize as SECKEY_ECParamsToKeySize. Do not export

this function from the nss3 shared library.
Modified Files: seckey.c pk11skey.c nss.def
This commit is contained in:
wchang0222%aol.com 2003-12-22 23:36:40 +00:00
Родитель 770fccd41b
Коммит 756f7aff67
3 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -1113,7 +1113,7 @@ CERT_KMIDPublicKey(CERTCertificate *cert)
}
int
SECKEY_ECParams2KeySize(SECItem *encodedParams)
SECKEY_ECParamsToKeySize(SECItem *encodedParams)
{
SECOidTag tag;
SECItem oid = { siBuffer, NULL, 0};
@ -1268,7 +1268,7 @@ SECKEY_PublicKeyStrength(SECKEYPublicKey *pubk)
/* Get the key size in bits and adjust */
if (pubk->u.ec.size == 0) {
pubk->u.ec.size =
SECKEY_ECParams2KeySize(&pubk->u.ec.DEREncodedParams);
SECKEY_ECParamsToKeySize(&pubk->u.ec.DEREncodedParams);
}
return (pubk->u.ec.size + 7)/8;
#endif /* NSS_ENABLE_ECC */
@ -1292,7 +1292,7 @@ SECKEY_PublicKeyStrengthInBits(SECKEYPublicKey *pubk)
case ecKey:
if (pubk->u.ec.size == 0) {
pubk->u.ec.size =
SECKEY_ECParams2KeySize(&pubk->u.ec.DEREncodedParams);
SECKEY_ECParamsToKeySize(&pubk->u.ec.DEREncodedParams);
}
return pubk->u.ec.size;
#endif /* NSS_ENABLE_ECC */

Просмотреть файл

@ -775,7 +775,6 @@ PK11_PubDeriveExtended;
PK11_PubUnwrapSymKeyWithFlagsPerm;
PK11_UnwrapSymKeyWithFlagsPerm;
SECITEM_ArenaDupItem;
SECKEY_ECParams2KeySize;
SECMOD_GetDBModuleList;
SECMOD_GetDeadModuleList;
SEC_ASN1DecoderAbort;

Просмотреть файл

@ -73,7 +73,7 @@ static PRBool pk11_FindAttrInTemplate(CK_ATTRIBUTE *attr,
unsigned int numAttrs, CK_ATTRIBUTE_TYPE target);
#ifdef NSS_ENABLE_ECC
extern int SECKEY_ECParams2KeySize(SECItem *params);
extern int SECKEY_ECParamsToKeySize(SECItem *params);
#endif /* NSS_ENABLE_ECC */
/*
@ -1281,7 +1281,7 @@ PK11_SignatureLen(SECKEYPrivateKey *key)
if (theTemplate.pValue != NULL) {
params.len = theTemplate.ulValueLen;
params.data = (unsigned char *) theTemplate.pValue;
length = SECKEY_ECParams2KeySize(&params);
length = SECKEY_ECParamsToKeySize(&params);
PORT_Free(theTemplate.pValue);
}
length = ((length + 7)/8) * 2;