Lines Matching refs:hash_ctx
468 sha1_context hash_ctx; in create_request_auth() local
477 sha1_starts(&hash_ctx); in create_request_auth()
478 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth()
480 sha1_update(&hash_ctx, in create_request_auth()
484 sha1_finish(&hash_ctx, hmac_data); in create_request_auth()
486 sha1_starts(&hash_ctx); in create_request_auth()
487 sha1_update(&hash_ctx, auth_session->nonce_odd, DIGEST_LENGTH); in create_request_auth()
488 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth()
489 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth()
532 sha1_context hash_ctx; in verify_response_auth() local
546 sha1_starts(&hash_ctx); in verify_response_auth()
547 sha1_update(&hash_ctx, response + return_code_offset, 4); in verify_response_auth()
548 sha1_update(&hash_ctx, hmac_data, 4); in verify_response_auth()
550 sha1_update(&hash_ctx, in verify_response_auth()
554 sha1_finish(&hash_ctx, hmac_data); in verify_response_auth()