MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / RSA2048SignString

Function RSA2048SignString

common/persistence/utils.go:48–50  ·  view source on GitHub ↗

RSA2048SignString 对文本执行RSA2048运算

(body string, privateKey *rsa.PrivateKey)

Source from the content-addressed store, hash-verified

46
47// RSA2048SignString 对文本执行RSA2048运算
48func RSA2048SignString(body string, privateKey *rsa.PrivateKey) ([]byte, error) {
49 return RSA2048SignBytes([]byte(body), privateKey)
50}
51
52// RSA2048SignBytes 对byte数组执行RSA2048运算
53func RSA2048SignBytes(body []byte, privateKey *rsa.PrivateKey) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

RSA2048SignBytesFunction · 0.85

Tested by

no test coverage detected