Home
last modified time | relevance | path

Searched refs:kbits (Results 1 – 25 of 40) sorted by relevance

12

/third_party/openssl/providers/implementations/include/prov/
Dciphercommon_aead.h14 #define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
16 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
19 flags, kbits, blkbits, ivbits); \
21 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
22 static void * alg##kbits##lc##_newctx(void *provctx) \
24 return alg##_##lc##_newctx(provctx, kbits); \
26 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
27 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
35 (void (*)(void)) alg##_##kbits##_##lc##_get_params }, \
Dciphercommon.h122 size_t kbits, size_t blkbits, size_t ivbits);
123 void ossl_cipher_generic_initkey(void *vctx, size_t kbits, size_t blkbits,
128 #define IMPLEMENT_generic_cipher_func(alg, UCALG, lcmode, UCMODE, flags, kbits,\ argument
130 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
132 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
141 (void (*)(void)) alg##_##kbits##_##lcmode##_get_params }, \
156 kbits, blkbits, ivbits, typ) \ argument
157 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
159 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
168 (void (*)(void)) alg##_##kbits##_##lcmode##_get_params }, \
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/include/prov/
Dciphercommon_aead.h14 #define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
16 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
19 flags, kbits, blkbits, ivbits); \
21 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
22 static void * alg##kbits##lc##_newctx(void *provctx) \
24 return alg##_##lc##_newctx(provctx, kbits); \
26 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
27 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
35 (void (*)(void)) alg##_##kbits##_##lc##_get_params }, \
Dciphercommon.h122 size_t kbits, size_t blkbits, size_t ivbits);
123 void ossl_cipher_generic_initkey(void *vctx, size_t kbits, size_t blkbits,
128 #define IMPLEMENT_generic_cipher_func(alg, UCALG, lcmode, UCMODE, flags, kbits,\ argument
130 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
132 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
141 (void (*)(void)) alg##_##kbits##_##lcmode##_get_params }, \
156 kbits, blkbits, ivbits, typ) \ argument
157 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
159 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
168 (void (*)(void)) alg##_##kbits##_##lcmode##_get_params }, \
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_rc4.c73 #define IMPLEMENT_cipher(alg, UCALG, flags, kbits, blkbits, ivbits, typ) \ argument
74 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_get_params; \
75 static int alg##_##kbits##_get_params(OSSL_PARAM params[]) \
78 kbits, blkbits, ivbits); \
80 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_newctx; \
81 static void * alg##_##kbits##_newctx(void *provctx) \
88 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, 0, flags, \
89 ossl_prov_cipher_hw_##alg(kbits), NULL); \
93 const OSSL_DISPATCH ossl_##alg##kbits##_functions[] = { \
95 (void (*)(void)) alg##_##kbits##_newctx }, \
[all …]
Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
16 static int alg##_cts_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
19 flags, kbits, blkbits, ivbits); \
21 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_cts_functions[] = { \
23 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
34 (void (*)(void)) alg##_cts_##kbits##_##lcmode##_get_params }, \
Dcipher_rc5.c132 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
134 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
135 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
138 flags, kbits, blkbits, ivbits); \
140 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
141 static void * alg##_##kbits##_##lcmode##_newctx(void *provctx) \
148 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, \
150 ossl_prov_cipher_hw_##alg##_##lcmode(kbits),\
156 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
158 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
[all …]
Dcipher_aes_xts.c112 size_t kbits, size_t blkbits, size_t ivbits) in aes_xts_newctx() argument
117 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, mode, in aes_xts_newctx()
118 flags, ossl_prov_cipher_hw_aes_xts(kbits), in aes_xts_newctx()
255 #define IMPLEMENT_cipher(lcmode, UCMODE, kbits, flags) \ argument
256 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##lcmode##_get_params; \
257 static int aes_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
260 flags, 2 * kbits, AES_XTS_BLOCK_BITS, \
263 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##_xts_newctx; \
264 static void *aes_##kbits##_xts_newctx(void *provctx) \
266 return aes_xts_newctx(provctx, EVP_CIPH_##UCMODE##_MODE, flags, 2 * kbits, \
[all …]
Dcipher_aes_cbc_hmac_sha.c27 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
28 const OSSL_DISPATCH ossl_##nm##kbits##sub##_functions[] = { \
311 size_t kbits, size_t blkbits, size_t ivbits, in base_init() argument
314 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, in base_init()
320 static void *aes_cbc_hmac_sha1_newctx(void *provctx, size_t kbits, in aes_cbc_hmac_sha1_newctx() argument
332 ossl_prov_cipher_hw_aes_cbc_hmac_sha1(), kbits, blkbits, in aes_cbc_hmac_sha1_newctx()
347 static void *aes_cbc_hmac_sha256_newctx(void *provctx, size_t kbits, in aes_cbc_hmac_sha256_newctx() argument
359 ossl_prov_cipher_hw_aes_cbc_hmac_sha256(), kbits, blkbits, in aes_cbc_hmac_sha256_newctx()
374 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
375 static OSSL_FUNC_cipher_newctx_fn nm##_##kbits##_##sub##_newctx; \
[all …]
Dcipher_rc2.c222 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, blkbits, \ argument
224 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
225 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
228 flags, kbits, blkbits, ivbits); \
230 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
231 static void * alg##_##kbits##_##lcmode##_newctx(void *provctx) \
238 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, \
240 ossl_prov_cipher_hw_##alg##_##lcmode(kbits), \
242 ctx->key_bits = kbits; \
246 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
[all …]
Dcipher_aes_wrp.c50 static void *aes_wrap_newctx(size_t kbits, size_t blkbits, in aes_wrap_newctx() argument
62 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, mode, flags, in aes_wrap_newctx()
263 #define IMPLEMENT_cipher(mode, fname, UCMODE, flags, kbits, blkbits, ivbits) \ argument
264 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##fname##_get_params; \
265 static int aes_##kbits##_##fname##_get_params(OSSL_PARAM params[]) \
268 flags, kbits, blkbits, ivbits); \
270 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##fname##_newctx; \
271 static void *aes_##kbits##fname##_newctx(void *provctx) \
273 return aes_##mode##_newctx(kbits, blkbits, ivbits, \
276 const OSSL_DISPATCH ossl_##aes##kbits##fname##_functions[] = { \
[all …]
Dcipher_aes_siv.c255 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
256 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
264 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
271 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
274 flags, 2*kbits, blkbits, ivbits); \
276 static void * alg##kbits##lc##_newctx(void *provctx) \
278 return alg##_##lc##_newctx(provctx, 2*kbits, EVP_CIPH_##UCMODE##_MODE, \
281 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
282 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
291 (void (*)(void)) alg##_##kbits##_##lc##_get_params }, \
Dcipher_aes_ocb.c306 static void *aes_ocb_newctx(void *provctx, size_t kbits, size_t blkbits, in aes_ocb_newctx() argument
316 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, mode, flags, in aes_ocb_newctx()
317 ossl_prov_cipher_hw_aes_ocb(kbits), NULL); in aes_ocb_newctx()
519 #define IMPLEMENT_cipher(mode, UCMODE, flags, kbits, blkbits, ivbits) \ argument
520 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##mode##_get_params; \
521 static int aes_##kbits##_##mode##_get_params(OSSL_PARAM params[]) \
524 flags, kbits, blkbits, ivbits); \
526 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##_##mode##_newctx; \
527 static void *aes_##kbits##_##mode##_newctx(void *provctx) \
529 return aes_##mode##_newctx(provctx, kbits, blkbits, ivbits, \
[all …]
Dcipher_tdes.h32 kbits, blkbits, ivbits, block) \ argument
36 return ossl_tdes_newctx(provctx, EVP_CIPH_##UCMODE##_MODE, kbits, blkbits, \
44 flags, kbits, blkbits, ivbits); \
73 void *ossl_tdes_newctx(void *provctx, int mode, size_t kbits, size_t blkbits,
/third_party/openssl/providers/implementations/ciphers/
Dcipher_rc4.c73 #define IMPLEMENT_cipher(alg, UCALG, flags, kbits, blkbits, ivbits, typ) \ argument
74 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_get_params; \
75 static int alg##_##kbits##_get_params(OSSL_PARAM params[]) \
78 kbits, blkbits, ivbits); \
80 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_newctx; \
81 static void * alg##_##kbits##_newctx(void *provctx) \
88 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, 0, flags, \
89 ossl_prov_cipher_hw_##alg(kbits), NULL); \
93 const OSSL_DISPATCH ossl_##alg##kbits##_functions[] = { \
95 (void (*)(void)) alg##_##kbits##_newctx }, \
[all …]
Dcipher_cts.h13 #define IMPLEMENT_cts_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
16 static int alg##_cts_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
19 flags, kbits, blkbits, ivbits); \
21 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_cts_functions[] = { \
23 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
34 (void (*)(void)) alg##_cts_##kbits##_##lcmode##_get_params }, \
Dcipher_rc5.c132 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, \ argument
134 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
135 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
138 flags, kbits, blkbits, ivbits); \
140 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
141 static void * alg##_##kbits##_##lcmode##_newctx(void *provctx) \
148 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, \
150 ossl_prov_cipher_hw_##alg##_##lcmode(kbits),\
156 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
158 (void (*)(void)) alg##_##kbits##_##lcmode##_newctx }, \
[all …]
Dcipher_aes_xts.c112 size_t kbits, size_t blkbits, size_t ivbits) in aes_xts_newctx() argument
117 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, mode, in aes_xts_newctx()
118 flags, ossl_prov_cipher_hw_aes_xts(kbits), in aes_xts_newctx()
255 #define IMPLEMENT_cipher(lcmode, UCMODE, kbits, flags) \ argument
256 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##lcmode##_get_params; \
257 static int aes_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
260 flags, 2 * kbits, AES_XTS_BLOCK_BITS, \
263 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##_xts_newctx; \
264 static void *aes_##kbits##_xts_newctx(void *provctx) \
266 return aes_xts_newctx(provctx, EVP_CIPH_##UCMODE##_MODE, flags, 2 * kbits, \
[all …]
Dcipher_aes_cbc_hmac_sha.c27 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
28 const OSSL_DISPATCH ossl_##nm##kbits##sub##_functions[] = { \
311 size_t kbits, size_t blkbits, size_t ivbits, in base_init() argument
314 ossl_cipher_generic_initkey(&ctx->base, kbits, blkbits, ivbits, in base_init()
320 static void *aes_cbc_hmac_sha1_newctx(void *provctx, size_t kbits, in aes_cbc_hmac_sha1_newctx() argument
332 ossl_prov_cipher_hw_aes_cbc_hmac_sha1(), kbits, blkbits, in aes_cbc_hmac_sha1_newctx()
347 static void *aes_cbc_hmac_sha256_newctx(void *provctx, size_t kbits, in aes_cbc_hmac_sha256_newctx() argument
359 ossl_prov_cipher_hw_aes_cbc_hmac_sha256(), kbits, blkbits, in aes_cbc_hmac_sha256_newctx()
374 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
375 static OSSL_FUNC_cipher_newctx_fn nm##_##kbits##_##sub##_newctx; \
[all …]
Dcipher_rc2.c222 #define IMPLEMENT_cipher(alg, UCALG, lcmode, UCMODE, flags, kbits, blkbits, \ argument
224 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lcmode##_get_params; \
225 static int alg##_##kbits##_##lcmode##_get_params(OSSL_PARAM params[]) \
228 flags, kbits, blkbits, ivbits); \
230 static OSSL_FUNC_cipher_newctx_fn alg##_##kbits##_##lcmode##_newctx; \
231 static void * alg##_##kbits##_##lcmode##_newctx(void *provctx) \
238 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, \
240 ossl_prov_cipher_hw_##alg##_##lcmode(kbits), \
242 ctx->key_bits = kbits; \
246 const OSSL_DISPATCH ossl_##alg##kbits##lcmode##_functions[] = { \
[all …]
Dcipher_aes_wrp.c50 static void *aes_wrap_newctx(size_t kbits, size_t blkbits, in aes_wrap_newctx() argument
62 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, mode, flags, in aes_wrap_newctx()
263 #define IMPLEMENT_cipher(mode, fname, UCMODE, flags, kbits, blkbits, ivbits) \ argument
264 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##fname##_get_params; \
265 static int aes_##kbits##_##fname##_get_params(OSSL_PARAM params[]) \
268 flags, kbits, blkbits, ivbits); \
270 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##fname##_newctx; \
271 static void *aes_##kbits##fname##_newctx(void *provctx) \
273 return aes_##mode##_newctx(kbits, blkbits, ivbits, \
276 const OSSL_DISPATCH ossl_##aes##kbits##fname##_functions[] = { \
[all …]
Dcipher_aes_siv.c255 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
256 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
264 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
271 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
274 flags, 2*kbits, blkbits, ivbits); \
276 static void * alg##kbits##lc##_newctx(void *provctx) \
278 return alg##_##lc##_newctx(provctx, 2*kbits, EVP_CIPH_##UCMODE##_MODE, \
281 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
282 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
291 (void (*)(void)) alg##_##kbits##_##lc##_get_params }, \
Dcipher_aes_ocb.c306 static void *aes_ocb_newctx(void *provctx, size_t kbits, size_t blkbits, in aes_ocb_newctx() argument
316 ossl_cipher_generic_initkey(ctx, kbits, blkbits, ivbits, mode, flags, in aes_ocb_newctx()
317 ossl_prov_cipher_hw_aes_ocb(kbits), NULL); in aes_ocb_newctx()
519 #define IMPLEMENT_cipher(mode, UCMODE, flags, kbits, blkbits, ivbits) \ argument
520 static OSSL_FUNC_cipher_get_params_fn aes_##kbits##_##mode##_get_params; \
521 static int aes_##kbits##_##mode##_get_params(OSSL_PARAM params[]) \
524 flags, kbits, blkbits, ivbits); \
526 static OSSL_FUNC_cipher_newctx_fn aes_##kbits##_##mode##_newctx; \
527 static void *aes_##kbits##_##mode##_newctx(void *provctx) \
529 return aes_##mode##_newctx(provctx, kbits, blkbits, ivbits, \
[all …]
Dcipher_tdes.h32 kbits, blkbits, ivbits, block) \ argument
36 return ossl_tdes_newctx(provctx, EVP_CIPH_##UCMODE##_MODE, kbits, blkbits, \
44 flags, kbits, blkbits, ivbits); \
73 void *ossl_tdes_newctx(void *provctx, int mode, size_t kbits, size_t blkbits,
/third_party/ffmpeg/libavutil/tests/
Dtwofish.c41 const int kbits[3] = {128, 192, 256}; in main() local
48 av_twofish_init(cs, Key, kbits[j]); in main()
68 av_twofish_init(cs, Key, kbits[j]); in main()
70 memcpy(Key+16,Key,(kbits[j]-128) >> 3); in main()

12