4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
27 .register %g2,#scratch
28 .register %g3,#scratch
30 .section ".text",#alloc,#execinstr
31 .file "arcfour_crypt_asm.s"
33 .section ".text",#alloc
36 .section ".text",#alloc,#execinstr
41 * SUBROUTINE arcfour_crypt_aligned
43 * void arcfour_crypt_aligned(ARCFour_key *key, size_t len,
44 * uchar_t *in, uchar_t *out);
46 * in and out should be aligned on an 8-byte boundary, but len can be anything
48 .global arcfour_crypt_aligned
51 arcfour_crypt_aligned
:
103 ldub
[%i5
+ %o1
], %o3
106 ldub
[%i5
+ %g1
], %g3
109 ldub
[%i5
+ %g5
], %g5
115 ldub
[%i5
+ %o2
], %o4
127 ldub
[%i5
+ %g2
], %g4
129 ldub
[%i5
+ %o5
], %o5
142 ldub
[%i5
+ %o1
], %o3
145 ldub
[%i5
+ %g1
], %g3
149 ldub
[%i5
+ %g5
], %g5
155 ldub
[%i5
+ %o2
], %o4
167 ldub
[%i5
+ %g2
], %g4
169 ldub
[%i5
+ %o5
], %o5
182 ldub
[%i5
+ %o1
], %o3
186 ldub
[%i5
+ %g1
], %g3
190 ldub
[%i5
+ %g5
], %g5
197 ldub
[%i5
+ %o2
], %o4
209 ldub
[%i5
+ %g2
], %g4
213 ldub
[%i5
+ %o5
], %o5
227 ldub
[%i5
+ %o1
], %o3
230 ldub
[%i5
+ %g1
], %g3
233 ldub
[%i5
+ %g5
], %g5
241 ldub
[%i5
+ %o2
], %o4
252 ldub
[%i5
+ %g2
], %g4
254 ldub
[%i5
+ %o5
], %o5
267 ldub
[%i5
+ %o1
], %o3
271 ldub
[%i5
+ %g1
], %g3
274 ldub
[%i5
+ %g5
], %g5
281 ldub
[%i5
+ %o2
], %o4
293 ldub
[%i5
+ %g2
], %g4
297 ldub
[%i5
+ %o5
], %o5
310 ldub
[%i5
+ %o1
], %o3
313 ldub
[%i5
+ %g1
], %g3
317 ldub
[%i5
+ %g5
], %g5
323 ldub
[%i5
+ %o2
], %o4
335 ldub
[%i5
+ %g2
], %g4
337 ldub
[%i5
+ %o5
], %o5
350 ldub
[%i5
+ %o1
], %o3
354 ldub
[%i5
+ %g1
], %g3
358 ldub
[%i5
+ %g5
], %g5
365 ldub
[%i5
+ %o2
], %o4
377 ldub
[%i5
+ %g2
], %g4
381 ldub
[%i5
+ %o5
], %o5
395 ldub
[%i5
+ %g5
], %g5
427 ldub
[%i5
+ %g1
], %g3
433 ldub
[%i5
+ %g2
], %g4
444 ldub
[%i5
+ %g5
], %g5
509 .type arcfour_crypt_aligned,2
510 .size arcfour_crypt_aligned,(. - arcfour_crypt_aligned)