/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() 159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_sign_init() 164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() 169 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_sign() 204 static int ecdsa_verify(void *vctx, const unsigned char *sig, size_t siglen, in ecdsa_verify() 281 static int ecdsa_digest_signverify_init(void *vctx, const char *mdname, in ecdsa_digest_signverify_init() 311 static int ecdsa_digest_sign_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_sign_init() 318 static int ecdsa_digest_verify_init(void *vctx, const char *mdname, void *ec, in ecdsa_digest_verify_init() 325 int ecdsa_digest_signverify_update(void *vctx, const unsigned char *data, in ecdsa_digest_signverify_update() 336 int ecdsa_digest_sign_final(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_digest_sign_final() [all …]
|
/freebsd/sys/crypto/blake2/ |
H A D | blake2-sw.c | 33 blake2b_xform_init(void *vctx) in blake2b_xform_init() 44 blake2b_xform_setkey(void *vctx, const uint8_t *key, u_int klen) in blake2b_xform_setkey() 56 blake2b_xform_update(void *vctx, const void *data, u_int len) in blake2b_xform_update() 68 blake2b_xform_final(uint8_t *out, void *vctx) in blake2b_xform_final() 96 blake2s_xform_init(void *vctx) in blake2s_xform_init() 107 blake2s_xform_setkey(void *vctx, const uint8_t *key, u_int klen) in blake2s_xform_setkey() 119 blake2s_xform_update(void *vctx, const void *data, u_int len) in blake2s_xform_update() 131 blake2s_xform_final(uint8_t *out, void *vctx) in blake2s_xform_final()
|
/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() 62 chacha20_poly1305_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in chacha20_poly1305_reinit() 86 chacha20_poly1305_crypt(void *vctx, const uint8_t *in, uint8_t *out) 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() 120 chacha20_poly1305_crypt_last(void *vctx, const uint8_t *in, uint8_t *out, in chacha20_poly1305_crypt_last() 137 chacha20_poly1305_update(void *vctx, const void *data, u_int len) in chacha20_poly1305_update() 146 chacha20_poly1305_final(uint8_t *digest, void *vctx) in chacha20_poly1305_final() 176 xchacha20_poly1305_setkey(void *vctx, const uint8_t *key, int len) in xchacha20_poly1305_setkey() 189 xchacha20_poly1305_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in xchacha20_poly1305_reinit()
|
H A D | xform_aes_cbc.c | 87 aes_cbc_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in aes_cbc_encrypt() 98 aes_cbc_decrypt(void *vctx, const uint8_t *in, uint8_t *out) 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() 129 aes_cbc_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in aes_cbc_decrypt_multi() 149 aes_cbc_setkey(void *vctx, const uint8_t *key, int len) in aes_cbc_setkey() 161 aes_cbc_reinit(void *vctx, const uint8_t *iv, size_t iv_len) in aes_cbc_reinit()
|
H A D | xform_cml.c | 87 cml_encrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_encrypt() 98 cml_decrypt(void *vctx, const uint8_t *in, uint8_t *out) in cml_decrypt() 112 cml_encrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in cml_encrypt_multi() 130 cml_decrypt_multi(void *vctx, const uint8_t *in, uint8_t *out, size_t len) in cml_decrypt_multi() 151 cml_setkey(void *vctx, const uint8_t *key, int len) in cml_setkey() 163 cml_reinit(void *vctx, const uint8_t *iv, size_t iv_len) in cml_reinit()
|
H A D | cbc_mac.c | 53 AES_CBC_MAC_Init(void *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() 78 AES_CBC_MAC_Reinit(void *vctx, const uint8_t *nonce, u_int nonceLen) in AES_CBC_MAC_Reinit() 92 AES_CBC_MAC_Update(void *vctx, const void *vdata, u_int length) in AES_CBC_MAC_Update() 137 AES_CBC_MAC_Final(uint8_t *buf, void *vctx) in AES_CBC_MAC_Final()
|
H A D | xform_aes_icm.c | 157 aes_gcm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in aes_gcm_reinit() 173 aes_ccm_reinit(void *vctx, const uint8_t *iv, size_t ivlen) in aes_ccm_reinit() 258 aes_gcm_setkey(void *vctx, const uint8_t *key, int len) in aes_gcm_setkey() 272 aes_ccm_setkey(void *vctx, const uint8_t *key, int len) in aes_ccm_setkey() 286 aes_gcm_update(void *vctx, const void *buf, u_int len) in aes_gcm_update() 294 aes_ccm_update(void *vctx, const void *buf, u_int len) in aes_ccm_update() 302 aes_gcm_final(uint8_t *tag, void *vctx) in aes_gcm_final() 310 aes_ccm_final(uint8_t *tag, void *vctx) in aes_ccm_final()
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_siv.c | 49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() 59 static void *siv_dupctx(void *vctx) in siv_dupctx() 79 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() 101 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() 108 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() 115 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() 145 static int siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in siv_stream_final() 161 static int aes_siv_get_ctx_params(void *vctx, OSSL_PARAM params[]) in aes_siv_get_ctx_params() 201 static int aes_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_siv_set_ctx_params()
|
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() 97 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() 104 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() 124 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() 132 static void *aes_xts_dupctx(void *vctx) in aes_xts_dupctx() 157 static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_xts_cipher() 192 static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_update() 211 static int aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_final() 231 static int aes_xts_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_xts_set_ctx_params()
|
H A D | cipher_aes_siv_hw.c | 20 static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen) in aes_siv_initkey() 77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) in aes_siv_settag() 85 static void aes_siv_setspeed(void *vctx, int speed) in aes_siv_setspeed() 93 static void aes_siv_cleanup(void *vctx) in aes_siv_cleanup() 103 static int aes_siv_cipher(void *vctx, unsigned char *out, in aes_siv_cipher()
|
H A D | ciphercommon.c | 228 int ossl_cipher_generic_einit(void *vctx, const unsigned char *key, in ossl_cipher_generic_einit() 236 int ossl_cipher_generic_dinit(void *vctx, const unsigned char *key, in ossl_cipher_generic_dinit() 247 int ossl_cipher_generic_block_update(void *vctx, unsigned char *out, in ossl_cipher_generic_block_update() 393 int ossl_cipher_generic_block_final(void *vctx, unsigned char *out, in ossl_cipher_generic_block_final() 467 int ossl_cipher_generic_stream_update(void *vctx, unsigned char *out, in ossl_cipher_generic_stream_update() 529 int ossl_cipher_generic_stream_final(void *vctx, unsigned char *out, in ossl_cipher_generic_stream_final() 546 int ossl_cipher_generic_cipher(void *vctx, unsigned char *out, size_t *outl, in ossl_cipher_generic_cipher() 574 int ossl_cipher_generic_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_cipher_generic_get_ctx_params() 622 int ossl_cipher_generic_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ossl_cipher_generic_set_ctx_params() 691 void ossl_cipher_generic_initkey(void *vctx, size_t kbits, size_t blkbits, in ossl_cipher_generic_initkey()
|
H A D | cipher_null.c | 34 static void null_freectx(void *vctx) in null_freectx() 40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, in null_einit() 54 static int null_dinit(void *vctx, const unsigned char *key, size_t keylen, in null_dinit() 65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() 92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() 123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() 161 static int null_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in null_set_ctx_params()
|
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() 147 int ossl_ccm_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_ccm_get_ctx_params() 225 static int ccm_init(void *vctx, const unsigned char *key, size_t keylen, in ccm_init() 255 int ossl_ccm_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_ccm_einit() 262 int ossl_ccm_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_ccm_dinit() 269 int ossl_ccm_stream_update(void *vctx, unsigned char *out, size_t *outl, in ossl_ccm_stream_update() 287 int ossl_ccm_stream_final(void *vctx, unsigned char *out, size_t *outl, in ossl_ccm_stream_final() 304 int ossl_ccm_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize, in ossl_ccm_cipher()
|
H A D | cipher_tdes_common.c | 56 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() 64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() 100 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() 107 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_dinit() 135 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params()
|
H A D | cipher_chacha20_poly1305.c | 81 static void chacha20_poly1305_freectx(void *vctx) in chacha20_poly1305_freectx() 99 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_poly1305_get_ctx_params() 161 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() 245 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, in chacha20_poly1305_einit() 265 static int chacha20_poly1305_dinit(void *vctx, const unsigned char *key, in chacha20_poly1305_dinit() 285 static int chacha20_poly1305_cipher(void *vctx, unsigned char *out, in chacha20_poly1305_cipher() 312 static int chacha20_poly1305_final(void *vctx, unsigned char *out, size_t *outl, in chacha20_poly1305_final()
|
H A D | cipher_chacha20.c | 58 static void chacha20_freectx(void *vctx) in chacha20_freectx() 68 static void *chacha20_dupctx(void *vctx) in chacha20_dupctx() 95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() 124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() 168 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_einit() 187 int ossl_chacha20_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_dinit()
|
H A D | ciphercommon_gcm.c | 48 static int gcm_init(void *vctx, const unsigned char *key, size_t keylen, in gcm_init() 81 int ossl_gcm_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_gcm_einit() 88 int ossl_gcm_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_gcm_dinit() 143 int ossl_gcm_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_gcm_get_ctx_params() 230 int ossl_gcm_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ossl_gcm_set_ctx_params() 309 int ossl_gcm_stream_update(void *vctx, unsigned char *out, size_t *outl, in ossl_gcm_stream_update() 331 int ossl_gcm_stream_final(void *vctx, unsigned char *out, size_t *outl, in ossl_gcm_stream_final() 348 int ossl_gcm_cipher(void *vctx, in ossl_gcm_cipher()
|
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() 141 static int aes_ocb_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_ocb_einit() 148 static int aes_ocb_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_ocb_dinit() 231 static int aes_ocb_block_update(void *vctx, unsigned char *out, size_t *outl, 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() 323 static void aes_ocb_freectx(void *vctx) in aes_ocb_freectx() 334 static void *aes_ocb_dupctx(void *vctx) in aes_ocb_dupctx() 355 static int aes_ocb_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_ocb_set_ctx_params() 411 static int aes_ocb_get_ctx_params(void *vctx, OSSL_PARAM params[]) in aes_ocb_get_ctx_params() 500 static int aes_ocb_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_ocb_cipher()
|
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() 64 static int cipher_hw_aes_ocb_aesni_initkey(PROV_CIPHER_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()
|
H A D | cipher_aes_wrp.c | 89 static void aes_wrap_freectx(void *vctx) in aes_wrap_freectx() 97 static int aes_wrap_init(void *vctx, const unsigned char *key, in aes_wrap_init() 162 static int aes_wrap_cipher_internal(void *vctx, unsigned char *out, in aes_wrap_cipher_internal() 222 static int aes_wrap_final(void *vctx, unsigned char *out, size_t *outl, in aes_wrap_final() 232 static int aes_wrap_cipher(void *vctx, in aes_wrap_cipher() 260 static int aes_wrap_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_wrap_set_ctx_params()
|
/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() 62 static int keccak_init_params(void *vctx, const OSSL_PARAM params[]) in keccak_init_params() 68 static int keccak_update(void *vctx, const unsigned char *inp, size_t len) in keccak_update() 105 static int keccak_final(void *vctx, unsigned char *out, size_t *outl, in keccak_final() 123 static size_t generic_sha3_absorb(void *vctx, const void *inp, size_t len) in generic_sha3_absorb() 130 static int generic_sha3_final(unsigned char *md, void *vctx) in generic_sha3_final() 150 static size_t s390x_sha3_absorb(void *vctx, const void *inp, size_t len) in s390x_sha3_absorb() 159 static int s390x_sha3_final(unsigned char *md, void *vctx) in s390x_sha3_final() 170 static int s390x_shake_final(unsigned char *md, void *vctx) in s390x_shake_final() 254 static void keccak_freectx(void *vctx) in keccak_freectx() [all …]
|
/freebsd/sys/crypto/openssl/ |
H A D | ossl_poly1305.c | 144 ossl_poly1305_init(void *vctx) in ossl_poly1305_init() 149 ossl_poly1305_setkey(void *vctx, const uint8_t *key, u_int klen) in ossl_poly1305_setkey() 156 ossl_poly1305_update(void *vctx, const void *buf, u_int len) in ossl_poly1305_update() 163 ossl_poly1305_final(uint8_t *digest, void *vctx) in ossl_poly1305_final()
|
/freebsd/crypto/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2ms.c | 83 static void key2ms_freectx(void *vctx) in key2ms_freectx() 101 static int key2pvk_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in key2pvk_set_ctx_params() 112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() 128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() 150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode()
|
/freebsd/sys/crypto/via/ |
H A D | padlock_hash.c | 161 padlock_sha_init(void *vctx) in padlock_sha_init() 172 padlock_sha_update(void *vctx, const void *buf, u_int bufsize) in padlock_sha_update() 190 padlock_sha_free(void *vctx) in padlock_sha_free() 204 padlock_sha1_final(uint8_t *hash, void *vctx) in padlock_sha1_final() 214 padlock_sha256_final(uint8_t *hash, void *vctx) in padlock_sha256_final()
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | pbkdf1.c | 120 static void kdf_pbkdf1_free(void *vctx) in kdf_pbkdf1_free() 130 static void kdf_pbkdf1_reset(void *vctx) in kdf_pbkdf1_reset() 158 static int kdf_pbkdf1_derive(void *vctx, unsigned char *key, size_t keylen, in kdf_pbkdf1_derive() 182 static int kdf_pbkdf1_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in kdf_pbkdf1_set_ctx_params() 219 static int kdf_pbkdf1_get_ctx_params(void *vctx, OSSL_PARAM params[]) in kdf_pbkdf1_get_ctx_params()
|