michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _KEYI_H_ michael@0: #define _KEYI_H_ michael@0: michael@0: michael@0: SEC_BEGIN_PROTOS michael@0: /* NSS private functions */ michael@0: /* map an oid to a keytype... actually this function and it's converse michael@0: * are good candidates for public functions.. */ michael@0: KeyType seckey_GetKeyType(SECOidTag pubKeyOid); michael@0: michael@0: /* extract the 'encryption' (could be signing) and hash oids from and michael@0: * algorithm, key and parameters (parameters is the parameters field michael@0: * of a algorithm ID structure (SECAlgorithmID)*/ michael@0: SECStatus sec_DecodeSigAlg(const SECKEYPublicKey *key, SECOidTag sigAlg, michael@0: const SECItem *param, SECOidTag *encalg, SECOidTag *hashalg); michael@0: michael@0: SEC_END_PROTOS michael@0: michael@0: #endif /* _KEYHI_H_ */