/freebsd/crypto/openssl/providers/implementations/signature/ |
H A D | ecdsa_sig.c | 128 static int ecdsa_signverify_init(void *vctx, void *ec, in ecdsa_signverify_init() argument 131 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_signverify_init() 159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_sign_init() argument 161 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_SIGN); in ecdsa_sign_init() 164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() argument 166 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_VERIFY); in ecdsa_verify_init() 169 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_sign() argument 172 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign() 204 static int ecdsa_verify(void *vctx, const unsigned char *sig, size_t siglen, in ecdsa_verify() argument 207 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify() [all …]
|
/freebsd/sys/crypto/blake2/ |
H A D | blake2-sw.c | 33 blake2b_xform_init(void *vctx) in blake2b_xform_init() argument 35 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_init() 44 blake2b_xform_setkey(void *vctx, const uint8_t *key, u_int klen) in blake2b_xform_setkey() argument 46 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_setkey() 56 blake2b_xform_update(void *vctx, const void *data, u_int len) in blake2b_xform_update() argument 58 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_update() 68 blake2b_xform_final(uint8_t *out, void *vctx) in blake2b_xform_final() argument 70 struct blake2b_xform_ctx *ctx = vctx; in blake2b_xform_final() 96 blake2s_xform_init(void *vctx) in blake2s_xform_init() argument 98 struct blake2s_xform_ctx *ctx = vctx; in blake2s_xform_init() [all …]
|
/freebsd/crypto/openssl/providers/implementations/digests/ |
H A D | sha3_prov.c | 53 static int keccak_init(void *vctx, ossl_unused const OSSL_PARAM params[]) in keccak_init() argument 58 ossl_sha3_reset((KECCAK1600_CTX *)vctx); in keccak_init() 62 static int keccak_init_params(void *vctx, const OSSL_PARAM params[]) in keccak_init_params() argument 64 return keccak_init(vctx, NULL) in keccak_init_params() 65 && shake_set_ctx_params(vctx, params); in keccak_init_params() 68 static int keccak_update(void *vctx, const unsigned char *inp, size_t len) in keccak_update() argument 70 KECCAK1600_CTX *ctx = vctx; in keccak_update() 105 static int keccak_final(void *vctx, unsigned char *out, size_t *outl, in keccak_final() argument 109 KECCAK1600_CTX *ctx = vctx; in keccak_final() 123 static size_t generic_sha3_absorb(void *vctx, const void *inp, size_t len) in generic_sha3_absorb() argument [all …]
|
/freebsd/sys/opencrypto/ |
H A D | xform_chacha20_poly1305.c | 50 chacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len) in chacha20_poly1305_setkey() argument 52 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_setkey() 62 chacha20_poly1305_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in chacha20_poly1305_reinit() argument 64 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_reinit() 86 chacha20_poly1305_crypt(void *vctx, const uint8_t *in, uint8_t *out) in chacha20_poly1305_crypt() argument 88 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt() 102 chacha20_poly1305_crypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in chacha20_poly1305_crypt_multi() argument 104 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt_multi() 120 chacha20_poly1305_crypt_last(void *vctx, const uint8_t *in, uint8_t *out, in chacha20_poly1305_crypt_last() argument 123 struct chacha20_poly1305_ctx *ctx = vctx; in chacha20_poly1305_crypt_last() [all …]
|
H A D | xform_aes_cbc.c | 87 aes_cbc_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in aes_cbc_encrypt() argument 89 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_encrypt() 98 aes_cbc_decrypt(void *vctx, const uint8_t *in, uint8_t *out) in aes_cbc_decrypt() argument 100 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_decrypt() 112 aes_cbc_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in aes_cbc_encrypt_multi() argument 114 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_encrypt_multi() 129 aes_cbc_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in aes_cbc_decrypt_multi() argument 131 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_decrypt_multi() 149 aes_cbc_setkey(void *vctx, const uint8_t *key, int len) in aes_cbc_setkey() argument 151 struct aes_cbc_ctx *ctx = vctx; in aes_cbc_setkey() [all …]
|
H A D | xform_cml.c | 87 cml_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_encrypt() argument 89 struct camellia_cbc_ctx *ctx = vctx; in cml_encrypt() 98 cml_decrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_decrypt() argument 100 struct camellia_cbc_ctx *ctx = vctx; in cml_decrypt() 112 cml_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in cml_encrypt_multi() argument 114 struct camellia_cbc_ctx *ctx = vctx; in cml_encrypt_multi() 130 cml_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in cml_decrypt_multi() argument 132 struct camellia_cbc_ctx *ctx = vctx; in cml_decrypt_multi() 151 cml_setkey(void *vctx, const uint8_t *key, int len) in cml_setkey() argument 153 struct camellia_cbc_ctx *ctx = vctx; in cml_setkey() [all …]
|
H A D | xform_aes_icm.c | 157 aes_gcm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in aes_gcm_reinit() argument 159 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_reinit() 173 aes_ccm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in aes_ccm_reinit() argument 175 struct aes_ccm_ctx *ctx = vctx; in aes_ccm_reinit() 258 aes_gcm_setkey(void *vctx, const uint8_t *key, int len) in aes_gcm_setkey() argument 260 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_setkey() 272 aes_ccm_setkey(void *vctx, const uint8_t *key, int len) in aes_ccm_setkey() argument 274 struct aes_ccm_ctx *ctx = vctx; in aes_ccm_setkey() 286 aes_gcm_update(void *vctx, const void *buf, u_int len) in aes_gcm_update() argument 288 struct aes_gcm_ctx *ctx = vctx; in aes_gcm_update() [all …]
|
H A D | cbc_mac.c | 53 AES_CBC_MAC_Init(void *vctx) in AES_CBC_MAC_Init() argument 57 ctx = vctx; in AES_CBC_MAC_Init() 62 AES_CBC_MAC_Setkey(void *vctx, const uint8_t *key, u_int klen) in AES_CBC_MAC_Setkey() argument 66 ctx = vctx; in AES_CBC_MAC_Setkey() 78 AES_CBC_MAC_Reinit(void *vctx, const uint8_t *nonce, u_int nonceLen) in AES_CBC_MAC_Reinit() argument 80 struct aes_cbc_mac_ctx *ctx = vctx; in AES_CBC_MAC_Reinit() 92 AES_CBC_MAC_Update(void *vctx, const void *vdata, u_int length) in AES_CBC_MAC_Update() argument 98 ctx = vctx; in AES_CBC_MAC_Update() 137 AES_CBC_MAC_Final(uint8_t *buf, void *vctx) in AES_CBC_MAC_Final() argument 142 ctx = vctx; in AES_CBC_MAC_Final()
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_xts.c | 68 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_init() argument 72 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_init() 81 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in aes_xts_init() 97 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() argument 101 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit() 104 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() argument 108 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_xts_dinit() 124 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() argument 126 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_freectx() 128 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_xts_freectx() [all …]
|
H A D | cipher_chacha20.c | 58 static void chacha20_freectx(void *vctx) in chacha20_freectx() argument 60 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_freectx() 63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx() 68 static void *chacha20_dupctx(void *vctx) in chacha20_dupctx() argument 70 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_dupctx() 95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() argument 124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() argument 168 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_einit() argument 175 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_einit() 177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit() [all …]
|
H A D | cipher_tdes_common.c | 56 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() argument 58 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx; in ossl_tdes_freectx() 60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx() 64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() argument 68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init() 100 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() argument 104 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_tdes_einit() 107 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_dinit() argument 111 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_tdes_dinit() 135 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params() argument [all …]
|
H A D | cipher_aes_siv.c | 49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() argument 51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_freectx() 59 static void *siv_dupctx(void *vctx) in siv_dupctx() argument 61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx; in siv_dupctx() 79 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() argument 83 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_init() 101 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() argument 105 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit() 108 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() argument 112 return siv_init(vctx, key, keylen, iv, ivlen, params, 0); in siv_dinit() [all …]
|
H A D | cipher_chacha20_poly1305.c | 81 static void chacha20_poly1305_freectx(void *vctx) in chacha20_poly1305_freectx() argument 83 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_freectx() 86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx() 99 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_poly1305_get_ctx_params() argument 101 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_get_ctx_params() 161 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() argument 166 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_set_ctx_params() 245 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, in chacha20_poly1305_einit() argument 252 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in chacha20_poly1305_einit() 254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit() [all …]
|
H A D | cipher_null.c | 34 static void null_freectx(void *vctx) in null_freectx() argument 36 OPENSSL_free(vctx); in null_freectx() 40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, in null_einit() argument 44 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_einit() 54 static int null_dinit(void *vctx, const unsigned char *key, size_t keylen, in null_dinit() argument 65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() argument 68 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_cipher() 92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() argument 123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() argument 125 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_get_ctx_params() [all …]
|
H A D | cipher_aes_siv_hw.c | 18 static void aes_siv_cleanup(void *vctx); 20 static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen) in aes_siv_initkey() argument 22 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_initkey() 77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) in aes_siv_settag() argument 79 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_settag() 85 static void aes_siv_setspeed(void *vctx, int speed) in aes_siv_setspeed() argument 87 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_setspeed() 93 static void aes_siv_cleanup(void *vctx) in aes_siv_cleanup() argument 95 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_cleanup() 103 static int aes_siv_cipher(void *vctx, unsigned char *out, in aes_siv_cipher() argument [all …]
|
H A D | cipher_des.c | 65 static void des_freectx(void *vctx) in des_freectx() argument 67 PROV_DES_CTX *ctx = (PROV_DES_CTX *)vctx; in des_freectx() 69 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx() 73 static int des_init(void *vctx, const unsigned char *key, size_t keylen, in des_init() argument 77 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init() 106 static int des_einit(void *vctx, const unsigned char *key, size_t keylen, in des_einit() argument 110 return des_init(vctx, key, keylen, iv, ivlen, params, 1); in des_einit() 113 static int des_dinit(void *vctx, const unsigned char *key, size_t keylen, in des_dinit() argument 117 return des_init(vctx, key, keylen, iv, ivlen, params, 0); in des_dinit() 136 static int des_get_ctx_params(void *vctx, OSSL_PARAM params[]) [all …]
|
H A D | cipher_aes_wrp.c | 89 static void aes_wrap_freectx(void *vctx) in aes_wrap_freectx() argument 91 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_freectx() 93 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_wrap_freectx() 97 static int aes_wrap_init(void *vctx, const unsigned char *key, in aes_wrap_init() argument 101 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_init() 102 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_init() 162 static int aes_wrap_cipher_internal(void *vctx, unsigned char *out, in aes_wrap_cipher_internal() argument 165 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_wrap_cipher_internal() 166 PROV_AES_WRAP_CTX *wctx = (PROV_AES_WRAP_CTX *)vctx; in aes_wrap_cipher_internal() 222 static int aes_wrap_final(void *vctx, unsigned char *out, size_t *outl, in aes_wrap_final() argument [all …]
|
H A D | ciphercommon.c | 113 int ossl_cipher_var_keylen_set_ctx_params(void *vctx, const OSSL_PARAM params[]) 115 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; 121 if (!ossl_cipher_generic_set_ctx_params(vctx, params)) 228 int ossl_cipher_generic_einit(void *vctx, const unsigned char *key, in ossl_cipher_generic_einit() argument 232 return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen, in ossl_cipher_generic_einit() 236 int ossl_cipher_generic_dinit(void *vctx, const unsigned char *key, in ossl_cipher_generic_dinit() argument 240 return cipher_generic_init_internal((PROV_CIPHER_CTX *)vctx, key, keylen, in ossl_cipher_generic_dinit() 247 int ossl_cipher_generic_block_update(void *vctx, unsigned char *out, in ossl_cipher_generic_block_update() argument 252 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_cipher_generic_block_update() 393 int ossl_cipher_generic_block_final(void *vctx, unsigned char *out, in ossl_cipher_generic_block_final() argument [all …]
|
H A D | cipher_aes_ocb.c | 104 static int aes_ocb_init(void *vctx, const unsigned char *key, size_t keylen, in aes_ocb_init() argument 108 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_init() 141 static int aes_ocb_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_ocb_einit() argument 145 return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_ocb_einit() 148 static int aes_ocb_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_ocb_dinit() argument 152 return aes_ocb_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_ocb_dinit() 231 static int aes_ocb_block_update(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_update() argument 235 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_block_update() 262 static int aes_ocb_block_final(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_block_final() argument 265 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in aes_ocb_block_final() [all …]
|
H A D | ciphercommon_ccm.c | 68 int ossl_ccm_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ossl_ccm_set_ctx_params() argument 70 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_set_ctx_params() 147 int ossl_ccm_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_ccm_get_ctx_params() argument 149 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ossl_ccm_get_ctx_params() 225 static int ccm_init(void *vctx, const unsigned char *key, size_t keylen, in ccm_init() argument 229 PROV_CCM_CTX *ctx = (PROV_CCM_CTX *)vctx; in ccm_init() 255 int ossl_ccm_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_ccm_einit() argument 259 return ccm_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_ccm_einit() 262 int ossl_ccm_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_ccm_dinit() argument 266 return ccm_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_ccm_dinit() [all …]
|
H A D | cipher_rc5.c | 33 static void rc5_freectx(void *vctx) in rc5_freectx() argument 35 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in rc5_freectx() 37 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in rc5_freectx() 77 static int rc5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in rc5_set_ctx_params() argument 79 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in rc5_set_ctx_params() 85 if (!ossl_cipher_var_keylen_set_ctx_params(vctx, params)) in rc5_set_ctx_params() 117 static int rc5_get_ctx_params(void *vctx, OSSL_PARAM params[]) in OSSL_PARAM_uint() 119 PROV_RC5_CTX *ctx = (PROV_RC5_CTX *)vctx; in OSSL_PARAM_uint() 122 if (!ossl_cipher_generic_get_ctx_params(vctx, params)) in OSSL_PARAM_uint()
|
H A D | cipher_aes_ocb_hw.c | 32 static int cipher_hw_aes_ocb_generic_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_generic_initkey() argument 36 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in cipher_hw_aes_ocb_generic_initkey() 64 static int cipher_hw_aes_ocb_aesni_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_aesni_initkey() argument 68 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in cipher_hw_aes_ocb_aesni_initkey() 87 static int cipher_hw_aes_ocb_t4_initkey(PROV_CIPHER_CTX *vctx, in cipher_hw_aes_ocb_t4_initkey() argument 91 PROV_AES_OCB_CTX *ctx = (PROV_AES_OCB_CTX *)vctx; in cipher_hw_aes_ocb_t4_initkey()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | verbs.h | 1576 struct verbs_context *vctx = _vctx; \ 1577 if (vctx && (vctx->sz >= sizeof(*vctx) - offsetof(struct verbs_context, op))) \ 1578 vctx->op = ptr; }) 1693 struct verbs_context *vctx = verbs_get_ctx_op(qp->context, in ibv_create_flow() local 1695 if (!vctx || !vctx->ibv_create_flow) { in ibv_create_flow() 1700 return vctx->ibv_create_flow(qp, flow); in ibv_create_flow() 1705 struct verbs_context *vctx = verbs_get_ctx_op(flow_id->context, in ibv_destroy_flow() local 1707 if (!vctx || !vctx->ibv_destroy_flow) in ibv_destroy_flow() 1709 return vctx->ibv_destroy_flow(flow_id); in ibv_destroy_flow() 1718 struct verbs_context *vctx = verbs_get_ctx_op(context, open_xrcd); in ibv_open_xrcd() local [all …]
|
/freebsd/crypto/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2ms.c | 83 static void key2ms_freectx(void *vctx) in key2ms_freectx() argument 85 struct key2ms_ctx_st *ctx = vctx; in key2ms_freectx() 101 static int key2pvk_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in key2pvk_set_ctx_params() argument 103 struct key2ms_ctx_st *ctx = vctx; in key2pvk_set_ctx_params() 112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument 128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument 132 struct key2ms_ctx_st *ctx = vctx; in key2msblob_encode() 150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument 154 struct key2ms_ctx_st *ctx = vctx; in key2pvk_encode() 196 static int impl##2##output##_encode(void *vctx, OSSL_CORE_BIO *cout, \ [all …]
|
/freebsd/sys/crypto/via/ |
H A D | padlock_hash.c | 74 static void padlock_sha_init(void *vctx); 75 static int padlock_sha_update(void *vctx, const void *buf, u_int bufsize); 76 static void padlock_sha1_final(uint8_t *hash, void *vctx); 77 static void padlock_sha256_final(uint8_t *hash, void *vctx); 161 padlock_sha_init(void *vctx) in padlock_sha_init() argument 165 ctx = vctx; in padlock_sha_init() 172 padlock_sha_update(void *vctx, const void *buf, u_int bufsize) in padlock_sha_update() argument 176 ctx = vctx; in padlock_sha_update() 190 padlock_sha_free(void *vctx) in padlock_sha_free() argument 194 ctx = vctx; in padlock_sha_free() [all …]
|