Skip to content

how to use nv_read_public()? #480

Closed Answered by bingzhux
bingzhux asked this question in Q&A
Dec 17, 2023 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

looks like if I remove the "session" code below from fn nv_test()

    let session = context
        .start_auth_session(
            None,
            None,
            None,
            SessionType::Hmac,
            SymmetricDefinition::AES_256_CFB,
            HashingAlgorithm::Sha256,
        )
        .expect("Failed to create session")
        .expect("Received invalid handle");

    context.set_sessions((Some(session), None, None));

then run the nv_test() again, it works as @Superhepper suggested.

Quite interesting. anyone can help explain this? Thank you.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bingzhux
Comment options

@bingzhux
Comment options

Answer selected by bingzhux
Comment options

You must be logged in to vote
2 replies
@Superhepper
Comment options

@bingzhux
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #479 on December 18, 2023 07:55.