INNER CODE UNIT · Rust

test_parse_aes_key_schedule

ethereum/mpz · crates/circuits-data/src/lib.rs:109

    fn test_parse_aes_key_schedule() {
        let (key, expected_ks, _, _) = aes_vectors();
        let ks: [u8; 176] = evaluate!(AES128_KS, key).unwrap();
        assert_eq!(expected_ks, ks);
    }

    #[test]
    #[cfg(feature = "aes")]
    #[ignore = "expensive"]
    fn test_parse_aes_post_key_schedule() {
        let (_, ks, msg, expected_out) = aes_vectors();
        let output: [u8; 16] = evaluate!(AES128_POST_KS, ks, msg).unwrap();
        assert_eq!(expected_out, output);
    }

    #[test]
    #[cfg(feature = "sha2")]
    fn test_sha256_compress() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…