generateEmptyIntegrityBlock creates an empty integrity block which does not have any integrity signatures in the signature stack yet.
()
| 98 | |
| 99 | // generateEmptyIntegrityBlock creates an empty integrity block which does not have any integrity signatures in the signature stack yet. |
| 100 | func generateEmptyIntegrityBlock() *IntegrityBlock { |
| 101 | var integritySignatures []*IntegritySignature |
| 102 | |
| 103 | integrityBlock := &IntegrityBlock{ |
| 104 | Magic: IntegrityBlockMagic, |
| 105 | Version: VersionB1, |
| 106 | SignatureStack: integritySignatures, |
| 107 | } |
| 108 | return integrityBlock |
| 109 | } |
| 110 | |
| 111 | // readWebBundlePayloadLength returns the length of the web bundle parsed from the last 8 bytes of the web bundle file. |
| 112 | // [Web Bundle's Trailing Length]: https://wpack-wg.github.io/bundled-responses/draft-ietf-wpack-bundled-responses.html#name-trailing-length |
no outgoing calls