]> git.ipfire.org Git - thirdparty/openssl.git/blob - include/crypto/des_platform.h
Update copyright year
[thirdparty/openssl.git] / include / crypto / des_platform.h
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_DES_PLATFORM_H
11 # define OSSL_DES_PLATFORM_H
12 # pragma once
13
14 # if defined(DES_ASM) && (defined(__sparc) || defined(__sparc__))
15
16 /* Fujitsu SPARC64 X support */
17 extern unsigned int OPENSSL_sparcv9cap_P[];
18 # include "sparc_arch.h"
19
20 # ifndef OPENSSL_NO_DES
21 # define SPARC_DES_CAPABLE (OPENSSL_sparcv9cap_P[1] & CFR_DES)
22 # include <openssl/des.h>
23 void des_t4_key_expand(const void *key, DES_key_schedule *ks);
24 void des_t4_ede3_cbc_encrypt(const void *inp, void *out, size_t len,
25 const DES_key_schedule ks[3], unsigned char iv[8]);
26 void des_t4_ede3_cbc_decrypt(const void *inp, void *out, size_t len,
27 const DES_key_schedule ks[3], unsigned char iv[8]);
28 void des_t4_cbc_encrypt(const void *inp, void *out, size_t len,
29 const DES_key_schedule *ks, unsigned char iv[8]);
30 void des_t4_cbc_decrypt(const void *inp, void *out, size_t len,
31 const DES_key_schedule *ks, unsigned char iv[8]);
32 # endif /* OPENSSL_NO_DES */
33
34 # endif /* DES_ASM && sparc */
35
36 #endif /* OSSL_CRYPTO_CIPHERMODE_PLATFORM_H */