mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
core/crypto: Use panic_contextless instead of intrinsics.trap
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package field_poly1305
|
||||
|
||||
import "base:intrinsics"
|
||||
import "core:encoding/endian"
|
||||
import "core:mem"
|
||||
|
||||
@@ -30,7 +29,7 @@ fe_from_bytes :: #force_inline proc "contextless" (
|
||||
// neater.
|
||||
|
||||
if len(arg1) != 16 {
|
||||
intrinsics.trap()
|
||||
panic_contextless("poly1305: invalid field element size")
|
||||
}
|
||||
|
||||
// While it may be unwise to do deserialization here on our
|
||||
|
||||
Reference in New Issue
Block a user