diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-07 15:13:01 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-09 11:09:26 +0100 |
commit | 10eab320a5e4b585f640b5f11d21eebaebb1814a (patch) | |
tree | 52de7bdf5f4af82815f76f35e0b624bd190fdebb /crypto/bf/asm | |
parent | 71a07ca7bf207ccc795330441da76b02c7261091 (diff) |
Unified - adapt the generation of blowfish assembler to use GENERATE
This gets rid of the BEGINRAW..ENDRAW sections in crypto/bf/build.info.
This also moves the assembler generating perl scripts to take the
output file name as last command line argument, where necessary.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/bf/asm')
-rw-r--r-- | crypto/bf/asm/bf-586.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/bf/asm/bf-586.pl b/crypto/bf/asm/bf-586.pl index b74cfbafd4..319a638754 100644 --- a/crypto/bf/asm/bf-586.pl +++ b/crypto/bf/asm/bf-586.pl @@ -5,6 +5,9 @@ push(@INC,"${dir}","${dir}../../perlasm"); require "x86asm.pl"; require "cbc.pl"; +$output = pop; +open STDOUT,">$output"; + &asm_init($ARGV[0],"bf-586.pl",$ARGV[$#ARGV] eq "386"); $BF_ROUNDS=16; @@ -22,6 +25,8 @@ $tmp4="edx"; &cbc("BF_cbc_encrypt","BF_encrypt","BF_decrypt",1,4,5,3,-1,-1); &asm_finish(); +close STDOUT; + sub BF_encrypt { local($name,$enc)=@_; |