Lines Matching defs:session

328  * Helper method to open a session and verify that a non-empty
329 * session ID is returned
345 * Helper method to close a session
413 * Test that a session can be opened and closed
431 * Test that attempting to close a session that is already closed
503 SessionId session = openSession();
504 closeSession(session);
509 session, keyResponse,
521 SessionId session;
526 session, keyResponse,
538 SessionId session = openSession();
541 session, emptyResponse,
547 closeSession(session);
719 SessionId session = openSession();
721 Status status = drmPlugin->setCipherAlgorithm(session, algorithm);
723 closeSession(session);
730 SessionId session = openSession();
732 Status status = drmPlugin->setCipherAlgorithm(session, algorithm);
734 closeSession(session);
738 * Setting a cipher algorithm with no session returns BAD_VALUE
741 SessionId session;
743 Status status = drmPlugin->setCipherAlgorithm(session, algorithm);
751 SessionId session = openSession();
753 Status status = drmPlugin->setMacAlgorithm(session, algorithm);
755 closeSession(session);
762 SessionId session = openSession();
764 Status status = drmPlugin->setMacAlgorithm(session, algorithm);
766 closeSession(session);
770 * Setting a mac algorithm with no session should return BAD_VALUE
773 SessionId session;
775 Status status = drmPlugin->setMacAlgorithm(session, algorithm);
790 SessionId session = openSession();
795 auto res = drmPlugin->encrypt(session, keyId, input, iv,
801 closeSession(session);
805 SessionId session = openSession();
809 auto res = drmPlugin->decrypt(session, keyId, input, iv,
815 closeSession(session);
819 SessionId session = openSession();
823 auto res = drmPlugin->sign(session, keyId, message,
829 closeSession(session);
833 SessionId session = openSession();
840 session, keyId, message, signature, [&](Status status, bool) {
844 closeSession(session);
848 SessionId session = openSession();
853 auto res = drmPlugin->signRSA(session, algorithm, message, wrappedKey,
859 closeSession(session);
920 * is used to associate a drm session with a crypto session.
929 * setMediaDrmSession with a closed session id
939 * setMediaDrmSession with an empty session id: BAD_VALUE. An
940 * empty session clears the previously set session and should