summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto/util.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-04-06 18:39:25 +0530
committerGitHub <noreply@github.com>2023-04-06 18:39:25 +0530
commit3b62a58818f83e32fc2644f44e75a5c8465b2003 (patch)
treecf8f0a6d7995fa0c632247f2679295b8ceea4460 /ext/node/polyfills/internal/crypto/util.ts
parent339165bd9565806374fa842dfc217dcc5ebabac5 (diff)
fix(ext/node): add symmetric keygen (#18609)
Towards #18455
Diffstat (limited to 'ext/node/polyfills/internal/crypto/util.ts')
-rw-r--r--ext/node/polyfills/internal/crypto/util.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/util.ts b/ext/node/polyfills/internal/crypto/util.ts
index 317c1d503..ccb772631 100644
--- a/ext/node/polyfills/internal/crypto/util.ts
+++ b/ext/node/polyfills/internal/crypto/util.ts
@@ -133,7 +133,9 @@ export function setEngine(_engine: string, _flags: typeof constants) {
notImplemented("crypto.setEngine");
}
-export { kHandle, kKeyObject };
+const kAesKeyLengths = [128, 192, 256];
+
+export { kAesKeyLengths, kHandle, kKeyObject };
export default {
getDefaultEncoding,
@@ -147,4 +149,5 @@ export default {
toBuf,
kHandle,
kKeyObject,
+ kAesKeyLengths,
};