node-opcua-crypto 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.fossa.yml +18 -18
  2. package/.github/FUNDING.yml +12 -12
  3. package/.github/workflows/main.yml +106 -106
  4. package/.prettierrc.js +6 -6
  5. package/LICENSE +23 -23
  6. package/README.md +14 -14
  7. package/dist/source/asn1.d.ts +73 -73
  8. package/dist/source/asn1.js +359 -359
  9. package/dist/source/buffer_utils.d.ts +6 -6
  10. package/dist/source/buffer_utils.js +21 -21
  11. package/dist/source/common.d.ts +14 -14
  12. package/dist/source/common.js +2 -2
  13. package/dist/source/crypto_explore_certificate.d.ts +107 -107
  14. package/dist/source/crypto_explore_certificate.js +601 -601
  15. package/dist/source/crypto_utils.d.ts +76 -76
  16. package/dist/source/crypto_utils.js +329 -329
  17. package/dist/source/crypto_utils.js.map +1 -1
  18. package/dist/source/derived_keys.d.ts +72 -72
  19. package/dist/source/derived_keys.js +248 -248
  20. package/dist/source/explore_certificate.d.ts +30 -30
  21. package/dist/source/explore_certificate.js +43 -43
  22. package/dist/source/explore_certificate_revocation_list.d.ts +28 -28
  23. package/dist/source/explore_certificate_revocation_list.js +69 -69
  24. package/dist/source/explore_certificate_signing_request.d.ts +13 -13
  25. package/dist/source/explore_certificate_signing_request.js +44 -44
  26. package/dist/source/explore_private_key.d.ts +29 -29
  27. package/dist/source/explore_private_key.js +97 -97
  28. package/dist/source/index.d.ts +13 -13
  29. package/dist/source/index.js +29 -29
  30. package/dist/source/oid_map.d.ts +7 -7
  31. package/dist/source/oid_map.js +303 -303
  32. package/dist/source/public_private_match.d.ts +3 -3
  33. package/dist/source/public_private_match.js +36 -36
  34. package/dist/source/verify_certificate_signature.d.ts +10 -10
  35. package/dist/source/verify_certificate_signature.js +101 -101
  36. package/dist/source_nodejs/index.d.ts +3 -3
  37. package/dist/source_nodejs/index.js +19 -19
  38. package/dist/source_nodejs/read.d.ts +23 -23
  39. package/dist/source_nodejs/read.js +106 -106
  40. package/dist/source_nodejs/read_certificate_revocation_list.d.ts +2 -2
  41. package/dist/source_nodejs/read_certificate_revocation_list.js +27 -27
  42. package/dist/source_nodejs/read_certificate_signing_request.d.ts +3 -3
  43. package/dist/source_nodejs/read_certificate_signing_request.js +27 -27
  44. package/index.d.ts +2 -2
  45. package/index.js +4 -4
  46. package/index_web.js +3 -3
  47. package/package.json +9 -9
  48. package/source/asn1.ts +404 -404
  49. package/source/buffer_utils.ts +18 -18
  50. package/source/crypto_explore_certificate.ts +764 -764
  51. package/source/crypto_utils.ts +1 -1
  52. package/source/derived_keys.ts +287 -287
  53. package/source/explore_certificate.ts +66 -66
  54. package/source/explore_certificate_revocation_list.ts +122 -122
  55. package/source/explore_certificate_signing_request.ts +58 -58
  56. package/source/index.ts +13 -13
  57. package/source/oid_map.ts +310 -310
  58. package/source/verify_certificate_signature.ts +105 -105
  59. package/source_nodejs/index.ts +2 -2
  60. package/source_nodejs/read_certificate_revocation_list.ts +14 -14
  61. package/source_nodejs/read_certificate_signing_request.ts +17 -17
  62. package/test_certificate.ts +34 -34
  63. package/tsconfig.json +18 -18
  64. package/tslint.json +34 -34
  65. package/dist/source/certificate_matches_private_key.d.ts +0 -2
  66. package/dist/source/certificate_matches_private_key.js +0 -22
  67. package/dist/source/certificate_matches_private_key.js.map +0 -1
@@ -1,18 +1,18 @@
1
- //
2
- // note: new Buffer(size)# is deprecated since: v6.0. and is replaced with Buffer.allocUnsafe
3
- // to ensure backward compatibility we have to replace
4
- // new Buffer(size) with createFastUninitializedBuffer(size)
5
- //
6
- // Buffer.alloc and Buffer.allocUnsafe have been introduced in nodejs 5.1.0
7
- // in node 0.11 new Buffer
8
- //
9
- /**
10
- * @internal
11
- * @private
12
- */
13
- export const createFastUninitializedBuffer = Buffer.allocUnsafe
14
- ? Buffer.allocUnsafe
15
- : (size: number): Buffer => {
16
- // istanbul ignore next
17
- return new Buffer(size);
18
- };
1
+ //
2
+ // note: new Buffer(size)# is deprecated since: v6.0. and is replaced with Buffer.allocUnsafe
3
+ // to ensure backward compatibility we have to replace
4
+ // new Buffer(size) with createFastUninitializedBuffer(size)
5
+ //
6
+ // Buffer.alloc and Buffer.allocUnsafe have been introduced in nodejs 5.1.0
7
+ // in node 0.11 new Buffer
8
+ //
9
+ /**
10
+ * @internal
11
+ * @private
12
+ */
13
+ export const createFastUninitializedBuffer = Buffer.allocUnsafe
14
+ ? Buffer.allocUnsafe
15
+ : (size: number): Buffer => {
16
+ // istanbul ignore next
17
+ return new Buffer(size);
18
+ };