RSAHashedKeyGenParams
The RSAHashedKeyGenParams
object represents the object that should be passed as the algorithm parameter into the generateKey operation when generating an RSA key pair.
Properties
Example
import { crypto } from 'k6/experimental/webcrypto';
export default async function () {
const keyPair = await crypto.subtle.generateKey(
{
name: 'RSA-PSS',
modulusLength: 2048,
publicExponent: new Uint8Array([1, 0, 1]),
hash: { name: 'SHA-256' },
},
true,
['sign', 'verify']
);
}