TrustedFirmware Git Browser
Code Review
Sign In
review.trustedfirmware.org
/
mirror
/
mbed-tls
/
d35a1cce7f20b3d6a28813961e46331e3e371d4d
/
library
/
psa_crypto.c
eae6eee
Change ECDSA signature representation to r||s
by Gilles Peskine
· 7 years ago
a81d85b
Sort out ECDSA mechanisms
by Gilles Peskine
· 7 years ago
526fab0
Fix parameter name signature_size for psa_asymmetric_verify
by Gilles Peskine
· 7 years ago
e9191ff
Add missing const for signature parameter of psa_asymmetric_verify
by Gilles Peskine
· 7 years ago
55bf3d1
Sort out RSA mechanisms
by Gilles Peskine
· 7 years ago
7ed29c5
Rename PSA_ALG_RSA_GET_HASH to PSA_ALG_SIGN_GET_HASH
by Gilles Peskine
· 7 years ago
c648d69
psa_import_key: fix memory leak on error
by Gilles Peskine
· 7 years ago
f24c7f8
psa_export_key: Always set a valid data length
by Jaeden Amero
· 7 years ago
8173631
psa_hash_abort: return PSA_SUCCESS if alg=0
by Gilles Peskine
· 7 years ago
f9c2c09
In abort functions, return BAD_STATE on obviously bad input
by Gilles Peskine
· 7 years ago
48c0ea1
Remove PSA_KEY_TYPE_IS_RAW_BYTES from crypto.h
by Gilles Peskine
· 7 years ago
9ad29e2
Add what little was missing to fully support DES
by Gilles Peskine
· 7 years ago
9a94480
Convert ERR_ASN1 error codes to PSA
by Gilles Peskine
· 7 years ago
b54979a
Refuse non-byte-sized raw data keys
by Gilles Peskine
· 7 years ago
c06e071
Favor INVALID_ARGUMENT over NOT_SUPPORTED for bad algorithm types
by Gilles Peskine
· 7 years ago
248051a
Add missing #ifdef guards around psa_hmac_start
by Gilles Peskine
· 7 years ago
16c0f4f
Fix potential memory corruption on MAC/cipher setup failure
by Gilles Peskine
· 7 years ago
12313cd
Implement psa_generate_key: AES, DES, RSA, ECP
by Gilles Peskine
· 7 years ago
e66ca3b
psa_export_key: zero out potential garbage in the output buffer
by Gilles Peskine
· 7 years ago
0e23158
psa_export_key: fix asymmetric key in larger buffer
by Gilles Peskine
· 7 years ago
05d6989
Implement psa_generate_random
by Gilles Peskine
· 7 years ago
0ff4b0f
psa_import_key: validate symmetric key size
by Gilles Peskine
· 7 years ago
e3b07d8
Fix build without CMAC
by Gilles Peskine
· 7 years ago
828ed14
Rename MBEDTLS_xxx macros in psa_crypto.c to placate check-names.sh
by Gilles Peskine
· 7 years ago
34ef7f5
Check the curve of an elliptic curve key on import
by Gilles Peskine
· 7 years ago
b3e6e5d
Rename hash max sizes for consistency
by Gilles Peskine
· 7 years ago
7bcfc0a
Be more consistent about blank lines
by Gilles Peskine
· 7 years ago
803ce74
Change sizeof(type) to sizeof(variable)
by Gilles Peskine
· 7 years ago
c1bb6c8
Formatting improvements
by Gilles Peskine
· 7 years ago
2d27786
Normalize whitespace
by Gilles Peskine
· 7 years ago
6de7a17
Fix file permissions
by Gilles Peskine
· 7 years ago
aa5aea0
fix spaces and add braces
by Nir Sonnenschein
· 7 years ago
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
Next »