author Martin Thomson <>
Mon, 19 Oct 2015 10:28:19 -0700
changeset 11681 3df239b2f8e890a5c7da6c55d77a4f88f6640bd8
parent 10743 9483ef9455fe7b4ede49c938d17415edad36a4f3
child 11815 d0d925b6cf323b4cd66fae401a8206bed5577575
permissions -rw-r--r--
Bug 1214390 - Fixing compilation errors on Windows, r=ekr,wtc

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef _KEYI_H_
#define _KEYI_H_

/* NSS private functions */
/* map an oid to a keytype... actually this function and it's converse
 *  are good candidates for public functions..  */
KeyType seckey_GetKeyType(SECOidTag pubKeyOid);

/* extract the 'encryption' (could be signing) and hash oids from and
 * algorithm, key and parameters (parameters is the parameters field
 * of a algorithm ID structure (SECAlgorithmID)*/
SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg,
             const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg);


#endif /* _KEYHI_H_ */