parent
ca3bafb85d
commit
b67ae9534d
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "BearSSL wrapper"
|
description = "BearSSL wrapper"
|
||||||
license = "MIT or Apache License 2.0"
|
license = "MIT or Apache License 2.0"
|
||||||
|
|
|
@ -619,7 +619,7 @@ proc md5sha1SetState*(ctx: ptr Md5sha1Context; stb: pointer; count: uint64) {.cd
|
||||||
|
|
||||||
type
|
type
|
||||||
HashCompatContext* {.importc: "br_hash_compat_context", header: "bearssl_hash.h",
|
HashCompatContext* {.importc: "br_hash_compat_context", header: "bearssl_hash.h",
|
||||||
bycopy.} = object {.union.}
|
union, bycopy.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr HashClass
|
vtable* {.importc: "vtable".}: ptr HashClass
|
||||||
md5* {.importc: "md5".}: Md5Context
|
md5* {.importc: "md5".}: Md5Context
|
||||||
sha1* {.importc: "sha1".}: Sha1Context
|
sha1* {.importc: "sha1".}: Sha1Context
|
||||||
|
@ -1178,8 +1178,8 @@ const
|
||||||
aesX86niBLOCK_SIZE* = 16
|
aesX86niBLOCK_SIZE* = 16
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_1159666335* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_1159666335* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesX86niCbcencKeys* {.importc: "br_aes_x86ni_cbcenc_keys",
|
AesX86niCbcencKeys* {.importc: "br_aes_x86ni_cbcenc_keys",
|
||||||
|
@ -1190,8 +1190,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_3830826214* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_3830826214* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesX86niCbcdecKeys* {.importc: "br_aes_x86ni_cbcdec_keys",
|
AesX86niCbcdecKeys* {.importc: "br_aes_x86ni_cbcdec_keys",
|
||||||
|
@ -1202,8 +1202,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_1063979105* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_1063979105* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesX86niCtrKeys* {.importc: "br_aes_x86ni_ctr_keys", header: "bearssl_block.h",
|
AesX86niCtrKeys* {.importc: "br_aes_x86ni_ctr_keys", header: "bearssl_block.h",
|
||||||
|
@ -1214,8 +1214,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_220758887* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_220758887* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesX86niCtrcbcKeys* {.importc: "br_aes_x86ni_ctrcbc_keys",
|
AesX86niCtrcbcKeys* {.importc: "br_aes_x86ni_ctrcbc_keys",
|
||||||
|
@ -1293,8 +1293,8 @@ const
|
||||||
aesPwr8BLOCK_SIZE* = 16
|
aesPwr8BLOCK_SIZE* = 16
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_2338321047* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_2338321047* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesPwr8CbcencKeys* {.importc: "br_aes_pwr8_cbcenc_keys",
|
AesPwr8CbcencKeys* {.importc: "br_aes_pwr8_cbcenc_keys",
|
||||||
|
@ -1305,8 +1305,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_714513630* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_714513630* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesPwr8CbcdecKeys* {.importc: "br_aes_pwr8_cbcdec_keys",
|
AesPwr8CbcdecKeys* {.importc: "br_aes_pwr8_cbcdec_keys",
|
||||||
|
@ -1317,8 +1317,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_4166260708* {.importc: "no_name", header: "bearssl_block.h", bycopy.} = object {.
|
INNER_C_UNION_4166260708* {.importc: "no_name", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
skni* {.importc: "skni".}: array[16 * 15, cuchar]
|
||||||
|
|
||||||
AesPwr8CtrKeys* {.importc: "br_aes_pwr8_ctr_keys", header: "bearssl_block.h",
|
AesPwr8CtrKeys* {.importc: "br_aes_pwr8_ctr_keys", header: "bearssl_block.h",
|
||||||
|
@ -1368,7 +1368,7 @@ proc aesPwr8CtrGetVtable*(): ptr BlockCtrClass {.cdecl,
|
||||||
|
|
||||||
type
|
type
|
||||||
AesGenCbcencKeys* {.importc: "br_aes_gen_cbcenc_keys", header: "bearssl_block.h",
|
AesGenCbcencKeys* {.importc: "br_aes_gen_cbcenc_keys", header: "bearssl_block.h",
|
||||||
bycopy.} = object {.union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
||||||
cBig* {.importc: "c_big".}: AesBigCbcencKeys
|
cBig* {.importc: "c_big".}: AesBigCbcencKeys
|
||||||
cSmall* {.importc: "c_small".}: AesSmallCbcencKeys
|
cSmall* {.importc: "c_small".}: AesSmallCbcencKeys
|
||||||
|
@ -1380,7 +1380,7 @@ type
|
||||||
|
|
||||||
type
|
type
|
||||||
AesGenCbcdecKeys* {.importc: "br_aes_gen_cbcdec_keys", header: "bearssl_block.h",
|
AesGenCbcdecKeys* {.importc: "br_aes_gen_cbcdec_keys", header: "bearssl_block.h",
|
||||||
bycopy.} = object {.union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
||||||
cBig* {.importc: "c_big".}: AesBigCbcdecKeys
|
cBig* {.importc: "c_big".}: AesBigCbcdecKeys
|
||||||
cSmall* {.importc: "c_small".}: AesSmallCbcdecKeys
|
cSmall* {.importc: "c_small".}: AesSmallCbcdecKeys
|
||||||
|
@ -1391,8 +1391,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
AesGenCtrKeys* {.importc: "br_aes_gen_ctr_keys", header: "bearssl_block.h", bycopy.} = object {.
|
AesGenCtrKeys* {.importc: "br_aes_gen_ctr_keys", header: "bearssl_block.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCtrClass
|
vtable* {.importc: "vtable".}: ptr BlockCtrClass
|
||||||
cBig* {.importc: "c_big".}: AesBigCtrKeys
|
cBig* {.importc: "c_big".}: AesBigCtrKeys
|
||||||
cSmall* {.importc: "c_small".}: AesSmallCtrKeys
|
cSmall* {.importc: "c_small".}: AesSmallCtrKeys
|
||||||
|
@ -1403,8 +1403,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
AesGenCtrcbcKeys* {.importc: "br_aes_gen_ctrcbc_keys", header: "bearssl_block.h",
|
AesGenCtrcbcKeys* {.importc: "br_aes_gen_ctrcbc_keys",
|
||||||
bycopy.} = object {.union.}
|
header: "bearssl_block.h", bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCtrcbcClass
|
vtable* {.importc: "vtable".}: ptr BlockCtrcbcClass
|
||||||
cBig* {.importc: "c_big".}: AesBigCtrcbcKeys
|
cBig* {.importc: "c_big".}: AesBigCtrcbcKeys
|
||||||
cSmall* {.importc: "c_small".}: AesSmallCtrcbcKeys
|
cSmall* {.importc: "c_small".}: AesSmallCtrcbcKeys
|
||||||
|
@ -1487,16 +1487,16 @@ proc desCtCbcdecRun*(ctx: ptr DesCtCbcdecKeys; iv: pointer; data: pointer; len:
|
||||||
cdecl, importc: "br_des_ct_cbcdec_run", header: "bearssl_block.h".}
|
cdecl, importc: "br_des_ct_cbcdec_run", header: "bearssl_block.h".}
|
||||||
|
|
||||||
type
|
type
|
||||||
DesGenCbcencKeys* {.importc: "br_des_gen_cbcenc_keys", header: "bearssl_block.h",
|
DesGenCbcencKeys* {.importc: "br_des_gen_cbcenc_keys",
|
||||||
bycopy.} = object {.union.}
|
header: "bearssl_block.h", bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
||||||
tab* {.importc: "tab".}: DesTabCbcencKeys
|
tab* {.importc: "tab".}: DesTabCbcencKeys
|
||||||
ct* {.importc: "ct".}: DesCtCbcencKeys
|
ct* {.importc: "ct".}: DesCtCbcencKeys
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
DesGenCbcdecKeys* {.importc: "br_des_gen_cbcdec_keys", header: "bearssl_block.h",
|
DesGenCbcdecKeys* {.importc: "br_des_gen_cbcdec_keys",
|
||||||
bycopy.} = object {.union.}
|
header: "bearssl_block.h", bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
||||||
cTab* {.importc: "c_tab".}: DesTabCbcdecKeys
|
cTab* {.importc: "c_tab".}: DesTabCbcdecKeys
|
||||||
cCt* {.importc: "c_ct".}: DesCtCbcdecKeys
|
cCt* {.importc: "c_ct".}: DesCtCbcdecKeys
|
||||||
|
@ -2129,8 +2129,8 @@ const
|
||||||
ERR_X509_NOT_TRUSTED* = 62
|
ERR_X509_NOT_TRUSTED* = 62
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_2211491720* {.importc: "no_name", header: "bearssl_x509.h", bycopy.} = object {.
|
INNER_C_UNION_2211491720* {.importc: "no_name", header: "bearssl_x509.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
rsa* {.importc: "rsa".}: RsaPublicKey
|
rsa* {.importc: "rsa".}: RsaPublicKey
|
||||||
ec* {.importc: "ec".}: EcPublicKey
|
ec* {.importc: "ec".}: EcPublicKey
|
||||||
|
|
||||||
|
@ -2369,12 +2369,13 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_3754611343* {.importc: "no_name", header: "bearssl_x509.h", bycopy.} = object {.
|
INNER_C_UNION_3754611343* {.importc: "no_name", header: "bearssl_x509.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
rsa* {.importc: "rsa".}: RsaPrivateKey
|
rsa* {.importc: "rsa".}: RsaPrivateKey
|
||||||
ec* {.importc: "ec".}: EcPrivateKey
|
ec* {.importc: "ec".}: EcPrivateKey
|
||||||
|
|
||||||
INNER_C_STRUCT_3633027466* {.importc: "no_name", header: "bearssl_x509.h", bycopy.} = object
|
INNER_C_STRUCT_3633027466* {.importc: "no_name", header: "bearssl_x509.h",
|
||||||
|
bycopy.} = object
|
||||||
dp* {.importc: "dp".}: ptr uint32
|
dp* {.importc: "dp".}: ptr uint32
|
||||||
rp* {.importc: "rp".}: ptr uint32
|
rp* {.importc: "rp".}: ptr uint32
|
||||||
ip* {.importc: "ip".}: ptr cuchar
|
ip* {.importc: "ip".}: ptr cuchar
|
||||||
|
@ -2585,8 +2586,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_2105460304* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_2105460304* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcdecClass
|
||||||
aes* {.importc: "aes".}: AesGenCbcdecKeys
|
aes* {.importc: "aes".}: AesGenCbcdecKeys
|
||||||
des* {.importc: "des".}: DesGenCbcdecKeys
|
des* {.importc: "des".}: DesGenCbcdecKeys
|
||||||
|
@ -2605,8 +2606,8 @@ type
|
||||||
var sslrecInCbcVtable* {.importc: "br_sslrec_in_cbc_vtable", header: "bearssl_ssl.h".}: SslrecInCbcClass
|
var sslrecInCbcVtable* {.importc: "br_sslrec_in_cbc_vtable", header: "bearssl_ssl.h".}: SslrecInCbcClass
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_3724465237* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_3724465237* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
vtable* {.importc: "vtable".}: ptr BlockCbcencClass
|
||||||
aes* {.importc: "aes".}: AesGenCbcencKeys
|
aes* {.importc: "aes".}: AesGenCbcencKeys
|
||||||
des* {.importc: "des".}: DesGenCbcencKeys
|
des* {.importc: "des".}: DesGenCbcencKeys
|
||||||
|
@ -2644,14 +2645,14 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_536016210* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_536016210* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
gen* {.importc: "gen".}: pointer
|
gen* {.importc: "gen".}: pointer
|
||||||
`in`* {.importc: "in".}: ptr SslrecInGcmClass
|
`in`* {.importc: "in".}: ptr SslrecInGcmClass
|
||||||
`out`* {.importc: "out".}: ptr SslrecOutGcmClass
|
`out`* {.importc: "out".}: ptr SslrecOutGcmClass
|
||||||
|
|
||||||
INNER_C_UNION_1283557389* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_1283557389* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr BlockCtrClass
|
vtable* {.importc: "vtable".}: ptr BlockCtrClass
|
||||||
aes* {.importc: "aes".}: AesGenCtrKeys
|
aes* {.importc: "aes".}: AesGenCtrKeys
|
||||||
|
|
||||||
|
@ -2689,8 +2690,8 @@ type
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_1683842004* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_1683842004* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
gen* {.importc: "gen".}: pointer
|
gen* {.importc: "gen".}: pointer
|
||||||
`in`* {.importc: "in".}: ptr SslrecInChapolClass
|
`in`* {.importc: "in".}: ptr SslrecInChapolClass
|
||||||
`out`* {.importc: "out".}: ptr SslrecOutChapolClass
|
`out`* {.importc: "out".}: ptr SslrecOutChapolClass
|
||||||
|
@ -2725,15 +2726,15 @@ const
|
||||||
MAX_CIPHER_SUITES* = 40
|
MAX_CIPHER_SUITES* = 40
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_861939089* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_861939089* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr SslrecInClass
|
vtable* {.importc: "vtable".}: ptr SslrecInClass
|
||||||
cbc* {.importc: "cbc".}: SslrecInCbcContext
|
cbc* {.importc: "cbc".}: SslrecInCbcContext
|
||||||
gcm* {.importc: "gcm".}: SslrecGcmContext
|
gcm* {.importc: "gcm".}: SslrecGcmContext
|
||||||
chapol* {.importc: "chapol".}: SslrecChapolContext
|
chapol* {.importc: "chapol".}: SslrecChapolContext
|
||||||
|
|
||||||
INNER_C_UNION_1609480268* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_1609480268* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr SslrecOutClass
|
vtable* {.importc: "vtable".}: ptr SslrecOutClass
|
||||||
clear* {.importc: "clear".}: SslrecOutClearContext
|
clear* {.importc: "clear".}: SslrecOutClearContext
|
||||||
cbc* {.importc: "cbc".}: SslrecOutCbcContext
|
cbc* {.importc: "cbc".}: SslrecOutCbcContext
|
||||||
|
@ -3088,8 +3089,8 @@ const
|
||||||
AUTH_ECDSA* = 3
|
AUTH_ECDSA* = 3
|
||||||
|
|
||||||
type
|
type
|
||||||
INNER_C_UNION_2478042450* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_2478042450* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr SslClientCertificateClass
|
vtable* {.importc: "vtable".}: ptr SslClientCertificateClass
|
||||||
singleRsa* {.importc: "single_rsa".}: SslClientCertificateRsaContext
|
singleRsa* {.importc: "single_rsa".}: SslClientCertificateRsaContext
|
||||||
singleEc* {.importc: "single_ec".}: SslClientCertificateEcContext
|
singleEc* {.importc: "single_ec".}: SslClientCertificateEcContext
|
||||||
|
@ -3263,8 +3264,8 @@ type
|
||||||
iec* {.importc: "iec".}: ptr EcImpl
|
iec* {.importc: "iec".}: ptr EcImpl
|
||||||
iecdsa* {.importc: "iecdsa".}: EcdsaSign
|
iecdsa* {.importc: "iecdsa".}: EcdsaSign
|
||||||
|
|
||||||
INNER_C_UNION_537875083* {.importc: "no_name", header: "bearssl_ssl.h", bycopy.} = object {.
|
INNER_C_UNION_537875083* {.importc: "no_name", header: "bearssl_ssl.h",
|
||||||
union.}
|
bycopy, union.} = object
|
||||||
vtable* {.importc: "vtable".}: ptr SslServerPolicyClass
|
vtable* {.importc: "vtable".}: ptr SslServerPolicyClass
|
||||||
singleRsa* {.importc: "single_rsa".}: SslServerPolicyRsaContext
|
singleRsa* {.importc: "single_rsa".}: SslServerPolicyRsaContext
|
||||||
singleEc* {.importc: "single_ec".}: SslServerPolicyEcContext
|
singleEc* {.importc: "single_ec".}: SslServerPolicyEcContext
|
||||||
|
|
Loading…
Reference in New Issue