Attempt to decode a ASN.1 `SEQUENCE` from the given decoder, returning the entire sequence including the header.
(decoder: &mut SliceReader<'a>)
| 332 | /// Attempt to decode a ASN.1 `SEQUENCE` from the given decoder, returning the |
| 333 | /// entire sequence including the header. |
| 334 | fn decode_sequence<'a>(decoder: &mut SliceReader<'a>) -> Result<&'a [u8]> { |
| 335 | let header = decoder.peek_header()?; |
| 336 | header.tag.assert_eq(Tag::Sequence)?; |
| 337 | |
| 338 | let len = (header.encoded_len()? + header.length)?; |
| 339 | decoder.read_slice(len) |
| 340 | } |
| 341 | |
| 342 | /// Write a file containing secret data to the filesystem, restricting the |
| 343 | /// file permissions so it's only readable by the owner |
no test coverage detected