[vala-extra-vapis/wip/openssl: 2/4] update code style



commit c92f66e07e9bda6a558d1e41050435fa18644f74
Author: taozuhong <taozuhong gmail com>
Date:   Sat Mar 14 20:05:10 2020 +0800

    update code style

 openssl.vapi | 406 +++++++++++++++++++++++++++++------------------------------
 1 file changed, 203 insertions(+), 203 deletions(-)
---
diff --git a/openssl.vapi b/openssl.vapi
index b4b778c..1416253 100644
--- a/openssl.vapi
+++ b/openssl.vapi
@@ -19,35 +19,35 @@ namespace OpenSSL
        }
 
        [Compact]
-       [CCode (lower_case_cprefix = "ENGINE_", cprefix = "ENGINE_", cheader_filename = "openssl/engine.h", 
free_function = "ENGINE_free")]
+       [CCode (cname = "ENGINE", lower_case_cprefix = "ENGINE_", cprefix = "ENGINE_", cheader_filename = 
"openssl/engine.h", free_function = "ENGINE_free")]
        public class Engine {
-               [CCode(cname = "ENGINE_new")]
-               public Engine();
-               [CCode(cname = "ENGINE_by_id")]
-               public Engine.by_id(string id);
-               [CCode(cname = "ENGINE_get_default_RSA")]
-               public Engine.get_default_RSA();
-               [CCode(cname = "ENGINE_get_default_DSA")]
-               public Engine.get_default_DSA();
-               [CCode(cname = "ENGINE_get_default_DH")]
-               public Engine.get_default_DH();
-               [CCode(cname = "ENGINE_get_default_RAND")]
-               public Engine.get_default_RAND();
-               [CCode(cname = "ENGINE_get_cipher_engine")]
-               public Engine.get_cipher_engine(int nid);
-               [CCode(cname = "ENGINE_get_digest_engine")]
-               public Engine.get_digest_engine(int nid);
-
-               public int init();
-               public int finish();
-               public int set_default(uint flags);
-               public int set_default_RSA();
-               public int set_default_DSA();
-               public int set_default_DH();
-               public int set_default_RAND();
-               public int set_default_ciphers();
-               public int set_default_digests();
-               public int set_default_string(string list);
+               [CCode (cname = "ENGINE_new")]
+               public Engine ();
+               [CCode (cname = "ENGINE_by_id")]
+               public Engine.by_id (string id);
+               [CCode (cname = "ENGINE_get_default_RSA")]
+               public Engine.get_default_RSA ();
+               [CCode (cname = "ENGINE_get_default_DSA")]
+               public Engine.get_default_DSA ();
+               [CCode (cname = "ENGINE_get_default_DH")]
+               public Engine.get_default_DH ();
+               [CCode (cname = "ENGINE_get_default_RAND")]
+               public Engine.get_default_RAND ();
+               [CCode (cname = "ENGINE_get_cipher_engine")]
+               public Engine.get_cipher_engine (int nid);
+               [CCode (cname = "ENGINE_get_digest_engine")]
+               public Engine.get_digest_engine (int nid);
+
+               public int init ();
+               public int finish ();
+               public int set_default (uint flags);
+               public int set_default_RSA ();
+               public int set_default_DSA ();
+               public int set_default_DH ();
+               public int set_default_RAND ();
+               public int set_default_ciphers ();
+               public int set_default_digests ();
+               public int set_default_string (string list);
 
        }
 
@@ -86,25 +86,25 @@ namespace OpenSSL
                public const int BIO_TYPE_COMP;
                public const int BIO_TYPE_DGRAM_SCTP;
 
-               [CCode(cname = "BIO_meth_new")]
-               public BIOMethod(int type, string name);
+               [CCode (cname = "BIO_meth_new")]
+               public BIOMethod (int type, string name);
 
-               [CCode(cname = "BIO_get_new_index")]
-               public int get_new_index();
+               [CCode (cname = "BIO_get_new_index")]
+               public int get_new_index ();
        }
 
        [Compact]
        [CCode (lower_case_cprefix = "BUF_MEM_", cheader_filename = "openssl/buffer.h", free_function = 
"BUF_MEM_free")]
        public class Buffer {
 
-               [CCode(cname = "BUF_MEM_new")]
-               public Buffer();
+               [CCode (cname = "BUF_MEM_new")]
+               public Buffer ();
 
-               [CCode(cname = "BUF_MEM_new_ex")]
-               public Buffer.with_flags();
+               [CCode (cname = "BUF_MEM_new_ex")]
+               public Buffer.with_flags ();
 
-               public int grow(int len);
-               public size_t grow_clean(size_t len);
+               public int grow (int len);
+               public size_t grow_clean (size_t len);
        }
 
        [Compact]
@@ -113,50 +113,50 @@ namespace OpenSSL
        {
                public const int NOCLOSE;
 
-               public static unowned BIOMethod s_mem();
-               public static unowned BIOMethod s_secmem();
+               public static unowned BIOMethod s_mem ();
+               public static unowned BIOMethod s_secmem ();
 
                public BIO (BIOMethod type);
 
-               [CCode(cname = "BIO_new_file")]
-               public BIO.with_file(string filename, string mode);
+               [CCode (cname = "BIO_new_file")]
+               public BIO.with_file (string filename, string mode);
 
-               [CCode(cname = "BIO_new_fp")]
-               public BIO.with_stream(GLib.FileStream stream, int flags);
+               [CCode (cname = "BIO_new_fp")]
+               public BIO.with_stream (GLib.FileStream stream, int flags);
 
-               [CCode(cname = "BIO_new_mem_buf")]
-               public BIO.with_buffer(uint8[] buf);
+               [CCode (cname = "BIO_new_mem_buf")]
+               public BIO.with_buffer (uint8[] buf);
 
-               public int read_filename(string name);
-               public int write_filename(string name);
-               public int append_filename(string name);
-               public int rw_filename(string name);
+               public int read_filename (string name);
+               public int write_filename (string name);
+               public int append_filename (string name);
+               public int rw_filename (string name);
 
-               public int set_mem_eof_return(int v);
-               public long get_mem_data([CCode (array_length = false)] out uint8[] pp);
-               public int set_mem_buf(Buffer bm, int c);
-               public int get_mem_ptr(out Buffer pp);
+               public int set_mem_eof_return (int v);
+               public long get_mem_data ([CCode (array_length = false)] out uint8[] pp);
+               public int set_mem_buf (Buffer bm, int c);
+               public int get_mem_ptr (out Buffer pp);
 
-               public int set(BIOMethod type);
+               public int set (BIOMethod type);
                public int read (uint8[] data);
-               public int write(uint8[] data);
-
-               public int printf(string format, ...);
-               public int vprintf(string format, va_list args);
-
-               public int reset();
-               public int seek(int ofs);
-               public int pending();
-               public int wpending();
-               public int flush();
-               public int eof();
-               public int tell();
-               public int set_close(long flag);
-               public int get_close();
-               public long ctrl(int cmd, long larg, [CCode (array_length = false)] uint8[] parg);
-
-               public int read_ex(uint8[] data, out size_t readbytes);
-               public int write_ex(uint8[] data, out size_t written);
+               public int write (uint8[] data);
+
+               public int printf (string format, ...);
+               public int vprintf (string format, va_list args);
+
+               public int reset ();
+               public int seek (int ofs);
+               public int pending ();
+               public int wpending ();
+               public int flush ();
+               public int eof ();
+               public int tell ();
+               public int set_close (long flag);
+               public int get_close ();
+               public long ctrl (int cmd, long larg, [CCode (array_length = false)] uint8[] parg);
+
+               public int read_ex (uint8[] data, out size_t readbytes);
+               public int write_ex (uint8[] data, out size_t written);
        }
 
        [CCode (lower_case_cprefix = "CRYPTO_", cheader_filename = "openssl/crypto.h")]
@@ -166,29 +166,29 @@ namespace OpenSSL
        }
 
        [Compact]
-       [CCode(cname = "ASN1_PCTX", lower_case_cprefix = "ASN1_PCTX_", free_function = "ASN1_PCTX_free")]
+       [CCode (cname = "ASN1_PCTX", lower_case_cprefix = "ASN1_PCTX_", free_function = "ASN1_PCTX_free")]
        public class ASN1_PCTX {
-               public ASN1_PCTX();
-
-               public ulong get_flags();
-               public void set_flags(ulong flags);
-               public ulong get_nm_flags();
-               public void set_nm_flags(ulong flags);
-               public ulong get_cert_flags();
-               public void set_cert_flags(ulong flags);
-
-               public ulong get_oid_flags();
-               public void set_oid_flags(ulong flags);
-               public ulong get_str_flags();
-               public void set_str_flags(ulong flags);
+               public ASN1_PCTX ();
+
+               public ulong get_flags ();
+               public void set_flags (ulong flags);
+               public ulong get_nm_flags ();
+               public void set_nm_flags (ulong flags);
+               public ulong get_cert_flags ();
+               public void set_cert_flags (ulong flags);
+
+               public ulong get_oid_flags ();
+               public void set_oid_flags (ulong flags);
+               public ulong get_str_flags ();
+               public void set_str_flags (ulong flags);
        }
 
        [Compact]
-       [CCode(cname = "ASN1_SCTX", lower_case_cprefix = "ASN1_SCTX_", free_function = "ASN1_SCTX_free")]
+       [CCode (cname = "ASN1_SCTX", lower_case_cprefix = "ASN1_SCTX_", free_function = "ASN1_SCTX_free")]
        public class ASN1_SCTX {
-               public ASN1_SCTX();
+               public ASN1_SCTX ();
 
-               public ulong get_flags();
+               public ulong get_flags ();
        }
 
        [CCode (cprefix = "EVP_", lower_case_cprefix = "EVP_", cheader_filename = "openssl/evp.h")]
@@ -329,7 +329,7 @@ namespace OpenSSL
                }
 
                [Compact]
-               [CCode(cname = "EVP_PKEY", lower_case_cprefix = "EVP_PKEY_", cprefix = "EVP_PKEY_", 
free_function = "EVP_PKEY_free")]
+               [CCode (cname = "EVP_PKEY", lower_case_cprefix = "EVP_PKEY_", cprefix = "EVP_PKEY_", 
free_function = "EVP_PKEY_free")]
                public class PublicKey {
                        public const int NONE;
                        public const int RSA;
@@ -356,127 +356,127 @@ namespace OpenSSL
                        public const int X448;
                        public const int ED448;
 
-                       public PublicKey();
+                       public PublicKey ();
 
-                       [CCode(cname = "EVP_PKEY_new_raw_private_key")]
-                       public PublicKey.raw_private_key(int type, Engine? e, uint8[] key);
+                       [CCode (cname = "EVP_PKEY_new_raw_private_key")]
+                       public PublicKey.raw_private_key (int type, Engine? e, uint8[] key);
 
-                       [CCode(cname = "EVP_PKEY_new_raw_public_key")]
-                       public PublicKey.raw_public_key(int type, Engine? e, uint8[] key);
+                       [CCode (cname = "EVP_PKEY_new_raw_public_key")]
+                       public PublicKey.raw_public_key (int type, Engine? e, uint8[] key);
 
-                       [CCode(cname = "EVP_PKEY_new_CMAC_key")]
-                       public PublicKey.CMAC_key(Engine? e, uint8[] priv, Cipher? cipher);
+                       [CCode (cname = "EVP_PKEY_new_CMAC_key")]
+                       public PublicKey.CMAC_key (Engine? e, uint8[] priv, Cipher? cipher);
 
-                       [CCode(cname = "EVP_PKEY_new_mac_key")]
-                       public PublicKey.mac_key(int type, Engine? e, uint8[] key);
+                       [CCode (cname = "EVP_PKEY_new_mac_key")]
+                       public PublicKey.mac_key (int type, Engine? e, uint8[] key);
 
-                       public int id();
-                       public int size();
-                       public int base_id();
-                       public static int type(int type);
-                       public int set_alias_type(int type);
-                       public int up_ref();
-                       public RSA? get1_RSA();
-                       public RSA? get0_RSA();
-                       public int set1_RSA(RSA? key);
-                       public int assign_RSA(RSA? key);
-                       public int security_bits();
+                       public int id ();
+                       public int size ();
+                       public int base_id ();
+                       public static int type (int type);
+                       public int set_alias_type (int type);
+                       public int up_ref ();
+                       public RSA? get1_RSA ();
+                       public RSA? get0_RSA ();
+                       public int set1_RSA (RSA? key);
+                       public int assign_RSA (RSA? key);
+                       public int security_bits ();
 
                        [CCode (instance_pos = 1.1)]
-                       public int print_public(BIO out, int indent, ASN1_PCTX? pctx);
+                       public int print_public (BIO out, int indent, ASN1_PCTX? pctx);
 
                        [CCode (instance_pos = 1.1)]
-                       public int print_private(BIO out, int indent, ASN1_PCTX? pctx);
+                       public int print_private (BIO out, int indent, ASN1_PCTX? pctx);
 
-                       public Engine? get0_engine();
-                       public int set1_engine(Engine? engine);
+                       public Engine? get0_engine ();
+                       public int set1_engine (Engine? engine);
 
-                       public int get_raw_private_key([CCode (array_length = false)] uint8[] priv, out 
size_t len);
-                       public int get_raw_public_key([CCode (array_length = false)] uint8[] pub, out size_t 
len);
+                       public int get_raw_private_key ([CCode (array_length = false)] uint8[] priv, out 
size_t len);
+                       public int get_raw_public_key ([CCode (array_length = false)] uint8[] pub, out size_t 
len);
                }
 
                [Compact]
-               [CCode(cname = "EVP_PKEY_CTX", lower_case_cprefix = "EVP_PKEY_CTX_", cprefix = 
"EVP_PKEY_CTX_", free_function = "EVP_PKEY_CTX_free")]
+               [CCode (cname = "EVP_PKEY_CTX", lower_case_cprefix = "EVP_PKEY_CTX_", cprefix = 
"EVP_PKEY_CTX_", free_function = "EVP_PKEY_CTX_free")]
                public class PublicKeyContext {
-                       public PublicKeyContext(PublicKey pkey, Engine? e);
-                       public PublicKeyContext.id(int id, Engine? e);
+                       public PublicKeyContext (PublicKey pkey, Engine? e);
+                       public PublicKeyContext.id (int id, Engine? e);
 
-                       public PublicKeyContext dup();
+                       public PublicKeyContext dup ();
 
-                       public int ctrl_str(string type, string value);
+                       public int ctrl_str (string type, string value);
                        public int ctrl_uint64(int keytype, int optype, int cmd, uint64 value);
-                       public int ctrl(int keytype, int optype, int cmd, int p1, [CCode (array_length = 
false)] uint8[] p2);
+                       public int ctrl (int keytype, int optype, int cmd, int p1, [CCode (array_length = 
false)] uint8[] p2);
 
                        [CCode (cname = "EVP_PKEY_CTX_set_rsa_padding", cheader_filename="openssl/rsa.h")]
-                       public int set_rsa_padding(int pad);
+                       public int set_rsa_padding (int pad);
                        [CCode (cname = "EVP_PKEY_CTX_get_rsa_padding", cheader_filename="openssl/rsa.h")]
-                       public int get_rsa_padding(out int pad);
+                       public int get_rsa_padding (out int pad);
                        [CCode (cname = "EVP_PKEY_CTX_set_rsa_pss_saltlen", cheader_filename="openssl/rsa.h")]
-                       public int set_rsa_pss_saltlen(int len);
+                       public int set_rsa_pss_saltlen (int len);
                        [CCode (cname = "EVP_PKEY_CTX_get_rsa_pss_saltlen", cheader_filename="openssl/rsa.h")]
-                       public int get_rsa_pss_saltlen(out int len);
+                       public int get_rsa_pss_saltlen (out int len);
                        [CCode (cname = "EVP_PKEY_CTX_set_rsa_keygen_bits", cheader_filename="openssl/rsa.h")]
-                       public int set_rsa_keygen_bits(int mbits);
+                       public int set_rsa_keygen_bits (int mbits);
                        [CCode (cname = "EVP_PKEY_CTX_set_rsa_keygen_pubexp", 
cheader_filename="openssl/rsa.h")]
-                       public int set_rsa_keygen_pubexp(BIGNUM pubexp);
+                       public int set_rsa_keygen_pubexp (BIGNUM pubexp);
                        [CCode (cname = "EVP_PKEY_CTX_set_rsa_keygen_primes", 
cheader_filename="openssl/rsa.h")]
-                       public int set_rsa_keygen_primes(int primes);
+                       public int set_rsa_keygen_primes (int primes);
 
-                       public int md(int optype, int cmd, string md);
-                       public int set_signature_md(MessageDigest md);
-                       public int get_signature_md(out MessageDigest pmd);
-                       public int set_mac_key(uint8[] key);
+                       public int md (int optype, int cmd, string md);
+                       public int set_signature_md (MessageDigest md);
+                       public int get_signature_md (out MessageDigest pmd);
+                       public int set_mac_key (uint8[] key);
 
                        [CCode (cname = "EVP_PKEY_keygen_init")]
-                       public int keygen_init();
+                       public int keygen_init ();
 
                        [CCode (cname = "EVP_PKEY_keygen")]
-                       public int keygen(out PublicKey ppkey);
+                       public int keygen (out PublicKey ppkey);
 
                        [CCode (cname = "EVP_PKEY_paramgen_init")]
-                       public int paramgen_init();
+                       public int paramgen_init ();
 
                        [CCode (cname = "EVP_PKEY_paramgen")]
-                       public int paramgen(out PublicKey ppkey);
+                       public int paramgen (out PublicKey ppkey);
 
                        [CCode (cname = "EVP_PKEY_encrypt_init")]
-                       public int encrypt_init();
+                       public int encrypt_init ();
 
                        [CCode (cname = "EVP_PKEY_encrypt")]
-                       public int encrypt([CCode (array_length = false)] uint8[] out, out size_t outlen, 
uint8[] in);
+                       public int encrypt ([CCode (array_length = false)] uint8[] out, out size_t outlen, 
uint8[] in);
 
                        [CCode (cname = "EVP_PKEY_decrypt_init")]
-                       public int decrypt_init();
+                       public int decrypt_init ();
 
                        [CCode (cname = "EVP_PKEY_decrypt")]
-                       public int decrypt([CCode (array_length = false)] uint8[] out, out size_t outlen, 
uint8[] in);
+                       public int decrypt ([CCode (array_length = false)] uint8[] out, out size_t outlen, 
uint8[] in);
 
                        [CCode (cname = "EVP_PKEY_derive_init")]
-                       public int derive_init();
+                       public int derive_init ();
 
                        [CCode (cname = "EVP_PKEY_derive_set_peer")]
-                       public int derive_set_peer(PublicKey peer);
+                       public int derive_set_peer (PublicKey peer);
 
                        [CCode (cname = "EVP_PKEY_derive")]
-                       public int derive([CCode (array_length = false)] uint8[] key, out size_t keylen);
+                       public int derive ([CCode (array_length = false)] uint8[] key, out size_t keylen);
 
                        [CCode (cname = "EVP_PKEY_sign_init")]
-                       public int sign_init();
+                       public int sign_init ();
 
                        [CCode (cname = "EVP_PKEY_sign")]
-                       public int sign([CCode (array_length = false)] uint8[] sig, out size_t siglen, 
uint8[] tbs);
+                       public int sign ([CCode (array_length = false)] uint8[] sig, out size_t siglen, 
uint8[] tbs);
 
                        [CCode (cname = "EVP_PKEY_verify_init")]
-                       public int verify_init();
+                       public int verify_init ();
 
                        [CCode (cname = "EVP_PKEY_verify")]
-                       public int verify(uint8[] sig, uint8[] tbs);
+                       public int verify (uint8[] sig, uint8[] tbs);
 
                        [CCode (cname = "EVP_PKEY_verify_recover_init")]
-                       public int verify_recover_init();
+                       public int verify_recover_init ();
 
                        [CCode (cname = "EVP_PKEY_verify_recover")]
-                       public int verify_recover([CCode (array_length = false)] uint8[] rout, out size_t 
routlen, uint8[] sig);
+                       public int verify_recover ([CCode (array_length = false)] uint8[] rout, out size_t 
routlen, uint8[] sig);
                }
 
                [Compact]
@@ -672,7 +672,7 @@ namespace OpenSSL
                        public int decrypt_init (Cipher cipher, Engine? engine, [CCode (array_length = 
false)] uchar[] key, [CCode (array_length = false)] uchar[] iv);
 
                        [CCode (cname = "EVP_DecryptUpdate")]
-                       public int decrypt_update([CCode (array_length = false)] uchar[] plaintext, out int 
plaintext_len, uchar[] ciphertext);
+                       public int decrypt_update ([CCode (array_length = false)] uchar[] plaintext, out int 
plaintext_len, uchar[] ciphertext);
 
                        [CCode (cname = "EVP_DecryptFinal_ex")]
                        public int decrypt_final ([CCode (array_length = false)] uchar[] plaintext, out int 
plaintext_len);
@@ -683,16 +683,16 @@ namespace OpenSSL
        [CCode (cname = "BIGNUM", cheader_filename = "openssl/rsa.h", free_function = "BN_free")]
        public class BIGNUM {
                [CCode (cname = "BN_new", cheader_filename = "openssl/bn.h")]
-               public BIGNUM();
+               public BIGNUM ();
        
                [CCode (cname = "BN_secure_new", cheader_filename = "openssl/bn.h")]
-               public BIGNUM.secure();
+               public BIGNUM.secure ();
 
                [CCode (cname = "BN_clear", cheader_filename = "openssl/bn.h")]
-               public void clear();
+               public void clear ();
 
                [CCode (cname = "BN_set_word", cheader_filename = "openssl/bn.h")]
-               public int set_word(ulong w);
+               public int set_word (ulong w);
        }
 
        [Compact]
@@ -701,13 +701,13 @@ namespace OpenSSL
                public delegate int BigNumGenCallback (int a, int b, BN_GENCB gcb);
 
                [CCode (cname = "BN_GENCB_new")]
-               public BN_GENCB();
+               public BN_GENCB ();
 
-               [CCode(cname = "BN_GENCB_set")]
-               public void set(BigNumGenCallback cb, [CCode (array_length = false)] uint8[] cb_arg);
+               [CCode (cname = "BN_GENCB_set")]
+               public void set (BigNumGenCallback cb, [CCode (array_length = false)] uint8[] cb_arg);
 
-               [CCode(cname = "BN_GENCB_call")]
-               public int call(int a, int b);
+               [CCode (cname = "BN_GENCB_call")]
+               public int call (int a, int b);
        }
 
        [Compact]
@@ -721,46 +721,46 @@ namespace OpenSSL
                public const int X931_PADDING;
                public const int PKCS1_PSS_PADDING;
                public const int F4;
-               [CCode(cname = "RSA_3")]
+               [CCode (cname = "RSA_3")]
                public const int RSA_3;
 
-               public RSA();
+               public RSA ();
 
                public int size ();
 
-               public int set0_key(BIGNUM n, BIGNUM e, BIGNUM d);
-               public void get0_key(out BIGNUM n, out BIGNUM e, out BIGNUM d);
+               public int set0_key (BIGNUM n, BIGNUM e, BIGNUM d);
+               public void get0_key (out BIGNUM n, out BIGNUM e, out BIGNUM d);
 
-               public void clear_flags(int flags);
-               public int test_flags(int flags);
-               public void set_flags(int flags);
-               public Engine get0_engine();
+               public void clear_flags (int flags);
+               public int test_flags (int flags);
+               public void set_flags (int flags);
+               public Engine get0_engine ();
 
                [CCode (instance_pos = 1.1)]
-               public int print_fp(GLib.FileStream fp, int offset);
+               public int print_fp (GLib.FileStream fp, int offset);
 
                [CCode (instance_pos = 1.1)]
-               public int print(BIO bp, int offset);
+               public int print (BIO bp, int offset);
 
-               public int generate_key_ex(int bits, BIGNUM e, BN_GENCB? cb = null);
+               public int generate_key_ex (int bits, BIGNUM e, BN_GENCB? cb = null);
 
                [CCode (instance_pos = 4)]
                public bool sign (int type, uint8[] m, [CCode (array_length = false)] uint8[] sigret, out int 
siglen);
 
                [CCode (instance_pos = 3)]
-               public int verify(int type, uint8[] m, uint8[] sigbuf);
+               public int verify (int type, uint8[] m, uint8[] sigbuf);
        
                [CCode (instance_pos = 2.1)]
-               public int public_encrypt([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length = 
false)] uint8[] to, int padding);
+               public int public_encrypt ([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to, int padding);
        
                [CCode (instance_pos = 2.1)]
-               public int private_encrypt([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to, int padding);
+               public int private_encrypt ([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to, int padding);
                
                [CCode (instance_pos = 2.1)]
-               public int public_decrypt([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length = 
false)] uint8[] to,int padding);
+               public int public_decrypt ([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to,int padding);
        
                [CCode (instance_pos = 2.1)]
-               public int private_decrypt([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to, int padding);        
+               public int private_decrypt ([CCode (array_length_pos = 0)] uint8[] from, [CCode (array_length 
= false)] uint8[] to, int padding);       
        }
 
        [CCode (lower_case_cprefix = "PEM_")]
@@ -768,38 +768,38 @@ namespace OpenSSL
        {
                [CCode (cname = "pem_password_cb")]
                public delegate int PasswordCallback (uint8[] buf, int flag);
-               public RSA? read_RSAPrivateKey(GLib.FileStream f, out RSA x, PasswordCallback? cb);
-               public RSA? read_RSAPublicKey(GLib.FileStream f, out RSA x, PasswordCallback? cb);
-               public int write_RSAPrivateKey(GLib.FileStream f, RSA x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
-               public int write_RSAPublicKey(GLib.FileStream f, RSA x);
+               public RSA? read_RSAPrivateKey (GLib.FileStream f, out RSA x, PasswordCallback? cb);
+               public RSA? read_RSAPublicKey (GLib.FileStream f, out RSA x, PasswordCallback? cb);
+               public int write_RSAPrivateKey (GLib.FileStream f, RSA x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
+               public int write_RSAPublicKey (GLib.FileStream f, RSA x);
 
-               public RSA? read_bio_RSAPublicKey(BIO bp, out RSA x, PasswordCallback? cb);
-               public RSA? read_bio_RSAPrivateKey(BIO bp, out RSA x, PasswordCallback? cb);
+               public RSA? read_bio_RSAPublicKey (BIO bp, out RSA x, PasswordCallback? cb);
+               public RSA? read_bio_RSAPrivateKey (BIO bp, out RSA x, PasswordCallback? cb);
                public bool write_bio_RSAPublicKey (BIO bp, RSA x);
                public bool write_bio_RSAPrivateKey (BIO bp, RSA x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
 
-               public EVP.PublicKey? read_bio_PUBKEY(BIO bp, out EVP.PublicKey x, PasswordCallback? cb);
-               public int write_bio_PUBKEY(BIO bp, EVP.PublicKey x);
-               public EVP.PublicKey? read_PUBKEY(GLib.FileStream fp, out EVP.PublicKey x, PasswordCallback? 
cb);
-               public int write_PUBKEY(GLib.FileStream fp, EVP.PublicKey x);
-
-               public EVP.PublicKey? read_bio_PrivateKey(BIO bp, out EVP.PublicKey x, PasswordCallback? cb);
-               public EVP.PublicKey? read_PrivateKey(GLib.FileStream fp, out EVP.PublicKey x, 
PasswordCallback? cb);
-               public int write_bio_PrivateKey(BIO bp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
-               public int write_bio_PrivateKey_traditional(BIO bp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] 
kstr, PasswordCallback? cb);
-               public int write_PrivateKey(GLib.FileStream fp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] 
kstr, PasswordCallback? cb);          
-
-               public int write_bio_PKCS8PrivateKey(BIO bp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
-               public int write_bio_PKCS8PrivateKey_nid(BIO bp, EVP.PublicKey x, int nid, uint8[] kstr, 
PasswordCallback? cb);
-               public int write_PKCS8PrivateKey(GLib.FileStream fp, EVP.PublicKey x, EVP.Cipher? enc, 
uint8[] kstr, PasswordCallback? cb);
-               public int write_PKCS8PrivateKey_nid(GLib.FileStream fp, EVP.PublicKey x, int nid, uint8[] 
kstr, PasswordCallback? cb);
+               public EVP.PublicKey? read_bio_PUBKEY (BIO bp, out EVP.PublicKey x, PasswordCallback? cb);
+               public int write_bio_PUBKEY (BIO bp, EVP.PublicKey x);
+               public EVP.PublicKey? read_PUBKEY (GLib.FileStream fp, out EVP.PublicKey x, PasswordCallback? 
cb);
+               public int write_PUBKEY (GLib.FileStream fp, EVP.PublicKey x);
+
+               public EVP.PublicKey? read_bio_PrivateKey (BIO bp, out EVP.PublicKey x, PasswordCallback? cb);
+               public EVP.PublicKey? read_PrivateKey (GLib.FileStream fp, out EVP.PublicKey x, 
PasswordCallback? cb);
+               public int write_bio_PrivateKey (BIO bp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
+               public int write_bio_PrivateKey_traditional (BIO bp, EVP.PublicKey x, EVP.Cipher? enc, 
uint8[] kstr, PasswordCallback? cb);
+               public int write_PrivateKey (GLib.FileStream fp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] 
kstr, PasswordCallback? cb);         
+
+               public int write_bio_PKCS8PrivateKey (BIO bp, EVP.PublicKey x, EVP.Cipher? enc, uint8[] kstr, 
PasswordCallback? cb);
+               public int write_bio_PKCS8PrivateKey_nid (BIO bp, EVP.PublicKey x, int nid, uint8[] kstr, 
PasswordCallback? cb);
+               public int write_PKCS8PrivateKey (GLib.FileStream fp, EVP.PublicKey x, EVP.Cipher? enc, 
uint8[] kstr, PasswordCallback? cb);
+               public int write_PKCS8PrivateKey_nid (GLib.FileStream fp, EVP.PublicKey x, int nid, uint8[] 
kstr, PasswordCallback? cb);
        }
 
-       RSA? d2i_RSA_PUBKEY(out RSA a, uint8[] ppin);
-       RSA? d2i_RSA_PUBKEY_bio(BIO bp, out RSA a);
-       RSA? d2i_RSA_PUBKEY_fp(GLib.FileStream fp, out RSA a);
+       public RSA? d2i_RSA_PUBKEY (out RSA a, uint8[] ppin);
+       public RSA? d2i_RSA_PUBKEY_bio (BIO bp, out RSA a);
+       public RSA? d2i_RSA_PUBKEY_fp (GLib.FileStream fp, out RSA a);
 
        public int i2d_RSA_PUBKEY (RSA rsa, [CCode (array_length = false)] out uint8[] ppout);
-       public int i2d_RSA_PUBKEY_fp(GLib.FileStream fp, RSA a);
-       public int i2d_RSA_PUBKEY_bio(BIO bp, RSA a);
+       public int i2d_RSA_PUBKEY_fp (GLib.FileStream fp, RSA a);
+       public int i2d_RSA_PUBKEY_bio (BIO bp, RSA a);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]