Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/glxsb/glxsb.h
Show All 31 Lines | |||||
#define _GLXSB_H_ | #define _GLXSB_H_ | ||||
#include <opencrypto/cryptodev.h> | #include <opencrypto/cryptodev.h> | ||||
#define SB_AES_BLOCK_SIZE 0x0010 | #define SB_AES_BLOCK_SIZE 0x0010 | ||||
struct glxsb_session { | struct glxsb_session { | ||||
uint32_t ses_key[4]; /* key */ | uint32_t ses_key[4]; /* key */ | ||||
struct auth_hash *ses_axf; | const struct auth_hash *ses_axf; | ||||
uint8_t *ses_ictx; | uint8_t *ses_ictx; | ||||
uint8_t *ses_octx; | uint8_t *ses_octx; | ||||
int ses_mlen; | int ses_mlen; | ||||
}; | }; | ||||
int glxsb_hash_setup(struct glxsb_session *ses, | int glxsb_hash_setup(struct glxsb_session *ses, | ||||
const struct crypto_session_params *csp); | const struct crypto_session_params *csp); | ||||
int glxsb_hash_process(struct glxsb_session *ses, | int glxsb_hash_process(struct glxsb_session *ses, | ||||
const struct crypto_session_params *csp, struct cryptop *crp); | const struct crypto_session_params *csp, struct cryptop *crp); | ||||
void glxsb_hash_free(struct glxsb_session *ses); | void glxsb_hash_free(struct glxsb_session *ses); | ||||
#endif /* !_GLXSB_H_ */ | #endif /* !_GLXSB_H_ */ |