Lines Matching defs:decoded

2932 	struct sshbuf *encoded = NULL, *decoded = NULL;
2940 (decoded = sshbuf_new()) == NULL) {
2981 if ((r = sshbuf_b64tod(decoded, (char *)sshbuf_ptr(encoded))) != 0)
2985 if (sshbuf_len(decoded) < sizeof(AUTH_MAGIC) ||
2986 memcmp(sshbuf_ptr(decoded), AUTH_MAGIC, sizeof(AUTH_MAGIC))) {
2991 *decodedp = decoded;
2992 decoded = NULL;
2996 sshbuf_free(decoded);
3001 private2_decrypt(struct sshbuf *decoded, const char *passphrase,
3014 if (decoded == NULL || decryptedp == NULL || pubkeyp == NULL)
3026 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 ||
3027 (r = sshbuf_get_cstring(decoded, &ciphername, NULL)) != 0 ||
3028 (r = sshbuf_get_cstring(decoded, &kdfname, NULL)) != 0 ||
3029 (r = sshbuf_froms(decoded, &kdf)) != 0 ||
3030 (r = sshbuf_get_u32(decoded, &nkeys)) != 0)
3039 if ((r = sshkey_froms(decoded, &pubkey)) != 0 ||
3040 (r = sshbuf_get_u32(decoded, &encrypted_len)) != 0)
3089 if (sshbuf_len(decoded) < authlen ||
3090 sshbuf_len(decoded) - authlen < encrypted_len) {
3100 if ((r = cipher_crypt(ciphercontext, 0, dp, sshbuf_ptr(decoded),
3107 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0)
3110 if (sshbuf_len(decoded) != 0) {
3153 struct sshbuf *decoded = NULL, *decrypted = NULL;
3162 if ((r = private2_uudecode(blob, &decoded)) != 0 ||
3163 (r = private2_decrypt(decoded, passphrase,
3200 sshbuf_free(decoded);
3212 struct sshbuf *decoded = NULL;
3219 if ((r = private2_uudecode(blob, &decoded)) != 0)
3222 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 ||
3223 (r = sshbuf_skip_string(decoded)) != 0 || /* cipher */
3224 (r = sshbuf_skip_string(decoded)) != 0 || /* KDF alg */
3225 (r = sshbuf_skip_string(decoded)) != 0 || /* KDF hint */
3226 (r = sshbuf_get_u32(decoded, &nkeys)) != 0)
3236 if ((r = sshkey_froms(decoded, &pubkey)) != 0)
3252 sshbuf_free(decoded);