Files
lolympus-agent/dakao/dist/crypto/rsa.d.ts
T
2026-02-02 19:14:07 -08:00

10 lines
422 B
TypeScript

/**
* RSA-OAEP encrypt with SHA1 (matches KakaoTalk's RSA/NONE/OAEPWithSHA1AndMGF1Padding).
* Used during handshake to send the AES session key to the server.
*/
export declare function rsaEncryptOAEP(plaintext: Buffer, publicKeyPem: string): Buffer;
/**
* Convert a raw base64 public key (no PEM headers) into PEM format.
*/
export declare function toPem(base64Key: string): string;
//# sourceMappingURL=rsa.d.ts.map