Lines Matching defs:encoded
1589 * The group may be stored in a ASN.1 encoded private key in one of two
1591 * or explicit group parameters encoded into the key blob. Only the
3032 struct sshbuf *encoded = NULL, *encrypted = NULL, *kdf = NULL;
3053 (encoded = sshbuf_new()) == NULL ||
3085 if ((r = sshbuf_put(encoded, AUTH_MAGIC, sizeof(AUTH_MAGIC))) != 0 ||
3086 (r = sshbuf_put_cstring(encoded, ciphername)) != 0 ||
3087 (r = sshbuf_put_cstring(encoded, kdfname)) != 0 ||
3088 (r = sshbuf_put_stringb(encoded, kdf)) != 0 ||
3089 (r = sshbuf_put_u32(encoded, 1)) != 0 || /* number of keys */
3091 (r = sshbuf_put_string(encoded, pubkeyblob, pubkeylen)) != 0)
3115 if ((r = sshbuf_put_u32(encoded, sshbuf_len(encrypted))) != 0)
3119 if ((r = sshbuf_reserve(encoded,
3127 if ((b64 = sshbuf_dtob64(encoded)) == NULL) {
3152 sshbuf_free(encoded);
3181 struct sshbuf *encoded = NULL, *decoded = NULL;
3194 if ((encoded = sshbuf_new()) == NULL ||
3215 if ((r = sshbuf_put_u8(encoded, *cp)) != 0)
3225 if ((r = sshbuf_put_u8(encoded, 0)) != 0)
3237 if ((r = sshbuf_b64tod(decoded, (char *)sshbuf_ptr(encoded))) != 0)
3383 sshbuf_free(encoded);