pub struct TestCase { /* fields omitted */ }
A test case. A test case consists of a set of named attributes. Every
attribute in the test case must be consumed exactly once; this helps catch
typos and omissions.
Maps the strings "SHA1", "SHA256", "SHA384", and "SHA512" to digest
algorithms, maps "SHA224" to None
, and panics on other (erroneous)
inputs. "SHA224" is mapped to None because ring intentionally does
not support SHA224, but we need to consume test vectors from NIST that
have SHA224 vectors in them.
Returns the value of an attribute that is encoded as a sequence of an
even number of hex digits, or as a double-quoted UTF-8 string. The
empty (zero-length) value is represented as "".
Returns the value of an attribute that is an integer, in decimal
notation.
Returns the value of an attribute that is an integer, in decimal
notation, as a bit length.
Returns the raw value of an attribute, without any unquoting or
other interpretation.
Like consume_string()
except it returns None
if the test case
doesn't have the attribute.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static