-
- Downloads
ima: provide support for arbitrary hash algorithms
In preparation of supporting more hash algorithms with larger hash sizes needed for signature verification, this patch replaces the 20 byte sized digest, with a more flexible structure. The new structure includes the hash algorithm, digest size, and digest. Changelog: - recalculate filedata hash for the measurement list, if the signature hash digest size is greater than 20 bytes. - use generic HASH_ALGO_ - make ima_calc_file_hash static - scripts lindent and checkpatch fixes Signed-off-by:Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by:
Mimi Zohar <zohar@linux.vnet.ibm.com>
Showing
- crypto/asymmetric_keys/x509_parser.h 0 additions, 2 deletionscrypto/asymmetric_keys/x509_parser.h
- crypto/asymmetric_keys/x509_public_key.c 2 additions, 1 deletioncrypto/asymmetric_keys/x509_public_key.c
- security/integrity/ima/Kconfig 1 addition, 0 deletionssecurity/integrity/ima/Kconfig
- security/integrity/ima/ima.h 4 additions, 3 deletionssecurity/integrity/ima/ima.h
- security/integrity/ima/ima_api.c 24 additions, 8 deletionssecurity/integrity/ima/ima_api.c
- security/integrity/ima/ima_appraise.c 12 additions, 8 deletionssecurity/integrity/ima/ima_appraise.c
- security/integrity/ima/ima_crypto.c 41 additions, 8 deletionssecurity/integrity/ima/ima_crypto.c
- security/integrity/ima/ima_main.c 4 additions, 2 deletionssecurity/integrity/ima/ima_main.c
- security/integrity/integrity.h 12 additions, 3 deletionssecurity/integrity/integrity.h
Loading
Please register or sign in to comment