Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions blst_src/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
All files in this folder contain source files copied from the BLST repo https://github.com/supranational/blst,
specifically from the tagged version `v0.3.14`.
specifically from the tagged version `v0.3.17`.

Copyright Supranational LLC
Licensed under the Apache License, Version 2.0, see LICENSE for details.
Expand All @@ -18,8 +18,8 @@ The folder contains:
- all `<blst>/build` (assembly generated files).
- this `README` file.

To upgrade the BLST version:
- [ ] audit all BLST updates, with focus on `<blst>/src`: https://github.com/supranational/blst/compare/v0.3.14...<new_version>
Follow these steps from the root of the package to upgrade the BLST version:
- [ ] audit all BLST updates, with focus on `<blst>/src`: https://github.com/supranational/blst/compare/v0.3.17...<new_version>
- [ ] delete all files in this folder `./blst_src/` but `blst_src.c` and `README.md`.
- [ ] delete all files in `./internal/blst/` but `non_cgo.go`.
- [ ] open BLST repository on the new version.
Expand Down
22 changes: 22 additions & 0 deletions blst_src/build/cheri/add_mod_256-armv8.S
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
#if defined(__ARM_FEATURE_PAC_DEFAULT) && __ARM_FEATURE_PAC_DEFAULT==2
# define PACI_HINT 27
# define AUTI_HINT 31
#else
# define PACI_HINT 25
# define AUTI_HINT 29
#endif

.text

.globl add_mod_256
.hidden add_mod_256
.type add_mod_256,%function
.align 5
add_mod_256:
hint #34
ldp x8,x9,[c1]
ldp x12,x13,[c2]

Expand Down Expand Up @@ -39,6 +48,7 @@ add_mod_256:
.type mul_by_3_mod_256,%function
.align 5
mul_by_3_mod_256:
hint #34
ldp x12,x13,[c1]
ldp x14,x15,[c1,#16]

Expand Down Expand Up @@ -88,6 +98,7 @@ mul_by_3_mod_256:
.type lshift_mod_256,%function
.align 5
lshift_mod_256:
hint #34
ldp x8,x9,[c1]
ldp x10,x11,[c1,#16]

Expand Down Expand Up @@ -126,6 +137,7 @@ lshift_mod_256:
.type rshift_mod_256,%function
.align 5
rshift_mod_256:
hint #34
ldp x8,x9,[c1]
ldp x10,x11,[c1,#16]

Expand Down Expand Up @@ -377,3 +389,13 @@ sub_n_check_mod_256:

ret
.size sub_n_check_mod_256,.-sub_n_check_mod_256

#if defined(__ARM_FEATURE_BTI_DEFAULT) || defined(__ARM_FEATURE_PAC_DEFAULT)
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a",@note
.long 4,2f-1f,5
.byte 0x47,0x4E,0x55,0
1: .long 0xc0000000,4,3
.align 3
2:
#endif
Loading
Loading