Lines Matching defs:decoded
3181 struct sshbuf *encoded = NULL, *decoded = NULL;
3195 (decoded = sshbuf_new()) == NULL ||
3237 if ((r = sshbuf_b64tod(decoded, (char *)sshbuf_ptr(encoded))) != 0)
3241 if (sshbuf_len(decoded) < sizeof(AUTH_MAGIC) ||
3242 memcmp(sshbuf_ptr(decoded), AUTH_MAGIC, sizeof(AUTH_MAGIC))) {
3247 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 ||
3248 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 ||
3249 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 ||
3250 (r = sshbuf_froms(decoded, &kdf)) != 0 ||
3251 (r = sshbuf_get_u32(decoded, &nkeys)) != 0 ||
3252 (r = sshbuf_skip_string(decoded)) != 0 || /* pubkey */
3253 (r = sshbuf_get_u32(decoded, &encrypted_len)) != 0)
3307 if (sshbuf_len(decoded) < encrypted_len + authlen) {
3317 if ((r = cipher_crypt(&ciphercontext, 0, dp, sshbuf_ptr(decoded),
3324 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0)
3327 if (sshbuf_len(decoded) != 0) {
3384 sshbuf_free(decoded);