#! /usr/bin/env perl # Copyright 2020-2021 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 package OpenSSL::stackhash; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(generate_stack_macros generate_const_stack_macros generate_stack_string_macros generate_stack_const_string_macros generate_stack_block_macros generate_lhash_macros); sub generate_stack_macros_int { my $nametype = shift; my $realtype = shift; my $plaintype = shift; my $macros = <