MCPcopy Create free account
hub / github.com/RingLinkPlatform/RingLink / decrypt

Function decrypt

src/crypto.rs:64–80  ·  view source on GitHub ↗

Decrypt data with ChaCha20-Poly1305 # Arguments `key` - secret key `data` - data to decrypt `iv` - iv used to encrypt data # Returns `Ok(decrypted_data)` - decrypted data

(key: &[u8], data: &[u8], iv: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

decryptMethod · 0.85
test_encFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_encFunction · 0.68