MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / DecryptAndCheck

Function DecryptAndCheck

crypto/cipher.go:64–66  ·  view source on GitHub ↗

DecryptAndCheck (inputPrivateKey, inData) MAIN PROCEDURE: 1. Decrypt the inData 2. Verify the HMAC.

(inputPrivateKey *asymmetric.PrivateKey, inData []byte)

Source from the content-addressed store, hash-verified

62// 1. Decrypt the inData
63// 2. Verify the HMAC.
64func DecryptAndCheck(inputPrivateKey *asymmetric.PrivateKey, inData []byte) ([]byte, error) {
65 return ec.Decrypt((*ec.PrivateKey)(inputPrivateKey), inData)
66}

Callers 2

TestCipheringBasicFunction · 0.85
TestCipheringErrorsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestCipheringBasicFunction · 0.68
TestCipheringErrorsFunction · 0.68