- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUES
- CONFORMING TO
- SEE ALSO
- COPYRIGHT

# NAME

ECAHE_CIPHERTEXT_new, ECAHE_CIPHERTEXT_free, ECAHE_do_encrypt, ECAHE_do_decrypt ECAHE_ciphertext_add, ECAHE_ciphertext_sub, ECAHE_ciphertext_neg - ECAHE Algorithm

# SYNOPSIS

     #include <openssl/ecahe.h>

     ECAHE_CIPHERTEXT *ECAHE_CIPHERTEXT_new(void);
     void ECAHE_CIPHERTEXT_free(ECAHE_CIPHERTEXT *c);

     int ECAHE_do_encrypt(ECAHE_CIPHERTEXT *c, const BIGNUM *m, EC_KEY *pk);
     int ECAHE_do_decrypt(BIGNUM *m, const ECAHE_CIPHERTEXT *c, EC_KEY *sk);

     int ECAHE_ciphertext_add(ECAHE_CIPHERTEXT *r,
                              const ECAHE_CIPHERTEXT *a,
                              const ECAHE_CIPHERTEXT *b,
                              EC_KEY *pk);
     int ECAHE_ciphertext_sub(ECAHE_CIPHERTEXT *r,
                              const ECAHE_CIPHERTEXT *a,
                              const ECAHE_CIPHERTEXT *b,
                              EC_KEY *pk);
     int ECAHE_ciphertext_neg(ECAHE_CIPHERTEXT *r,
                              const ECAHE_CIPHERTEXT *a,
                              EC_KEY *pk);

# DESCRIPTION

Applications should use the higher level functions RETURN VALUES

sm3_init(), sm3_update(), sm3_final(), sm3_compress() and sm3() return void.

# CONFORMING TO

GM/T 0004-2012 SM3 Cryptogrpahic Hash Algorithm.

# SEE ALSO

COPYRIGHT

Copyright 2014-2019 The GmSSL Project. All Rights Reserved.

Licensed under the GmSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at http://gmssl.org/license.html.