Searched refs:ictx (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/tools/ |
| H A D | mxsimage.c | 204 static int sb_aes_init(struct sb_image_ctx *ictx, uint8_t *iv, int enc) in sb_aes_init() argument 211 iv = ictx->image_key; in sb_aes_init() 214 ret = EVP_CipherInit(ctx, EVP_aes_128_cbc(), ictx->image_key, iv, enc); in sb_aes_init() 217 ictx->cipher_ctx = ctx; in sb_aes_init() 222 static int sb_aes_crypt(struct sb_image_ctx *ictx, uint8_t *in_data, in sb_aes_crypt() argument 225 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_crypt() 253 static int sb_aes_reinit(struct sb_image_ctx *ictx, int enc) in sb_aes_reinit() argument 256 EVP_CIPHER_CTX *ctx = ictx->cipher_ctx; in sb_aes_reinit() 257 struct sb_boot_image_header *sb_header = &ictx->payload; in sb_aes_reinit() 263 return sb_aes_init(ictx, iv, enc); in sb_aes_reinit() [all …]
|