core/crypto: Add private attributes for internals

These constants and internal routines are not intended for use outside
the actual implementations themselves.
This commit is contained in:
Yawning Angel
2023-04-08 10:15:00 +09:00
parent b8c2b0105b
commit 7fc2081543
5 changed files with 27 additions and 1 deletions
+2
View File
@@ -8,6 +8,7 @@ import "core:mem"
KEY_SIZE :: 32
TAG_SIZE :: 16
@(private)
_BLOCK_SIZE :: 16
sum :: proc (dst, msg, key: []byte) {
@@ -141,6 +142,7 @@ reset :: proc (ctx: ^Context) {
ctx._is_initialized = false
}
@(private)
_blocks :: proc (ctx: ^Context, msg: []byte, final := false) {
n: field.Tight_Field_Element = ---
final_byte := byte(!final)