]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/crypto/des_platform.h
Split bignum code out of the sparcv9cap.c
[thirdparty/openssl.git] / include / crypto / des_platform.h
CommitLineData
c0d47492 1/*
a28d06f3 2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
c0d47492
RL
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_DES_PLATFORM_H
11# define OSSL_DES_PLATFORM_H
80ce21fe 12# pragma once
c0d47492
RL
13
14# if defined(DES_ASM) && (defined(__sparc) || defined(__sparc__))
15
16/* Fujitsu SPARC64 X support */
52f7e44e 17# include "crypto/sparc_arch.h"
c0d47492
RL
18
19# ifndef OPENSSL_NO_DES
20# define SPARC_DES_CAPABLE (OPENSSL_sparcv9cap_P[1] & CFR_DES)
21# include <openssl/des.h>
22void des_t4_key_expand(const void *key, DES_key_schedule *ks);
23void des_t4_ede3_cbc_encrypt(const void *inp, void *out, size_t len,
24 const DES_key_schedule ks[3], unsigned char iv[8]);
25void des_t4_ede3_cbc_decrypt(const void *inp, void *out, size_t len,
26 const DES_key_schedule ks[3], unsigned char iv[8]);
27void des_t4_cbc_encrypt(const void *inp, void *out, size_t len,
28 const DES_key_schedule *ks, unsigned char iv[8]);
29void des_t4_cbc_decrypt(const void *inp, void *out, size_t len,
30 const DES_key_schedule *ks, unsigned char iv[8]);
31# endif /* OPENSSL_NO_DES */
32
33# endif /* DES_ASM && sparc */
34
35#endif /* OSSL_CRYPTO_CIPHERMODE_PLATFORM_H */