Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/somefn/js/hash.ts>rasSign

some functions for deno
Go to Latest
function rasSign
import { rasSign } from "https://deno.land/x/somefn@v0.24.1/js/hash.ts";

Sign data with RSA

  • only pkcs8
  • only RSASSA-PKCS1-v1_5

Parameters

key: { hash: "SHA-256" | "SHA-512"; s: string | Uint8Array; } | CryptoKey
d: string | Uint8Array

Returns

Promise<Uint8Array>