Home
last modified time | relevance | path

Searched refs:aes_ctx (Results 1 - 11 of 11) sorted by relevance

/third_party/mbedtls/library/
H A Dctr_drbg.c77 mbedtls_aes_init(&ctx->aes_ctx); in mbedtls_ctr_drbg_init()
106 mbedtls_aes_free(&ctx->aes_ctx); in mbedtls_ctr_drbg_free()
172 mbedtls_aes_context aes_ctx; in block_cipher_df() local
213 mbedtls_aes_init(&aes_ctx); in block_cipher_df()
215 if ((ret = mbedtls_aes_setkey_enc(&aes_ctx, key, in block_cipher_df()
242 if ((ret = mbedtls_aes_crypt_ecb(&aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df()
268 if ((ret = mbedtls_aes_setkey_enc(&aes_ctx, tmp, in block_cipher_df()
286 if ((ret = mbedtls_aes_crypt_ecb(&aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df()
303 mbedtls_aes_free(&aes_ctx); in block_cipher_df()
329 * ctx->aes_ctx
[all...]
H A Dpem.c219 mbedtls_aes_context aes_ctx; in pem_aes_decrypt() local
223 mbedtls_aes_init(&aes_ctx); in pem_aes_decrypt()
229 if ((ret = mbedtls_aes_setkey_dec(&aes_ctx, aes_key, keylen * 8)) != 0) { in pem_aes_decrypt()
232 ret = mbedtls_aes_crypt_cbc(&aes_ctx, MBEDTLS_AES_DECRYPT, buflen, in pem_aes_decrypt()
236 mbedtls_aes_free(&aes_ctx); in pem_aes_decrypt()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dcrypto_nettle.c247 struct aes_ctx *ctx; in aes_encrypt_init()
263 struct aes_ctx *actx = ctx; in aes_encrypt()
271 struct aes_ctx *actx = ctx; in aes_encrypt_deinit()
278 struct aes_ctx *ctx; in aes_decrypt_init()
294 struct aes_ctx *actx = ctx; in aes_decrypt()
302 struct aes_ctx *actx = ctx; in aes_decrypt_deinit()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dcrypto_nettle.c247 struct aes_ctx *ctx; in aes_encrypt_init()
263 struct aes_ctx *actx = ctx; in aes_encrypt()
271 struct aes_ctx *actx = ctx; in aes_encrypt_deinit()
278 struct aes_ctx *ctx; in aes_decrypt_init()
294 struct aes_ctx *actx = ctx; in aes_decrypt()
302 struct aes_ctx *actx = ctx; in aes_decrypt_deinit()
/third_party/ffmpeg/libavformat/
H A Dhls_sample_encryption.c208 ret = av_aes_init(crypto_ctx->aes_ctx, crypto_ctx->key, 16 * 8, 1); in decrypt_nal_unit()
222 av_aes_crypt(crypto_ctx->aes_ctx, data, data, 1, iv, 1); in decrypt_nal_unit()
348 ret = av_aes_init(crypto_ctx->aes_ctx, crypto_ctx->key, 16 * 8, 1); in decrypt_sync_frame()
356 av_aes_crypt(crypto_ctx->aes_ctx, data, data, num_of_encrypted_blocks, crypto_ctx->iv, 1); in decrypt_sync_frame()
H A Dhls_sample_encryption.h44 struct AVAES *aes_ctx; member
H A Disom.h255 struct AVAES *aes_ctx; member
H A Dhls.c1912 if (c->crypto_ctx.aes_ctx) in hls_close()
1913 av_free(c->crypto_ctx.aes_ctx); in hls_close()
2124 } else if (!c->crypto_ctx.aes_ctx) { in hls_read_header()
2125 c->crypto_ctx.aes_ctx = av_aes_alloc(); in hls_read_header()
2126 if (!c->crypto_ctx.aes_ctx) { in hls_read_header()
H A Dmov.c7187 if (!sc->cenc.aes_ctx) {
7189 sc->cenc.aes_ctx = av_aes_alloc();
7190 if (!sc->cenc.aes_ctx) {
7194 ret = av_aes_init(sc->cenc.aes_ctx, c->decryption_key, 16 * 8, 1);
7205 av_aes_crypt(sc->cenc.aes_ctx, input, input, size/16, iv, 1);
7227 av_aes_crypt(sc->cenc.aes_ctx, input, input, num_of_encrypted_blocks, iv, 1);
7312 if (!sc->cenc.aes_ctx) {
7314 sc->cenc.aes_ctx = av_aes_alloc();
7315 if (!sc->cenc.aes_ctx) {
7319 ret = av_aes_init(sc->cenc.aes_ctx,
[all...]
/third_party/mbedtls/include/mbedtls/
H A Dctr_drbg.h193 mbedtls_aes_context MBEDTLS_PRIVATE(aes_ctx); /*!< The AES context. */
/third_party/nghttp2/bpf/
H A Dreuseport_kern.c581 struct AES_ctx aes_ctx; in select_reuseport() local
614 AES_init_ctx(&aes_ctx, key); in select_reuseport()
621 AES_ECB_decrypt(&aes_ctx, cid_prefix); in select_reuseport()
641 AES_ECB_decrypt(&aes_ctx, cid_prefix); in select_reuseport()

Completed in 18 milliseconds