MCPcopy Index your code
hub / github.com/ccxt/ccxt / Rsa

Method Rsa

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:315–318  ·  view source on GitHub ↗
(Object data, Object publicKeyPem, Object hash)

Source from the content-addressed store, hash-verified

313 // ====================================================
314
315 public static String Rsa(Object data, Object publicKeyPem, Object hash) {
316 byte[] sig = rsaSign(toString(data), toString(publicKeyPem), (hash == null ? "md5" : toString(hash)));
317 return BinaryToBase64(sig);
318 }
319
320 private static byte[] rsaSign(String data, String pemPrivateKey, String hashAlgo) {
321 String jce = switch (hashAlgo) {

Callers 4

rsaMethod · 0.95
rsaMethod · 0.95
RsaFunction · 0.80
SignParamsMethod · 0.80

Calls 3

rsaSignMethod · 0.95
toStringMethod · 0.95
BinaryToBase64Method · 0.95

Tested by

no test coverage detected