mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
AppleM1: Update openssl to v1.1.1l
This commit is contained in:
parent
1fe12b8e8c
commit
b787656eea
990 changed files with 13406 additions and 18710 deletions
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env perl
|
||||
# Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the OpenSSL license (the "License"). You may not use
|
||||
# this file except in compliance with the License. You can obtain a copy
|
||||
|
@ -1147,4 +1147,4 @@ my ($s0,$s1,$s2,$s3) = @T;
|
|||
|
||||
&asm_finish();
|
||||
|
||||
close STDOUT;
|
||||
close STDOUT or die "error closing STDOUT: $!";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env perl
|
||||
# Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the OpenSSL license (the "License"). You may not use
|
||||
# this file except in compliance with the License. You can obtain a copy
|
||||
|
@ -125,11 +125,13 @@ $code=<<___;
|
|||
.type Camellia_EncryptBlock,\@abi-omnipotent
|
||||
.align 16
|
||||
Camellia_EncryptBlock:
|
||||
.cfi_startproc
|
||||
movl \$128,%eax
|
||||
subl $arg0d,%eax
|
||||
movl \$3,$arg0d
|
||||
adcl \$0,$arg0d # keyBitLength==128?3:4
|
||||
jmp .Lenc_rounds
|
||||
.cfi_endproc
|
||||
.size Camellia_EncryptBlock,.-Camellia_EncryptBlock
|
||||
# V2
|
||||
.globl Camellia_EncryptBlock_Rounds
|
||||
|
@ -198,6 +200,7 @@ Camellia_EncryptBlock_Rounds:
|
|||
.type _x86_64_Camellia_encrypt,\@abi-omnipotent
|
||||
.align 16
|
||||
_x86_64_Camellia_encrypt:
|
||||
.cfi_startproc
|
||||
xor 0($key),@S[1]
|
||||
xor 4($key),@S[0] # ^=key[0-3]
|
||||
xor 8($key),@S[3]
|
||||
|
@ -241,6 +244,7 @@ $code.=<<___;
|
|||
mov $t3,@S[3]
|
||||
|
||||
.byte 0xf3,0xc3 # rep ret
|
||||
.cfi_endproc
|
||||
.size _x86_64_Camellia_encrypt,.-_x86_64_Camellia_encrypt
|
||||
|
||||
# V1.x API
|
||||
|
@ -248,11 +252,13 @@ $code.=<<___;
|
|||
.type Camellia_DecryptBlock,\@abi-omnipotent
|
||||
.align 16
|
||||
Camellia_DecryptBlock:
|
||||
.cfi_startproc
|
||||
movl \$128,%eax
|
||||
subl $arg0d,%eax
|
||||
movl \$3,$arg0d
|
||||
adcl \$0,$arg0d # keyBitLength==128?3:4
|
||||
jmp .Ldec_rounds
|
||||
.cfi_endproc
|
||||
.size Camellia_DecryptBlock,.-Camellia_DecryptBlock
|
||||
# V2
|
||||
.globl Camellia_DecryptBlock_Rounds
|
||||
|
@ -321,6 +327,7 @@ Camellia_DecryptBlock_Rounds:
|
|||
.type _x86_64_Camellia_decrypt,\@abi-omnipotent
|
||||
.align 16
|
||||
_x86_64_Camellia_decrypt:
|
||||
.cfi_startproc
|
||||
xor 0($key),@S[1]
|
||||
xor 4($key),@S[0] # ^=key[0-3]
|
||||
xor 8($key),@S[3]
|
||||
|
@ -365,6 +372,7 @@ $code.=<<___;
|
|||
mov $t1,@S[3]
|
||||
|
||||
.byte 0xf3,0xc3 # rep ret
|
||||
.cfi_endproc
|
||||
.size _x86_64_Camellia_decrypt,.-_x86_64_Camellia_decrypt
|
||||
___
|
||||
|
||||
|
@ -1142,4 +1150,4 @@ ___
|
|||
|
||||
$code =~ s/\`([^\`]*)\`/eval $1/gem;
|
||||
print $code;
|
||||
close STDOUT;
|
||||
close STDOUT or die "error closing STDOUT: $!";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env perl
|
||||
# Copyright 2012-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2012-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the OpenSSL license (the "License"). You may not use
|
||||
# this file except in compliance with the License. You can obtain a copy
|
||||
|
@ -936,4 +936,4 @@ ___
|
|||
|
||||
&emit_assembler();
|
||||
|
||||
close STDOUT;
|
||||
close STDOUT or die "error closing STDOUT: $!";
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <openssl/camellia.h>
|
||||
#include "cmll_locl.h"
|
||||
#include "cmll_local.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
#include <openssl/camellia.h>
|
||||
#include "cmll_locl.h"
|
||||
#include "cmll_local.h"
|
||||
|
||||
void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out,
|
||||
const CAMELLIA_KEY *key, const int enc)
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
* to the OpenSSL project.
|
||||
*/
|
||||
|
||||
#ifndef HEADER_CAMELLIA_LOCL_H
|
||||
# define HEADER_CAMELLIA_LOCL_H
|
||||
#ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H
|
||||
# define OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H
|
||||
|
||||
typedef unsigned int u32;
|
||||
typedef unsigned char u8;
|
||||
|
@ -40,4 +40,4 @@ void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
|
|||
const KEY_TABLE_TYPE keyTable, u8 ciphertext[]);
|
||||
void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
|
||||
const KEY_TABLE_TYPE keyTable, u8 plaintext[]);
|
||||
#endif /* #ifndef HEADER_CAMELLIA_LOCL_H */
|
||||
#endif /* #ifndef OSSL_CRYPTO_CAMELLIA_CMLL_LOCAL_H */
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/camellia.h>
|
||||
#include "cmll_locl.h"
|
||||
#include "cmll_local.h"
|
||||
|
||||
int Camellia_set_key(const unsigned char *userKey, const int bits,
|
||||
CAMELLIA_KEY *key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue