go2hx

manual

github

Module stdgo.crypto.cipher has compilation errors, please do not use:

 ERROR  stdgo/_internal/crypto/subtle/Subtle__xorBytes.hx:12: characters 26-35

  12 |             _dst = (_dst.__slice__(_done) : stdgo.Slice<stdgo.GoUInt8>);
     |                          ^^^^^^^^^
     | Array<Dynamic> has no field __slice__

 ERROR  stdgo/_internal/crypto/subtle/Subtle__xorBytes.hx:13: characters 22-31

  13 |             _x = (_x.__slice__(_done) : stdgo.Slice<stdgo.GoUInt8>);
     |                      ^^^^^^^^^
     | Array<Dynamic> has no field __slice__

 ERROR  stdgo/_internal/crypto/subtle/Subtle__xorBytes.hx:14: characters 22-31

  14 |             _y = (_y.__slice__(_done) : stdgo.Slice<stdgo.GoUInt8>);
     |                      ^^^^^^^^^
     | Array<Dynamic> has no field __slice__

 ERROR  stdgo/crypto/cipher/Cipher.hx:325: characters 138-146

 325 |         stdgo._internal.crypto.cipher.Cipher_T_gcm_static_extension.T_gcm_static_extension._auth(_g, _out, _ciphertext, _additionalData, _tagMask);
     |                                                                                                                                          ^^^^^^^^
     | haxe.ds.Vector<UInt> should be stdgo.Ref<stdgo.GoArray<stdgo.GoUInt8>>
     | For function argument '_tagMask'

 ERROR  stdgo/crypto/cipher/Cipher.hx:329: characters 111-119

 329 |         stdgo._internal.crypto.cipher.Cipher_T_gcm_static_extension.T_gcm_static_extension._deriveCounter(_g, _counter, _nonce);
     |                                                                                                               ^^^^^^^^
     | haxe.ds.Vector<UInt> should be stdgo.Ref<stdgo.GoArray<stdgo.GoUInt8>>
     | For function argument '_counter'

 ERROR  stdgo/crypto/cipher/Cipher.hx:334: characters 121-129

 334 |         stdgo._internal.crypto.cipher.Cipher_T_gcm_static_extension.T_gcm_static_extension._counterCrypt(_g, _out, _in, _counter);
     |                                                                                                                         ^^^^^^^^
     | haxe.ds.Vector<UInt> should be stdgo.Ref<stdgo.GoArray<stdgo.GoUInt8>>
     | For function argument '_counter'