ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { createHash, createHmac, timingSafeEqual } from 'crypto';
/**
* Result of matching a presented host key against the entries in the user's
* `known_hosts` files.
*
* `mismatch` is deliberately scoped to entries of the *same* key type: a host
* that has an `ssh-rsa` entry on file but presents an `ssh-ed25519` key is
* `unknown` (we simply have never seen that key type for it), not evidence of
* an attack. Treating that as a mismatch would fire a false alarm for every
* user with an RSA-only entry, since ssh2 negotiates ed25519 first.
*/
export type KnownHostsMatch =
/** An entry for this host and key type matches the presented key exactly. */
| 'match'
/** An entry for this host and key type exists but holds a *different* key. */
| 'mismatch'
/** The presented key is explicitly marked `@revoked`. */
| 'revoked'
/**
* The only entries for this host are `@cert-authority` lines. ssh2 cannot
* validate host certificates (it advertises no `*-cert-v01@openssh.com`
* host key algorithms), so we can neither trust nor reject on this basis.
* Surfaced distinctly so the UI can say so plainly rather than showing an
* ordinary trust-on-first-use prompt for a host that deliberately set up a
* CA precisely to avoid one.
*/
| 'ca-only'
/** No entry for this host and key type. */
| 'unknown'
marker
patterns
hashedHost salt Buffer hash Buffer
keyType
key Buffer
keyBlob Buffer
digest keyBlob
keyBlob Buffer
keyBloblength
length keyBlob
length length length keyBloblength
keyBlob length
line IKnownHostsEntry
trimmed line
trimmed trimmed
fields trimmed
index
marker
fieldsindex
raw fieldsindex
raw raw
marker raw
index
hostField fieldsindex
keyType fieldsindex
keyBase64 fieldsindex
hostField keyType keyBase64
key Buffer
key BufferkeyBase64
keylength key keyType
hostField
parts hostField
partslength
salt Bufferparts
hash Bufferparts
saltlength hashlength
marker patterns hashedHost salt hash keyType key
marker patterns hostField keyType key
contents IKnownHostsEntry
entries IKnownHostsEntry
line contents
entry line
entry
entriesentry
entries
host port
lower host
port lower
pattern candidate
escaped pattern
regex
regexcandidate
patterns candidate
matched
pattern patterns
pattern
pattern candidate
pattern candidate
matched
matched
hashedHost salt Buffer hash Buffer candidate
computed hashedHostsaltcandidate
computedlength hashedHosthashlength computed hashedHosthash
entry IKnownHostsEntry candidates
candidatescandidate entryhashedHost
entryhashedHost candidate
entrypatterns candidate
entries IKnownHostsEntry
host
port
keyType
keyBlob Buffer
KnownHostsMatch
candidates host port
applicable entriesentry entry candidates
applicableentry entrymarker entrykeykeyBlob
sawSameTypeEntry
sawCertAuthority
entry applicable
entrymarker
entrymarker
sawCertAuthority
entrykeyType keyType
entrykeykeyBlob
sawSameTypeEntry
sawSameTypeEntry
sawCertAuthority