Diff
Not logged in

Differences From Artifact [54d14b91ad]:

To Artifact [3da8198059]:


62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
                let _ = unwrap!(r.read_line(&mut line));
                let rawmsg = unwrap!(line[6..].from_hex());
                let msg = &rawmsg[..len / 8];
                line.clear();
                let _ = unwrap!(r.read_line(&mut line));
                let md = unwrap!(line[5..].from_hex());
                let Digest(digest) = hash(msg);
                assert!(&digest[..] == &md[..]);
            }
        }
    }

    #[test]
    fn test_vectors_nist_short() {
        test_nist_vector("testvectors/SHA256ShortMsg.rsp");







|







62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
                let _ = unwrap!(r.read_line(&mut line));
                let rawmsg = unwrap!(line[6..].from_hex());
                let msg = &rawmsg[..len / 8];
                line.clear();
                let _ = unwrap!(r.read_line(&mut line));
                let md = unwrap!(line[5..].from_hex());
                let Digest(digest) = hash(msg);
                assert!(digest[..] == md[..]);
            }
        }
    }

    #[test]
    fn test_vectors_nist_short() {
        test_nist_vector("testvectors/SHA256ShortMsg.rsp");