TrustedFirmware Git Browser
Code Review
Sign In
review.trustedfirmware.org
/
mirror
/
mbed-tls
/
e9664c30f0ebdbd6e5f057646c03b51cdeec53a8
/
library
/
psa_crypto.c
e9664c3
space and style fixes
by Nir Sonnenschein
· 7 years ago
9627241
change macro PSA_HASH_BLOCK_SIZE to function psa_get_hash_block_size
by Nir Sonnenschein
· 7 years ago
5ca6547
Renamed hmac_ctx to opad and removed null check.
by Nir Sonnenschein
· 7 years ago
caec7f0
Fix rename issue missed by re-base
by Nir Sonnenschein
· 7 years ago
d223b52
psa_hmac_start: reduce stack usage
by Gilles Peskine
· 7 years ago
6a0a44e
HMAC: clean up local variables containing key material
by Gilles Peskine
· 7 years ago
c102e3c
psa_hmac_start: simplify key_length logic in hash-the-key case
by Gilles Peskine
· 7 years ago
e1bc680
psa_hmac_start: remove useless casts
by Gilles Peskine
· 7 years ago
7e454bc
Split out CMAC and HMAC code into auxiliary functions
by Gilles Peskine
· 7 years ago
99bc649
Normalize whitespace to Mbed TLS standards
by Gilles Peskine
· 7 years ago
ef057ac
Remove dead code
by Gilles Peskine
· 7 years ago
084832d
replace get_block_size_from_hash_algorithm with PSA_HASH_BLOCK_SIZE macro
by Nir Sonnenschein
· 7 years ago
35dfbf4
change hmac context to use statically allocated memory
by Nir Sonnenschein
· 7 years ago
0c9ec53
remove reliance on md_info context for hash information
by Nir Sonnenschein
· 7 years ago
eeace0b
Code style fix : changed keylen to key_length
by Nir Sonnenschein
· 7 years ago
7810be2
Code correction: remove unneeded sizeof
by Nir Sonnenschein
· 7 years ago
dcd636a
Commit changes to hmac to not use MD abstraction
by Nir Sonnenschein
· 7 years ago
8605428
Merge remote-tracking branch 'psa/pr/27' into feature-psa
by Gilles Peskine
· 7 years ago
c4def2f
Add input length check in psa_asymmetric_decrypt
by Gilles Peskine
· 7 years ago
b75e4f1
Remove ECC boilerplate in asymmetric encrypt/decrypt
by Gilles Peskine
· 7 years ago
beb4948
Add RSA PSS verification (untested)
by Gilles Peskine
· 7 years ago
625b01c
Add OAEP placeholders in asymmetric encrypt/decrypt
by Gilles Peskine
· 7 years ago
8b18a4f
Rename verify_RSA_hash_input_and_get_md_type
by Gilles Peskine
· 7 years ago
61b91d4
Normalize whitespace to Mbed TLS standards
by Gilles Peskine
· 7 years ago
1c2a7ea
Allow psa_asymmetric_verify and psa_asymmetric_encrypt to use public key only.
by Nir Sonnenschein
· 7 years ago
d708260
add key policy enforcement implementation
by Nir Sonnenschein
· 7 years ago
ca466c8
Set output length to safe value
by Nir Sonnenschein
· 7 years ago
c460291
Re-Add ECC verification code which was not properly merged in re-base.
by Nir Sonnenschein
· 7 years ago
4db79eb
Extract common code
by Nir Sonnenschein
· 7 years ago
717a040
Remove duplicate / unneeded code
by Nir Sonnenschein
· 7 years ago
5b051bc
Remove trailing whitespace
by Gilles Peskine
· 7 years ago
6afe789
Finish renaming around PSA_ALG_IS_RSA_PKCS1V15
by Gilles Peskine
· 7 years ago
d6125ca
Merge remote-tracking branch 'psa/pr/24' into feature-psa
by Gilles Peskine
· 7 years ago
4f594ec
remove check for key pair (public key should be enough for verification)
by Nir Sonnenschein
· 7 years ago
7f5a319
code fixes for internal code review:
by Nir Sonnenschein
· 7 years ago
39e5914
added support for PKCSv1.5 signature verification and encryption/decryption and very basic tests.
by Nir Sonnenschein
· 7 years ago
bb1072f
Fix use of mbedtls_cipher_info_from_psa
by Gilles Peskine
· 7 years ago
84861a9
Merge remote-tracking branch 'psa/psa-wrapper-apis-aead' into feature-psa
by Gilles Peskine
· 7 years ago
154bd95
psa_destroy_key: return SUCCESS on an empty slot
by Gilles Peskine
· 7 years ago
71bb7b7
Switch PSA_HASH_FINAL_SIZE to PSA_HASH_SIZE
by Gilles Peskine
· 7 years ago
fc614b1
fix parentheses
by mohammad1603
· 7 years ago
e109f21
remove unnecessary check for block size
by mohammad1603
· 7 years ago
a1d9801
add slot validation
by mohammad1603
· 7 years ago
e3cb8a8
return PSA_ERROR_BUFFER_TOO_SMALL intead of PSA_ERROR_INVALID_ARGUMENT
by mohammad1603
· 7 years ago
6b4d98c
remove trailing spaces
by mohammad1603
· 7 years ago
5ed0621
aligned with coding standards - line length
by mohammad1603
· 7 years ago
f14394b
add policy checks
by mohammad1603
· 7 years ago
96910d8
fix block size depending on algorithm
by mohammad1603
· 7 years ago
60a64d0
remove unnecessary argument to the psa_aead_unpadded_locate_tag function
by mohammad1603
· 7 years ago
15223a8
write the tag directly on the ciphertext buffer.
by mohammad1603
· 7 years ago
4fc744f
change the check of block size for all supported algorithms
by mohammad1603
· 7 years ago
0f21465
use mbedtls_cipher_info_from_psa to get cipher ID
by mohammad1603
· 7 years ago
f58aa6a
use memset instead of mbedtils_zeroize
by mohammad1603
· 7 years ago
554faad
return NOT_SUPPORTED instead of INVLID_ARGUMENT
by mohammad1603
· 7 years ago
95893f8
remove usless cast
by mohammad1603
· 7 years ago
f08a550
set output length to zero to cover output length in error case
by mohammad1603
· 7 years ago
f4f0d61
change mbedtls_cipher_info_from_psa to provide cipher_id also
by mohammad1603
· 7 years ago
9375f84
fix code offsets after rebase
by mohammad1603
· 7 years ago
ee652a3
Fix psa_aead_decrypt to read the tag at the end of the ciphertext
by Gilles Peskine
· 7 years ago
a40d774
Whitespace fixes
by Gilles Peskine
· 7 years ago
3957465
add else for not supported algorithm
by mohammad1603
· 7 years ago
5c8845f
return invalid argument for unsupported algorithms
by mohammad1603
· 7 years ago
e58e684
fix condition over key type
by mohammad1603
· 7 years ago
17638ef
remove unused variable
by mohammad1603
· 7 years ago
dad36fa
add Key and Algorithm validation
by mohammad1603
· 7 years ago
a7e6df7
Validation fixes for key_type
by mohammad1603
· 7 years ago
4f5eb7c
Fill the the output buffer with zero data in case of failure
by mohammad1603
· 7 years ago
6bbd8c7
Remove unnecessary cast
by mohammad1603
· 7 years ago
db62473
Parameters validation fixes
by mohammad1603
· 7 years ago
ce5cba9
unify the concatenation of the tag and update output length
by mohammad1603
· 7 years ago
9e5a515
Fix parameter validation
by mohammad1603
· 7 years ago
47ddf3d
Concatenate the tag to the output buffer
by mohammad1603
· 7 years ago
5955c98
Initial implementation of the AEAD decrypt/encrypt APIs
by mohammad1603
· 7 years ago
3aa8efb
Merge remote-tracking branch 'psa/psa-wrapper-apis-march-12' into feature-psa
by Gilles Peskine
· 7 years ago
2c5219a
Whitespace normalization
by Gilles Peskine
· 7 years ago
5351420
Use block local variable for padding_mode for readability
by Gilles Peskine
· 7 years ago
7cb22b8
abort operation before return + fix error checks
by Moran Peker
· 7 years ago
89d789c
Refactor some argument checks for readability
by Gilles Peskine
· 7 years ago
7e92885
Wrap lines to 80 columns
by Gilles Peskine
· 7 years ago
e553c65
Fix indentation and horizontal whitespace
by Gilles Peskine
· 7 years ago
3520c2c
unset iv_required to 0 (psa_encrypt_set_iv)and block_size (psa_cipher_setup)
by Moran Peker
· 7 years ago
395db87
adjust indentation per Mbed TLS standards
by Moran Peker
· 7 years ago
ae38279
add missing psa_cipher_abort( operation )
by Moran Peker
· 7 years ago
7053116
fix compilation error - missing if
by Moran Peker
· 7 years ago
a28258c
adjust indentation per Mbed TLS standards
by Moran Peker
· 7 years ago
2cab25a
fix conditions in psa_cipher_finish function
by Moran Peker
· 7 years ago
dc38ebc
delete decrypt checks + fix memcpy& return value
by Moran Peker
· 7 years ago
ad9d82c
add iv_required field to psa_cipher_operation_s and fix relevant functions
by Moran Peker
· 7 years ago
71f19ae
add missing call to psa_cipher_abort in cipher_setup func + iv_length check in cipher_set_iv func
by Moran Peker
· 7 years ago
406008a
add missing check on output_size in psa_cipher_update func
by Moran Peker
· 7 years ago
bed71a2
fix missing check on output_size in psa_cipher_finish func
by Moran Peker
· 7 years ago
0071b87
add missing parameter output_size on psa_cipher_finish
by Moran Peker
· 7 years ago
4c80d83
adjust indentation per Mbed TLS standards
by Moran Peker
· 7 years ago
b152d4d
add test scenarios to decrypt and encrypt input and compare with given output
by mohammad1603
· 7 years ago
89e0f46
style
by mohammad1603
· 7 years ago
41deec4
partly pr fix
by Moran Peker
· 7 years ago
e1210dc
remove unused parameter in psa_cipher_finish.
by Moran Peker
· 7 years ago
3205a65
tests fix
by Moran Peker
· 7 years ago
16864af
fix static function name
by mohammad1603
· 7 years ago
8481e74
CR fixes
by mohammad1603
· 7 years ago
Next »