Lines Matching refs:isPublic
148 function parseKeyType(typeStr, required, keyType, isPublic, optionName) { argument
157 } else if (typeStr === 'spki' && isPublic !== false) {
159 } else if (typeStr === 'pkcs8' && isPublic !== true) {
161 } else if (typeStr === 'sec1' && isPublic !== true) {
176 function parseKeyFormatAndType(enc, keyType, isPublic, objName) { argument
187 isPublic,
197 function parseKeyEncoding(enc, keyType, isPublic, objName) { argument
206 } = parseKeyFormatAndType(enc, keyType, isPublic, objName);
209 if (isPublic !== true) {
295 const isPublic =
297 return { data, ...parseKeyEncoding(key, undefined, isPublic) };