PSS Signature
import * as crypto from 'crypto';
import * as buffer from 'buffer';
let rsakey = crypto.generateKey(1024);
let data = buffer.from("huawei");
let sign = crypto.createSign(crypto.Hashs.SHA256);
let signed = sign.signByPSS(rsakey.privateKey, data);
console.log(signed.toString(buffer.Encoding.Base64));
Signature API