openpgpjs/test/fuzz/createMessageBinary.js
hulkoba 4c0a324980
test(fuzz): turn everything into esm
since coverage does not work as expected at all, we can use esm. So if jazzer at some point, add esm support for esm, we can easily add it
2023-12-13 15:09:46 +01:00

10 lines
190 B
JavaScript

import openpgp from '../initOpenpgp.js';
/**
* @param { Buffer } inputData
*/
export function fuzz (inputData) {
return openpgp.createMessage({ binary: new Uint8Array(inputData) });
}