Title: AES Key Wrap Segfault · Issue #15009 · nodejs/node · GitHub
Open Graph Title: AES Key Wrap Segfault · Issue #15009 · nodejs/node
X Title: AES Key Wrap Segfault · Issue #15009 · nodejs/node
Description: CC @thelunararmy Version: 6.11.2 Platform: Linux PCName 4.8.0-56-generic # 61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Subsystem: crypto -> ciphers -> id-aesXXX-wrap We're trying to do aes key wrappi...
Open Graph Description: CC @thelunararmy Version: 6.11.2 Platform: Linux PCName 4.8.0-56-generic # 61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Subsystem: crypto -> ciphers -> id-aesXX...
X Description: CC @thelunararmy Version: 6.11.2 Platform: Linux PCName 4.8.0-56-generic # 61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Subsystem: crypto -> ciphers -> id...
Opengraph URL: https://github.com/nodejs/node/issues/15009
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AES Key Wrap Segfault","articleBody":"CC @thelunararmy\r\n\r\n* **Version**: 6.11.2\r\n* **Platform**: Linux PCName 4.8.0-56-generic # 61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux\r\n* **Subsystem**: crypto -> ciphers -> id-aesXXX-wrap\r\n\r\nWe're trying to do aes key wrapping for our [nodejs webcrypto implementation](https://github.com/anvilresearch/webcrypto). We were having some trouble so we made the following test script (using data from [RFC3394](https://tools.ietf.org/html/rfc3394#section-4.6)):\r\n\r\n```js\r\n'use strict'\r\n\r\nconst crypto = require('crypto')\r\n\r\nlet cipherName = 'id-aes128-wrap'\r\n\r\n// Ripped from RFC3394\r\nlet kekHex = '000102030405060708090A0B0C0D0E0F' // for 256: '000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F'\r\nlet keyHex = '00112233445566778899AABBCCDDEEFF' // for 256: '00112233445566778899AABBCCDDEEFF000102030405060708090A0B0C0D0E0F'\r\nlet ivHex = 'A6A6A6A6A6A6A6A6'\r\n\r\nlet iv = Buffer.from(ivHex, 'hex')\r\nlet kek = Buffer.from(kekHex, 'hex')\r\nlet key = Buffer.from(keyHex, 'hex')\r\n\r\ntry {\r\n let cipher = crypto.createCipheriv(cipherName, kek, iv)\r\n let result = cipher.update(key)\r\n let final = cipher.final()\r\n\r\n // TODO process result\r\n\r\n console.log('RESULT', result, final)\r\n} catch (error) {\r\n console.error('ERROR', error)\r\n}\r\n```\r\n\r\nRunning this script causes node to segfault. Any ideas?","author":{"url":"https://github.com/EternalDeiwos","@type":"Person","name":"EternalDeiwos"},"datePublished":"2017-08-24T12:12:28Z","url":"https://github.com/nodejs/node/issues/15009"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b54e25f5-ac5d-c773-119e-b2ce54bec88f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2BE:552A0:2911966:36626E4:6B034821 |
| html-safe-nonce | a4d2562ac7f1ce3861ad4c2f62c7502101e8649469519a47b617958d7101e83e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkJFOjU1MkEwOjI5MTE5NjY6MzY2MjZFNDo2QjAzNDgyMSIsInZpc2l0b3JfaWQiOiI4MjI4OTIzMjU2NjIzODEwNTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1d5328ac48e0785d6f90d772387e3d37014aa52bd43bf06e45ed0ce405204e68 |
| hovercard-subject-tag | issue:252581594 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/15009/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73af9849b660047320ac5f0b79065fea97151574d763bf1829ce83a3a386cf46/nodejs/node/issues/15009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73af9849b660047320ac5f0b79065fea97151574d763bf1829ce83a3a386cf46/nodejs/node/issues/15009 |
| og:image:alt | CC @thelunararmy Version: 6.11.2 Platform: Linux PCName 4.8.0-56-generic # 61~16.04.1-Ubuntu SMP Wed Jun 14 11:58:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Subsystem: crypto -> ciphers -> id-aesXX... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EternalDeiwos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width