Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/openssl/ossl.h
Show All 28 Lines | |||||
*/ | */ | ||||
#ifndef __OSSL_H__ | #ifndef __OSSL_H__ | ||||
#define __OSSL_H__ | #define __OSSL_H__ | ||||
/* Compatibility shims. */ | /* Compatibility shims. */ | ||||
#define OPENSSL_cleanse explicit_bzero | #define OPENSSL_cleanse explicit_bzero | ||||
struct cryptop; | |||||
struct crypto_session_params; | |||||
int ossl_chacha20(struct cryptop *crp, | |||||
const struct crypto_session_params *csp); | |||||
void ossl_cpuid(void); | void ossl_cpuid(void); | ||||
/* Needs to be big enough to hold any hash context. */ | /* Needs to be big enough to hold any hash context. */ | ||||
struct ossl_hash_context { | struct ossl_hash_context { | ||||
uint32_t dummy[61]; | uint32_t dummy[61]; | ||||
} __aligned(32); | } __aligned(32); | ||||
extern struct auth_hash ossl_hash_poly1305; | extern struct auth_hash ossl_hash_poly1305; | ||||
extern struct auth_hash ossl_hash_sha1; | extern struct auth_hash ossl_hash_sha1; | ||||
extern struct auth_hash ossl_hash_sha224; | extern struct auth_hash ossl_hash_sha224; | ||||
extern struct auth_hash ossl_hash_sha256; | extern struct auth_hash ossl_hash_sha256; | ||||
extern struct auth_hash ossl_hash_sha384; | extern struct auth_hash ossl_hash_sha384; | ||||
extern struct auth_hash ossl_hash_sha512; | extern struct auth_hash ossl_hash_sha512; | ||||
#endif /* !__OSSL_H__ */ | #endif /* !__OSSL_H__ */ |