VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.7/crypto/sha/sha_ppc.c@ 107935

Last change on this file since 107935 was 104078, checked in by vboxsync, 11 months ago

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

File size: 1.2 KB
Line 
1/*
2 * Copyright 2009-2021 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#include <stdlib.h>
11#include <string.h>
12
13#include <openssl/opensslconf.h>
14#include <openssl/sha.h>
15#include "crypto/ppc_arch.h"
16
17void sha256_block_p8(void *ctx, const void *inp, size_t len);
18void sha256_block_ppc(void *ctx, const void *inp, size_t len);
19void sha256_block_data_order(void *ctx, const void *inp, size_t len);
20void sha256_block_data_order(void *ctx, const void *inp, size_t len)
21{
22 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha256_block_p8(ctx, inp, len) :
23 sha256_block_ppc(ctx, inp, len);
24}
25
26void sha512_block_p8(void *ctx, const void *inp, size_t len);
27void sha512_block_ppc(void *ctx, const void *inp, size_t len);
28void sha512_block_data_order(void *ctx, const void *inp, size_t len);
29void sha512_block_data_order(void *ctx, const void *inp, size_t len)
30{
31 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha512_block_p8(ctx, inp, len) :
32 sha512_block_ppc(ctx, inp, len);
33}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette