-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfortium_defines.f90
37 lines (26 loc) · 1.37 KB
/
fortium_defines.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module fortium_defines
!Fortran bindings for libsodium - a P(ortable|ackageable) NaCl-based crypto library
!(https://github.com/jedisct1/libsodium)
!"libsodium" is licensed under the ISC license (http://en.wikipedia.org/wiki/ISC_license)
!
!fortium bindings for libsodium - MIT License (MIT)
!See LICENSE file for more details
!Copyright (c) 2014 John N. Shahbazian
!https://github.com/jshahbazi/fortium
use iso_c_binding
implicit none
!-----------------------------
!crypto_hash_sha512.h
integer(c_int64_t), parameter :: crypto_hash_sha512_BYTES = 64
!-----------------------------
!crypto_auth_hmacsha512.h
integer(c_int64_t), parameter :: crypto_auth_hmacsha512_BYTES = 64
integer(c_int64_t), parameter :: crypto_auth_hmacsha512_KEYBYTES = 64
!-----------------------------
!crypto_auth_hmacsha512256.h
character(len=*), parameter :: crypto_auth_PRIMITIVE = 'hmacsha512256'
integer(c_int64_t), parameter :: crypto_auth_hmacsha512256_BYTES = 32
integer(c_int64_t), parameter :: crypto_auth_hmacsha512256_KEYBYTES = 32
integer(c_int64_t), parameter :: crypto_auth_BYTES = crypto_auth_hmacsha512256_BYTES
integer(c_int64_t), parameter :: crypto_auth_KEYBYTES = crypto_auth_hmacsha512256_KEYBYTES
end module fortium_defines