Home
last modified time | relevance | path

Searched hist:"9 f4dcefb9c7b0292a7af4b184365341f69fbfd90" (Results 1 – 5 of 5) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Ddh.c9f4dcefb9c7b0292a7af4b184365341f69fbfd90 Thu Apr 16 12:14:15 UTC 2020 Jerome Forissier <jerome@forissier.org> core: crypto: DH: make sure key_size is consistent with attributes

TEE_GenerateKey() takes a key_size argument and various attributes. For
Diffie-Hellman, if the size of the prime number (TEE_ATTR_DH_PRIME) is
not key_size, we should return TEE_ERROR_BAD_PARAMETERS as per the GP
TEE Internal Core API specification v1.2.1: "If an incorrect or
inconsistent attribute is detected. The checks that are performed
depend on the implementation.".

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/lib/libtomcrypt/
H A Ddh.c9f4dcefb9c7b0292a7af4b184365341f69fbfd90 Thu Apr 16 12:14:15 UTC 2020 Jerome Forissier <jerome@forissier.org> core: crypto: DH: make sure key_size is consistent with attributes

TEE_GenerateKey() takes a key_size argument and various attributes. For
Diffie-Hellman, if the size of the prime number (TEE_ATTR_DH_PRIME) is
not key_size, we should return TEE_ERROR_BAD_PARAMETERS as per the GP
TEE Internal Core API specification v1.2.1: "If an incorrect or
inconsistent attribute is detected. The checks that are performed
depend on the implementation.".

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/include/crypto/
H A Dcrypto.h9f4dcefb9c7b0292a7af4b184365341f69fbfd90 Thu Apr 16 12:14:15 UTC 2020 Jerome Forissier <jerome@forissier.org> core: crypto: DH: make sure key_size is consistent with attributes

TEE_GenerateKey() takes a key_size argument and various attributes. For
Diffie-Hellman, if the size of the prime number (TEE_ATTR_DH_PRIME) is
not key_size, we should return TEE_ERROR_BAD_PARAMETERS as per the GP
TEE Internal Core API specification v1.2.1: "If an incorrect or
inconsistent attribute is detected. The checks that are performed
depend on the implementation.".

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/crypto/
H A Dcrypto.c9f4dcefb9c7b0292a7af4b184365341f69fbfd90 Thu Apr 16 12:14:15 UTC 2020 Jerome Forissier <jerome@forissier.org> core: crypto: DH: make sure key_size is consistent with attributes

TEE_GenerateKey() takes a key_size argument and various attributes. For
Diffie-Hellman, if the size of the prime number (TEE_ATTR_DH_PRIME) is
not key_size, we should return TEE_ERROR_BAD_PARAMETERS as per the GP
TEE Internal Core API specification v1.2.1: "If an incorrect or
inconsistent attribute is detected. The checks that are performed
depend on the implementation.".

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/tee/
H A Dtee_svc_cryp.c9f4dcefb9c7b0292a7af4b184365341f69fbfd90 Thu Apr 16 12:14:15 UTC 2020 Jerome Forissier <jerome@forissier.org> core: crypto: DH: make sure key_size is consistent with attributes

TEE_GenerateKey() takes a key_size argument and various attributes. For
Diffie-Hellman, if the size of the prime number (TEE_ATTR_DH_PRIME) is
not key_size, we should return TEE_ERROR_BAD_PARAMETERS as per the GP
TEE Internal Core API specification v1.2.1: "If an incorrect or
inconsistent attribute is detected. The checks that are performed
depend on the implementation.".

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>