-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto_authenc_update_aad on decrypt path in hash tree #6532
Comments
|
@jenswi-linaro , run the "optee_example_secure_storage" after deleting the content of /data/tee (and encrypt/decrypt is offloaded to my platform specific authenc/cipher block) but I see plain data here is printed as 0. https://github.com/OP-TEE/optee_os/blob/master/core/tee/fs_htree.c#L528 May I know the reason why imeta data (&ht->imeta) is not populated here properly, and all I see is 0's ? |
I'm sorry, I can't help debugging your code. |
Sure, No issues. I am closing it as your answers helped me with few things. |
I have few queries regarding crypto function used under hash tree.
Do we really need to call crypto_authenc_update_aad when TEE_OperationMode is decrypt, shouldn't the Additional
authenticated data is updated only when TEE_OperationMode is encrypt ?
https://github.com/OP-TEE/optee_os/blob/master/core/tee/fs_htree.c#L476C9-L476C34
Is this a BUG, using TEE_FS_HTREE_FEK_SIZE instead of TEE_FS_HTREE_HASH_SIZE ?
``
the secure storage ?
The text was updated successfully, but these errors were encountered: