Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2013 Alexey Degtyarev <alexey@renatasystems.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (c) 2018 Vitaly Chikunov <vt@altlinux.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * This program is free software; you can redistribute it and/or modify it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * under the terms of the GNU General Public License as published by the Free
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * Software Foundation; either version 2 of the License, or (at your option)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * any later version.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef _CRYPTO_STREEBOG_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define _CRYPTO_STREEBOG_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define STREEBOG256_DIGEST_SIZE	32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define STREEBOG512_DIGEST_SIZE	64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define STREEBOG_BLOCK_SIZE	64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct streebog_uint512 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	__le64 qword[8];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct streebog_state {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	union {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		u8 buffer[STREEBOG_BLOCK_SIZE];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		struct streebog_uint512 m;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	struct streebog_uint512 hash;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	struct streebog_uint512 h;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	struct streebog_uint512 N;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	struct streebog_uint512 Sigma;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	size_t fillsize;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #endif /* !_CRYPTO_STREEBOG_H_ */