Skip to content

Commit

Permalink
Remove ring from test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvkv committed May 9, 2024
1 parent 4c91be7 commit bc52dc8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit bc52dc8

Please sign in to comment.