VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/include/crypto/cmll_platform.h@ 98133

最後變更 在這個檔案從98133是 97984,由 vboxsync 提交於 2 年 前

libs/openssl-3.0.7: Shut up pragma once warnings for internal headers. Added sed script for doing that. bugref:10317

檔案大小: 2.5 KB
 
1/*
2 * Copyright 2019-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#ifndef OSSL_CMLL_PLATFORM_H
11# define OSSL_CMLL_PLATFORM_H
12# ifndef RT_WITHOUT_PRAGMA_ONCE /* VBOX */
13# pragma once
14# endif /* VBOX */
15
16# if defined(CMLL_ASM) && (defined(__sparc) || defined(__sparc__))
17
18/* Fujitsu SPARC64 X support */
19# include "crypto/sparc_arch.h"
20
21# ifndef OPENSSL_NO_CAMELLIA
22# define SPARC_CMLL_CAPABLE (OPENSSL_sparcv9cap_P[1] & CFR_CAMELLIA)
23# include <openssl/camellia.h>
24
25void cmll_t4_set_key(const unsigned char *key, int bits, CAMELLIA_KEY *ks);
26void cmll_t4_encrypt(const unsigned char *in, unsigned char *out,
27 const CAMELLIA_KEY *key);
28void cmll_t4_decrypt(const unsigned char *in, unsigned char *out,
29 const CAMELLIA_KEY *key);
30
31void cmll128_t4_cbc_encrypt(const unsigned char *in, unsigned char *out,
32 size_t len, const CAMELLIA_KEY *key,
33 unsigned char *ivec, int /*unused*/);
34void cmll128_t4_cbc_decrypt(const unsigned char *in, unsigned char *out,
35 size_t len, const CAMELLIA_KEY *key,
36 unsigned char *ivec, int /*unused*/);
37void cmll256_t4_cbc_encrypt(const unsigned char *in, unsigned char *out,
38 size_t len, const CAMELLIA_KEY *key,
39 unsigned char *ivec, int /*unused*/);
40void cmll256_t4_cbc_decrypt(const unsigned char *in, unsigned char *out,
41 size_t len, const CAMELLIA_KEY *key,
42 unsigned char *ivec, int /*unused*/);
43void cmll128_t4_ctr32_encrypt(const unsigned char *in, unsigned char *out,
44 size_t blocks, const CAMELLIA_KEY *key,
45 unsigned char *ivec);
46void cmll256_t4_ctr32_encrypt(const unsigned char *in, unsigned char *out,
47 size_t blocks, const CAMELLIA_KEY *key,
48 unsigned char *ivec);
49# endif /* OPENSSL_NO_CAMELLIA */
50
51# endif /* CMLL_ASM && sparc */
52
53#endif /* OSSL_CRYPTO_CIPHERMODE_PLATFORM_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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