Skip to content
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

xtest: regression 1100: add OCALL tests #434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 5, 2021

  1. xtest: regression 1100: add OCALL tests

    Add 10 tests that check the behaviour of the OCALL functionality. The tests
    in question are detailed below:
    
    OCALL without parameters:
    -------------------------
    Performs an OCALL without any parameters.
    
    OCALL with value parameters (in/inout/out/in):
    ----------------------------------------------
    Performs an OCALL with value parameters and in parameter directions,
    verifying that the values are transferred correctly between normal world
    and secure world.
    
    OCALL with memref parameters (in/inout/out/in):
    -----------------------------------------------
    Performs an OCALL with memref parameters and in parameter directions,
    verifying that the bufers are transferred correctly between normal world
    and secure world.
    
    Close session during OCALL:
    ---------------------------
    Performs an OCALL that closes the session through which the original
    function invocation was performed. Ascertains that the OCALL is cancelled
    and that the session is closed.
    
    Finalize context during OCALL:
    ------------------------------
    Performs an OCALL that finalizes the context through which the original
    function invocation was performed. Ascertains that the OCALL is cancelled
    and that the session that was originally used to perform the function
    invocation is closed as a result of the context being finalized.
    
    NULL memref param:
    ------------------
    Verifies that OCALLs can carry memref parameters with NULL buffers in all
    directions.
    
    NULL memref param (mixed params):
    ---------------------------------
    Verifies that OCALLs can carry memref parameters with NULL buffers
    alongside value and non-NULL memref parameters in various directions.
    
    NULL memref param (invalid params):
    -----------------------------------
    Verifies that attempting to perform an OCALL with memref parameters with a
    NULL buffer and a non-zero size and with a non-NULL buffer and a zero size
    fails at the Internal Core API layer.
    
    OCALL during session open:
    --------------------------
    Ascertains that the CA can receive an OCALL during session open.
    
    Finalize context during session open OCALL:
    -------------------------------------------
    Performs an OCALL during session open that finalizes the context via which
    the session was being opened, verifies that the OCALL is cancelled, and
    that the session fails to open.
    
    Signed-off-by: Hernan Gatta <hegatta@microsoft.com>
    Acked-by: Jerome Forissier <jerome@forissier.org>
    HernanGatta committed Apr 5, 2021
    Configuration menu
    Copy the full SHA
    da00f36 View commit details
    Browse the repository at this point in the history