]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): use Node.js crypto for EC curve derivation
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 20:57:22 +0000 (22:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 20:57:22 +0000 (22:57 +0200)
commit05820aae196f01dcee2cdf82dbbbcdde69841d4a
tree0c46b8f22e4c881103e6f30f4bba309432aa5d21
parent7b072f9dc1f4095335c4aeecacb5a40c023d1d2d
refactor(ocpp): use Node.js crypto for EC curve derivation

Replace manual ASN.1 OID hex substring matching with
crypto.createPublicKey which parses the DER structure via OpenSSL,
validates the EC point, and returns the named curve directly. Map
Node.js curve names (e.g. prime256v1) to SigningMethodEnumType.
src/charging-station/ocpp/OCPPSignedMeterValueUtils.ts
tests/charging-station/ocpp/OCPPSignedMeterValueUtils.test.ts