diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2025-12-31 09:30:29 +0900 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2026-01-28 22:20:03 +0900 |
| commit | 429e8a46dba047833087f22bddd8d03519929258 (patch) | |
| tree | 1de7621ca0eded154f57b099c5f5067f6b7ee2d4 /core | |
| parent | dbd69601e6c51603e39b295b6066bc5857d8d73e (diff) | |
core/crypto/ed25519: Cosmetic fixes (NFC)
Diffstat (limited to 'core')
| -rw-r--r-- | core/crypto/_edwards25519/edwards25519_scalar_mul.odin | 2 | ||||
| -rw-r--r-- | core/crypto/ed25519/ed25519.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/crypto/_edwards25519/edwards25519_scalar_mul.odin b/core/crypto/_edwards25519/edwards25519_scalar_mul.odin index 757a51257..c24447072 100644 --- a/core/crypto/_edwards25519/edwards25519_scalar_mul.odin +++ b/core/crypto/_edwards25519/edwards25519_scalar_mul.odin @@ -8,7 +8,7 @@ import "core:mem" // // Note: When generating, the values were reduced to Tight_Field_Element // ranges, even though that is not required. -@(private) +@(private,rodata) GE_BASEPOINT_TABLE := Multiply_Table { { {62697248952638, 204681361388450, 631292143396476, 338455783676468, 1213667448819585}, diff --git a/core/crypto/ed25519/ed25519.odin b/core/crypto/ed25519/ed25519.odin index 0382a6739..f6a71d888 100644 --- a/core/crypto/ed25519/ed25519.odin +++ b/core/crypto/ed25519/ed25519.odin @@ -170,7 +170,7 @@ public_key_set_bytes :: proc "contextless" (pub_key: ^Public_Key, b: []byte) -> // public_key_set_priv sets pub_key to the public component of priv_key. public_key_set_priv :: proc(pub_key: ^Public_Key, priv_key: ^Private_Key) { - ensure(priv_key._is_initialized, "crypto/ed25519: uninitialized public key") + ensure(priv_key._is_initialized, "crypto/ed25519: uninitialized private key") src := &priv_key._pub_key copy(pub_key._b[:], src._b[:]) |