Searched refs:ictx (Results 1 – 2 of 2) sorted by relevance
/external/u-boot/tools/ |
D | mxsimage.c | 205 static int sb_aes_init(struct sb_image_ctx *ictx, uint8_t *iv, int enc) in sb_aes_init() argument 212 iv = ictx->image_key; in sb_aes_init() 215 ret = EVP_CipherInit(ctx, EVP_aes_128_cbc(), ictx->image_key, iv, enc); in sb_aes_init() 218 ictx->cipher_ctx = ctx; in sb_aes_init() 223 static int sb_aes_crypt(struct sb_image_ctx *ictx, uint8_t *in_data, in sb_aes_crypt() argument 226 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_crypt() 254 static int sb_aes_reinit(struct sb_image_ctx *ictx, int enc) in sb_aes_reinit() argument 257 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_reinit() 258 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_aes_reinit() 264 return sb_aes_init(ictx, iv, enc); in sb_aes_reinit() [all …]
|
/external/openssh/ |
D | hmac.c | 29 struct ssh_digest_ctx *ictx; member 50 if ((ret->ictx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start() 54 ret->buf_len = ssh_digest_blocksize(ret->ictx); in ssh_hmac_start() 78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init() 87 if (ssh_digest_copy_state(ctx->ictx, ctx->digest) < 0) in ssh_hmac_init() 125 ssh_digest_free(ctx->ictx); in ssh_hmac_free()
|