MCPcopy Create free account
hub / github.com/LizardByte/Sunshine / encrypt

Method encrypt

src/crypto.cpp:193–222  ·  view source on GitHub ↗

* This function encrypts the given plaintext using the AES key in GCM mode. The initialization vector (IV) is also provided. * The function handles the creation and initialization of the encryption context, and manages the encryption process. * The resulting ciphertext and the GCM tag are written into the tagged_cipher buffer. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

encode_audioFunction · 0.80
encode_controlFunction · 0.80
videoBroadcastThreadFunction · 0.80
respondFunction · 0.80
clientchallengeFunction · 0.80

Calls 7

init_encrypt_gcmFunction · 0.85
fail_guardFunction · 0.85
init_encrypt_cbcFunction · 0.85
round_to_pkcs7_paddedFunction · 0.70
getMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected