b1ceb439f2
Based originally on github.com/dfoxfranke/libaes_siv This creates an SIV128 mode that uses EVP interfaces for the CBC, CTR and CMAC code to reduce complexity at the cost of perfomance. The expected use is for short inputs, not TLS-sized records. Add multiple AAD input capacity in the EVP tests. Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/3540)
26 lines
757 B
Perl
26 lines
757 B
Perl
#! /usr/bin/env perl
|
|
# Copyright 2015-2018 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 data_file/;
|
|
|
|
setup("test_evp");
|
|
|
|
my @files = ( "evpciph.txt", "evpdigest.txt", "evpencod.txt", "evpkdf.txt",
|
|
"evpmac.txt", "evppbe.txt", "evppkey.txt", "evppkey_ecc.txt",
|
|
"evpcase.txt", "evpaessiv.txt" );
|
|
|
|
plan tests => scalar(@files);
|
|
|
|
foreach my $f ( @files ) {
|
|
ok(run(test(["evp_test", data_file("$f")])),
|
|
"running evp_test $f");
|
|
}
|