Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WICG/webpackage
/ functions
Functions
591 in github.com/WICG/webpackage
⨍
Functions
591
◇
Types & classes
94
↓ 2 callers
Function
expectToThrowErrorAsync
(f)
js/sign/tests/cli-utils_test.js:15
↓ 2 callers
Function
generateDataToBeSigned
( webBundleHash: Uint8Array, integrityBlockCborBytes: Uint8Array, newAttributesCborBytes: Uint8Array )
js/sign/src/utils/utils.ts:185
↓ 2 callers
Function
generateSignedMessage
https://github.com/WICG/webpackage/issues/472#issuecomment-520080192 TODO: Update the above reference once we have spec text for this.
go/bundle/signature/signer.go:177
↓ 2 callers
Function
getBundleId
(signedWebBundle: Uint8Array)
js/sign/src/web-bundle-id.ts:69
↓ 2 callers
Method
getChar
()
go/signedexchange/structuredheader/parser.go:53
↓ 2 callers
Method
indexInPossibleKeys
indexInPossibleKeys returns the index of variantKey within the all possible key combinations for v. If variantKey is not a possible key for v, this re
go/bundle/encoder.go:324
↓ 2 callers
Function
infoLog
(text: string)
js/sign/src/utils/cli-utils.ts:82
↓ 2 callers
Function
isAscii
(s string)
go/bundle/decoder.go:86
↓ 2 callers
Function
isAsymmetricKeyTypeSupported
(key: crypto.KeyObject)
js/sign/src/utils/utils.ts:39
↓ 2 callers
Function
isHeaders
(obj: any)
js/bundle/src/encoder.ts:286
↓ 2 callers
Function
isKeyChar
isKeyChar returns true if c is allowed in subsequent characters of Keys.
go/signedexchange/structuredheader/parser.go:329
↓ 2 callers
Function
isPureWebBundle
(bundle: Uint8Array)
js/sign/src/utils/utils.ts:44
↓ 2 callers
Function
isSignedWebBundle
(bundle: Uint8Array)
js/sign/src/utils/utils.ts:63
↓ 2 callers
Function
isTokenChar
isTokenChar returns true if c is allowed in subsequent characters of Tokens.
go/signedexchange/structuredheader/parser.go:334
↓ 2 callers
Function
isValidToken
(s string)
go/signedexchange/structuredheader/writer.go:164
↓ 2 callers
Function
main
()
js/sign/src/cli-sign.ts:433
↓ 2 callers
Function
maybeGetSignatureType
(key: crypto.KeyObject)
js/sign/src/utils/utils.ts:24
↓ 2 callers
Function
mustRawEncodeBase64
(s string)
go/signedexchange/mice/mice_test.go:99
↓ 2 callers
Function
nvpToHeader
(nvps []hargo.NVP, predBanned func(string) bool)
go/bundle/cmd/gen-bundle/fromhar.go:38
↓ 2 callers
Method
parseByteSequence
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.11
go/signedexchange/structuredheader/parser.go:289
↓ 2 callers
Method
parseKey
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.2
go/signedexchange/structuredheader/parser.go:106
↓ 2 callers
Function
parseListOfStringLists
(s string)
go/bundle/encoder.go:274
↓ 2 callers
Function
parseMaybeEncryptedKey
( data: Buffer, description: string = '' )
js/sign/src/utils/cli-utils.ts:24
↓ 2 callers
Method
parseNumber
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.8
go/signedexchange/structuredheader/parser.go:221
↓ 2 callers
Method
parseParameterisedIdentifier
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.6
go/signedexchange/structuredheader/parser.go:167
↓ 2 callers
Function
parseRemovalKey
(keyInput: string)
js/sign/src/cli-sign.ts:48
↓ 2 callers
Method
parseSignatureAttributes
( attributes: SignatureAttributes )
js/sign/src/core/integrity-block.ts:180
↓ 2 callers
Method
parseString
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.9
go/signedexchange/structuredheader/parser.go:242
↓ 2 callers
Method
possibleKeyAt
possibleKeyAt returns a variant key at given index within the all possible key combinations for v, or nil if index is out of range.
go/bundle/encoder.go:346
↓ 2 callers
Function
prettyPrintSCT
(w io.Writer, SCTList []byte)
go/signedexchange/certurl/sct.go:90
↓ 2 callers
Function
prettyPrintSCTExtension
(w io.Writer, extensions []pkix.Extension, oid asn1.ObjectIdentifier)
go/signedexchange/certurl/sct.go:76
↓ 2 callers
Function
readAndParseEd25519PrivateKey
(path string)
go/bundle/cmd/sign-bundle/integrityblock.go:45
↓ 2 callers
Function
readPrivateKeyFromFile
(path string)
go/bundle/cmd/sign-bundle/signedexchange.go:28
↓ 2 callers
Function
readVerifyAndSignWebBundle
( wbnFilePath: string, keyFilesPaths: string[], outputFilePath: string, maybeWebBundleId?: string )
js/sign/src/cli-sign.ts:395
↓ 2 callers
Method
serialize
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.1.3
go/signedexchange/structuredheader/writer.go:38
↓ 2 callers
Function
serializeItem
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.1.5
go/signedexchange/structuredheader/writer.go:115
↓ 2 callers
Method
setPrimaryURL
(url: string)
js/bundle/src/encoder.ts:74
↓ 2 callers
Method
signAndGetIntegrityBlock
@internal
js/sign/src/signers/integrity-block-signer.ts:90
↓ 2 callers
Function
textOrByteStringDeterministic
textOrByteStringDeterministic returns length of the text or byte string element in bytes for which its deterministicy has been ensured
go/internal/cbor/deterministic.go:113
↓ 2 callers
Method
toStrippedCbor
@internal
js/sign/src/core/integrity-block.ts:176
↓ 2 callers
Function
typeSupportedPKCS8key
(keyInterface any)
go/internal/signingalgorithm/certs.go:62
↓ 2 callers
Function
urlMustParse
(rawurl string)
go/bundle/encoder_test.go:13
↓ 2 callers
Function
validateFallbackURL
(urlBytes []byte)
go/signedexchange/signedexchange.go:469
↓ 2 callers
Method
validateSignatures
()
js/sign/src/core/signed-web-bundle.ts:90
↓ 2 callers
Function
verifySignature
( data: Uint8Array, signature: Uint8Array, publicKey: KeyObject )
js/sign/src/utils/utils.ts:125
↓ 1 callers
Function
DumpExchange
(e *bundle.Exchange, b *bundle.Bundle, verifier *signature.Verifier)
go/bundle/cmd/dump-bundle/main.go:42
↓ 1 callers
Method
DumpSignedMessage
(w io.Writer, s *Signer)
go/signedexchange/signedexchange.go:483
↓ 1 callers
Function
DumpWebBundleId
()
go/bundle/cmd/sign-bundle/integrityblock.go:80
↓ 1 callers
Function
DumpWebBundleIdFromPrivateKey
()
go/bundle/cmd/sign-bundle/integrityblock.go:58
↓ 1 callers
Function
DumpWebBundleIdFromPublicKey
()
go/bundle/cmd/sign-bundle/integrityblock.go:69
↓ 1 callers
Method
EncodeBool
(b bool)
go/internal/cbor/encoder.go:158
↓ 1 callers
Function
FetchOCSPResponse
(certs []*x509.Certificate, preferGET bool)
go/signedexchange/certurl/ocsp.go:55
↓ 1 callers
Function
FromMagicBytes
(bs []byte)
go/signedexchange/version/version.go:55
↓ 1 callers
Function
HasEmbeddedSCT
HasEmbeddedSCT returns true if the certificate or the OCSP response have embedded SCT list.
go/signedexchange/certurl/sct.go:54
↓ 1 callers
Method
HeaderMagicBytes
()
go/bundle/version/version.go:47
↓ 1 callers
Function
IsStatefulRequestHeader
IsStatefulRequestHeader returns true if the HTTP header n is considered stateful and is not allowed to be included in a signed exchange Note that this
go/signedexchange/stateful_headers.go:70
↓ 1 callers
Function
IsUncachedHeader
(n string)
go/signedexchange/stateful_headers.go:76
↓ 1 callers
Method
MimeType
()
go/signedexchange/version/version.go:51
↓ 1 callers
Method
Name
()
go/bundle/encoder.go:87
↓ 1 callers
Function
NewCountingWriter
(w io.Writer)
go/bundle/countingwriter.go:16
↓ 1 callers
Function
NewMapEntry
()
go/internal/cbor/encoder.go:183
↓ 1 callers
Function
ObtainIntegrityBlock
obtainIntegrityBlock returns either the existing integrity block parsed (not supported in v1) or a newly created empty integrity block. Integrity bloc
go/integrityblock/integrityblock.go:134
↓ 1 callers
Function
Parse
(str string)
go/bundle/version/version.go:37
↓ 1 callers
Function
ParseMagicBytes
(r io.Reader)
go/bundle/version/version.go:58
↓ 1 callers
Function
ParsePublicKey
(text []byte)
go/internal/signingalgorithm/certs.go:108
↓ 1 callers
Method
PrettyPrint
(w io.Writer)
go/signedexchange/certurl/certchain.go:191
↓ 1 callers
Method
PrettyPrintHeaderIntegrity
(w io.Writer)
go/signedexchange/signedexchange.go:527
↓ 1 callers
Method
PrettyPrintHeaders
(w io.Writer)
go/signedexchange/signedexchange.go:495
↓ 1 callers
Method
PrettyPrintPayload
(w io.Writer)
go/signedexchange/signedexchange.go:513
↓ 1 callers
Function
ReadBundleFromFile
(path string)
go/bundle/cmd/dump-bundle/main.go:23
↓ 1 callers
Function
ReadExchangePrologue
draft-yasskin-http-origin-signed-responses.html#application-http-exchange
go/signedexchange/signedexchange.go:381
↓ 1 callers
Function
ReadHar
(r io.Reader)
go/bundle/cmd/gen-bundle/fromhar.go:20
↓ 1 callers
Function
ReadHarFromFile
(path string)
go/bundle/cmd/gen-bundle/fromhar.go:29
↓ 1 callers
Method
SPKISha256
CertSha256 returns SHA-256 hash of the DER-encoded SubjectPublicKeyInfo.
go/signedexchange/certurl/certchain.go:120
↓ 1 callers
Function
SignExchanges
()
go/bundle/cmd/sign-bundle/signedexchange.go:77
↓ 1 callers
Function
SignWithIntegrityBlock
SignWithIntegrityBlock creates a CBOR integrity block containing a signature matching the hash of the web bundle read from `bundleFileIn`. Finally it
go/bundle/cmd/sign-bundle/integrityblock.go:115
↓ 1 callers
Function
SignWithIntegrityBlockWithCmdFlags
SignWithIntegrityBlockWithCmdFlags is just a wrapper function for `SignWithIntegrityBlock` function containing the actual logic so that it can be easi
go/bundle/cmd/sign-bundle/integrityblock.go:91
↓ 1 callers
Method
SignatureContextString
()
go/bundle/version/version.go:95
↓ 1 callers
Method
String
()
go/signedexchange/structuredheader/writer.go:29
↓ 1 callers
Method
SupportsManifestSection
()
go/bundle/version/version.go:122
↓ 1 callers
Method
Verify
Verify validates the Exchange by running the algorithm described in https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#
go/signedexchange/verifier.go:90
↓ 1 callers
Function
VerifyEd25519Signature
VerifyEd25519Signature verifies that the given signature can be verified with the given public key and matches the data signed.
go/integrityblock/integrityblock-signer.go:17
↓ 1 callers
Function
VerifyUncachedHeader
VerifyUncachedHeader returns non-nil error if h has any uncached header fields as specified in draft-yasskin-http-origin-signed-responses.html#uncache
go/signedexchange/stateful_headers.go:84
↓ 1 callers
Function
addExchange
(is *indexSection, rs *responsesSection, e *Exchange)
go/bundle/encoder.go:496
↓ 1 callers
Function
addFilesRecursively
( builder: BundleBuilder, baseURL: string, dir: string, overrideHeaders: Headers | undefined )
js/bundle/src/cli.ts:36
↓ 1 callers
Method
addIndexEntry
(url: string, responseLength: number)
js/bundle/src/encoder.ts:103
↓ 1 callers
Method
addResponse
(headerMap: HeaderMap, payload: Uint8Array)
js/bundle/src/encoder.ts:93
↓ 1 callers
Method
addResponse
(r Response)
go/bundle/encoder.go:394
↓ 1 callers
Function
addSignature
(b *bundle.Bundle, signer *signature.Signer)
go/bundle/cmd/sign-bundle/signedexchange.go:55
↓ 1 callers
Function
arrayDeterministic
(input: Uint8Array, index: number)
js/sign/src/cbor/deterministic.ts:127
↓ 1 callers
Function
arrayDeterministic
arrayDeterministic returns length of the CBOR array in bytes and checks that each item on it follows the deterministic principles.
go/internal/cbor/deterministic.go:128
↓ 1 callers
Function
asMap
(x: unknown)
js/bundle/src/decoder.ts:246
↓ 1 callers
Function
contentToBody
(c *hargo.Content)
go/bundle/cmd/gen-bundle/fromhar.go:54
↓ 1 callers
Function
convertPathToURL
(path string, baseDir string, baseURL *url.URL)
go/bundle/cmd/gen-bundle/fromdir.go:52
↓ 1 callers
Function
convertToAdditionalInfo
(b: number)
js/sign/src/cbor/additionalinfo.ts:23
↓ 1 callers
Method
createCompatAdapter
(formatVersion: FormatVersion)
js/bundle/src/encoder.ts:123
↓ 1 callers
Method
createCompatAdapter
(formatVersion: FormatVersion)
js/bundle/src/decoder.ts:129
↓ 1 callers
Function
createExchange
createExchange creates a bundle.Exchange whose request URL is url and response body is the contents of the file. Internally, it uses http.ServeFile to
go/bundle/cmd/gen-bundle/fromdir.go:91
↓ 1 callers
Function
createTestBundleWithVariants
(ver version.Version)
go/bundle/bundle_test.go:63
↓ 1 callers
Function
createTestCerts
(t *testing.T)
go/bundle/bundle_test.go:97
← previous
next →
201–300 of 591, ranked by callers