Home
last modified time | relevance | path

Searched refs:gctx (Results 1 – 11 of 11) sorted by relevance

/external/openssl/crypto/evp/
De_aes.c308 EVP_AES_GCM_CTX *gctx = ctx->cipher_data; in aesni_gcm_init_key() local
313 aesni_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks.ks); in aesni_gcm_init_key()
314 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aesni_gcm_init_key()
316 gctx->ctr = (ctr128_f)aesni_ctr32_encrypt_blocks; in aesni_gcm_init_key()
320 if (iv == NULL && gctx->iv_set) in aesni_gcm_init_key()
321 iv = gctx->iv; in aesni_gcm_init_key()
324 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key()
325 gctx->iv_set = 1; in aesni_gcm_init_key()
327 gctx->key_set = 1; in aesni_gcm_init_key()
332 if (gctx->key_set) in aesni_gcm_init_key()
[all …]
/external/chromium_org/third_party/openssl/openssl/crypto/evp/
De_aes.c308 EVP_AES_GCM_CTX *gctx = ctx->cipher_data; in aesni_gcm_init_key() local
313 aesni_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks); in aesni_gcm_init_key()
314 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, in aesni_gcm_init_key()
316 gctx->ctr = (ctr128_f)aesni_ctr32_encrypt_blocks; in aesni_gcm_init_key()
320 if (iv == NULL && gctx->iv_set) in aesni_gcm_init_key()
321 iv = gctx->iv; in aesni_gcm_init_key()
324 CRYPTO_gcm128_setiv(&gctx->gcm, iv, gctx->ivlen); in aesni_gcm_init_key()
325 gctx->iv_set = 1; in aesni_gcm_init_key()
327 gctx->key_set = 1; in aesni_gcm_init_key()
332 if (gctx->key_set) in aesni_gcm_init_key()
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/common/
Degl_g3d_api.c151 struct egl_g3d_context *gctx; in egl_g3d_create_context() local
155 gctx = CALLOC_STRUCT(egl_g3d_context); in egl_g3d_create_context()
156 if (!gctx) { in egl_g3d_create_context()
161 if (!_eglInitContext(&gctx->base, dpy, conf, attribs)) { in egl_g3d_create_context()
162 FREE(gctx); in egl_g3d_create_context()
170 gctx->stapi = egl_g3d_choose_st(drv, &gctx->base, &stattribs.profile); in egl_g3d_create_context()
171 if (!gctx->stapi) { in egl_g3d_create_context()
172 FREE(gctx); in egl_g3d_create_context()
176 gctx->stctxi = gctx->stapi->create_context(gctx->stapi, gdpy->smapi, in egl_g3d_create_context()
178 if (!gctx->stctxi) { in egl_g3d_create_context()
[all …]
Degl_g3d_sync.c79 struct egl_g3d_context *gctx = egl_g3d_context(ctx); in egl_g3d_insert_fence_sync() local
82 assert(gctx); in egl_g3d_insert_fence_sync()
85 gctx->stctxi->flush(gctx->stctxi, 0x0, &gsync->fence); in egl_g3d_insert_fence_sync()
232 struct egl_g3d_context *gctx = egl_g3d_context(ctx); in egl_g3d_client_wait_sync() local
234 if (gctx) in egl_g3d_client_wait_sync()
235 gctx->stctxi->flush(gctx->stctxi, ST_FLUSH_FRONT, NULL); in egl_g3d_client_wait_sync()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/
Degl_g3d_api.c151 struct egl_g3d_context *gctx; in egl_g3d_create_context() local
155 gctx = CALLOC_STRUCT(egl_g3d_context); in egl_g3d_create_context()
156 if (!gctx) { in egl_g3d_create_context()
161 if (!_eglInitContext(&gctx->base, dpy, conf, attribs)) { in egl_g3d_create_context()
162 FREE(gctx); in egl_g3d_create_context()
170 gctx->stapi = egl_g3d_choose_st(drv, &gctx->base, &stattribs.profile); in egl_g3d_create_context()
171 if (!gctx->stapi) { in egl_g3d_create_context()
172 FREE(gctx); in egl_g3d_create_context()
176 gctx->stctxi = gctx->stapi->create_context(gctx->stapi, gdpy->smapi, in egl_g3d_create_context()
178 if (!gctx->stctxi) { in egl_g3d_create_context()
[all …]
Degl_g3d_sync.c79 struct egl_g3d_context *gctx = egl_g3d_context(ctx); in egl_g3d_insert_fence_sync() local
82 assert(gctx); in egl_g3d_insert_fence_sync()
85 gctx->stctxi->flush(gctx->stctxi, 0x0, &gsync->fence); in egl_g3d_insert_fence_sync()
232 struct egl_g3d_context *gctx = egl_g3d_context(ctx); in egl_g3d_client_wait_sync() local
234 if (gctx) in egl_g3d_client_wait_sync()
235 gctx->stctxi->flush(gctx->stctxi, ST_FLUSH_FRONT, NULL); in egl_g3d_client_wait_sync()
/external/chromium_org/third_party/openssl/openssl/patches/
Daead_support.patch55 - EVP_AES_GCM_CTX *gctx = ctx->cipher_data;
63 - AES_set_encrypt_key(key,ctx->key_len*8,&gctx->ks);
64 - CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks,
68 - gctx->ctr = (ctr128_f)bsaes_ctr32_encrypt_blocks;
77 - vpaes_set_encrypt_key(key,ctx->key_len*8,&gctx->ks);
78 - CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks,
82 - gctx->ctr = NULL;
87 - AES_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks);
88 - CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f)AES_encrypt);
92 - gctx->ctr = (ctr128_f)AES_ctr32_encrypt;
[all …]
/external/openssl/apps/
Dreq.c1607 EVP_PKEY_CTX *gctx = NULL; local
1731 gctx = EVP_PKEY_CTX_new(param, keygen_engine);
1736 gctx = EVP_PKEY_CTX_new_id(*pkey_type, keygen_engine);
1738 if (!gctx)
1745 if (EVP_PKEY_keygen_init(gctx) <= 0)
1754 if (EVP_PKEY_CTX_set_rsa_keygen_bits(gctx, keylen) <= 0)
1758 EVP_PKEY_CTX_free(gctx);
1764 return gctx;
/external/chromium_org/third_party/openssl/openssl/apps/
Dreq.c1597 EVP_PKEY_CTX *gctx = NULL; local
1719 gctx = EVP_PKEY_CTX_new(param, keygen_engine);
1724 gctx = EVP_PKEY_CTX_new_id(*pkey_type, keygen_engine);
1726 if (!gctx)
1733 if (EVP_PKEY_keygen_init(gctx) <= 0)
1742 if (EVP_PKEY_CTX_set_rsa_keygen_bits(gctx, keylen) <= 0)
1746 EVP_PKEY_CTX_free(gctx);
1752 return gctx;
/external/openssl/patches/
D0014-arm_asm.patch4950 - aesni_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks);
4951 + aesni_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks.ks);
4952 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks,
4954 gctx->ctr = (ctr128_f)aesni_ctr32_encrypt_blocks;
5125 + HWAES_set_encrypt_key(key,ctx->key_len*8,&gctx->ks.ks);
5126 + CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks,
5129 + gctx->ctr = (ctr128_f)HWAES_ctr32_encrypt_blocks;
5131 + gctx->ctr = NULL;
5140 - AES_set_encrypt_key(key,ctx->key_len*8,&gctx->ks);
5141 + AES_set_encrypt_key(key,ctx->key_len*8,&gctx->ks.ks);
[all …]
/external/chromium_org/third_party/openssl/patches.chromium/
D0007-chacha.patch838 +- EVP_AES_GCM_CTX *gctx = ctx->cipher_data;
846 +- AES_set_encrypt_key(key,ctx->key_len*8,&gctx->ks);
847 +- CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks,
851 +- gctx->ctr = (ctr128_f)bsaes_ctr32_encrypt_blocks;
860 +- vpaes_set_encrypt_key(key,ctx->key_len*8,&gctx->ks);
861 +- CRYPTO_gcm128_init(&gctx->gcm,&gctx->ks,
865 +- gctx->ctr = NULL;
870 +- AES_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks);
871 +- CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks, (block128_f)AES_encrypt);
875 +- gctx->ctr = (ctr128_f)AES_ctr32_encrypt;
[all …]