Lines Matching refs:aes_ctr
357 bootutil_aes_ctr_init(&enc_state[slot].aes_ctr); in boot_enc_init()
364 bootutil_aes_ctr_drop(&enc_state[slot].aes_ctr); in boot_enc_drop()
375 rc = bootutil_aes_ctr_set_key(&enc_state[slot].aes_ctr, bs->enckey[slot]); in boot_enc_set_key()
449 bootutil_aes_ctr_context aes_ctr; in boot_decrypt_key() local
603 bootutil_aes_ctr_init(&aes_ctr); in boot_decrypt_key()
605 bootutil_aes_ctr_drop(&aes_ctr); in boot_decrypt_key()
609 rc = bootutil_aes_ctr_set_key(&aes_ctr, derived_key); in boot_decrypt_key()
611 bootutil_aes_ctr_drop(&aes_ctr); in boot_decrypt_key()
616 …rc = bootutil_aes_ctr_decrypt(&aes_ctr, counter, &buf[EC_CIPHERKEY_INDEX], BOOTUTIL_CRYPTO_AES_CTR… in boot_decrypt_key()
618 bootutil_aes_ctr_drop(&aes_ctr); in boot_decrypt_key()
622 bootutil_aes_ctr_drop(&aes_ctr); in boot_decrypt_key()
723 bootutil_aes_ctr_encrypt(&enc->aes_ctr, nonce, buf, sz, blk_off, buf); in boot_enc_encrypt()
746 bootutil_aes_ctr_decrypt(&enc->aes_ctr, nonce, buf, sz, blk_off, buf); in boot_enc_decrypt()