This is documentation for the next version of K6. For the latest stable release, go to the latest version.
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']
);
}