Sha256: 4c32c24f5291a252c2c01d9d42b79b18af7386a09bc575e46db3c5325cc07c8b

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

#ifndef AWS_C_CAL_OPENSSLCRYPTO_COMMON_H
#define AWS_C_CAL_OPENSSLCRYPTO_COMMON_H

#include <openssl/crypto.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>

typedef HMAC_CTX *(*hmac_ctx_new)(void);
typedef void (*hmac_ctx_reset)(HMAC_CTX *);
typedef void (*hmac_ctx_free)(HMAC_CTX *);
typedef void (*hmac_ctx_init)(HMAC_CTX *);
typedef int (*hmac_ctx_init_ex)(HMAC_CTX *, const void *, size_t, const EVP_MD *, ENGINE *);
typedef void (*hmac_ctx_clean_up)(HMAC_CTX *);
typedef int (*hmac_ctx_update)(HMAC_CTX *, const unsigned char *, size_t);
typedef int (*hmac_ctx_final)(HMAC_CTX *, unsigned char *, unsigned int *);

struct openssl_hmac_ctx_table {
    hmac_ctx_new new_fn;
    hmac_ctx_free free_fn;
    hmac_ctx_init init_fn;
    hmac_ctx_init_ex init_ex_fn;
    hmac_ctx_clean_up clean_up_fn;
    hmac_ctx_update update_fn;
    hmac_ctx_final final_fn;
    hmac_ctx_reset reset_fn;
};

extern struct openssl_hmac_ctx_table *g_aws_openssl_hmac_ctx_table;

typedef EVP_MD_CTX *(*evp_md_ctx_new)(void);
typedef void (*evp_md_ctx_free)(EVP_MD_CTX *);
typedef int (*evp_md_ctx_digest_init_ex)(EVP_MD_CTX *, const EVP_MD *, ENGINE *);
typedef int (*evp_md_ctx_digest_update)(EVP_MD_CTX *, const void *, size_t);
typedef int (*evp_md_ctx_digest_final_ex)(EVP_MD_CTX *, unsigned char *, unsigned int *);

struct openssl_evp_md_ctx_table {
    evp_md_ctx_new new_fn;
    evp_md_ctx_free free_fn;
    evp_md_ctx_digest_init_ex init_ex_fn;
    evp_md_ctx_digest_update update_fn;
    evp_md_ctx_digest_final_ex final_ex_fn;
};

extern struct openssl_evp_md_ctx_table *g_aws_openssl_evp_md_ctx_table;

#endif /* AWS_C_CAL_OPENSSLCRYPTO_COMMON_H */

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aws-crt-0.1.8 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.7 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.6 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.5 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.4 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.2 aws-crt-ffi/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.1.pre native/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h
aws-crt-0.1.0.pre native/crt/aws-c-cal/include/aws/cal/private/opensslcrypto_common.h