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
↓ 4 callers
Function
SerializeSCTList
SerializeSCTList serializes a list of SignedCertificateTimestamps into a SignedCertificateTimestampList (RFC6962 Section 3.3).
go/signedexchange/certurl/sct.go:25
↓ 4 callers
Method
Sign
(data []byte)
go/integrityblock/signing-strategy-interface.go:8
↓ 4 callers
Method
Sign
(m []byte)
go/internal/signingalgorithm/signingalgorithm.go:17
↓ 4 callers
Method
SignAndAddNewSignature
SignAndAddNewSignature contains the main logic for generating the new signature and prepending the integrity block's signature stack with a new integr
go/integrityblock/integrityblock-signer.go:27
↓ 4 callers
Method
addSignature
(signingStrategy: ISigningStrategy)
js/sign/src/core/signed-web-bundle.ts:65
↓ 4 callers
Function
asBytestring
(x: unknown)
js/bundle/src/decoder.ts:267
↓ 4 callers
Method
decodeOfType
(expected Type)
go/internal/cbor/decoder.go:71
↓ 4 callers
Function
errorLog
(text: string)
js/sign/src/utils/cli-utils.ts:89
↓ 4 callers
Function
findExtensionWithOID
(extensions []pkix.Extension, oid asn1.ObjectIdentifier)
go/signedexchange/certurl/sct.go:59
↓ 4 callers
Function
fromHex
fromHex converts strings of the form "12 34 5678 9a" to byte slices.
go/internal/cbor/encoder_test.go:13
↓ 4 callers
Function
getSignatureType
(key: crypto.KeyObject)
js/sign/src/utils/utils.ts:74
↓ 4 callers
Method
getSignedWebBundleBytes
()
js/sign/src/core/signed-web-bundle.ts:126
↓ 4 callers
Method
getString
(n int)
go/signedexchange/structuredheader/parser.go:59
↓ 4 callers
Function
getUnsignedIntegerValue
getUnsignedIntegerValue converts the byte array containing the CBOR encoded unsigned integer into an actual value.
go/internal/cbor/deterministic.go:89
↓ 4 callers
Method
hash
(h string)
go/signedexchange/mice/mice_test.go:267
↓ 4 callers
Function
isAlpha
(c byte)
go/signedexchange/structuredheader/parser.go:324
↓ 4 callers
Function
parseMaybeEncryptedKeyFromFile
( filePath: string )
js/sign/src/utils/cli-utils.ts:14
↓ 4 callers
Function
shouldPanic
(t *testing.T, f func())
go/internal/cbor/deterministic_test.go:330
↓ 4 callers
Function
unsignedIntegerDeterministic
( input: Uint8Array, index: number )
js/sign/src/cbor/deterministic.ts:55
↓ 4 callers
Function
unsignedIntegerDeterministic
unsignedIntegerDeterministic calculates the value of the unsigned integer to ensure that the right amount of bytes is used in the CBOR encoding. It re
go/internal/cbor/deterministic.go:70
↓ 4 callers
Function
urlMustParse
(rawurl string)
go/bundle/bundle_test.go:29
↓ 4 callers
Function
validateExchangeURL
(urlString: string)
js/bundle/src/encoder.ts:269
↓ 4 callers
Function
validateRecord
(record, proof []byte, isLastRecord bool)
go/signedexchange/mice/mice.go:251
↓ 4 callers
Function
verificationShouldSucceed
(t *testing.T, e *Exchange, certBytes []byte, verificationTime time.Time)
go/signedexchange/signedexchange_test.go:249
↓ 4 callers
Function
warnLog
(text: string)
js/sign/src/utils/cli-utils.ts:86
↓ 3 callers
Method
AddExchange
AddExchange adds resource integrity information of e for signing.
go/bundle/signature/signer.go:117
↓ 3 callers
Method
AddPayloadIntegrity
AddPayloadIntegrity encodes the exchange's payload with Merkle Integrity content encoding, and adds `Content-Encoding` and `Digest` response headers.
go/bundle/bundle.go:59
↓ 3 callers
Method
CanSignForURL
CanSignForURL returns true iff this signer can sign for a resource with given URL.
go/bundle/signature/signer.go:112
↓ 3 callers
Function
CreateOCSPRequest
(certs []*x509.Certificate, preferGET bool)
go/signedexchange/certurl/ocsp.go:15
↓ 3 callers
Function
Decode3BytesUint
(b [3]byte)
go/signedexchange/internal/bigendian/bigendianint.go:24
↓ 3 callers
Method
Encode
Encode encodes s as a CBOR item.
go/bundle/signature/signer.go:47
↓ 3 callers
Method
Finalize
(ver version.Version)
go/bundle/encoder.go:112
↓ 3 callers
Function
FindSection
(sos []sectionOffset, name string)
go/bundle/decoder.go:31
↓ 3 callers
Method
GetPublicKey
()
go/integrityblock/signing-strategy-interface.go:9
↓ 3 callers
Method
HeaderSha256
()
go/bundle/encoder.go:63
↓ 3 callers
Method
MiceEncoding
()
go/signedexchange/version/version.go:67
↓ 3 callers
Function
NewParsedEd25519KeySigningStrategy
(ed25519privKey ed25519.PrivateKey)
go/integrityblock/parsed-ed25519-key-signing-strategy.go:13
↓ 3 callers
Function
ParseParameterisedList
ParseParameterisedList parses input as a Parameterised List. https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2
go/signedexchange/structuredheader/parser.go:91
↓ 3 callers
Function
SigningAlgorithmForPrivateKey
(pk crypto.PrivateKey, rand io.Reader)
go/internal/signingalgorithm/signingalgorithm.go:49
↓ 3 callers
Method
SupportsVariants
()
go/bundle/version/version.go:110
↓ 3 callers
Method
UpdateSignatures
UpdateSignatures updates bundle.Signatures by adding the cert chain and the signature of exchanges added with AddExchange.
go/bundle/signature/signer.go:138
↓ 3 callers
Function
VerifierForPublicKey
(k crypto.PublicKey)
go/internal/signingalgorithm/signingalgorithm.go:88
↓ 3 callers
Function
WebBundleHasIntegrityBlock
WebBundleHasIntegrityBlock is a helper function that can be called with any file path to check if it has an integrtiy block. Basically this checks if
go/integrityblock/integrityblock.go:211
↓ 3 callers
Method
addNewSignatureToIntegrityBlock
(signatureAttributes SignatureAttributesMap, signature []byte)
go/integrityblock/integrityblock.go:158
↓ 3 callers
Function
calcWebBundleHash
(webBundle: Uint8Array)
js/sign/src/utils/utils.ts:179
↓ 3 callers
Function
calculateCertSha256
(certs []*x509.Certificate)
go/signedexchange/signer.go:45
↓ 3 callers
Method
cborBytes
cborBytes writes the integrity signature as CBOR using the given encoder containing the signature attributes and the signature.
go/integrityblock/integrityblock.go:56
↓ 3 callers
Function
checkDeterministic
(input: Uint8Array)
js/sign/src/cbor/deterministic.ts:14
↓ 3 callers
Function
createTestSigner
(t *testing.T)
go/bundle/signature/signer_test.go:71
↓ 3 callers
Function
deterministicRec
(input: Uint8Array, index: number)
js/sign/src/cbor/deterministic.ts:29
↓ 3 callers
Function
deterministicRec
deterministicRec is a recursively called helper function to check the deterministicy of a bytes array. TODO(sonkkeli): Recursively called parts will b
go/internal/cbor/deterministic.go:29
↓ 3 callers
Method
encodeExchangeHeaders
draft-yasskin-http-origin-signed-responses.html#rfc.section.3.4
go/signedexchange/signedexchange.go:213
↓ 3 callers
Function
getOutputPath
( bundlePath: string, options: { inPlace?: boolean; output?: string } )
js/sign/src/cli-sign.ts:27
↓ 3 callers
Method
getPublicKey
()
js/sign/src/signers/signing-strategy-interface.ts:5
↓ 3 callers
Method
getSignatureStack
()
js/sign/src/core/integrity-block.ts:157
↓ 3 callers
Method
getWebBundleId
()
js/sign/src/core/integrity-block.ts:136
↓ 3 callers
Function
isApprovedVersion
(param: any)
js/bundle/src/constants.ts:7
↓ 3 callers
Function
isLCAlpha
(c byte)
go/signedexchange/structuredheader/parser.go:320
↓ 3 callers
Function
normalizeHeaderValues
(values []string)
go/bundle/encoder.go:22
↓ 3 callers
Method
numberOfPossibleKeys
()
go/bundle/encoder.go:306
↓ 3 callers
Method
parseItem
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.7
go/signedexchange/structuredheader/parser.go:199
↓ 3 callers
Function
parsePemKey
( unparsedKey: string | Buffer<ArrayBufferLike>, passphrase?: string )
js/sign/src/utils/utils.ts:14
↓ 3 callers
Method
parseToken
https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2.10
go/signedexchange/structuredheader/parser.go:274
↓ 3 callers
Function
parseVariants
(s string)
go/bundle/encoder.go:301
↓ 3 callers
Method
removeSignature
(publicKey: Uint8Array)
js/sign/src/core/signed-web-bundle.ts:74
↓ 3 callers
Function
serializeSignedMessage
(e *Exchange, certSha256 []byte, validityUrl string, date, expires int64)
go/signedexchange/signer.go:55
↓ 3 callers
Method
serializeWithIsolatedWebAppOrigin
()
js/sign/src/web-bundle-id.ts:58
↓ 2 callers
Method
ComputeHeaderIntegrity
()
go/signedexchange/signedexchange.go:518
↓ 2 callers
Function
DecodeAugmentedCertificateFrom
DecodeAugmentedCertificateFrom decodes an augmented-certificate CBOR item from dec and returns it as an AugmentedCertificate.
go/signedexchange/certurl/certchain.go:158
↓ 2 callers
Method
EncodeHeader
()
go/bundle/encoder.go:40
↓ 2 callers
Method
EncodeTo
EncodeTo encodes ac as an augmented-certificate CBOR item.
go/signedexchange/certurl/certchain.go:89
↓ 2 callers
Function
GenerateDataToBeSigned
GenerateDataToBeSigned creates a bytes array containing the payload of which the signature of the web bundle will be calculated. The order must be the
go/integrityblock/integrityblock.go:186
↓ 2 callers
Method
MiceEncoding
()
go/bundle/version/version.go:86
↓ 2 callers
Function
NewSigner
(ver version.Version, certs certurl.CertChain, privKey crypto.PrivateKey, validityUrl *url.URL, date time.Time
go/bundle/signature/signer.go:91
↓ 2 callers
Function
Parse
(str string)
go/signedexchange/version/version.go:26
↓ 2 callers
Function
ParseListOfLists
ParseListOfLists parses input as a List of Lists. https://tools.ietf.org/html/draft-ietf-httpbis-header-structure-09#section-4.2
go/signedexchange/structuredheader/parser.go:75
↓ 2 callers
Method
ReadByte
()
go/internal/cbor/decoder.go:18
↓ 2 callers
Function
ReadExchange
(r io.Reader)
go/signedexchange/signedexchange.go:453
↓ 2 callers
Method
Set
(value string)
go/bundle/cmd/gen-bundle/main.go:21
↓ 2 callers
Method
Set
(value string)
go/signedexchange/cmd/gen-signedexchange/main.go:28
↓ 2 callers
Method
String
()
go/bundle/bundle.go:25
↓ 2 callers
Method
SupportsSignatures
TODO: consider changing this also to only version B1, as the signatures section is not a part of the main spec anymore. Currently returns true as both
go/bundle/version/version.go:118
↓ 2 callers
Method
Validate
Validate performs basic sanity checks on the bundle.
go/bundle/bundle.go:77
↓ 2 callers
Method
Validate
Validate performs basic sanity checks on the cert chain. It returns nil if the chain is valid, or else an error describing a problem.
go/signedexchange/certurl/certchain.go:49
↓ 2 callers
Function
addFile
( builder: BundleBuilder, url: string, file: string, overrideHeaders: Headers | undefined )
js/bundle/src/cli.ts:19
↓ 2 callers
Function
asNumber
(x: unknown)
js/bundle/src/decoder.ts:253
↓ 2 callers
Method
base64Encoding
()
go/signedexchange/mice/mice.go:59
↓ 2 callers
Method
cborBytes
cborBytes writes the signature attributes map as CBOR using the given encoder so that the map's key is text string and value byte string.
go/integrityblock/integrityblock.go:40
↓ 2 callers
Function
checkIsValidKey
( expectedKeyType: crypto.KeyObjectType, key: KeyObject )
js/sign/src/utils/utils.ts:110
↓ 2 callers
Function
combineHeadersForUrl
( headers: Headers, overrideHeadersOption: OverrideHeadersOption, url: string )
js/bundle/src/encoder.ts:301
↓ 2 callers
Function
contextString
(v version.Version)
go/signedexchange/signer.go:20
↓ 2 callers
Function
convertToNonDeterministicUintHelper
( deterministicUintBytes, firstByte )
js/sign/tests/deterministic_test.js:360
↓ 2 callers
Function
convertToNonDeterministicUintHelper
Helper functions:
go/internal/cbor/deterministic_test.go:309
↓ 2 callers
Function
createCertChain
(t *testing.T)
go/signedexchange/certurl/certchain_test.go:13
↓ 2 callers
Function
createTestBundle
(t *testing.T, ver version.Version)
go/bundle/bundle_test.go:37
↓ 2 callers
Function
createTestCertChain
(t *testing.T)
go/bundle/signature/signer_test.go:59
↓ 2 callers
Function
createTestSuffix
(publicKey)
js/sign/tests/integrity-block-signer_test.js:81
↓ 2 callers
Method
decodeBytesOfType
(expected Type)
go/internal/cbor/decoder.go:94
↓ 2 callers
Method
encodeBytes
(t Type, bs []byte)
go/internal/cbor/encoder.go:90
↓ 2 callers
Function
encodeHeaders
(encs []*cbor.MapEntryEncoder, headers http.Header)
go/signedexchange/signedexchange.go:171
← previous
next →
101–200 of 591, ranked by callers