Title: TypeScript wrong WebCrypto Algorithm params · Issue #23057 · microsoft/TypeScript · GitHub
Open Graph Title: TypeScript wrong WebCrypto Algorithm params · Issue #23057 · microsoft/TypeScript
X Title: TypeScript wrong WebCrypto Algorithm params · Issue #23057 · microsoft/TypeScript
Description: TypeScript Version: 2.8.1 Search Terms: WebCrypto, Algorithm Problem iv is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for it The same problem for another algorithms like AesCbcParams, AesCtr...
Open Graph Description: TypeScript Version: 2.8.1 Search Terms: WebCrypto, Algorithm Problem iv is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for it The same problem for anot...
X Description: TypeScript Version: 2.8.1 Search Terms: WebCrypto, Algorithm Problem iv is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for it The same problem for anot...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/23057
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript wrong WebCrypto Algorithm params ","articleBody":"**TypeScript Version:** 2.8.1\r\n\r\n**Search Terms:** \r\nWebCrypto, Algorithm\r\n\r\n**Problem**\r\n`iv` is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for it\r\nThe same problem for another algorithms like AesCbcParams, AesCtrParams, etc.\r\n\r\nWebCrypto API https://www.w3.org/TR/WebCryptoAPI/#aes-gcm-params\r\n```\r\ndictionary AesGcmParams : Algorithm {\r\n // The initialization vector to use. May be up to 2^64-1 bytes long.\r\n required BufferSource iv;\r\n // The additional authentication data to include.\r\n BufferSource additionalData;\r\n // The desired length of the authentication tag. May be 0 - 128.\r\n [EnforceRange] octet tagLength;\r\n};\r\n```\r\n\r\nTypeScript https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L51-L55\r\n```ts\r\ninterface AesGcmParams extends Algorithm {\r\n additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\r\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\r\n tagLength?: number;\r\n}\r\n```","author":{"url":"https://github.com/microshine","@type":"Person","name":"microshine"},"datePublished":"2018-04-02T09:43:18Z","url":"https://github.com/microsoft/TypeScript/issues/23057"}
| 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:c3ca3491-f7cc-55c6-3275-ef25d0607a64 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E216:14700E:B30931:E4D10B:6B00F70F |
| html-safe-nonce | f9bc3dc077bf5d57770b915372df092b8d657e18e9339547ddd5aba9b4ad8de6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjE2OjE0NzAwRTpCMzA5MzE6RTREMTBCOjZCMDBGNzBGIiwidmlzaXRvcl9pZCI6IjQ2MzUyNTYwNzA1OTg2MjA5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 72150b6b94c5cd96a69b3f6a1a3b5aea36d0699051301bd4bda3e71e6a0dcc68 |
| hovercard-subject-tag | issue:310442663 |
| 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/microsoft/TypeScript/23057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d13070e5a021eedfe9207732189da3b6421b15ec95ef9826617831d4d9b03a0/microsoft/TypeScript/issues/23057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d13070e5a021eedfe9207732189da3b6421b15ec95ef9826617831d4d9b03a0/microsoft/TypeScript/issues/23057 |
| og:image:alt | TypeScript Version: 2.8.1 Search Terms: WebCrypto, Algorithm Problem iv is required param for AesGcmParams in WebCrypto API, but TypeScript allows to use null value for it The same problem for anot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | microshine |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width