|
| 1 | +// AUTO GENERATED FILE, DO NOT EDIT. |
| 2 | +// |
| 3 | +// Generated by `package:ffigen`. |
| 4 | +// ignore_for_file: type=lint, unused_import |
| 5 | +import 'dart:ffi' as ffi; |
| 6 | + |
| 7 | +@ffi.Native< |
| 8 | + ffi.Int Function( |
| 9 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 10 | + ffi.Pointer<evp_cipher_st>, |
| 11 | + ffi.Pointer<engine_st>, |
| 12 | + ffi.Pointer<ffi.UnsignedChar>, |
| 13 | + ffi.Pointer<ffi.UnsignedChar>, |
| 14 | + ) |
| 15 | +>() |
| 16 | +external int EVP_EncryptInit_ex( |
| 17 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 18 | + ffi.Pointer<evp_cipher_st> cipher, |
| 19 | + ffi.Pointer<engine_st> impl, |
| 20 | + ffi.Pointer<ffi.UnsignedChar> key, |
| 21 | + ffi.Pointer<ffi.UnsignedChar> iv, |
| 22 | +); |
| 23 | + |
| 24 | +@ffi.Native< |
| 25 | + ffi.Int Function( |
| 26 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 27 | + ffi.Pointer<ffi.UnsignedChar>, |
| 28 | + ffi.Pointer<ffi.Int>, |
| 29 | + ffi.Pointer<ffi.UnsignedChar>, |
| 30 | + ffi.Int, |
| 31 | + ) |
| 32 | +>() |
| 33 | +external int EVP_EncryptUpdate( |
| 34 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 35 | + ffi.Pointer<ffi.UnsignedChar> out, |
| 36 | + ffi.Pointer<ffi.Int> outl, |
| 37 | + ffi.Pointer<ffi.UnsignedChar> in$, |
| 38 | + int inl, |
| 39 | +); |
| 40 | + |
| 41 | +@ffi.Native< |
| 42 | + ffi.Int Function( |
| 43 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 44 | + ffi.Pointer<ffi.UnsignedChar>, |
| 45 | + ffi.Pointer<ffi.Int>, |
| 46 | + ) |
| 47 | +>() |
| 48 | +external int EVP_EncryptFinal_ex( |
| 49 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 50 | + ffi.Pointer<ffi.UnsignedChar> out, |
| 51 | + ffi.Pointer<ffi.Int> outl, |
| 52 | +); |
| 53 | + |
| 54 | +@ffi.Native< |
| 55 | + ffi.Int Function( |
| 56 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 57 | + ffi.Pointer<evp_cipher_st>, |
| 58 | + ffi.Pointer<engine_st>, |
| 59 | + ffi.Pointer<ffi.UnsignedChar>, |
| 60 | + ffi.Pointer<ffi.UnsignedChar>, |
| 61 | + ) |
| 62 | +>() |
| 63 | +external int EVP_DecryptInit_ex( |
| 64 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 65 | + ffi.Pointer<evp_cipher_st> cipher, |
| 66 | + ffi.Pointer<engine_st> impl, |
| 67 | + ffi.Pointer<ffi.UnsignedChar> key, |
| 68 | + ffi.Pointer<ffi.UnsignedChar> iv, |
| 69 | +); |
| 70 | + |
| 71 | +@ffi.Native< |
| 72 | + ffi.Int Function( |
| 73 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 74 | + ffi.Pointer<ffi.UnsignedChar>, |
| 75 | + ffi.Pointer<ffi.Int>, |
| 76 | + ffi.Pointer<ffi.UnsignedChar>, |
| 77 | + ffi.Int, |
| 78 | + ) |
| 79 | +>() |
| 80 | +external int EVP_DecryptUpdate( |
| 81 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 82 | + ffi.Pointer<ffi.UnsignedChar> out, |
| 83 | + ffi.Pointer<ffi.Int> outl, |
| 84 | + ffi.Pointer<ffi.UnsignedChar> in$, |
| 85 | + int inl, |
| 86 | +); |
| 87 | + |
| 88 | +@ffi.Native< |
| 89 | + ffi.Int Function( |
| 90 | + ffi.Pointer<evp_cipher_ctx_st>, |
| 91 | + ffi.Pointer<ffi.UnsignedChar>, |
| 92 | + ffi.Pointer<ffi.Int>, |
| 93 | + ) |
| 94 | +>() |
| 95 | +external int EVP_DecryptFinal_ex( |
| 96 | + ffi.Pointer<evp_cipher_ctx_st> ctx, |
| 97 | + ffi.Pointer<ffi.UnsignedChar> outm, |
| 98 | + ffi.Pointer<ffi.Int> outl, |
| 99 | +); |
| 100 | + |
| 101 | +@ffi.Native<ffi.Pointer<evp_cipher_ctx_st> Function()>() |
| 102 | +external ffi.Pointer<evp_cipher_ctx_st> EVP_CIPHER_CTX_new(); |
| 103 | + |
| 104 | +@ffi.Native<ffi.Void Function(ffi.Pointer<evp_cipher_ctx_st>)>() |
| 105 | +external void EVP_CIPHER_CTX_free(ffi.Pointer<evp_cipher_ctx_st> c); |
| 106 | + |
| 107 | +@ffi.Native<ffi.Pointer<evp_cipher_st> Function()>() |
| 108 | +external ffi.Pointer<evp_cipher_st> EVP_aes_256_cbc(); |
| 109 | + |
| 110 | +final class evp_cipher_st extends ffi.Opaque {} |
| 111 | + |
| 112 | +final class evp_cipher_ctx_st extends ffi.Opaque {} |
| 113 | + |
| 114 | +final class engine_st extends ffi.Opaque {} |
| 115 | + |
| 116 | +const int EVP_MAX_BLOCK_LENGTH = 32; |
0 commit comments