FFX_CTX_new, FFX_CTX_free, FFX_init, FFX_encrypt, FFX_decrypt, FFX_compute_luhn - Format-Preserving Encryption
#include <openssl/ffx.h>
FFX_CTX *FFX_CTX_new(void);
void FFX_CTX_free(FFX_CTX *ctx);
int FFX_init(FFX_CTX *ctx, const EVP_CIPHER *cipher,
const unsigned char *key, int flag);
int FFX_encrypt(FFX_CTX *ctx, const char *in, char *out, size_t iolen,
unsigned char *tweak, size_t tweaklen);
int FFX_decrypt(FFX_CTX *ctx, const char *in, char *out, size_t iolen,
unsigned char *tweak, size_t tweaklen);
int FFX_compute_luhn(const char *in, size_t inlen);
Applications should use the higher level functions RETURN VALUES
sm3_init(), sm3_update(), sm3_final(), sm3_compress() and sm3() return void. GM/T 0004-2012 SM3 Cryptogrpahic Hash Algorithm. 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.CONFORMING TO
SEE ALSO