mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Added missing constants
This commit is contained in:
Vendored
+8
-4
@@ -99,6 +99,10 @@ MAC_HMAC_SHA_384 :: "HMAC(SHA-384)"
|
|||||||
MAC_HMAC_SHA_512 :: "HMAC(SHA-512)"
|
MAC_HMAC_SHA_512 :: "HMAC(SHA-512)"
|
||||||
MAC_HMAC_MD5 :: "HMAC(MD5)"
|
MAC_HMAC_MD5 :: "HMAC(MD5)"
|
||||||
|
|
||||||
|
MAC_SIPHASH_1_3 :: "SipHash(1,3)"
|
||||||
|
MAC_SIPHASH_2_4 :: "SipHash(2,4)"
|
||||||
|
MAC_SIPHASH_4_8 :: "SipHash(4,8)"
|
||||||
|
|
||||||
hash_struct :: struct{}
|
hash_struct :: struct{}
|
||||||
hash_t :: ^hash_struct
|
hash_t :: ^hash_struct
|
||||||
rng_struct :: struct{}
|
rng_struct :: struct{}
|
||||||
@@ -136,11 +140,11 @@ totp_t :: ^totp_struct
|
|||||||
fpe_struct :: struct{}
|
fpe_struct :: struct{}
|
||||||
fpe_t :: ^fpe_struct
|
fpe_t :: ^fpe_struct
|
||||||
|
|
||||||
when ODIN_OS == .Windows {
|
when ODIN_OS == "windows" {
|
||||||
foreign import botan_lib "botan.lib"
|
foreign import botan_lib "botan.lib"
|
||||||
} else when ODIN_OS == .Linux {
|
} else when ODIN_OS == "linux" {
|
||||||
foreign import botan_lib "system:botan-2"
|
foreign import botan_lib "system:botan-2"
|
||||||
} else when ODIN_OS == .Darwin {
|
} else when ODIN_OS == "darwin" {
|
||||||
foreign import botan_lib "system:botan-2"
|
foreign import botan_lib "system:botan-2"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -467,4 +471,4 @@ foreign botan_lib {
|
|||||||
fpe_destroy :: proc(fpe: fpe_t) -> c.int ---
|
fpe_destroy :: proc(fpe: fpe_t) -> c.int ---
|
||||||
fpe_encrypt :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
|
fpe_encrypt :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
|
||||||
fpe_decrypt :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
|
fpe_decrypt :: proc(fpe: fpe_t, x: mp_t, tweak: ^c.char, tweak_len: c.size_t) -> c.int ---
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user