OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
355 stars 227 forks source link

Remove dependency to SecurityToken in CryptoProvider #166

Closed bjakke closed 5 years ago

bjakke commented 6 years ago

CryptoProvider methods de/encryptSymm, sign/verifySymm have dependency to SecurityToken (which is part of the tcp impls). Should be refactored to only rely on SecurityPolicy (+extra needed parameters from the token). This way CryptoProvider can be used to do those operations outside of tcp (e.g. for UADP defined in 1.04). Additionally inputOffset and inputLength should be added where missing/possible to cover future uses.