1 /* SHA256 using sparc crypto opcodes.
2 Copyright (C) 2012-2015 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Contributed by David S. Miller (davem@davemloft.net)
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
27 ENTRY(__sha256_process_block_crop)
28 /* %o0=buffer, %o1=len, %o2=CTX */
46 ldd [%o0 + 0x08], %f10
47 ldd [%o0 + 0x10], %f12
48 ldd [%o0 + 0x18], %f14
49 ldd [%o0 + 0x20], %f16
50 ldd [%o0 + 0x28], %f18
51 ldd [%o0 + 0x30], %f20
52 ldd [%o0 + 0x38], %f22
71 alignaddr %o0, %g0, %o0
73 ldd [%o0 + 0x00], %f10
75 ldd [%o0 + 0x08], %f12
76 ldd [%o0 + 0x10], %f14
77 ldd [%o0 + 0x18], %f16
78 ldd [%o0 + 0x20], %f18
79 ldd [%o0 + 0x28], %f20
80 ldd [%o0 + 0x30], %f22
81 ldd [%o0 + 0x38], %f24
82 ldd [%o0 + 0x40], %f26
84 faligndata %f10, %f12, %f8
85 faligndata %f12, %f14, %f10
86 faligndata %f14, %f16, %f12
87 faligndata %f16, %f18, %f14
88 faligndata %f18, %f20, %f16
89 faligndata %f20, %f22, %f18
90 faligndata %f22, %f24, %f20
91 faligndata %f24, %f26, %f22
101 END(__sha256_process_block_crop)