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.
26 #if defined(lint) || defined(__lint)
32 arcfour_crypt_aligned
(ARCFour_key
*key
, size_t len
, uchar_t
*in
, uchar_t
*out
)
35 #else /* lint || __lint */
37 .register %g2,#scratch
38 .register %g3,#scratch
40 .section ".text",#alloc,#execinstr
41 .file "arcfour_crypt_asm.s"
43 .section ".text",#alloc
46 .section ".text",#alloc,#execinstr
51 * SUBROUTINE arcfour_crypt_aligned
53 * void arcfour_crypt_aligned(ARCFour_key *key, size_t len,
54 * uchar_t *in, uchar_t *out);
56 * in and out should be aligned on an 8-byte boundary, but len can be anything
58 .global arcfour_crypt_aligned
61 arcfour_crypt_aligned
:
100 ldub
[%i5
+ %o5
], %o5
113 ldub
[%i5
+ %o1
], %o3
116 ldub
[%i5
+ %g1
], %g3
119 ldub
[%i5
+ %g5
], %g5
125 ldub
[%i5
+ %o2
], %o4
137 ldub
[%i5
+ %g2
], %g4
139 ldub
[%i5
+ %o5
], %o5
152 ldub
[%i5
+ %o1
], %o3
155 ldub
[%i5
+ %g1
], %g3
159 ldub
[%i5
+ %g5
], %g5
165 ldub
[%i5
+ %o2
], %o4
177 ldub
[%i5
+ %g2
], %g4
179 ldub
[%i5
+ %o5
], %o5
192 ldub
[%i5
+ %o1
], %o3
196 ldub
[%i5
+ %g1
], %g3
200 ldub
[%i5
+ %g5
], %g5
207 ldub
[%i5
+ %o2
], %o4
219 ldub
[%i5
+ %g2
], %g4
223 ldub
[%i5
+ %o5
], %o5
237 ldub
[%i5
+ %o1
], %o3
240 ldub
[%i5
+ %g1
], %g3
243 ldub
[%i5
+ %g5
], %g5
251 ldub
[%i5
+ %o2
], %o4
262 ldub
[%i5
+ %g2
], %g4
264 ldub
[%i5
+ %o5
], %o5
277 ldub
[%i5
+ %o1
], %o3
281 ldub
[%i5
+ %g1
], %g3
284 ldub
[%i5
+ %g5
], %g5
291 ldub
[%i5
+ %o2
], %o4
303 ldub
[%i5
+ %g2
], %g4
307 ldub
[%i5
+ %o5
], %o5
320 ldub
[%i5
+ %o1
], %o3
323 ldub
[%i5
+ %g1
], %g3
327 ldub
[%i5
+ %g5
], %g5
333 ldub
[%i5
+ %o2
], %o4
345 ldub
[%i5
+ %g2
], %g4
347 ldub
[%i5
+ %o5
], %o5
360 ldub
[%i5
+ %o1
], %o3
364 ldub
[%i5
+ %g1
], %g3
368 ldub
[%i5
+ %g5
], %g5
375 ldub
[%i5
+ %o2
], %o4
387 ldub
[%i5
+ %g2
], %g4
391 ldub
[%i5
+ %o5
], %o5
405 ldub
[%i5
+ %g5
], %g5
437 ldub
[%i5
+ %g1
], %g3
443 ldub
[%i5
+ %g2
], %g4
454 ldub
[%i5
+ %g5
], %g5
519 .type arcfour_crypt_aligned,2
520 .size arcfour_crypt_aligned,(. - arcfour_crypt_aligned)
522 #endif /* lint || __lint */