logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

shishi_crypto_encrypt - API function

Arguments

       Shishi_crypto * ctx
                   crypto context as returned by shishi_crypto().

       const char * in
                   input array with data to encrypt.

       size_t inlen
                   size of input array with data to encrypt.

       char ** out output array with newly allocated encrypted data.

       size_t * outlen
                   output variable with size of newly allocated output array.

Description

       Encrypt data, using information (e.g., key and initialization vector) from context.  The  IV  is  updated
       inside the context after this call.

       When the application no longer need to use the context, it should deallocate resources associated with it
       by calling shishi_crypto_close().

Name

       shishi_crypto_encrypt - API function

Reporting Bugs

       Report  bugs  to <bug-shishi@gnu.org>.  GNU Shishi home page: http://www.gnu.org/software/shishi/ General
       help using GNU software: http://www.gnu.org/gethelp/

Return Value

       Returns SHISHI_OK iff successful.

See Also

       The full documentation for shishi is maintained as a Texinfo manual.  If the info and shishi programs are
       properly installed at your site, the command

              infoshishi

       should give you access to the complete manual.

shishi                                                1.0.3                             shishi_crypto_encrypt(3)

Synopsis

#include<shishi.h>intshishi_crypto_encrypt(Shishi_crypto*ctx,constchar*in,size_tinlen,char**out,size_t*outlen);

See Also