Skip to main content
Module

std/node/internal/crypto/keys.ts

Deno standard library
Go to Latest
File
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// Copyright Joyent and Node contributors. All rights reserved. MIT license.import { kKeyObject } from "./util.mjs";const kKeyType = Symbol("kKeyType");
// deno-lint-ignore no-explicit-anyexport function isKeyObject(obj: any) { return obj != null && obj[kKeyType] !== undefined;}
// deno-lint-ignore no-explicit-anyexport function isCryptoKey(obj: any) { return obj != null && obj[kKeyObject] !== undefined;}