@sphereon/ssi-sdk-ext.x509-utils
Advanced tools
Comparing version 0.24.1-unstable.138 to 0.25.0
@@ -25,4 +25,4 @@ import { Certificate } from 'pkijs'; | ||
*/ | ||
export declare const base64ToHex: (input: string, inputEncoding?: 'base64' | 'base64pad' | 'base64url' | 'base64urlpad') => string; | ||
export declare const hexToBase64: (input: number | object | string, targetEncoding?: 'base64' | 'base64pad' | 'base64url' | 'base64urlpad') => string; | ||
export declare const base64ToHex: (input: string, inputEncoding?: "base64" | "base64pad" | "base64url" | "base64urlpad") => string; | ||
export declare const hexToBase64: (input: number | object | string, targetEncoding?: "base64" | "base64pad" | "base64url" | "base64urlpad") => string; | ||
export declare const hexToPEM: (hex: string, type: KeyVisibility) => string; | ||
@@ -29,0 +29,0 @@ export declare function PEMToDer(pem: string): string; |
@@ -29,3 +29,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.derToPEM = exports.PEMToDer = exports.hexToPEM = exports.hexToBase64 = exports.base64ToHex = exports.PEMToBinary = exports.PEMToHex = exports.publicKeyHexFromPEM = exports.hexKeyFromPEMBasedJwk = exports.privateKeyHexFromPEM = exports.PEMToJwk = exports.jwkToPEM = exports.toKeyObject = exports.areCertificatesEqual = exports.pemOrDerToX509Certificate = exports.x5cToPemCertChain = exports.pemCertChainTox5c = void 0; | ||
exports.hexToPEM = exports.hexToBase64 = exports.base64ToHex = exports.PEMToHex = exports.publicKeyHexFromPEM = exports.hexKeyFromPEMBasedJwk = exports.privateKeyHexFromPEM = exports.PEMToJwk = exports.jwkToPEM = exports.toKeyObject = exports.areCertificatesEqual = exports.pemOrDerToX509Certificate = void 0; | ||
exports.pemCertChainTox5c = pemCertChainTox5c; | ||
exports.x5cToPemCertChain = x5cToPemCertChain; | ||
exports.PEMToBinary = PEMToBinary; | ||
exports.PEMToDer = PEMToDer; | ||
exports.derToPEM = derToPEM; | ||
const pkijs_1 = require("pkijs"); | ||
@@ -60,3 +65,2 @@ const u8a = __importStar(require("uint8arrays")); | ||
} | ||
exports.pemCertChainTox5c = pemCertChainTox5c; | ||
function x5cToPemCertChain(x5c, maxDepth) { | ||
@@ -73,3 +77,2 @@ if (!maxDepth) { | ||
} | ||
exports.x5cToPemCertChain = x5cToPemCertChain; | ||
const pemOrDerToX509Certificate = (cert) => { | ||
@@ -159,3 +162,2 @@ if (typeof cert !== 'string') { | ||
} | ||
exports.PEMToBinary = PEMToBinary; | ||
/** | ||
@@ -198,3 +200,2 @@ * Converts a base64 encoded string to hex string, removing any non-base64 characters, including newlines | ||
} | ||
exports.PEMToDer = PEMToDer; | ||
function derToPEM(cert, headerKey) { | ||
@@ -212,3 +213,2 @@ const key = headerKey !== null && headerKey !== void 0 ? headerKey : 'CERTIFICATE'; | ||
} | ||
exports.derToPEM = derToPEM; | ||
//# sourceMappingURL=x509-utils.js.map |
{ | ||
"name": "@sphereon/ssi-sdk-ext.x509-utils", | ||
"description": "Sphereon SSI-SDK plugin functions for X.509 Certificate handling.", | ||
"version": "0.24.1-unstable.138+95391a5", | ||
"version": "0.25.0", | ||
"source": "src/index.ts", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "95391a52ba7c17fb9b7235cb3822bb93df3ab8d4" | ||
"gitHead": "ca2cc4d0d45bc7e0b25dccc0068420b33bbc4c47" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
0
107910