diff --git a/src/cert.rs b/src/cert.rs index 908bc6b5..d60a7911 100644 --- a/src/cert.rs +++ b/src/cert.rs @@ -386,8 +386,13 @@ mod tests { // How did I get this lovely string of hex bytes? // openssl x509 -in tests/ed25519/ee.der -pubkey -noout > pubkey.pem // openssl ec -pubin -in pubkey.pem -outform DER -out pubkey.der - // xxd -plain -cols 999 pubkey.der - let expected_spki = ring::test::from_hex("302a300506032b6570032100fe5a1e366c17275bf1581e3a0ee656298d9e1b3fd33f9646efbf046bc73d475c").expect("invalid hex string"); + // xxd -plain -cols 1 pubkey.der + let expected_spki = [ + 0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x03, 0x21, 0x00, 0xfe, 0x5a, + 0x1e, 0x36, 0x6c, 0x17, 0x27, 0x5b, 0xf1, 0x58, 0x1e, 0x3a, 0x0e, 0xe6, 0x56, 0x29, + 0x8d, 0x9e, 0x1b, 0x3f, 0xd3, 0x3f, 0x96, 0x46, 0xef, 0xbf, 0x04, 0x6b, 0xc7, 0x3d, + 0x47, 0x5c, + ]; assert_eq!(expected_spki, *cert.subject_public_key_info()) }