|
92 | 92 | b .Lreduce_by_sub
|
93 | 93 | .size __ecp_nistz256_mul_by_2,.-__ecp_nistz256_mul_by_2
|
94 | 94 |
|
95 |
| -@ void ecp_nistz256_add(BN_ULONG r0[8],const BN_ULONG r1[8], |
| 95 | +@ void GFp_nistz256_add(BN_ULONG r0[8],const BN_ULONG r1[8], |
96 | 96 | @ const BN_ULONG r2[8]);
|
97 |
| -.globl ecp_nistz256_add |
98 |
| -.type ecp_nistz256_add,%function |
| 97 | +.globl GFp_nistz256_add |
| 98 | +.type GFp_nistz256_add,%function |
99 | 99 | .align 4
|
100 |
| -ecp_nistz256_add: |
| 100 | +GFp_nistz256_add: |
101 | 101 | stmdb sp!,{r4-r12,lr}
|
102 | 102 | bl __ecp_nistz256_add
|
103 | 103 | #if __ARM_ARCH__>=5 || !defined(__thumb__)
|
|
106 | 106 | ldmia sp!,{r4-r12,lr}
|
107 | 107 | bx lr @ interoperable with Thumb ISA:-)
|
108 | 108 | #endif
|
109 |
| -.size ecp_nistz256_add,.-ecp_nistz256_add |
| 109 | +.size GFp_nistz256_add,.-GFp_nistz256_add |
110 | 110 |
|
111 | 111 | .type __ecp_nistz256_add,%function
|
112 | 112 | .align 4
|
|
363 | 363 | mov pc,lr
|
364 | 364 | .size __ecp_nistz256_sub,.-__ecp_nistz256_sub
|
365 | 365 |
|
366 |
| -@ void ecp_nistz256_neg(BN_ULONG r0[8],const BN_ULONG r1[8]); |
367 |
| -.globl ecp_nistz256_neg |
368 |
| -.type ecp_nistz256_neg,%function |
| 366 | +@ void GFp_nistz256_neg(BN_ULONG r0[8],const BN_ULONG r1[8]); |
| 367 | +.globl GFp_nistz256_neg |
| 368 | +.type GFp_nistz256_neg,%function |
369 | 369 | .align 4
|
370 |
| -ecp_nistz256_neg: |
| 370 | +GFp_nistz256_neg: |
371 | 371 | stmdb sp!,{r4-r12,lr}
|
372 | 372 | bl __ecp_nistz256_neg
|
373 | 373 | #if __ARM_ARCH__>=5 || !defined(__thumb__)
|
|
376 | 376 | ldmia sp!,{r4-r12,lr}
|
377 | 377 | bx lr @ interoperable with Thumb ISA:-)
|
378 | 378 | #endif
|
379 |
| -.size ecp_nistz256_neg,.-ecp_nistz256_neg |
| 379 | +.size GFp_nistz256_neg,.-GFp_nistz256_neg |
380 | 380 |
|
381 | 381 | .type __ecp_nistz256_neg,%function
|
382 | 382 | .align 4
|
|
408 | 408 | my ($t0,$t1,$bj,$t2,$t3)=map("r$_",(0,1,2,12,14));
|
409 | 409 |
|
410 | 410 | $code.=<<___;
|
411 |
| -@ void ecp_nistz256_mul_mont(BN_ULONG r0[8],const BN_ULONG r1[8], |
| 411 | +@ void GFp_nistz256_mul_mont(BN_ULONG r0[8],const BN_ULONG r1[8], |
412 | 412 | @ const BN_ULONG r2[8]);
|
413 |
| -.globl ecp_nistz256_mul_mont |
414 |
| -.type ecp_nistz256_mul_mont,%function |
| 413 | +.globl GFp_nistz256_mul_mont |
| 414 | +.type GFp_nistz256_mul_mont,%function |
415 | 415 | .align 4
|
416 |
| -ecp_nistz256_mul_mont: |
417 |
| -.Lecp_nistz256_mul_mont: |
| 416 | +GFp_nistz256_mul_mont: |
418 | 417 | stmdb sp!,{r4-r12,lr}
|
419 | 418 | bl __ecp_nistz256_mul_mont
|
420 | 419 | #if __ARM_ARCH__>=5 || !defined(__thumb__)
|
|
423 | 422 | ldmia sp!,{r4-r12,lr}
|
424 | 423 | bx lr @ interoperable with Thumb ISA:-)
|
425 | 424 | #endif
|
426 |
| -.size ecp_nistz256_mul_mont,.-ecp_nistz256_mul_mont |
| 425 | +.size GFp_nistz256_mul_mont,.-GFp_nistz256_mul_mont |
427 | 426 |
|
428 | 427 | .type __ecp_nistz256_mul_mont,%function
|
429 | 428 | .align 4
|
|
618 | 617 | #if __ARM_ARCH__>=7
|
619 | 618 | .fpu neon
|
620 | 619 |
|
621 |
| -.globl ecp_nistz256_mul_mont_neon |
622 | 620 | .type ecp_nistz256_mul_mont_neon,%function
|
623 | 621 | .align 5
|
624 | 622 | ecp_nistz256_mul_mont_neon:
|
|
904 | 902 | # input arguments just below these temporary vectors.
|
905 | 903 |
|
906 | 904 | $code.=<<___;
|
907 |
| -.globl ecp_nistz256_point_double |
908 |
| -.type ecp_nistz256_point_double,%function |
| 905 | +.globl GFp_nistz256_point_double |
| 906 | +.type GFp_nistz256_point_double,%function |
909 | 907 | .align 5
|
910 |
| -ecp_nistz256_point_double: |
| 908 | +GFp_nistz256_point_double: |
911 | 909 | stmdb sp!,{r0-r12,lr} @ push from r0, unusual, but intentional
|
912 | 910 | sub sp,sp,#32*5
|
913 | 911 |
|
|
1004 | 1002 | ldmia sp!,{r4-r12,lr}
|
1005 | 1003 | bx lr @ interoperable with Thumb ISA:-)
|
1006 | 1004 | #endif
|
1007 |
| -.size ecp_nistz256_point_double,.-ecp_nistz256_point_double |
| 1005 | +.size GFp_nistz256_point_double,.-GFp_nistz256_point_double |
1008 | 1006 | ___
|
1009 | 1007 | }
|
1010 | 1008 |
|
1011 | 1009 | ########################################################################
|
1012 |
| -# void ecp_nistz256_point_add(P256_POINT *out,const P256_POINT *in1, |
| 1010 | +# void GFp_nistz256_point_add(P256_POINT *out,const P256_POINT *in1, |
1013 | 1011 | # const P256_POINT *in2);
|
1014 | 1012 | {
|
1015 | 1013 | my ($res_x,$res_y,$res_z,
|
|
1026 | 1024 | # result of check for zero.
|
1027 | 1025 |
|
1028 | 1026 | $code.=<<___;
|
1029 |
| -.globl ecp_nistz256_point_add |
1030 |
| -.type ecp_nistz256_point_add,%function |
| 1027 | +.globl GFp_nistz256_point_add |
| 1028 | +.type GFp_nistz256_point_add,%function |
1031 | 1029 | .align 5
|
1032 |
| -ecp_nistz256_point_add: |
| 1030 | +GFp_nistz256_point_add: |
1033 | 1031 | stmdb sp!,{r0-r12,lr} @ push from r0, unusual, but intentional
|
1034 | 1032 | sub sp,sp,#32*18+16
|
1035 | 1033 |
|
|
1283 | 1281 | ldmia sp!,{r4-r12,lr}
|
1284 | 1282 | bx lr @ interoperable with Thumb ISA:-)
|
1285 | 1283 | #endif
|
1286 |
| -.size ecp_nistz256_point_add,.-ecp_nistz256_point_add |
| 1284 | +.size GFp_nistz256_point_add,.-GFp_nistz256_point_add |
1287 | 1285 | ___
|
1288 | 1286 | }
|
1289 | 1287 |
|
1290 | 1288 | ########################################################################
|
1291 |
| -# void ecp_nistz256_point_add_affine(P256_POINT *out,const P256_POINT *in1, |
| 1289 | +# void GFp_nistz256_point_add_affine(P256_POINT *out,const P256_POINT *in1, |
1292 | 1290 | # const P256_POINT_AFFINE *in2);
|
1293 | 1291 | {
|
1294 | 1292 | my ($res_x,$res_y,$res_z,
|
|
1305 | 1303 | my @ONE_mont=(1,0,0,-1,-1,-1,-2,0);
|
1306 | 1304 |
|
1307 | 1305 | $code.=<<___;
|
1308 |
| -.globl ecp_nistz256_point_add_affine |
1309 |
| -.type ecp_nistz256_point_add_affine,%function |
| 1306 | +.globl GFp_nistz256_point_add_affine |
| 1307 | +.type GFp_nistz256_point_add_affine,%function |
1310 | 1308 | .align 5
|
1311 |
| -ecp_nistz256_point_add_affine: |
| 1309 | +GFp_nistz256_point_add_affine: |
1312 | 1310 | stmdb sp!,{r0-r12,lr} @ push from r0, unusual, but intentional
|
1313 | 1311 | sub sp,sp,#32*15
|
1314 | 1312 |
|
|
1503 | 1501 | ldmia sp!,{r4-r12,lr}
|
1504 | 1502 | bx lr @ interoperable with Thumb ISA:-)
|
1505 | 1503 | #endif
|
1506 |
| -.size ecp_nistz256_point_add_affine,.-ecp_nistz256_point_add_affine |
| 1504 | +.size GFp_nistz256_point_add_affine,.-GFp_nistz256_point_add_affine |
1507 | 1505 | ___
|
1508 | 1506 | } }}}
|
1509 | 1507 |
|
|
0 commit comments