Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Decrypt any remaining partial blocks #439

Open
ssuriyayuvan opened this issue Sep 23, 2021 · 3 comments
Open

Error in Decrypt any remaining partial blocks #439

ssuriyayuvan opened this issue Sep 23, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ssuriyayuvan
Copy link

Here In Storage Server I got an error while decrypt any remaining partial block

if (EVP_DecryptFinal_ex(ctx, o, &len) <= 0) {
        throw std::runtime_error("Could not finalise decryption");
    }
    o += len;

I'm running latest session client but still got an error

@ssuriyayuvan ssuriyayuvan added the bug Something isn't working label Sep 23, 2021
@jagerman
Copy link
Member

Are you triggering this error somehow, or are you just seeing this in logs?

@ssuriyayuvan
Copy link
Author

I saw the logs in storage-server

[2021-09-29 07:43:17/+14m47.594s] [trace] [request_handler.cpp:772] process_client_req str <{"jsonrpc":"2.0","id":"0","method":"get_snodes_for_pubkey","params":{"pubKey":"05c6a30201a4182cac5e7fb3cf772acb77750683d720cf0ed97af912b542c1796f"}}>
[2021-09-29 07:43:17/+14m47.594s] [trace] [request_handler.cpp:781] process_client_req json <{
  "id": "0",
  "jsonrpc": "2.0",
  "method": "get_snodes_for_pubkey",
  "params": {
    "pubKey": "05c6a30201a4182cac5e7fb3cf772acb77750683d720cf0ed97af912b542c1796f"
  }
}>
[2021-09-29 07:43:17/+14m47.594s] [trace] [request_handler.cpp:791]   - method name: get_snodes_for_pubkey
[2021-09-29 07:43:17/+14m47.594s] [debug] [request_handler.cpp:809] Process client request: get_snodes_for_pubkey
[2021-09-29 07:43:17/+14m47.594s] [debug] [request_handler.cpp:498] get swarm for c6a3â<80>¦6f, swarm size: 8
[2021-09-29 07:43:17/+14m47.594s] [trace] [request_handler.cpp:504] swarm details for pk c6a3â<80>¦6f: {"snodes":[{"address":"55fxrmfp67nc745pigr5ahnrf6mmf6c3gmaoy6xo3jg7acwxiemo.snode","ip":"159.69.251.229","port":"38155","port_https":38155,"port_omq":38054,"pubkey_ed25519":"decaf22cadf744ceeb6da989bc70442f96b2f99932f10079f0ca4ddc328faa17","pubkey_legacy":"decaf22cadf744ceeb6da989bc70442f96b2f99932f10079f0ca4ddc328faa17","pubkey_x25519":"5e6de5497feb9452fe7dc316f6bc4bab0936cfab72294891bb06bd72e14c4e38"},{"address":"55fxyo4r61dfhdx7px4p5zfajw1nkfmtttz51yyc4yif4gfmcgby.snode","ip":"88.198.117.154","port":"38155","port_https":38155,"port_omq":38154,"pubkey_ed25519":"decaf04344f4865e0dfd6bf4dddcb84d242515718c6fb9000cd02a5d18ab6182","pubkey_legacy":"decaf04344f4865e0dfd6bf4dddcb84d242515718c6fb9000cd02a5d18ab6182","pubkey_x25519":"bad44806896a4648be70c575d207cd8181ff1f46372f6f839209d32f638c8e79"},{"address":"55fxdnig4eyeuffkwsw3x37bb7weuby1xtj13ggcwamghctjs9so.snode","ip":"54.39.96.65","port":"38155","port_https":38155,"port_omq":38154,"pubkey_ed25519":"decaf18aa6d2008994aaa5a997e7a10f688984127c532c98cca6166e3229b7ed","pubkey_legacy":"decaf18aa6d2008994aaa5a997e7a10f688984127c532c98cca6166e3229b7ed","pubkey_x25519":"6a1db6f30e5873bfb26e12e1f624427c16f1bc360db5632db01dadefc74ea730"},{"address":"55fxys9x58xwnk3gorpwyep47y9knc4c1d15efjwzhybtom7mypy.snode","ip":"88.198.117.156","port":"38155","port_https":38155,"port_omq":38154,"pubkey_ed25519":"decaf05befd9df412b26811b4021bae83ea1334c90e5b41534bf0018c17d581a","pubkey_legacy":"decaf05befd9df412b26811b4021bae83ea1334c90e5b41534bf0018c17d581a","pubkey_x25519":"ff3a118a72ce7cb87e146b259d7ce739b96bea7ca1ede387a17a185a9fc72379"},{"address":"55fxr9qksban1jf8j91c9qjt18g651bmw57ekoew5m3h7rqot5do.snode","ip":"116.202.111.240","port":"38155","port_https":38155,"port_omq":38054,"pubkey_ed25519":"decaf27dcab0702924a74fe4cfb93191cdedc82ba6fa854114daf3ce91d08ec7","pubkey_legacy":"decaf27dcab0702924a74fe4cfb93191cdedc82ba6fa854114daf3ce91d08ec7","pubkey_x25519":"919bd66385b3b622a8eb0af2d4af2b659532a255df0502ee48f3ff38e340ee79"},{"address":"55fxy6143x414pi3nbp8n6ph8mej7q4ordfgroxietnh96k3b6jo.snode","ip":"95.216.170.181","port":"38155","port_https":38155,"port_omq":38154,"pubkey_ed25519":"decaf07a5acbf52d36b9105a7179bc3ad09ebb5020ca6241f54445cff9590f93","pubkey_legacy":"decaf07a5acbf52d36b9105a7179bc3ad09ebb5020ca6241f54445cff9590f93","pubkey_x25519":"9f20da68bcbbf82ba584ca9de6bf733697b5c8778ae4370a30e0c7a3033ec471"},{"address":"55fxgb5insmaeu3toxpbw97ejpz3fpk6ycwd3z4wnu14ur5gjaeo.snode","ip":"51.38.125.246","port":"38155","port_https":38155,"port_omq":38154,"pubkey_ed25519":"decaf307751597844f3183da1a7fa84b6f92b55e03283cdf5414e5a993664e11","pubkey_legacy":"decaf307751597844f3183da1a7fa84b6f92b55e03283cdf5414e5a993664e11","pubkey_x25519":"f0790e5a516568c5c99eae53314bfa1350a06ce6fe1c58e17d3c5a768d77bc03"},{"address":"x4k963wad4mhc4tt7ogu6njiu1jj9wu81ezjb56hjcb4p85iy3uo.snode","ip":"172.104.187.239","port":"8080","port_https":8080,"port_omq":1090,"pubkey_ed25519":"7e95ff66981e97c66a31ec0d3f09359c929fd267922e90efdc4b03a69f750667","pubkey_legacy":"7e95ff66981e97c66a31ec0d3f09359c929fd267922e90efdc4b03a69f750667","pubkey_x25519":"aae5ade5b4905922faf2cca233d3ef5f6eadae91bfa0b557f9477e3702301e11"}],"swarm":"7fffffffffffffff","t":1632901397378}
[2021-09-29 07:43:17/+14m47.594s] [debug] [https_server.cpp:632] Responding to a client request after 390µs
[2021-09-29 07:43:17/+14m47.677s] [trace] [service_node.cpp:691] no nodes to test this tick
[2021-09-29 07:43:17/+14m47.877s] [trace] [service_node.cpp:691] no nodes to test this tick
[2021-09-29 07:43:17/+14m48.077s] [trace] [service_node.cpp:691] no nodes to test this tick
[2021-09-29 07:43:18/+14m48.278s] [trace] [service_node.cpp:691] no nodes to test this tick
[2021-09-29 07:43:18/+14m48.349s] [trace] [https_server.cpp:408] POST /onion_req/v2
[2021-09-29 07:43:18/+14m48.349s] [debug] [https_server.cpp:361] Received post /onion_req/v2 request from 136.185.64.71
[2021-09-29 07:43:18/+14m48.349s] [trace] [onion_processing.cpp:113] Parsing payload of length: 873
[2021-09-29 07:43:18/+14m48.349s] [trace] [onion_processing.cpp:126] Ciphertext length: 785
[2021-09-29 07:43:18/+14m48.349s] [debug] [onion_processing.cpp:139] ciphertext length: 785
[2021-09-29 07:43:18/+14m48.349s] [debug] [request_handler.cpp:922] process_onion_req
[2021-09-29 07:43:18/+14m48.350s] [error] [onion_processing.cpp:89] Error decrypting 785 bytes onion request using 1: Could not finalise decryption
[2021-09-29 07:43:18/+14m48.350s] [debug] [https_server.cpp:658] Got an onion response (400 Bad Request) as edge node (after 427µs)
[2021-09-29 07:43:18/+14m48.350s] [trace] [https_server.cpp:408] POST /onion_req/v2
[2021-09-29 07:43:18/+14m48.350s] [debug] [https_server.cpp:361] Received post /onion_req/v2 request from 136.185.64.71
[2021-09-29 07:43:18/+14m48.350s] [trace] [onion_processing.cpp:113] Parsing payload of length: 1378
[2021-09-29 07:43:18/+14m48.350s] [trace] [onion_processing.cpp:126] Ciphertext length: 1290
[2021-09-29 07:43:18/+14m48.350s] [debug] [onion_processing.cpp:139] ciphertext length: 1290
[2021-09-29 07:43:18/+14m48.350s] [debug] [request_handler.cpp:922] process_onion_req
[2021-09-29 07:43:18/+14m48.350s] [error] [onion_processing.cpp:89] Error decrypting 1290 bytes onion request using 1: Could not finalise decryption

@ssuriyayuvan
Copy link
Author

ssuriyayuvan commented Oct 1, 2021

@jagerman any findings for this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants