Lines Matching refs:sshbuf_len
645 if (sshbuf_len(a->certblob) != sshbuf_len(b->certblob)) in cert_compare()
648 sshbuf_len(a->certblob)) != 0) in cert_compare()
738 if (sshbuf_len(key->cert->certblob) == 0) in to_blob_buf()
843 len = sshbuf_len(b); in to_blob()
1311 sshbuf_len(blob), &k)) != 0) { in sshkey_read()
1492 if (fwrite(sshbuf_ptr(b), sshbuf_len(b), 1, f) != 1) { in sshkey_write()
1868 signed_len = sshbuf_len(key->cert->certblob) - sshbuf_len(b); in cert_parse()
1882 while (sshbuf_len(principals) > 0) { in cert_parse()
1919 while (sshbuf_len(crit) != 0) { in cert_parse()
1927 while (exts != NULL && sshbuf_len(exts) != 0) { in cert_parse()
2128 if (key != NULL && sshbuf_len(b) != 0) { in sshkey_from_blob_internal()
2471 sshbuf_len(cert), alg, 0)) != 0) in sshkey_certify()
2600 if (key->cert == NULL || sshbuf_len(key->cert->certblob) == 0) { in sshkey_private_serialize()
2620 if (key->cert == NULL || sshbuf_len(key->cert->certblob) == 0) { in sshkey_private_serialize()
2638 if (key->cert == NULL || sshbuf_len(key->cert->certblob) == 0) { in sshkey_private_serialize()
2657 if (key->cert == NULL || sshbuf_len(key->cert->certblob) == 0) { in sshkey_private_serialize()
3126 while (sshbuf_len(encrypted) % blocksize) { in sshkey_private_to_blob2()
3132 if ((r = sshbuf_put_u32(encoded, sshbuf_len(encrypted))) != 0) in sshkey_private_to_blob2()
3137 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2()
3140 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2()
3219 encoded_len = sshbuf_len(blob); in sshkey_parse_private2()
3257 if (sshbuf_len(decoded) < sizeof(AUTH_MAGIC) || in sshkey_parse_private2()
3323 if (sshbuf_len(decoded) < encrypted_len + authlen) { in sshkey_parse_private2()
3343 if (sshbuf_len(decoded) != 0) { in sshkey_parse_private2()
3364 while (sshbuf_len(decrypted)) { in sshkey_parse_private2()
3458 if ((r = sshbuf_put(buffer, buf, 8 - (sshbuf_len(buffer) % 8))) != 0) in sshkey_private_rsa1_to_blob()
3485 if ((r = sshbuf_reserve(encrypted, sshbuf_len(buffer), &cp)) != 0) in sshkey_private_rsa1_to_blob()
3492 sshbuf_ptr(buffer), sshbuf_len(buffer), 0, 0)) != 0) in sshkey_private_rsa1_to_blob()
3614 if (sshbuf_len(blob) < sizeof(LEGACY_BEGIN)) in sshkey_parse_public_rsa1_fileblob()
3678 if (sshbuf_len(blob) < sizeof(LEGACY_BEGIN)) in sshkey_parse_private_rsa1()
3719 if ((r = sshbuf_reserve(decrypted, sshbuf_len(copy), &cp)) != 0) in sshkey_parse_private_rsa1()
3727 sshbuf_ptr(copy), sshbuf_len(copy), 0, 0)) != 0) in sshkey_parse_private_rsa1()
3786 if ((bio = BIO_new(BIO_s_mem())) == NULL || sshbuf_len(blob) > INT_MAX) in sshkey_parse_private_pem_fileblob()
3788 if (BIO_write(bio, sshbuf_ptr(blob), sshbuf_len(blob)) != in sshkey_parse_private_pem_fileblob()
3789 (int)sshbuf_len(blob)) { in sshkey_parse_private_pem_fileblob()