Latest update.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
#! /usr/bin/env perl
|
||||
# Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
# this file except in compliance with the License. You can obtain a copy
|
||||
# in the file LICENSE in the source distribution or at
|
||||
# https://www.openssl.org/source/license.html
|
||||
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use OpenSSL::Test qw/:DEFAULT bldtop_dir/;
|
||||
use OpenSSL::Test::Utils;
|
||||
|
||||
setup("test_mdc2");
|
||||
|
||||
if (disabled("mdc2") || disabled("legacy")) {
|
||||
plan skip_all => "mdc2 is not supported by this OpenSSL build";
|
||||
}
|
||||
|
||||
plan tests => 1;
|
||||
|
||||
ok(run(test(["mdc2test"])), "running mdc2test");
|
||||
@@ -70,6 +70,9 @@ push @defltfiles, @bffiles unless disabled("bf");
|
||||
my @bffiles = qw( evpmd_md2.txt );
|
||||
push @defltfiles, @bffiles unless disabled("md2");
|
||||
|
||||
my @bffiles = qw( evpmd_mdc2.txt );
|
||||
push @defltfiles, @bffiles unless disabled("mdc2");
|
||||
|
||||
plan tests =>
|
||||
($no_fips ? 0 : 1) # FIPS install test
|
||||
+ (scalar(@configs) * scalar(@files))
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
# this file except in compliance with the License. You can obtain a copy
|
||||
# in the file LICENSE in the source distribution or at
|
||||
# https://www.openssl.org/source/license.html
|
||||
|
||||
|
||||
Title = MDC2 test vectors
|
||||
|
||||
Digest = MDC2
|
||||
Availablein = default
|
||||
Input = "Now is the time for all "
|
||||
Output = 42e50cd224baceba760bdd2bd409281a
|
||||
|
||||
Digest = MDC2
|
||||
Availablein = default
|
||||
Padding = 1
|
||||
Input = "Now is the time for all "
|
||||
Output = 42e50cd224baceba760bdd2bd409281a
|
||||
|
||||
Digest = MDC2
|
||||
Availablein = default
|
||||
Padding = 2
|
||||
Input = "Now is the time for all "
|
||||
Output = 2e4679b5add9ca7535d87afeab33bee2
|
||||
Reference in New Issue
Block a user