MCPcopy Create free account
hub / github.com/e2wugui/zeze / encryptRsa

Method encryptRsa

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Cert.java:249–251  ·  view source on GitHub ↗
(PublicKey publicKey, byte[] data)

Source from the content-addressed store, hash-verified

247
248 // 使用RSA公钥加密小块数据(data长度不超过:RSA位数/8-11)
249 public static byte[] encryptRsa(PublicKey publicKey, byte[] data) throws GeneralSecurityException {
250 return encryptRsa(publicKey, data, 0, data.length);
251 }
252
253 // 使用RSA公钥加密小块数据(size不超过:RSA位数/8-11)
254 public static byte[] encryptRsa(PublicKey publicKey, byte[] data, int offset, int size)

Callers 4

startHandshakeMethod · 0.95
encryptRsaMethod · 0.95
mainMethod · 0.95
testAllMethod · 0.45

Calls 2

initMethod · 0.65
getInstanceMethod · 0.45

Tested by 1

testAllMethod · 0.36