X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_grasshopper_cipher.h;h=7f775a24b8ff2f7576c4d1317f79e70566d581e0;hb=a72a02c4dd5778eea83db6e9e17d89f0d2b278dd;hp=c406614c6d45241a2db4891f4781d6124bece05b;hpb=3a01994fee987180f1e2826fa6f0c17d78c04cc9;p=openssl-gost%2Fengine.git diff --git a/gost_grasshopper_cipher.h b/gost_grasshopper_cipher.h index c406614..7f775a2 100644 --- a/gost_grasshopper_cipher.h +++ b/gost_grasshopper_cipher.h @@ -46,54 +46,54 @@ typedef int (* grasshopper_do_cipher_func)(EVP_CIPHER_CTX* ctx, unsigned char* o typedef void (* grasshopper_destroy_cipher_func)(gost_grasshopper_cipher_ctx* c); -static void gost_grasshopper_cipher_key(gost_grasshopper_cipher_ctx* c, const uint8_t* k); +void gost_grasshopper_cipher_key(gost_grasshopper_cipher_ctx* c, const uint8_t* k); -static void gost_grasshopper_cipher_destroy(gost_grasshopper_cipher_ctx* c); +void gost_grasshopper_cipher_destroy(gost_grasshopper_cipher_ctx* c); -static int gost_grasshopper_cipher_init_ecb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init_ecb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_init_cbc(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init_cbc(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_init_ofb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init_ofb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_init_cfb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init_cfb(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_init_ctr(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init_ctr(EVP_CIPHER_CTX* ctx, const unsigned char* key, const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_init(EVP_CIPHER_CTX* ctx, const unsigned char* key, - const unsigned char* iv, int enc); +int gost_grasshopper_cipher_init(EVP_CIPHER_CTX* ctx, const unsigned char* key, + const unsigned char* iv, int enc); -static int gost_grasshopper_cipher_do(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_do_ecb(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do_ecb(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_do_cbc(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do_cbc(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_do_ofb(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do_ofb(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_do_cfb(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do_cfb(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_do_ctr(EVP_CIPHER_CTX* ctx, unsigned char* out, - const unsigned char* in, size_t inl); +int gost_grasshopper_cipher_do_ctr(EVP_CIPHER_CTX* ctx, unsigned char* out, + const unsigned char* in, size_t inl); -static int gost_grasshopper_cipher_cleanup(EVP_CIPHER_CTX* ctx); +int gost_grasshopper_cipher_cleanup(EVP_CIPHER_CTX* ctx); -static int gost_grasshopper_set_asn1_parameters(EVP_CIPHER_CTX* ctx, ASN1_TYPE* params); +int gost_grasshopper_set_asn1_parameters(EVP_CIPHER_CTX* ctx, ASN1_TYPE* params); -static int gost_grasshopper_get_asn1_parameters(EVP_CIPHER_CTX* ctx, ASN1_TYPE* params); +int gost_grasshopper_get_asn1_parameters(EVP_CIPHER_CTX* ctx, ASN1_TYPE* params); -static int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX* ctx, int type, int arg, void* ptr); +int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX* ctx, int type, int arg, void* ptr); -static EVP_CIPHER* cipher_gost_grasshopper_create(int cipher_type, int block_size); +EVP_CIPHER* cipher_gost_grasshopper_create(int cipher_type, int block_size); -static const int cipher_gost_grasshopper_setup(EVP_CIPHER* cipher, uint8_t mode, int iv_size, bool padding); +const int cipher_gost_grasshopper_setup(EVP_CIPHER* cipher, uint8_t mode, int iv_size, bool padding); -static const EVP_CIPHER* cipher_gost_grasshopper(uint8_t mode, uint8_t num); +const EVP_CIPHER* cipher_gost_grasshopper(uint8_t mode, uint8_t num); extern const EVP_CIPHER* cipher_gost_grasshopper_ecb(); extern const EVP_CIPHER* cipher_gost_grasshopper_cbc();