1#ifndef __BCRYPT_INTERNAL_H
2#define __BCRYPT_INTERNAL_H
5#ifdef SONAME_LIBMBEDTLS
9#define MAGIC_DSS1 ('D' | ('S' << 8) | ('S' << 16) | ('1' << 24))
10#define MAGIC_DSS2 ('D' | ('S' << 8) | ('S' << 16) | ('2' << 24))
12#define MAGIC_ALG (('A' << 24) | ('L' << 16) | ('G' << 8) | '0')
13#define MAGIC_HASH (('H' << 24) | ('A' << 16) | ('S' << 8) | 'H')
14#define MAGIC_KEY (('K' << 24) | ('E' << 16) | ('Y' << 8) | '0')
15#define MAGIC_SECRET (('S' << 24) | ('C' << 16) | ('R' << 8) | 'T')
75#define BLOCK_LENGTH_RC4 1
76#define BLOCK_LENGTH_3DES 8
77#define BLOCK_LENGTH_AES 16
90#define KEY_FLAG_LEGACY_DSA_V2 0x00000001
91#define KEY_FLAG_FINALIZED 0x00000002
100#define PRIVATE_DATA_SIZE 64
126#ifdef SONAME_LIBMBEDTLS
209#define KEY_EXPORT_FLAG_PUBLIC 0x00000001
210#define KEY_EXPORT_FLAG_RSA_FULL 0x00000002
211#define KEY_EXPORT_FLAG_DH_PARAMETERS 0x00000004
222#define KEY_IMPORT_FLAG_PUBLIC 0x00000001
223#define KEY_IMPORT_FLAG_DH_PARAMETERS 0x00000002
243#define HASH_FLAG_HMAC 0x01
244#define HASH_FLAG_REUSABLE 0x02
246#if defined(HAVE_GNUTLS_HASH)
256 gnutls_hash_hd_t hash_handle;
257 gnutls_hmac_hd_t hmac_handle;
260#elif defined(SONAME_LIBMBEDTLS)
309#define ARRAY_SIZE ARRAYSIZE
COMPILER_DEPENDENT_UINT64 UINT64
NTSTATUS hmac_init(struct hash *hash, UCHAR *key, ULONG key_size)
NTSTATUS key_symmetric_vector_reset(void *args)
NTSTATUS key_symmetric_encrypt_internal(void *args)
NTSTATUS key_asymmetric_export(void *args)
NTSTATUS key_symmetric_set_auth_data(void *args)
#define PRIVATE_DATA_SIZE
NTSTATUS key_symmetric_get_tag(void *args)
NTSTATUS hash_update(struct hash *hash, UCHAR *input, ULONG size)
NTSTATUS key_asymmetric_encrypt(void *args)
NTSTATUS key_symmetric_destroy(void *args)
NTSTATUS key_symmetric_decrypt_internal(void *args)
NTSTATUS hmac_update(struct hash *hash, UCHAR *input, ULONG size)
NTSTATUS hash_get_size(struct hash *hash, ULONG *output)
NTSTATUS hash_finish(struct hash *hash, UCHAR *output)
NTSTATUS key_asymmetric_generate(void *args)
NTSTATUS key_asymmetric_destroy(void *args)
NTSTATUS process_attach(void *args)
NTSTATUS key_asymmetric_verify(void *args)
NTSTATUS key_asymmetric_derive_key(void *args)
NTSTATUS key_asymmetric_import(void *args)
NTSTATUS hash_init(struct hash *hash)
NTSTATUS key_asymmetric_sign(void *args)
NTSTATUS key_asymmetric_decrypt(void *args)
NTSTATUS key_asymmetric_duplicate(void *args)
NTSTATUS hmac_finish(struct hash *hash, UCHAR *output)
static void process_detach(void)
GLboolean GLboolean GLboolean GLboolean a
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
This file contains the generic message-digest wrapper.